can't get twrp adb sideload to work - Lenovo ZUK Z2 (Plus) Questions & Answers

i don't have ay ROM on my hpine right now and by mistake i wiped the internal storage so i am just stuck at twrp. I tried adb push with adb sideload on twrp bt it's not working and giving "error closed". How to get adb sideload working?

Meuuks13 said:
i don't have ay ROM on my hpine right now and by mistake i wiped the internal storage so i am just stuck at twrp. I tried adb push with adb sideload on twrp bt it's not working and giving "error closed". How to get adb sideload working?
Click to expand...
Click to collapse
TWRP supports MTP, why don't you just use that and copy the files needed to the storage. I did that multiple times.

Related

Accidentally deleted everything, Kindle Fire stuck in TWRP

Hi,
I accidentally deleted everything through TWRP. I wanted the kindle fresh for my new ROM, and thought that deleting everything would make for a cleaner install. I was wrong and now all my kindle is good for is TWRP.
When in TWRP, windows doesn't recognize the kindle. Because of this, I cannot mount it. Windows and the kindle fire utility recognizes it as adp when i boot regularly (which is just a black screen) but cannot do anything since it will not enter normal or fast mode.
I don't know what to do, nothing is working. When I restart the kindle it says superuser is not installed, and asks if I would like to install it. I say yes, and it fails. Super user WAS installed before I deleted everything.
Any ideas?
Some more info
1. shell doesn't work
2. it looks like the bootmode is stuck in fastboot, but KFU won't recognize it, even though windows does.
3. Windows does not recognize the kindle when in TWRP recovery mode. If It did i could simply transfer files over and flash it...
4. If I try to boot normally, I get a black screen, but FKU recognizes ADP. It does not recognize what bootmode it's in though.
I believe FFF is working as I have the blue kindle logo and options in the bootloader, but no matter what I do I can't figure it out.
I REALLY need some help from you more experienced guys
thanks for reading
I'm making some progress, I'm in fastboot command prompt and have access. But what do I do from here?
How can I install a system from fastboot? It looks like all the guides say to install twrp and go from there but I have twrp and it wont communicate with my pc!!!
ADB
llmercll said:
Some more info
1. shell doesn't work
2. it looks like the bootmode is stuck in fastboot, but KFU won't recognize it, even though windows does.
3. Windows does not recognize the kindle when in TWRP recovery mode. If It did i could simply transfer files over and flash it...
4. If I try to boot normally, I get a black screen, but FKU recognizes ADP. It does not recognize what bootmode it's in though.
I believe FFF is working as I have the blue kindle logo and options in the bootloader, but no matter what I do I can't figure it out.
I REALLY need some help from you more experienced guys
thanks for reading
Click to expand...
Click to collapse
Do you have adb and fastboot intstalled on your PC??
lj50036 said:
Do you have adb and fastboot intstalled on your PC??
Click to expand...
Click to collapse
Yes, I've been using them at the command level
Feedback
llmercll said:
Yes, I've been using them at the command level
Click to expand...
Click to collapse
Boot into recovery and type
adb devices
copy and paste the output of this so I can see!!!
I went to boot and at the black screen tried to push the stock kindle FW. it failed for some reason
c:\kfu\tools>adb devices
List of devices attached
0123456789ABCDEF device
c:\kfu\tools>adb push C:\update.zip \tmp
failed to copy 'C:\update.zip' to '\tmp': Read-only file system
c:\kfu\tools>
Here is me trying adb devices in recovery mode
c:\kfu\tools>adb reboot recovery
c:\kfu\tools>adb devices
List of devices attached
Interestingly, rebooting into recovery just brought me to the bootloader. it wouldnt boot into recovery by itself, I have to manually do it through the bootloader. Immediately, booting into recovery disconnects my kindle from the pc, and I hear the sound in windows and the kindle dissapears from device manager.
llmercll said:
I went to boot and at the black screen tried to push the stock kindle FW. it failed for some reason
c:\kfu\tools>adb devices
List of devices attached
0123456789ABCDEF device
c:\kfu\tools>adb push C:\update.zip \tmp
failed to copy 'C:\update.zip' to '\tmp': Read-only file system
c:\kfu\tools>
Here is me trying adb devices in recovery mode
c:\kfu\tools>adb reboot recovery
c:\kfu\tools>adb devices
List of devices attached
Interestingly, rebooting into recovery just brought me to the bootloader. it wouldnt boot into recovery by itself, I have to manually do it through the bootloader. Immediately, booting into recovery disconnects my kindle from the pc, and I hear the sound in windows and the kindle dissapears from device manager.
Click to expand...
Click to collapse
So you can boot into recovery yes??
What is this KFU if that some kindle stuff we need to get rid of it and get the fastboot and adb from google... The SDK
make sure you open your CMD window as admin and try putting that file in the /sdcard not the /tmp
lj50036 said:
So you can boot into recovery yes??
What is this KFU if that some kindle stuff we need to get rid of it and get the fastboot and adb from google... The SDK
make sure you open your CMD window as admin and try putting that file in the /sdcard not the /tmp
Click to expand...
Click to collapse
I can boot into recovery, yes. KFU is kindle fire utility. I have the sdk and fastboot and adb.
could putting it in tmp be why the push failed?
Admin
llmercll said:
I can boot into recovery, yes. KFU is kindle fire utility. I have the sdk and fastboot and adb.
could putting it in tmp be why the push failed?
Click to expand...
Click to collapse
Or maybe you did not open you CMD window as admin....but twrp should see your devices in adb and let you push things to the /sdcard for sure... I have one right in front of me, but I am running linux which is much better for these kinds of things... Here is my output of that command and than a push of a zip file
Code:
[email protected] ~ $ adb devices
List of devices attached
0123456789ABCDEF recovery
[email protected] ~ $ adb push cmb_kkgapps_20131209.zip /sdcard
6121 KB/s (126216099 bytes in 20.135s)
I ran it as admin, now I get an error saying /sdcard is a directory
C:\Windows\system32>cd c:/kfu/tools
c:\kfu\tools>adb push C:\update.zip /sdcard
failed to copy 'C:\update.zip' to '/sdcard': Is a directory
c:\kfu\tools>adb devices
List of devices attached
0123456789ABCDEF device
c:\kfu\tools>
feedback
llmercll said:
I ran it as admin, now I get an error saying /sdcard is a directory
C:\Windows\system32>cd c:/kfu/tools
c:\kfu\tools>adb push C:\update.zip /sdcard
failed to copy 'C:\update.zip' to '/sdcard': Is a directory
c:\kfu\tools>adb devices
List of devices attached
0123456789ABCDEF device
c:\kfu\tools>
Click to expand...
Click to collapse
Move everything to the root of your c drive fastboot.exe, adb.exe, update.zip, all of it and than when you open your CMD windowas admin type
cd /
This will move you to the root of your c drive in you CMD window... Than type dir to make sure u can see your fastboot and adb and your update zip
than type
adb push update.zip /sdcard
llmercll said:
I ran it as admin, now I get an error saying /sdcard is a directory
C:\Windows\system32>cd c:/kfu/tools
c:\kfu\tools>adb push C:\update.zip /sdcard
failed to copy 'C:\update.zip' to '/sdcard': Is a directory
c:\kfu\tools>adb devices
List of devices attached
0123456789ABCDEF device
c:\kfu\tools>
Click to expand...
Click to collapse
It's been a long time since I looked at this, but I seem to remember the windows adb client wanting a trailing slash if the push destination is a directory. That is... you want to use "/sdcard/" instead of "/sdcard" in that command to indicate that you want to push a file into that directory rather than replace the directory with a file (which it won't allow). Alternatively, you can use "/sdcard/update.zip" to remove any ambiguity from the command.
The output of your "adb devices" command is also a concern. It doesn't look to me as if you've booted the device into TWRP because it should output "recovery" and not "device" at the end there. One way or another, you'll have to get it to boot into TWRP if you want to flash that update.zip.
I wanna thank you guys for helping me. I'll never be able to figure this out alone.
Still no luck. It either says it's a directory or I lack permission.
C:\>adb devices
List of devices attached
0123456789ABCDEF device
C:\>adb push update.zip /sdcard
failed to copy 'update.zip' to '/sdcard': Is a directory
C:\>adb push update.zip /sdcard/
failed to copy 'update.zip' to '/sdcard//update.zip': Permission denied
C:\>adb push update.zip /sdcard/update.zip
failed to copy 'update.zip' to '/sdcard/update.zip': Permission denied
C:\>
Click to expand...
Click to collapse
I can get into TWRP, but windows will not recognize the kindle while in recovery mode. The only times windows will recognize the devices is if I'm sitting at the boot launcher (it says fastboot) or try and normal boot (and it says "device"). If I could just connect to the PC in TWRP, i could mount it, cut for some reason I can't. Whenever I exit TWRP it also warns me that superuser is not installed, and if I would like to install it. I say yes, and it gives me an error =/
Fastboot works great though, is there anything I can just flash?
llmercll said:
I wanna thank you guys for helping me. I'll never be able to figure this out alone.
Still no luck. It either says it's a directory or I lack permission.
I can get into TWRP, but windows will not recognize the kindle while in recovery mode. The only times windows will recognize the devices is if I'm sitting at the boot launcher (it says fastboot) or try and normal boot (and it says "device"). If I could just connect to the PC in TWRP, i could mount it, cut for some reason I can't. Whenever I exit TWRP it also warns me that superuser is not installed, and if I would like to install it. I say yes, and it gives me an error =/
Fastboot works great though, is there anything I can just flash?
Click to expand...
Click to collapse
Try to use the "mount" function in TWRP to mount the /sdcard partition on your computer. It should work with the generic drivers already on your Windows PC and you can copy the update.zip over to it that way. If you can't get that to work, you are going to have to try reinstalling the drivers to get your PC to recognize TWRP. There are detailed instructions on how to do this in my guide.
The only other thing I can think of is to try reflashing an older version of TWRP. Those directions are available in one of my guides as well.
Recovery
llmercll said:
I wanna thank you guys for helping me. I'll never be able to figure this out alone.
Still no luck. It either says it's a directory or I lack permission.
I can get into TWRP, but windows will not recognize the kindle while in recovery mode. The only times windows will recognize the devices is if I'm sitting at the boot launcher (it says fastboot) or try and normal boot (and it says "device"). If I could just connect to the PC in TWRP, i could mount it, cut for some reason I can't. Whenever I exit TWRP it also warns me that superuser is not installed, and if I would like to install it. I say yes, and it gives me an error =/
Fastboot works great though, is there anything I can just flash?
Click to expand...
Click to collapse
I would if it were me, install a recovery you dont plan on using... Than flash the one you would like to us.... I know it sounds funny but.. Ive be here before and that seems to work everytime... Than flash ROM and Gapps....
Here is the link to TWRP the first gen fire is an 'otter'... Make sure you get the otter.img....Than rename the .img file to twrp.img than put it with fastboot.exe and open CMD window as admin...and type
Code:
fastboot -i 0x1949 flash recovery twrp.img
Than
Code:
fastboot -i 0x1949 reboot
Let me know if that works for you or if you have any questions along the way... Thx as always lj
I didn't see the link for the older TWRP, but I went to the website and tried this one
http://techerrata.com/browse/twrp2/blaze
openrecovery-twrp-2.4.2.0-otter.img
I successfully flashed it and rebooted, but when the kindle went into recovery mode it once again disconnected from the computer. In recovery, which was clearly the older TWRP version, I attempted to mount but nothing happened. Of course it can't happen if it isn't communicating with my pc =/
Can I flash a ROM directly through fastboot? That would probably solve the issue, no?
What about that other recovery program, COTR?
llmercll said:
I didn't see the link for the older TWRP, but I went to the website and tried this one
http://techerrata.com/browse/twrp2/blaze
openrecovery-twrp-2.4.2.0-otter.img
I successfully flashed it and rebooted, but when the kindle went into recovery mode it once again disconnected from the computer. In recovery, which was clearly the older TWRP version, I attempted to mount but nothing happened. Of course it can't happen if it isn't communicating with my pc =/
Can I flash a ROM directly through fastboot? That would probably solve the issue, no?
What about that other recovery program, COTR?
Click to expand...
Click to collapse
2.6.3.1 Give that one a try!!!
I was able to get TWRP recognized by windows by using the earliest blaze edition. I mounted, copied the files, and then flashed back to 2.6.3.1 otter.
Then I wiped whatever data may have been in system data and cache and installed a new rom...
Only problem is it seems to be hanging on "updating partition details.."
I have the option to reboot, but am not sure if I should...
I think I got it!!

