Don't forget to thank me and Radii it means a lot to us!
Click to expand...
Click to collapse
Upon discovering the reason people being given an error trying to flash OTAs in my TWRP recovery image I decided I would come up with a work around while I work out a way to fix it.
The following solution is group work between me and Radii.
If you came here just for OTA links then click HERE
Click below spoiler if you haven't installed TWRP on your device and you want to OTA update and then install TWRP.
First you need to download the version you would like, in theory you could backdate although this hasn't been tested and it may misbehave. For example the latest version as of 16/10/2015, build number cm-12.1-YOG4PAS38J.
On the spread sheet you will need two files, the fastboot and the signed. In the fastboot ZIP there is a file called recovery.img. Copy this to your android SDK platform tools folder. Now with the signed ZIP you either copy that to the same folder (platform-tools). Put your phone into fastboot mode and type.
Code:
fastboot -i 0x2b4c boot recovery.img
Or the name of the recovery if you renamed it.
Your phone will boot into Cyanogen OS Recovery. From there click Apply Update (Top option) and click ADB Sideload. Then type,
Code:
adb sideload cm-12.1-YOG4PAS38J-ham-signed.zip
Or whatever you renamed it to.
Reboot and you're done! Now you'll need to install TWRP to flash things like SuperSU and Xposed.
To install TWRP you need to download the latest TWRP image from HERE move that to platform-tools and type (with your phone in fastboot mode/bootloader mode of course)
Code:
fastboot -i 0x2b4c flash recovery "recovery.img"
Changing the name in the quotations to the name of the recovery and removing the quotes.
Click below spoiler if you have installed TWRP on your device and you want to OTA update and restore/preserve TWRP
Do the same as above, I have discovered it's impossible to preserve because Cyanogen will auto-write it's own recovery to the recovery parition.
Nerdy stuff
If you're wondering why you can't OTA without going through all this then it's because Cyanogen OS will do checks to see if the System has been r/w mounted. If so then it will stop all OTAs from installing. Simple when you think about it.
FAQ
Q: Why isn't TWRP still installed after installing the OTA? A: Because Cyanogen OS will write over the recovery partition with Cyanogen Recovery
Q: Will I lose all my data? A: Don't wipe and no, you can dirty flash to preserve data.
Thanks for your work, really appreciated.
However, it sucks a bit that we have tons of work just for the OTA updates if we want root, i guess we should annoy Cyanogen to add a Superuser option to CyanogenOS...
othe01 said:
Thanks for your work, really appreciated.
However, it sucks a bit that we have tons of work just for the OTA updates if we want root, i guess we should annoy Cyanogen to add a Superuser option to CyanogenOS...
Click to expand...
Click to collapse
It's designed to be shipped with devices like Samsung or LG's ROMs they'll never add that option.
Sent from my Z1 using Tapatalk
Breadcrust said:
It's designed to be shipped with devices like Samsung or LG's ROMs they'll never add that option.
Sent from my Z1 using Tapatalk
Click to expand...
Click to collapse
Why not? root is a normal option in CyanogenMod, why wouldn´t the "commercial" edition not support it? I see no reason they can´t add it to PrivacyGuard.
Here one of the forum admins said hes telling the team to add it -> http://community.cyngn.com/t/reques...-thethering-and-inbuilt-superuser-access/97/2
Breadcrust,
did you try this method used for oneplus one phones with CyanogenOS?
https://forums.oneplus.net/threads/flashable-zip-cm12-enable-integrated-superuser.297089/
https://github.com/julian-klode/bacon-superuser/
From what i´ve read OTA updates are working with it and all we need to do is update the recovery after installing a new ota, the script on github creates the patched boot files automatically, we just have to change the config to use the ZUK files.
All theory tho...as i don´t have my phone yet.
othe01 said:
Breadcrust,
did you try this method used for oneplus one phones with CyanogenOS?
https://forums.oneplus.net/threads/flashable-zip-cm12-enable-integrated-superuser.297089/
https://github.com/julian-klode/bacon-superuser/
From what i´ve read OTA updates are working with it and all we need to do is update the recovery after installing a new ota, the script on github creates the patched boot files automatically, we just have to change the config to use the ZUK files.
All theory tho...as i don´t have my phone yet.
Click to expand...
Click to collapse
I'll look into it at sunrise it currently 3:23AM here so can't do it now
P.s thanks for waking me :3
Sent from my Z1 using Tapatalk
@othe01
No COS device allows you to flash incremental OTA if your /system partition is modified. Your quoted package puts compatible su binary in /system & flashes boot-debuggable kernel so that root can be achieved from both app & ADB. It has nothing to do with OTA. Your only choice is to get the signed zip & flash it manually.
@Breadcrust
It would be nice to put incremental OTA zip links too. My posts regarding OTA links also contain them.
:highfive:
Titokhan said:
@othe01
No COS device allows you to flash incremental OTA if your /system partition is modified. Your quoted package puts compatible su binary in /system & flashes boot-debuggable kernel so that root can be achieved from both app & ADB. It has nothing to do with OTA. Your only choice is to get the signed zip & flash it manually.
@Breadcrust
It would be nice to put incremental OTA zip links too. My posts regarding OTA links also contain them.
:highfive:
Click to expand...
Click to collapse
sounded different here: [FLASHABLE ZIP] [CM12] Enable integrated superuser
But is prolly just a misunderstanding from my side.
How exactly does CyanogenOS check if System is modified and can´t we patch the check with an xposed module?
@othe01
He must used the signed zip to update. Regarding OTA faliure, I've discussed the issue here: http://forums.yuplaygod.com/index.php?threads/15124/
You need to registered in the forum to read, so I've uploaded a PDF of the same: https://drive.google.com/file/d/0B9zZIJPXbMsubkFBYmZ4eGtMQjQ/view?usp=sharing
I personally own OnePlus One & YU Yureka so already have a good experience with these things.
The whole procedure is clearly explained - no 'Xposed' module can bypass it. You can, in theory, deploy a file based OTA (I've already requested it through YU developers) instead of block based OTA or patch the update-binary to return always true (unmodified) value while checking the state of partitions.
:good:
@Titokhan I will post them later
Sent from my Z1 using Tapatalk
@Breadcrust can you please help me if you can, I have problem flashing any ota (increments or full), it return error " this package is for device:Z1 this device is k9", all ota was installed directly till unlocked bootloader and root .
aaswar said:
@Breadcrust can you please help me if you can, I have problem flashing any ota (increments or full), it return error " this package is for device:Z1 this device is k9", all ota was installed directly till unlocked bootloader and root .
Click to expand...
Click to collapse
Issue is noted method is in post
Sent from my Z1 using Tapatalk
@Breadcrust
cm-12.1-20150805-EXPERIMENTAL-YOG4PAP1CG-ham: http://forum.xda-developers.com/showpost.php?p=63390843&postcount=223
@Breadcrust
for clarification:
-isn't "cm-12.1-YOG4PAS38J-ham-signed-fastboot.zip" is the same as "cm-12.1-YOG4PAS38J-ham-signed.zip", but with the recovery image include, can sideload this file using the same process you mentioned?
-if the phone is rooted, boot with the COS recovery and sideload the "cm-12.1-YOG4PAS38J-ham-signed.zip" will not work as the system partition is already been modified by the root process, am I right?
aaswar said:
@Breadcrust
for clarification:
-isn't "cm-12.1-YOG4PAS38J-ham-signed-fastboot.zip" is the same as "cm-12.1-YOG4PAS38J-ham-signed.zip", but with the recovery image include, can sideload this file using the same process you mentioned?
-if the phone is rooted, boot with the COS recovery and sideload the "cm-12.1-YOG4PAS38J-ham-signed.zip" will not work as the system partition is already been modified by the root process, am I right?
Click to expand...
Click to collapse
re: above
if using cos recovery and sideload via abd or from file the full signed version , and your have root, it will work, root will be lost though.
fastboot zip has recovery signed doesn't. you need to flash recovery extracted from the fastboot zip and then flash the signed full zip using cos either using abd or sideload file onto system
I flash the rom, but when I insert CDMA SIM into slot one, there is no signal
and there is no option to choose band from the menu.
would you please instruct on how to get CMDA works?
@taitai
As you can see here, it is not an CDMA device.
As regards technical faults as well we're unable to help in most cases as ROMs are from Cyanogen and unedited.
Sent from my Z1 using Tapatalk
I have a chinese version of Z1 and it has CDMA capability
None of them do. They're the exactly the same under the hood.
Sent from my Z1 using Tapatalk
Hi
What is the difference between a flashable zip and a .img file for installing twrp?
I found an unofficial twrp and they listed a .img file and a flashable zip.
The img one is no longer available but inside the flashable zip there's a .img file. Can I take out the img file and flash that?
I don't need a detailed response all I need is a yes or no.
Thanks
(link to the twrp if you're wondering)
https://forum.xda-developers.com/android/development/recovery-twrp-3-1-1-0-alcatel-pixi-45-t3657927
Yeah go ahead and flash the recovery.img file thats your twrp recovery
1. NOTE: you must have TWRP recovery installed. If you do not, go here:
https://forum.xda-developers.com/oneplus-6/how-to/guide-how-to-install-official-twrp-t3801558
2. Download to your phone the newer OOS full version from here:
https://forum.xda-developers.com/oneplus-6/how-to/oneplus-6-mirrors-official-oxygen-os-t3792244
3. Make sure that you have TWRP installer zip on your phone
4. Make sure that you have the Magisk 16.4 zip on your phone
5. Reboot your phone into TWRP recovery
6. Install the downloaded OOS full version zip from you internal storage
7. DO NOT REBOOT
8. Install the TWRP installer zip
9. Reboot into TWRP recovery
10.Install the Magisk 16.4 zip
11.Reboot System
Credits to: lollyjay
Here is another thread if you need more help: https://forum.xda-developers.com/showpost.php?p=76596833&postcount=3
Deleted
Confusi0n said:
Can someone please just make a detailed guide on how to update from 5.1.8 rooted to 5.1.9 rooted so I can edit this post and replace it with a guide.
Click to expand...
Click to collapse
There's plenty of info already available... no need for yet another guide.
Try this https://forum.xda-developers.com/showpost.php?p=76596833&postcount=3
Hello,
I have been looking for an answer to this for a while and can't find something.
Current state: Huawei Honor 6X with LineageOS 14.1 (Thanks to the user HassenMirza01 Forum Thread here) and Elite TWRP (Forum Thread here)
Aim: LineageOS 15.1
Problem:
1: There is a Forum Thread on cyanogemods.org talking about a development build. The given download link there is androidfilehost.com.
The problem is that I can't use that file for flashing the OS because there is just a system image called "system_a.img" in the zip-file, nothing else. As far as I know there has to be some more files and folders to be able to flash the OS. When I try to flash the zip with TWRP it says "Invalid zip file format".
2: I tried a different file given on getdroidtips.com, but the given download link ends up here sourceforge.net with an empty project.
My question: Is there a way I am not aware of to flash a single image file?
Self explaining :highfive:
mods please keep it up until a reference is shown to inspire writers with good wills:angel::fingers-crossed:
2B_4G10 said:
Self explaining :highfive:
Click to expand...
Click to collapse
1. Unlock bootloader via MiUnlock software for PC (you have to wait at least 168 hours)
2. Flash TWRP recovery img via fastboot
3. Download and put into internal memory magisk.zip installer (you need version 20.4 or newer)
4. Install this zip via TWRP
5. Boot into the system and download Magisk Manager apk (version 8.0.3 or newer) then install it.
6. Voilà. That's all [emoji106]
zencooler said:
1. Unlock bootloader via MiUnlock software for PC (you have to wait at least 168 hours)
2. Flash TWRP recovery img via fastboot
3. Download and put into internal memory magisk.zip installer (you need version 20.4 or newer)
4. Install this zip via TWRP
5. Boot into the system and download Magisk Manager apk (version 8.0.3 or newer) then install it.
6. Voilà. That's all [emoji106]
Click to expand...
Click to collapse
Thanks! i found the basics but i couldn't find a proper TWRP version out there, and the ROMs too, isn't there a legit source to get em?
2B_4G10 said:
Thanks! i found the basics but i couldn't find a proper TWRP version out there, and the ROMs too, isn't there a legit source to get em?
Click to expand...
Click to collapse
I do not remember where I found the correct sources so I will upload these files for you into wetransfer in few minutes.
EDIT: here you are: https://we.tl/t-xTbsJVTtzA
Putting your post in large bold letters makes you look like a troll, not like you have an urgent issue.
Firmware, http://mifirm.net, twrp at the same place