I'm trying to root on 2.20 and am getting stuck on the "Getting CID" step.
I've waited 10 minutes and it still says "Getting CID (waiting for device)". I've factory restored and tried the exploit again, and I'm getting stuck on the same spot every time. I redownloaded the exploit as well. Any ideas?
Root
I have the same problem....would appreciate help...
Edit:
Maybe it'll help mentioning that since I've retried it, it says that CID has already been changed
voltarian said:
I have the same problem....would appreciate help...
Edit:
Maybe it'll help mentioning that since I've retried it, it says that CID has already been changed
Click to expand...
Click to collapse
Mine says the same. I've also tried running the fastboot oem readcidecho command in a different cmd window. Nothing. Still waiting on device.
Root
This is my first time to root an android, and I honestly have only a vague idea of what I'm doing. Going to try once more and then give up for the night. If you figure out the problem do let me know.
waiting for device means.. adb did not recognize any device connected to your PC. ensure you have USB debugging enabled in your phone.. and try again
kancherlapraneeth said:
waiting for device means.. adb did not recognize any device connected to your PC. ensure you have USB debugging enabled in your phone.. and try again
Click to expand...
Click to collapse
USB debugging is enabled. I've restarted the phone, plugged the USB cable in, verified the USB debugging icon appears, select Charge Only, then do adb reboot bootloader. I then try to run fastboot oemreadcidecho with no results. fastboot devices returns nothing.
DERP
Changed USB ports...now it works. I don't even know why this mattered. The first part of the exploit was able to load using the first USB port. Oh well...thanks guys.
I'm having this same issue on a Mac. Anyone have any resolutions?
h1m said:
I'm having this same issue on a Mac. Anyone have any resolutions?
Click to expand...
Click to collapse
you have to start the adb server with root permissions (this means that before doing anything with adb you have to first type sudo)
cuyo11 said:
you have to start the adb server with root permissions (this means that before doing anything with adb you have to first type sudo)
Click to expand...
Click to collapse
Tried that. Still got the same error.
Johns-MacBook-Pro:X_Factor_Windows John$ adb wait-for-device
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Johns-MacBook-Pro:X_Factor_Windows John$ adb restore backup1.ab
Johns-MacBook-Pro:X_Factor_Windows John$ adb shell "sleep 5"
Johns-MacBook-Pro:X_Factor_Windows John$ adb shell "rm /data/data/com.android.providers.telephony/databases/a/b 2>/dev/null"
Johns-MacBook-Pro:X_Factor_Windows John$ adb shell "ln -s /dev/diag /data/data/com.android.providers.telephony/databases/a/b 2>/dev/null"
Johns-MacBook-Pro:X_Factor_Windows John$ adb restore backup2.ab
Johns-MacBook-Pro:X_Factor_Windows John$ adb shell "sleep 5"
Johns-MacBook-Pro:X_Factor_Windows John$ adb push pwn /data/local/tmp
3004 KB/s (64526 bytes in 0.020s)
Johns-MacBook-Pro:X_Factor_Windows John$ adb shell "chmod 755 /data/local/tmp/pwn"
Johns-MacBook-Pro:X_Factor_Windows John$ adb shell "/data/local/tmp/pwn"
[-] Failed.
Johns-MacBook-Pro:X_Factor_Windows John$ adb reboot bootloader
Johns-MacBook-Pro:X_Factor_Windows John$ adb kill-server
Johns-MacBook-Pro:X_Factor_Windows John$ fastboot oem readcid
...
(bootloader) cid: CWS__001
OKAY [ 0.010s]
finished. total time: 0.010s
Johns-MacBook-Pro:X_Factor_Windows John$
Possible solution
Hey I'm just registering on the forum but I've been a long time viewer...
I had the same problem till I read it was a problem on the drivers... what I did is connected the phone and plugged it with HTC sync Manager... the software will install all the drivers for your HTC.... after that just reboot and try again... it worked for me... hope it does the same for you...
Related
I'm getting an error whenever I try the "adb devices" command. I get the following error >>
"adb server is out of date. killing...
ADB server didn't ACK
* failed to start daemon * "
I've installed everything properly and I can clearly see my device when I open up device manager. Any help? Thanks in advance .
adb kill-server
adb devices
Sent from my HTC One X-
absolutelygrim said:
adb kill-server
adb devices
Sent from my HTC One X-
Click to expand...
Click to collapse
It didn't work. Same error
Everytime I paste the command adb wait-for-device push firewater /data/local/tmp it does not work as good and I get MTP USB device failed, and I am using HTC drivers. Please help!!!
Hey guys so question.
Is ADB broken with Android 10 at the moment? I updated through the installer.
Now when I get on fastboot mode and type fastboot devices, I see my phone poop up. But I can't see ADB devices it gives me a no devices found.
*ADB debugging is on
If I do ADB reboot bootloader while the phone is on, it works and it also gives me the device under list when I type it while the phone is on.
Any of you have seen this?
I'm trying to disable some apps through ADB but when the
Cj214 said:
Hey guys so question.
Is ADB broken with Android 10 at the moment? I updated through the installer.
Now when I get on fastboot mode and type fastboot devices, I see my phone poop up. But I can't see ADB devices it gives me a no devices found.
*ADB debugging is on
If I do ADB reboot bootloader while the phone is on, it works and it also gives me the device under list when I type it while the phone is on.
Any of you have seen this?
I'm trying to disable some apps through ADB but when the
Click to expand...
Click to collapse
You can't see the device while on fastboot mode of you type adb devices.
You need to make sure debugging is on in the developer preferences.
ADB appears to be working just fine for me.
When using adb make sure you have debugging enabled and grant the popup on screen
adb is not fastboot. You can use adb on twrp or booted system. Fastboot is on bootloader mode.
Also need to make sure that the proper USB drivers on the computer are installed/updated.
Cj214 said:
Hey guys so question.
Is ADB broken with Android 10 at the moment? I updated through the installer.
Now when I get on fastboot mode and type fastboot devices, I see my phone poop up. But I can't see ADB devices it gives me a no devices found.
*ADB debugging is on
If I do ADB reboot bootloader while the phone is on, it works and it also gives me the device under list when I type it while the phone is on.
Any of you have seen this?
Click to expand...
Click to collapse
This is working exactly as intended, and not exclusive to Android 10, but rather has been the case as long as I can remember (Jelly Bean? KitKat? Maybe much earlier?):
adb: Only works when booted to OS or in TWRP. Debugging required to be toggle on in phone settings. Does not work in bootloader-fastboot mode.
fastboot: Only works in bootloader-fastboot mode. Debugging is not required to be toggled on.
D:\OnePlus3\Fastboot>adb sideload stock7.zip
opening 'stock7.zip'...
connecting...
adb server version (40) doesn't match this client (39); killing...
* daemon started successfully *
falling back to older sideload method...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Thats what adb gives to me...
Bringer1 said:
D:\OnePlus3\Fastboot>adb sideload stock7.zip
opening 'stock7.zip'...
connecting...
adb server version (40) doesn't match this client (39); killing...
* daemon started successfully *
falling back to older sideload method...
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Thats what adb gives to me...
Click to expand...
Click to collapse
Sounds like another adb server is still running. What does adb kill-server and then trying again do
a second adb server was running.
TNX
Can I mount system rw using adb enabled recovery img from the following link:
https://forum.xda-developers.com/7t-pro/development/recovery-oxygen-os-stock-recovery-adb-t3991865
Hello, I hope that this topic can be opened here, if not please move it or let me know and I will delete it.
In adb I am getting the error "failed to check server version: protocol fault (couldn't read status): No error" and I cannot see my device when I use the command "adb devices". Moreover, it seems like my phone is not letting me authorize my laptop for USB debugging despite trying different options to getting it to work. I have tried different trouble shooting methods that I have found online, but nothing has worked so far. If anyone has any ideas, it would be greatly appreciated.
I am using a POCO F2 Pro that has had its bootloader unlocked and I am running Xiaomi.eu version 12.0.4 (stable) and using a Windows 10 machine to connect with my phone. I did not have much problems with the flashing off TWRP, using ADB commands, or flashing the ROM when I did all of these things last month.
Now, however, I have been having some problems. I believe it started when I tries to update the System FW a few days ago in the phone instead of flashing it manually. Because it was the stable version, and because the option existed in my system settings, I thought that I would be able to update it without going through those steps. The update downloaded and I got the correct file, but when I hit install, I did not get the new FW, despite the phone rebooting. I've been having problems with adb since this time, I believe.
Try restarting adb server:
Code:
adb -d kill-server
adb -d start-server
Try re-enabling USB debug stuff in Dev Options too.
Saratoga79 said:
Try restarting adb server:
Code:
adb -d kill-server
adb -d start-server
Try re-enabling USB debug stuff in Dev Options too.
Click to expand...
Click to collapse
Hello, thanks for your reply. I tried that yesterday, but I gave it another try today. This was the error that I received when I ran the command in Powershell:
Program 'adb' failed to run: No application is associated with the specified file for this operationAt line:1 char:1
+ adb -d kill-server
+ ~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ adb -d kill-server
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: ) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
When I ran the command in Command Prompt, I got the error "failed to read response from server".
Trying to start the server also lead to an error "protocol fault (couldn't read status): No error
---------
Part of my issues may be coming from the fact that I no longer get the authorize USB debugging on my phone, even after I have revoked the authorizations. I've tried different ports, different USB cables, and even factory resetting my phone, to no luck.
Try using the latest platform tools from Google.
batuken said:
Try using the latest platform tools from Google.
Click to expand...
Click to collapse
From what I know, I am using the latest SDK platform tools. I initially downloaded from that site either in late July or early August, and yesterday I deleted the old files and re-installed them from the website. Is there an additional step that I might have missed in removing the old files from my computer?
Additionally, the .android folder in my user profile is now empty (no adb_key file(s) inside).
On my Rooted Pixel 4a, I can use:
Fastboot - I flashed the latest update firmware as well as the rooted boot image
ADB Over WiFi - This is the most comnon way I connect for ADB
ADB While the Android OS is running
What I cannoit get woirking is ADB while in recovery mode,
If I go to recovery and connect via a high quality cable, I can see the device with
Code:
adb devices
C:\Java\x86\Android\android-sdk\platform-tools>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
091????????490 rescue
Click to expand...
Click to collapse
But none of the below works
Code:
>adb shell
error: closed
>adb connect 091XXXXXXXX490
cannot resolve host '091XXXXXXXX490' and port 5555: No such host is known. (11001)
>adv shell 091XXXXXXXX490
error: closed
What am I doing wrong? how can I connect in recovery?
Stock recovery?
WillisD said:
Stock recovery?
Click to expand...
Click to collapse
Yes.
DiamondJohn said:
What I cannoit get woirking is ADB while in recovery mode
Click to expand...
Click to collapse
I always thought that adb from recovery was a TWRP thing?
I did adb reboot recovery. My phone has an Android on its back, with "No command" on the screen.
Code:
$ adb devices
List of devices attached
xxx unauthorized
$ adb shell
adb: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
I got the same thing booting to recovery by holding Vol down at boot.
Booting to rescue (another option on the boot menu) got me the same thing on my screen and the same symptom you saw.
Code:
$ adb devices
List of devices attached
xxx rescue
$ adb shell
error: closed
Are you sure this is supposed to work with the stock recovery?
a1291762 said:
Are you sure this is supposed to work with the stock recovery?
Click to expand...
Click to collapse
Actually no, i guess it was an assumption, and the response to adb devices, gave me further hope.
However,, it does respnod to ADB. As is seen, it provides a list of devices. But, maybe one can't shell out while in stock recpvery. Which goves me an idea, maybe we can send commands from the command window in windows/linux. eg adb shell ls But it wouldn't make sense that it would allow root, which negates what I wanted to be able to do in the first place. ie recovery from a bootloop by selectively editing the data partition. in my previous case, it was to disable a single magisk module.
DiamondJohn said:
It wouldn't make sense that it would allow root, which negates what I wanted to be able to do in the first place. ie recovery from a bootloop by selectively editing the data partition. in my previous case, it was to disable a single magisk module.
Click to expand...
Click to collapse
Yeah, it certainly seems to be speaking adb...
I didn't think to try...but maybe adb push and pull work?