[Q] How to flash CM12.1 on new bootloader? - Sony Xperia E3

I can't seem to get TWRP or Cyanogen Recovery to flash succesfully CM12.1. They refuse to flash ROM zips, but do flash Gapps. I've tried ADB sideload to flash CM12.1, but ADB doesn't find my E3 no matter what I do. I go to recovery, and choose ADB sideload. Then I do adb devices and it just says "List of devices attached", but no devices. I can only use fastboot succesfully, which that made me think that I could decompress the zip and make the boot.img, system.img, and userdata.img out of it to flash through fastboot. I got all the required filesfrom the zip to make userdata.img and system.img (boot.img was already in there). I only have one problem: I haven't found a way to re-pack the files into the correct img format to be able to flash it through fastboot.
So, back to my question:
Has anyone managed to flash the CM12.1 zip successfully? If so, how?
Or, can someone show me how to repack the system files into system.img and the userdata files into userdata.img?

Related

boot.img?

Hey guys,
so right now I am trying to flash a new rom (currently on trickdroid) and was considering axiom but one of the steps is to flash the boot.img but i am having trouble figuring out how to flash the boot.img through fastboot. I have installed the sdk manager and htc sync according to the how to in the development thread. But i don't know where to get the file for the boot.img and what to do after that I have watched the video and read through the how to several times. Is there an easier way to go about flashing roms, or do I have to use the boot.img process?
If you flash via TWRP, you won't have to flash boot.img.
boot.img is found in the .zip package that you flash. It should be one of the first items you see when you open the zip. This is the .zip that you install when you're in CWM. Extract that boot.img for the fastboot method, but like I said, with TWRP you won't have to flash it.
Some people have said that their boot.img's didn't flash on TWRP, but worse comes to worst is you get stuck in a boot loop and you just flash the boot.img in fastboot or restore your phone in CWM.
ShensMobile said:
If you flash via TWRP, you won't have to flash boot.img.
boot.img is found in the .zip package that you flash. It should be one of the first items you see when you open the zip. This is the .zip that you install when you're in CWM. Extract that boot.img for the fastboot method, but like I said, with TWRP you won't have to flash it.
Some people have said that their boot.img's didn't flash on TWRP, but worse comes to worst is you get stuck in a boot loop and you just flash the boot.img in fastboot or restore your phone in CWM.
Click to expand...
Click to collapse
Okay perfect this is exactly what I was looking for, thank you!

How to get the original ROM back?

Well I need to send in the Chacha because of some Hardware issues, so I'd like to restore the original ROM.
What's the easiest way getting it back (maybe with the option not having to root it again afterwards, or restoring the Clockwork-Backup)?
The best way is to download RUU, extract from it rom.zip and from that zip extract system.img, boot.img and recovery.img. Then flash those three via fastboot using these commands:
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
And reboot your phone and you will have stock rom with stock recovery on it. Then you can use OTA update if available.

[A510] I need stock system.img

I need stock system.img in order to flash it via fastboot. I have deleted my recovery and now i have no rom installed so i need these files. Hope someone can uploaded them fast because i am running out of time.
As said by PM
Reboot in fastboot, and do
fastboot boot recovery.img
(using CWM or TWRP)
In recovery, you will be able to flash a ROM or restore a backup.

OPO : flash ROM with empty partition

