How to root Orange Rise 52 (Alcatel) - Android Q&A, Help & Troubleshooting

Hello, I'm new here.
I would like to ask you if someone has rooted this phone (Orange Rise 52 (Alcatel)) because it has 1GB RAM and with Orange carrier bloatware runs really slow and I would like to root it to remove all that software and maybe use as multimedia device or something like that.
How can I root this phone? What tools I need and steps must I take?
Regards and thanks for your time and patience!!

@knopfler1980
If not done yet, on PC install the appropriate USB-drivers and re-boot PC
Connect phone and PC via USB-cable, check whether you can access phone via ADB: on Windows command prompt run
Code:
adb devices
If OK, download SuperSU Pro.zip and flash the ZIP
DL & How-to: https://www.supersupro.co/supersu-zip.html
If OK re-boot phone, then on phone install Link2SD app
DL: https://play.google.com/store/apps/details?id=com.buak.Link2SD&hl=en_US
If OK run Link2SD and uninstall all unwanted apps

jwoegerbauer said:
@knopfler1980
If not done yet, on PC install the appropriate USB-drivers and re-boot PC
Connect phone and PC via USB-cable, check whether you can access phone via ADB: on Windows command prompt run
Code:
adb devices
If OK, download SuperSU Pro.zip and flash the ZIP
DL & How-to: https://www.supersupro.co/supersu-zip.html
If OK re-boot phone, then on phone install Link2SD app
DL: https://play.google.com/store/apps/details?id=com.buak.Link2SD&hl=en_US
If OK run Link2SD and uninstall all unwanted apps
Click to expand...
Click to collapse
@ jwoegerbauer Thanks, I will try it!!

jwoegerbauer said:
@knopfler1980
If not done yet, on PC install the appropriate USB-drivers and re-boot PC
Connect phone and PC via USB-cable, check whether you can access phone via ADB: on Windows command prompt run
Code:
adb devices
If OK, download SuperSU Pro.zip and flash the ZIP
DL & How-to: https://www.supersupro.co/supersu-zip.html
If OK re-boot phone, then on phone install Link2SD app
DL: https://play.google.com/store/apps/details?id=com.buak.Link2SD&hl=en_US
If OK run Link2SD and uninstall all unwanted apps
Click to expand...
Click to collapse
Hello, I installed both drivers but when I run adb devices it says "adb is not recognized as a internal or external command or bat"
Following the steps of manually installing driver I see some kind of warning in windows device management as you can check in this screenshot: https://ibb.co/gzVPbKQ
I tried to look for adb.exe but the one I found belongs to Xiaomi Mi9 phone which I used to remove Xiaomi Mi9 applications. I tried to run that adb executable but only detects Xiaomi phone and doesn't detect Orange Rise 52 phone.
What am I doing wrong?
EDITED: After installed those drivers, computer didn't recognize Xiaomi MI 9 phone, in some way destroyed Xiaomi Mi 9 drivers so even with system restore didn't work to recover a working Xiaomi Mi 9 connection so I had to restore a Aomei backup image so next try will be on a virtual machine where it doesn't affect these drivers installations to the ones I have or windows has. Is there any reason adb command is not working after installing adb usb driver for orange rise 52?
Regards and thanks.

knopfler1980 said:
Hello, I installed both drivers but when I run adb devices it says "adb is not recognized as a internal or external command or bat"
Following the steps of manually installing driver I see some kind of warning in windows device management as you can check in this screenshot: https://ibb.co/gzVPbKQ
I tried to look for adb.exe but the one I found belongs to Xiaomi Mi9 phone which I used to remove Xiaomi Mi9 applications. I tried to run that adb executable but only detects Xiaomi phone and doesn't detect Orange Rise 52 phone.
What am I doing wrong?
EDITED: After installed those drivers, computer didn't recognize Xiaomi MI 9 phone, in some way destroyed Xiaomi Mi 9 drivers so even with system restore didn't work to recover a working Xiaomi Mi 9 connection so I had to restore a Aomei backup image so next try will be on a virtual machine where it doesn't affect these drivers installations to the ones I have or windows has. Is there any reason adb command is not working after installing adb usb driver for orange rise 52?
Regards and thanks.
Click to expand...
Click to collapse
Sorry I didn't have usb debugging enabled. I will follow next steps, thanks a lot!!

knopfler1980 said:
Sorry I didn't have usb debugging enabled. I will follow next steps, thanks a lot!!
Click to expand...
Click to collapse
Hello again, I'm trying to reboot in fastboot but it doesn't work, phone boots normally.
I also tried a article I found that says you can also can start fastboot pressing up volume and power and stop pressing when bot appears but bot dissapears really fast that it's imposible stop pressing up and power, I only can see a menu in the phone that says recovery, is that fastboot? Also when I run command "fastboot devices" it doesn't detect anything because the phone didn't boot as fastboot using:
Up and power
adb reboot bootloader
Do you have any idea why is happening this?
I installed drivers from https://gsmusbdriver.com/orange-rise-52 but it doesn't seem to work with fastboot (computer detects it normally but not fastboot because I guess is not a driver problem but fastboot booting that is not happening)
Regards and thanks in advance!!

@knopfler1980
If no su binary is found on Android, then you have no root. So all you at least have to do is to install su binary in Android's /system partition. This can be achieved using ADB.
The command sequence is as follows
Code:
adb devices
adb disable-verity
adb reboot
adb devices
adb shell "mkdir -p /data/local/tmp > 2/dev/null"
adb push c:\su /data/local/tmp > nul
adb shell "chmod 0777 /data/local/tmp/su"
adb shell "-c '/data/local/tmp/su'"
adb shell "setenforce 0"
adb shell "mount -o rw,remount -t auto /system"
adb shell "cp /data/local/tmp/su /system/bin"
adb shell "mount -o ro,remount -t auto /system"
adb reboot
adb devices
adb enable-verity
adb reboot
The su binary is downloadable from here: download it and extract the version that matches your phone's CPU-architecture to root of computer's drive C:

jwoegerbauer said:
@knopfler1980
If no su binary is found on Android, then you have no root. So all you at least have to do is to install su binary in Android's /system partition. This can be achieved using ADB.
The command sequence is as follows
Code:
adb devices
adb disable-verity
adb reboot
adb devices
adb shell "mkdir -p /data/local/tmp > 2/dev/null"
adb push c:\su /data/local/tmp > nul
adb shell "chmod 0777 /data/local/tmp/su"
adb shell "-c '/data/local/tmp/su'"
adb shell "setenforce 0"
adb shell "mount -o rw,remount -t auto /system"
adb shell "cp /data/local/tmp/su /system/bin"
adb shell "mount -o ro,remount -t auto /system"
adb reboot
adb devices
adb enable-verity
adb reboot
The su binary is downloadable from here: download it and extract the version that matches your phone's CPU-architecture to root of computer's drive C:
Click to expand...
Click to collapse
Thanks for the help. I had a warning with the second step:
"Disable-verify" only works for userdebug builds
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I will check on google.
Thanks a lot both for your support. I want to try sell my Xiaomi Mi 9 and Kospet Prime and buy a Ryzen 3900x and a motherboard, that's the reason I want to root the crap (sorry if someone has this phone) of Orange rise 52 because it's really slow.
Regards.

knopfler1980 said:
Thanks for the help. I had a warning with the second step:
"Disable-verify" only works for userdebug builds
I will check on google.
Thanks a lot both for your support. I want to try sell my Xiaomi Mi 9 and Kospet Prime and buy a Ryzen 3900x and a motherboard, that's the reason I want to root the crap (sorry if someone has this phone) of Orange rise 52 because it's really slow.
Regards.
Click to expand...
Click to collapse
I found this link https://stackoverflow.com/questions/38304435/how-to-enable-and-disable-dm-verity-on-android-devices that says:
"adb disable-verity will work only with adb version 1.0.33 and above. so upgrade your adb version"
So I'm going to try upgrade adb version in my virtual machine.
Thanks for the help guys!!

