convert zip to img - Android Q&A, Help & Troubleshooting

hello to all...i am new to this developing. i have a rom file in .zip format....inside it there is system folder. i want to convert this .zip into a system img file. is it possible?? actually i hav a phone on which sdcard is not getting detected. so cwm recovery wont work, niether adb is detecting that device, so i want to make a system img file from this rom so that i can flash it using fastboot. Plz help me

niranjand147 said:
hello to all...i am new to this developing. i have a rom file in .zip format....inside it there is system folder. i want to convert this .zip into a system img file. is it possible?? actually i hav a phone on which sdcard is not getting detected. so cwm recovery wont work, niether adb is detecting that device, so i want to make a system img file from this rom so that i can flash it using fastboot. Plz help me
Click to expand...
Click to collapse
For future reference, at the very least, state the device you have and or are having problems with. Makes things easier for people like me
What your asking for doesn't exist to my knowledge. However, you can extract the contents of the zip to your hard disk and use fastboot to flash the file "boot.img' which should be in the root of the zip you have. Everything else needs to be pushed via ADB to the /system partition. If your CWM is built correctly, ADB should detect your device when connected. That's assuming that you have your drivers installed already.
In reality, I don't think that what you are wanting to do can be done, however I don't know everything either. :silly: Best of luck

bill.weckel said:
For future reference, at the very least, state the device you have and or are having problems with. Makes things easier for people like me
What your asking for doesn't exist to my knowledge. However, you can extract the contents of the zip to your hard disk and use fastboot to flash the file "boot.img' which should be in the root of the zip you have. Everything else needs to be pushed via ADB to the /system partition. If your CWM is built correctly, ADB should detect your device when connected. That's assuming that you have your drivers installed already.
In reality, I don't think that what you are wanting to do can be done, however I don't know everything either. :silly: Best of luck
Click to expand...
Click to collapse
i am trying it for huawei u8180

