Setup Wizard frozen state - cannot restore from twrp backup - Android Q&A, Help & Troubleshooting

Hey Guys,
first off: I google this before and my own work arounds did not yield any success. So here we go:
Originally I froze the Cyanogenmod Setup Wizard, as it constantly "stoppped working" after booting as I reinstalled a previously working version of (open) Gapps. Well, it still dit not work and the Setup Wizard kept quitting on boot.
Hence I did a nandroid backup with TWRP and completely formatted my internal storage - reinstalled everything from TWRP and tried to restore my "data" backup from TWRP. But what happens then is that CM13 goes into bootloop (I see the booting animation 90% of the time, sometimes it goes into "optimizing app..." mode, only to reboot immediately after finishing the optimization).
I assume this problem occures because I froze the Setup Wizard in the backup, which is required for initializing the system after restoring?
What I've tried so far:
reinstalling/restoring/wiping the different partitions in all possible orders
if I reinstall everything without the backup (includes DATA only!) CM13 boots up just fine, but without my user data, settings etc..
Thus I tried to unfreeze the setup wizard, but a) via ADB does not work (device always offline or cannot connect in bootloop/recovery mode), b) there is no "packages-stoped.xml" in my /system folder of the backup for the package manager (hence i cannot change the disabled/enabled value of com.cyanogenmod.setupwizard), c) replacing the /system folder of my data-backup with an older version: this worked but all my settings were completely gone.
Finally I even tried to delete the package.xml and package.list in the /data/system folder (assuming the freez-value is stored there) and it would be rebuild. However, this did not help.
So I do know by now, that the bootloop problem resides within the /data/system folder of my backup. However, I cannot narrow it more down. Does anyone have more ideas how I might restore from the backup without running into a boot loop?
//edit
I've narrowed it down to the /data/system/users folder. I've found the package-restrictions.xml there. But this is apparently not the one file responsible for the bootloop (exchanged it a working backup). Sadly, all my settings are in there as well

does anyone know how to solve this issue? I can exclude the frozen state or other restrictiond (xprivacy) as causes for the crash of setup wizard. However, this leaves me clueless as to the reasons of the crashs.
Atm. I have to run android without the play google framework (gapps pico) in ordee to circumevent this issue.
p.s. I used open gapps. Flashing differen gapps packages made not difference. And Open Gapps worked before... (as many poeple seem to have problems caused by the gapps package)

Related

[Help] Serious app problem after ICS alpha flash

