Related
Stuck at "Patching System Image Unconditionally" when flashing CM12.1 via TWRP
Just got a Note 4, proceeding with the usual root and installation CyanogenMod ASAP
Everything was going smoothly until the actual flashing of CyanogenMod, whenever I try to flash it, it just gets stuck on "patching system image unconditionally" and doesn't progress beyond that point
Steps I've taken so far:
1) unboxed phone, was running Android 6.0 (I think, maybe 6.0.1)
2) Rooted with Chainfire's Auto Root
3) Flashed TWRP 3.0.2-0 via Odin 3.09 as per TWRP's instructions
4) Ensured that I could boot both to the stock ROM and TWRP
5) Copied cm12.1 and gapps to Note 4's internal storage (sd card hasn't come in yet, normally I put it onto sd card)
6) Did default factory wipe from TWRP
7) Attempted to flash cm12.1, ran into issue
I didn't make a backup of the stock ROM so now the phone has a recovery but no actual OS, as I had to pull the battery out to get it to do anything beyond being stuck at the patching system image step
I'm redownloading cm12.1 in case maybe there was a problem with the .zip itself, I know it's bad practice but I never check md5 sums
I've found other threads that suggested flashing the stock ROM for some reason, but they were for other phones and I'm not sure if it's related to the Note 4.
I've seen some mention of the bootloader being locked, but I don't know how to tell if the bootloader is locked or not. I see the same exact boot screen that I saw with my Note 3, S4, S3, etc. Could the issue be the bootloader?
I've also found this thread, but I can't get TWRP to mount in Windows, it keeps saying the driver failed to install. MTP transfers worked fine with the stock ROM was still there, but for some reason it doesn't work with the Mount option in TWRP. I'm downloading the Android SDK so I can try using adb
If anyone else has run into this, can you advise me on what to do from here?
EDIT: Nevermind, fixed it. Changed system partition's filesystem to F2FS via TWRP, and this allowed CM and gapps to flash with no issue. Now booted into CM But hopefully this will be helpful if anyone else has this issue
EDIT2: Buuuuut now the WiFi's not working. It just gets stuck at "turn on WiFi" but nothing actually turns on, and the on/off button for WiFi in settings is grayed out. IT NEVER ENDS
CyanogenMod Thread
Reddit Thread
EDIT3:
WiFi and Settings Issue seems to be resolved
I think the problem had something to do with the baseband version
As per Trex's post (http://forum.xda-developers.com/showpost.php?p=69520362&postcount=2), I had to revert back to the OK1 baseband
Now everything seems to work fine
As for TWRP not working and just going to a black screen, I redownloaded it from the TWRP website and it worked fine
So now both TWRP and CM are installed and working, WiFi works, and Settings don't crash.
Now I've encountered an issue where the camera doesn't focus, and I'm wondering if there's still some plastic film on the camera lens, but I've been picking at it and nothing is coming off and I'm afraid of damaging the plastic if I keep trying...
AbuFiraas said:
Just got a Note 4, proceeding with the usual root and installation CyanogenMod ASAP
Everything was going smoothly until the actual flashing of CyanogenMod, whenever I try to flash it, it just gets stuck on "patching system image unconditionally" and doesn't progress beyond that point
Steps I've taken so far:
1) unboxed phone, was running Android 6.0 (I think, maybe 6.0.1)
2) Rooted with Chainfire's Auto Root
3) Flashed TWRP 3.0.2-0 via Odin 3.09 as per TWRP's instructions
4) Ensured that I could boot both to the stock ROM and TWRP
5) Copied cm12.1 and gapps to Note 4's internal storage (sd card hasn't come in yet, normally I put it onto sd card)
6) Did default factory wipe from TWRP
7) Attempted to flash cm12.1, ran into issue
I didn't make a backup of the stock ROM so now the phone has a recovery but no actual OS, as I had to pull the battery out to get it to do anything beyond being stuck at the patching system image step
I'm redownloading cm12.1 in case maybe there was a problem with the .zip itself, I know it's bad practice but I never check md5 sums
I've found other threads that suggested flashing the stock ROM for some reason, but they were for other phones and I'm not sure if it's related to the Note 4.
I've seen some mention of the bootloader being locked, but I don't know how to tell if the bootloader is locked or not. I see the same exact boot screen that I saw with my Note 3, S4, S3, etc. Could the issue be the bootloader?
I've also found this thread, but I can't get TWRP to mount in Windows, it keeps saying the driver failed to install. MTP transfers worked fine with the stock ROM was still there, but for some reason it doesn't work with the Mount option in TWRP. I'm downloading the Android SDK so I can try using adb
If anyone else has run into this, can you advise me on what to do from here?
EDIT: Nevermind, fixed it. Changed system partition's filesystem to F2FS via TWRP, and this allowed CM and gapps to flash with no issue. Now booted into CM But hopefully this will be helpful if anyone else has this issue
EDIT2: Buuuuut now the WiFi's not working. It just gets stuck at "turn on WiFi" but nothing actually turns on, and the on/off button for WiFi in settings is grayed out. IT NEVER ENDS
Click to expand...
Click to collapse
You must flash 5.1.1 ok1 bootloader to get wifi work
I suggest you first flash 5.1.1 firmware in odin
Then flash twrp. Tar file in odin.
Then make full wipe
Flash cm rom + gapps
You will get clean rom install without any errors
Hope this will help
Trex888 said:
You must flash 5.1.1 ok1 bootloader to get wifi work
I suggest you first flash 5.1.1 firmware in odin
Then flash twrp. Tar file in odin.
Then make full wipe
Flash cm rom + gapps
You will get clean rom install without any errors
Hope this will help
Click to expand...
Click to collapse
Okay I'll give that a shot. Are "5.11 ok1 bootloader" and "5.1.1 firmware" the same thing? And do you know where I can find it/them?
Just flashed OK1 via Odin via this thread, but it's just boot looping over and over
EDIT: Did a simple factory wipe and it's working fine now. Currently running unrooted Stock 5.1.1, Baseband N910PVPS4COK1. So I'm basically starting from the beginning, whereas before it was on 6.0 but now it's 5.1.1
Am now rooted but I can't get TWRP installed, I flash it and try to boot to recovery but it just boots to a black screen
Issue seems to be resolved, edited original post
AbuFiraas said:
Okay I'll give that a shot. Are "5.11 ok1 bootloader" and "5.1.1 firmware" the same thing? And do you know where I can find it/them?
Click to expand...
Click to collapse
Go to download mode and check exact model number
Tell me model number and i give you links for bootloader and firmware
Trex888 said:
Go to download mode and check exact model number
Tell me model number and i give you links for bootloader and firmware
Click to expand...
Click to collapse
It's working now, I found another post that had all the various stock firmwares on there. Now the issue I'm having is that my camera doesn't focus at all, but I don't know if it's a hardware or software issue. I never checked the camera before rooting the first time. Gonna try going back to unrooted stock again but if that doesn't change anything, I might have to take it to a Sprint store and get a replacement. Hopefully they don't notice the KNOX trip... lol
Hey guys,
I have a Nexus 7 that is stock and on 4.4.2. When I bought it all I did was run Towel root to get root and I have not taken an update in all these years. I also installed an app to unlock bootloader. I am even still on stock recovery.
I'd like to go to 7.1 now. What is the easiest way for me to do this right now? Please include all steps as I do not have a ton of experience with this.
Thanks in advance!
I apologize if I maybe my question was too broad. Can i go directly from 4.4.2 to 7.1 or do I have to upgrade to something else first.
Can i leave the tablet rooted with towel root or do I have to unroot first?
Thanks
http://forum.xda-developers.com/showthread.php?t=2382051
You should read and watch some basics to understand what
you have to do.
In short: unlock bootloader, flash latest factory image or latest bootloader and radio, flash twrp and then 7.1 rom of your choice
Thanks for the link, I appreciate it.
I'd like to try and just go straight from 4.4.2 to 7.1 if that is possible. I now went ahead and installed TWRP on the tablet. This went fine and TWRP seems to be working perfectly.
So now I have unlocked bootloader, SU working, TWRP and I'm still on 4.4.2. What is now the easiest way for me to get 7.1?
^He was just saying you need the latest bootloader. To get that you can flash the latest factory image or just the bootloader.img itself (and radio if you have the mobile version). Latest is 4.08
Either way download the latest factory image and on your tablet download the rom and gapps you wan't. We can only fit the smaller gapps read about it in your roms thread.
I'm assuming you're familiar with fastboot, if not there are many, many guides all over xda and the internet.
Drag and drop the bootloader.img in the factory zip into your fastboot folder and with the tablet booted to the bootloader run this:
Code:
fastboot flash bootloader bootloaderfilename.img
fastboot reboot-bootloader
The file name for flo is bootloader-flo-flo-04.08.img
(your kitkat rom will most likely not boot with the newer bootloader but you don't need to)
Use the volume buttons to select recovery and press power to boot twrp.
Now just wipe the tablet (not internal storage) and flash the rom and gapps. That's it. Reboot.
Ok, i really appreciate your help folks. I think im getting closer to understanding what I need to do.
Yosmokinman, where can i get the 4.08 bootloader img?
Also, you mentioned radio if I have the mobile version. What do you mean by this? My tablet is wifi only?
When i flash the rom and gapps do i do that from twrp? Can i flash both at same time one after the other or do i have to do something in between?
When i reboot will i have to reinstall all my apps, photos, files, etc. Or will they still be there?
Sorry for all the questions, Im hoping to not make any mistakes. I love my little Nexus and dont want to hurt it :good: thanks very much once again!
yosmokinman said:
^He was just saying you need the latest bootloader. To get that you can flash the latest factory image or just the bootloader.img itself (and radio if you have the mobile version). Latest is 4.08
Either way download the latest factory image and on your tablet download the rom and gapps you wan't. We can only fit the smaller gapps read about it in your roms thread.
I'm assuming you're familiar with fastboot, if not there are many, many guides all over xda and the internet.
Drag and drop the bootloader.img in the factory zip into your fastboot folder and with the tablet booted to the bootloader run this:
Code:
fastboot flash bootloader bootloaderfilename.img
fastboot reboot-bootloader
The file name for flo is bootloader-flo-flo-04.08.img
(your kitkat rom will most likely not boot with the newer bootloader but you don't need to)
Use the volume buttons to select recovery and press power to boot twrp.
Now just wipe the tablet (not internal storage) and flash the rom and gapps. That's it. Reboot.
Click to expand...
Click to collapse
^ Factory Images for Nexus and Pixel Devices
wifi only N7 is not the mobile version so forget about the radio. You're looking for "razor" on the images page.
Yes the wiping and rom/gapps flashing is done through twrp and you should be flashing rom then gapps one after the other then hit reboot.
Everything will be gone but your internal storage. You'll have to redownload and setup everything. Don't worry about hurting the tablet you can recover from pretty much any problem with the factory image.
yosmokinman, ok I am getting ready to do this! Thank you again.
So I found the 4.08 bootloader thanks to your link. I think I am just going to go with latest Cyanogenmod 7.1 snapshot. If I understand correctly I will be using opengapps ARM 7.1 Pico.
Does above seem correct?
Also, what about my kernel, I am still on the stock/original kernel (I believe 3.4.0-gac9222c#1) from back when I originally got the tablet new. Does that just stay the same?
Finally, you mentioned that as long as I have a factory image I should be good if I run into any problems. Do you mean a factory image that I can download (from where?)? or do you mean an actual image from my tablet? As of now I have never made an image of mine (not sure how I would do that).
I can almost taste that Nougat now
Thanks again!
treepog said:
yosmokinman, ok I am getting ready to do this! Thank you again.
So I found the 4.08 bootloader thanks to your link. I think I am just going to go with latest Cyanogenmod 7.1 snapshot. If I understand correctly I will be using opengapps ARM 7.1 Pico.
Does above seem correct?
Also, what about my kernel, I am still on the stock/original kernel (I believe 3.4.0-gac9222c#1) from back when I originally got the tablet new. Does that just stay the same?
Finally, you mentioned that as long as I have a factory image I should be good if I run into any problems. Do you mean a factory image that I can download (from where?)? or do you mean an actual image from my tablet? As of now I have never made an image of mine (not sure how I would do that).
I can almost taste that Nougat now
Thanks again!
Click to expand...
Click to collapse
When you flash the ROM, you'll get a new kernel. All of that is wiped when you wipe system from TWRP. Then when you flash the ROM from TWRP, you'll get a new system and the kernel and all else.
Sound fine. Except there is no nougat snapshot (thats cm13 marshmallow) you wan't Cyanogenmod 14.1 nightly.
If you downloaded the latest image for razor from that link above that is the factory image. If you look in the zip there is another zip that has the different partition images.
You said your N7 is the wifi only version so make sure the bootloaders file name is "bootloader-flo-flo-04.08.img" don't flash the wrong one.
Ok, thanks again. I will report back once I do it. Thank you so much!
Ok, I finally had a chance to do this today. I decided to go with CM android 6 instead of 7 because I really want something that is totally stable. When I got the factory image I saw it only goes up to android 6 and since I was getting the bootloader from 6 (4.08 bootloader) I figured just stick with 6.
If I wanted to upgrade to CM 7 or 7.1 would the 4.08 bootloader still be correct??
Anyway, it is like I have a brand new tablet. Running great!
THANKS SO MUCH FOR THE HELP!!!
I'm running stock MM with the Nova launcher. Aside from the intermittent sensor issues, it's still a remarkably smooth tablet.
I got my pixel XL today and I unlocked the bootloader and tried to flash a custom rom from twrp but after the flash in the reboot menu it says no OS installed? Tried 2 different roms both with the same result. I know I am doing all the steps correctly but I have no idea what is going wrong. When rebooted it just sits at google logo. and yes I tried to google to find the solution but I didn't find anything.
loeffler23 said:
I got my pixel XL today and I unlocked the bootloader and tried to flash a custom rom from twrp but after the flash in the reboot menu it says no OS installed? Tried 2 different roms both with the same result. I know I am doing all the steps correctly but I have no idea what is going wrong. When rebooted it just sits at google logo. and yes I tried to google to find the solution but I didn't find anything.
Click to expand...
Click to collapse
You have to pay attention to the a/b partition thing with pixel phones. With Oreo i always had to flash rom to both slots (a and b). You can change slots in twrp in reboot menu. With this a/b thing on pixel phones flashing custom rom and kernel is quite different... Always pay attention to the steps provided from the dev in the thread you found the custom rom.
loeffler23 said:
I got my pixel XL today and I unlocked the bootloader and tried to flash a custom rom from twrp but after the flash in the reboot menu it says no OS installed? Tried 2 different roms both with the same result. I know I am doing all the steps correctly but I have no idea what is going wrong. When rebooted it just sits at google logo. and yes I tried to google to find the solution but I didn't find anything.
Click to expand...
Click to collapse
Try to just change the slot and check if boots.
From what I understand, the ROM will flash to opposite slot that you're currently booted into. So if you boot into twrp on slot a, if will flash the ROM to slot b and vice versa. If I were you, I'd flash the ROM to both slots.
Thank you for all the help, right now I'm just on rooted 8.0 with twrp as recovery. I'll prolly mess with some stuff over the weekend.
i have tried to install twrp on my 5x, 6, and 6p, with the same results "do loop". doing a twrp backup of the stock rom doesn't work as flashing it results in the same "do loop". is there a good "how to" on backing up my stock rom to my pc without twrp? i have lineage 15.1 on my 6p but doing the twrp format cleans all.
I don't see the point of backing up stock rom in first place, and I don't really know what's your problem, explain... more precisely. Your twrp can't stick in stock rom, or phone bootloop after restoring backup? Answering last question: you can get factory system image right from google's servers.
i had trouble flashing the stock rom, i keep getting errors, i thought if i saved the one on the phone to my pc i might have a better chance at restoring it. installing twrp resulted in the stock rom either doing a twrp reboot or forever hung on the google logo. when i flashed lineage it starts to load but boots back to twrp. i got it to install on my 6p after wipe and format. i will try that on the 5x, will it work? just looking for a fall back position.
dr1445 said:
i had trouble flashing the stock rom, i keep getting errors, i thought if i saved the one on the phone to my pc i might have a better chance at restoring it. installing twrp resulted in the stock rom either doing a twrp reboot or forever hung on the google logo. when i flashed lineage it starts to load but boots back to twrp. i got it to install on my 6p after wipe and format. i will try that on the 5x, will it work? just looking for a fall back position.
Click to expand...
Click to collapse
Just curious what type of "errors" you are having with flashing the stock ROM? Is it possible you need to download a newer version of fastboot/adb?
@73 the old memory is not that great but i seem to recall format error. when i got the phone from ebay i did the full stock setup up to the latest 8.1. i recorded that info and that was my first google firmware flash with no joy. i had to go back to android 6 before i found one that would flash. i am running linux xubuntu, which i keep updated.
If the stock image won't flash using fastboot or OTA, it seems like your phone is faulty.
nowster said:
If the stock image won't flash using fastboot or OTA, it seems like your phone is faulty.
Click to expand...
Click to collapse
as noted in my last post, it finally did flash after trying several versions. i am hardly any kind of expert on the subject, but there seems to be problem with the twrp software on the nexus 5x and i add the 6p where the same deal occurs.
dr1445 said:
as noted in my last post, it finally did flash after trying several versions. i am hardly any kind of expert on the subject, but there seems to be problem with the twrp software on the nexus 5x and i add the 6p where the same deal occurs.
Click to expand...
Click to collapse
Why are you trying to use TWRP to flash the stock ROM (granted, I've seen the option to flash ".img" files but never used for anything other than "boot.img"). You should be using a pc and "fastboot".
For flashing stock you should be using fastboot, or the stock recovery and an OTA image.
I have a Sprint Moto Z2F, BL unlocked, rooted running the stock ROM
I've tried to return back to stock, recovery and not rooted but bootloader is still unlocked and tried to take the update but it always fails to install. What am I doing wrong?
hello....Bueller, .Bueller
Well reading other threads, if you unlock your bootloader and root, then go back to stock you can't get OTA updates
TwoBuells said:
Well reading other threads, if you unlock your bootloader and root, then go back to stock you can't get OTA updates
Click to expand...
Click to collapse
From another post I read from @Uzephi just recently there are some users who have been able to return to stock and receive the updates but IIRC there is a certain procedure to follow for it to work. Search @Uzephi's post and you'll be able to find it.
Sent from my Moto Z2 Force using XDA Labs
To add to what @fast69mopar said, here is the thread you should check out.
thanks
Yes, follow that thread. I have never had an issue getting updates on my sprint variant.
Uzephi said:
Yes, follow that thread. I have never had an issue getting updates on my sprint variant.
Click to expand...
Click to collapse
I've tried three times, I'm not wiping or formatting data, mounting the right way or order, when I get some time I'll try again. phone is running fine now, I just have updates frozen now so the notifications don't bug me.
Flashall works great,
I fastboot boot the TWRP.img file
then boot into TWRP, flash the TWRP zip and Magisk zip files.
I get a " can't mount system error", I'm not sure what to have checked when I wipe after installing TWRP
I tried to install the TWRP 3.2.2.0 but could never get the phone to boot after installing twrp zip
TWRP 3.2.1.0 is the only TWRP I can get to install and boot.
I have something overwriiten or not installed correctly \
I have to do some more reading of these threads and see where I'm doing wrong.
this slot a and b is confusing, maybe I did something wrong there. ( I really have not done anything with slot a or b, just installed files like those slots are not there. maybe one of them is corrupt
I tried a few more times but still can't get the OTA update to install.
I put my phone in the fastboot mode
I run Flashall
Flashall does its thing then when I reboot I sign in to my Google account, the phone is activated to my carrier. I get a notification for the system update, then it fails.
I go back to fastboot, flash and setup TWRP then root and restore my data and I'm back to normal
after Flashall my phone is back to stock, I tried to let the OTA update install and it fails everytime.
Maybe I should try some different ROM's since its so easy to get back to stock if something goes wrong.