MiCode / patchrom

Use disassemble/assemble technology to porting miui to misc android devices
http://micode.net/forum-55-1.html
493 stars 370 forks source link

Problem when trying to pull stockrom.zip #146

Open kometh0616 opened 7 years ago

kometh0616 commented 7 years ago

I'm having a problem when trying to pull stockrom.zip from my ZenFone Selfie with ../tools/releasetools/ota_target_from_phone -r command. Here is terminal log:

darkeyes22@darkeyes22-linuxmint-18 ~ $ cd patchrom/Z00T darkeyes22@darkeyes22-linuxmint-18 ~/patchrom/Z00T $ ../tools/releasetools/ota_target_from_phone -r Wait for the device to be online... Copy target file template into current working directory cp: cannot stat '/tools/target_files_template/*': No such file or directory Dump bootimage from device

It just stays at "Dump bootimage from device" for 5 minutes. And I checked tools directory and "target_files_template" directory was there, but when I initiate the command, it just doesn't want to detect it. Can anyone help me with that, please?

leon83 commented 7 years ago

Hi there, im not a pro cause i get another error with the patchrom But is your phone rooted? And USB Debugging enabled? The - r variable is when you are in recovery Mode. The -n flag is for normal Mode I hope i can you help a Bit Greets

kometh0616 commented 7 years ago

My phone is rooted with Magisk and I have USB debugging enabled. Tried -n variable too, same error and also it said that zip will not contain boot image

rishabkshk commented 7 years ago

TRY recovery mode,(if twrp is available its better). Mount every partition using twrp . Unmount them all connect with the PC use the -r variable Hope this helps.