Optimizing apps after flash xposed installer - X Play Q&A, Help & Troubleshooting

Hello guys.
I have read some issues regarding my problem where after every reboot the system optimizes all apps in my situation are just 2 apps optimizing after I installed Xposed through TWRP. it happens on every boot and takes up to 10 minutes, also it tooks to optimizes all my 128 apps after a caché clean process up to 30 minutes, is it normal?

just_one said:
Hello guys.
I have read some issues regarding my problem where after every reboot the system optimizes all apps in my situation are just 2 apps optimizing after I installed Xposed through TWRP. it happens on every boot and takes up to 10 minutes, also it tooks to optimizes all my 128 apps after a caché clean process up to 30 minutes, is it normal?
Click to expand...
Click to collapse
Yes its normal.. Get rid of google bloatware to solve this app optimization issue. It's mostly google apps that optimize on boot.
Sent from my XT1562 using Tapatalk

When you clean the cache the apps have to be initialized ("optimized") again - so that wait is to be expected. Do you maybe have some app or xposed module that wipes cache on shutdown? That would cause this, too.

Related

[Q] Android is upgrading after every boot

OK guys I have a problem and I'm hoping that you could help me.
I rooted my S4 and installed stuff that I wanted, phone was in a great shape until I came across this post that was guiding a way to remove the custom sign when you turn on the phone once you have rooted the phone, so the procedure was to install SuperSU and install the new su binary coming with it, uninstalling previous SU and rebooting. the post was claiming that the sign would be gone and the regular "Samsung galaxy S4" would be shown instead. So I did all those and on the way coming up on the first time the message "android is upgrading" popped up, it's the first time so it's fine, but then it became annoying when it started showing up every single time after that, I took some procedures to fix it as follows:
I,
1. removed application "supersu".
2. went back to the previous SU.
3. wiped delvik and cache. (something amazing about this is that after the manual wiping the number of apps being upgraded is 193, while in its every time boot it only upgrades 120 of them (which is good I think don't have to wait for all 193 every time), but it goes back to 120 after the initial boot after wiping delvik).
4. uninstalled TB.
5. executed fixing permission.
6 reinstalled TB and restored all the apps.
7. re-rooted the phone with motochopper.
8. looked for odex files in /data/ app. (there were none).
couldn't think of anything else and that's where I stopped. I know that this message pops up everytime delvik cache is wiped but I can't figure what is causing it every time.
one more thing, I noticed is that the USB debugging option turns off after every restart, not sure if this is something normal or what, just thought this may be helpful in the diagnosing process. one more thing the post was correct about the old sign coming back though.
There might be an app clearing cache everytime like an optimization app or something. Mine used to when I set rom toolbox to do so
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Please read forum rules before posting
Questions and help issues go in Q&A and Help sections
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
egolabbakhsh said:
3. wiped delvik and cache. (something amazing about this is that after the manual wiping the number of apps being upgraded is 193, while in its every time boot it only upgrades 120 of them (which is good I think don't have to wait for all 193 every time), but it goes back to 120 after the initial boot after wiping delvik).
Click to expand...
Click to collapse
This exact same thing is happening to me, as of today. All I did was clear cache and dalvik, and all of a sudden this is now happening. Gone through all the steps to figure out why as you did, and nothing has worked.
Strange part...mine is also getting stuck with the 120 at each boot. When I do it manually, it's 236.
I ended up restoring my phone, I think that's your last resort as well. I hope you have a backup, otherwise you're in trouble!
1.install lucky patcher
2.go to toolbox tab
3.remove all odex files
No great change
majid.gh said:
1.install lucky patcher
2.go to toolbox tab
3.remove all odex files
Click to expand...
Click to collapse
My phone still does the Updating, just now instead of starting at 27 and going to 57, it starts at 1 and goes to 30
majid.gh said:
1.install lucky patcher
2.go to toolbox tab
3.remove all odex files
Click to expand...
Click to collapse
Simple as that! Just had to boot a couple of times. Excellent!
svendsvin said:
Simple as that! Just had to boot a couple of times. Excellent!
Click to expand...
Click to collapse
+1
On my rooted 4.3 Sony Xperia SP:
I did the lucky patcher thingy twice (it reboots each time, first time the nag happened). Booted up nicely after that.
It will do this if dalvik cache is wiped...one of your apps may be doing this automatically
Sent from my SGH-I337 using Tapatalk 2
Hey there this problem is happening with my. Samsung Galaxy S duos 2 also
- I rooted it.
- Then after 2 days Format it.
- Now there is "Android is upgrading" Toast is appearing after every single reboot.
SO WHAT TO DO GUYS....

Uninstalled Apps keep reinstalling after Reboot and updates go missing

Hello ,
I have a rooted LG G2 AT&T with a stock Lollipop rom.
I don't know why but recently my phone began to have this strange behavior.
Whenever I reboot the phone, it restores my previously uninstalled apps and all the updates installed between two reboots go missing.
The other strange thing is that all the NEW apps installed instead are kept.
The phone has become very slow booting and during the boot it shows the popup stating "Android is upgrading... Optimizing app x of n", where the total number varies time to time.
Does anybody have any idea on how to solve it?
Thanks in advance
Update: the boot time and number of apps being optimized varies with the number of uninstalled apps.
I tried:
cleaning dalvik cache
cleaning cache partition
fixing permissions
deleting apps with TB
disabled auto restore from google account

Apps optimized at every reboot

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.

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

My OP2 keeps optimizing an app every reboot

Every time I reboot my OnePlus 2 keeps optimizing a certain app
I don't know which one but I deleted a lot of downloaded apps and it still didn't help
I thought it could be the SuperSU app so I ran the UnSU script and flashed Magisk
It still keeps optimizing that app
Factory reset would probably solve this issue but I'd prefer not to do that
Thanks
do you have some "optimizing" apps or mods installed? like Lspeed, or hebf or something like that?
IvanMuse said:
Every time I reboot my OnePlus 2 keeps optimizing a certain app
I don't know which one but I deleted a lot of downloaded apps and it still didn't help
I thought it could be the SuperSU app so I ran the UnSU script and flashed Magisk
It still keeps optimizing that app
Factory reset would probably solve this issue but I'd prefer not to do that
Thanks
Click to expand...
Click to collapse
I have a similar problem. Optimising 2 apps while booting. This takes a lot of time, I guess about 5-8 minutes for each app. Initially I thought I was stuck with a boot loop or something, but later figured out that after insanely waiting, the phone actually boots up after optimising.
So I uninstalled many apps from my phone and now optimising is reduced to 1 app. I cannot pinpoint on which app is being optimised so i can get rid of that app.
I am running on unrooted oxygen 3.6.1 with no fancy stuff installed, to the best of my knowledge.
Any help to understand how to get rid of this optimisation will be appreciated.
JohnJacobT said:
I have a similar problem. Optimising 2 apps while booting. This takes a lot of time, I guess about 5-8 minutes for each app. Initially I thought I was stuck with a boot loop or something, but later figured out that after insanely waiting, the phone actually boots up after optimising.
So I uninstalled many apps from my phone and now optimising is reduced to 1 app. I cannot pinpoint on which app is being optimised so i can get rid of that app.
I am running on unrooted oxygen 3.6.1 with no fancy stuff installed, to the best of my knowledge.
Any help to understand how to get rid of this optimisation will be appreciated.
Click to expand...
Click to collapse
i flashed 8.1.0 lineageos and it solved the problem but i guess that just a factory reset would do the job
let me know if you fixed it
Have you got bit torrent installed?? Bit torrent updated, I restarted, optimising bit torrent for hours
Solution:-
Boot into recovery mode(TWRP recommended) and delete the true caller folder from data and the system.
I had the same problem.
It was utorrent.
Sent from my ONE A2003 using Tapatalk

Categories

Resources