[Solved]
Hello XDA
(Please tell me if this is the wrong forum for help)
So, I was plodding along happily with CM7 on my Optimus One, then I decided to Nandroid backup and flash a CM9 alpha ROM here.
Once I wiped user data through amon_ra recovery, I flashed it and it worked fine (except I was on old baseband, so GSM didn't work).
When I decided to Nandroid back to what I had previously however, BAD THINGS HAPPENED.
All the user apps didn't show up in the app draw. All the widgets had a problem. The CM7 theme had vanished. Even the google apps had vanished.
I tried to reflash the Market but it didn't work and was still missing.
I was able to Nandroid back to the ICS alpha rom and it worked fine.
I then tried to restore the stock LG firmware through the official updater app. It refused to boot, getting stuck at the ANDROID logo.
I then had to manually flash Clockworkmod recovery through emergency mode. I then proceeded to Nandroid to my CM7 save. Which booted, but still had the same problems. (I flashed amon_ra from there so I could use my other backups)
All the normal functions work properly eg. Camera, USB, ADB, GSM, 3G, Data, web browsing.
I also noted that everything is sitting normally in the data partition when looking through ADB, but not through File Manager, is that normal?
Help, please?
Thanks x 1000000 in advance
Titanium Backup?
Can't get it installed.
Well, it is installed, it's just unusable.
I can't get the Market so I can't try and install it.
And attempting to install it's APK with File Manager results in "Application not installed"
Okay, I seem to have figured it out, while I had this problem, my dalvik-cache was inaccessible as a folder. I deleted it in ADB and recreated it.
It was because when I wiped user data to flash ICS, it also wiped the SD-EXT partition, which my dlavik-cache was on, that was not backed up.

Non-booting SII with CM 7.1

As of yesterday, my CM7.1 phone won't boot - it gets stuck at the "rotating arrow" blue Android for ever. It's a Samsung Galaxy S II GT-9100.
I have been running CM 7.1.0 for several happy months now, and haven't tried to install or upgrade my ROM. The last action I took before this happened is that I made a full system backup (using CWM 5.0.2.6).
That backup is present on the internal memory. I can boot into recovery, mount drives and access devices using adb shell. So I do have an opportunity to fix what's broken, if I can work out what it is.
Given that the last thing I did was a backup, I checked to see if any of the partitions were full, but none are. (None is more than 42% full according to df; although strangely, df does not show any partition mounted on /.) I tried making another backup, watching carefully - that worked fine. I tried restoring the first backup - no improvement.
I've also tried wiping everything Recovery allows me to that's non data-destructive - cache, Dalvik cache etc. It hasn't helped.
How do I work out what's wrong? Is there a boot log file anywhere which might give me a clue as to what is wrong? I've searched for "*.log" but can't find anything obvious.
I don't want to do a factory wipe if I can avoid it, because obviously that will lose all my data. If I do a factory wipe and restore just the data partition, does that put me pretty much back where I was? If so, how do I restore just the data partition? The Restore option in CWM Recovery seems to do full backups only, and only from a particular directory.
The original CM and Google Apps zips are still on the internal SD (same versions as are currently not working). Would it be worth trying to reinstall those, without wiping? Or would that be data-destructive?
Any other ideas?
Thanks!
Gerv
SOLVED - remove 0-byte data/system/profiles.xml
I tried doing a full factory reset from Recovery. This got the phone booting again, but without any of my data . Fortunately, ClockWorkMod has a "partial backup restore" function. I restored the data partition... and the phone stopped booting again.
So this is progress. I now had some idea where the problem lay. I finally found it using a laborious 5-minutes-per-cycle manual bisection technique. Delete half the stuff on the data partition, reboot, if it still fails, delete more, reboot... once you get it to boot, restore the data partition, narrow it down further. Once you find a top-level directory, repeat the process inside it.
The result: the existence of a single 0-byte file stopped my phone from booting entirely. The file was: data/system/profiles.xml.
I have no idea what that file does (there are only a few references online), how a 0-byte version of it got created, or why having it existent but empty breaks things but if it's not present everything works fine. I have no idea if anyone else will ever see this problem, or if they will ever find this forum post. But still, here's my Wisdom of the Ancients (google the phrase for the relevant XKCD comic).

[Q] ROM Manager will not load my back-ups

Hi everyone,
I am currently having a problem with ROM manager (or me). Recently I was in the process of of using the auto-update feature of cm 10 and after the reboot from the root menu the phone would periodically restart without warning when using apllications, none of which were specific. I then attempted to roll back to previous version of CM 10.1.3 from 10.2-20131102. After rolling the ROM back the phone boot screen would indefinitely cycle, I then cleared the cache, both partition and Dalvik in attempt to reload. Here is where the fun part happens, after all of which the phone (Samsung GS3 Sprint.) would still have the same symptom, i attempted to reload a back-up from ROM Manager but it does not register on the list(there are none available) however the back-up data is stil stored on my sd card and I can still see the them when browsing. I have attempted to go back through the boot menu and manually installing the back-ups but to no avail. I would really like to have my back-up restored so I don't have to reload about 100+ non market apps.
Any help would be appreciated,
Steve.
P.S. Also it sucks that it had deleted GAPPS, so the google market will not load. I however had a apk downloaded of ROM manager (not premium/ and the latest CWM) No matter what I have tried I have been unable to reload my back-up

[HELP] Unable to install apps from ".apk" files

[HELP] Unable to install apps from ".apk" files
Edit: My phone is running AOSParadox.
This is what happened. I hope you read this fully.
(But still, you can skip to point no 5 , if this? looks long/big ? And if you want to know the "actual" problem, skip to point no 10.)
1)I downloaded new "phone" app apk and installed.
2)new app got installed as a separate app as a result of which there were 2 'phone' apps (one of which is a system app)
3)To make the newer 'phone' app as system app, I deleted the older one(yes, I had rooted the ROM) , and using ES file explorer, I copied the newer 'phone' apk to /system/priv-app & changed the permission to rw- r-- r-- . Rebooted.
4)After this, I could make phone calls...BUT, after dialing a number, the dialer interface ( the screen where the controls like disconnecting a call, loud speaker toggle, mute toggle exist) was simply not appearing. Hence, I could not do anything but listen to the calls that I dial.
5)So, I uninstalled this app, and reflashed the whole ROM and rebooted to system.
6)'Google play service stopped' kept on popping up. So,flashed open gapps nano.
7)now, 'setup wizard stopped' started to pop up.
8)Hence I deleted setupwizard.apk from /system/priv-app in twrp file manager & rebooted, And the pop up stopped.
9) But, many other app crashing messages started to pop up.( like Google+, Google play games, messenger(Google) ie, all the 'Google' apps that are NOT part of Gapps).So, I wiped ONLY system and flashed the ROM and Gapps. After this also, 'setup wizard stopped' started to pop up. So, I repeated step 8.
10) Now, I cannot install ANY "apk". If I try to install , it says that there is "parsing error". But, I can install an app if I download it DIRECTLY from play store.
Help me to install the '.apk' file.
Edit: do NOT suggest me to perform a full wipe/clean install of the ROM. please.
Thanks everyone!
try this, take a nandroid of only your data partition (without compression) , change your file systems on /data & /cache (if its ext4, then okay, but if its f2fs then change to ext4) , the do a clean flash, boot into the rom, then reboot back to recovery, wipe ONLY DATA and restore the nandroid backup, wipe cache & dalvik and reboot.
see is it helps
Also, fix the title of this thread
Joshwin Aranha said:
try this, take a nandroid of only your data partition (without compression) , change your file systems on /data & /cache (if its ext4, then okay, but if its f2fs then change to ext4) , the do a clean flash, boot into the rom, then reboot back to recovery, wipe ONLY DATA and restore the nandroid backup, wipe cache & dalvik and reboot.
see is it helps
Also, fix the title of this thread
Click to expand...
Click to collapse
About fixing the title, how can I do it?
Edit: Do you know what is the problem?
In the OP , I have written not to suggest a clean install/full wipe(which you still did), because, I want to know what is that I did wrong in the process.
Thank you anyway.
sankarshan said:
About fixing the title, how can I do it?
Edit: Do you know what is the problem?
In the OP , I have written not to suggest a clean install/full wipe(which you still did), because, I want to know what is that I did wrong in the process.
Thank you anyway.
Click to expand...
Click to collapse
best i can say is that you tried messing around symlinked system apps, the gapps problem confirms that, maybe Googlepackage installer got screwed up, try installing gapps again without any wipes, if that doesnt work, maybe a full wipe is the only option.
Joshwin Aranha said:
best i can say is that you tried messing around symlinked system apps, the gapps problem confirms that, maybe Googlepackage installer got screwed up, try installing gapps again without any wipes, if that doesnt work, maybe a full wipe is the only option.
Click to expand...
Click to collapse
I re-flashed the Gapps without wiping anything. After booting into the system, after unlocking, 'unfortunately setup wizard has stopped working ' kept on popping up.
Why?
Anyway, I think I have to do clean install. Just curious about what's happening.

