[Q] anyway to tell which mode i am in? - Moto X Q&A

Hi i am new to android. Rooted my device. I found that when i enter some command in adb it will return on 1 or 0 depending on which mode i am in. Is there anyway to know if i am booted in recovery or normal mode without connecting to computer and firing adb command?
Thanks

sravanz said:
Hi i am new to android. Rooted my device. I found that when i enter some command in adb it will return on 1 or 0 depending on which mode i am in. Is there anyway to know if i am booted in recovery or normal mode without connecting to computer and firing adb command?
Thanks
Click to expand...
Click to collapse
you just need to remember what you booted to I guess.
I use recovery mode only for making changes then reboot to normal after I'm done.

sravanz said:
Hi i am new to android. Rooted my device. I found that when i enter some command in adb it will return on 1 or 0 depending on which mode i am in. Is there anyway to know if i am booted in recovery or normal mode without connecting to computer and firing adb command?
Thanks
Click to expand...
Click to collapse
You could type that command in a terminal window on your phone.
Sent from my Nexus 7 using Tapatalk 4

Can you tell the command?
Thanks
Sent from my Moto X using xda app-developers app

sravanz said:
Can you tell the command?
Click to expand...
Click to collapse
getprop ro.boot.write_protect

o_z0ne said:
getprop ro.boot.write_protect
Click to expand...
Click to collapse
worked thanks

Related

ADB Connection Question

At what point in the boot process does ADB detect the device? Phone is soft-bricked and I'm trying to get it into recovery mode through an adb shell.
treygrizzard26 said:
At what point in the boot process does ADB detect the device? Phone is soft-bricked and I'm trying to get it into recovery mode through an adb shell.
Click to expand...
Click to collapse
You most likely won't be able to get recovery mode if you can't access it with the button combo. Best bet would be to flash a kernel with Heimdall/Odin.
Go check out my adb portable in the developers section. It will wait until it sees your phone and boot it into recovery/download mode.
Or you can issue this command to do the same thing:
Code:
adb wait-for-device reboot recovery
Sent from my SGH-I777 using xda premium

Cant get into fastboot mode

Hey! i got my Razr i, yesterday and now im trying to get into fastboot mode so i can get it rooted.
I hold down the power button and the vol down button at once when its turned off. but it just starts normally..
also i couldnt find any help in the forum, so maby somebody can explain me how to do it? :fingers-crossed:
Download Android SDK and search for adb.exe
open CMD and type
cd (put where abd.exe is)
then type
adb reboot bootloader
sky0165 said:
Download Android SDK and search for adb.exe
open CMD and type
cd (put where abd.exe is)
then type
adb reboot bootloader
Click to expand...
Click to collapse
Thanks you so much! worked perfect!!!
totex71 said:
Thanks you so much! worked perfect!!!
Click to expand...
Click to collapse
Hm.. i flashed cwm and now it gets stuck on the unlocked bootloader screen, and now i cant get it to connect with adb..
totex71 said:
Hm.. i flashed cwm and now it gets stuck on the unlocked bootloader screen, and now i cant get it to connect with adb..
Click to expand...
Click to collapse
same here -.-
sky0165 said:
Download Android SDK and search for adb.exe
open CMD and type
cd (put where abd.exe is)
then type
adb reboot bootloader
Click to expand...
Click to collapse
When i do this it just reboots the phone? Any help please?
I hope you can help
Beagan said:
When i do this it just reboots the phone? Any help please?
Click to expand...
Click to collapse
These threads are mine, I hope you can help
Send to Fastboot mode Visual (Audio in Spanish sorry)
http://forum.xda-developers.com/showthread.php?t=2220242
Install CWMR Easy
http://forum.xda-developers.com/showthread.php?t=2166646

[Q] Rooting help needed

Hey all im using note n7000 JB recently updated im trying to root my device with one click root but couldnt get the output. My home button is not working. If there are any other ways to root please help me out of this.
Thanks in advance...
Read this useful thread : http://forum.xda-developers.com/showthread.php?t=1329360
its not working
qnt said:
Read this useful thread : http://forum.xda-developers.com/showthread.php?t=1329360
Click to expand...
Click to collapse
ive tried all of them but no use:crying:
prdwy said:
ive tried all of them but no use:crying:
Click to expand...
Click to collapse
The easiest method is flashing a kernel including root associated to your ROM.
The Philz kernel is a good one, and nearly stock kernel with user friendly added CWM.
Can you boot into recovery? Check with adb if you can boot to recovery using
adb reboot recovery command.
Sorry but I'm not familiar with adb can you guide me through.?
Sent from my GT-N7000 using XDA Premium App
prdwy said:
Sorry but I'm not familiar with adb can you guide me through.?
Sent from my GT-N7000 using XDA Premium App
Click to expand...
Click to collapse
Check these links for comprehensive guide:
http://forum.xda-developers.com/showthread.php?t=2141817
and
http://forum.xda-developers.com/showthread.php?t=2265006
Edit: try the volume up+Home button(center button)+ power button, hold them together for few seconds and you should see stock recovery..
Edit: sorry just read again and found that your home button is not working
In settings developer menu enable usb debugging and then connect to pc. Install android sdk or adb tools from Google. Then in the adb folder there run command prompt and
adb devices - this should show device serial. If yes
Adb reboot recovery will put the phone in recovery mode.
i use this method to root my GN7000 international version http://forum.xda-developers.com/showthread.php?t=1886460
Hello!
prdwy said:
Hey all im using note n7000 JB recently updated im trying to root my device with one click root but couldnt get the output. My home button is not working. If there are any other ways to root please help me out of this.
Thanks in advance...
Click to expand...
Click to collapse
This is my first post on xda! Great to be here!
Back to topic:
Have you tried ExynosAbuse? It is a really easy process:
Exynos Abuse xda thread
Greetings, Paco
Exploit doesnot work on JB roms
result
nokiamodeln91 said:
In settings developer menu enable usb debugging and then connect to pc. Install android sdk or adb tools from Google. Then in the adb folder there run command prompt and
adb devices - this should show device serial. If yes
Adb reboot recovery will put the phone in recovery mode.
Click to expand...
Click to collapse
Failed to set prot mask <inappropriate ioctl for device>

