Flashing OTA with TWRP on miui 8 cn dev (kenzo) - Xiaomi Redmi Note 3 Guides, News, & Discussion

1. Make 2 copies of Ota. Name them 'ota6. 6.18-6.6.23' and 'boot6.6.18-6.6.23'
2. Extract both.
3. Go to folder ota6.6.18-6.6.23
4. Open metainf-Google-updater-script
5. Remove all verification entries and bootimg patching entries.
6. Go back and zip the ota folder.
7. Go to boot6.6.18-6.6.23
8. Delete everything except patch and metainf folder.
9. Open metainf-google-updater-script
10. Delete everything except bootimg patching entries.
11. Pack/zip it back.
12. Reboot to official twrp (not tested on alka)
13. Wipe system and then mount system read only
14. Flash the full rom package you have
15. Flash the Ota6.6.18-6.6.23 and any other Ota you have back to back.
16. Flash the boot6.6.18-6.6.23 and other boot patch you have back to back.
17. Flash universal boot patcher and any other zip like supersu GApps xposed etc.
18. Reboot.
Keep the patched boot6.6.18-6.6.23 and ota6.6.18-6.6.23 zip safe for further use.
I am on phone, guide will be more detailed asap.
Sent from my Redmi Note 3 using XDA-Developers mobile app

Sudeep Duhoon said:
1. Make 2 copies of Ota. Name them 'ota6. 6.18-6.6.23' and 'boot6.6.18-6.6.23'
2. Extract both.
3. Go to folder ota6.6.18-6.6.23
4. Open metainf-Google-updater-script
5. Remove all verification entries and bootimg patching entries.
6. Go back and zip the ota folder.
7. Go to boot6.6.18-6.6.23
8. Delete everything except patch and metainf folder.
9. Open metainf-google-updater-script
10. Delete everything except bootimg patching entries.
11. Pack/zip it back.
12. Reboot to official twrp (not tested on alka)
13. Wipe system and then mount system read only
14. Flash the full rom package you have
15. Flash the Ota6.6.18-6.6.23 and any other Ota you have back to back.
16. Flash the boot6.6.18-6.6.23 and other boot patch you have back to back.
17. Flash universal boot patcher and any other zip like supersu GApps xposed etc.
18. Reboot.
Keep the patched boot6.6.18-6.6.23 and ota6.6.18-6.6.23 zip safe for further use.
I am on phone, guide will be more detailed asap.
Sent from my Redmi Note 3 using XDA-Developers mobile app
Click to expand...
Click to collapse
Works like charm ,updated my kenzo from 6.8.11-6.8.18 Miui 8, was tired of downloading whole recovery rom
and flashing it for small 100 mb OTA updates
Thanks awesome guide!

Thanks for this guide.

NVDX11 said:
Works like charm ,updated my kenzo from 6.8.11-6.8.18 Miui 8, was tired of downloading whole recovery rom
and flashing it for small 100 mb OTA updates
Thanks awesome guide!
Click to expand...
Click to collapse
Can you please post modified ota zips.

arunmcops said:
Can you please post modified ota zips.
Click to expand...
Click to collapse
Yes it ll be usefull for all.
Sent from my Redmi Note 3 using Tapatalk

arunmcops said:
Can you please post modified ota zips.
Click to expand...
Click to collapse
Here is my thread & all modded ota links are given and procedure to flash
Flashable MIUI 8 OTA Update 6.8.18 Via TWRP For Kenzo.?http://en.miui.com/thread-331079-1-1.html

Related

Android N Preview 2 npc91k (flashable & image with no encryption and dm verification)

