[Q] smali 2.0 parameter supplement? - T-Mobile Samsung Galaxy Note II

I'm trying to give my note 2 the 4-way boot options. stock/rooted. My problem occurs with recompiling i get
Code:
...\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[29,4] missing REGISTER at '.prologue'
..\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[42,11] mismatched input '"dialog"' expecting REGISTER
..\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[43,11] mismatched input '"whichButton"' expecting REGISTER
i chaneged .parameter with .param and now im having the errors above.

TheStart101 said:
I'm trying to give my note 2 the 4-way boot options. stock/rooted. My problem occurs with recompiling i get
Code:
...\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[29,4] missing REGISTER at '.prologue'
..\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[42,11] mismatched input '"dialog"' expecting REGISTER
..\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[43,11] mismatched input '"whichButton"' expecting REGISTER
i chaneged .parameter with .param and now im having the errors above.
Click to expand...
Click to collapse
Just erase it..
".param"
Should solve your problem..you might run into more if your following an old guide..you might want to consider using apktool 1.5.2
Sent from my SCH-I605 using XDA Free mobile app

I will try this when I get home. I tried 1.5.2 but then my global actions came up with hundreds of errors. I believe I tried to delete the errors too, but with everything goes ng on it hard to recall 100%. Ill let you know later. Thank you for the adviceI hope it works!
Sent from my SGH-T889 using XDA Free mobile app

lacoursiere18 said:
Just erase it..
".param"
Should solve your problem..you might run into more if your following an old guide..you might want to consider using apktool 1.5.2
Sent from my SCH-I605 using XDA Free mobile app
Click to expand...
Click to collapse
Apktool 1.5.2 compiled without a problem. Now i have to figure out why it only hotboots and i dont get my power menu -_- every problem is a just a new roadblock to smash. I will figure it out eventually

TheStart101 said:
Apktool 1.5.2 compiled without a problem. Now i have to figure out why it only hotboots and i dont get my power menu -_- every problem is a just a new roadblock to smash. I will figure it out eventually
Click to expand...
Click to collapse
Pull a log when it hot boots let's take a look. .
Another set of eyes always helps me
Sent from my SCH-I605 using XDA Free mobile app

lacoursiere18 said:
Pull a log when it hot boots let's take a look. .
Another set of eyes always helps me
Sent from my SCH-I605 using XDA Free mobile app
Click to expand...
Click to collapse
The any log i ever used was the built in log for compile/decompile. Anysuggestiopns on what to use?

TheStart101 said:
The any log i ever used was the built in log for compile/decompile. Anysuggestiopns on what to use?
Click to expand...
Click to collapse
Yes. If you have adb on your desktop that is the best way to do it for a hot boot.. SDK also has it in the tools section if you have that..
Anyway if you adb go to that directory on your desktop and open a cmd prompt there.. make sure you have USB debugging enabled..and grant the computer access to it if it asks..
Type in cmd prompt:
adb start-server(press enter)
adb devices (press enter)
You should see like a serial number, that is your devices. You should be good to run a log now.
So get ready to press the button that makes you hot boot..then type in cmd prompt:
adb logcat -d > hotboot.txt
Don't hit enter until you hit the button that hot boots your phone.. then once it hot boots hit enter
Also there are plenty of guides on the forums..If you have a problem. Or just post back here and I'll help..
P.S The log will be in the same folder adb is
Sent from my SCH-I605 using XDA Free mobile app

Related

[Q] fastboot on linux (ubuntu)