[Q] adb sideload returns error: closed with LG 4x

Hi,
I tried to root my LG Optimus 4x HD (p880) running Android 4.1.2 JB today. Unfortunately, it all came down to this:
adb sideload superuser.zip
error: closed
Click to expand...
Click to collapse
I tried using both of these guides:
http://forum.xda-developers.com/showthread.php?t=2230934
http://forum.xda-developers.com/showthread.php?t=2180688
I also tried to do adb usb before doing adb sideload with no success. I also tried to kill and restart the adb daemon many times. Then I tried with different adb versions and on Linux too, no success. USB Debugging had to be enabled for the device to get recognized at all by adb.
Can anyone help me? Or can anyone please tell me how to get more debug output?
Cheers,
Niels
I had the same problem on my Galaxy R and have read it to be wrong on other devices as well. I finally ended up using TWRP which had this working. Your situation is different though. Did you try to run it with administrative privileges/root access?
oticshe was
Adam77Root said:
I had the same problem on my Galaxy R and have read it to be wrong on other devices as well. I finally ended up using TWRP which had this working. Your situation is different though. Did you try to run it with administrative privileges/root access?
Click to expand...
Click to collapse
Yep, always the same error message.
Okay, nevermind, apperently I'm too stupid to read, when it said, I sould power on while holding the volume down key.
Sorry, folks!
Always use "adb devices" before to check your device are online
Sent from my LG-P880 using Tapatalk 2
Have you entered recovery and chose "apply update with adb"? If you have maybe its a driver issue
Sent from my LG-P880 using Tapatalk 4 Beta
Run "adb usb" before "adb sideload". It could help.
Dogue2000 said:
Run "adb usb" before "adb sideload". It could help.
Click to expand...
Click to collapse
Thanks that helped with my nexus 4.
Dogue2000 said:
Run "adb usb" before "adb sideload". It could help.
Click to expand...
Click to collapse
Thanks a lot! It helped me too!
superjose said:
Thanks a lot! It helped me too!
Click to expand...
Click to collapse
or adb devices . it lists your device if its connected and ready. if u r on linux start the adb server using "su" or in ubuntu using "sudo"
Nexus5 here and adb devices shows my device, adb usb didn't help.. :S
I am still getting "error: closed".. any other advice :cyclops:?
ewoks said:
Nexus5 here and adb devices shows my device, adb usb didn't help.. :S
I am still getting "error: closed".. any other advice :cyclops:?
Click to expand...
Click to collapse
not enough info. we dont know your operating system , we dont know what you did , we dont know if you have unlocked bootloader and installed recovery and which recovery. xda forum doesnt have any fortune teller provide more information
kessaras said:
not enough info. we dont know your operating system , we dont know what you did , we dont know if you have unlocked bootloader and installed recovery and which recovery. xda forum doesnt have any fortune teller provide more information
Click to expand...
Click to collapse
Stock KK4.4, not touched (just unpacked) and driver problems are of course Win7
hi
i have same problem with 4.1.2 v20c-ame i can't root when open root.bat its open then close
solved
I search about this problem it was a bluestack if u have it
try to close it from background process
Edit: apparently attempts at help are now considered spam. Comments deleted.
themitch said:
Again, these instructions are specific to my nexus. You might have to play with the specifics to find the update.zip options, but this should get you close enough. Hope this helps!
Click to expand...
Click to collapse
Please don't spam the Nexus stuff here, it's of no use.
Dogue2000 said:
Run "adb usb" before "adb sideload". It could help.
Click to expand...
Click to collapse
it helped me, but now appear device not found

[Q] Help unbricking

