Dalvik Cache Wiped on every Boot? Android is Upgrading... - Samsung Galaxy Nexus

I've installed about 739MB of apps and flashed Google Wallet onto my Nexus, and every boot it goes through the processes of "Optimizing Applications" on each boot. I've heard this is the Nexus rebuilding the cache but why does it need to do it every time? Other ICS ROMs only report this on first boot or after wiping the Dalvik Cache. This happens only after I've flashed Google Wallet and a moderate helping of apps.
Is this just how it works?

No that shouldn't happen every time. Are you using a custom rom?

it happens to me. After update. And after unlocking bootloader. No custom rom.
Sent from my Galaxy Nexus using xda premium

I think I should roll back to yakjuxw, I was on stock yakju but with Google Wallet flashed on.
Sent from my Galaxy Nexus using XDA App

It's probably not liking Wallet. Am I right in thinking that it only really works on pauls custom rom?
Sent from my Galaxy Nexus using XDA App

RTContent said:
It's probably not liking Wallet. Am I right in thinking that it only really works on pauls custom rom?
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
probably...
Sent from my Galaxy Nexus using XDA App

Flashed Wallet and it does the optimization thing ever boot too.
Stock rom only rooted.

This happens to me every time i boot as well. It happened ever since i first got the phone. Before and after rooting. I have stock rom.

Removed wallet and now it boots much faster.
Sent from my Galaxy Nexus using XDA App

dnlsmy said:
Removed wallet and now it boots much faster.
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
How did you remove Wallet?

I wiped everything and flashed the Google Image.
Sent from my Galaxy Nexus using XDA App

"Android is upgrading.." Happens to me on every boot. It's been like that since i got the phone brand new. Pure stock untouched/unrooted.

bimmerboii said:
"Android is upgrading.." Happens to me on every boot. It's been like that since i got the phone brand new. Pure stock untouched/unrooted.
Click to expand...
Click to collapse
That's normal but not if its going through every app like mentioned in this thread.

Yeah a few seconds is fine, but mine was actually going through 40-60 apps, with a progress indicator (2 of 46)

Related

Android is upgrading?

Hey,
Everytime I turn on my Nexus it reads Android is upgrading' - is this the normal procedure?
Sent from my Galaxy Nexus using xda premium
yes it seems to be normal with Android 4.0
Yes I have this too. Seems strange.
Sent from my Galaxy Nexus using XDA App
Normal behavior, good Strange use of language from Google then.
Sent from my Galaxy Nexus using xda premium
Rawkode said:
Hey,
Everytime I turn on my Nexus it reads Android is upgrading' - is this the normal procedure?
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Yes, it'll do that every time you restart the phone
Sent from my Galaxy Nexus using XDA App
Yes. This is normal. This is where Android's optimization occurs (now with handy "Optimizing <x> of <y>" count to let you know what's happening) instead of prolonging the boot video. If it doesn't need to do that it just skips straight to launching the launcher, I guess...
Noted from observation, not from source code
My Galaxy Nexus only started doing this after both selecting "Encrypt Phone" and replacing my recovery image with Clockwork Mod Recovery 5.5.
It should not be happening on every boot unless you are a chronic flasher.
Mine phone did that on 4.0.1. On 4.0.2 that is gone
Sent from my Galaxy Nexus using xda premium
I got the "Android is Upgrading" when I zip-aligned all of the apks on my phone for the first time in GummyNex. So far it's only done it once, maybe twice in the last few weeks.
i only notice this after a dalvik/cache wipe. Atleast thats the only time it does this running 4.0.3 on my sgs fascinate.
Mine does this on every reboot, but I'm still on 4.0.1 where, based on earlier posts, that sounds more normal...
Only displays for a couple of seconds and nothing bad seems to happen as a result!
Mine started doing this after installing Google Wallet with that first crazy workaround. I hated it and restored my nandroid backup then used the apk that came out later and haven't seen that screen since. It definitely isn't normal to have it happen every time, except maybe in 4.0.1 I guess...
I just got this on 4.0.3 after wiping cache. Does anyone know what is actually doing. Rebuilding the cache?
basmith7 said:
I just got this on 4.0.3 after wiping cache. Does anyone know what is actually doing. Rebuilding the cache?
Click to expand...
Click to collapse
Bump. My VzW GNex is doing this every boot. This has got to be fixable. Has anyone actually determined what is happening here? VzW Galaxy Nexus w/stock Android 4.0.2, rooted.
Sent from my Galaxy Nexus using Tapatalk
chriv said:
Bump. My VzW GNex is doing this every boot. This has got to be fixable. Has anyone actually determined what is happening here? VzW Galaxy Nexus w/stock Android 4.0.2, rooted.
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Fix what? Nothing is broken. The phone is making new app caches. That's it. There is no problem and there is no fix because nothing is broken.
its normal with my htc hd2 and nexushd2 v1.1 by tytung? =/
Handl3vogn said:
Mine phone did that on 4.0.1. On 4.0.2 that is gone
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Same here!!!
Sent from my SGH-T989 using xda premium
Me three, I saw it on every bootup until I got 4.0.2, now I never see it.
However, my phone's uptime is currently at 7days 38 mins and not lagging or otherwise needing a reboot/battery pull as older versions of Android seemed to need every two or three days. Yay ICS!
"Android is upgrading" appears when the system is generating ODEX files (optimized DEX). This essentially uncompresses "classes.dex" from the APKs, verifies them, optimizes them for the host (byte order, class prunning, ...) and writes them out in the dalvik-cache directory.
Dexopt should be performed when installing applications by the package installer though and it does it upon boot only when there's no corresponding ODEX file already. It also does it upon system upgrade, because the dalvik version likely changed and ODEX files need to be redone for the new VM.
This is a poor choice of words. "Android is optimizing applications" would be less confusing.

