[Solved] Flashing stock without bootloader lock and without losing apps - Moto Z Play Questions & Answers

Hi,
I made some mistake when trying to get the Oreo soak to flash. I flashed back the stock boot.img (since the backup made by Magisk caused some error) and WiFi wasn't working. It showed to be disabled woke searching for WiFi without possibility to turn it on, so I tried to reflash the latest official ROM.
RSD lite can't find my device and all the manual methods either and in since error or include bootloader locking or going back from a custom ROM (and most likely wiping /data for compatibility). I found one that separated out a few files that could wile internal storage but it would be stuck on that back/white Motorola logo (the one you get unlocking bootloader and hiding the warning). A different one wanted to flash that gpt file but that gave me an error in terminal.
I was able to get everything running by restoring boot image and something else from TWRP, the only thing remaining is that when I bootup/reboot my phone it automatically boots into fastboot so I have to hit the power button on,"start", which is a bit annoying.
But also for the future: is there any simple way to flash from the .xml.zip files like with Googles image files or Samsung's .tar.md5 through ODIN or something like that? Or at least a working manual method not including bootloader lock or loosing any data?

It seems like I've found a working manual myself that includes creating a bat file and explains what you have to do to either keep or whipe data. Don't know what it's doing that much different, I just know that it doesn't give me any (real) errors.

Related

[Q] Soft bricked my encrypted phone and I can't factory restore or flash new ROM

While installing the most recent update to my encrypted SG3-L710, the phone restarted and while booting up remained stuck on the blue/white Samsung logo.
-After removing the battery and attempting to get around this several times it appeared that the update had soft-bricked my phone. I was never prompted to put in my passcode to undo the encryption.
-I am able to access CWM Recovery and, being that the only significant thing I would lose are my contacts so I attempted to perform a factory restore which was unsuccessful. It appeared the error indicated it was the /sd_card and /data folders posing the problem.
-I attempted to mount and unmount the /sd_card and /data folders which was unsuccessful, formating them also did not work.
-I downloaded Odin and the PIT file as my last hope. I attempted to flash the stock ROM to the phone and hopefully wipe the old ROM from the system. Odin also encountered problems with the /sd_card and /data and was not able to progress past that point. Now I am attempting it a second time to obtain the specifics and it's stuck on "<ID:0/004> Send lock information...".
Any ideas on how to be able to bypass the encryption and wipe my phone so I can flash a new ROM on this?
I've been working on this problem for almost two days now and I would greatly prefer not having to send my phone into Samsung and spend $100 to do this for me! Thanks ahead of time, bear in mind I'm new to this and might be a bit slow.

can't exit from recovery menu - xpopC9

