Accidentally deleted G Play store - Moto G7 Questions & Answers

So I accidentally deleted the Play Store after rooting my phone, and factory reset doesn't bring it back. I got an apk and installed it, but it wouldn't open past loading for a second and then it would tell me every second that "unfortunately Play store has crashed". I managed to get play store to STAY open by deleting the cache for the play service, play store and play store framework, but then it threw a DF-DFERH-01 error at me (deleting the play store cache again didn't resolve that issue either.) I'm at wits end, I'll do anything to get it back. I'm considering reflashing my moto to FULL stock, not just boot.img stock, but I don't know if that'll help it at this point or if it'll just make it worse.
edit: well, I answered my own question. the stock firmware for my phone, the RETUS firmware, has two XML files in the zip. the flashfile.xml has a list of what to do in fastboot to reflash your system to full stock, but the XML can't be run like a batch file so I set to parsing through it manually and doing the install.
in my specific case, where my phone's bootloader was unlocked and I could flash custom stuff, the process was pretty simple.
you reboot into bootloader, fastboot all of what the XML tells you to fastboot, and reboot into the os. it should be fixed. I think I'll try to put up a more detailed summary of what to do in a more appropriate board.

Related

4.2.1 to 4.2.2 rooted stock rom upgrade nightmare

Hi there, i've got a problem updating, like many it seems and I'm pretty new to rooting etc. so please bear with me.
I have 4.2.1 stock rom, rooted and with twrp v2.4.1.0 recovery. I was originally rooted with CWM recovery (using n7 toolkit) but I have flashed twrp to try and update with no luck either.
Anyway I get an error (see attachment image) via ota or via downloading the zip and copying it to the n7 then browsing for it in recovery and installing it that way. I'm basically wondering if there's a quick fix to this problem and can you please help me with it even if there isnt a quick fix. I really don't want to reset my device and have to set everything back up again.
Also, i dont know if this is related, probably is, I cant boot into recovery using the power off hold volume down trick, getting into fastboot mode and then selecting recovery as it just brings up the google logo forever and I have to reset the tablet due to it doing nothing. The only way I can get into recovery is to clear data from google services framework and do an ota update (1970 thing) and that reboots into recovery. I then get the error 7 message in attached photo.
Plz help?!?!
Thanks in advance
Here's what to do.
First, look at those errors in the image you posted very very carefully.
2nd, use the search function on this forum: try the terms "OTA debuggerd" (without the quotes)
3rd, read those posts.
4th, decide if you want the hassle. You are not obligated to perform an upgrade.
5th, Download from Google the 4.2.2 Factory images and extract the "boot.img" and "system.img" files
(make sure you understand that nakasi == grouper == WiFi N7, and nakasig == tilapia == 3G N7)
Hint: search on Google for "Google Nexus Factory Images"
finally
fastboot flash boot name-of-boot-image-file.img
fastboot flash system name-of-system-image-file.img
This will remove root from the ROM, so you will need to flash a SuperSU or Superuser root kit.
Doing things this way is a band-aid. You need to learn how to make full backups & perform full restores; how to flash individual partitions - using both fastboot & the custom recovery; know exactly what the roles of each partition are; know the difference between a kernel, ramdisk, and boot image; understand how to retrieve a small number of files from prior backups; and to know where the installer scripts are located inside flashable .zip files & be able to read them so you can understand what they do.
Finally, you should understand what apps like Titanium Backup and Carbon are capable of, and how backup of System app&data has different consequences upon restore than similar operations for user-installed apps.
OK - get started.

[Q] XT1768 getting September Security Update

Hello all,
Been a LONG while since I've actively played around with rooting and unlocking an android device. I finally "upgraded" from my very aged Galaxy S4 to the Moto E4 XT1768. I have successfully unlocked the bootloader, got TWRP installed, rooted with Magisk, and gotten Xposed installed with my favorite modules.
This morning, I got a prompt that a new security update is available, and like a noob, I tried to take the update. This resulted in me getting stuck in a loop where the phone only wanted to boot into TWRP. I got that fixed thanks to XDA, got the pending and failing update completely cleared and am booted back into the device normally, and have frozen the moto update service.... but now...
Is there a way without completely flashing back to stock rom? I know how to take titanium or nand/twrp backups, but I feel like this would still be hours of work to go back to stock, flash, re-root restore all apps blah blah. what are the chances of there being a dirty-flashable zip put out at this point?
The way I normally do these type of upgrades is to download the firmware (from here), use fastboot commands to wipe (erase) and flash the needed partitions (everything but data and recovery), boot to TWRP - flash the no-verity-opt-encrypt.zip & root, and then reboot to system - done. It's easy enough for me, but I know some prefer to being able to use a flashable zip in TWRP.
Also, I have to ask - did you get your e4 cheap? It's was replaced by the e5, some other phones seem to be getting replaced like the G6 series (it's gone on clearance at some places), so they can be had cheap.
bast525 said:
Hello all,
Been a LONG while since I've actively played around with rooting and unlocking an android device. I finally "upgraded" from my very aged Galaxy S4 to the Moto E4 XT1768. I have successfully unlocked the bootloader, got TWRP installed, rooted with Magisk, and gotten Xposed installed with my favorite modules.
This morning, I got a prompt that a new security update is available, and like a noob, I tried to take the update. This resulted in me getting stuck in a loop where the phone only wanted to boot into TWRP. I got that fixed thanks to XDA, got the pending and failing update completely cleared and am booted back into the device normally, and have frozen the moto update service.... but now...
Is there a way without completely flashing back to stock rom? I know how to take titanium or nand/twrp backups, but I feel like this would still be hours of work to go back to stock, flash, re-root restore all apps blah blah. what are the chances of there being a dirty-flashable zip put out at this point?
Click to expand...
Click to collapse
Flashing back to stock and taking the updates is really the best way. Unless you can find a complete firmware package of the new update which of course takes back to stock as well. Really the only way to do it. @MotoJunkie01 makes some TWRP flashable stock roms. And he also creates the partition updater which updates your oem partition and other important things that can't be done in the Twrp flashable stock ROM.
madbat99 said:
Flashing back to stock and taking me updates is really the best way. Unless you can find a complete firmware package of the new update which of course takes back to stock as well. Really the only way to do it. @MotoJunkie01 makes some TWRP flashable stock roms. And he also creates the partition updater which updates your oem partition and other important things that can't be done in the Twrp flashable stock ROM.
Click to expand...
Click to collapse
Speaking of that, @ALI12 just posted a stock firmware package for the NCQS26.69-64-10 build. He gave me approval to use it to update my firmware thread to the latest build, so I'll be updating that OP shortly.
MotoJunkie01 said:
Speaking of that, @ALI12 just posted a stock firmware package for the NCQS26.69-64-10 build. He gave me approval to use it to update my firmware thread to the latest build, so I'll be updating that OP shortly.
Click to expand...
Click to collapse
This will be for the XT1766, correct? Or will same build work for XT1768 (me thinks not)?
So what would the easiest/quickest way be to get updated with all of my apps and data intact? Twrp backup of data partition? Or would there be any way to do this without wiping data at all?
bast525 said:
So what would the easiest/quickest way be to get updated with all of my apps and data intact? Twrp backup of data partition? Or would there be any way to do this without wiping data at all?
Click to expand...
Click to collapse
If you're going to slash a firmware package you'll want to wipe everything. Especially data. Make a backup of your data first of course. After you flash TWR P you can try restoring your data and see if everything comes back. but everything in your downloads folder and all of that will be gone once you format data to remove encryption again.