On Boot Android is Upgrading??? wtf??

I
My GN every time I boot says, Android is Upgrading, start applications, what do this means???
Im still on 4.0.1 ics..
Any advice please
Sent from my Galaxy Nexus using xda premium
This is normal. Your phone is not updating its building app cache or something.
Search is your friend.
Question is though... Why is it always rebuilding?
Is it still completely stock from Day 1 of purchase?
Have you rooted it? If so, what method?
Have you installed any apps?
Have you tried doing a factory reset? (Ensure you back up your data)
The phone is purelly stock
I havent done nothing except using it and installing apps...the regular as an every day phone...i got since sunday
Should I factory reset?
Thanks
Sent from my Galaxy Nexus using xda premium
And what do that means?
Does your GN does the same thing?
Thanks
Sent from my Galaxy Nexus using xda premium
If a factory reset will I lose my photos and the musics and apk's i have on Download folder?
Any way to back up that?
Thanks
Sent from my Galaxy Nexus using xda premium
mine does it to. its normal
I can tell you its not normal for it to happen on every single boot! It's probably an app that is causing issues with the os. Try and remember what you recently installed and uninstall a couple apps to try and narrow it down. This happened to me when I installed Wallet.
mine has done it since i powered it on out of the box the very 1st time. so i'd say its normal
I wonder why its doing it then? If on my device it only does it when system files are being played with but on others on every boot?
Happens for me too, only noticed it since upgrading to 4.01 (stock)

[Q] No data after flash, or reboot

I am having a reoccurring problem. Sometimes, when I flash a new nightly, or even just reboot my phone, I get no data. Even when I turn on wifi, it connects but stays gray instead of turning blue or teal. Same thing for my 3G. I have full bars, but it stays gray. Best way I have been dealing with it if wiping cache and reloading the rom.
I have tried going in and out of airplane mode, rebooting the phone, letting it sit for hours. I would just like to know if I'm doing something wrong.
By the way I am running CM10.
All in all, it's a small price to pay to run such a slick rom. And now that I got dual boot all figured out......much easier to try things out.
-Nick
Did you do a clean flash?
Did u use the sprint cm10?
Does this happen on tw ROMs?
Sent from my Samsung Galaxy Emperor using psycommu
I wiped everything except for data.
On sprint cm10
Does not do it on a tw ROM I have
So this is what you did
Was on random tw ROM>wiped cache and dalvic> flashed cm10
If so your only hope really is to wipe everything and reflasb
Sent from my Samsung Galaxy Emperor using psycommu
Did you flash gapps and sign into your gmail account?
Sent from my SPH-L710 using xda premium
nbeebe24 said:
Did you flash gapps and sign into your gmail account?
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
I finally figured it out. The problem seemed to be with my clock settings. I can replicate the problem by setting my clock ahead and reboot. Then I will not connect. I figured out it was a Google account sign in issue. If I then reset my clock to the correct time and reboot, no problems.
Just had a question about dual boot. Was it easy to setup? How hard is it to go back to single boot? I would imagine having two roms would take up a ton of space.
Sent from my SPH-L710 using xda premium
dougstoner said:
Just had a question about dual boot. Was it easy to setup? How hard is it to go back to single boot? I would imagine having two roms would take up a ton of space.
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
1.Yes
2.as hard as rebooting the phone.
3.uses about 1gb

No data on att and 4.2