IS the android recovery menu stored in the bootloader?
Does the bootloader corresponds to the file boot.img on SP FLASH TOOL?
I have an alcatel 7047 xpop c9 (with MT6582M processor) . It power on and automatically goes to android recovery menu and there is no way to let it exit from this mode or to power off because the battery is not removable.
It seems that the problem appeared during an upgrade, because the battery discharged during the process.
Today i tried to use SP FLASH TOOL version 5 in order to write the flash, included preloader, boot, recovery etc., by using a backup for this phone found on internet. After flashing everything i tried to reboot the phone but each time the same menu is shown.
Question: does the boot.img file overwrites the bootloader? How could I understand what is the problem? Could I enable some print or log, even remote logging, in order to better understand what is going wrong?
Yesterday i also tried the upgrade tool from alcatel website (it reloads all the original files but the result is the same).
EDIT: i was able to open the case, remove the battery and replug it, but the problem is still the same: Reconnecting the battery and powering the phone, it automatically goes in the recovery menu.
Wow
Wow, no reply. Is it there someone hereeeeeeeee?
gaucho1978 said:
IS the android recovery menu stored in the bootloader?
Does the bootloader corresponds to the file boot.img on SP FLASH TOOL?
I have an alcatel 7047 xpop c9 (with MT6582M processor) . It power on and automatically goes to android recovery menu and there is no way to let it exit from this mode or to power off because the battery is not removable.
It seems that the problem appeared during an upgrade, because the battery discharged during the process.
Today i tried to use SP FLASH TOOL version 5 in order to write the flash, included preloader, boot, recovery etc., by using a backup for this phone found on internet. After flashing everything i tried to reboot the phone but each time the same menu is shown.
Question: does the boot.img file overwrites the bootloader? How could I understand what is the problem? Could I enable some print or log, even remote logging, in order to better understand what is going wrong?
Yesterday i also tried the upgrade tool from alcatel website (it reloads all the original files but the result is the same).
EDIT: i was able to open the case, remove the battery and replug it, but the problem is still the same: Reconnecting the battery and powering the phone, it automatically goes in the recovery menu.
Click to expand...
Click to collapse
Just discovered your post. Have you solved the issue?
First of all, the recovery image is not stored in the bootloader...whatever you meant by that. It is stored in the recovery partition. The boot.img is NOT the bootloader. It is the kernel. And it is stored in the boot partition. Those questions simply sound like you are trying to figure out why your phone is booting into recovery. Even after you have restored the STOCK ROM using Alcatel's Mobile Upgrade S.
My first thought was that you have no system image or that your custpack partition is corrupted. But those issues would lead to a boot loop or you would just hang on the boot logo and not move forward. Plus you restored the stock ROM. So that's really strange that you're booting only into recovery each time.
However what is more likely is that you are not starting your phone correctly. I once had a lady with the exact same issue. Her phone developed this strange problem where it would only boot into recovery. Her phone was completely stock. She never did anything with her phone except use it like a non-techie would use their phone. She didn't even know what recovery meant. All she knew was this strange menu always appeared when she started her phone.
BUT, when I booted her phone...guess what? It booted up just fine! But with her, her phone would always boot into recovery. You know why? I watched her boot her phone. She had developed a new habit every time she started her phone of inadvertently applying pressure on the Volume UP button while she was turning on her phone...because it was on the opposite side of the phone from the power button.
It's really weird that the problem persists even after you flashed back to stock. If that's the case, my only other guess is that your motherboard is damaged, or perhaps it's not you who is holding down the vol+ button...maybe it's just stuck.

[solved ]Update with Flashfire and current factory image leads to bootloop into twrp

Hi,
I wanted to update my Pixel C to the most current factory image with flashfire as i did it before a few times without problems.
So I DL'd current factory image from https://developers.google.com/android/images#ryu, opened it in flashfire and said it should flash the normal partitions except recovery as i don't want that it overwrites my TWRP.
Flashfire analyzed the zip file and after i said "flash" it restarted my Pixel into a black screen. At this point i was wondering that nothing more happened.
I waited for 10 minutes so that maybe something in the background could happen, but there was no further action. The screen kept black.
After these 10 minutes i restarted the device but now it always runs into TWRP directly instead of starting the system
I also tried to install the zip manually in TWRP but it tells me
"Could not find 'META-INF/com/google/android/update-binary' in the zip file.
Error installing the zip file '/usb-otg/ryu-n2g48c-factory-0bc0ee15.zip'"
As you can see from the error message i also tried to dl the file again and install it via OTG but the same thing.
If I go into the file manager in TWRP i can still access the folders from the sdcard.
The bootloader is unlocked of course.
Anyone an idea what i can do without loosing all the data?
Thanks in advance
Download the full system image and extract it. There should be a flash_all-file (bat for windows of sh for linux). Open it with an editor and remove the "-w" option in fastboot. "-w" is the switch for wipe. After you removed it, you can flash the complete image and your system should boot again into android. After that you can install a custom recovery, etc. again.
Thank you peter, worked like a charm for the system flash. Now follows the TWRP etc again
EDIT: ok, the system flash was the only thing that worked like a charm. I tried flashing TWRP with NRT but didn't work. I am stuck now at a "no command" screen when i start the device.
To install the custom recovery NRT tells me that i will loose all my data, so i wanted to backup everything.
Unfortunately i can't backup everything now as the temp booted TWRP demands a password to decrypt the sdcard, but i only have a pattern and no password set.
So now i try to flash everything again and to install twrp without loosing all the data.
Hey everyone I have flashed android 7.1.2 August again and android started afterwards without any problems. I was able to restore the backup of all the apps from Google.
Than I wanted to get back root and flashed TWRP with Nexus Root Toolset, but now only TWRP starts every time I switch on the tablet. Any ideas what I can do?
EDIT: I fixed it somehow with flashing the whole firmware package again and than the TWRP wich broke the startup again so i ended up in a TWRP bootloop. Therefore i flashed android again and TWRP 3.0.0.0 than TWRP 3.0.2.4 (something like that) and after like 3 to 4 different flashing steps it worked again. I have no idea what happened during the first flash of Andoir 7.1.2 but i think that something broke there.

