My g5 plus xt1685 boot loop . please help me - Moto G5 Plus Questions & Answers

I'm installed potter_25.137.67-retin_TWRP on twrp. after that i factory reset bootloop.!
bootloader mode show status Software : Modifile. please help me.:crying::crying:

1) recover from Android
2) flash an earlier update file if you can
3) restore the original system chunks through ADB or fastboot
Or
4) restore the entire stock firmware with ADB/Fastboot

thank bro
Karlinski said:
1) recover from Android
2) flash an earlier update file if you can
3) restore the original system chunks through ADB or fastboot
Or
4) restore the entire stock firmware with ADB/Fastboot
Click to expand...
Click to collapse
i want firmware.35 flash for TWRP or backup file. Do you have?

35 files are here:
https://forum.xda-developers.com/g5-plus/how-to/npn25-137-33-stock-firmware-t3577081
Keep in mind that a full restore will start you over from scratch. Remember to back up important things to an SD card or computer.

Related

[INFO] How to sideload 5.1.1 (LYZ28E), & maintain no encryption - no wipe required

[INFO] How to sideload 5.1.1 (LYZ28E), & maintain no encryption - no wipe required
Simplified procedures with LMY47M / LYZ28E now available as a factory image.
Hopefully this isn't blatantly obvious to everyone, it is a little different than the normal sideload procedure. Thought it might be useful to some who want to load 5.1.1 (and get Wifi calling with T-Mobile!) and not be forced to encrypt.
Requirements:
1. I'm assuming you have adb/fastboot working on your computer / connecting to your device and you understand a little bit about using adb / fastboot with an android phone.
2. Your phone cannot be encrypted, if you're encrypted already - this will not un-encrypt your data - you need to turn off forced encryption and format the "userdata" partition to disable the encryption.
3. You need to have an unlocked bootloader for this to work of course.
How to follow this procedure:
1. If you're on LMY47M (T-Mobile) and unencrypted, you can follow option 2, starting with Step 3 - only a small ~150MB download required.
2. If you're on anything other than LMY47M, you should use option 1 unless you have a desire to flash LMY47M and sideload LYZ28E.
I didn't do much here - except spent a bunch of time writing the procedure.
All Credit for tools / ideas goes to:
- efrant for his explanation of how to get OTA updates to work with TWRP ( http://forum.xda-developers.com/nexus-6/general/nexus-6-ota-help-desk-t2992919/page4 )
- hlxanthus for the NO FORCE ENCRYPT mod ( http://forum.xda-developers.com/nexus-6/development/mod-disable-force-encryption-rom-kernel-t3000788 )
- Q9Nap and mhous33 for the LMY47M factory image ( http://forum.xda-developers.com/nexus-6/development/fxz-nexus-6-recovery-flashable-fastboot-t3066052 )
- bbedward and others for the original disable forced encryption boot.img ( http://forum.xda-developers.com/nexus-6/development/disable-forced-encryption-gain-root-t2946715 )
- TeamWin - the TWRP Developer ( https://twrp.me/ )
——————————————————————————————————
OPTION 1 - Easy Method - Flash the LYZ28E factory image directly:
1. Download hlxanthus's NO FORCE ENCRYPT mod and put it onto your phone so you can flash it later (in /storage/sdcard0) - https://basketbuild.com/filedl/devs...u/misc/NO_FORCE_ENCRYPT_shamu_v1.0-signed.zip
2. Download LYZ28E for Nexus 6 ( https://dl.google.com/dl/android/aosp/shamu-lyz28e-factory-b542b88a.tgz ) and extract the files, there is a zip file you want to extract that too.
Boot to the bootloader ("adb reboot bootloader") and fastboot flash the boot, cache, recovery, radio and system:
Code:
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img (OPTIONAL - If you have TWRP or another alternative recovery you can skip this step)
fastboot flash radio radio-shamu-<variable>.img
fastboot flash system system.img
3. Restart the Bootloader, and flash TWRP, found here: ( https://twrp.me/devices/motorolanexus6.html )
Code:
fastboot flash recovery twrp-2.8.6.0-shamu.img
4. Restart the Bootloader again and then go to Recovery (TWRP). Now flash NO_FORCE_ENCRYPT_shamu_v1.0-signed.zip through TWRP, and flash SuperSU if you want root and whatever other zips you want to flash (Xposed, etc)
After flashing the NO FORCE ENCRYPT mod, reboot and you should be running 5.1.1 with all of your data and with your userdata partition intact and unencrypted!
———————————————————————————————————————————————————
OPTION 2 - SIDELOAD Method (Makes sense if you’re already on LMY47M):
1. Download hlxanthus's NO FORCE ENCRYPT mod and put it onto your phone so you can flash it later (in /storage/sdcard0) - https://basketbuild.com/filedl/devs...u/misc/NO_FORCE_ENCRYPT_shamu_v1.0-signed.zip
2. Follow the normal procedure, if you're already on LMY47M you can skip to step 3. Download LMY47M for Nexus 6 ( https://dl.google.com/dl/android/aosp/shamu-lmy47m-factory-5228e84a.tgz ) and extract the files, there is a zip file you want to extract that too.
Boot to the bootloader ("adb reboot bootloader") and fastboot flash the boot, cache, recovery, radio and system:
Code:
fastboot flash boot boot.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash radio radio-shamu-<variable>.img
fastboot flash system system.img
3. Now flash TWRP, found here: ( https://twrp.me/devices/motorolanexus6.html )
Code:
fastboot flash recovery twrp-2.8.6.0-shamu.img
4. Restart the bootloader, and enter recovery mode (TWRP). Once in TWRP, go to Advanced -> ADB Sideload. You may need to unplug/plug in the USB cable to your computer again.
Download my version of LYZ28E from here: https://www.androidfilehost.com/?fid=23991606952609905
Note: I modified this version to work with TWRP, it will not work with the stock recovery (because I modified it, the signature on the file is now invalid). The only thing I changed was I edited the updater-script to remove the release keys check which seems to fail on the stock recovery and doesn't work right with TWRP).
Code:
adb sideload f69096766706fab3c721163f02aad9073a989d00.unsigned-shamu-LYZ28E-from-LMY47M-fullradio-fix-superblock-use-TWRP.zip
5. After it finishes, do not reboot yet. Go back and I recommend rebooting to recovery again. Now flash NO_FORCE_ENCRYPT_shamu_v1.0-signed.zip through TWRP, and flash SuperSU if you want root and whatever other zips you want to flash (Xposed, etc)
After flashing the NO FORCE ENCRYPT mod, reboot and you should be running 5.1.1 with all of your data and with your userdata partition intact and unencrypted!
why would you think that you have to be encrypted to push anything to recovery??? plus sideload is only one method to do it, the other is adb push. and if you use twrp recovery, you don't need any of those method's, as you can just move files over to twrp via your usb.
simms22 said:
why would you think that you have to be encrypted to push anything to recovery??? plus sideload is only one method to do it, the other is adb push. and if you use twrp recovery, you don't need any of those method's, as you can just move files over to twrp via your usb.
Click to expand...
Click to collapse
Sorry if I gave the impression you need to be encrypted to push to recovery, that wasn't my intent. Where did I give that impression? I can try to fix it in my original post. At no point in this procedure will your phone be encrypted - there will be times that the kernel will have the force encryption option turned ON in the fstab but you never will boot the phone when that is the case (like right after LRX22C is loaded, after LYM47M is sideloaded, and after you flash the stock boot.img for LYM47M - but you are not booting in any of these cases - not before you install a no forced encryption kernel)
adb push requires the phone is booted right? I wasn't able to get adb push to work in recovery.
I also didn't know TWRP allowed you to copy data over to your phone via USB, I know CWM recovery can do it - but that was a feature missing from TWRP - maybe they added it, I didn't check. You can do an adb push with TWRP, but what in my procedure would you change to use the adb push method in TWRP versus whatever I put in there? The only thing I can think of is asking you to put the mod file on the phone in the beginning.
liqice said:
Sorry if I gave the impression you need to be encrypted to push to recovery, that wasn't my intent. Where did I give that impression? I can try to fix it in my original post. At no point in this procedure will your phone be encrypted - there will be times that the kernel will have the force encryption option turned ON in the fstab but you never will boot the phone when that is the case (like right after LRX22C is loaded, after LYM47M is sideloaded, and after you flash the stock boot.img for LYM47M - but you are not booting in any of these cases - not before you install a no forced encryption kernel)
adb push requires the phone is booted right? I wasn't able to get adb push to work in recovery.
I also didn't know TWRP allowed you to copy data over to your phone via USB, I know CWM recovery can do it - but that was a feature missing from TWRP - maybe they added it, I didn't check. You can do an adb push with TWRP, but what in my procedure would you change to use the adb push method in TWRP versus whatever I put in there? The only thing I can think of is asking you to put the mod file on the phone in the beginning.
Click to expand...
Click to collapse
"So I just figured out how to sideload LYZ28E on my Nexus 6 without enabling forced encryption. "
actually adb push is very easy.. boot unto recovery, type adb push filename.zip, then it pushes to your phone and is listed in the main storage filesystem. id say its nearly identical to adb sideload.
simms22 said:
"So I just figured out how to sideload LYZ28E on my Nexus 6 without enabling forced encryption. "
actually adb push is very easy.. boot unto recovery, type adb push filename.zip, then it pushes to your phone and is listed in the main storage filesystem. id say its nearly identical to adb sideload.
Click to expand...
Click to collapse
Sorry maybe that first sentence is poorly worded. What I meant was, I figured out how to get LYZ28E onto my phone and disable the forced encryption on the OS too. The process wasn't as straightforward because the 2nd sideload wouldn't work correctly without booting into the OS first. After that, I couldn't get the LYZ28E image to sideload on stock recovery or TWRP without errors - but I was able to modify the LYZ28E OTA file so it would load with TWRP, and then I was able to load the no encrypt mod and supersu and get the phone working the way I wanted again.
Are you saying it would be easier if I push the zip file to the phone and install using TWRP as a zip file instead of trying to sideload it?
Step 3: "Hold down the Power and Volume Up button (may need to do it a few times) to get to the Recovery menu".
Actually, the correct key combination is: Hold power, then (while holding power button) press and release volume up.
Works first time, every time.
cam30era said:
Step 3: "Hold down the Power and Volume Up button (may need to do it a few times) to get to the Recovery menu".
Actually, the correct key combination is: Hold power, then (while holding power button) press and release volume up.
Works first time, every time.
Click to expand...
Click to collapse
Thanks, updated the original post.
liqice said:
Sorry maybe that first sentence is poorly worded. What I meant was, I figured out how to get LYZ28E onto my phone and disable the forced encryption on the OS too. The process wasn't as straightforward because the 2nd sideload wouldn't work correctly without booting into the OS first. After that, I couldn't get the LYZ28E image to sideload on stock recovery or TWRP without errors - but I was able to modify the LYZ28E OTA file so it would load with TWRP, and then I was able to load the no encrypt mod and supersu and get the phone working the way I wanted again.
Are you saying it would be easier if I push the zip file to the phone and install using TWRP as a zip file instead of trying to sideload it?
Click to expand...
Click to collapse
easier/harder isnt an option here, since any way takes seconds. im just saying there are several options for this, thats all
liqice said:
Code:
fastboot flash f69096766706fab3c721163f02aad9073a989d00.unsigned-shamu-LYZ28E-from-LMY47M-fullradio-fix-superblock-use-TWRP.zip
Click to expand...
Click to collapse
Shouldn't this step be
Code:
adb sideload f69096766706fab3c721163f02aad9073a989d00.unsigned-shamu-LYZ28E-from-LMY47M-fullradio-fix-superblock-use-TWRP.zip
instead of fastboot flash?
So if your starting out with 47E, your rooted and have TWRP ..... would you use adb sideload in TWRP or you issue the command from the PC?
Chahk said:
Shouldn't this step be
Code:
adb sideload f69096766706fab3c721163f02aad9073a989d00.unsigned-shamu-LYZ28E-from-LMY47M-fullradio-fix-superblock-use-TWRP.zip
instead of fastboot flash?
Click to expand...
Click to collapse
Oops, you're right. Thanks!
Gage_Hero said:
So if your starting out with 47E, your rooted and have TWRP ..... would you use adb sideload in TWRP or you issue the command from the PC?
Click to expand...
Click to collapse
This is where I was, LMY47E, rooted, unencrypted and with TWRP. I followed the entire procedure - went back to LRX22C using fastboot, then sideloaded LMY47M (T-Mobile version) - then flashed the no force encrypt boot.img - booted, after it finished booting, rebooted to the bootloader and so on ...
When you go to LRX22C you flash back to the stock recovery. So you need to boot into the stock recovery, pick "apply update from adb" and then run the adb sideload command from the PC.
Cheers for this.. just what I was looking for. I'm at work so I only scanned this quickly, but any major change in the directions from what you've posted going from an unencrypted LMY47D?
With the factory images being posted, I just did the following:
Flashed the factory images
While still in bootloader, flashed TWRP
Rebooted into TWRP
Pushed SuperSU and the No_Force_encrypt to the /sdcard/ partition
Installed via TWRP
Profit.
lamenting said:
Cheers for this.. just what I was looking for. I'm at work so I only scanned this quickly, but any major change in the directions from what you've posted going from an unencrypted LMY47D?
Click to expand...
Click to collapse
For LMY47D you need to get to LMY47M first, so you would follow the entire procedure, downgrade to LRX22C and then sideload LMY47M and so on.
Heavily updated the procedure since LMY47M and LYZ28E factory images are now available directly from Google.
Should be a lot easier and more straight forward now!
I just recently have this Nexus 6 and came from an LG G2. I went through the process of unlocking the phone and installing rooted LMY47D which meant 2 factory resets in a short period.
I'm now on 5.1 and would like to get rid of the memory leak which this build apparently has.
The title mentions "maintain no encryption".
I never found the time to find out about Lollipop. The title implies that encryption is mandatory on 5.1.1
Is this so?
I merely want the latest upgrade to 5.1.1 and don't want to enforce encryption on my data (Google already knows everything about me) is this the way to achieve this?
I am correct in thinking that I will not get an OTA offered anymore?
Boot loader and radio only...
So if I understand the instructions correctly, if you are still encrypted but rooted, from any Lollipop installation, fast boot flash the factory images... then flash TWRP ... root and done right? Then I have another question... the kernel I am running EX 1.07 along with Flar's app is running perfect for me.... any dangers in just flashing the boot loader and radio? I would like to wait on the system part until the kernel has been updated.....
Also, if I needed to do a restore, if I only flash the boot loader and radio have I pooched being able to go backwards to a nand backup?
FYI, step 3 in option one should read:
fastboot flash recovery twrp-2.8.6.0-shamu.img
vs
fastboot flash twrp-2.8.6.0-shamu.img
frater said:
I just recently have this Nexus 6 and came from an LG G2. I went through the process of unlocking the phone and installing rooted LMY47D which meant 2 factory resets in a short period.
I'm now on 5.1 and would like to get rid of the memory leak which this build apparently has.
The title mentions "maintain no encryption".
I never found the time to find out about Lollipop. The title implies that encryption is mandatory on 5.1.1
Is this so?
I merely want the latest upgrade to 5.1.1 and don't want to enforce encryption on my data (Google already knows everything about me) is this the way to achieve this?
I am correct in thinking that I will not get an OTA offered anymore?
Click to expand...
Click to collapse
Starting with Android Lollipop (5.0) and newer - at least on the Nexus 6 - encryption is turned on by default for the userdata partition.
You would - if you wanted to - backup all of the data on your userdata partition (e.g. Any pictures you've taken with the phone, etc - all of the data basically that shows up when you plug your phone into your computer).
Then you need to be running an OS that doesn't force encryption (for example if you follow my instructions) - this would also get you running 5.1.1.
After that you need to format your userdata - it wouldn't be encrypted at that point, and then copy your data back if you want to.
If you don't care about encryption, you can simply flash the factory 5.1.1 image following my instructions and skip the TWRP parts.

Can't boot into twrp on DP4

hello I'm trying to make a nadroid backup before updating to dp5 but Everytime I try to enter twrp it won't boot past the twrp splash screen.. how can I fix this? It's worked before for me on dp4 and I didn't do anything that would cause this that I know of.
Does anyone have any suggestions? Thanks.
Sent from my Nexus 6P using XDA-Developers mobile app
Re-Flash the latest TWRP recovery using Fastboot:
Code:
fastboot flash recovery recovery.img
Then, try again. If not, you can use:
Code:
fastboot reboot-bootloader
followed by
Code:
fastboot reboot recovery
Last I knew twrp cannot decrypt the developer previews
Sent from my Nexus 6P using Tapatalk
Wiltron said:
Re-Flash the latest TWRP recovery using Fastboot:
Code:
fastboot flash recovery recovery.img
Then, try again. If not, you can use:
Code:
fastboot reboot-bootloader
followed by
Code:
fastboot reboot recovery
Click to expand...
Click to collapse
This didn't work thanks for the suggestion tho
Sent from my Nexus 6P using XDA-Developers mobile app
TWRP does not work on DP, it just stays stuck on the TWRP flash screen. If you want to get it to work, just flash the marshmallow vendor.img over adb, boot in TWRP and do whatever you want to do there and then flash the android N vendor.img.
TWRP 3.0.0-0 works on both DP4 and DP5 but it won't decrypt.
dthiery said:
TWRP 3.0.0-0 works on both DP4 and DP5 but it won't decrypt.
Click to expand...
Click to collapse
Will I be able to make and restore nadroid backups with twrp 3.0.0-0?
Sent from my Nexus 6P using XDA-Developers mobile app
TWRP doesn't play nice with the developer previews. hopefully, this will get fixed for the eventual final release of N, but until then you can just use a M vendor image and then for some reason TWRP works fine. see this guide here: http://forum.xda-developers.com/nexus-6p/general/guide-android-nougat-developer-preview-t3410906
The only difference for you when following the guide is that after you're in twrp, instead of flashing supersu, you'll make a nandroid backup. then you'll go back to the bootloader, and flash dp5, then back to twrp to root, and finally back to the bootloader to flash the dp5 vendor.img.
Shamelessly ripped from my reddit posts. Minor edits from original.
Here's what I did, including complete backup/restore (this assumes you are rooted), on DP4. The same process worked on DP5. Unfortunately, you have to format data in order to get it to work.
I don't know your skill level, so I'll write this as simply as I can, for those who might arrive here from Google.
WARNING The steps provided in this guide could potentially brick your phone if done incorrectly. I am not responsible for the decisions you make that may permanently or temporarily damage or destroy your phone. Use at your own risk. If you are not sure what any of the steps are STOP and ask questions!
Here we go
Download Titanium Backup from play store (pro may be required for some features described here, not sure, I have it)
Use TBU to backup all user apps. There's a batch action for exactly this (I stopped doing system apps on MM+ because it seems the permissions get borked on a different Android ID, and I end up having to factory resetting anyway)
Use TBU to generate an Update.zip from backed up apps (again, in the batch actions, at the bottom).
Download Super Backup to backup SMS/call log history (WARNING MMS will be lost in this, including group texts, I know of no way around it)
Copy contents of internal storage to PC. Sometimes you can get Android Commander / Droid Explorer to work, and it's faster, but I was not able to with DP4.
Download the modified bootloader for your version of android from the Nexus 6P on XDA (if you're unsure, Settings->About Phone->Build Number)
Reboot into the bootloader
Run the following commands:
fastboot format userdata
fastboot flash boot <your-modified-boot-image>.img
fastboot reboot-bootloader
fastboot flash recovery twrp.img
Reboot to recovery
Perform factory reset from within TWRP
Boot into Android
Perform the first run setup
Enable USB debugging from Developer Options IMPORTANT!
Enable "Unknown Sources" from Security settings IMPORTANT!
Put the files that you backed up from your PC back on your internal storage
Rename the folder /SDCard/TitaniumBackup to /SDCard/TBU. If you do not do this, when you restore Titanium Backup, it will delete everything in your original backup folder. We need this just in case the Update.zip will not flash.
Download the latest SuperSU to your phone
Reboot to recovery
Flash SuperSU
Flash the Update.zip that was generated from TBU *Sidenote here
Reboot to Android
TBU will restore data for your apps (some may fail, unavoidable)
Restore SMS / Call logs using Super Backup
Profit
*Once when I was doing this for a friend, his TBU-generated Update.zip would not flash (error 7). Do not panic, because as long as you followed directions, you can fix it. If it fails:
Reboot back to Android
Download TBU from the Play store
Go into Settings->Preferences->Backup Location and change it to /SDCard/TBU
Run the batch action to create another Update.zip (rename it something else, just in case)
Reboot back into recovery
Flash the new Update.zip
Reboot back into Android
Let me know if something was unclear, or you have any questions!

[Q][Help] Nexus 4 stuck in bootloop Recovery after flashing twrp to boot

Hi,
I made this post/thread because i couldn't find a solution to my problem through this forum and google.
Here is my trouble:
I was trying to install a twrp recovery and was following the instructions of a tutorial.
-So first i installed flashify and proceeded to a back up of the current kernel and current recovery
-Then downloaded a custom recovery image through TWRP release for my nexus 4
-After this i accidentally flashed the recovery image to boot instead of recovery
Now as you can guess the trouble is that my phone only boots to TWRP recovery instead of usual boot.
I tried to find aswers on this forum and google and yet i didn't find a solution.
I tried this post but without results:
http://forum.xda-developers.com/tmobile-lg-g3/general/fix-recovery-loop-twrp-computer-t2873386
I would be grateful for any help and wish to recover this mistake without using a factory reset if possible.
Thank you, as you can see i am pretty new to this environment.
Can you get into fastboot mode? If yes, try flashing a stock Google rom and perform a factory wipe after installing the stock rom.
audit13 said:
Can you get into fastboot mode? If yes, try flashing a stock Google rom and perform a factory wipe after installing the stock rom.
Click to expand...
Click to collapse
Thank you for your answer, yes i can get into fastboost mode. As i am pretty new can you explain me how i can flash the stock Google rom (i guess it is the factory rom provided ?). Will this operation erase my data on the phone ?
Boot into fastboot and flash boot.img and recovery.img file from stock rom. Make sure you use the stock rom that matches the rom currently installed on your phone.
Ilovkos said:
Thank you for your answer, yes i can get into fastboost mode. As i am pretty new can you explain me how i can flash the stock Google rom (i guess it is the factory rom provided ?). Will this operation erase my data on the phone ?
Click to expand...
Click to collapse
Once in fastboot, extract the downloaded zip you got from Google. There you will find flash-all.bat Execute it as admin and wait. If it doesn't work, then extract the zip within the first zip and you should get loads of .img files. You will manually have to flash them. The commands are a bit different for each partition. They go like this:
Code:
fastboot flash system system.img
fastboot flash recovery recovery. img
fastboot flash cache cache.img
fastboot flash boot boot.img
fastboot flash data userdata.img
Note that if your cmd/terminal isn't open from the directory where the files are you will have to input it's location, for example
Code:
fastboot flash recovery C:\Users\YOURUSER\Desktop\recovery.img
Also note that there must be no spaces neither in the file name or the directories where the file is located, otherwise it probably won't flash.
Also yes, doing this will completely revert you to stock, and you WILL loose all your data. You could try just reflashing recovery.img and then flashing TWRP over it. If you can get to TWRP after this, then connect the USB cable to your PC and transfer all the data you need, after which I recommend flashing to stock. You can root and/or flash custom ROMs after this.
However in your case I think you don't have to completely go back to stock. Just try flashing the proper boot and recovery images over fastboot like I explained above and try booting then.
nerotNS said:
Once in fastboot, extract the downloaded zip you got from Google. There you will find flash-all.bat Execute it as admin and wait. If it doesn't work, then extract the zip within the first zip and you should get loads of .img files. You will manually have to flash them. The commands are a bit different for each partition. They go like this:
Code:
fastboot flash system system.img
fastboot flash recovery recovery. img
fastboot flash cache cache.img
fastboot flash boot boot.img
fastboot flash data userdata.img
Note that if your cmd/terminal isn't open from the directory where the files are you will have to input it's location, for example
Code:
fastboot flash recovery C:\Users\YOURUSER\Desktop\recovery.img
Also note that there must be no spaces neither in the file name or the directories where the file is located, otherwise it probably won't flash.
Also yes, doing this will completely revert you to stock, and you WILL loose all your data. You could try just reflashing recovery.img and then flashing TWRP over it. If you can get to TWRP after this, then connect the USB cable to your PC and transfer all the data you need, after which I recommend flashing to stock. You can root and/or flash custom ROMs after this.
However in your case I think you don't have to completely go back to stock. Just try flashing the proper boot and recovery images over fastboot like I explained above and try booting then.
Click to expand...
Click to collapse
Thanks to both of you I managed to fix this just by flashing the boot.img of the Google factory img. It didn't erase my data except my messages which is nice.

Upgrading from Build N4F26J (7.1.1) to OPR6.170623.017 (8.0.0). Bricked?

Hi all,
I grabbed the latest factory build from here <https://developers.google.com/android/images#angler> and the latest TWRP recovery from here <https://dl.twrp.me/angler/>
I then proceeded to boot into recovery, formatted my entire system (including userdata), flashed the latest recovery, copied over the 8.0.0 build and the latest GAAPS, and then attempted to flash the factory image.
Unfortunately, this is where I've now gotten stuck. TWRP replies with my flash command with "invalid zip file format" and refuses to install.
I've attempted to go back to an old recovery and re-install build N4F26J, which also gets "invalid zip file format".
I also have a full TWRP backup from build N4F26J with 3 variations: Boot-System-Data, Boot-System-SysImage-Data, and Boot-System-SysImage-Vendor-Data-Cache-Recovery, but all 3 of them result in a frozen boot animation.
tl;dr: Anyone have an idea of what I can do to get a working factory image back onto my phone? Currently am stuck with a bootlooping backup image and a zip error warning when installing a new image (regardless of image version).
Thanks in advance!
Tiffiter said:
Hi all,
I grabbed the latest factory build from here <https://developers.google.com/android/images#angler> and the latest TWRP recovery from here <https://dl.twrp.me/angler/>
I then proceeded to boot into recovery, formatted my entire system (including userdata), flashed the latest recovery, copied over the 8.0.0 build and the latest GAAPS, and then attempted to flash the factory image.
Unfortunately, this is where I've now gotten stuck. TWRP replies with my flash command with "invalid zip file format" and refuses to install.
I've attempted to go back to an old recovery and re-install build N4F26J, which also gets "invalid zip file format".
I also have a full TWRP backup from build N4F26J with 3 variations: Boot-System-Data, Boot-System-SysImage-Data, and Boot-System-SysImage-Vendor-Data-Cache-Recovery, but all 3 of them result in a frozen boot animation.
tl;dr: Anyone have an idea of what I can do to get a working factory image back onto my phone? Currently am stuck with a bootlooping backup image and a zip error warning when installing a new image (regardless of image version).
Thanks in advance!
Click to expand...
Click to collapse
You don't flash a factory image in TWRP. Unzip the file and flash the individual images: boot, system, and vendor. Try that method or use ADB sideload to install the full OTA image. Full OTA images can be downloaded from the same site.
Sent from my Nexus 5X using Tapatalk
I'm assuming you have ADB / fastboot in place (if not, google it): unzip your factory image to a given folder. Navigate to this folder using prompt / terminal. Turn on your phone with vol down pressed and leave it at that screen. Plug it onto your computer and type fastboot devices - you should see a line with a bunch of numbers. If Windows, run flash-all.bat. If Mac / Linux, run flash-all.sh. Your phone should get back to life in a few, sit back and relax.
Tiffiter said:
Hi all,
I grabbed the latest factory build from here <https://developers.google.com/android/images#angler> and the latest TWRP recovery from here <https://dl.twrp.me/angler/>
I then proceeded to boot into recovery, formatted my entire system (including userdata), flashed the latest recovery, copied over the 8.0.0 build and the latest GAAPS, and then attempted to flash the factory image.
Unfortunately, this is where I've now gotten stuck. TWRP replies with my flash command with "invalid zip file format" and refuses to install.
I've attempted to go back to an old recovery and re-install build N4F26J, which also gets "invalid zip file format".
I also have a full TWRP backup from build N4F26J with 3 variations: Boot-System-Data, Boot-System-SysImage-Data, and Boot-System-SysImage-Vendor-Data-Cache-Recovery, but all 3 of them result in a frozen boot animation.
tl;dr: Anyone have an idea of what I can do to get a working factory image back onto my phone? Currently am stuck with a bootlooping backup image and a zip error warning when installing a new image (regardless of image version).
Thanks in advance!
Click to expand...
Click to collapse
As already mentioned, you can't flash factory images via TWRP.
Get ADB and use the flash-all.bat that comes with the factory image to clean install your OS.
Just go to bootloader mode and run the file.
Bear in mind it will WIPE all your device.
wizardwiz said:
As already mentioned, you can't flash factory images via TWRP.
Get ADB and use the flash-all.bat that comes with the factory image to clean install your OS.
Just go to bootloader mode and run the file.
Bear in mind it will WIPE all your device.
Click to expand...
Click to collapse
Actually that's partially incorrect. You have to flash bootloader and radio via fastboot. You can flash boot, system and vendor with TWRP (choosing img option) and, provided you root before booting, you can preserve the custom recovery.
ultyrunner said:
Actually that's partially incorrect. You have to flash bootloader and radio via fastboot. You can flash boot, system and vendor with TWRP (choosing img option) and, provided you root before booting, you can preserve the custom recovery.
Click to expand...
Click to collapse
Flashing factory images using flash-all.bat (or .sh) will flash ALL OS including modem, bootloader and everything else.
He can't use this method if his bootloader is locked.
I wasn't talking about using a manual fastboot option to flash an indevidual image.
wizardwiz said:
Flashing factory images using flash-all.bat (or .sh) will flash ALL OS including modem, bootloader and everything else.
He can't use this method if his bootloader is locked. I wasn't talking about using a manual fastboot option to flash an indevidual image.
Click to expand...
Click to collapse
In his original post he doesn't say anything about having a locked BL. As well, if he's stuck the way he is then perhaps you should have given him better information. It'd give him far more control if you directed him to the unlock/root/flash guide, which gives him more options (and more control via flashing individual partitions via fastboot) at https://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928.
ultyrunner said:
In his original post he doesn't say anything about having a locked BL. As well, if he's stuck the way he is then perhaps you should have given him better information. It'd give him far more control if you directed him to the unlock/root/flash guide, which gives him more options (and more control via flashing individual partitions via fastboot) at https://forum.xda-developers.com/nexus-6p/general/guides-how-to-guides-beginners-t3206928.
Click to expand...
Click to collapse
We're not in a contest, buddy. Just trying to help that guy.
He can simply choose the best option for him to get his device up and running.
If he is familiar with fastboot image flashing then by all do means he can use your method.
He is stuck with no OS installed and using flash-all.bat file is the easiest way to get his device boot properly.
wizardwiz said:
We're not in a contest, buddy. Just trying to help that guy.
He can simply choose the best option for him to get his device up and running.
If he is familiar with fastboot image flashing then by all do means he can use your method.
He is stuck with no OS installed and using flash-all.bat file is the easiest way to get his device boot properly.
Click to expand...
Click to collapse
No we're not in competition. My point was you gave him one option with the least control and not remotely the best option to get his device up and running, particularly making an assumption he has a locked bootloader, when you never asked. If he is able to use a command line to run a flash command, then pointing him to the guide is the best bet. If something goes wrong with flash-all scripts then he's probably going to be really lost.

[Fixed][Help] How to relock bootloader and revert to stock

Fixed! Go here for steps
I've tried the relock.bat provided in the unofficial bootloader unlock/lock thread but I keep getting the bootloader unlocked warning. I also downloaded and tried installing the stock ROM mentioned in https://m.youtube.com/watch?v=peSI-KeEt5E&time_continue=23 but the window just closed itself so I manually flashed recovery, boot, system and vendor images using twrp. I then booted and installed the April security patch update but I got random soft-reboots in the process.
Can anyone guide me to restoring the device to locked condition? (4GB ram variant)
Update: Noticed that these reboots occur as soon as app installation is over. Disabled app updates for now
Relock Bootloader ZenFone Max Pro M1
1) Download Zenfone_Max_M1_Pro_Relock.zip and extract it to a folder on your desktop.
2) Power off your phone. Then press Power and Volume Down key together, to boot into fastboot mode.
3) Connect your Asus Zenfone Max Pro M1 to the PC using a USB cable.
4) Windows will now automatically detect the device and start installing the fastboot drivers for it. If not, download and install these ASUS drivers.
5) Open the directory where you extracted the file from #1.
6) In that directory, open a file named relock_bl.cmd
7) A Command (CMD) prompt will do the rest of the work for you.
Let the phone restart.
8) It will then erase all the data on your phone (excluding Micro SD card).
9) Now the phone won’t show the “bootloader unlocked” warning that was displayed before you relocked the bootloader.
You have successfully relocked the bootloader.
myapky said:
9) Now the phone won’t show the “bootloader unlocked” warning that was displayed before you relocked the bootloader.
Click to expand...
Click to collapse
No success. I'm following the method shown in this thread
Edit: Reboots are fixed after I wiped data before flashing the images
myapky said:
1) Download Zenfone_Max_M1_Pro_Relock.zip and extract it to a folder on your desktop.
2) Power off your phone. Then press Power and Volume Down key together, to boot into fastboot mode.
3) Connect your Asus Zenfone Max Pro M1 to the PC using a USB cable.
4) Windows will now automatically detect the device and start installing the fastboot drivers for it. If not, download and install these ASUS drivers.
5) Open the directory where you extracted the file from #1.
6) In that directory, open a file named relock_bl.cmd
7) A Command (CMD) prompt will do the rest of the work for you.
Let the phone restart.
8) It will then erase all the data on your phone (excluding Micro SD card).
9) Now the phone won’t show the “bootloader unlocked” warning that was displayed before you relocked the bootloader.
You have successfully relocked the bootloader.
Click to expand...
Click to collapse
IF YOU ARE ON THE LATEST FIRMWARE THEN THE ABOVE STEPS WORK, I CANNOT POST LINKS HERE AS I'M NOT ABLE TO.
MY PHONE FIRMWARE : Version WW-14.2016.1804.305
CONFIRM YOURS............!!!!
myapky said:
WW-14.2016.1804.305
Click to expand...
Click to collapse
OPM1.WW_Phone-14.2016.1804.305-20180521
Check this [GUIDE][Back-To-Stock] Flash Stock ROM
CHECK THIS : https://forum.xda-developers.com/showpost.php?p=76695194&postcount=95
Download stock recovery availbale at xda forum.
Than download the official latest firmware 1.4GB from asus website and place in external sdcard.
Flash stock recovery with fastboot method. Boot into recovery and flash the firmware zip..it will automatically encrypt your internal data.
SINGHYAR.
myapky said:
CHECK THIS : https://forum.xda-developers.com/showpost.php?p=76695194&postcount=95
Click to expand...
Click to collapse
This got my device into Red State with message "Your data is corrupt". Unlocked bootloader again, will try this method by installing system, boot, recovery and vendor partition images
That script is working for me, but I installed the images of the csc zip which was indonesian edition. Trying again with ZB601KL images
Thanks @myapky! Phone is now having a locked bootloader
Can I relock bootloader after installing Magisk?
Sourav-21 said:
Can I relock bootloader after installing Magisk?
Click to expand...
Click to collapse
You should lock bootloader only on stock recovery without root and with no system modification (like uninstall of system apps, property file change).
If you lock the bootloader with custom recovery or modified system then if OTA messes up boot or any other partition .. you have no way to fix it.
Also .. only locking the bootloader will not fix OTA .. as any OTA patching boot.img will mess your Magisk anyway .. so keep bootloader unlocked if you have modifications.
.A.V.i.n.a.S.h. said:
You should lock bootloader only on stock recovery without root and with no system modification (like uninstall of system apps, property file change).
If you lock the bootloader with custom recovery or modified system then if OTA messes up boot or any other partition .. you have no way to fix it.
Also .. only locking the bootloader will not fix OTA .. as any OTA patching boot.img will mess your Magisk anyway .. so keep bootloader unlocked if you have modifications.
Click to expand...
Click to collapse
Thank you. I forgot that Magisk patch the system.img. In old days superSU just modify the system partition.
I want to relock the bootloader only for the irritating Warning message at the startup. Is there any way to stop that message like moto G?
Sourav-21 said:
Thank you. I forgot that Magisk patch the system.img. In old days superSU just modify the system partition.
I want to relock the bootloader only for the irritating Warning message at the startup. Is there any way to stop that message like moto G?
Click to expand...
Click to collapse
It appears on custom ROM as well .. so not sure about any way to block it.
If i unlock via official app and when some update available and I download & flash by stock recovery will it work?
Another question is if I install custom rom then how can I back in stock rom?
Ariful Hasan Soikot said:
If i unlock via official app and when some update available and I download & flash by stock recovery will it work?
Another question is if I install custom rom then how can I back in stock rom?
Click to expand...
Click to collapse
Recommended to UNLOCK unofficially - using this Guide.
If you have unlocked officially then you will not get OTA update notification.
To update (if you are on stock system without modifications like TWRP, Root etc..),
Download full firmware from ASUS official site ( ZBL601KL OR ZBL602KL ) and try to unzip it once to check for file errors.
If no issues in unzip then keep the file in base path of Internal storage.
You will get a message like System Update file detected (if not then reboot and check).
Select the notification and authorize to update. DONE.
To revert back to Stock from Custom roms - use this GUIDE or follow the method in this thread
.A.V.i.n.a.S.h. said:
Recommended to UNLOCK unofficially - using this Guide.
If you have unlocked officially then you will not get OTA update notification.
To update (if you are on stock system without modifications like TWRP, Root etc..),
Download full firmware from ASUS official site ( ZBL601KL OR ZBL602KL ) and try to unzip it once to check for file errors.
If no issues in unzip then keep the file in base path of Internal storage.
You will get a message like System Update file detected (if not then reboot and check).
Select the notification and authorize to update. DONE.
To revert back to Stock from Custom roms - use this GUIDE or follow the method in this thread
Click to expand...
Click to collapse
I don't understand about base path of internal storage. Plz can you show a screenshot or make clear about which folder i have to put full firmware?
Ariful Hasan Soikot said:
I don't understand about base path of internal storage. Plz can you show a screenshot or make clear about which folder i have to put full firmware?
Click to expand...
Click to collapse
Just keep the file in Internal storage and not under any folder/directory in Internal Storage.
In Internal Storage you should have ..
Android (directory)
DCIM (directory)
Download (directory)
WhatsApp (directory)
..... etc
UL-ASUS_X00T-WW-14.2016.1804.252-user.zip (file)
Remember that the current UL-ASUS_X00T-WW-14.2016.1804.305-user.zip file on https://www.asus.com/in/Phone/ZenFone-Max-Pro-ZB601KL/HelpDesk_BIOS/ is corrupted.
You can download UL-ASUS_X00T-WW-14.2016.1804.252-user.zip from here - https://androidfilehost.com/?fid=674106145207491520

Categories

Resources