Hi,
I have a Sprint htc one that I had previously unlocked, rooted and installed twrp and cm10.1 on. I was trying to restore the factory rom and now I can't boot up. seams like i have deleted all OS'. I can open the bootloader and twrp. I can not find any zip in twrp to reinstall cm10 just to get the phone working again. I have tried the adb function in twrp but it keeps failing. i have also tried to install the RUU file but can not get it to work. it states that my device has 1.31.651.2 and the RUU I'm trying to use is 1.29.651.7. Is there somewhere I can download the 1.31.651.2 image version. Or is there another way to unbrick my phone.
help
Now I cannot get into TWRP.
Can you get into bootloader?
wondernad said:
Now I cannot get into TWRP.
Click to expand...
Click to collapse
1) Get into bootloader (Power and volume down)
2) go to fastboot
3) Copy the recovery you want to the directory you use for abd and rename it recovery.zip
4) fastboot flash recovery recovery.zip
5) Run fastboot erase cache
6) Then open recovery
7) Go to sideload and sideload a ROM you want. Make sure that is for SPRINT HTC ONE
8) Reboot and good luck
imurg said:
1) Get into bootloader (Power and volume down)
2) go to fastboot
3) Copy the recovery you want to the directory you use for abd and rename it recovery.zip
4) fastboot flash recovery recovery.zip
5) Run fastboot erase cache
6) Then open recovery
7) Go to sideload and sideload a ROM you want. Make sure that is for SPRINT HTC ONE
8) Reboot and good luck
Click to expand...
Click to collapse
Ok so im in fastboot. Is the recovery the 1.31.651.2ruu? or should it be twrp or the like?
wondernad said:
Ok so im in fastboot. Is the recovery the 1.31.651.2ruu? or should it be twrp or the like?
Click to expand...
Click to collapse
Get your recovery here
http://www.teamw.in/project/twrp2/171
After that you should be able to get to sideload in advanced
sideload
how long should the sideload take?
wondernad said:
how long should the sideload take?
Click to expand...
Click to collapse
It takes a while depending on how big the ROM is. Buy you can see the advance in the % dont worry it'll get there
Patience... is it grasshopper?
imurg said:
It takes a while depending on how big the ROM is. Buy you can see the advance in the % dont worry it'll get there
Patience... is it grasshopper?
Click to expand...
Click to collapse
It doesn't give me a %. I'm wondering if its recognizing my device. I do cmd adb devices and it doesn't show the phone. but the phone says it is waiting for package. I've tried it on my desktop(xp but runs ok) and my laptop(windows 7, but slow).
wondernad said:
It doesn't give me a %. I'm wondering if its recognizing my device. I do cmd adb devices and it doesn't show the phone. but the phone says it is waiting for package. I've tried it on my desktop(xp but runs ok) and my laptop(windows 7, but slow).
Click to expand...
Click to collapse
It doesn't seem to recognize the phone. Do you have the latest HTC SYNC Manager? it has the drivers
imurg said:
It doesn't seem to recognize the phone. Do you have the latest HTC SYNC Manager? it has the drivers
Click to expand...
Click to collapse
Yes I did reinstall the drivers. trying to update my android sdk right now.
wondernad said:
Yes I did reinstall the drivers. trying to update my android sdk right now.
Click to expand...
Click to collapse
Just run "adb version" latest is 1.0.31
imurg said:
Just run "adb version" latest is 1.0.31
Click to expand...
Click to collapse
That seams to open a command window for about a millisecond.
wondernad said:
That seams to open a command window for about a millisecond.
Click to expand...
Click to collapse
You need to open a command window. Double click command prompt (The black icon with the c:\_)
imurg said:
You need to open a command window. Double click command prompt (The black icon with the c:\_)
Click to expand...
Click to collapse
ok it is the latest version
wondernad said:
ok it is the latest version
Click to expand...
Click to collapse
Now do not close the command window and try adb devices
If you see your device then try the sideload again without closing the command window until you are finished.
imurg said:
Now do not close the command window and try adb devices
If you see your device then try the sideload again without closing the command window until you are finished.
Click to expand...
Click to collapse
It still does not see the device. says list of devices attatched and has a blank space. then the command prompt comes back up
wondernad said:
It still does not see the device. says list of devices attatched and has a blank space. then the command prompt comes back up
Click to expand...
Click to collapse
Still not seeing the device. I've tried switching versions of twrp and twrp sideload keeps saying failure. so I put CWM on it and it is opening sideload but the device is not recognized by the computer.
wondernad said:
It still does not see the device. says list of devices attatched and has a blank space. then the command prompt comes back up
Click to expand...
Click to collapse
I think the safest at this point where FASTBOOT recognizes your devices but ADB doesn't is to go back to stock flashing a RUU this only requires FASTBOOT.
This thread will show you how
http://forum.xda-developers.com/showthread.php?t=2251800
Best of lucks
imurg said:
I think the safest at this point where FASTBOOT recognizes your devices but ADB doesn't is to go back to stock flashing a RUU this only requires FASTBOOT.
This thread will show you how
http://forum.xda-developers.com/showthread.php?t=2251800
Best of lucks
Click to expand...
Click to collapse
That isn't working either. the only RUU file I can find is for 1.29.651.10RUU instead of the 1.31.651.2RUU. I have tried running it anyway hoping to limp it back to life but it won't take it. I really need the 1.31.651.2RUU. but can't find it.
http://forum.xda-developers.com/showthread.php?t=2391161&page=4
chack this

Categories

Resources