Dirac control service has stopped

Hi everyone! I tried following this procedure https://forum.xda-developers.com/mi-a1/how-to/how-to-modify-ear-speaker-volume-mi-a1-t3779866 to increase the volume of my Mi A1 (already rooted of course) and when I rebooted I continuosly get a "Dirac control service has stopped working" and no audio in calls or audio or anything.
How can I fix this?? Please help!
Edit: already tried to clear app data and reboot, no success.
Edit 2: tried restoring to factory setting without locking bootloader, but still nothing.
Edit 3: via Titanium Backup i have uninstalled the Dirac service, but still No audio.
Ignore this.
Why should they ignore my help request??
I guess you screwed up the file permissions while editing xml. Reflash the system image from fastboot, it should be enough to get it running again. Next time I'd suggest using Magisk for such actions (there even might be a module for what you want to achieve already available).
Thanks! Can you Point me to a link for what you just suggested? Oh, and audio isn't working with Bluetooth neither. I've tried with the car.
I suppose that you are on the latest ROM, download full package from here http://en.miui.com/download-333.html
Unpack it and either reflash whole ROM (do not forget to remove "oem lock" from the script file, especially if you do not want to lose your data), or just flash system.img manually (fastboot flash system_X system.img - replace X with your current active partition).
This guide might come in handy https://forum.xda-developers.com/mi-a1/how-to/mi-a1-monthly-updates-t3750419
What if i do this procedure?
https://www.google.com/amp/s/forum....cial-fastboot-image-n2g47h-7-12-t3728929/amp/
It should work, right? It will wipe my data, but I'm good with it.
Edit: it worked.

