Apps optimized at every reboot - Xperia Z3 Compact General

Since Lollipop 5.1, Android optimize the apps at every reboot (359 apps), it takes around 20 minutes each time. My phone is encrypted and it does that with or without SD card. Did anyone notice a similar behavior?
1) Tried to remove SD
2) Tried to clear Dalvik
No changes.

difto said:
Since Lollipop 5.1, Android optimize the apps at every reboot (359 apps), it takes around 20 minutes each time. My phone is encrypted and it does that with or without SD card. Did anyone notice a similar behavior?
1) Tried to remove SD
2) Tried to clear Dalvik
No changes.
Click to expand...
Click to collapse
On my phone a window shows up on a reboot that Android is optimizing apps, but it takes 3 sec. Your seems like you have just upgraded Android OS and it prepares apps for that. It could be that update didn't really go well. I have never encrypted my phone, so that could be something... If nothing helps, factory reset could work, but make sure that your sd card is decrypted before reset(if you have it encrypted too)

Same here, thought that xposed is the cause but it seems that other have this issue without root.
Sent from my D5833 using XDA Free mobile app

smardu said:
Same here, thought that xposed is the cause but it seems that other have this issue without root.
Sent from my D5833 using XDA Free mobile app
Click to expand...
Click to collapse
I did not have xposed when it began... I have root though

Charkatak said:
On my phone a window shows up on a reboot that Android is optimizing apps, but it takes 3 sec. Your seems like you have just upgraded Android OS and it prepares apps for that. It could be that update didn't really go well. I have never encrypted my phone, so that could be something... If nothing helps, factory reset could work, but make sure that your sd card is decrypted before reset(if you have it encrypted too)
Click to expand...
Click to collapse
The issue with encryption is that the recovery cannot access the data partition and so cannot fix file permissions which could be an explanation for the issue.
Though rarely it only optimize 1 app usually it's all of them...

Slightly different (and worse) here, phone encrypted and everytime I reboot it hangs, reboots itself and then optimizes each and every app.. rebooting has become an agony

I had root in 5.0.2 then went to 5.1.1 but had to use flashtool as the over the air update kept failing (because I had root? I undid root and still had the same problem).
So when 5.1.1 loaded I had the same issue you are having, and I found I couldn't get root so I flashed it again 5.1.1, still the apps optimising every boot.
So flashed it to 5.0.2 again, took root again. Rebooted and the apps still had to optimise again (far less apps though, like 170 compared to 350 on 5.1.1).
Do I flashed it back to 5.1.1 and now it seems to all work fine.
No idea what the issue was.
BTW I used the UK firmware for both versions.

Pyres said:
Slightly different (and worse) here, phone encrypted and everytime I reboot it hangs, reboots itself and then optimizes each and every app.. rebooting has become an agony
Click to expand...
Click to collapse
I already have this issue once. I don't reboot often, but I doesn't happen at each reboot...

Pyres said:
Slightly different (and worse) here, phone encrypted and everytime I reboot it hangs, reboots itself and then optimizes each and every app.. rebooting has become an agony
Click to expand...
Click to collapse
Actually this is the same as me, tries to boot ~2 min then reboot and optimize. I will try to reflash the zip pre-rooted.

I have had the same. I was on 5.0.2 with root. Updated to 5.1.1 with flashtool (as OTA no possible due to root). Had extensive battery drain and flashed back to 5.0.2 and then this boot problem. Only when I did a factory reset everything was fine again. I suppose clearing the cache/dalvik cache is not sufficient. Better to save all apps and data (Titanium backup for example), reset the phone and apply the update. Root with pre-rooted 5.1.1, then apply your backup ...
Brgds
omg

omg1010 said:
I have had the same. I was on 5.0.2 with root. Updated to 5.1.1 with flashtool (as OTA no possible due to root). Had extensive battery drain and flashed back to 5.0.2 and then this boot problem. Only when I did a factory reset everything was fine again. I suppose clearing the cache/dalvik cache is not sufficient. Better to save all apps and data (Titanium backup for example), reset the phone and apply the update. Root with pre-rooted 5.1.1, then apply your backup ...
Brgds
omg
Click to expand...
Click to collapse
That's what I did, solved the problem.