knopfler1980 said:
I found this link https://stackoverflow.com/questions/38304435/how-to-enable-and-disable-dm-verity-on-android-devices that says:
"adb disable-verity will work only with adb version 1.0.33 and above. so upgrade your adb version"
So I'm going to try upgrade adb version in my virtual machine.
Thanks for the help guys!!
Click to expand...
Click to collapse
Hi again.
I downloaded the latest SDK with latest adb version from here https://developer.android.com/studio/releases/platform-tools
I'm still getting the error
C:\platform-tools_r30.0.4-windows\platform-tools>adb disable-verity
disable-verity only works for userdebug builds
My adb version is as follows:
C:\platform-tools_r30.0.4-windows\platform-tools>adb version
Android Debug Bridge version 1.0.41
Version 30.0.4-6686687
Installed as C:\platform-tools_r30.0.4-windows\platform-tools\adb.exe
Is there anything else I'm not realizing?
Thanks in advance, I will keep searching.
Regards

knopfler1980 said:
Hi again.
...
I'm still getting the error
C:\platform-tools_r30.0.4-windows\platform-tools>adb disable-verity
disable-verity only works for userdebug builds
...
Click to expand...
Click to collapse
Signals that phone's Android isn't a user-debug build. Looks that phone's Android can't get rooted. But I'm not sure of this: all the phone's I had/have in use had/have a user-debug type Android OS.
FYI: You can query build type of your phone's Android OS
Code:
adb devices
adb shell "getprop ro.build.type"
BTW​: Android OS comes as one of these 3 builds
eng - Engineering build comes with default root access.
user - User build is the one flashed on production phones. Has no root access.
user-debug - User debug build does not come with default root access but can be rooted.

