Phone won't change to ART - Nexus 5 Q&A, Help & Troubleshooting

So on Saturday I made the switch to ART runtime and everything seemed to be working fine, the phone rebooted and all the apps were optimized upon restart, a couple days ago I noticed that my phone restarted although I may have accidentally restarted it by mistake while it was in my pocket.
So right now I'm trying some stuff to lower battery darin and wanted to switch back to Dalvik, I go into the developers options and Dalvik is selected as the active runtime, I selected ART again because I thought it was strange since I never went back to Dalvik in the first place, I click ok after selecting ART and my phone reboots but it doesn't optimize anything, it restarts as normal and when I check the runtime it's always Dalvik.
Any idea what might be happening here? Why can't I switch to ART?

Did you install xposed framework? If so it only works on dalvik and it won't let you use ART. From what I've heard you need to run the xposed disabler zip to fully uninstall it
Sent from my Nexus 5 using xda app-developers app

skw5115 said:
Did you install xposed framework? If so it only works on dalvik and it won't let you use ART. From what I've heard you need to run the xposed disabler zip to fully uninstall it
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
copy /system/bin/app_process.orig back to /system/bin/app_process using a root file explorer. turn on ART.

Related

[Q] Insufficient Storage, but 14.7GB free

I just installed ExynosAbuse APK v1.40 and i now have root so i could regain my copy/paste function back. (I delete everything in data>clipboard)
However now when i go to install any app i get the error, insufficient storage. As the title says I have ~15gb free (says the settings>storage). Even when uninstalling an app I cannot re install it as it says i have insufficient space. For example, i uninstalled angry birds SW (which was 60mb) and i cannot reinstall it, or any other apps.
Oh, and i uninstalled the Exynosabuse (but left root enabled) and now i cannot reinstall it to disable root. I also tried uninstalling the google play updates, and nothing changed. Installing apps with either google play or ES file manager gives the same result (insufficient storage space)
Thanks for the help.
UPDATE:
I found the problem, and solution in post 20
I had the same problem with an app i tried installing once, but it only happened with that particular app. Maybe try wiping cache and dalvik cache.
Sent from my GT-N8013 using XDA Premium HD app
RussellEstridge25 said:
I had the same problem with an app i tried installing once, but it only happened with that particular app. Maybe try wiping cache and dalvik cache.
Sent from my GT-N8013 using XDA Premium HD app
Click to expand...
Click to collapse
Thanks for the reply. I went to data>dalvik cache and deleted everything in there and restarted. I gained about 200 mb but still i cannot install anything.
Njord0 said:
Thanks for the reply. I went to data>dalvik cache and deleted everything in there and restarted. I gained about 200 mb but still i cannot install anything.
Click to expand...
Click to collapse
Did you wipe cache and dalvik cache in recovery mode?
Sent from my GT-N8013 using XDA Premium HD app
Im trying a factory reset now since i've only owned this thing for a few days. Though if anyone knows a solution to this, please post. I've came across a few threads with a similar problem and they have gone unsolved.
RussellEstridge25 said:
Did you wipe cache and dalvik cache in recovery mode?
Sent from my GT-N8013 using XDA Premium HD app
Click to expand...
Click to collapse
No just deleted it with es file manager
Njord0 said:
No just deleted it with es file manager
Click to expand...
Click to collapse
You should do it in recovery mode.
Sent from my GT-N8013 using XDA Premium HD app
If you are getting it for a particular app then try searching for the it using its name it must have left some file over during your previous installion delete all files with the app name and try installing it should install
Try uninstalling the update of play store by going into settings applications
The first one should do the trick
samir_a said:
If you are getting it for a particular app then try searching for the it using its name it must have left some file over during your previous installion delete all files with the app name and try installing it should install
Try uninstalling the update of play store by going into settings applications
The first one should do the trick
Click to expand...
Click to collapse
All of the apps in the play store that i tired (ones that haven't been installed before) gave the same error, not just ones previously installed. I also deleted some bloatware updates and tried to reinstall their updates afterwards. The problem persists.
I did uninstall the playstore updates and clearing the cache. Nothing changed.
I've restored to factory and its working again. Crappy solution though..
thanks for the help
I solved this problem with lucky patcher. Run it when you have this problem and it will remove the unused odex file. Then install normally and you shouldn't have the error. I found this happens to me when uninstalling modified apks and trying to install the official app after.
Sent from my GT-N8013 using Tapatalk 2
i only have this Problem when there is less than 500mb free space.
common -.- i want to install a 2mb apk File And it complains because there is only 490mb free space -.- any way to change that?
PurpleSh4rk said:
I solved this problem with lucky patcher. Run it when you have this problem and it will remove the unused odex file. Then install normally and you shouldn't have the error. I found this happens to me when uninstalling modified apks and trying to install the official app after.
Sent from my GT-N8013 using Tapatalk 2
Click to expand...
Click to collapse
I did have lucky patcher installed when i had this problem. When opening the program it did remove some odex files but the problem was still there. Is there an option to force it to check for odex files?
You could check your data/apps folder and check if there's an apk for the file there. If it is delete and try to reinstall
Sent from my Galaxy Nexus using Tapatalk 2
Well it's happening again.
How do I get into recovery mode to delete dalvik cache? Is that where you hold down power and the volume button, cause I don't see anywhere to delete the cache when im in there. It's just a screen thqts says downloading.
I cleard the dalvik cache In link2sd but it says it's empty. Also cleared app cache with link2sd.
I did notice that the system file space is at 17% (243mb left) which is still large enough to install the apps I'm trying. I have 25gb free out of 32gb.
This problem is not limited to one app. It also happens with apps that never been installed on this tablet.
Thanks for the help.
Did you try what I mentioned
Sent from my Galaxy Nexus using Tapatalk 2
Power+Volume Up until you see the GTN8000 or whatever model you have screen then leave power button while keep pressing the volume up button until you get into recovery
Dude i suggested going into recovery and wiping cache and dalvik cache a while ago but got no response. You didnt ask how if you didnt know and you obviously didn't search for it. Not trying to be rude here but it just is a little irritating when you try to help and you get ignored. Volume up and power till you see the boot screen then let go. And youll see wipe cache, do it. Then scroll to advanced and then to wipe dalvik cache, do it. Then go back to the firdt sceen and select reboot.
Also gmfeny had a suggestion did you try that?
Sent from my GT-N8013 using XDA Premium HD app
RussellEstridge25 said:
Dude i suggested going into recovery and wiping cache and dalvik cache a while ago but got no response. You didnt ask how if you didnt know and you obviously didn't search for it. Not trying to be rude here but it just is a little irritating when you try to help and you get ignored. Volume up and power till you see the boot screen then let go. And youll see wipe cache, do it. Then scroll to advanced and then to wipe dalvik cache, do it. Then go back to the firdt sceen and select reboot.
Also gmfeny had a suggestion did you try that?
Sent from my GT-N8013 using XDA Premium HD app
Click to expand...
Click to collapse
The first time you mentioned it i had already did a factory reset and my GN was working for the moment. When the problem came back i said i tried it in link 2 sd and i did boot to what it thought was recovery mode (i did google it but i must have miss read. I was holding power and volume down to get into recovery screen) and didnt see anywhere to delete dalvik cache. I should have stated clearly that i needed help on getting to the right place.
I will try that next.
gmfeny, I have looked in data>apps and nothing about the apps im trying to install is there. Also this problem isnt limited to apps that i've previously installed. So I wouldnt expect anything to be in there on those apps. However there is a folder im not sure about. its not very big (256KB) and its names mcRegistry.
I'm not sure if its a big deal, and further since no one seemed to have commented on it. Is there a problem with my system file space as mentioned above? (17% left, 250MB)
thanks
I have the GTN80013 (32gb no GSM/cdma)
Im in recovery mode now and i selected wipe cache partition. I dont see anywhere that says advanced. The only options i have are; reboot, apply update from external storage, wipe data/factory reset, wipe cache, apply update from cache.
still cannot install some apks. I tried to install appinstaller (which i've never installed/tried to install from the play store) and it failed. Also my game emulators failed to install with ES file explorer.
I was able to clear the dalvik cache by gong to data/dalvik-cache And deleting everything. after restarting it waa rebuilt. still can't install apps.
Maybe it's not the same as doing it in recovery, but that's not an option in my recovery mode from what I can see.
Thank for the help
I finally solved my problem.
I had installed Link2SD and a setting in that app was causing the problem.
The Fix:
Open up the menu (context menu) > settings
Click on install location and change it from External to Automatic.
I can install app now.
The only strange part is when i first had this problem, i didnt have this app installed. As suggested above, it was probably the Dalvik cache.
For anyone who has problems finding the 'clear dalvik cache' in recovery mode; You can use lucky patcher to delete it. Its in the menu>trouble shooting> delete dalvik cache and reboot.
Or you can do it manually by going to data>dalvik-cache and deleting everything in there.
Thanks for the help!

Can't install apps while in ART runtime

I recently switched from Dalvik to ART, on Stock and Rooted (I can't get ART to work when I'm on a custom rom) and currently am unable to install apps from the play store... it just says "installing" infinitely.
Anyone else have this issue?
derukun said:
I recently switched from Dalvik to ART, on Stock and Rooted (I can't get ART to work when I'm on a custom rom) and currently am unable to install apps from the play store... it just says "installing" infinitely.
Anyone else have this issue?
Click to expand...
Click to collapse
Same thing happened to me when I switched to ART, I even tried a third party app install, didn't work... I think its because some apps don't work with ART at the moment(whatsapp, pandora, etc.) I had to switch back to dalvik, and even then i couldn't install properly. I ended up restoring from a previous backup i made. What apps are you trying to install?
nexuus said:
Same thing happened to me when I switched to ART, I even tried a third party app install, didn't work... I think its because some apps don't work with ART at the moment(whatsapp, pandora, etc.) I had to switch back to dalvik, and even then i couldn't install properly. I ended up restoring from a previous backup i made. What apps are you trying to install?
Click to expand...
Click to collapse
Couldn't even initialize the download for a file manager... probably means I can't install my .apks either. Went back to dalvik, I'll wait it out for ART to become more widespread

Art not active. Why?

One of the first things I changed when I got my nexus 5 was changing from dalvik to art runtime.
As an accident I was messing around and saw I was at dalvik once again. Set the phone to change to art, it says a certain library file has to be changed, restarts the phone and nothing happens.
The files that were converted the first time I change to art are no longer converted and I am still in dalvik mode. Clues?
Disable exposed framework
Sent from my Nexus 5 using Tapatalk
cesar.maranhao said:
One of the first things I changed when I got my nexus 5 was changing from dalvik to art runtime.
As an accident I was messing around and saw I was at dalvik once again. Set the phone to change to art, it says a certain library file has to be changed, restarts the phone and nothing happens.
The files that were converted the first time I change to art are no longer converted and I am still in dalvik mode. Clues?
Click to expand...
Click to collapse
I'm guessing you have Xposed Framework installed, which prevents you from switching to ART. You either have to uninstall Xposed or stick with dalvik.
AAAAAHHHHHHHHH 1 millionth post about the same thing award!!
Sent from my Nexus 5 using Tapatalk

[Q] Runtime error? Only some apps upgrade after dalvik wipe

Oddly enough, after upgrading to 4.4.3 by flashing the system, radio and boot partitions via fastboot, only 58 of my 130 apps need to be upgraded after a dalvik wipe, or a switch to ART.
This is odd, as a normal dalvik wipe, or runtime switch should trigger all the apps to require upgrading on startup.
Can anyone tell me what's going on? I am not experiencing any issues yet like FCs and what not, but this is still strange none the less.
Thanks in advance.
Sent from my Nexus 5 using Tapatalk
_jordan_ said:
Oddly enough, after upgrading to 4.4.3 by flashing the system, radio and boot partitions via fastboot, only 58 of my 130 apps need to be upgraded after a dalvik wipe, or a switch to ART.
This is odd, as a normal dalvik wipe, or runtime switch should trigger all the apps to require upgrading on startup.
Can anyone tell me what's going on? I am not experiencing any issues yet like FCs and what not, but this is still strange none the less.
Thanks in advance.
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Does the same thing happen if you delete the files manually and reboot?
Yeah it does. Very strange.
Sent from my Nexus 5 using Tapatalk
Maybe it's only creating cache for apps that need to run on startup and other apps only create cache when launched
Sent from my Nexus 5 using Tapatalk
rootSU said:
Maybe it's only creating cache for apps that need to run on startup and other apps only create cache when launched
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I was thinking that too. It doesnt seem to matter, because both ART and DALVIK only compile for the same apps it seems (59 in my case).
Could android be telling it to only compile for certain apps, and skip others? Very strange that this would be the case. Phone feels fine and there are no issues I can see so far.
I am stock, rooted, custom recovery, and thats it. No xposed, no mods, nothing.
Oh, well if your Rom is odex, then it won't need dalvik cache for all apps anyway
Sent from my Nexus 5 using Tapatalk
rootSU said:
Oh, well if your Rom is odex, then it won't need dalvik cache for all apps anyway
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Hmm interesting I guess this could be the answer, but does this also explain why ART fails to compile all the apps?
Currently both ART and Dalvik compile a smaller number of apps than I have installed. The 1st time I switched to ART after the update, it compiled all the apps... then i switched back to dalvik and it compiled 59 of em... then another switch to ART would only cause 59 to be compiled.
Very weird. I think the system is doing this for a reason, but I am not sure which reason that is.
I can't speak about art. Dalvik-cache contains the information that is otherwise contained in .odex so if. Odex exists, there's no need to build a cache for that app
Sent from my Nexus 5 using Tapatalk
New in 4.4.3: https://android.googlesource.com/platform/dalvik/+/36e356c
If an .odex file already exists, then Android won't try to build a new file on boot after you switch from ART to Dalvik. Although it's not explicitly mentioned, I'd assume the same handling happens after you clear the Dalvik cache.
Pbrah said:
New in 4.4.3: https://android.googlesource.com/platform/dalvik/+/36e356c
If an .odex file already exists, then Android won't try to build a new file on boot after you switch from ART to Dalvik. Although it's not explicitly mentioned, I'd assume the same handling happens after you clear the Dalvik cache.
Click to expand...
Click to collapse
Awesome thank you! All questions answered.
Sent from my Nexus 5 using Tapatalk

Several apps crashing suddenly with no changes made?

I'm on stock 44S with r34 Franco kernel. Everything has been running fine. But the last few days I cannot open file manager. It opens up and tired to loss but fits nothing then the screen goes black. I'll get an error saying app is unresponsive. The same thing happens when I try to open the battery apps like wake lock detector or battery stats. It even does this in the Franco kernel updater app when I go to the backup/restore section. When I reboot into recovery I see the sd card icon by the date with the exclamation mark. I cleared dalvik and cache and fixed permissions. This still doesn't resolve the issues. It seems something is causing an issue trying to access stuff on the sdcard position. Any ideas how to fix it?
Sent from my A0001 using XDA Free mobile app
I figured it out. Somehow SuperSU was deleted. I guess when I cleared dalvik and cache it removed it? Anyways, I was able to download and flash SU and everything seems to work now.

Categories

Resources