Apps disappearing after reboot [KATE][LOS14.1]

First my setup: I've a RN3 SE (Kate) and I installed de developer MIUI, did an unofficial unlock, flashed twrp and installed lineageos (first official version), root package and pico gapps. That's it. I used Titanium backup to restore some of my apps data, but I installed every apk via the play store.
I started to notice that some apps were disappearing after a reboot. Everything I'll lose between 5-10 apps, mostly the apps that were updated very recently. After installing the missing apps back, I didn't loose anything, all settings of the app are intact. I've no idea if this happens because of the Google Backup and Restore function of Android itself, or because that app data never were missing.
I've installed every update of LineageOS, but no luck, every time it'll lose some apps. Even some apps stop working after a reboot until I reinstall them. It's getting annoying, therefore I start this thread.
Anyone faced this problem and has any idea what's happening?
Bump
Try a fresh install
I'll try that in the coming days, but this is already the second clean install i did. Both with this issue.
Use this app and check your phone:
https://play.google.com/store/apps/details?id=net.vinagre.android.emmc_check&hl=en
If there are errors after a full scan, you have a problem with your flash memory.
Did you wipe and format internal storage through TWRP before installing LOS?
I think i just think that this is the begining symptoms of the emmc_brick bug i recommend u to check for any disk errors.
Thanks for the tips, luckily the test came out just fine ("Congratulations. Test Passed. 159s. 31268536320 bytes (29.1GB) 190.2MB/s"). No emmc errors and I didn't have any problems on 6.0.1, it started on 7.1.1. I think it has to do with the new ART and JIT compilers, as it only happens with apps that got updated recently.
Before installing LOS, I did a wipe of system, cache and data. I don't think I did a complete format of internal storage as well.

Categories

Resources