Android N Preview 2 npc91k (flashable & image with no encryption and dm verification)
This thread is for the second Android N Preview.
For Android N Preview 3 see: http://forum.xda-developers.com/nexus-6/general/android-n-preview-3-beta-npd35k-t3381845
For Android N Preview 4 see: http://forum.xda-developers.com/nexus-6/general/android-n-preview-4-beta-npd56n-t3399473
** DISCLAIMER: I AM NOT A DEVELOPER. I DO THIS AS A HOBBY AND SHARE MY FINDINGS IN CASE SOMEONE ELSE FINDS THEM USEFUL. **
** THIS WORKED ON MY DEVICE BUT IT MAY NOT WORK ON YOURS. APPLY AT YOUR OWN RISK **​** The following are instruction for installing Android N Preview 2 image released by Google on 4/13/2016. After the installation you will have TWRP recovery 3.0.2-0 with the data partition erased and unencrypted if you use method 2, which means you will have ~ 3GB more space and ~ 10 seconds faster boot speed **​Always backup your data before flashing something a total stranger gives you!
Method 1: Flash update through TWRP recovery (keeps your data and current recovery)
1- You need to have TWRP installed on your phone.
2- Download this flashable zip..
3- Copy to the phone internal storage and flash via recovery.
4- Reboot. Your data should still be intact and your OS is upgraded to N Preview 2. If your internal storage is unencrypted before flashing it remains unencrypted.
For some people this didn't work. It seems to be the case when you have been encrypted by your previous Android N installation, in which case TWRP seems to have difficulty reading the file, and that seemingly Preview 2 doesn't play nice with TWRP. It works best when you are unencrypted and your recovery is 3.0.2-0. Thanks to @gammaxgoblin, @blitzerking1, @Michael in ATL, @HueyT, and @PhillyFlyer for debugging and hints.
Method 2: Flash update using a computer (wipes everything, unencrypts data, and upgrades TWRP)
1- ALL of your data including the internal storage will be lost so make a backup. (If you know what you are doing and you are coming from unencrypted Marshmallow you can modify the instructions to not lose data but I won't help you with that).
2- Download this file. Note that it is NOT a flashable zip.
3- Unzip into a folder of your choice on your PC.
4- Open a command window (cmd) and cd to this directory. then run the following:
Code:
flash-all
5- Wait until prompted, then press key to reboot the phone.
6- Your data is wiped and your OS is upgraded to N with unencrypted internal storage. Your TWRP is also upgraded to 3.0.2-0.
Technical details: this is a repacking of the Google image with a modified Kernel and removed userdata and recovery images. Everything else is stock.
Problem downloading from Mega on a mobile browser? Change the page setting to "Request desktop site".
About root and other issues
To obtain root after installing this update you should flash SuperSU 2.71 (or higher) in recovery. Get it from here: http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133. Despite the fact that SuperSU 2.71 is supposedly re-written for Android N, there are still some apps that seem to have a problem obtaining root. The commonest complaint on this thread so far has been about Adaway. If you want to block Ads just manually do what Adaway does. Download a hosts file from any ad block list server such as http://winhelp2002.mvps.org/hosts.htm, copy the files on your sdcard, boot the phone into recovery, and using the TWRP file manager replace the file /system/etc/hosts with this file and set its permissions to 644 (rw-r--r--).
wouldnt flash first go. redl now
no flash again
gammaxgoblin said:
wouldnt flash first go. redl now
no flash again
Click to expand...
Click to collapse
Same happened to me. It would not flash, same error
gammaxgoblin said:
wouldnt flash first go. redl now
no flash again
Click to expand...
Click to collapse
Can you open the zip that you downloaded and see if you can see the file that it is complaining about? What version of twrp are you using?
najoor said:
Can you open the zip that you downloaded and see if you can see the file that it is complaining about? What version of twrp are you using?
Click to expand...
Click to collapse
Same error for me as well. I can extract the zip and view the file it is talking about. I also tried on TWRP 3.0.1-0 and TWRP 3.0.2-0
Everything is working perfect for me with the new zip. I have a unencrypted phone and used 3.0.2 TWRP.
najoor said:
Can you open the zip that you downloaded and see if you can see the file that it is complaining about? What version of twrp are you using?
Click to expand...
Click to collapse
i tried 3.0.1 and 3.0.2 and i can also see the file
Method 2 works great
Method two works I used it myself
Shall I flash preview 2 directly from marshmallow?
Seems like TWRP is having a lot of troubles with each version of N Preview's encryption. I have same problem with both N6 and N6P, as do others in that forum too....:/
i have latest twrp, download a ota update from ofiicial site in zip file and flash it over in twrp. boot normally and works fine. only flash supersu 2.71 and it's unencrypted at all.
ps. TB not works for me ind N prew2 so i flash perv1, restore from TB and flash prew2 over it.
marius987 said:
i have latest twrp, download a ota update from ofiicial site in zip file and flash it over in twrp. boot normally and works fine. only flash supersu 2.71 and it's unencrypted at all.
ps. TB not works for me ind N prew2 so i flash perv1, restore from TB and flash prew2 over it.
Click to expand...
Click to collapse
Sorry for the stupid question. What do you mean for TB?
cerico76 said:
Sorry for the stupid question. What do you mean for TB?
Click to expand...
Click to collapse
I'm going to assume it stands for Titanium Backup.
Waiting for fixed method #1
outkastz said:
I'm going to assume it stands for Titanium Backup.
Click to expand...
Click to collapse
Ah,yes! Thanx!
Can someone please provide a link to the desktop website for the flashable zip?
Just to help with the installation of method 2, holding shift and right clicking a blank space in your unzipped folder, you can click open command window here. That will save you having to CD all the way to it.
Sent from my Nexus 6 using XDA-Developers mobile app
I did method 1. It upgraded fine. All my data remained. It killed root (expected this) and my TWRP. I was unencrypted before attempting.
I went and downloaded the latest TWRP and flashed via fastboot. Then downloaded latest SuperSU from http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133 and flashed it via my newly installed TWRP. Root confirmed and all is well.
Good to go Thanks!
I've got an "Invalid boot image" issue :
Any tought ?
outpox said:
I've got an "Invalid boot image" issue :
Any tought ?
Click to expand...
Click to collapse
You may have to flash a previous stable release of marshmallow or lollipop from Google first and then try this because something seems to be corrupted in your system.

installing ota update

I am trying to install an update for 7.0. I have twrp and root (supersu) installed. When I download and restart, it boots into twrp. I can't find the image. How do I update my phone?
Thee are two methods:
I Method
1. Download system image - I know it's a large file,
2. Unzip package and then unzip image-angler-xxx ZIP file
3. Flash via fastboot system and vendor images
4. Done.
II Method
1. Download OTA zip
2. Instal FlashFire
3. Open appa and hit + button
4. Choose "Flash firmware package"
5. Chose same images like in method I
6. Hit flash and You're done
Choosing/flashing other images can factory reset device and restore default recovery, depending which images You'll chose
downloading from here: https://developers.google.com/android/nexus/ota
Will this wipe my phone when I flash it?
Is there a way to install the update without loosing all of my data and apps?
And in the app, when I choose the zip, do I select the boot and modem firmware checkboxes?
Flashing the OTA Zip file will not overwrite your data and apps if you don't flash the userdata.img file
For some reason it is failing to install the update using FlashFire. How do I find out why?
adam_pl said:
Thee are two methods:
I Method
1. Download system image - I know it's a large file,
2. Unzip package and then unzip image-angler-xxx ZIP file
3. Flash via fastboot system and vendor images
4. Done.
II Method
1. Download OTA zip
2. Instal FlashFire
3. Open appa and hit + button
4. Choose "Flash firmware package"
5. Chose same images like in method I
6. Hit flash and You're done
Choosing/flashing other images can factory reset device and restore default recovery, depending which images You'll chose
Click to expand...
Click to collapse
you forgot bootloader image which was actually updated in the last OTA...
Sent from my Nexus 6P using XDA-Developers mobile app
Which bootloader do I select in flashfire? primary and secondary are greyed out. there is trustzone (bootloader.tz.img), dbi/sdi (bootloader.sdi.img), and several others.
rchtk said:
you forgot bootloader image which was actually updated in the last OTA...
Sent from my Nexus 6P using XDA-Developers mobile app
Click to expand...
Click to collapse
I noticed that latter, cause when I was writing this I haven't updated my 6P. So my question is - can I just flash new BL without any risk?
adam_pl said:
I noticed that latter, cause when I was writing this I haven't updated my 6P. So my question is - can I just flash new BL without any risk?
Click to expand...
Click to collapse
Sure. The recommended way to flash BL is to use manual fastboot.
sniper8752 said:
Which bootloader do I select in flashfire? primary and secondary are greyed out. there is trustzone (bootloader.tz.img), dbi/sdi (bootloader.sdi.img), and several others.
Click to expand...
Click to collapse
* BUMP *

[UPDATE] Update newest Oxygen OS Version with TWRP Recovery ! | by Haris Khawaja

Hey guys!!!
Today I got a new Update for my OnePlus 3T. But you can't install it with your custom recovery, becouse oneplus doesn't support third party recoverys. (Without lose any data)
So today I would like to explain to you how you can install the update anyway.
Edit: If you don't have the update avarible to download, here is the current Version ONLY for the OnePlus 3T and not for 3!
Link : https://mega.nz/#!RwxjAaSa!csp25h49dQZmZZ4Yehq1ZfXWJHRoDgS-3RnBA-MgXyA
Step 1: Go to your Softwareupdates and click on download Softwareupdate.
Step 2: If the download is completed, don't click on reboot and install!
Step 3: Go in your (for e.g.) ES File Manager and search for "ota". You'll find the .zip file. Copy that to your main Storage (sdcard) directory.
Step 4: After that, reboot into your recovery (at my point, twrp)
IF YOU WANT DO NOW A BACKUP -> SYSTEM, DATA AND BOOT
Step 5: Click on Wipe and select only dalvic and cache. (It'll not delete your data if you select only dalvic and cache!)
Step 6: Now go on install and select the Oxygen OS Version, that you copied to your storage. (Swipe to install)
Step 7: The installation takes a while. If it finished, click on back and wipe dalvic and cache again.
Step 8: After it, you can go back and reboot into your system. It should update now your apps.
Step 9: Finally you got successfully the newest oxygen OS version!
-> If your device was rooted, root access will no longer be available.
Edit: If you want to get root access after updating your phone, download SuperSu.zip (download : https://mega.nz/#!gsBCACAQ!L5t_0Ca6-Lyf-_xRpF9Bw2jzo-xj3W5Dr5X1Y8EsVoY )
Step 1: Boot into your recovery, click on Advanced -> Adbsideload and Swipe to activate it)
Step 2: Connect you device with your computer and check, if your device is successfully conntected to adb devices.
Step 3: Type "adb sideload SuperSU.zip, after the installation, reboot your system.
Step 4: Finished installing root. Have fun
If you have any questions, don't be shy.
Best regards and have fun,
LloydSmallwood
(Don't forget to thank )
Nice tutorial
Sent from my MI 5s Plus using Tapatalk
What TWRP version did you use?
Freyelis said:
What TWRP version did you use?
Click to expand...
Click to collapse
I used 3.0.2
LloydSmallwood said:
I used 3.0.2
Click to expand...
Click to collapse
so the latest, 3.0.3.0, should be also okay?!
hAMMERlized said:
so the latest, 3.0.3.0, should be also okay?!
Click to expand...
Click to collapse
Yeah sure!
LloydSmallwood said:
Yeah sure!
Click to expand...
Click to collapse
okay, i'll give it a try. had to go back to 3.5.4 as supersu (2.79) gave me a bootloop with the latest 4.0 update :/
Updater process ended with error 7
Hello,
Thank you very much for the detailed steps. However, I am getting stuck at installing the OTA and get error 7 on TWRP.
I tried to fix it by following the below link but it did not work:
https://forum.xda-developers.com/showthread.php?t=2522762
Any help or suggestions?
P.S: I am trying to update from 3.5.4 to 4.0 OOS.
I updated my TWRP to 3.0.3 and now can't get TWRP to decrypt, it did not ask me for any pin / password on 3.0.2 TWRP.... Is it safe to revert back to 3.0.2 and flash the 4.1 OTA with it?
SourPower said:
I updated my TWRP to 3.0.3 and now can't get TWRP to decrypt, it did not ask me for any pin / password on 3.0.2 TWRP.... Is it safe to revert back to 3.0.2 and flash the 4.1 OTA with it?
Click to expand...
Click to collapse
Yesterday I got my 3T and upgraded OTA latest OxygenOS 4.0.1. I was able to unlock bootloader and install TWRP 3.0.3 but when I access bootloader the first screen ask me to provide "Decrypt password" to mount, and if I ignore and slide to start modification I don't have access to internal card (assume its READ-ONLY), just folders are visible but unable to find or install SU package.
I check all the forums but didn't find any relevant information how to get out of TWRP "Decrypt password" issue. I don't want my phone to be encrypted, so I would appreciate if anyone can please help me.
SourPower said:
I updated my TWRP to 3.0.3 and now can't get TWRP to decrypt, it did not ask me for any pin / password on 3.0.2 TWRP.... Is it safe to revert back to 3.0.2 and flash the 4.1 OTA with it?
Click to expand...
Click to collapse
I think go back
Removing security (pin/pass/fingerprint) before booting to TWRP on 3.0.3 official worked for me to update to 4.0.1 but miss xposed
SourPower said:
Removing security (pin/pass/fingerprint) before booting to TWRP on 3.0.3 official worked for me to update to 4.0.1 but miss xposed
Click to expand...
Click to collapse
Oke
Hai,
Zip verification of Full 4.01 .zip failed both in 3.0.3.0 and 3.0.3.0.beta 1 TWRP version . If installed ignoring the zip verification , got message " No OS installed " on booting
Pl guide me.
LloydSmallwood said:
Hey guys!!!
Today I got a new Update for my OnePlus 3T. But you can't install it with your custom recovery, becouse oneplus doesn't support third party recoverys. (Without lose any data)
So today I would like to explain to you how you can install the update anyway.
Edit: If you don't have the update avarible to download, here is the current Version ONLY for the OnePlus 3T and not for 3!
Link : https://mega.nz/#!RwxjAaSa!csp25h49dQZmZZ4Yehq1ZfXWJHRoDgS-3RnBA-MgXyA
Step 1: Go to your Softwareupdates and click on download Softwareupdate.
Step 2: If the download is completed, don't click on reboot and install!
Step 3: Go in your (for e.g.) ES File Manager and search for "ota". You'll find the .zip file. Copy that to your main Storage (sdcard) directory.
Step 4: After that, reboot into your recovery (at my point, twrp)
IF YOU WANT DO NOW A BACKUP -> SYSTEM, DATA AND BOOT
Step 5: Click on Wipe and select only dalvic and cache. (It'll not delete your data if you select only dalvic and cache!)
Step 6: Now go on install and select the Oxygen OS Version, that you copied to your storage. (Swipe to install)
Step 7: The installation takes a while. If it finished, click on back and wipe dalvic and cache again.
Step 8: After it, you can go back and reboot into your system. It should update now your apps.
Step 9: Finally you got successfully the newest oxygen OS version!
-> If your device was rooted, root access will no longer be available.
Edit: If you want to get root access after updating your phone, download SuperSu.zip (download : https://mega.nz/#!gsBCACAQ!L5t_0Ca6-Lyf-_xRpF9Bw2jzo-xj3W5Dr5X1Y8EsVoY )
Step 1: Boot into your recovery, click on Advanced -> Adbsideload and Swipe to activate it)
Step 2: Connect you device with your computer and check, if your device is successfully conntected to adb devices.
Step 3: Type "adb sideload SuperSU.zip, after the installation, reboot your system.
Step 4: Finished installing root. Have fun
If you have any questions, don't be shy.
Best regards and have fun,
LloydSmallwood
(Don't forget to thank )
Click to expand...
Click to collapse
Um u can flash the updates with twrp if it's zip format. Says so on oneplus as well
samoechen said:
Hai,
Zip verification of Full 4.01 .zip failed both in 3.0.3.0 and 3.0.3.0.beta 1 TWRP version . If installed ignoring the zip verification , got message " No OS installed " on booting
Pl guide me.
Click to expand...
Click to collapse
Can you send a picture?
hAMMERlized said:
okay, i'll give it a try. had to go back to 3.5.4 as supersu (2.79) gave me a bootloop with the latest 4.0 update :/
Click to expand...
Click to collapse
got me too, f***** update.. haha.. ill post the tutorial for root and current os version in future.

[GUIDE] Enable Camera2 API Without Root [mido] [Unlocked Bootloader] [MIUI 9]

DISCLAIMER
I am not responsible for anything that happens to your device on following these steps. These are untested steps that worked for me and might work for you.
PREREQUISITES
1. PC with adb
2. Unlocked Bootloader
3. TWRP
4. MIUI 9 [Might work with other ROMs, not tested]
5. Lazyflasher zip
NOTES
1. If you are on a custom ROM, chances are that camera2 api is already enabled. Use Manual Camera Compatibility to verify.
2. If you are on MIUI, updating using ota might reset build.prop file. This might help, not tested. Update: I successfully updated to MIUI 9 Global 7.10.19 | Beta, see below for steps,
3. I am using Google Camera v4.4.020.163412804 on MIUI 9 Global 7.9.7 | Beta, and it is a HUGE improvement over the stock camera.
STEPS
1. Boot into TWRP. (Guide if you don't have TWRP)
2. Mount System.
3. Take NANDroid backup. (Optional but HIGHLY RECOMMENDED)
4. Connect to PC and execute the following command in terminal:
Code:
[SIZE="3"]adb pull /system/build.prop[/SIZE]
5. This copies build.prop to the current directory. (C:\Users\[USERNAME] by default on windows)
6. Copy it to another directory for backup.
7. Open in editor and add the following line at end:
Code:
[SIZE="3"]persist.camera.HAL3.enabled=1[/SIZE]
8. Save and exit.
9. Execute following commands:
Code:
[SIZE="3"]adb push build.prop /system/
adb shell
cd system
chmod 644 build.prop
[/SIZE]
10. Copy lazyflasher to internal storage.
11. Flash using TWRP.
12. Reboot to system.
13. Use Manual Camera Compatibility Checker to verify.
14. PROFIT!
15. Install the latest Google Camera HDR+ Port. (Optional but HIGHLY RECOMMENDED ;P)
UPDATING MIUI
1. Download the official recovery zip from here.
2. Download latest TWRP from here
2. Reboot into TWRP.
3. Take NANDroid. (Optional, just in case . . .)
4. Transfer ROM zip, TWRP img and Lazyflasher zip to internal storage.
5. Flash ROM zip. (Took about 10 minutes)
6. Flash TWRP img. (Go to flash -> select flash image -> select twrp-[v].img)
7. Flash Lazyflasher zip.
8. Follow steps 4 through 9 of above instructions. (Yes, build.prop also gets replaced on update)
9. Reboot to system.
10. Wait patiently.
11. VOILA !!
LINKS
1. Manual Camera Compatibility Checker
2. Lazyflasher Zip
3. Google Camera HDR+ Port
4. Latest MIUI Recovery Image
5. Official TWRP for mido
6. Sources: (1) (2) (3)
Hope this helps. Try and comment if this works for you in other ROMs. Also let me know if anything is unclear.
TWRP Tweaks (MIUI 9 Beta)
The method in this thread basically allows you to edit build.prop without rooting, which opens up a lot of possibilities. Here are some other useful tweaks to build.prop that I use.
(Note: If a line is already present in the file, edit the line otherwise add at end.)
1. Enable MIUI's full screen gestures
Code:
[SIZE="3"]
qemu.hw.mainkeys=0
[/SIZE]
2. Add EIS and disable noise cancellation
Code:
[SIZE="3"]
persist.camera.eis.enable=1
persist.camera.HAL3.enabled=1
ro.qc.sdk.audio.fluencetype=fluencepro
[/SIZE]
3. Turn off noise cancellation for audio recordings
Code:
[SIZE="3"]
persist.audio.fluence.voicerec=false
[/SIZE]
4. Fix Google Assistant talkback
Code:
[SIZE="3"]
mm.enable.qcom_parser=245389
[/SIZE]
Sources: (1)
Do reply if you are using some build.prop tweak and I'll add it here!
is it possible to make the flash-able zip work with stock recovery?
What does the lazyflasher zip actually do? A quick search on google shows a custom kernel installer.
joefso said:
is it possible to make the flash-able zip work with stock recovery?
Click to expand...
Click to collapse
I am not sure if it is safe to flash zips from stock recovery. Even if you could, you would not be able to take NANDroid, so you are doomed if things go south. Still, if you want, you could try and then we'll know
mato_d007 said:
What does the lazyflasher zip actually do? A quick search on google shows a custom kernel installer.
Click to expand...
Click to collapse
The source of the lazyflasher zip (2 in sources) says:
This device uses dm-verity
This means that swiping to allow system modifications will prevent you from being able to boot if you are using the stock kernel. In order to bypass dm-verity's boot prevention, you will have to install a kernel that has dm-verity disabled in the fstab.
Click to expand...
Click to collapse
When I was trying the adb method, I was getting a bootloop, because (I think) the system partition had been modified (new build.prop replaced old one). Flashing this zip solved this, so I guess it essentially allows modifications to the system partition.
A_K_S_H_ said:
I am not sure if it is safe to flash zips from stock recovery. Even if you could, you would not be able to take NANDroid, so you are doomed if things go south. Still, if you want, you could try and then we'll know
Click to expand...
Click to collapse
I am willing to try because it would be great if this could work withouth using twrp, root or a unlocked bootloader.
Are the scripts compatible?
joefso said:
I am willing to try because it would be great if this could work withouth using twrp, root or a unlocked bootloader.
Are the scripts compatible?
Click to expand...
Click to collapse
They should be, as I used them with stock MIUI, stock kernel. However, are you going to flash a zip on locked bootloader? Is that even possible? Why would modifications to the system partition be allowed with locked bootloader? What would be the point of locking if that is the case?
A_K_S_H_ said:
They should be, as I used them with stock MIUI, stock kernel. However, are you going to flash a zip on locked bootloader? Is that even possible? Why would modifications to the system partition be allowed with locked bootloader? What would be the point of locking if that is the case?
Click to expand...
Click to collapse
I assumed that if OTA updates can be flashed through bootloader then by that logic /system could be modified too, right? hmmm
In Android devices, Recovery is an Android-based, lightweight runtime environment separate from and parallel to the main Android operating system. Recovery's original purpose was:
to apply software updates to the device, e.g. OTA updates, and
to erase user data and cache, e.g. for troubleshooting or preparing the device for resale (factory reset) and
to run (another) external tool from microSD flash memory
https://forum.xda-developers.com/wiki/Recovery
Click to expand...
Click to collapse
Thanks... BTW..
You can simply add that line using any file manager with root permissions and after rebooting device it works..
amit.tiger12 said:
Thanks... BTW..
You can simply add that line using any file manager with root permissions and after rebooting device it works..
Click to expand...
Click to collapse
Read the title : WITHOUT ROOT
A_K_S_H_ said:
Read the title : WITHOUT ROOT
Click to expand...
Click to collapse
yep I found..
do you have any solution for locked bootloader or everything stock??
amit.tiger12 said:
yep I found..
do you have any solution for locked bootloader or everything stock??
Click to expand...
Click to collapse
Unfortunately I don't have access to a stock mido right now, and I don't want to lock my bootloader.
If you're willing to risk it, you could try these steps:
1. Go to developer settings and enable adb.
2. Follow steps 4 to 9 of main post (with device switched on)
3. Reboot.
You might get a bootloop on rebooting, in which case you'd have to get into stock recovery and factory reset, because afaik, stock recovery doesn't give you adb.
Do tell what happens if you try this, good luck!
When I replace the build.prop the phone goes bootloop. It does not matter I use adb or root explorer or something... Why is that? BTW only this method worked: I used an app called build prop editor and worked like a charm! Thank you. If you did not tell that it was possible to enable camera 2 api on miui 9, all my hopes would be lost. So I suggest everyone to use another methods in case this does not work.
Does this work for MIUI 8? I dont want to root my phone but would like camera2
qun said:
Does this work for MIUI 8? I dont want to root my phone but would like camera2
Click to expand...
Click to collapse
It should, provided you have unlocked bootloader, but I haven't tested yet. Take a backup and try! Also, don't forget to reply what happens if you do try.
Can someone tell me what is this?it was set to no hdr+ on default.im on miui 9 global beta 7.12.8
In the end of the TWRP guide it says to flash lazyflasher.zip . In the end of this guide it also says you have to install lazyflasher.zip .
Do you have to install it both times or is once enough ? What would happen if you follow both guides to the letter and install it twice ?
Ghavio1516 said:
Can someone tell me what is this?it was set to no hdr+ on default.im on miui 9 global beta 7.12.8
Click to expand...
Click to collapse
These are configs, check and see which one works best for you.
foxhunt said:
In the end of the TWRP guide it says to flash lazyflasher.zip . In the end of this guide it also says you have to install lazyflasher.zip .
Do you have to install it both times or is once enough ? What would happen if you follow both guides to the letter and install it twice ?
Click to expand...
Click to collapse
No, once should be enough, but flashing twice won't cause any trouble either.

[Solved] Can´t update from version 5.1.2 to version 5.1.4 OnePlus5

So i tried to install the update for my OnePlus5 but TWRP gives ERROR 7 i also tried to wipe my data (including system),
i also tried to install the update with the stock recovery (without root) and the update just fails
oxygen updater won´t work aswell
thanks in advance
i´ve trieded newer versions of oxygen os too
sry for my bad english i am german
Hi!
Are you trying to install a full OTA zip (1GB+ in file size), or a partial OTA (more around 50 MB - 200 MB) over your current 5.1.2 ROM?
At this point I would suggest you flash a full OTA zip of OOS 5.1.4, either through TWRP or OnePlus' recovery. @Titokhan provides a list of mirrors where you can download full signed flashable zips. Make sure to compare the MD5 signature of your downloaded file with the reference signature inscribed on the download page -- this makes sure your download is not corrupted.
Alexandre-P said:
Hi!
Are you trying to install a full OTA zip (1GB+ in file size), or a partial OTA (more around 50 MB - 200 MB) over your current 5.1.2 ROM?
At this point I would suggest you flash a full OTA zip of OOS 5.1.4, either through TWRP or OnePlus' recovery. @Titokhan provides a list of mirrors where you can download full signed flashable zips. Make sure to compare the MD5 signature of your downloaded file with the reference signature inscribed on the download page -- this makes sure your download is not corrupted.
Click to expand...
Click to collapse
i used the OTA before but i will try the OTA you suggested
thanks in advanced:good:
Edit: can i theoretically use a newer version than 5.1.4?
Fredwuz said:
Edit: can i theoretically use a newer version than 5.1.4?
Click to expand...
Click to collapse
OnePlus enabled Treble on the OP5 around stable release 5.1.5, and release notes for 5.1.5 stressed that the device should be on 5.1.4 before applying the 5.1.5 upgrade. The release notes for 5.1.6 also stressed that the user first upgrade to 5.1.5 before applying the 5.1.6 system upgrade. Based on that information, I would highly suggest you make sure your device works correctly on 5.1.4 first, then 5.1.5, followed by 5.1.6, and only then you upgrade to a later release.
Alexandre-P said:
OnePlus enabled Treble on the OP5 around stable release 5.1.5, and release notes for 5.1.5 stressed that the device should be on 5.1.4 before applying the 5.1.5 upgrade. The release notes for 5.1.6 also stressed that the user first upgrade to 5.1.5 before applying the 5.1.6 system upgrade. Based on that information, I would highly suggest you make sure your device works correctly on 5.1.4 first, then 5.1.5, followed by 5.1.6, and only then you upgrade to a later release.
Click to expand...
Click to collapse
so i flashed version 5.1.3 and it did work but when i tried to flash to version 5.1.4 TWRP was stuck in "Patching system image unconditionally..." did i do something wrong?
After i flashed to 5.1.3 the devices worked normal as always
Here's what I would do:
1. Flash 5.1.3 -- don't re-root, don't flash TWRP.
2. At this point, if you try to boot to recovery, you should have OnePlus' recovery. That's cool, just leave it that way.
3. Boot to system. Allow the system to find newer upgrades, and apply them using the system updater as they come.
4. When you're all updated again to latest release, follow instructions to TWRP and root the device.
Alexandre-P said:
Here's what I would do:
1. Flash 5.1.3 -- don't re-root, don't flash TWRP.
2. At this point, if you try to boot to recovery, you should have OnePlus' recovery. That's cool, just leave it that way.
3. Boot to system. Allow the system to find newer upgrades, and apply them using the system updater as they come.
4. When you're all updated again to latest release, follow instructions to TWRP and root the device.
Click to expand...
Click to collapse
now the updater says my system is up-to-date but i only have 5.1.3 installed
Fredwuz said:
now the updater says my system is up-to-date but i only have 5.1.3 installed
Click to expand...
Click to collapse
Reboot, wait some time.
What is sometime are about 5 hours enough?
Sent from my OnePlus5 using XDA Labs
Fredwuz said:
What is sometime are about 5 hours enough?
Click to expand...
Click to collapse
You can try to use a VPN(app) which connects to another country to force the update. Or flash it with the stock recovery by downloading the file, place it in .ota folder and update it.
strongst said:
You can try to use a VPN(app) which connects to another country to force the update. Or flash it with the stock recovery by downloading the file, place it in .ota folder and update it.
Click to expand...
Click to collapse
I tried to use tunnelbear and connected to USA but the updater won't find an update now I will try the other method but can't I just use the lokal Upgrade Option in the updater?
Edit: I have to use version 5.1.4 or?
Sent from my OnePlus5 using XDA Labs
Fredwuz said:
I tried to use tunnelbear and connected to USA but the updater won't find an update now I will try the other method but can't I just use the lokal Upgrade Option in the updater?
Click to expand...
Click to collapse
Yes you can, that's what I suggested already
My experience with the 5.1.4 update - ERROR 7 & Treble error fix
Hi, I have 3 OnePlus 5's in my household and I have gotten them all to update to 5.1.4, then 5.1.5, then 5.1.6+ with this method.
(5.1.4 and then 5.1.5 is needed before flashing 5.1.6 or greater).
In my experience, no matter what caches I cleared or what recoveries I had used, 5.1.4 was not flashable on all three devices with the bootloader unlocked. If you have the patience and time, this method should 99.99% work for you if done correctly (leaving a 0.01% chance of failure just in case it does fail lol but that shouldn't happen.)
1.) Firstly, back up your device. I suggest doing this by making a full titanium backup, and copying all the files on the internal storage to a folder on your computer.
This may take a while to copy. In my experience, the fastest way to copy all the data off to the computer is to boot the device into TWRP recovery, plug a good USB C cable in to the device and to the PC's USB port, unlock the device in TWRP (put in the password/pattern to decrypt and mount the data partition [Ignorable if you dont set a password on the device]), and use the adb pull command to pull the files off the device. I found that ADB pull works much faster than an mtp file transfer in windows explorer.
Steps for ADB pull:
Ensure adb is installed on the computer with adb drivers. For Windows, open command prompt or powershell as admin. Type in adb devices and hit enter. If your OnePlus device comes up, then all is good. Use the command (without the square brackets):
[ adb pull /sdcard "XXX/." ]
Replace XXX with a directory on your computer (for example, you can do [ adb pull /sdcard "C:\Users\YOURUSERNAME\Desktop\OnePlus/." ]
If anyone notices any issues with this command please let me know so I can update the post. I am writing this off memory, so there may be minor mistakes.
2.) After your device backs up and you're happy with the backup (i.e. everything you need backed-up is saved off of the phone onto the computer), It's time to relock the bootloader and restore the firmware on the phone.
I haven't tried a simple fastboot OEM relock command, so I cannot say whether that is sufficient enough.
What I did was follow this thread:
https://forum.xda-developers.com/oneplus-5/how-to/unbrick-tool-oneplus-5-t3648169
Download the Driver and the Oxygen version.
Once downloaded, extract the driver Driver_OnePlus5.zip file to its own folder. Extract the firmware to its own folder (cheeseburger_23_O.13_170803).
3.) Using the firmware restoring tool to relock the bootloader and restore the device to factory firmware condition.
Now:
Turn off your OnePlus 5 device.
Hold volume up key.
Plug USB cable in to the PC and the Type-C side to the device. Make sure only volume up is held whilst you do this.
Open device manager and check for missing drivers/driver issues. If the driver isn't detected, use device manager to browse for the extracted Driver_OnePlus5 folder you made earlier.
The LED light on the OnePlus 5 should be yellow if I can remember correctly.
Open msm download tool as an adminstrator (right click, run as administrator)
Click the start button on the top left of the msm download tool. (If nothing happens, make sure drivers are installed properly and that the device is in download mode [Repeat the above steps])
If successful, one of the "Device Type" should show your device connected {com device} and the download process and time row will update. Wait for the download progress to finish. The device will reboot on its own when completed. The status should turn green and say done/finished (If I remember correctly).
When your device reboots, do a quick setup. Don't bother putting your google account in or restoring anything if you plan on unlocking the bootloader later for TWRP or other reasons.
Unlocking the bootloader will wipe the phone. For now, just focus on the updates.
Connect the device to Wi-Fi. I found one of the devices I used this method on wouldn't connect to Wi-Fi (modem issue or something). Luckily, I had the 5.1.4 update already downloaded on the computer so I copied the update to the root folder on the device and used the local upgrade option in the OTA update options (in the phone system update settings). Updating the firmware fixed my Wi-Fi issue.
Basically, just do the OTA updates as you would normally. Start with 5.1.4, then you can do the 5.1.5. Do not jump to 5.1.7 because OnePlus only just added treble support in 5.14/5.15 releases so it is important do do those in order first. If you can, do 5.1.4, 5.1.5, 5.1.6 and then 5.1.7 in order. Just follow the updates that the OTA screen allows you to take.
Notes for the Pie update:
I haven't had issues installing Pie with the bootloader unlocked, so if you wish to stay on oreo for now and update later with an unlocked bootloader, that should be fine.
If your bootloader is locked, and you're on at least OOS 5.1.5, you should be able to flash the Pie OTA with the stock recovery without issues.
If you encounter issues installing Pie, and your bootloader is unlocked follow this:​
Unlocked bootloader - Pie Update - Removing compatibility.zip from firmware archive:​
Method 1: Pre-Removed compatibility.zip modified firmwares:
For STABLE:​Follow this link:
https://forum.xda-developers.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003
Download " OxygenOS 9.0.0 Full Zip (modified, without compatibility.zip) ".
For BETA:​Follow this link:
https://forum.xda-developers.com/oneplus-5/how-to/official-oxygenos-beta-1-android-oreo-t3710003
Download " OxygenOS Open Beta XX Full Zip (modified, without compatibility.zip) ".
You will need a Pie-compatible recovery. Download a compatible custom Recovery (TWRP) (Also available on https://forum.xda-developers.com/oneplus-5/how-to/official-oxygenos-beta-1-android-oreo-t3710003 )
Flash a Pie-compatible TWRP and boot into it.
Copy the downloaded " OxygenOS Open Beta XX Full Zip (modified, without compatibility.zip) " to the device.
In TWRP, use: Wipe > Advanced wipe > Select dalvik-cache and cache > Swipe to wipe.
I would recommend taking a nandroid backup before proceeding, if you have any important data on the device.
Flash the downloaded " OxygenOS Open Beta XX Full Zip (modified, without compatibility.zip) ".
Wipe dalvik-cache and cache.
Enjoy Pie.
Method 2: Manual Method to remove compatibility.zip for unlocked bootloaders:
Download the FULL firmware OTA (from device settings, or from the OnePlus website).
Copy the firmware to the computer (If downloaded on the device, it will be in the ".ota" folder. Else, it is available on the OnePlus firmware downloads page.
Open the firmware archive with 7-Zip.
Delete Compatibility.zip from the archive.
Copy the now-modified firmware back to the device.
You will need a Pie-compatible recovery. Download a compatible custom Recovery (TWRP) (Also available on https://forum.xda-developers.com/oneplus-5/how-to/official-oxygenos-beta-1-android-oreo-t3710003 )
Flash a Pie-compatible TWRP and boot into it.
In TWRP, use: Wipe > Advanced wipe > Select dalvik-cache and cache > Swipe to wipe.
I would recommend taking a nandroid backup before proceeding, if you have any important data on the device.
Flash your manually-modified OTA/firmware archive in TWRP.
Wipe dalvik-cache and cache.
Enjoy Pie.
DO NOT use winrar or any other non-recommended programs to remove compatibility.zip. I found that winrar causes treble errors or error 7.
4.) Re-unlocking the bootloader & Restoring your data.
Once you've installed 5.1.5 or greater, you can now safely go into developer settings and enable oem unlocking, and then reboot to the bootloader to unlock the bootloader (which will wipe/erase the phone data but keep the version to whatever you updated it to). You may then proceed to install TWRP, magisk if you plan on restoring with titaniumbackup, and restore all your sd card contents (or the sd card contents that you need) back from the computer backup the the device (I usually use ADB Push whilst booted in TWRP recovery because it copies quicker than MTP).
Updates should work from now on ( I was able to install android PIE Beta with the bootloader unlocked [See the Pie notes above]. Only had issues with the 5.14 / 5.15 updates with the bootloader unlocked ).
Hope this helps. If anyone has any more information, or questions about this method, do share. Like I said earlier, if done correctly, this method should definitely work for you guys.
Love you Guys:victory:
I did it and it worked first I flashed version 5.1.3 then version 5.1.4 and then I used the updater to upadate directly to version 9.0.0 and it worked :victory:
Thanks a lot and a happy new year
Sent from my OnePlus5 using XDA Labs
Fredwuz said:
Love you Guys:victory:
I did it and it worked first I flashed version 5.1.3 then version 5.1.4 and then I used the updater to upadate directly to version 9.0.0 and it worked :victory:
Thanks a lot and a happy new year
Click to expand...
Click to collapse
Sent from my OnePlus5 using XDA Labs
Fredwuz said:
Love you Guys:victory:
I did it and it worked first I flashed version 5.1.3 then version 5.1.4 and then I used the updater to upadate directly to version 9.0.0 and it worked :victory:
Thanks a lot and a happy new year
Click to expand...
Click to collapse
Glad you got it working! Happy new year to you as well

Categories

Resources