jwoegerbauer said:
Signals that phone's Android isn't a user-debug build. Looks that phone's Android can't get rooted. But I'm not sure of this: all the phone's I had/have in use had/have a user-debug type Android OS.
FYI: You can query build type of your phone's Android OS
Code:
adb devices
adb shell "getprop ro.build.type"
BTW​: Android OS comes as one of these 3 builds
eng - Engineering build comes with default root access.
user - User build is the one flashed on production phones. Has no root access.
user-debug - User debug build does not come with default root access but can be rooted.
Click to expand...
Click to collapse
Hi, thanks for your answer. I don't know what has happened but virtual machine is not detecting phone anymore, vmware workstation 15 pro problem. I was unable to see which's the problem. First started like 2 hours ago when physical machine without any changes didn't detect any of the phones, Xiaomi Mi 9 and Orange Rise 52. I checked windows device management and I saw that there was a problem with MTP driver, so I had to "update" (that's it's called in windows but I guess it installed it again) MTP driver for each phone. Now physical machine is detecting both but not vmware workstation 15 pro. I will keep checking it and I will try to run the command you adviced me.
In case Orange rise 52 is using a not compatible build, I will try again supersu method, but at the moment any of both will work until I get virtual machine detecting usb phone connection in VM -> Removable usb devices (it only appears 2 when I have 3 usb hard drives, one yubikey (hardware authentication) and identification card reader so it should detect 5 devices and it's only detecting 2).
Thanks for your time and help.

Related

Mac OSX root Nook Color

Adapted from pokey9000's original instructions and the instructions of macndroid along with many others posts and just expand on some areas for the inexperienced like myself. Some was also lifted from the nookdevs site too. This was just my detailed step by step process that worked.
1. Get any sized microsd card that you don't mind trashing the data on.
2. Download pokey9000's micro sd .img files from here:
http://www.mediafire.com/?cfddu9wt9d8dunl
3. To install .img onto sd card, put micro sd card into a reader into your usb port (not sure the steps if you are just using your Nook Color to write the image onto the micro sd.
4. To write images to disk on mac osx, you need to do the following:
-Find which drive the sd card is mapped to: type in the terminal this:
diskutil list
-Now unmount that drive typing this:
diskutil unmountDisk /dev/disk<#> (My computer is was disk2)
-It should say: Unmount of all volumes on disk<#> was successful
-Type: dd if= nooter_sdcard_40mb.img of=/dev/disk<#>
-Everything needed should copy right over to the card.
3. Plug the usb cable from your NC (Nook Color) into your computer. Make sure your NC is powered on and you see the drive mounted normally.
4. Take card out of the sd reader and put it into your NC.
5. Hold down the power button for 15 seconds.
6. Let go and wait 2 seconds then hold the power button for 2 more seconds. Let go.
7. After a little bit you will get a window that says, "New network interfaces have been detected". The image is as follows:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
8. Hit Cancel.
9. Once the devices show up, wait 30 seconds and remove the card from the NC device.
10. Hold down the power button for 15 seconds again, let go, wait 2 seconds and then hold the power button for 2 more seconds, then let go again.
11. Everything should now be installed and you should be at your normal screen and your NC volume will be mounted normally.
12. Now you need to install android SDK onto you mac if you don't already have it.
13. Download it from the following site: http://developer.android.com/sdk/index.html
14. To get adb working on my terminal, I just went to the directory android-sdk-mac_x86/tools I double clicked android and it opened the terminal and seemed to install what I needed. (somebody more experienced can edit this area if there is a better way to install what is needed for the computer to run adb commands)
15. I was now able to use adb commands in the terminal.
16. For the computer to recognize my NC as a device I typed the following into the terminal:
sudo sh -c "mkdir -p ~/.android; echo 0x2080 > ~/.android/adb_usb.ini; adb kill-server; adb devices"
17. To verify if I was now connected, I typed in: adb devices and it showed me a number for the device.
18. Now that the device is recognized, I installed an .apk file.
19. I typed:
adb install /<full directory to file>/<file name>.apk
20. I ejected the mounted disk like I normally would from finder.
21. I rebooted my nook once unplugged.
22. Check the extras area of NC and the program was now installed.
23. To remove a program first plug your NC in like normal until disk mounts
24. I first had to find out the exact name of the .apk file installed.
-Type: adb shell ls /data/app (This gives a list of all .apk files installed and their exact names)
25. Once I had the exact name I could remove the file.
-Type: adb shell rm -r /data/app/<full name of file>.apk
26. The file should now be gone. I didn't have to reboot, I just unmounted the drive and checked the extras section of the NC. It was gone. Some suggestions were to reboot to make sure the file was gone. Might be required but I didn't have to)
27. I now feel fully confident to install and uninstall .apk files as I like.
This all worked for me and everything is running smooth. It took me a few hours to get all this together as I have very little experience with this and had to seek out info for every little step. I tried to keep it as dumb as possible so people like myself would be able to do this.
Thanks for putting everyhing together. Anyway to cut the complication of uninstall apps through ADB out, I would recommend doing in through Astro File Manager. It's capable of Application Management too.
Great tutorial. I am a total noob and you have helped me successfully root my nook...so big ups. Next question I have is that there is a thread on how to install apk's without ADB. I believe it can be done simply through the browser. They have posted how to do it but not for Mac. Can someone post how to do that via OSX in a very detailed manner as done above for the root process? Thank you soooo much!
This was going great until I had to install the Android SDK. My only computer is a PPC, & apparently the SDK only works on an Intel machine.
Wow. I had no idea that it didn't work with PPC and only with Intel.
so my issue...
sudo sh -c "mkdir -p ~/.android; echo 0x2080 > ~/.android/adb_usb.ini; adb kill-server; adb devices"
when I type this into terminal it asks for my password
and then comes back and says that
sh: adb: command not found
sh :adb: command not found
Am I supposed to edit that command with some paths? I can't tell if I'm being daft. Thanks!
lanfearl said:
sudo sh -c "mkdir -p ~/.android; echo 0x2080 > ~/.android/adb_usb.ini; adb kill-server; adb devices"
when I type this into terminal it asks for my password
and then comes back and says that
sh: adb: command not found
sh :adb: command not found
Am I supposed to edit that command with some paths? I can't tell if I'm being daft. Thanks!
Click to expand...
Click to collapse
You can go into the AndroidSDK/tools directory and replace "adb" with "./adb" in the commands listed. This is if you don't have the path added already which seems like what's happening.
thanks for the step by step!
scratchfury said:
You can go into the AndroidSDK/tools directory and replace "adb" with "./adb" in the commands listed. This is if you don't have the path added already which seems like what's happening.
Click to expand...
Click to collapse
I'm having the same problem. Cannot get past the ADB step (step 16 listed above).
What on earth am I doing wrong? (BTW, I'm not a terminal kind of guy, so cardboard book-type direction is appreciated)...
http://i51.tinypic.com/2vtuuxi.png
ericshmerick said:
I'm having the same problem. Cannot get past the ADB step (step 16 listed above).
What on earth am I doing wrong? (BTW, I'm not a terminal kind of guy, so cardboard book-type direction is appreciated)...
http://i51.tinypic.com/2vtuuxi.png
Click to expand...
Click to collapse
so here was my way around the adb step.
you type in the sudo sh command as normal untill you get to the adb kill-server and adb devices part.
in your finder navigate to the folder that the adb file is in. it supposed to be where ever you extracted the android sdk.
android/tools/
Instead of typing adb kill-server you are going to drag and drop the adb file it self from the finder to the terminal window. in my case it looks something like this.
/Users/<my home folder>/android/tools/adb
your path will look different depending on where in the drive you have it located.
so now step 16 is going to look something like this.
sudo sh -c "mkdir -p ~/.android; echo 0x2080 > ~/.android/adb_usb.ini; /Users/<my home folder>/android/tools/adb kill-server; /Users/<my home folder>/android/tools/adb devices"
so every time you use the adb command you have to link it to the path on your hard drive. i know theres a way to change directories so that you just type adb and it finds it. but im not that knowledgeable with linux. and im sure someone that is could help us out with that.
rluzania said:
so here was my way around the adb step.
you type in the sudo sh command as normal untill you get to the adb kill-server and adb devices part.
in your finder navigate to the folder that the adb file is in. it supposed to be where ever you extracted the android sdk.
android/tools/
Instead of typing adb kill-server you are going to drag and drop the adb file it self from the finder to the terminal window. in my case it looks something like this.
/Users/<my home folder>/android/tools/adb
your path will look different depending on where in the drive you have it located.
so now step 16 is going to look something like this.
sudo sh -c "mkdir -p ~/.android; echo 0x2080 > ~/.android/adb_usb.ini; /Users/<my home folder>/android/tools/adb kill-server; /Users/<my home folder>/android/tools/adb devices"
so every time you use the adb command you have to link it to the path on your hard drive. i know theres a way to change directories so that you just type adb and it finds it. but im not that knowledgeable with linux. and im sure someone that is could help us out with that.
Click to expand...
Click to collapse
hmmm im stuck on the same step too... it seems when i do that it doesn't respond at all. and when i type in adb devices to check whether it's connect, it won't do anything.... sry..im a total noob ~_~
i would love to help you but if nothing is coming up i have no idea where to begin. i almost want to say that maybe the sd card didnt work on the nook. but im not sure if thats it either. or do you have the android sdk app launched? i know that opens up another terminal window that when you type in to doesn't do anything. umm let me know what you find.
r8? no adb
sdk is now at r8, not sure if that has anything to do with it. But in tools folder there is no adb.
newton1666 said:
sdk is now at r8, not sure if that has anything to do with it. But in tools folder there is no adb.
Click to expand...
Click to collapse
It has been moved to a new folder named "platform-tools" instead of "tools".
scratchfury said:
It has been moved to a new folder named "platform-tools" instead of "tools".
Click to expand...
Click to collapse
Thanks for that, I feel very silly.
rluzania said:
so here was my way around the adb step.
you type in the sudo sh command as normal untill you get to the adb kill-server and adb devices part.
in your finder navigate to the folder that the adb file is in. it supposed to be where ever you extracted the android sdk.
android/tools/
Instead of typing adb kill-server you are going to drag and drop the adb file it self from the finder to the terminal window. in my case it looks something like this.
/Users/<my home folder>/android/tools/adb
your path will look different depending on where in the drive you have it located.
so now step 16 is going to look something like this.
sudo sh -c "mkdir -p ~/.android; echo 0x2080 > ~/.android/adb_usb.ini; /Users/<my home folder>/android/tools/adb kill-server; /Users/<my home folder>/android/tools/adb devices"
so every time you use the adb command you have to link it to the path on your hard drive. i know theres a way to change directories so that you just type adb and it finds it. but im not that knowledgeable with linux. and im sure someone that is could help us out with that.
Click to expand...
Click to collapse
I wanted to thank you for this, as I was getting frustrated changing my bash profile. Anyone else in this boat don't forget you need to drill down (cd) to where the adb is, in my case downloaded sdk just recently it's in platform-tools folder, to do the adb install.
If you just upgraded from an earlier version of the sdk and don't see adb, even in platform-tools, just run an Update All... under Installed packages. Hopes this helps others.
hey people. I really appreciate the work that has been done so far.
I'm trying to format a micro SD card with dd. Here's the problem: I was able to unmount the SD card in terminal but then it won't find the nooter disk img:
Code:
sh-3.2# diskutil unmountDisk /dev/disk1
Unmount of all volumes on disk1 was successful
sh-3.2# dd if=nooter_sdcard_40mb.img of=/dev/disk1
dd: nooter_sdcard_40mb.img: No such file or directory
what am I doing wrong? I have the file in question, and this isn't a complicated step. Thanks for any help.
plariers said:
what am I doing wrong? I have the file in question, and this isn't a complicated step. Thanks for any help.
Click to expand...
Click to collapse
My bad, figured it out. In case anyone else runs into this, in OSX you can drag and drop files into terminal to insert accurate file paths
worked perfectly
You are my hero!!!!!!!
I've been banging my head against a wall for HOURS UPON HOURS trying to get the adb to work. And you fixed me up in a few minutes. I love you so much right now. Seriously.
It lists my device # after step 16, but I can't install the packages then.
I got this far, and then when I try the command to adb install the app, I get
-bash:adb: command not found
any tips?

[HOW-TO] Install & Use ADB tool | Android Debug Bridge | Drivers - Videos - Tutorial

[HOW-TO] Install & Use ADB tool | Android Debug Bridge | Drivers - Videos - Tutorial
WHAT DO I NEED?
FIRST: You need drivers, you should have them already if you are rooted eather with Indirect or Cfoesch methods.
If you don't have them then download ADB + Fastboot + Drivers.zip [There is NO need to install SDK on Windows]
To install Nook Tablet USB and ADB drivers correctly please watch the following video:
1. Windows
2. Ubuntu Linux
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
SECOND: In order to use "adb remount" you need to install [App]: ADB Root Hijack [ADB Runs as Root now] by Indirect
LET'S START...
*All the examples refers to /data/app path you can change to /system/app or any other path you need in your NOOK tablet
- Plug your Nook tablet to your computer
- Open a CMD terminal on Windows:
Start>>run>> type cmd>> click OK (WinXP)
Start>> in search box type cmd>> right click Run as Administrator (Win7)
- Once opened type:
*Let's say your adb tools are in C:\nookroot folder
cd C:\nookroot
adb devices (If you get a code of numbers and letter means your device is recognized, if not then something is wrong with your drivers > Troubleshoot)
adb remount (to change from r/o to r/w)
-----------------------------------------------------
Commands to Fix Permissions: (There is no need of this, when you push files it gives right permissions)
adb shell chmod 644 /system/app/appname.apk (for a specific application)
adb shell chmod 644 /data/app/appname.apk
adb shell chmod 644 /system/app/*.apk (for all the applications)
adb shell chmod 644 /data/app/*.apk
-----------------------------------------------------
Commands to Change Owner to Root:
adb shell chown root /system/app/appname.apk
Click to expand...
Click to collapse
Installing an Aplication .apk
Put the .apk file into C:\nookroot folder and type
Code:
adb install [B]appname[/B].apk
Uninstalling an Aplication
There is an uninstall adb commans that always shows failure!!!
So we are going to use Adb Shell:
Code:
adb shell
# cd data/app
# ls
# rm -r appname.apk
# ls (You will not find this application, you just removed it!)
Ctrl+c to exit shell mode
Push & Pull commands
Pull:
Code:
adb pull /data/app/appname.apk
If you want to PULL all the files located in a folder then:
Code:
adb pull /data/app test
to pull all the .apk's located /data/app and save them into a folder that it will create in C:\nookroot named test
Push:
Code:
adb push appname.apk /data/app
If you want to PUSH all the files located in a folder then:
Code:
adb push test /data/app
to push all the .apk's located in C:\nookroot\test folder to /data/app
Close ADB
Code:
adb reboot (to reboot your Nook Tablet)
--------------------------
adb kill-server (to stop adb server)
exit
good! is there a menu that contains full adb commands?
Nicely done. This is the best write up of how to use basic adb commands I have seen. Thanks for posting..
ms2003 said:
good! is there a menu that contains full adb commands?
Click to expand...
Click to collapse
type adb help to get the full list of them
Where's the troubleshooting FAQ? My Nook shows up as an Android phone in Device Manager, and adb doesn't list it.
Nevermind, got the drivers installed right. Stupid Windows.
Update april/10!!!
Added video to install SDK and ADB tools in Ubuntu Linux
~ Veronica
How do you change the name of a file??
Thank you
coolfreebies
coolfreebies said:
How do you change the name of a file??
Thank you
coolfreebies
Click to expand...
Click to collapse
If you refer to the .ini file ln windows, right click then edit. If on Ubunto, right click then open with the a text editor (i dont remember the name - just woke up lol).
~ V
Sent from my Nook Tablet using xda premium
Excellent. This will come in handy once I get time to start rooting the NT. Thanks
I am trying to create a batch file to run the ADB pull command so I can have my PC task scheduler run an Android backup automatically.
The one thing that is stumping me, though, is how to succesfully have the batch file auto date stamp the folder. I have this:
adb pull /sdcard/ /Galaxy Nexus Auto Backup/sdcard %date:~-10,2%-%date:~-7,2%-%date:~-4,4%/
which displays correctly in the CMD prompt, but doesn't run. It instead brings up the list of commands and switches.
If I use the standard:
adb pull /sdcard/ /sdcard/
it works correctly. Any suggestions on how to get the date stamp idea to work?
Thanks!!!
-David
Hello, a link took me here because i want to know how to use "adb".
I've read your instructions on how to use adb and i search it in youtube to see it in action.
Now i want to know the difference of these commands:
adb install
and
adb push
because im confused. but i believe they're both the same,am i right? to install an app.
and same as the adb pull and adb shell? uninstalling the app.
please, correct me if im wrong
This is a bit confusing... I bricked my Infinity and I need it back ASAP, but whenever I try to push a custom ROM into the SD, it always says "protocol failure", what could this be? I got the adb drivers installed...
Win 8 Driver Signature Enforcement Fix
Well, this is my first post on xda. BTW I am a noob, regular schlub, loser user but I do try to take xda's "find it before you ask an idiotic question" policy to heart. I was able to find this solution before asking for help and thought i would share it here. All I have done is summarize the original post and updates. I hope y'all find this helpful.
the problem i ran into was the drivers in the attached .zip file could not be installed on a Windows 8 machine. The error was a failure to install b/c of an error in reading the has of one of the catalog files. I found a site that gives you a solution to this error.. Here's a summary:
Go to cmd prompt and enter "| shutdown -o -r -t 0"
Wait for bit...
Click TROUBLESHOOT
Click ADVANCED OPTIONS
Click WINDOWS STARTUP SETTINGS
Click RESTART
The computer will restart and list of options will appear before logging in.
Select the Disable driver signature enforcement option. It was number 7 on the list i got.
To reenable the driver signature enforcement, just restart your computer normally.
Since this is my first post xda won't let me link the source site, so here it is below in case you would like to visit it. All credit goes to this guy.:good:
laslow.net/2012/03/14/disable-driver-signature-enforcement-in-windows-8/​
Can you developers help me please!!
I've been doing just fine with ADB, etc. I have been flashing for a long time and now all of a sudden ADB is not working. I've installed SDK twice, unistalled and installed drivers. Did everything. I get it that this just won't work on Windows 7 so I'm back on XP where I never had a problem and currently am. Yes, debugging is on on the phone too. I'm above the basics. When I plug in an LG it just says sooner ADB (something like that and I know your familiar). When I plug in a Samsung device manager says Samusng Android Composite ADB interface. And when I direct the driver install to winsub inf I always get "the specified location does not contain information about your device". Also ADB devices is not recognizing anything either. I event tried this with the Samsung in download mode.
Thanx
Good tutorial, it´s help me a lot. Thanks!!!
How do I know where adb install ?
PalAlexander said:
How do I know where adb install ?
Click to expand...
Click to collapse
On Windows, typically C:\Program Files\Android\android-sdk\platform-tools\
ADB use instructions clearly formatted for referenxce
Hi, this is a post I just hope will be helpful. When I started using ADB I would look at the internal Help and the formatting was so screwed up it was hard to understand. Fighting with this for the umpteenth time last night I got mad, pulled out a code editor (too bad it wasn't emacs because that's probably the way the file was made-- either that or it was created as a man page) and spent a half hour straightening things out. The help is so much more useful now I'm putting it here in the hope it may help you, too. Now let's see if I should have formatted this as Code rather than a Quote to keep lines from breaking, etc.
Android Debug Bridge version 1.0.31
-a - directs adb to listen on all interfaces for a c onnection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r unning.
-s <specific device> - directs command to the device or emulator with the given
serial number or qualifier. Overrides ANDROID_SERIAL environment variable.
-p <product name or path> - simple product name like 'sooner', or a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT environment variable is used,
which must
be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
('-l' will also list device qualifiers)
connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devic es.
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward --list - list all forward socket connections.
the format is a list of lines with the following format:
<serial> " " <local> " " <remote> "\n"
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only) adb forward --no-rebind <local> <remote>
- same as 'adb forward <local> <remote>' but fails
if <local> is already forwarded:
adb forward --remove <local> - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> -- iv <hex-encoded i
<file>
- push this package file to the device and instal l it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data )
('-s' means install on SD card instead of inter nal storage)
('--algo', '--key', and '--iv' mean the file is encrypted already)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories )
adb bugreport - return all information from the device
that should be included in a bug report.
adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem]
[<packages...>]
- write an archive of the device's data to <file> .
If no -f option is supplied then the data is written to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)
(-obb|-noobb enable/disable backup of any installed apk expansion
(aka .obb) files associated with each application; the default
is noobb.)
(-shared|-noshared enable/disable backup of the
device's
shared storage / SD card contents; the default is noshared.)
(-all means to back up all installed applications)
(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)
(<packages...> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)
adb restore <file> - restore device contents from the <file> backup archive
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb status-window - continuously print device status for a specifie d device
adb remount - remounts the /system partition on the device re ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or
recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th e specified
port networking:
adb ppp <tty> [parameters] - Run PPP over USB. Note: you should not automatically
start a PPP connection.
---<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1 [parameters]
- Eg. defaultroute debug dump local notty usepeerdns
adb sync notes:
adb sync [ <directory> ] <localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition is updated.
environmental variables:
ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
Click to expand...
Click to collapse
Best wishes,
Leon Malinofsky
lavero.burgos said:
WHAT DO I NEED?
FIRST: You need drivers, you should have them already if you are rooted eather with Indirect or Cfoesch methods.
If you don't have them then download ADB + Fastboot + Drivers.zip [There is NO need to install SDK on Windows]
To install Nook Tablet USB and ADB drivers correctly please watch the following video:
1. Windows
2. Ubuntu Linux
SECOND: In order to use "adb remount" you need to install [App]: ADB Root Hijack [ADB Runs as Root now] by Indirect
LET'S START...
*All the examples refers to /data/app path you can change to /system/app or any other path you need in your NOOK tablet
- Plug your Nook tablet to your computer
- Open a CMD terminal on Windows:
Start>>run>> type cmd>> click OK (WinXP)
Start>> in search box type cmd>> right click Run as Administrator (Win7)
- Once opened type:
*Let's say your adb tools are in C:\nookroot folder
Installing an Aplication .apk
Put the .apk file into C:\nookroot folder and type
Code:
adb install [B]appname[/B].apk
Uninstalling an Aplication
There is an uninstall adb commans that always shows failure!!!
So we are going to use Adb Shell:
Code:
adb shell
# cd data/app
# ls
# rm -r appname.apk
# ls (You will not find this application, you just removed it!)
Ctrl+c to exit shell mode
Push & Pull commands
Pull:
Code:
adb pull /data/app/appname.apk
If you want to PULL all the files located in a folder then:
Code:
adb pull /data/app test
to pull all the .apk's located /data/app and save them into a folder that it will create in C:\nookroot named test
Push:
Code:
adb push appname.apk /data/app
If you want to PUSH all the files located in a folder then:
Code:
adb push test /data/app
to push all the .apk's located in C:\nookroot\test folder to /data/app
Close ADB
Code:
adb reboot (to reboot your Nook Tablet)
--------------------------
adb kill-server (to stop adb server)
exit
Click to expand...
Click to collapse
When I run "adb devices" in command prompt, it says "list of devices attached" then a blank line.
The drivers for my tablet are fine because in 'My computer' my drive is listed as 'Xolo TW800' along with other HDD drives, without me installing any drivers for the tablet.
What to do?
Thanks

[Guide][ARM now supported] Android development/debugging on ChromeOS - ADB & fastboot

[Guide][ARM now supported] Android development/debugging on ChromeOS - ADB & fastboot
What you need to know before we begin:
ChromeOS (Or Chromium OS if you installed it on a non-chromebook) is based on Unix, and you can access a terminal with button combinations. This part of the guide is easy, but if I can get apt-get working, that's where it gets really complex.
What you'll need
A computer running ChromeOS/Chromium OS
An internet connection on it, or the files on a USB drive (and you to copy them to Downloads)
A little Linux knowledge
Some patience
1.) Download the correct files for system:
ChromeOS/ChromiumOS on an x86 based PC
ChromeOS on an ARM based PC
2.) When the zip has downloaded, extract it so both the adb and fastboot files are in the Downloads folder
3.) It's now time to access the terminal mode. It might be a good idea to get this guide on a phone or some other device so you don't have to switch out at any time.
If you're using a chromebook or an official chromeOS build, you need to access developer mode. Note: this will wipe all your data for security reasons. Full info is here: Chromium Project: Developer mode
4.) Press Ctrl-Alt-F2 on your keyboard, and the whole screen will be a terminal. Read the info at the top, and then login
NOTE: If you're using Chromium OS vanilla builds, the username and password are as follows:
Code:
User: chronos
Pass: facepunch
5.) You now have a localhost terminal, with no root permissions.
6.) Run this code, to locate the location of your Downloads folder:
Code:
ls /home
7.) Mount the filesystem as follows:
Code:
mount -o remount,rw /
8.) Using the name other than "root" and "user", run these commands:
Code:
cp /home/<name>/user/Downloads/adb /sbin/adb
For example, the Chromium one would be:
Code:
cp /home/chronos/user/Downloads/adb /sbin/adb
Repeat for Fastboot (replace "adb" with "fastboot" without the quotes)
9.) Test that it has worked by running:
Code:
adb
It should result in adb working
10.) You're done, adb and fastboot should work. You might need to reboot in some cases for it to work fully
11.) For more stuff, like Java and ant, wait a while until I work out how to get apt-get installed from dpkg
Credits:
Thanks to KMyers for compiling Fastboot for ARM devices, thread here
Reserved
And again
Once more, just in case
Whenever I go to check my path I get this response:
"cat: /usr/local/bin:/usr/bin:/bin:/opt/bin:/home/chronos/user/Downloads/android-sdk-linux/platform-tools: no such file or directory"
Help?
awacker89 said:
Whenever I go to check my path I get this response:
"cat: /usr/local/bin:/usr/bin:/bin:/opt/bin:/home/chronos/user/Downloads/android-sdk-linux/platform-tools: no such file or directory"
Help?
Click to expand...
Click to collapse
That is perfectly normal, every Linux based thing says no file or directory after the path to my knowledge
Sent from my GALAXY NEXUS using Tapatalk 4 (VIP)
Quinny899 said:
That is perfectly normal, every Linux based thing says no file or directory after the path to my knowledge
Sent from my GALAXY NEXUS using Tapatalk 4 (VIP)
Click to expand...
Click to collapse
And so it seems! Now it appears that any adb command returns a "Permission denied" message. Ideas?
Update: Same response for fastboot commands.
awacker89 said:
And so it seems! Now it appears that any adb command returns a "Permission denied" message. Ideas?
Update: Same response for fastboot commands.
Click to expand...
Click to collapse
Try this:
Code:
cd /home/chronos/user/Downloads/android-sdk-linux/platform-tools
chmod 755 adb
chmod 755 fastboot
Then exit back to the login screen on the terminal, login again and try running adb
Quinny899 said:
Try this:
Code:
cd /home/chronos/user/Downloads/android-sdk-linux/platform-tools
chmod 755 adb
chmod 755 fastboot
Then exit back to the login screen on the terminal, login again and try running adb
Click to expand...
Click to collapse
Still no dice
I'm starting to lose hope. I just keep getting "permission denied."
I thought maybe trying this would do the trick but still no response.
Code:
sudo ./adb devices
[code]
P.S. Guess I should mention that running just adb returns command not found, so I've been using ./adb. Maybe I just don't know what the hell I'm doing but I just can't get it to work.
Hmmm. Well, The SDKx86 (87mb) that were in the instructions so, I downloaded the ADT (399mb) instead, just a hint.
Is there a specific branch that is required to be on in chromeos in order for terminal to act correctly? I never get any chance to login once i get into the "crosh" terminal.
Quinny899 said:
That is perfectly normal, every Linux based thing says no file or directory after the path to my knowledge
Sent from my GALAXY NEXUS using Tapatalk 4 (VIP)
Click to expand...
Click to collapse
Instead of doing
Code:
cat $PATH
you should do
Code:
echo $PATH
The cat command is trying to concatenate a file with the name of your full path, which obviously doesn't exist. echo tells you the value of the $PATH variable, which is what you're actually trying to do.
I was trying to get this to work on my Chromebook Samsung Series 5 550
Furst thing I noticed was the absence of an f2 key - tried a usb keyboard no joy
I assume what I am trying to launch is Shell which can only be accessed with a Chrome OS device in developer mode. I really want to get this working so I will try activating developer mode and report back.
Update:
So Developer Mode resets and wipes your device (doh!) back to Step 1
Update 2: (Dev Mode activated function key labelled as "->" works as f2 and launches shell successfully"
Has anyone got this working? I noticed that the folder coming out of the SDK zip is called "sdk" but all the commands listed in the guide use "android-sdk-linux"
I used "sdk" and just get the Permission Denied issue even after chmod on adb
Will this work on the Samsung Series 3 with the ARM processor?
imtoomuch said:
Will this work on the Samsung Series 3 with the ARM processor?
Click to expand...
Click to collapse
Supposedly pulling the adb binary from an android device (/system/bin/adb) and using that would work. Don't know about fastboot though
Sent from my Galaxy Nexus using Tapatalk 4 Beta
jambamkin said:
I was trying to get this to work on my Chromebook Samsung Series 5 550
Furst thing I noticed was the absence of an f2 key - tried a usb keyboard no joy
I assume what I am trying to launch is Shell which can only be accessed with a Chrome OS device in developer mode. I really want to get this working so I will try activating developer mode and report back.
Update:
So Developer Mode resets and wipes your device (doh!) back to Step 1
Update 2: (Dev Mode activated function key labelled as "->" works as f2 and launches shell successfully"
Has anyone got this working? I noticed that the folder coming out of the SDK zip is called "sdk" but all the commands listed in the guide use "android-sdk-linux"
I used "sdk" and just get the Permission Denied issue even after chmod on adb
Click to expand...
Click to collapse
I had the same problems. And just stopped trying about 2 days of trying to figure it out.
I was able to find a version of adb compiled for ARM but it was from an older version which made it a no go on my Nexus 4 (4.2.2 requires updated adb to work with the new security enhancements built in).
I tried it on my Series 5 550 chromebook. Can't seem to get it to work.
I do all the commands and it shows up in echo $PATH but then when i try adb anything it says permission denied. I do the chmod 755 and still permission denied.
i tried to exit back to the login and then the folder wasn't in the echo path anymore. adb not working either. I tried rebooting chromebook and it wasnt there either.
Would it be cheating to get it running with crouton? Because I did get that done.
Sent from my NookColor using xda premium
yeah i've been having the same issue with my samsung 5 series chromebook. "permission denied" and all that. But on the fun side, i learned if you want to really make your chromebook bug-out; type cat adb whilst in /platform-tools.

[HOW TO] ADB Sideload/Push if you Wipe Internal Storage & No ROM to Flash [19 May 15]

[HOW TO] ADB Sideload/Push if you Wipe Internal Storage & No ROM to Flash [19 May 15]
How to Sideload in TWRP if you erase your Internal Memory and don't have a ROM to Flash or Restore
Warning!
Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Requirements
Code:
#include
/*
* Unlocked Phone @ HTCDEV
* Custom Recovery
*/
Before You Start - Update Android SDK - How to set up Android SDK (ADB)
Instructions
MAKE SURE YOU BACK UP YOUR SD CARD FIRST!!!!!!!!
Make Sure HTC Drivers are installed and ADB is already working
1. Reboot into TWRP
2. in TWRP, Hit andvanced and find Sideload
3. Swipe to start Sideload
4. Open a CMD Prompt window and Change Directories to where your adb.exe is
5. type adb devices and it should show your device conntected and say sideload
6. Your ZIP file should already be in your adb folder - See Example Below
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
7. You are now ready to push the zip.....
8. type adb sideload nameofzip.zip <------------See Example Below
9. Wait until it says 100% and reboot back into recovery to flash the ROM
10. If hitting power does not make the screen come one, type adb reboot recovery
11. if adb reboot recovery does not work, hold power and volume down until it reboots to fastboot then go to recovery
ADB Push from Recovery - If Sideload Fails For You ​
adb push rom.zip /data/media/0/
​
Click to expand...
Click to collapse
If You have any Troubles with ADB
Koush Universal ADB Driver - Works on Windows 8 - Thanks xeroxide
YouTube Video for ADB Help
How to install ADB Drivers for any Device
​
​
​
FAQ
If your Output looks similiar to this below, then you are not in sideload mode or you typed the command incorrectly
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\William>cd Downloads\ADB
C:\Users\William\Downloads\ADB>adb sideload Slim-nozomi-4.2.2.build.6-OFFICIAL
Android Debug Bridge version 1.0.26
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
environment variable.
-p <product name or path> - simple product name like 'sooner', or
a relative/absolute path to a product
out directory like 'out/target/product/sooner'.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
devices - list all connected devices
connect <host>:<port> - connect to a device via TCP/IP
disconnect <host>:<port> - disconnect from a TCP/IP device
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] <file> - push this package file to the device and i
nstall it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data
)
('-s' means install on SD card instead of inter
nal storage)
adb uninstall [-k] <package> - remove this app package from the device
('-k' means keep the data and cache directories
)
adb bugreport - return all information from the device
that should be included in a bug report.
adb help - show this help message
adb version - show version num
DATAOPTS:
(no option) - don't touch the data partition
-w - wipe the data partition
-d - flash the data partition
scripting:
adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb status-window - continuously print device status for a specifie
d device
adb remount - remounts the /system partition on the device re
ad-write
adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th
e specified port
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connection.
<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
[parameters] - Eg. defaultroute debug dump local notty usepeerdns
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be u
pdated.
- If it is "system" or "data", only the corresponding partition
is updated.
C:\Users\William\Downloads\ADB>-d
'-d' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\William\Downloads\ADB>-d\
'-d\' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\William\Downloads\ADB>-d: \
'-d:' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\William\Downloads\ADB>:-d
C:\Users\William\Downloads\ADB>-d\
'-d\' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\William\Downloads\ADB>-d
'-d' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\William\Downloads\ADB
DO THE FOLLOWING - (Refer to Post 1 Before you start for Picture Example)
1. Run sdk manager and update all the 4.1.2 - 4.4.2 binaries, you will see installed if you have done so
2. Reboot into TWRP
3. Go to advanced
4. Touch ADB Sideload
5. Swipe To start sideload
6. in command promt example: cd c:\android\sdk\platform-tools (that is where my adb files are at)
7. Once you have navigated to where your adb is at in command promt type adb devices
8. When you type adb devices, it should show your HTCxxjxihdjiw (whatever yours is) and Sideload which indicates you are set up properly
9. Once you see the above type adb sideload nameofzip.zip
If ADB does not See your device
1. After Download, go to My Computer, your C Drive
2. Create a folder named Android
3. Extract the Android SDK folder inside the Android Folder you just made
You should have the following in the folder only
- eclipse
- sdk
- SDK Manager.exe
4. Double click and open SDK Manager.exe
5. under the 4.1.2, 4.2.2, 4.3, and 4.4.2 section, install all the updates possible and it will show installed next to everything under 4.1.2 and 4.2.2
6. Restart Windows after all the updates
7. Open Command Prompt
8. cd c:\android\sdk\platform-tools
9. type adb devices, if you see your phone then reboot to recovery
10. In recovery, type adb devices, it should show your device in recovery, as a last resort you can use the adb push command
11. However, if you want to tstill try sideload, click advanced
12. Swipe to start Sideload
13. type adb devices and if it shows your device and says Sideload, follow the rest of the instructions
If ADB does not See your device in Recovery or Sideload - Thanks slayaman22232
1. After doing the above and getting ADB to work, but you are still having issues with your device not being seen in Recovery or Sideload even after installing latest HTC Drivers. Do the following, go to Universal ADB Driver link and install.
Thanks for making a thread like this, not sure if it needs to be in development but was definitely necessary for those who don't like to read through threads completely
Sent from my HTC One using Tapatalk 4 Beta
Nick281051 said:
Thanks for making a thread like this, not sure if it needs to be in development but was definitely necessary for those who don't like to read through threads completely
Sent from my HTC One using Tapatalk 4 Beta
Click to expand...
Click to collapse
Thanks yea just figured most traffic is in here and I had to do this upgrading my ROM especially when my internal memory was wiped
Sent from my HTC One using xda premium
bdorr1105 said:
Thanks yea just figured most traffic is in here and I had to do this upgrading my ROM especially when my internal memory was wiped
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
I had to as well, to make matters worse, some of my files existed but didn't show up, I eventually got off what I needed though
Sent from my HTC One using Tapatalk 4 Beta
Sideloading does work but it's not the best method, for any Aroma based roms. (ARHD)(Trickdroid)..etc
Aroma is known to freeze and restart on it's own and everytime it does this you have to recopy the entire rom through sideload all over again.
The way that makes more sense is to just adb push rom.zip /data/media/0
this way if/when aroma restarts /freezes you already have the rom on the freshly formatted Sdcard
and all you have to do is restart the flash, not wait on it to copy all over again.
Of course having a USB OTG with the rom / backups on it eliminates the need for all this.
clsA said:
Sideloading does work but it's not the best method, for any Aroma based roms. (ARHD)(Trickdroid)..etc
Aroma is known to freeze and restart on it's own and everytime it does this you have to recopy the entire rom through sideload all over again.
The way that makes more sense is to just adb push rom.zip /data/media/0
this way if/when aroma restarts /freezes you already have the rom on the freshly formatted Sdcard
and all you have to do is restart the flash, not wait on it to copy all over again.
Of course having a USB OTG with the rom / backups on it eliminates the need for all this.
Click to expand...
Click to collapse
That's not true. Sideload works just fine, in fact it is still on my phone.
Sent from my HTC One using Tapatalk 4 Beta
Nick281051 said:
That's not true. Sideload works just fine, in fact it is still on my phone.
Sent from my HTC One using Tapatalk 4 Beta
Click to expand...
Click to collapse
Thanks for clearing that up brother appreciate it
Sideload is how I got my phone setup for 4.2.2
Sent from my HTC One using xda premium
shook187 said:
Sideload is how I got my phone setup for 4.2.2
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
That is the method I also used. Thanks
Sent from my HTC One using xda premium
clsA said:
Sideloading does work but it's not the best method, for any Aroma based roms. (ARHD)(Trickdroid)..etc
Aroma is known to freeze and restart on it's own and everytime it does this you have to recopy the entire rom through sideload all over again.
The way that makes more sense is to just adb push rom.zip /data/media/0
this way if/when aroma restarts /freezes you already have the rom on the freshly formatted Sdcard
and all you have to do is restart the flash, not wait on it to copy all over again.
Of course having a USB OTG with the rom / backups on it eliminates the need for all this.
Click to expand...
Click to collapse
It creates and leaves a sideload.zip file on the sdcard. Aroma freezes when you use the buttons instead of using the power button for going to the page, it also freezes if you don't clear cache before you start.
I am surprised by the number of people that don't know about adb sideload!!
delete
I could not get this to work for the life of me. When I typed in the commands it acted as if I asked for help and spit out everything adb could do. However I did try:
Code:
adb push rom.zip /data/media/
And it worked just fine. As long as you're able to see your device with adb devices why bother with ADB Sideload? Not being a jerk just asking questions
nolimit78 said:
I could not get this to work for the life of me. When I typed in the commands it acted as if I asked for help and spit out everything adb could do. However I did try:
Code:
adb push rom.zip /data/media/
And it worked just fine. As long as you're able to see your device with adb devices why bother with ADB Sideload? Not being a jerk just asking questions
Click to expand...
Click to collapse
Didn't you do that from recovery because when you are in recovery adb push will not work. The reason sideload is in recovery is because that very reason. Additionally the reason it looked like you were asking for help is because you didn't have sideload running. This is emergency only or upgrade to 4.2
Sent from my HTC One using xda premium
bdorr1105 said:
Didn't you do that from recovery because when you are in recovery adb push will not work. The reason sideload is in recovery is because that very reason. Additionally the reason it looked like you were asking for help is because you didn't have sideload running. This is emergency only or upgrade to 4.2
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Yeah it was from recovery however, I tried adb sideload as the instructions stated. The file I wanted to push was in my adb folder. I made sure through TWRP I was in adb sideload (advanced > slide for adb sideload) typed in adb sideload rom.zip and It would just spit out something like this. So having a bit of experience in adb I tried adb push and thankfully it worked. My question was, instead of going through that hassle of adb sideload (which some people are having issues with) why not just use adb push instead? Seems that it's a redundant process is all.
The reason I started all of this is because I wanted to completely reformat the sd card because I had a sneaky suspicion that I had some data somewhere taking up data and I wanted it cleared. Ended up saving me about 5-6GB in total. So it was totally worth it
nolimit78 said:
Yeah it was from recovery however, I tried adb sideload as the instructions stated. The file I wanted to push was in my adb folder. I made sure through TWRP I was in adb sideload (advanced > slide for adb sideload) typed in adb sideload rom.zip and It would just spit out something like this. So having a bit of experience in adb I tried adb push and thankfully it worked. My question was, instead of going through that hassle of adb sideload (which some people are having issues with) why not just use adb push instead? Seems that it's a redundant process is all.
The reason I started all of this is because I wanted to completely reformat the sd card because I had a sneaky suspicion that I had some data somewhere taking up data and I wanted it cleared. Ended up saving me about 5-6GB in total. So it was totally worth it
Click to expand...
Click to collapse
Adb push should not work in recovery, they may work in sideload mode but I doubt it. If it does than great but you still have to be in sideload mode. Also it's meant to be easy because there are no paths which a lot of people struggle with and who are not familiar with adb. This automatically pushes to the root of your sd. You don't have to know anything else. Do what works for you. This guide is for people who have issues and ran into the situation
Sent from my HTC One using xda premium
If adb sideload didn't work it would have never been incorporated into twrp. Sideloading has been around for a long time. People just don't take the time to read up on it. Adb sideloading works %100! It's nice that you created this thread and actually read intelligent posts for a change...
Sent from my HTC One using xda premium
skulldreamz said:
If adb sideload didn't work it would have never been incorporated into twrp. Sideloading has been around for a long time. People just don't take the time to read up on it. Adb sideloading works %100! It's nice that you created this thread and actually read intelligent posts for a change...
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
+1 man thanks
any idea what to do when twrp wont completely start up sideload? it just sits there telling me its starting the adb feature, but never actually does it, so i cant push anything
crash087 said:
any idea what to do when twrp wont completely start up sideload? it just sits there telling me its starting the adb feature, but never actually does it, so i cant push anything
Click to expand...
Click to collapse
If it stays on ADB Sideload starting your fine man, just have a command promt open and type adb devices and it should show your device connected to the computer and say Sideload

Honor 9 doesn't boot to system (Stuck + Bootloop)

Hello,
currently my Honor doesn't boot into the system anymore after trying to flash the OpenKirin's RROS v5.8.4 for Honor 9 Rom. I can boot to Bootloader but not to TWRP. When i tried to flash the Recovery via fastboot, I just get the following error message:
C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp-3.1.1-0-stf.img
target reported max download size of 471859200 bytes
sending 'recovery' (18706 KB)...
OKAY [ 0.419s]
writing 'recovery'...
FAILED (remote: Command not allowed)
finished. total time: 0.429s
This happens with every file i tried to flash. My guess is that maybe the USB Debugging has been somehow disabled.
And when I try to boot to the system it Stuck at "Your device has failed verification and may not work properly" and restart every 2 - 3 min.
I also tried this method: https://forum.xda-developers.com/honor-9/how-to/guide-honor-9-t3653719 but it didn't work either because i get error messages after pressing on "update.bat". Maybe because of the USB Debugging.
My device is STF - L09 Europe.
I hope you can help me. Thanks.
Is your bootloader locked? You turned OEM Unlock Off in Developer Settings?
4r44444 said:
Is your bootloader locked? You turned OEM Unlock Off in Developer Settings?
Click to expand...
Click to collapse
Bootloader is unlocked and OEM ist activated.
I finally managed to restore my device!!! I did it with DC Phoenix.
But i notice four things:
- Only the Homebutton didn't work. ( I got onscreen buttons)
- I have a completely wrong model number: generic_a15 (hi3660). Normally it called: STF - L09
- I still can't flash TWRP because of the error message which i already got before: "FAILED (remote: Command not allowed)"
- The NFC Logo in the status bar flashes all the time
Navigation buttons don't work because you probably flashed a factory version L09C432B130, in which this is a known bug. Use a rebrand guide to downgrade to B120 and then update again to B130 via OTA. That will resolve all other issues.
For TWRP you will again need to unlock bootloader because now it is locked and also disable FRP.
lsvet1 said:
Navigation buttons don't work because you probably flashed a factory version L09C432B130, in which this is a known bug. Use a rebrand guide to downgrade to B120 and then update again to B130 via OTA. That will resolve all other issues.
For TWRP you will again need to unlock bootloader because now it is locked and also disable FRP.
Click to expand...
Click to collapse
ok thanks. Where can i get the B120?
Ayeshetu said:
ok thanks. Where can i get the B120?
Click to expand...
Click to collapse
Rebrand guide.
I got this error message:
https://youtu.be/8ex2-dSl6Q8
Phone is on Fastboot mode. Bootloader and FRP are unlocked
That's something related to your computer. Do you by any chance have already installed Cygwin?
1. Check if you already have any CYGWIN_HOME variable in the environment variables. If yes delete it.
2. Run the batch file from the current folder and not from system32.
lsvet1 said:
That's something related to your computer. Do you by any chance have already installed Cygwin?
1. Check if you already have any CYGWIN_HOME variable in the environment variables. If yes delete it.
2. Run the batch file from the current folder and not from system32.
Click to expand...
Click to collapse
now it worked. I just moved it to C: \ Users.
It says that it can't access. Probably because of the wrong model number.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ayeshetu said:
now it worked. I just moved it to C: \ Users.
It says that it can't access. Probably because of the wrong model number.
View attachment 4246735
Click to expand...
Click to collapse
The name of your phone is wrong because you installed RROS. Check all folders AND files in HWOTA folder and wherever you see 'STF' replace it with 'generic_a15'.
lsvet1 said:
The name of your phone is wrong because you installed RROS. Check all folders AND files in HWOTA folder and wherever you see 'STF' replace it with 'generic_a15'.
Click to expand...
Click to collapse
I changed all folders and files i see (STF) to generic_a15. But there is still the error message. Did it fit what I did?:
https://youtu.be/lVRm_t3n9cM
Ayeshetu said:
I changed all folders and files i see (STF) to generic_a15. But there is still the error message. Did it fit what I did?:
https://youtu.be/lVRm_t3n9cM
Click to expand...
Click to collapse
Still problems with the path. Try it first on another computer and unzip it directly to C:\ . If it still doesn't work I will send you another hwota.sh file.
lsvet1 said:
Still problems with the path. Try it first on another computer and unzip it directly to C:\ . If it still doesn't work I will send you another hwota.sh file.
Click to expand...
Click to collapse
Unfortunately I only have this one computer.
Ayeshetu said:
Unfortunately I only have this one computer.
Click to expand...
Click to collapse
In that case you'll have to do it manually. Flash first twrp recovery via fastboot, then boot into twrp and install the stock OS via ADB. If the phone is already rebranded you can skip rebranding step. Put all files in folder with adb.
Commands
Twrp installation:
Code:
fastboot flash recovery twrp.img
Reboot and boot to TWRP
Stock installation:
Code:
ADB shell "rm -fr /data/update/HWOTA > /dev/null 2>&1"
ADB shell "mkdir /data/update/HWOTA > /dev/null 2>&1"
ADB push update.zip /data/update/HWOTA/update.zip
ADB push update_data_public.zip /data/update/HWOTA/update_data_public.zip
ADB push update_all_hw.zip /data/update/HWOTA/update_all_hw.zip
ADB push STF_RECOVERY_NoCheck.img /tmp/STF_RECOVERY_NoCheck.img
ADB push STF_RECOVERY2_NoCheck.img /tmp/STF_RECOVERY2_NoCheck.img
ADB shell "dd if=/tmp/STF_RECOVERY_NoCheck.img of=/dev/block/mmcblk0p37"
ADB shell "dd if=/tmp/STF_RECOVERY2_NoCheck.img of=/dev/block/mmcblk0p34"
ADB shell "echo --update_package=/data/update/HWOTA/update.zip > /cache/recovery/command"
ADB shell "echo --update_package=/data/update/HWOTA/update_data_public.zip >> /cache/recovery/command"
ADB shell "echo --update_package=/data/update/HWOTA/update_all_hw.zip >> /cache/recovery/command"
ADB reboot recovery
ADB kill-server
lsvet1 said:
In that case you'll have to do it manually. Flash first twrp recovery via fastboot, then boot into twrp and install the stock OS via ADB. If the phone is already rebranded you can skip rebranding step. Put all files in folder with adb.
Commands
Twrp installation:
Code:
fastboot flash recovery twrp.img
Reboot and boot to TWRP
Stock installation:
Code:
ADB shell "rm -fr /data/update/HWOTA > /dev/null 2>&1"
ADB shell "mkdir /data/update/HWOTA > /dev/null 2>&1"
ADB push update.zip /data/update/HWOTA/update.zip
ADB push update_data_public.zip /data/update/HWOTA/update_data_public.zip
ADB push update_all_hw.zip /data/update/HWOTA/update_all_hw.zip
ADB push STF_RECOVERY_NoCheck.img /tmp/STF_RECOVERY_NoCheck.img
ADB push STF_RECOVERY2_NoCheck.img /tmp/STF_RECOVERY2_NoCheck.img
ADB shell "dd if=/tmp/STF_RECOVERY_NoCheck.img of=/dev/block/mmcblk0p37"
ADB shell "dd if=/tmp/STF_RECOVERY2_NoCheck.img of=/dev/block/mmcblk0p34"
ADB shell "echo --update_package=/data/update/HWOTA/update.zip > /cache/recovery/command"
ADB shell "echo --update_package=/data/update/HWOTA/update_data_public.zip >> /cache/recovery/command"
ADB shell "echo --update_package=/data/update/HWOTA/update_all_hw.zip >> /cache/recovery/command"
ADB reboot recovery
ADB kill-server
Click to expand...
Click to collapse
Thanks, I'll try it out.
lsvet1 said:
In that case you'll have to do it manually. Flash first twrp recovery via fastboot, then boot into twrp and install the stock OS via ADB. If the phone is already rebranded you can skip rebranding step. Put all files in folder with adb.
Commands
Twrp installation:
Code:
fastboot flash recovery twrp.img
Reboot and boot to TWRP
Stock installation:
Code:
ADB shell "rm -fr /data/update/HWOTA > /dev/null 2>&1"
ADB shell "mkdir /data/update/HWOTA > /dev/null 2>&1"
ADB push update.zip /data/update/HWOTA/update.zip
ADB push update_data_public.zip /data/update/HWOTA/update_data_public.zip
ADB push update_all_hw.zip /data/update/HWOTA/update_all_hw.zip
ADB push STF_RECOVERY_NoCheck.img /tmp/STF_RECOVERY_NoCheck.img
ADB push STF_RECOVERY2_NoCheck.img /tmp/STF_RECOVERY2_NoCheck.img
ADB shell "dd if=/tmp/STF_RECOVERY_NoCheck.img of=/dev/block/mmcblk0p37"
ADB shell "dd if=/tmp/STF_RECOVERY2_NoCheck.img of=/dev/block/mmcblk0p34"
ADB shell "echo --update_package=/data/update/HWOTA/update.zip > /cache/recovery/command"
ADB shell "echo --update_package=/data/update/HWOTA/update_data_public.zip >> /cache/recovery/command"
ADB shell "echo --update_package=/data/update/HWOTA/update_all_hw.zip >> /cache/recovery/command"
ADB reboot recovery
ADB kill-server
Click to expand...
Click to collapse
So if I have understood correctly, then I must enter these stock installation commands exactly the same in the CMD while the phone is in the TWRP.
In principle yes, but check the file names.

			
				
lsvet1 said:
In principle yes, but check the file names.
Click to expand...
Click to collapse
I have now figured out why I was not able to flash RROS properly. I have apparently made a mistake at the vendor flashing. When i boot the phone now then appears the RROS logo but it stuck there. Will the whole thing work if I install the B130 with DC Phoenix and then flash RROS again or are there other possibilities?

Categories

Resources