Really need help, google flash gone bad

At first I tried to update my existing TWRP (3.2.1-0) to the 3.2.1-2 variant. It flashed ok, but then the phone would only boot to TWRP (reason for upgrade is that 3.2.1-0 would hang). I was attempting initially to put myself on the path to a "custom rom". When this failed, I manually flashed the latest google firmware from their page and it still will not do anything other than fastboot mode. No recovery, no firmware load. When I try to do the flash-all.bat method now, all I get after it loads the archive contents is "error: Cannot generate image for userdata. Guess I got a $1000 brick at this point?? Image from the PC screen included.
See if this thread helps.
https://forum.xda-developers.com/pi...ory-image-flashing-fails-t3715350/post7649698
I am going to have to find another way to look at that thread. My ipad is getting directed to some HTC desire article about and orange and black theme.
I have tried so far very unsuccessfully to wipe everything by booting to twrp via fastboot method. Then I used the dueces script to reflash everything completely (both partitions). No matter whether I flash complete stock or flash magisk and verizon radio files, it just hangs on the white google screen now and that is as far as I have gotten. Left it at home in this mode hoping it will clear.
JoeNeckbone said:
See if this thread helps.
https://forum.xda-developers.com/pi...ory-image-flashing-fails-t3715350/post7649698
Click to expand...
Click to collapse
That link is bad. Three devices are going to an htc desire theming page.
remove the -w from the update line in flash-all.
I have got the same problem since yesterday and search for a solution.
ctradio said:
That link is bad. Three devices are going to an htc desire theming page.
Click to expand...
Click to collapse
Not sure what happened with link, https://forum.xda-developers.com/pi...ry-image-flashing-fails-t3715350/post74751631
new adb dont help for me. I cannot flash slot a and change to b and got the error message that no slot is supported.
Still need help? Have you tried Skipsoft? Sure its not been updated but it might beable to help ..
Where fastboot flashing failed for me one time it got me out of a hole....
Otherwise i can try and remote and help... BTW its not finding the userdata file in the fastboot side... Something isnt right hence why it cant create the userdata file...
I try to boot with skipsoft to temp twrp but stuck on boot.img loading. the flashed twrp stuck on twrp logo and before I have changed from slot b to a inside twrp i can boot. now I cannot flash inside fast boot or delete anything.
Have you guys tried Deuces Bootloop Recovery & Flashing Script? I'd imagine you'd run into the same issues as the script runs a lot of the same fastboot commands...but it has worked wonders for many other users so......
I also might try re-downloading the factory image and comparing the Checksums to make sure you have a whole exact download just in case that's getting in the way of properly generating the userdata image. I'd also suggest making sure you have more than 4GB of space on your C drive; I was getting similar messages about not finding or not generating system images because they couldn't be fully extracted (temporarily) because I didn't have sufficient temp space on my C drive.
But I had encountered this issue before. It was either userdata or system_other partition. I did attempt to fastboot erase and fastboot format those partitions and other tweaks; even messed with changing the size of the partition (you might have better luck). What I seemed to conclude is that I was flashing the wrong month's Full Factory image; i.e. I was manually flashing system_other image from February when the whole phone was still on January. But I believe what I ended up doing was flashing a Full Factory image with the "-w" intact; therefore, if you still have access, you should copybackcup (via TWRP or adb pull) your internal storage (/sdcard and-or /data/media) and simply flash a Full Factory image with wipe option enabled...
Just some thoughts and suggestions...hope this helps...
I figured it out finally. Even though my ADB/Fastboot tools were a later creation date than the ones posted online, the ones online worked great. Even used the dueces script to ensure the junk is gone. Thanks all! Hate pesky gotchas like that!!