I flashed bigxie's 4.2 image last night and everything ran fine, or so I thought. As soon as I left my house in the am and I wasn't getting any data. Calls and texts were going no problem. Thought maybe it was a bad flash or something. Reflashed. Same problem. Returned to stock 4.2 using the toolkit and still the same problem. So I restored to 4.1.2 stock and I finally had data again. I flashed the cataclysm 4.2 ROM and no data again. Flashed latest CNA and I have data.
Does my phone just not like 4.2?? What's going on here??
Sent from my Galaxy Nexus using xda app-developers app
scarbutt11 said:
I flashed bigxie's 4.2 image last night and everything ran fine, or so I thought. As soon as I left my house in the am and I wasn't getting any data. Calls and texts were going no problem. Thought maybe it was a bad flash or something. Reflashed. Same problem. Returned to stock 4.2 using the toolkit and still the same problem. So I restored to 4.1.2 stock and I finally had data again. I flashed the cataclysm 4.2 ROM and no data again. Flashed latest CNA and I have data.
Does my phone just not like 4.2?? What's going on here??
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Did you flash latest Radio ?
niels72 said:
Did you flash latest Radio ?
Click to expand...
Click to collapse
Yeah I flashed XXLH1 last night. My first thought was bad radio flash. downloaded again and reflashed - same problem. Thought maybe my old radio would work so I flashed XXLF1 on but still had the data problem.
Sent from my Galaxy Nexus using xda app-developers app
check apn settings if everything looks fine then try to reflash the image
Anthing look weird in your wireless or APN settings? Where did you get the radio?
Sent from my Galaxy Nexus using xda premium
Yeah I played with the APN but the settings were the same as always. And I got the radio first from bigxie's link but then I grabbed the new and old one from the sticky
Sent from my Galaxy Nexus using xda app-developers app
did you flash just the radio or the ril as well?
Not sure what the ril is?
Sent from my Galaxy Nexus using xda app-developers app
here i am linking the radio and its ril.. try flashing both
http://forum.xda-developers.com/showthread.php?p=34045210
Downloading now. I'll give it a try and let you know the results
Sent from my Galaxy Nexus using xda app-developers app
No luck :/ same problem still.
I just flashed CNA again and I have data no problem. I don't know if its necessarily a radio problem though...
try flashing the google 2.3 image..
As in gingerbread 2.3?
Sent from my Galaxy Nexus using xda app-developers app
k786 said:
try flashing the google 2.3 image..
Click to expand...
Click to collapse
lol
Sent from my Galaxy Nexus using xda app-developers app
b1337 said:
lol
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Don't laugh at me!
But seriously, could there be a bug in 4.2 code that causes an error with att?
Sent from my Galaxy Nexus using xda app-developers app
Next time, read the rules.
Menelkir said:
Next time, read the rules.
Click to expand...
Click to collapse
Crap, my bad. Didn't realize I posted in development. That's what I get for having 15 tabs open at once haha
Sent from my Galaxy Nexus using xda app-developers app
Not sure if the problem is fixed or not but everything is working. Here's what I did in case anyone else needs help with this same problem.
I restored to 4.1.2 using the toolkit and then waited until the phone got the ota and updated using that to 4.2 (I did this the first time and had data, then went into the settings and did a factory restore and ended up with no data. So I repeated the process without the restore and it all worked.) I then used the toolkit to root and install CWM recovery. Still running stock 4.2 but everything is working and I am a bit nervous in flashing a custom rom until I can figure out if it may have just been a ATT problem in my area or some kind of glitch with my phone.
Hope this helps anyone else that may have the same weird problem.

ART enabled dirty flash

Just wondering if anyone can tell me whether its necessary to revert to dalvik before dirty flashing nightlies. I got stuck at boot when leaving ART enabled, so I've been switched to dalvik before flashing. Is this standard procedure? Its kind of a pain, didn't know if anyone was having luck leaving ART enabled. I'm running vanir btw. Thanks in advance.
Sent from my Galaxy Nexus using xda app-developers app
D1BB said:
Just wondering if anyone can tell me whether its necessary to revert to dalvik before dirty flashing nightlies. I got stuck at boot when leaving ART enabled, so I've been switched to dalvik before flashing. Is this standard procedure? Its kind of a pain, didn't know if anyone was having luck leaving ART enabled. I'm running vanir btw. Thanks in advance.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
I'm running vanir too. With ART enabled. The boot does take longer with ART. And after boot it will optimize apps which takes ages with ART. I'm flashing nightlys with ART enabled and no problems here. Just some patience friend
Sent from my Galaxy Nexus using XDA Premium HD app
No problem here. It takes a bit longer than dalvik, but it's normal due to the difference between them.
Sent from my Galaxy Nexus using xda app-developers app
Thanks a lot, that'll save me some time. I waited about 4 minutes which is how long it usually takes to originally enable ART and nothing was happening so I figured it was stuck. This was also many builds back. Thanks again guys.
Sent from my Galaxy Nexus using xda app-developers app
D1BB said:
Thanks a lot, that'll save me some time. I waited about 4 minutes which is how long it usually takes to originally enable ART and nothing was happening so I figured it was stuck. This was also many builds back. Thanks again guys.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Try a clean flash. I had that same issue. Then did a clean flash, switched to ART and everything was fine. Maybe let it boot for 15 minutes or so before doing this..
Sent from my Galaxy Nexus using XDA Premium HD app
Flashed 1/31 nightly only wiping dalvik /cache with ART enabled and it started optimizing apps in 4 or 5 minutes. Just noticed 2/1 is up, hopefully I get the same results.
Sent from my Galaxy Nexus using xda app-developers app
CyanogenMod
Hi, have anyone experience with cyanogen?

Categories

Resources