I've had this problem for quite a while. my phone is stock, unrooted. I have encryption enabled (required to get work email through Mobile Iron). I observe that this issue (double boot w/ optimize apps) starts after a software update. the only way I have resolved this is by wiping the phone completely and rebuilding my apps and customizations which is quite time-consuming. is there anyway to resolve this without wiping? And for the 1st time, the issue came up just last week but this time there was no software update that preceeded it. is this really just a fact of life when using Android with encryption enabled or is this just an Xperia-specific issue?

I have the same issue on my work issues Xperia Z3. 20 minutes per reboot. It's brutal. Not a good look for Android.

Related

[Q] Nexus 4 4.3 update won't get past unlock screen without crashing

I had the update notification for 4.3 today and went to install it. Everything appeared fine. However, when the phone rebooted and showed my usual screen unlock, I swiped it in and then the phone crashes back to the X - so android is loading and I can see my wallpaper and the time and everything as usual, but screen unlock reboots the phone. The only other problem that I've noticed is that the forward camera doesn't work to use face recognition to get the screen to unlock - the screen is always showing as black when normally my face is there.
Any tips for a fix? I'd rather not wipe all my data as I'm on a slowish bandwidth connection for the next couple of weeks.
kabads said:
I had the update notification for 4.3 today and went to install it. Everything appeared fine. However, when the phone rebooted and showed my usual screen unlock, I swiped it in and then the phone crashes back to the X - so android is loading and I can see my wallpaper and the time and everything as usual, but screen unlock reboots the phone. The only other problem that I've noticed is that the forward camera doesn't work to use face recognition to get the screen to unlock - the screen is always showing as black when normally my face is there.
Any tips for a fix? I'd rather not wipe all my data as I'm on a slowish bandwidth connection for the next couple of weeks.
Click to expand...
Click to collapse
Do you have an unlocked bootloader?
abaaaabbbb63 said:
Do you have an unlocked bootloader?
Click to expand...
Click to collapse
Yes - why? Can I download the data somehow using adb? What difference does this make?
Got the same problem on my Nexus 4, updated via normal Ota, unlocked bootloader and rooted.
Any solutions apart from a complete factory reset?
Sent from my GT-P3110 using xda app-developers app
kabads said:
Yes - why? Can I download the data somehow using adb? What difference does this make?
Click to expand...
Click to collapse
Well, you could make a nandroid backup. That way, you will have your data saved. After that, install a stock rooted 4.3 ROM and only restore data from recovery.
Or, Adb could work too. It would backup your data to your PC, and you could restore after you reinstalled the ROM.
I don't really know why, but many updates to 4.3 failed. That's why a data wipe is always recommended.
I always use Titanium Backup. It's very simple and easy to use.
I've used Nandroid before - not sure why I didn't think of it - thanks.
kabads said:
Any tips for a fix? I'd rather not wipe all my data as I'm on a slowish bandwidth connection for the next couple of weeks.
Click to expand...
Click to collapse
I had this exact same problam and was able to fix it without losing data, settings or installed apps.
My Solution:
Download factory 4.3 image and extract system.img. You need to untar the gzipped file and then unzip the included zip file to get system.img
Flash only the system.img and reboot. (fastboot flash system system.img)
When the phone is rebooted, root will be gone, but all installed user apps, data and settings should be preserved.
Background:
After the 4.3 OTA, my phone would reach the lock screen and receive notifications. Sometimes a call would make it through and I would be able to answer, but most of the time calls went straight to voicemail. Callmaster might have contributed to this behavior.
However, if I attempted to enter a pattern on the lock screen, the phone would immediately reboot.
I was rooted using SuperSU prior to the OTA. My Nexus was also affected by the issue were attempting to access the 4.2.2 Security Settings resulted in an error. I never got around to fixing that issue, but suspected that the 4.3 and 4.2.2 problem were related.
solution that worked for me: keep failing pattern until prompted to type in google account details to login, it then worked for me after that, no longer rebooting when unlocking

wipe cashe and dalvik