Hi, I need your help....
Where can I find ROM with system.img, boot.img, userdata.img etc ?
for some reasons, mainly because i'm a dumb, i erased the entire partition of the OPO64.
Now, the only things I can do is to boot into :
- Fastboot Mode
- TWRP (that I installed just before doing silly things, like wiping everything out...)
I am wondering how to reinstall any OS on my phone, LineageOS or RR or anything else to get this phone working again. As there is no physical SDcard slot, I can't put a ROM on it to flash it from TWRP.
the only ROM I've found is CM13.x found here : https://www.androidsage.com/2016/08...anogen-os-13-1-2-znh2kas3p0-update-cm-13-1-2/
is it possible to get some other ROM with all the .img files ?
adb commands do not work.
The only thing I ca do is using fasboot commands.
As far as I understood, I could use there commands :
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
BUT : when I unzip all the ROMs I've found so far, there is always a boot.img file (and the fastboot flash boot boot.img works), but there is no other IMG file in the ZIP. No system.img, no userdata.img etc
Where can I download a ROM providing these files ?
is it mandatory to flask recovery.img ? I still want to use TWRP
Many many thanks
cm-13.1.2-ZNH2KAS3P0-bacon-signed-fastboot-76d803f730
cm-13.1.2-ZNH2KAS3P0-bacon-signed-fastboot-76d803f730 - FLASH it through BRT - Bacon Root Toolkit
flyjodel said:
Hi, I need your help....
Where can I find ROM with system.img, boot.img, userdata.img etc ?
for some reasons, mainly because i'm a dumb, i erased the entire partition of the OPO64.
Now, the only things I can do is to boot into :
- Fastboot Mode
- TWRP (that I installed just before doing silly things, like wiping everything out...)
I am wondering how to reinstall any OS on my phone, LineageOS or RR or anything else to get this phone working again. As there is no physical SDcard slot, I can't put a ROM on it to flash it from TWRP.
the only ROM I've found is CM13.x found here : https://www.androidsage.com/2016/08...anogen-os-13-1-2-znh2kas3p0-update-cm-13-1-2/
is it possible to get some other ROM with all the .img files ?
adb commands do not work.
The only thing I ca do is using fasboot commands.
As far as I understood, I could use there commands :
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img
BUT : when I unzip all the ROMs I've found so far, there is always a boot.img file (and the fastboot flash boot boot.img works), but there is no other IMG file in the ZIP. No system.img, no userdata.img etc
Where can I download a ROM providing these files ?
is it mandatory to flask recovery.img ? I still want to use TWRP
Many many thanks
Click to expand...
Click to collapse
https://forum.xda-developers.com/oneplus-one/general/guide-return-opo-to-100-stock-t2826541
It's not mandatory to flash recovery.img.
Mr.Ak said:
https://forum.xda-developers.com/oneplus-one/general/guide-return-opo-to-100-stock-t2826541
It's not mandatory to flash recovery.img.
Click to expand...
Click to collapse
thank you !
flyjodel said:
thank you !
Click to expand...
Click to collapse
Instead hit the "thanks button "... Just sayin'

Error 7 Device name is "" instead of "ShieldTablet"

So i goofed up and wiped everything under advanced when I was switching Roms. I was able to get the original recovery image installed (nv-recovery-st-wx-na-wf-5.2.0.zip) but if i reinstall TWRP and attempt to install any rom, the device name is still "" instead of "ShieldTablet". Is there anyway to restore the device name? I have been digging around on the forums (Including other device forums) but installing recovery is all I have been able to find. (Note: There was some guides advising removal of the device name check from the script within the image file, then re-zipping it. But this seems to always fail with a bad image error.)
Recovery was installed manually using fastboot:
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash staging blob
Recovery image pulled from https://developer.nvidia.com/shield-open-source
More info to issue.
Boot into bootloader
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash staging blob
Boot into OS. (everything works.)
EnableUSB debug
adb shell settings get global device_name (Gives back "SHIELD Tablet")
Reboot into bootloader
fastboot flash recovery twrp-3.5.1_9-0-shieldtablet.img
Reboot into twrp
Copy on Rom and attempt to install.
Error text:
E3004: This package is for device: shieldtablet; this device is .
Updater process ended with ERROR: 7
Error installing zip file '/external_sd/Lineage-14.1-20210312-unofficial-shieldtablet.zip'
Note: above error text occurs when trying to install any ROM.
I am trying to figure out where "E3004: This package is for device: shieldtablet; this device is ." is pulling the device name. That is the part that I need to fix somehow.
Hi did you try to use a older version of twrp ? I also had my issues with the 9.5.1 version as it doesnt recognize my sdcard so i reflashed the version 9.5.0
You beautiful person! Downgrading from twrp-3.5.1_9-0-shieldtablet.img to twrp-3.5.0_9-0-shieldtablet.img allowed the img to install!
Checking in with the same problem. Thank you for the solution listed of downgrading to 3.5.0_9-0.
Currently flashing!

Categories

Resources