shinobisoft said:
For future reference, at the very least, state the device you have and or are having problems with. Makes things easier for people like me
What your asking for doesn't exist to my knowledge. However, you can extract the contents of the zip to your hard disk and use fastboot to flash the file "boot.img' which should be in the root of the zip you have. Everything else needs to be pushed via ADB to the /system partition. If your CWM is built correctly, ADB should detect your device when connected. That's assuming that you have your drivers installed already.
In reality, I don't think that what you are wanting to do can be done, however I don't know everything either. :silly: Best of luck
Click to expand...
Click to collapse
I tried this using Livesuit 1.11 for a softwinerEvb a13 tablet (no other known device specs) and it said the image file was invalid. Situation is I soft bricked my tablet by flashing the wrong cwm zip. Finally found out how to connect via Livesuit (kinda like fastboot or bootloader mode or something? like Odin?) to flash stuff to it. I decided to use an erase img .img because where I found how to connect it suggested that to the OP (on techknow). So now instead of the tablet just being stuck on the first screen when trying to boot (normal or recovery), it doesn't do anything at all since there's no boot.img. Which I'm not worried about since It connects to my laptop just fine via livesuit still so I can get a boot on it (ADB won't detect it - pretty positive it's not ADB user error [I run cmd "adb root" when the tablet is connect in whatever mode its in - the way livesuit detects it - and adb says no device found]. BUT I can't find a stock firmware/rom/boot.img for it anywhere (mainly since there's a bunch of clones of this tablet). I'm downloading a few roms (in boot.img format? - .7z files) that I found for "this" tablet (meaning the devs don't know which clones which roms work on lol).
ANYWAY haha, my question is, is there a way to do what you said in the above quote that will work in my situation? I'm not advanced enough to know why livesuit says the image is invalid. I tried it with a cm10.1 zip made for this tablet and a cwm zip made for this tablet (for both I extracted the files and then tried flashing the boot.img I found in the directory(extracted folder right?) via livesuit. livesuit said image file invalid for both .img's.
Please help me and THANK YOU in advance.
I'm open to anyone's help and any help is much appreciated! Thanks buttons will be pressed!!!

Same situation
Same Situation but I know the Specs,, It is allwinner A10 .and Stuck in the soft brick

could you solved this problem? i need a help too, the same problem
---------- Post added at 09:21 PM ---------- Previous post was at 09:13 PM ----------
vennkis said:
Same Situation but I know the Specs,, It is allwinner A10 .and Stuck in the soft brick
Click to expand...
Click to collapse
Hi, could you solved that?
i have a Chinese tablet a10, i have repaired different tablets and android phone trough ADB, but this devices is not detected, i have download some software to help me download the tablet drivers, but hasn't possible that.
finally the only source i have, is charge the firmware again, i use phoenix , and i have some rooms in zip format, what can i do for convert to IMG format?

Hello everyone
Finally what can we do?
How to convert .ZIP to .IMG ?

how to convert?
m.morcielago said:
Hello everyone
Finally what can we do?
How to convert .ZIP to .IMG ?
Click to expand...
Click to collapse

m.morcielago said:
Hello everyone
Finally what can we do?
How to convert .ZIP to .IMG ?
Click to expand...
Click to collapse
hahaha...no answer....i am still waiting for this software

doelwit.sunny said:
hahaha...no answer....i am still waiting for this software
Click to expand...
Click to collapse
You know just converting is not enough
I can convert it
But you need "partition table" for making .IMG
So we don't have it

check sdat2img and imgpatchtools

Related

Coolpad 9976a bricked (modding buil.prop)

Hi to all of you, I need the help of anyone on how to extract and restore (adb commands pull and push) the build.prop file in my cell (now bricked) i had the files (modified buil.prop and the original backup build.prop.bak) inside the phone...
The main problem I have: An issue with device recognition in windows PC... driver ADB VCOM MTK 6592 (tried in different PCS windows Xp and 8) (the device manager "see" the vcom preloader but only a little moment (in the first instant when connect the cell (cell off) with usb cable) and then dissapear (disconnect) the vcom preloader...
When I type the command adb devices, result: no devices found...
Tried to upgrade the vcom drivers (when i can catch it in the active state in device manager)... nothing
Tried to "on" the phone... nothing
Tried to flash a new ROM from Recovery (MIUI or Feelingme 078)... ERROR installation aborted
I can see this effect (with usbview): the usb is recognized in the PC (but just for a little moment at the instant when plug it), then disconnect...
I need to recover the original build.prop.bak from coolpad memory, rename it to build.prop and send it to coolpad again...
I think i can flash (from recovery) an original build. prop (packed as update.zip) doing the wipes and apply update from sdcard)... anyone can assist me on this?
This new 9976A item comes to me with 048 version, custom buid version 265 and rooted from factory...
Anyone can please help me?
Probably want to post in here http://forum.xda-developers.com/showthread.php?t=2635445 where there are other members with your device that are rooted and some links to some roms.
es0tericcha0s said:
Probably want to post in here http://forum.xda-developers.com/showthread.php?t=2635445 where there are other members with your device that are rooted and some links to some roms.
Click to expand...
Click to collapse
Thanksss. will do that.
It all depends on your current phone status.
Why did you try to modify it in the first place, how did you try it?
If you're able to
0) put phone in recovery-mode,
1) connect to the phone via adb,
you could
2) rename/delete the wrong build.prop directly on the phone.
So you don't need to push or pull anything.
I'd start MTKDroidTools, connect the powered off phone or while it's powered on being inside the recovery-mode, and hit the ADB-button...then:
"adb shell"
"cd system"
"rm build.prop" deletes current file
"mv build.prop.bak build.prop" renames your backup to original file
"reboot" restarts the device
If you want to use another ROM, you need a proper cwm-recovery to flash (any) kind of that .zip ...that's also the reason,why you couldn't install another ROM on your phone, because your current recovery haven't got the rights to do it. This will also be keeping you from using a update.zip containing the proper build.prop,but that's only a guess.
...on the fly with 9976A
thor2001 said:
It all depends on your current phone status.
Why did you try to modify it in the first place, how did you try it?
If you're able to
0) put phone in recovery-mode,
1) connect to the phone via adb,
you could
2) rename/delete the wrong build.prop directly on the phone.
So you don't need to push or pull anything.
I'd start MTKDroidTools, connect the powered off phone or while it's powered on being inside the recovery-mode, and hit the ADB-button...then:
"adb shell"
"cd system"
"rm build.prop" deletes current file
"mv build.prop.bak build.prop" renames your backup to original file
"reboot" restarts the device
If you want to use another ROM, you need a proper cwm-recovery to flash (any) kind of that .zip ...that's also the reason,why you couldn't install another ROM on your phone, because your current recovery haven't got the rights to do it. This will also be keeping you from using a update.zip containing the proper build.prop,but that's only a guess.
...on the fly with 9976A
Click to expand...
Click to collapse
Hi thor, I modify the buil.prop with root explorer (sound section) because the music not listening through the speakers
Backup created build.prop.bak
Restart the phone... brick...
The phone starts but no pass the main initial logo... get stuck here...
Now, with the phone off, connect it with usb cable, the pc recognizes the phone (but only by a short amount of time) with a couple of seconds disconnetcs...
i have tried a couple of coolpad 9976 vcom drivers finded in the web... (do you have a specific or ensured one?)
mtk 6592 drivers...
this phone comes to me factory rooted, build number: 4.2.048.P2.140127.9976A
custom build version: 265
i will try to do all of you advices...
is this possible to flash an update.zip (with only an original build.prop file inside it) through CWM?
Is this a nice solution?
Hold the line...
I'd try booting in recovery and once you're inside it, connect the phone to the PC, while MTKDroidtools is running. It should be found by Droidtools (MT6592,but without IMEI) and you hit the ADB-button.
After that, use the commands I mentioned earlier ...
The build.prop isn't unique, so if you're unable to use your backup you could use mine (but still need a connection through adb or update.zip).
What is the current recovery on your phone? I know, there's a way building an update.zip...but I've never tried/used that.
The short timespan, in which you can see your device in windows devicemanager, you can right click on it and use "update driver"-function pointing to the VCOM-files. As soon as you click "update driver" you've got time and it will be installed correctly.
ADB-drivers are easy to install, because it can be while the device isn't connected.
Which VCOM-driver did you install, which ADB-driver on which OS?
...on the fly with 9976A
@federimau
Here, try this update.zip...it should contain the correct build.prop
thor2001 said:
@federimau
Here, try this update.zip...it should contain the correct build.prop
Click to expand...
Click to collapse
THANKS GENIUSSSS.
I have the 3a Stock Recovery.
Will try to do this...
If this not work, can i flash what ROM with this Recovery (3a)???
any links to suggested ROMs that work with Recovery 3a???
You need a working system first.
Then use a TWRP or cwm-recovery for installing any custom ROM...
I don't use any custom ROM, so you already asked in the right thread (9976A ROOT).
federimau said:
If this not work, can i flash what ROM with this Recovery (3a)???
any links to suggested ROMs that work with Recovery 3a???
Click to expand...
Click to collapse
thor2001 said:
Hold the line...
I'd try booting in recovery and once you're inside it, connect the phone to the PC, while MTKDroidtools is running. It should be found by Droidtools (MT6592,but without IMEI) and you hit the ADB-button.
After that, use the commands I mentioned earlier ...
The build.prop isn't unique, so if you're unable to use your backup you could use mine (but still need a connection through adb or update.zip).
What is the current recovery on your phone? I know, there's a way building an update.zip...but I've never tried/used that.
The short timespan, in which you can see your device in windows devicemanager, you can right click on it and use "update driver"-function pointing to the VCOM-files. As soon as you click "update driver" you've got time and it will be installed correctly.
ADB-drivers are easy to install, because it can be while the device isn't connected.
Which VCOM-driver did you install, which ADB-driver on which OS?
...on the fly with 9976A
Click to expand...
Click to collapse
Current recovery 3a (from factory)
I think the last vcom drivers are MTKUniversalbrushdriver
Windows XP SP3
i copied AdbWinApi.dll and AdbWinUsbApi.dll and adb.exe in windows/system and windows/system32 folders
thor2001 said:
You need a working system first.
Then use a TWRP or cwm-recovery for installing any custom ROM...
I don't use any custom ROM, so you already asked in the right thread (9976A ROOT).
Click to expand...
Click to collapse
ahhhh ok, ok,... with this you say that i can not solve the problem flashing a new entire ROM through Recovery?
You can try it, I haven't tried that at all.
You should backup your WORKING firmware and IMEI FIRST, just in case!
Regards
federimau said:
ahhhh ok, ok,... with this you say that i can not solve the problem flashing a new entire ROM through Recovery?
Click to expand...
Click to collapse
thor2001 said:
You can try it, I haven't tried that at all.
You should backup your WORKING firmware and IMEI FIRST, just in case!
Regards
Click to expand...
Click to collapse
will do that first... i expect your buil.prop flashed by update.zip works...
thor2001 said:
You can try it, I haven't tried that at all.
You should backup your WORKING firmware and IMEI FIRST, just in case!
Regards
Click to expand...
Click to collapse
By the way... what is your recomendation/suggestion/advice about: best/fast ROM, CWM version, ROOT method
will do all that in the future
I'll stay at Stock v056,because every newer fw uses the small tray icons,which I don't like.
I still use rua1 autoCWM (non-touch), which is automatically created when you're doing the backup.
Rooting could be done after making the backup, with MTKDroidTools. This should root almost any MTK-phone.
It depends on your firmware and if you're using stock-recovery or cwm-recovery.
With a cwm-recovery,you could use a Chinese update.zip to root.
In the newer FWs you need Root Genius to get system-root after you've got shell-root.
...on the fly with 9976A
Even with the messed up build.prop file, wouldn't you still be able to flash a custom recovery via Odin? Just flash one that has a file manager, boot into it, and manually restore the original build.prop.
Or am I missing something here?
thor2001 said:
You can try it, I haven't tried that at all.
You should backup your WORKING firmware and IMEI FIRST, just in case!
Regards
Click to expand...
Click to collapse
Hi thor... tried to flash your update.zip through stock Recovery (3e) unsucessfully...
with this stock recovery i can not flash anything... tried to flash it.. error... tried to flash five different ROMs... error...
can you help with a new update.zip (only build.prop inside) that i can flash with this recovery (3e)??
Phenom2122 said:
Even with the messed up build.prop file, wouldn't you still be able to flash a custom recovery via Odin? Just flash one that has a file manager, boot into it, and manually restore the original build.prop.
Or am I missing something here?
Click to expand...
Click to collapse
Hi Phenom, i used odin with samsung phones, here we are using mtkdroid and spflashtools, i do not know if odin works with this mediateks cells??
Odin is for Samsung phones.
@federimau
Did you try connecting the phone, while it's in recovery and MTKDroidTools is running?
Like I mentioned some time ago?
Doing the trick via adb?
thor2001 said:
Odin is for Samsung phones.
@federimau
Did you try connecting the phone, while it's in recovery and MTKDroidTools is running?
Like I mentioned some time ago?
Doing the trick via adb?
Click to expand...
Click to collapse
yes it tried it... i´m focus now finding a new usb VCOM driver... can you advice me an ensured one?