Bricked after TWRP crashing when wiping data to so I could restore a previous backup

Hi, so here's the background. I got my Moto X Pure Edition back when Motorola was selling it on their website, I used MotoMaker and everything. I had the phone for a few months and I decided to unlock the bootloader, with success. Afterwards, I couldn't get the 6.0 update, my phone would restart with failing to update after downloading the OTA. I now know why that was happening, but didn't know then.
Two Days Ago: I had my Moto XPE sitting in a drawer and wanted to try to rescue it. I found the stock factory image for Marshmallow on Moto's dev website and found a guide to restore it back to factory, still with an unlocked bootloader, but that was fine. I knew 7.0 came out for it and found the OTA zip online and attempted to flash it with the stock recovery, it didn't work and I know why. It had something to do with the bootloader version or something.
Yesterday: I did some research and I ended up flashing TWRP twrp-3.2.3-1-clark.img for my recovery. I've had previous experience with TWRP and thought it would be a good fit. After doing that, I did some looking around for ROMs that would get me up to 7.0. I found one called crDroid and it worked very well. It was very smooth. I went to bed last night with that on the phone and made a backup of it.
Today: While on my way to work this morning, I looked up Oreo roms, and I found an unofficial version of LineageOS and flashed that. Everything went well, it booted up fine but it was very slow. I powered off the phone (to save battery) for a few hours and decided that I wanted to go back to the previous ROM, crDroid. Before I restored, I wanted to wipe everything. When I went to wipe, TWRP ended up crashing. I had looked away from my phone before it crashed, so I thought it just rebooted. I went to restore from my backup and it crashed again. I did some Googling and tried different version of TWRP for the XPE, but every I try to wipe or restore or flash, it keeps crashing. One post said to "Fix Contexts", and now when I go to do a regular wipe (not advanced), the phone vibrates for about 7 seconds and then crashes TWRP.
Can anything be done to save the phone, or am I dead in the water here? At what point did I go wrong? My main device is a OP6T so I'm not too worried if this can't be resurrected, but I would like to try. I know this was a long post, but I wanted to be as detailed as possible. Thanks in advance for the help and thanks for reading.
You can restore it to stock through fastboot, I made a post with a mfastboot folder and it has a command prompt in the folder and you can launch that and should work if you have the xt1575, or try the custom recovery from the twrp website or the nuclearom post on here
LGAGaming said:
You can restore it to stock through fastboot, I made a post with a mfastboot folder and it has a command prompt in the folder and you can launch that and should work if you have the xt1575, or try the custom recovery from the twrp website or the nuclearom post on here
Click to expand...
Click to collapse
I did that after I wrote this post and I forgot to update that I did that. Thanks!
Side note: I'm new to the forums, where do I find the threads that I'm subscribed to? I've looked for a "subscribed" or "my subscriptions" link, but haven't had luck.

Is it possible downgrade SM-T520?

I'd mistakenly downloaded and flashed "T520UEUAOD1_T520XARAOD1_HOME.tar.md5" which is Chinese and no Google apps or anything, then I tried falshing "T520UEUAOD1_T520XARAOD1_HOME.tar" which is US I assume, but I fail at system.img everytime on Odin, is there a way I can flash it? Because without it, I can't even install LineageOS into this Tab as system framework force closing at boot along Google services Any help is appreciated
Copy paste error? Md5 is a hashing algorithm, which can be used to verify the integrity of another file. I think you have the US file.
Make sure you have factory reset, and that you are not installing gapps over a stock ROM.

Categories

Resources