Hi all,
I think I might have a problem, after I flashed xposed framework on my nexus 6p and got the modules that I wanted up and running no problem, during 4 or 5 days all worked fine but had constant reboots,
I decided to go back before I flashed xposed with twrp and restored a full backup, it failed to restore all selected at the same time, so did one a time and restored but phone would just not boot, so
Having data partition restored and then dirty flash stock without wipe data I was able to get my phone back and running, and re-root fine and flashed twrp no problems
Went to twrp to wipe cashe and dalvik but it just takes like 2 seconds optimizing apps and boots to desktop right up, now my question is
Shouldn't it take a very long time to optimize all my apps after the wipe????
all seems to be working fine but kind of bothers me that I might have something in not working right that might develop into something worst in the future
It is at this point I usually full-wipe and reflash. =) Setting things up again can suck, but it's better than wondering what unknown thing is broken and will rear it's ugly head later.
Elnrik said:
It is at this point I usually full-wipe and reflash. =) Setting things up again can suck, but it's better than wondering what unknown thing is broken and will rear it's ugly head later.
Click to expand...
Click to collapse
full wipe and reflash, want to avoid that, any other commands perhaps?
OK so I did a full re flash, back to stock, re root, installed my apps, used for a while, log in on all, went to twrp to test wipe cache and dalvik, same thing, optimizing apps at first boot took like one second and boot to desktop, is this normal or should take longer to optimize all apps?? Anyone??
is my understanding that only apps that havent already been optimized will upon boot... (new installs from like a zip)
chaco81 said:
is my understanding that only apps that havent already been optimized will upon boot... (new installs from like a zip)
Click to expand...
Click to collapse
thats what i am thinking too now that you mention it, like when I installed xposed initially and did whipe cache/dalvik thing after it took long time to boot because was on something like optimizing app 3 out 78, same thing I have seen on my old nexus 5 when dirty flash a new firmware, but not sure if I have something broken or is normal

Rooted, now getting crashes and app re-inits

ok so rooted my s7 and that went well but then i upgraded portions to have the volte enabled which worked fine but i keep getting app crashes but only when i have an app try to grab a file from storage (pic upload, or whatever else upload) which i think is from the apps re-initing after losing focus (if i go back to an app after moving out of it but not closing it, it doesnt go to where i left off but re-opens the app from the start)
so i've cleared both cache partition and dalvik and that helped the laggy-ness but apps still crash at the same points.
for the most part apps perform normally other than that (no random app crashes for no reason or with no interaction)
any ideas?
currently on the pe1 firmware after wiping; i had pg1 baseband and modem firmwares installed to use the voice over LTE, now all PE1
Boot into recovery mode and clear your cache partition.
This root method sucks as well. Don't expect anything great out of it.
jedi38 said:
Boot into recovery mode and clear your cache partition.
Click to expand...
Click to collapse
as i said already did that...
JAYNO20 said:
This root method sucks as well. Don't expect anything great out of it.
Click to expand...
Click to collapse
i'm not talking about the root process that actually worked flawlessly, this is only about the crashing apps and re-inits i could do a full wipe and re store apps selectively but that is a 5+ hour job due to all the apps and configuration i have to re-do so it's preferred if i can get a fix not involving a full wipe

Nexus 10 (manta), Lineage OS 13, bootloop with Nova Launcher