[Q] Formatted sdcard, not able to mount usb in TWRP or adb push

So I formatted my sdcard thinking I would be able to install a new rom easily, that was not the case. The problem is that I have not found a way to transfer files to my phone.
I have TWRP 2.7.0.0 recovery installed, but mount USB does not work. I get the sound from my pc that a device has been connected but nothing happens. I tried uninstalling the drivers and reinstalling htc sync + drivers but no difference.
Fastboot commands work, but adb commands do not. So i cannot adb push. Adb doen't work in fastboot as I understand it but should work in recovery?
I was thinking of installing stock rom, because I can appearently do that via fastboot. But after extracting rom.zip from ruu install file, I find out that I have to decrypt the zip-file. And the only decryption tool available is for linux, which is a bit of a hassle as I am running windows.
So do anyone have any suggestions to how I can transfer files to my phone? The easiest would be to get mount usb to work, or adb push to work. I have not managed to get adb sideload to work either. I have struggled with this for the past two days, so any help would be greatly appreciated.
Flash this one, mount the sdcard and wait some minutes
https://www.dropbox.com/s/qp21ubo10xetcvn/Philz recovery 5.15.9.img

Yet another OTA softbrick thread. How screwed am I?

Hi all,
It seems I come back a n00b every few years.
I rooted my Zenfone 2 to remove some clutter and guess what I did today? I updated. Didn't know that would brick my phone but well here I am.
I followed these steps:
http://www.asus-zenfone.com/2015/06/how-to-update-ota-without-bootloop-on-rooted-zenfone2.html
Only to find that it wouldn't boot.
Went into recovery and tried to factory reset... went on for more than 15 minutes (I didn't want to stop the process....). I then had to hard reset then boot into recovery and tried to wipe cache which yielded nothing...
BTW, I think the failed wipe and reset messed up permissions as fastboot yields an error (even though the "flash recovery" bit seems to work).
I tried installing TWRP and it only boots back into fastboot. Reinstall the recovery from the link above and I can go back into recovery but can't seem to use any of the functions.
Any ideas?
p.s. I did do a few searches. Can't find anything specific about
I also tried using the adb sideload to sideload official firmware but it yields "error: device not found" and then goes back into regular recovery...
adramelch said:
I also tried using the adb sideload to sideload official firmware but it yields "error: device not found" and then goes back into regular recovery...
Click to expand...
Click to collapse
Have you installed all your drivers correctly?
In TWRP, have you gone into advanced and selected ADB Sideload? I've also had issues with sideloading, I think it's a TWRP issue though.
Here's what you can try:
Boot into TWRP and make sure the phone is detected on the PC.
open up adb
type: adb devices
hit enter
your device should be listed
type: adb push -p rom.zip /sdcard0/
-for push, it's just the command to push files to your phone. Alternatively, pull is for taking files from your phone (in the event you can't boot up and need a certain file)
-for -p, it just means show progress, so in CMD you'll see a percentage sign which is always a good thing to know
-for rom.zip you type in the location of the file
-for /sdcard0/ you can leave that, as that is the send destination and should land right in your main folder.
And once the file is transferred over, install through TWRP.
Wipe Dalvik/Cache.
Reboot system.
Profit.
If all this doesn't work, try a microsd card with the file on it.
EDIT: I just realized you meant you meant stock recovery. In that case...it should still allow you to adb sideload, but I'm not sure. As long as you can still use ADB, you can follow my instructions above.
adb push yields "error: closed"
adb sideload says it needs adb 1.0.32 to do operation...
Try using microSD, download the latest firmware on asus website, then rename the zip to MOFD_UPDATE.zip and copy it to your microSD then go to recovery mode and it'll install the update. it took sometime be patient
badaboomBURP said:
Try using microSD, download the latest firmware on asus website, then rename the zip to MOFD_UPDATE.zip and copy it to your microSD then go to recovery mode and it'll install the update. it took sometime be patient
Click to expand...
Click to collapse
Recovery doeasn't have option "Update from zip" but this time, the adb sideload command worked for some reason...
adramelch said:
Recovery doeasn't have option "Update from zip" but this time, the adb sideload command worked for some reason...
Click to expand...
Click to collapse
in my experience, it automatically install the zip if i go to recovery
Update: Sideload worked and I've been back to stock since. Didn't want to flash because I was ok with stock but didn't want the clutter. Will find another stable firmware if need be.
Thanks again for the help!