CAT B15Q firmware update bricked device

Hello all,
yesterday's OTA firmware update to my CAT B15Q (CPU MediaTek MT6582M) showed an error similar to "failed to update metadata symlink" and offered me to reboot... since then the device is stuck in a bootloop and only boots recovery and fastboot.
The recovery console doesn't offer any USB devices, except when choosing "apply update from ADB", upon which adb devices lists it as "0123456789ABCDEF sideload". adb shell however does not work, it gives an "error: closed" message.
Resetting to factory did not help either, current Android version of the device was 4.4.2.
By the looks, the failed update bricked the /system somehow; can I sideload a version of adb onto the recovery to gain shell access?
Thanks!
harddisk_wp said:
Hello all,
yesterday's OTA firmware update to my CAT B15Q (CPU MediaTek MT6582M) showed an error similar to "failed to update metadata symlink" and offered me to reboot... since then the device is stuck in a bootloop and only boots recovery and fastboot.
The recovery console doesn't offer any USB devices, except when choosing "apply update from ADB", upon which adb devices lists it as "0123456789ABCDEF sideload". adb shell however does not work, it gives an "error: closed" message.
Resetting to factory did not help either, current Android version of the device was 4.4.2.
By the looks, the failed update bricked the /system somehow; can I sideload a version of adb onto the recovery to gain shell access?
Thanks!
Click to expand...
Click to collapse
Same thing happened to me!
Thank you in advance.
Please let me know if you found the solution.
Chegger said:
Same thing happened to me!
Thank you in advance.
Please let me know if you found the solution.
Click to expand...
Click to collapse
Not the solution, but maybe a cause... did you root your device?
harddisk_wp said:
Hello all,
yesterday's OTA firmware update to my CAT B15Q (CPU MediaTek MT6582M) showed an error similar to "failed to update metadata symlink" and offered me to reboot... since then the device is stuck in a bootloop and only boots recovery and fastboot.
The recovery console doesn't offer any USB devices, except when choosing "apply update from ADB", upon which adb devices lists it as "0123456789ABCDEF sideload". adb shell however does not work, it gives an "error: closed" message.
Resetting to factory did not help either, current Android version of the device was 4.4.2.
By the looks, the failed update bricked the /system somehow; can I sideload a version of adb onto the recovery to gain shell access?
Thanks!
Click to expand...
Click to collapse
Hey my little brother just had the same problem but I managed to get the fone to boot took the battery out held Down volume down and 3 mins later it booted
harddisk_wp said:
Not the solution, but maybe a cause... did you root your device?
Click to expand...
Click to collapse
Yes I did.
I also thought that was the problem.
delox88 said:
Hey my little brother just had the same problem but I managed to get the fone to boot took the battery out held Down volume down and 3 mins later it booted
Click to expand...
Click to collapse
Can you elaborate?
Do you hold before and while turning on?
Did you hold with the battery Out with charger?
I tried to hold while booting but it just stays in the inicial image forever.
Thanks.
Chegger said:
Can you elaborate?
Do you hold before and while turning on?
Did you hold with the battery Out with charger?
I tried to hold while booting but it just stays in the inicial image forever.
Thanks.
Click to expand...
Click to collapse
Ha, same for me. Even adb comes halfway up (adb device shows up in windows' device manager, but "unauthorized", so no shell/pull/push), but it doesn't progress beyond the loading image.
Can anyone with a working B15Q please execute the command "cat /proc/mtd" in a shell or do a full(!) backup using mtkdroidtool?! I pledge €20 via Paypal to the first one who submits all of the partitions except /data up to Mega or another OCH.
harddisk_wp said:
Ha, same for me. Even adb comes halfway up (adb device shows up in windows' device manager, but "unauthorized", so no shell/pull/push), but it doesn't progress beyond the loading image.
Can anyone with a working B15Q please execute the command "cat /proc/mtd" in a shell or do a full(!) backup using mtkdroidtool?! I pledge €20 via Paypal to the first one who submits all of the partitions except /data up to Mega or another OCH.
Click to expand...
Click to collapse
At least you know this stuff that's half way trough.
I will post this in the original root thread since I already posted the issue there and they are now replying ( I will mention you).
http://forum.xda-developers.com/general/rooting-roms/root-achieved-cat-b15q-t2822015/page11
My phone bricked after updating to 1.1019.000
I was lucky enough to save the whole ROM to a file before updating.
The problem for me was the original recovery.
My solution was to install the new 1.1019.000 recovery on my original ROM and then updated to the new (1.1019.000) firmware.
Give me your mail and i will send you the 1.1019.000 recovery. I have the whole ROM but it´s to large and i am to lazy to upload
bigal1337 said:
My phone bricked after updating to 1.1019.000
I was lucky enough to save the whole ROM to a file before updating.
The problem for me was the original recovery.
My solution was to install the new 1.1019.000 recovery on my original ROM and then updated to the new (1.1019.000) firmware.
Give me your mail and i will send you the 1.1019.000 recovery. I have the whole ROM but it´s to large and i am to lazy to upload
Click to expand...
Click to collapse
I've the same problem - b15q is bricked - device was rooted to be able to use link2sd.
bigal1337 said:
My phone bricked after updating to 1.1019.000
I was lucky enough to save the whole ROM to a file before updating.
The problem for me was the original recovery.
My solution was to install the new 1.1019.000 recovery on my original ROM and then updated to the new (1.1019.000) firmware.
Give me your mail and i will send you the 1.1019.000 recovery. I have the whole ROM but it´s to large and i am to lazy to upload
Click to expand...
Click to collapse
I've witten you a PM - please send me your original ROM - or could you send me a link where i may download it.
huedlrick said:
I've the same problem - b15q is bricked - device was rooted to be able to use link2sd.
Click to expand...
Click to collapse
Another one here! Were you able to use link2sd after rooting the phone? Link2sd gave me a mount error when I tried to mount my sd card's 2nd ext3 partition.
Many ppl wanted the stock rom. So i uploaded it to my google drive. It´s a E01 so beware those of you who has B01 or something else.
Original 1.1010.000 rom in files with scatterfile
1.1019.000 Recovery
Original 1.1019.000 update
Scatter file
To flash the phone you only need the bootimg, recovery,android and scatterfile.
(Edit: I dont have google drive anymore)
bigal1337 said:
Many ppl wanted the stock rom. So i uploaded it to my google drive. It´s a E01 so beware those of you who has B01 or something else.
Original 1.1010.000 rom in files with scatterfile https : // drive . google . com /file/d/0ByVAMsMZdC8bdEIxWlpBeXBHNUE/view?usp=sharing
1.1019.000 Recovery https : // drive . google . com /file/d/0ByVAMsMZdC8bVXU2RzBGalV0S1U/view?usp=sharing
Original 1.1019.000 update https : // drive . google . com /file/d/0ByVAMsMZdC8bbWQ4dmhSZWVxZVE/view?usp=sharing
Scatter file https : // drive . google . com /file/d/0ByVAMsMZdC8bSkRhREEwakNhUWc/view?usp=sharing
To flash the phone you only need the bootimg, recovery,android and scatterfile.
Click to expand...
Click to collapse
Thank you very much - but how can I determine if my phone is E01/B01 without being able to boot it?
So, I can confirm that reflashing your ANDROID/RECOVERY/BOOTIMG unbricked my European B15Q!
harddisk_wp said:
So, I can confirm that reflashing your ANDROID/RECOVERY/BOOTIMG unbricked my European B15Q!
Click to expand...
Click to collapse
Great and congrats.
Could you, please, describe the process and which files did you use.
Thanks.
harddisk_wp said:
So, I can confirm that reflashing your ANDROID/RECOVERY/BOOTIMG unbricked my European B15Q!
Click to expand...
Click to collapse
Can you give some hints how you unbricked it? What tools and commands have to be entered?
Best regards,
Doggy77
Uploads are not done yet. But you can prepare until I'm done... grab the driver package, spFlashTool and the 1.022 RAR from http://forum.xda-developers.com/general/general/stock-rom-cat-b15q-rom-development-t2988774.
You will need a win7 x86 machine for this to work (64-bit systems will need to disable the driver signature enforcement, but this is unreliable), and latest(!) WinRAR for unpacking.
The full backup of your device will take up ~1.5 GB, so you will need at least 3GB free and another 2GB if you also want to backup your userdata (HIGHLY RECOMMENDED).
"PMT changed for the ROM; it must be downloaded"
I'm trying to flash the files of harddisk_wp with his instructions but i keep getting the error "PMT changed for the ROM; it must be downloaded", right after I connect the phone and SP Flash Tool finishes "Download DA". I am trying with the 64bit drivers since I do not have a 32bit system, with digital signature verification disabled.
After some search, I saw in the log files that SP Flash Tool is reading the partition table on the phone and comparing it to the scatter file. There is a mismatch there and throws this exception. Now either the driver is not working correct and does not report the partition table right or there is something else going on. Anybody tried this on a 64bit system? Any ideas?
BTW the scatter file is correct for my phone. I had downloaded it myself also before the bricking and I compared it with harddisk_wp's one. They are identical.
In all other aspects SP Flash Tool works fine, I read the user partition for backup without problems.
walckenaerius said:
In all other aspects SP Flash Tool works fine, I read the user partition for backup without problems.
Click to expand...
Click to collapse
SPFT worked for me good to resurrect the phone with files from 1010 version (first firmware) raw partitions.
Phone came back to last user backup and booted fine.
I applied newer and suggested 1019 update that had bricked the phone even further into the loop of the booting logo stuck and rebooting.
SPFT tool memory scan showed that there is no NAND present. I assume that there is PRELOADER damaged. By trying to flush raw PRELOADER that was a no go area. Connection made red line on 100% and nothing happens after that.
SPFT stopped making connection via USB. Inserting the battery, power on - it didn't came back at all.
Phone is now dead black brick that on Linux shows: as MediaTek Inc. MT6227 phone.
In any case do not try to make the same mistake like me.
I will check if it works on some other Windows machine.
Not being Windows user I cannot tell if it is in USB driver or not.
Used W7 without admin pass, with MTKUsbAll driver.
Eh.

Accidently deleted OS

Hey guys,
Quick question!
I accidently deleted the OS (lollipop 5.1 I believe) off my Moto X 2013. Stupid I know.
Is there any way for me to reinstall it?
Thanks!
If you have deleted the OS, I am assuming you have a custom recovery? If so, then just download a rom and use adb to push the rom to the phone's storage and use the recovery to install. If you do not have a custom recovery, you will need to find the factory firmware for your variant and use RSD Lite to install via PC.
Yeah I can boot to Teamwin recovery, just not sure how to put Lollipop back on it
I already told you what was needed. What part of that do you need help with?
es0tericcha0s said:
I already told you what was needed. What part of that do you need help with?
Click to expand...
Click to collapse
Do you know where I get the rom from? Isn't Lollipop like Windows, you have to buy it? Also is ADB a program?
Sorry for my noobishness
Ohh ok I see where we're at... Lol At the beginning. I'll hope you at least have the drivers installed? Get adb from here http://forum.xda-developers.com/showthread.php?t=2317790. Android is free, you should never pay for a rom (though if you use a custom one you like, feel free to donate to the developer). You can find a rom in the subforum for your phone here on xda. Make sure you choose one for the correct model and carrier or region. Download to the PC and put it in the folder where adb installed then boot to recovery. Open the Command Prompt and use:
adb devices
To see if the computer recognizes the phone properly. If not, check your drivers in Device Manager. Once you have the connection, use:
adb push rom.zip /sdcard/
Where rom.zip is whatever the name of the rom you downloaded (or you can rename to rom.zip for ease. Once it transfers, use TWRP to install.

[TWRP][RECOVERY] Asus ZenPad 8.0 Z380M (locked bootloader ok)

This is for real, folks. The first working custom recovery for Asus ZenPad 8.0 Z380M and a method to flash it under a locked bootloader. This took quite a bit of work to make, partly due to having to find a way to bypass the locked bootloader. And because of a kernel configuration issue that limited the size of the initial ramdisk, which took some serious effort to weed out. @lss1977 helped to port it to this device. And of course, credits to TeamWin for TWRP.
In addition to this thread, the current Z300M/Z301M TWRP thread and the the old Z300M recovery/rooting thread may be helpful. These models share the same hardware and software base, so most things that apply to one tablet also apply to the other.
DISCLAIMER
As usual, you do anything described in this post at your own risk. No one but you is responsible for any data loss, bricking or damage of your device.
REQUIREMENTS
Windows PC
SP Flash Tool version 5.1532 (only this version will bypass security checks)*
MediaTek VCOM drivers (available through Windows Update)
Z380M scatter file, attached
Recovery image, attached
Z380M preloader file (optional), available inside the stock firmware download
ZenPad Z380M tablet upgraded to Android N
* If you prefer to use a more recent SP Flash Tool, check out the special image file below.
This won't be a guide on how to use SP Flash Tool. There are plenty of good guides out there like this one on how to set up drivers, load scatter files, flash and make backups with SP Flash Tool. If you're not familiar with this software or how to flash MediaTek devices in general, please do your research before attempting this. I will just get straight to the specifics about the ZenPad 8.
FIRST TIME INSTALLATION
For a locked bootloader:
At this point you should have your tablet powered off, the drivers installed, all of your data backed up, and SP Flash Tool v5.1532's Download tab open and loaded with the tablet's scatter file. Open the download agent file DA_PL.bin, replacing the default MTK_AllInOne_DA.bin. (You can use the AllInOne DA if you want, but the procedure involves extra steps as described below.) Load the extracted TWRP recovery image (twrp-3.2.1-0-z380m.img) under the recovery partition line in the partition table. Click the Download button inside SPFT. Now just connect the USB cable to your tablet and your computer's USB port. It should start the download process automatically and disconnect when finished.
Alternative Method:
If you're using MTK_AllInOne_DA.bin, you have to hold the Volume Up key as you insert the cable, which puts the device into an emergency download mode. In addition, you will need to have the stock preloader*.bin file loaded inside SPFT for it to be able to communicate with your tablet. The preloader is available inside the official zip file download. Do not flash the preloader (untick the box) or any partitions other than recovery. You just need to have a valid bin file selected under the Preloader line.
For an unlocked bootloader:
If you have used the Asus unlock tool to unlock your device, you will still not be able to use fastboot flash to install a custom recovery. However, you can do a "hot boot" or a tethered boot of TWRP. This method doesn't require SP Flash Tool. Download the TWRP image, put your tablet in fastboot mode and connect to PC. Then run this command to boot TWRP dynamically:
fastboot boot twrp-3.2.1-0-z380m.img
Once inside TWRP, flash twrp-3.2.1-0-z380m.img to Recovery using Install -> Install Image. Then reboot to recovery. You may be able to use TWRP in the tethered boot mode, but that could result in glitches due to different parameters passed by the bootloader to the kernel. That's why flashing is recommended.
To update from your installed TWRP version to a new one, just transfer the image to your tablet, then boot to TWRP and install it by going to Install -> Install Image and flashing to Recovery.
START RECOVERY
With the tablet powered off, hold the Volume Up and Power keys together until you get to a menu where you can select "recovery". Use Vol. Up to scroll and Vol. Dn to select. If you have a locked bootloader, it will show a Yellow State message because the recovery is not signed by the OEM. Just press volume up to boot it. On the welcome screen of TWRP it will ask you about modifying the system partition, I suggest you go with Keep System Read-only. Doing otherwise will complicate your OTA updates.
WARNING: Never start the stock recovery from the bootloader menu on this device. It is programmed by the bootloader to instantly wipe your data without any warning. Also, be aware that Android installs the stock recovery at every normal boot cycle. So you either have to flash the TWRP every time you want to run it, or disable the automatic recovery installation in the stock firmware. Any kind of mod to the boot image will prevent the automatic recovery installation. If you're not sure which recovery you have installed, you can always do a 'adb reboot recovery' from Android without risk of data loss.
What works: Basically everything... access to major partitions, decrypted userdata partition, decrypted adoptable storage, external SD card, ADB, USB-OTG, touch interface, splash screen, installing stock Asus OTA/web FW updates
What doesn't work: (no known problems yet, but please report any)
Not guaranteed to work: factory reset
DOWNLOAD
(Updated February 3, 2018: updated kernel to firmware 5.3.18; up-to-date TWRP 3.2.1 sources)
SP Flash Tool v5.1532
Z380M Scatter file for all storage sizes (right click, Save link as...)
Recovery image
Signed image for Flash Tool only -- may be flashed with recent SP Flash Tool versions -- DO NOT INSTALL USING ANY OTHER METHOD -- tested with SPFT 5.1736.
Development and experimental files
Source code
P.S. The thanks button doesn't bite.
Nice one now lets get some custom roms done.
Has anyone installed this yet? I see the file has been downloaded a few times. Any feedback is welcome.
If you want the recovery to stick after reboot either rename or remove system/bin/install_recovery.sh.
lss1977 said:
If you want the recovery to stick after reboot either rename or remove system/bin/install_recovery.sh.
Click to expand...
Click to collapse
The way I did it was to edit the init.rc file inside the boot ramdisk and comment out the service block that calls install_recovery.sh. I used the MTK boot image unpack/repack tools. I don't know, it seems like changing anything on the system partition will break OTA updates because of dm-verity. Because that depends on verifying each block of the file system. I have never even mounted the system as R/W in recovery.
how to create scater file from text posted? I copied all text to MT8163_Android_scatter.txt file but when open with splash tools give error "scatter file is invalid"
please atach your working scatter file to other atachments
PxYra said:
how to create scater file from text posted? I copied all text to MT8163_Android_scatter.txt file but when open with splash tools give error "scatter file is invalid"
please atach your working scatter file to other atachments
Click to expand...
Click to collapse
OK, I added the scatter file as a download. It was a pain in the ass to copy & paste. (But it did work.)
Problem fixed downloaded new version of flashtool 5.16 and scatter working
Ok I installed TWRP on Z380M P00A, and wanna say to other
1. Use VCOM drivers only from splash tool official site
2. To install VCOM drivers first need enter chinese recovery tablet, then in windows device manager you see USB device, install manualy drivers (don forget in windows disable driver signature)
3. Use only SP-Flash-Tool-v5.1532.00, newer or older version not properly working with this phone
Ok, thanks for the update, PxYra. Just to let you know, there are signed versions of VCOM drivers floating around so you don't need to mess with signature enforcement. Here's one: https://www.androidfilehost.com/?fid=24591000424943663. They are also updated by Windows so you can just let Windows Update install them.
Thanks for your work.
Flashing procedure works only with "MTK_AllInOne_DA.bin" method for me. But this is OK!
(Updated May 6, 2017: added kernel from firmware 5.3.7, source code cleanup)
Click to expand...
Click to collapse
is it possible to get the older versions? I need Android 6.x, because of xposed-Framework for my Zenpad 8.0 Z380M.
Greets Freisei
Hey freisei...
I never posted a version for Android 6. There was just one based on the 5.3.6 kernel, practically the same as the current one. That's why I didn't keep it. I could try to build one for you if you want, but I can't test it of course. Does this recovery not boot at all on the old firmware?
It's strange that the DA_PL.bin method didn't work for you. What happened when you tried it? I suppose the old preloader doesn't allow it(?).
hello guys, you think lineage os official version for asus z380kl (p024) will work on our z380m ?
---------- Post added at 08:19 PM ---------- Previous post was at 08:05 PM ----------
Can anyone help me? after selecting recovery img, pressing download and inserting usb cable, nothing happens. Thanks in advance
lss1977 said:
If you want the recovery to stick after reboot either rename or remove system/bin/install_recovery.sh.
Click to expand...
Click to collapse
hello friend, can you please upload that file? I deleted it, but now I need it to revert to official recovery, as my zenpad is bricked! It would be of great help! thanks!
Pires_7 said:
hello friend, can you please upload that file? I deleted it, but now I need it to revert to official recovery, as my zenpad is bricked! It would be of great help! thanks!
Click to expand...
Click to collapse
Your ZenPad didn't brick because you deleted install_recovery.sh. It's because you modified the system partition. Making any mods to system is bad advice unless you know exactly what you're doing. Even mounting it in r/w mode can break it. That's because dm-verity has tripped and is blocking access to changed blocks of the file system. So you have 3 options: mod your boot image fstab file to disable dm-verity, restore the original system image block-for-block (either from backup or official firmware converted to an img file), or wipe userdata (lss reported that to work).
Pires_7 said:
hello guys, you think lineage os official version for asus z380kl (p024) will work on our z380m ?
Click to expand...
Click to collapse
Nope, no chance.
diplomatic said:
Your ZenPad didn't brick because you deleted install_recovery.sh. It's because you modified the system partition. Making any mods to system is bad advice unless you know exactly what you're doing. Even mounting it in r/w mode can break it. That's because dm-verity has tripped and is blocking access to changed blocks of the file system. So you have 3 options: mod your boot image fstab file to disable dm-verity, restore the original system image block-for-block (either from backup or official firmware converted to an img file), or wipe userdata (lss reported that to work).
Nope, no chance.
Click to expand...
Click to collapse
Ok. I made some real s*it, I think I deleted every partition except recovery. Can you provide me a twrp backup or some way around my problem?
What do you mean you deleted every partition except recovery? There's like 28 partitions. You would have to work hard to accomplish that.
My first suggestion is to extract a system.img from the Asus stock firmware zip using this. Then flash it with SP Flash Tool. You might also try to install a full firmware zip from TWRP. Although I have no idea if that will work or if it's even safe to try.
diplomatic said:
What do you mean you deleted every partition except recovery? There's like 28 partitions. You would have to work hard to accomplish that.
My first suggestion is to extract a system.img from the Asus stock firmware zip using this. Then flash it with SP Flash Tool. You might also try to install a full firmware zip from TWRP. Although I have no idea if that will work or if it's even safe to try.
Click to expand...
Click to collapse
i was able to extract system.new.dat from stock firmware zip, but it extracts to a system folder. How do I flash this through sp flash tool?
OK, the system folder you don't need. It should have produced a system.img file also. That's the file you need to flash. Just select it for the system partition row in the partition list and then Download. Hopefully that will be enough.
EDIT: I just looked at the script, and realized the system.img.img file gets deleted in the process. So what you need to do is start the extraction, then after it makes system.img.img, when it starts extracting individual files, hit Ctrl+C. Then you'll end up with the img file.
Thank you very much! it works! YOU are the BEST!
please tell me, in your scatter file, address partition_name: frp (0x80a5000) is correct? if i format this partition (frp), google account remove?

Recovery image or firmware for Alcatel 1T 7 8067

Hi everyone. I recently bought an Alcatel 1t 7 (8067) tablet, 1Gb ram, 16Gb rom, just wifi (no 4G), mt6580 processor, android oreo go edition; a very simple and cheap tablet, but it seemed me a very nice one, because is slim and lightweight; worhty of root access, but also a custom recovery. I prefer TWRP recovery because it's more organized... ¡Anyway!... So I got down to work, but at first, as I didn't know how to backup all firmware, and when I learned how to do it and did it (esentially I could "tame" sp flash tools, hehe), I had already lost my original recovery file. Is needless to say that TWRP recovery, as far as I know, isn't available for this model, so I needed to port it, but as at first, I didn't know how to back it up, I overwritten it with other recoveries that didn't work. I mean, at this time, the tablet is working but is without recovery tool. I'm not going to talk about root access, because I already could get it, by using magisk manager, but I need my recovery image file, back; both to reinstall it and port it to TWRP.
So finally, if anyone has this stock recovery file, the full stock rom for it, or even better the ported TWRP for this tablet, please share it to me.
Thanks in advance for your attention.
just boot into android, stock recovery will be repaired from /system/recovery-from-boot.p automatically
aIecxs said:
just boot into android, stock recovery will be repaired from /system/recovery-from-boot.p automatically
Click to expand...
Click to collapse
Thank you for reply. Ok, I booted android. I have enabled usb debugging so, when android booted, I connected it to adb, and opened "adb reboot recovery" command, to be sure that android would reboot into that mode; but it didn't, it just rebooted several times on boot screen, and when it "got tired" of rebooting, it booted into android. Didn't boot into recovery, so I guess, It didn't repair it.
PS: I was looking for that file "recovery-from-boot.p" on that path, and there isn't such file, i can't find it.
on older devices it is /system/etc/install-recovery.sh or something, it's maybe disabled if your device isn't completely stock anymore?
you can port TWRP with kernel from boot. you can use this TWRP as base
aIecxs said:
on older devices it is /system/etc/install-recovery.sh or something, it's maybe disabled if your device isn't completely stock anymore?
Click to expand...
Click to collapse
¿Must that file have the same size that the original recovery image? Because the only file named recovery that i can find on that path is named "recovery-resource.dat" and its size is 807kb, and as I have seen before, is that recovery images have several Mb of size.
aIecxs said:
you can port TWRP with kernel from boot. you can use this TWRP as base
Click to expand...
Click to collapse
Two questions about it; as far as I can remember twrp image must be compatible not only for the same chipset, but the same screen resolution ¿Am I right? Also, this tablet is 600x1024 px, or 1024x 600 on landscape mode. All TWRP that I have installed on former machines, worked on portrait mode, so I wonder miself ¿Could TWRP also work on landscape mode?
/system/etc/recovery-resource.dat "generates a binary patch that creates the recovery image starting with the boot image. (Most of the space in these images is just the kernel, which is identical for the two," so the resulting patch is a executable file with smaller file size than the actual recovery.) It's just few lines of code.
https://android.googlesource.com/platform/build/+/b32161a^!/
TWRP is available in landscape mode. you can read more about here
[GUIDE]Porting TWRP without source
I don't think touchscreen will work at all, so resolution doesn't matter. you can use TWRP from cmd line
https://twrp.me/faq/openrecoveryscript.html
aIecxs said:
/system/etc/recovery-resource.dat "generates a binary patch that creates the recovery image starting with the boot image. (Most of the space in these images is just the kernel, which is identical for the two," so the resulting patch is a executable file with smaller file size than the actual recovery.) It's just few lines of code.
https://android.googlesource.com/platform/build/+/b32161a^!/
Click to expand...
Click to collapse
Ok... I can find that file on my tablet, but I'm not so skilled android user, as for rebuild recovery from that file or even port TRWP from that file, so ¿Is there an easy way to do it ( or at least, comprehensible for middle skilled android users) ? ¿How? (and supposedly this machine is easy to port and root, they say on internet. I also have a huawei y7 2018 for rooting, that seems harder to root. But that's a another (my next) struggle in here, hehe)
aIecxs said:
TWRP is available in landscape mode. you can read more about here
[GUIDE]Porting TWRP without source
Click to expand...
Click to collapse
Another question. ¿Are those programs who claim to help to port TWRP with just some clicks, reliable? (for instance TWRP porter for mediatek)
aIecxs said:
I don't think touchscreen will work at all, so resolution doesn't matter. you can use TWRP from cmd line
https://twrp.me/faq/openrecoveryscript.html
Click to expand...
Click to collapse
All the TWRP recoveries that i have ported before, have had a working touchscreen, but as I understand, resolution requirement is not only for touch calibration, but for correct displaying of TWRP GUI (that all buttons and options fit on the screen), Now I've read that new versions of TWRP adjust automatically to any screen resolution, ¿Is that right?
dump boot.img off device. you can use SP Flash Tool read back. download base TWRP and unpack with AIK. replace kernel and see what happens. if TWRP booted with black screen try to enter adb shell. get partition list from adb shell. create proper twrp.fstab and flash again. you should have functional TWRP now even without working GUI.
if touchscreen is disabled it might possible to hexpatch kernel with ghidra like I did for mine.
HCU-client needs 4 credits for Huawei.
I may reply in new thread.
aIecxs said:
dump boot.img off device. you can use SP Flash Tool read back. download base TWRP and unpack with AIK. replace kernel and see what happens. if TWRP booted with black screen try to enter adb shell. get partition list from adb shell. create proper twrp.fstab and flash again. you should have functional TWRP now even without working GUI.
if touchscreen is disabled it might possible to hexpatch kernel with ghidra like I did for mine.
Click to expand...
Click to collapse
¡No, man! If TWRP porting is kinda hard having the stock recovery image, without it, is a brain smashing task (or at least for me). I mean, I really don't understand well, how to port twrp starting only with boot.img, I mean, without recovery img. I've saw tutorials about the use of carliv kitchen (windows version), and seems easy, but all tutorials are made with stock recovery.img available, not with boot.img. So, what can I do there?
as I said. replace kernel with that from boot.img and see what happens? the generic base TWRP actually is recovery.img already, so you might lucky and it works? trial + error...
aIecxs said:
as I said. replace kernel with that from boot.img and see what happens? the generic base TWRP actually is recovery.img already, so you might lucky and it works? trial + error...
Click to expand...
Click to collapse
I saw a tutorial about. It said that I must to unpack stock recovery and twrp recovery, and replace some files of unpacked twrp recovery, with respective unpacked stock recovery files, and edit some files on twrp unpacked folder, and finally repack it.
Until that point, I assume that it should work, I mean, having stock recovery. But I did that, but using boot.img, I renamed all boot resources, to recovery, for instance, boot.imgkernel to recovery.imgkernel; and replaced it, repacked it, and reflashed it, but nothing happened, I mean, it didn`t want to boot into recovery. It`s interesting to "experiment", but I`m gonna try to find its original stock recovery, to at least get it back.
Hello!
I would like some help, alcatel 1T7" 8086 no4g I likely bricked it. There's nothing else than a black screen. The tablet doesn't react to anything. The computer finds it as unknown USB tool. No visibilty is shown. What can i do with it,for it to work? Or should i just put it in the trash?
Thank you for the reply.

Categories

Resources