Hi,
A few days ago I experienced a boot loop on my Nexus 10 with Lineage OS 13, build 20170909.
I broke it down to a recent update of Nova Launcher - going back to an older version and preventing Google Play automatic updates fixed it for me.
There are a number of reports of the same symptom pointing to Nova Google Companion, TeslaUnread, IFTTT, and Action Launcher.
I don't think this is an issue in those apps, but rather caused in the OS - an App should not be able to bring down the OS to a reboot (and even worse, due to the automatic restart of the launcher, causing a reboot loop).
any ideas of a fix in the OS? something else to prevent this from happening again?
Regards
sthones
I confirm the same. Constant bootloop with Nova Launcher
I am also experiencing this on an older version of CM13. Clearing cache does not work. Any quick fix possible via recovery?
stephendt0 said:
I am also experiencing this on an older version of CM13. Clearing cache does not work. Any quick fix possible via recovery?
Click to expand...
Click to collapse
I had the same problem with a Galaxy S3 running OctOS (CM13 based Android 6.0.1). The Nova Launcher update caused my phone to crash and reboot as soon as it was unlocked.
I was able to disable Nova in recovery (TWRP) using the built-in TWRP file manager. navigate to /data/app/com.teslacoilsw.launcher/ and delete base.apk. This will keep Nova from loading on startup but will not delete your data. My phone worked fine after that, albeit without Nova.
Thanks a lot, removing base.apk stopped the reboot loop.
My device has just started a bootloop too, but I don't even have Nova installed on it (though I do on my phone), just the stock launcher in CM / LineageOS.
I reset it to factory defaults and then it boots, but when it restores my old apps it starts looping again, so one of them is the cause. I didn't learn anything from the log via adb.
Any ideas?
I discovered it was one of my apps causing this. I removed it and it boots ok. https://play.google.com/store/apps/details?id=au.com.realestate.app&hl=en
hmoffatt said:
I discovered it was one of my apps causing this. I removed it and it boots ok.
Click to expand...
Click to collapse
Thanks for the hint, it was a real estate app from germany (immoscout24) which caused the problem at my device. Deleted the base.apk and everything works fine again.
Happening to me now, ffs im on the latest nightly and thats not fixed it.
TheRealSmurf said:
Thanks for the hint, it was a real estate app from germany (immoscout24) which caused the problem at my device. Deleted the base.apk and everything works fine again.
Click to expand...
Click to collapse
Same here.
daseddy said:
Same here.
Click to expand...
Click to collapse
Mine just started boot looping yesterday, but I hadn't installed any new apps in a while, and I have automatic app updating turned off (I also don't have any real estate apps installed, German or otherwise). Any hints on how to track down the culprit? Is there a boot log to look at?
Thanks!
Folks, there is a defect open in the official lineage bug tracking system. please add your comments there - maybe this needs some more support to get looked at:
https://jira.lineageos.org/browse/BUGBASH-1075
Same here. Started happening after it updated my apps yesterday. Removed nova launcher and all other Teslacoil software, problem remains. Can only start the tablet in Safe mode.
Seeing this on my device as well, except I am not able to remove the base.apk file because the app I installed somehow corrupted my bootloader such that I cannot get into recovery mode.
The culprit app? LinkedIn. Automatic app updates were turned off, and just before the bootloop started, the last thing I did was install that app. It finished, it rebooted, and hasn't stopped rebooting since.
When I put it into bootloader mode, it stops the continual rebooting and displays the "open panel" robot and "Downloading... do not turn off target". From there, all I can do is press power to start, then it goes back into rebooting. There is no way to get into recovery mode from there.
Also, attempting to keystroke into recovery mode just restarted the lineos infinite reboot.
Can't get into recovery, can't get the bootloader out of "Downloading" mode, and lineos continually reboots... Any wise sage souls have any ideas on this one? It looks like my device is bricked
It got me too - I don't have Nova Launcher installed. A few weeks ago the device started bootlooping with a build I had installed since september. I updated to one of the latest builds and had the same issue again. At the moment i got it working most of the time, but when i start certain apps it just reboots.
Seems to be independent to build version and can occur with different apps (at least thats what I've read here...).
Is this a Lineage Os 13 only thing or can I throw the device away now?
Greetings
I started having this issue this week as well. Oddly enough, I was still on CM12.1. In the middle of watching Plex and it rebooted, and has been boot-looping since. I did a factory wipe and while installing apps, it started looping again. I then installed the latest nightly of LOS13.1 and again, once it got part-way installing apps, it started boot-looping again. So this is not just a LineageOS thing, it seems to be an app update (I do have auto-update turned on).
I´m having the same problem without ever have the Nove Launcher installed. The bootloop started on my device several weeks ago. I tried to fix it by wipe partly or total and reinstall the latest nightly of los13 (20171126) and opengapps micro 27.11.2017 (and everything else).
As soon as I reinstall my apps, los goes back to bootloop. Sometimes, when I manually install only few apps, the system seems stable, until die next updates come by the play store.
So now I went back to stock rom until I´m getting aware of the problem beeing solved.
workaround, maybe
I wouldn'n call it a bootloop but rather a startloop
Anyhow, in my case I was able to break the loop by entering android's safe mode by simultaneously pressing vol up and down keys during startup. In safe mode, I was able to delete offending apps. After reboot, system is running again. Apps identified so far to make lineageos unhappy: open camera, yalp store, YouTube(!).., oruxmaps.
Removing offending apps works
Thank you!
I did the same with your advice... removed some apps and it works. I went back to September ROM, then update to Nov ASB ROM and it works fine.
ShevT is on it, here https://jira.lineageos.org/browse/BUGBASH-1052
and here: https://review.lineageos.org/#/c/197386/
Hope it gets fixed and merged soon... as this has been a pain the neck for a while, possibly related to a similar problem earlier this year.
loveandmarriage said:
I wouldn'n call it a bootloop but rather a startloop
Anyhow, in my case I was able to break the loop by entering android's safe mode by simultaneously pressing vol up and down keys during startup. In safe mode, I was able to delete offending apps. After reboot, system is running again. Apps identified so far to make lineageos unhappy: open camera, yalp store, YouTube(!).., oruxmaps.
Click to expand...
Click to collapse
I'm running CM13 and I have the same problem. I am not tech savvy with installing ROMs but managed to get to TWRP and did a reset to factory. Got part way thru optimising apps and the problem came back. I could only turn the tablet off via TWRP!
I don't mind going back to stock rom but not sure how to do it..best I look on here and start to educate myself..I'm 73yo so might not get finished before my time is up

N910G boot loop

First thread here
I used cf auto root specifically for my device from the autoroot chainfire website just to delete bloatware like galaxy apps, S health. I didn't delete Touchwiz
Everything was fine and dandy for a few days until my phone starts crashing when browsing youtube, facebook etc.
recovery screen said it was due to 'dm-verity verification failed'
Browsing the forums, apparently flashing it with the stock rom should solve the issue. It didn't though
I flashed it and rooted it again and the problems persist
I'm lucky I backed up my data. It's just annoying having to restore everything once my phone boot loops.
What seems to cause it?
Because it's not clear from your thread, I've got a question:
After you flashed the ROM and rooted it again, did you remove the bloatware again, just as before?
Vygravlil said:
Because it's not clear from your thread, I've got a question:
After you flashed the ROM and rooted it again, did you remove the bloatware again, just as before?
Click to expand...
Click to collapse
Yes
I deleted Galaxy apps, penup, s health etc.
muaddibzero said:
Yes
I deleted Galaxy apps, penup, s health etc.
Click to expand...
Click to collapse
So the problem is caused by removing the bloatware. Because of the programming of the bloatware and the ROM itself (they are kinda "linked" to each other), it can brake your system, just as in your case.
How did you remove the bloatware? Did you use an app? Maybe we can find a way removing it without killing your system.
Vygravlil said:
So the problem is caused by removing the bloatware. Because of the programming of the bloatware and the ROM itself (they are kinda "linked" to each other), it can brake your system, just as in your case.
How did you remove the bloatware? Did you use an app? Maybe we can find a way removing it without killing your system.
Click to expand...
Click to collapse
I used titanium backup to delete it
Update
Bloatware doesn't matter now though
I reflashed my phone with stock rom again, this time without rooting. My phone still suffered from boot loops. What's happening here? Do I have to do a factory reset?
muaddibzero said:
I used titanium backup to delete it
Update
Bloatware doesn't matter now though
I reflashed my phone with stock rom again, this time without rooting. My phone still suffered from boot loops. What's happening here? Do I have to do a factory reset?
Click to expand...
Click to collapse
Did you flash the proper stock ROM for you device? Where did you get it from? I guess that something went wrong while flashing. A factory reset could solve it, but flashing the stock ROM should have resolved the issue already if the bootloop was caused by removing the bloatware - that's what surprises me.
Vygravlil said:
Did you flash the proper stock ROM for you device? Where did you get it from? I guess that something went wrong while flashing. A factory reset could solve it, but flashing the stock ROM should have resolved the issue already if the bootloop was caused by removing the bloatware - that's what surprises me.
Click to expand...
Click to collapse
Hi sorry for necroing and leaving a late reply
I used the Singapore starhub android 6.0.1 rom the device came with
I reflashed it and did a factory reset 3 weeks ago
Replaced battery as well
Worked fine for the time being
Then out of a sudden a boot loop occurred while I was on data
What's the cause of this?
I'm frankly tired of having to reflash the rom over and over again as well as restoring backups
I'd go for a full, clean install of stock (format /data from TWRP. Yes, a full format! Make sure you backup your media as this will erase absolutely everything.) and then flash stock with Odin.
Test it out see if it still has problems or if it's stable.
DO NOT RESTORE APPS FROM TITANIUM BACKUP
Re-download them from scratch.
I've noticed that I used to get random re-boots after restoring backed up apps from Titanium Backup.
Went ahead and started the phone over from absolute 0 and it seems my problem went away.

Categories

Resources