My Honor 7x BND-L21 is quite broken, need help

Hello, sorry for the generic title, but i'm quite the noob about android modding and stuff.
Anyway I wanted to root my phone, just to stream some music to my stereo system. How naive I was...
So I unlocked the bootloader, installed twrp with adb and SuperSU with twrp. Everything was fine and phone was rooted but my past naive me thought "well let's try a custom rom, why not". So I went forth and downloaded some stuff from getdroidtips and what I understood is that all I needed to do was to do a wipe, then install the zip file via twrp. I did that and didn't work. After that I realized I made a crucial mistake: I didn't backup my phone from twrp, so I was there with no OS, quite panicked and frustrated. So I tried some other roms, finally I got one that worked, this: https://forum.xda-developers.com/honor-7x/development/openkirin-aosp-8-0-honor-7x-t3746257
It works but it's barebones and on boot it shows a message: "There's an internal problem with your device. Contact your manifacturer for details.". So, I tried recovering from HiSuite, recovery mode etc but nothing worked, I reinstalled SuperSU in the new OS via twrp to see if that would help somehow, but no. in the end I had the even more naive thought that maybe unrooting would allow me to repair via hi suite or something, so I mindlessly selected "complete unroot" on the SuperSU app, and this was the second big mistake, the process somehow ****ed up the twrp install and it no longer works. Instead, if I try to enter twrp with power button + volume up button, it shows the regular "your phone has been unlocked" screen and then comes up for a split second a black screen with, on the bottom half of the screen the "no command" logo, under it some lines of code that I can't read. It suddenly disappears and sometimes enters in a bootloop showing this screen and powering off every time.
If I keep power button pressed bootloop ends and the phone boots "regularly" in the openkirin OS.
I tried reinstalling twrp the same way I did the first time. No error on adb but same no command behaviour
So what I got now is:
kind of bootlooping no command window
openkirin OS with internal problem message
fastboot and rescue mode
it seems to work on adb (everything is fine if I type adb devices)
not working HiSuite recovery
not working Huawei eRecovery
not working download mode (I guess? the power+volume up+volume down combination)
Maybe I should mention I also did a data wipe (?? the option on the right next to "advanced wipe" in the Wipe screen, if I remember correctly) in twrp before installing openkirin, it was suggested on a yt video about how to install openkirin. And that, at a stage I tried using MultiTool but it gives me an error: "exception during a web client request. Error#9", while at the bottom left it says "downloading AdbWinUsbApi.dll..."
Sorry for the general noobishness and the bad english that might be there.
So, any tips for bringing back the phone to normal? Or at least repair twrp??
Please help, I hate needing to throw this phone away just because I wanted to stream some music and because of a couple of stupid errors
Sorry for not answering earlier. It seems, between TWRP and stock recovery, you have messed up I think. When there is no proper recovery it become difficult to bring back the phone. You should try to put it in fastboot mode first, by powering off, pressing the volume lower button and connecting it to computer. Try installing TWRP and flash a custom rom other than openkirin from there if possible. Fastboot is the choice to go if recovery is messed up.
sdivk said:
Sorry for not answering earlier. It seems, between TWRP and stock recovery, you have messed up I think. When there is no proper recovery it become difficult to bring back the phone. You should try to put it in fastboot mode first, by powering off, pressing the volume lower button and connecting it to computer. Try installing TWRP and flash a custom rom other than openkirin from there if possible. Fastboot is the choice to go if recovery is messed up.
Click to expand...
Click to collapse
No worries, I managed to fix it anyway. Some things might be obvious but I'll share what I did nevertheless, in case some other newbie finds himself in a similar situation.
So there was seemingly no way of reinstalling twrp nor the stock recovery. But luck came my way and by almost random clicking I found out that, even if multitool closed as soon as I clicked the ok button in the error message, if I simply ignored the error, the program worked just fine (as I write this I installed another version and it gave no error message). So I played with it a bit and found out that it can flash twrp and it does not need a file from you, it already has a twrp version ready to install. I did that and it worked. It looks like the first twrp file I used didn't work anymore or was someway corrupted by the countless things I tried. So, with twrp working again I was able to backup the sloppy openkiring OS and try the unbrick tool. So I browsed the internet for a guide. Guides always mention as the first step for unbricking using the VENDOR.img file located inside a full stock rom. Problem is, 99% of the times they provide a rom without the needed file. So after some tries I found a good complete stock rom with the VENDOR.img here: drive.google.com/file/d/1tjHefytEWbpuV1f4YjX8AaSMzT6jr8TQ/view but I can't remember which forum/site I found it in.
I followed the guide which involves:
-extracting the UPDATE.APP file contained in the provided zip with huawei extractor tool into an X folder on your pc
-copying the VENDOR.img file contained in the X folder, on the root folder of the sd card
-backing up OS (if there's any) via twrp (I had something like 50 partitions, I guess that was messing things up a bit, but for safety I backed them all up)
-doing an advanced wipe from twrp selecting ALL checkboxes BESIDES the SDcard of course
-flashing the vendor.img file via twrp selecting the "Vendor" partition when prompted
-downloading the update_full_[your model]_hw_[your region].zip file, in my case update_full_BND-L21C_hw_eu.zip
-extracting the UPDATE.APP file contained in update_full_BND-L21C_hw_eu.zip with Huawei extractor tool in some other folder Y
-looking for a file named cust.img/CUST.img/version.img/other_name.img (I don't know which other names it can have, I was lucky and had a VERSION.img file in it)
-rename the cust.img/CUST.img/version.img/other_name.img to CUST.img and copy it from the Y folder to the X folder
-boot your phone into fastboot mode
-connect phone to multitool via usb and select the "unbrick" tab
-there, Multitool asks for a folder, give it the X folder. There are some checkmarks on the Multitool "unbrick" page. 4/5 of them should become checked after the folder input. In my case the first 4
-then, simply press the unbrick button
-wait and pray (it can look like it freezes while it's copying the system.img file but wait, it'll be fine)
So I did that and it worked flawlessly, the phone booted slowly but surely into EMUI 5.1 with Android 7.0 I think and everything was fine.
At that point I had a working OS and a working twrp but wanted to go back to the OS I was used to, Android 8.something so, I tried connecting the thing to HiSuite and it automatically asked if I wanted to update, not to 8.something but to 9.1. I thought "SURE I DO!" and updated flawlessly (I thought 9.1 hadn't even been released here in Italy).
When it booted I found out the new OS was working like an antivirusless xp pc: it didn't recognise the SIM, it would crash every 20 seconds, app downloads got stuck at 99%, if it felt like it, it rebooted, pc connection was not stable. Besides, the update being "official" and installed from "trusted" sources (HiSuite), it completely wiped twrp.
And that was the "OH ****, here we go again" moment: no twrp and worse-than-ever-working OS.
So because of the new EMUI version, I guess, Multitool kept recognizing the phone but stopped offering its own recovery, eRecovery, twrp files available for flashing. I was completely frustrated with all of this and decided to give up, but I made the last effort: I tried the relock function in multitool. So I provided the key, pressed relock, waited, prayed, and finally cheered. It worked like a charm. Phone runs now on EMUI 9.1 with locked bootloader without problems. Finally
So I guess in the end I payed 4 euros for a nice update, a painful and frustrating trip into android modding and a lesson : never do android modding!
no, just kidding, don't do it just if you are a newbie AND you don't want to risk to throw the phone in the grabage.
In all other cases consider it carefully
Oh, and also, God bless the MT Team and Russia altogether!! thanks
Quite an experience. All the best. ?
Lol sounds fun. I've bricked my Huawei Mate SE/Honor 7x more times than I can count. I'm just awaiting my 9.1. I want my GPU Turbo! Is it as good as it's supposed to be?

Categories

Resources