hi guys, i'm really sorry if this is really simple, but i just cant get my head around it and i've been googling for ages and i just keep getting more and more confused.
i'm basically trying to get fastboot enabled on my ubuntu linux install (11.04). would someone please explain to me in simple terms how to get it installed and running on linux, please? from the start would be great, as i find it harder to carry on half way through something. i appreciate the help. you guys are awesome
As soon as I get on my computer at home, i'll outline the steps and attach fastboot
(gimme an hour)
Update: it's taking me longer to get home than expected... Gimme till about 1pm cst (central standard time)
paxChristos said:
As soon as I get on my computer at home, i'll outline the steps and attach fastboot
(gimme an hour)
Click to expand...
Click to collapse
that would be brilliant!! thank you!!
Fastboot on Linux
I too had issues when I switched from Linux to windows (recently) and here's how I got it (just for documentation)
1) I downloaded android-sdk for linux, did the installs, but lo and behold, there was no fastboot...
2) Searched google for about 45 minutes
3) Finally figured out that HTC had it in their development website
4) Downloaded & chmod'd it so it'd work
5) Figured out that the r800x really can't be unlocked via all my attempts (so far...)
Here's a step by step as to how to get it without my hassle.
1) Attached is fastboot, download it, extract it (you can do this later in terminal if you feel like it, or you can do it now in the file explorer)
2) Open up terminal (if you don't have a shortcut for it, make one, it's the most useful thing in linux. ever.)
3) Type in su, enter your password (if you have it setup) and become root. (Or, you could call sudo whenever it is necessary, it's your preference)
4) goto the folder you downloaded fastboot to in terminal (the default chrome download place is /home/[insert your username here]/Downloads)
5) type in chmod [your preference for setting permissions here] fastboot
6) type in (sudo) cp fastboot /bin/
7) now you can call fastboot from anywhere in the terminal!!
This can also be done with adb
Any questions??
paxChristos said:
I too had issues when I switched from Linux to windows (recently) and here's how I got it (just for documentation)
1) I downloaded android-sdk for linux, did the installs, but lo and behold, there was no fastboot...
2) Searched google for about 45 minutes
3) Finally figured out that HTC had it in their development website
4) Downloaded & chmod'd it so it'd work
5) Figured out that the r800x really can't be unlocked via all my attempts (so far...)
Here's a step by step as to how to get it without my hassle.
1) Attached is fastboot, download it, extract it (you can do this later in terminal if you feel like it, or you can do it now in the file explorer)
2) Open up terminal (if you don't have a shortcut for it, make one, it's the most useful thing in linux. ever.)
3) Type in su, enter your password (if you have it setup) and become root. (Or, you could call sudo whenever it is necessary, it's your preference)
4) goto the folder you downloaded fastboot to in terminal (the default chrome download place is /home/[insert your username here]/Downloads)
5) type in chmod [your preference for setting permissions here] fastboot
6) type in (sudo) cp fastboot /bin/
7) now you can call fastboot from anywhere in the terminal!!
This can also be done with adb
Any questions??
Click to expand...
Click to collapse
^_^ thank you so much!! you have made my life so much easier!! just one question. if all i'm doing is flashing the occasional kernel with fastboot, or pushing/pulling etc with adb, do i still need all the adroid sdk stuff? or can i just delete all the stuff now?
solitarymonkey said:
^_^ thank you so much!! you have made my life so much easier!! just one question. if all i'm doing is flashing the occasional kernel with fastboot, or pushing/pulling etc with adb, do i still need all the adroid sdk stuff? or can i just delete all the stuff now?
Click to expand...
Click to collapse
Honestly, I don't know.
That being said, try copying all the extra stuff from where it is currently to another location, and try running adb and fastboot, if it works, delete the extra stuff, if it doesn't, don't mess with it
i am trying to do this with no luck. any suggestions
Where are you stuck?
Sent from my R800x using XDA App
In the terminal I get to waiting on divice. Can't get past that
Sent from my DROID X2 using xda premium
ninjasailas said:
In the terminal I get to waiting on divice. Can't get past that
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Are you in fastboot mode?? (Blue led on top)
(To get into fastboot mode on the Xperia Play, hold down the search button before and while you plug in the usb cord)
(If you are using a different phone, please google the button combination for fastboot)
I have a Droid x 2 and I have booted into fastboot mode
Sent from my DROID X2 using xda premium
good luck, but your problem is outside my (very limited) experience with devices, sorry.
Sent from my R800x using XDA App
That's ok I know its possable seen lots of dx2 users post there logo.bin files. might have to find a windows box. Also, what command do you recommended to fix permissions for fastboot. I used chmod +x fastboot
Sent from my DROID X2 using xda premium
I use numbers and honestly I do either 777 or 755
droid x2 is motorola, right? Don't you need boot strap or something for motorola?
Sent from my R800x using XDA App
update: check http://www.droidforums.net/forum/motorola-droid-x2/149566-droid-x2-boot-menu-recovery.html and see if that helps
For linux I found I had to add the "-i 0x0fce" before my commands or else Id be left with the waiting for device, try this:
fastboot -i 0x0fce getvar version
Also you may have to make the file:
/etc/udev/rules.d/51-android.rules
With this inside (note that 0fce is the idVendor for SE):
SUBSYSTEM=="usb", SYSFS{idVendor}=="0fce", MODE="0666"
That being said I think this accomplishes the same thing as just putting the -i 0x0fce before your command
I navigated to /etc/udev/rules.d. but I cannot create file.
Sent from my DROID X2 using xda premium
ninjasailas said:
I navigated to /etc/udev/rules.d. but I cannot create file.
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Create it I'm a different folder i.e. documents or downloads, them cp the file over to /etc/udev/
Sent from my R800x using XDA App
I actually created the file I had to use the command gksudo Nautilus. What version of Ubuntu do you have? I am using 11.10
Sent from my DROID X2 using xda premium
11.10, I run everything in terminal with root privileges : p
(don't forget to chmod if you cp!!)
Sent from my R800x using XDA App
What is cp
Oh copy paste?
Sent from my DROID X2 using xda premium

Please help.. getting error when i try to fastboot flash 4.0.2!

i just used fastboot-windows... to unlock the bootloader. But when i enter into the command prompt 'fastboot flash bootloader bootloader-maguro-primekk15.img' it says 'fastboot' is not recognized as an internal or external command.. i downloaded all the 4.0.2 files into the root of my hard drive what am i doing wrong? im stuck at the command prompt now lol
You don't have your paths set up. Change your environmental variables to include the folder that contains fastboot. It could also be that need to type "fastboot-windows" instead of "fastboot" depending on where you got it from.
Try "fastboot-windows flash bootloader bootloader-maguro-primekk15.img"
The command for Windows is "fastboot-windows ................"
greetz
//edit: too latee
It's only that if using the edited fastboot files. I have my system variables set up so I can run fastboot/adb from any location. A lot easier
Do I need sdk tools and stuff like that.. somebody take me back to the basics I haven't done this since nexus one was released.. environment variables?
Sent from my Nexus One using XDA App
mcguinness89 said:
Do I need sdk tools and stuff like that.. somebody take me back to the basics I haven't done this since nexus one was released.. environment variables?
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Fastboot isn't dependent on Android SDK, Choose a place for fastboot to live (C:\Program Files\Android - perhaps?) then right click on MyComputer, Properties, Advanced and there should be an environment variables settings button somewhere, click edit and append the location to the end of the line, e.g. C:\Windows\System32;C:\Program Files\Android
This will allow you to call fastboot from whatever directory you're currently working from within command prompt.
Thank u all for your help I will try it all now, stand by! Haha
Sent from my Nexus One using XDA App
mcguinness89 said:
Thank u all for your help I will try it all now, stand by! Haha
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
do you have a galaxy nexus or nexus 1?

Adb

Please could someone help me in using Adb to allow me to transfer more files on the sd card without root? I don't know how to do it and would appreciate if someone could explain it to me.
Thanks
Sent from my R800i using XDA App
If you open the start menu on your computer and right click computer, click properties you should go to some menu and in the top left it will say device manager I think, then you will go to another menu search for other devices or your phones name which should be something like don't Ericson 4.0.A.2.... etc. Something beginning with 4 and has dots a zero and A. Lol
Sent from my EPIC R800i
XTC_ExQuisite_ said:
If you open the start menu on your computer and right click computer, click properties you should go to some menu and in the top left it will say device manager I think, then you will go to another menu search for other devices or your phones name which should be something like don't Ericson 4.0.A.2.... etc. Something beginning with 4 and has dots a zero and A. Lol
Sent from my EPIC R800i
Click to expand...
Click to collapse
Sorry but that wasn't even relevant.... to use adb you need android sdk.
move apps to sd? command is
adb shell
setinstall location or something like that.
move files to sd is
adb push filename /sdcard
thank me if I helped.
Sent from my R800i using Tapatalk
adb shell
pm setInstallLocation 2
reboot
I would thank, but it seems that I still don't understand. I ain't very deep into Android-know a few basics but I'll need a lot more than that to help me (no offence intended). Thank you
Sent from my R800i using XDA App
download the android sdk or a adb package.
extract/install the package/sdk
download adb via the sdkmanager if using the sdk
then load adb.exe via cmd e.g shift + right click - open command window here.
type 'adb shell'
(make sure usb debuggin is on on the phone and usb plugged in.)
then type 'pm setInstallLocation 2'
then type 'reboot'
then type 'exit'
all without quotes.
Still sounds so complex! Lol, will try though. Thanks
Sent from my R800i using XDA App
KindaUndisputed said:
Still sounds so complex! Lol, will try though. Thanks
Sent from my R800i using XDA App
Click to expand...
Click to collapse
ok well if you think that is complicated i will make it simple.
http://bit.ly/yZzQLJ
Thank you
Sent from my R800i using XDA App

[GUIDE]How to provide a logcat ![ATUALIZED]

Helping developers!
Learn how to provide a logcat the devs .....
By phone ...
Open the terminal emulator
type
Code:
su
# logcat > /sdcard/logcat.txt
The log will be on your sdcard.
By the computer (Windows) ....
Download the Qtabd
Link: http://motyczko.pl/qtadb/QtADB_0.8.1_windows.zip
Open qtabd, select where you extracted the package adb.
Connect the phone to the pc.
In qtabd select logcat.
Select all (ctrl + a)
Save to PC
continues
Provide logcat on Ubuntu
Qtabd 32 bits :http://motyczko.pl/qtadb/QtADB_0.8.1_linux32.tar.gz
Qtabd 64bits :http://motyczko.pl/qtadb/QtADB_0.8.1_linux64.tar.gz
Binaries ADB : http://motyczko.pl/qtadb/linux_binaries.tar.gz
Open terminal:
Code:
sudo apt-get install libqtgui4 libqt4-network libqt4-declarative
32 bits :
Code:
$ cd Downloads/linux_binaries/
$ sudo cp adb aapt /usr/bin/
$ cd /usr/bin/
$ sudo chmod +x adb aapt
New terminal
Code:
$ cd Downloads/QtADB_0.8.1_linux32
$ sudo cp QtADB /usr/bin/
$ cd /usr/bin/
$ sudo chmod +x QtADB
Now
Code:
$ sudo QTABD
Tell where are the binaries and enjoy!
Thnx sir
Very useful
sent using repencis 3.5 wid a2sd
press thnxxx
very nice guide......... also post about how to provide logcat using Android SDK ...........its good to know all new user how to use SDK
Sent from my GT-S6102 using Tapatalk 2
Sir i hope u upload the Terminal Emulator too....
Sent from my GT-S5360 using xda premium
it works well in my device.
Sent from my GT-S5360 using xda app-developers app
How do you provide logcat if phone dont boot??? For example you just flashed a fresh custom rom and it wont boot, how do you get logcat cause you cant even open terminal in phone to input those commands
Sent from my GT-S5360 using xda premium
thirdzcee said:
How do you provide logcat if phone dont boot??? For example you just flashed a fresh custom rom and it wont boot, how do you get logcat cause you cant even open terminal in phone to input those commands
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
using part Windows
using qtabd !!
Nice work, this should be good for the community. Sticked so that everyone will see it and learn how to do it.
whitexp said:
using part Windows
using qtabd !!
Click to expand...
Click to collapse
How about ubuntu? Cause im on ubuntu although i do have windows running from virtualbox but thats only for the rest of my family here cause they prefer windows and i prefer ubuntu ... its 64 bit ubuntu by the way.,. How to get logcat then?
Sent from my GT-S5360 using xda premium
atualized
whitexp said:
atualized
Click to expand...
Click to collapse
nice
its helpfull!
thirdzcee said:
How do you provide logcat if phone dont boot??? For example you just flashed a fresh custom rom and it wont boot, how do you get logcat cause you cant even open terminal in phone to input those commands
Click to expand...
Click to collapse
here is a method that worked for me.
1. Turn off your phone (if stuck, just remove the battery).
2. At your command prompt, do "adb logcat > logresult.txt".
3. Plug your phone to your usb and power it.
4. After at least 1-2 minutes or until the phone has fully booted up, terminate your logcat session (ctrl+c)
Click to expand...
Click to collapse
Can op or anyone add info how to read and analyst error from logcat??
Love You man...
whitexp said:
Helping developers!
Learn how to provide a logcat the devs .....
By phone ...
Open the terminal emulator
type
Code:
su
# logcat > /sdcard/logcat.txt
The log will be on your sdcard.
By the computer (Windows) ....
Download the Qtabd
Link: http://motyczko.pl/qtadb/QtADB_0.8.1_windows.zip
Open qtabd, select where you extracted the package adb.
Connect the phone to the pc.
In qtabd select logcat.
Select all (ctrl + a)
Save to PC
continues
Click to expand...
Click to collapse
Hey... Nice job... thanked already...
---------- Post added at 12:14 AM ---------- Previous post was at 12:03 AM ----------
Just wondering, can you also upload some tutorials on identifying common issues through logcat?
that would be great for me as i am not of comp sc background, yet want to positively help the devs and possibly someday dev some... B)
[I think some others are also thinking just what i am thinking... LOL]
hey man working great! thanks :good:
very useful thread, thank you
I might be wrong but cwm can generate logcat.....
Sent from my GT-S5360 using xda premium
alkesh95 said:
I might be wrong but cwm can generate logcat.....
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Yes I think you are wrong.. It can show log generated during installation.. That too if the dev has written any "echo" commands.. It also generates some info like about any problem occurred while installation.. In advanced section has show log option..
hit thanks button! if above post helps u..
Sent from my GT-S6102
nitubhaskar said:
Yes I think you are wrong.. It can show log generated during installation.. That too if the dev has written any "echo" commands.. It also generates some info like about any problem occurred while installation.. In advanced section has show log option..
hit thanks button! if above post helps u..
Sent from my GT-S6102
Click to expand...
Click to collapse
Thanks buddy....
Sent from my GT-S5360 using xda premium