HELP: have twrp installed, but no system...

How do get the zip file over to the phone so I can install the system? (I accedentally formated everything.)
Stock rom in adb folder then either adb sideload <filename.zip>, with phone in adb sideload in recovery or adb push <filename.zip> /sdcard and flash from recovery.
dpicts said:
How do get the zip file over to the phone so I can install the system? (I accedentally formated everything.)
Click to expand...
Click to collapse
Just connect the phone to your computer while TWRP is up. It will be mounted as MTP and you can transfer any files you need
thank you... I had tried that but it would just sit there and not do anything... your answer told me I was doing it correctly, so I killed the adb task in task manger and tried again... now it is copying.

adb push file to trpw not working (closed error)

Hi, i have a ze550ml or Z008 , is it normal that the command adb push works only when the phone is booted and not when it is in twrp on sideload mode?
I updated the adb driver and i have the latest twrp 3.1.1 . The sideload command works on twrp sideload mode , but if i want only push a file to /sdcard/ when on twrp it says closed and fails.
The adb push file to twrp on sideload mode works on other phones ? Thanks
Paddy's said:
Hi, i have a ze550ml or Z008 , is it normal that the command adb push works only when the phone is booted and not when it is in twrp on sideload mode?
I updated the adb driver and i have the latest twrp 3.1.1 . The sideload command works on twrp sideload mode , but if i want only push a file to /sdcard/ when on twrp it says closed and fails.
The adb push file to twrp on sideload mode works on other phones ? Thanks
Click to expand...
Click to collapse
while being on sideload you cannot push file you can sideload only

Categories

Resources