No bootloader anymore

Hey guys,when I flashed cm9 primou the second time there isn't bootloader anymore also its very slow this time but the first time I installed it it was really really fast but now the important why isn't there bootloader anymore??its booting to recovery quickly without bootloader
Sent from my One V using xda premium
Let your rom boot. Connect the phone to your computer. In your computer go into command line. Then in command line navigate to the folder where the adb.exe is stored. If you have adb.exe in C:\android then you will type "cd C:\android". Then type "adb reboot bootloader". Type without quotation marks. This is the most reliable way how to boot into bootloader. You should have known this by now if you seriously want to be a developer.
You can also create a .bat file to execute the script. To do this create a text file and type there first line: "adb kill-server second" line: "adb reboot bootloader". Without quotiation marks of course. Then save the text file. Then make sure you can see the known extensions in windows and change the extension of the file to .bat. Put the file in the folder with adb and you only need to double click it to reboot into bootloader. You can create a shortcut to the file that you can put into your desktop.
Thank you but it worked this time
Sent from my One V using xda premium
There are others less experienced who may not know this.
donhashem.dh said:
Thank you but it worked this time I don't know why also why were u telling me that s*** cd and navigate to were you put the adb???? Dude when I was 12 I used to know these stuff
Sent from my One V using xda premium
Click to expand...
Click to collapse
stop lying and be honest!
if you knew how to reboot to bootloader using ADB you have done that instead of opening an useless thread like this!
1ceb0x said:
stop lying and be honest!
if you knew how to reboot to bootloader using ADB you have done that instead of opening an useless thread like this!
Click to expand...
Click to collapse
+ 1
Sent from my HTC One V
You both didn't get me I mean that when I wanna use cmd where I have to navigate to and all that stuff
Sent from my HTC One V using xda premium
hlavicka82 said:
You can also create a .bat file to execute the script. To do this create a text file and type there first line: "adb kill-server second" line: "adb reboot bootloader".
Click to expand...
Click to collapse
Just for curiosity, what does adb kill-server second do/mean? I mean, can't only adb reboot bootloader do ??
Sent from my HTC One V using xda app-developers app
Look dude I'm sorry for being rude but I was a little angry for what was happening to my phone.please accept my apology
Sent from my HTC One V using xda premium
soham_sss said:
Just for curiosity, what does adb kill-server second do/mean? I mean, can't only adb reboot bootloader do ??
Sent from my HTC One V using xda app-developers app
Click to expand...
Click to collapse
That will kill the first server IF you have one opened, in order to let the new one to work (the one to reboot bootloader). It is a safe state to say the least because if you have one adb shell opened and you want to run the .bat that will open another shell, it won't work. And that's why you need the adb kill-server second .
donhashem.dh said:
Look dude I'm sorry for being rude but I was a little angry for what was happening to my phone.please accept my apology
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
Apologies accepted.
donhashem.dh said:
Look dude I'm sorry for being rude but I was a little angry for what was happening to my phone.please accept my apology
Sent from my HTC One V using xda premium
Click to expand...
Click to collapse
Its OK...everyone is learning...accept someone's advice in a good way instead of replying...I knew this when I was 12
Sent from my One V using XDA
"XDA IS a place to come to learn and share your knowledge.
If you are not here for those reasons then you are here for the wrong ones" - zelendel
1ceb0x said:
That will kill the first server IF you have one opened, in order to let the new one to work (the one to reboot bootloader). It is a safe state to say the least because if you have one adb shell opened and you want to run the .bat that will open another shell, it won't work. And that's why you need the adb kill-server second .
Apologies accepted.
Click to expand...
Click to collapse
Adb kill server second kills the first one?? Funny
Sent from my One V using xda premium

Categories

Resources