Stuck on optimizing app - Nexus 5X Q&A, Help & Troubleshooting

Very odd thing happened last night. My phone died last night, but it on charge over night, turned it on this morning and it just gets stuck on optimizing 1 app of 1.
Can force a reboot, but same thing happens.
I have it rooted and TWRP, so cleared cache/dalvik, then said, optimizing 4 app, and got stuck on the 4th. Reboot and back to the 1 of 1 again.
So clearly there is 1 app which have buggered up and causing this hang.
Is there anyway I can find out which app is causing the problem and remove it using ADB/TWRP etc and at least get back into my phone?! At the moment I can do nothing.

ad logcat to find out which app and then manually remove it via the file manager in TWRP or adb shell.
Skickat från min Nexus 5X via Tapatalk

how long does it take to clean flash your phone with new ROM?

badai said:
how long does it take to clean flash your phone with new ROM?
Click to expand...
Click to collapse
Not everyone has unlimited internet access or wants to spend the time. If he fails to find the offending app a factory reset/data wipe would be simpler.
Skickat från min Nexus 5X via Tapatalk

Nicktheprofessor said:
ad logcat to find out which app and then manually remove it via the file manager in TWRP or adb shell.
Skickat från min Nexus 5X via Tapatalk
Click to expand...
Click to collapse
Awsome - don't know why I didn't think of logcatting on boot.
App found - deleted from /data/data and /data/app - cleared caches and went right in.
Quick backup time and rebuild I think... just need to hang on until Pixel2 is released haha!

teapea said:
Awsome - don't know why I didn't think of logcatting on boot.
App found - deleted from /data/data and /data/app - cleared caches and went right in.
Quick backup time and rebuild I think... just need to hang on until Pixel2 is released haha!
Click to expand...
Click to collapse
Great, it's easy to forget the simple things when you are stuck. [emoji3]
Skickat från min Nexus 5X via Tapatalk

Nicktheprofessor said:
ad logcat to find out which app and then manually remove it via the file manager in TWRP or adb shell.
Skickat från min Nexus 5X via Tapatalk
Click to expand...
Click to collapse
This seems to work for most users, but I'm not sure how to do it. Would you mind explaining the steps for a noob like me?

Related

Android is Updating: Starting Applications - Every reboot

Any have this happen every time they reboot?
I saw this after I initially setup phone and it downloaded my market apps, on the following reboot it said this message.. But I just noticed it does it on every reboot. I thought maybe some app maybe half installed or something, so I cleared cache and delvik cache by booting CWR.img. Upon next boot, it rebuilt the cache for all my apps, but then all following reboots still give me this message:
Code:
Android is Updating: Starting Applications
I ran a logcat of the bootup process, and killed the logging after it was booted and past this message... but I don't really see anything that stands out (at least to me, I'm no expert at reading these logs or understanding the boot process).
Anyone have any ideas, or experience with logcats?
Attached is the logcat.
after i did my initial setup and then rebooted mine said the same then changed to 'optimizing applications' then counted through all the apps i installed,
id assume the message appears to prevent user interactions so when the launcher launches its fast rather than the lag present on older versions after the boot up, its a minor issue but when it comes to user experience this delay give the illusion of faster performance after boots.
it does happens all the time (every reboot).
however, if there is some actual update task, it will say
Android is Updating: 1 of XX
sort of thing.
i got this when i update to the volume bug fix.
Luxferro said:
Any have this happen every time they reboot?
Click to expand...
Click to collapse
Yes, it's normal.
Happens for me every time too. Seems to be a normal process for the GN.
Okay, thanks for the replies!
I guess I didn't notice it the first few times I rebooted it out of the box. Thought something got messed up.
edit: (Just found out there is a 5 per day thanks limit too )
case0 said:
Yes, it's normal.
Click to expand...
Click to collapse
Why ? I mean, what is the process doing ?
lambda30 said:
Why ? I mean, what is the process doing ?
Click to expand...
Click to collapse
Caching everything
Sent from my Galaxy Nexus using Tapatalk
BlackDino said:
Caching everything
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
So this is just a visual update for some underlying process that was already present, in Gingerbread ? Or what ? Waiting for a more technical explanation...
Just fixed that by
Code:
adb remount
adb shell rm /system/framework/com.google.widevine.software.drm.jar
Don't know why, it just works.
Doesn't happen to me, so I'd say it's not totally normal.
Sent from my i9250
that's totaly not normal. That mean that either your cache is removed at each reboot or that your cache is corrupt. I saw a solution a few post before mine and i think you should try it, if it does not work , wipe everything and start from a fresh install.
I've seen it happen when you wipe cache and take a backup from recovery. But only on the first reboot after that action, definetly not on every reboot.
my nexus did from the 1st start up NEW my vivid also does it its a ics thing
Only happens when updating a ROM or wiping caches here
Sent from my JellyBelly Gnex
Flash
Had same problem reflashed rom and fixed
I doubt that's normal. I only had to do it every single time I cleared the dalvik cache when I replaced the services.jar file or when I installed a new rom without clearing any previous data.. Never had to run that ever since.
That is fine OP. But if you are seeing "optimising applications" every reboot, then something is wrong.
Sent from my Galaxy Nexus using Tapatalk 2
Whenever you wipe the dalvik cache you will be prompted with this message on boot. It is normal. If it does not happen, then you should be worried.
Nexus S. (GSM i9020a)
Paranoid (1.991 - 4.1.1)
Air Kernel (Week 193 - Vodoo)
Ondemmand (1000/200)
Deep Idle (On - Deadline)
BLX (98 - Inverted. Apps)
Black Exodus (UnderVolted)
It will say Starting Applications on each normal boot, and Upgrading Application XXX of XXX when cache is cleared. Either way, the title of the window is "Android is Updating"

[Q] Stop OTA?

Help, I rooted my phone and I don't want it installing updates. But I got this notification that it has downloaded a system update and will install it when there's enough power. So I'm going to keep my phone on low until I find a way to prevent it from installing. Any tips guys and gals?
Does anyone know what the update is? The development may like for you to extract it from your phone. Could help in future development.
abjc89 said:
Help, I rooted my phone and I don't want it installing updates. But I got this notification that it has downloaded a system update and will install it when there's enough power. So I'm going to keep my phone on low until I find a way to prevent it from installing. Any tips guys and gals?
Click to expand...
Click to collapse
I just had the same problem to what I did was let it try to install but it can't because u don't have stock recovery.so it will still try but it will freeze and just pull the battery out then turn the phone back on and it will load right into cwm then just restart your system from there and u will be good to go. Its fast and easy
Sent from my SPH-D710 using xda premium
Any way to stop the phone from asking to update?
pbiancardi said:
Any way to stop the phone from asking to update?
Click to expand...
Click to collapse
If I am not mistaken we had an app on our Evo's called FOTa.apk, do a search for it in google and see what they say....I have it on my Xoom and it works fine
I am going to try shfub's method. I think he removed the .zip update file so the phone will have nothing to flash.
I don't know if it is permanent but I clicked on the notification, went to /cache, removed the .zip update file, went back to the notification, asked it to install, had it reboot to recovery and fail, and booted into android. It stopped bugging me and stopped trying to download after that.
Click to expand...
Click to collapse
hmmm, tried that and after a couple days it came back. Anyone got a solution?
abjc89 said:
hmmm, tried that and after a couple days it came back. Anyone got a solution?
Click to expand...
Click to collapse
Do the same thing, except this time, after the failed install, when you are back in Android, type in adb shell or terminal
su
pm disable com.samsung
Alternatively you could freeze System Updates in Titanium.

[APP] HTC Quick Root - Root ANY HTC Device!

Building on the Framework of my other apps, I present to you my easy, quick and efficient Rooting solution for ANY HTC Device.
Check out the link for more info and Download:
http://forum.xda-developers.com/showthread.php?t=1870652
Sent from my HTC Desire S using Tapatalk 2
Looks interesting. :good:
Do I need to perform a fresh backup of my device before proceeding, or is it simply a case of running your app and then 'hey presto' it's done, i.e. nothing is removed from SD, etc.?
Gazington said:
Looks interesting. :good:
Do I need to perform a fresh backup of my device before proceeding, or is it simply a case of running your app and then 'hey presto' it's done, i.e. nothing is removed from SD, etc.?
Click to expand...
Click to collapse
Hey presto, select method, click Root Device, wait and Done!
Sent from my HTC Desire S using Tapatalk 2
lyriquidperfection said:
Hey presto, select method, click Root Device, wait and Done!
Sent from my HTC Desire S using Tapatalk 2
Click to expand...
Click to collapse
it isn't working..??
do we need to install custom recovery as i'm not able to root
kantry123 said:
it isn't working..??
do we need to install custom recovery as i'm not able to root
Click to expand...
Click to collapse
Everything should be stock - Rom and Recovery for Universal Exploit to work.
Sent from my HTC Desire S using Tapatalk 2
Ok, so I ran the tool choosing 'Universal Exploit' and 'Flash HBOOT Image' and it all goes swimmingly until the device reboots. I get taken to the phone+red triangle warning screen and a 'cannot find file' error pops up (see attached image file).
Any ideas? Device is defo set to USB Debugging mode. Was plugged in as 'Charge Only' - should this suffice? Or should it be connected via HTC Sync or something else?
Cheers for any help OP.
P.S. Was able to reboot 'phone fine, so nothing bad has happened
Gazington said:
Ok, so I ran the tool choosing 'Universal Exploit' and 'Flash HBOOT Image' and it all goes swimmingly until the device reboots. I get taken to the phone+red triangle warning screen and a 'cannot find file' error pops up (see attached image file).
Any ideas? Device is defo set to USB Debugging mode. Was plugged in as 'Charge Only' - should this suffice? Or should it be connected via HTC Sync or something else?
Cheers for any help OP.
P.S. Was able to reboot 'phone fine, so nothing bad has happened
Click to expand...
Click to collapse
Hi mate do a google search and download and install visual basic power pack. I'll remove this depandancy in the next update. The app should then work fine.
Sent from my HTC Desire S using Tapatalk 2
lyriquidperfection said:
Hi mate do a google search and download and install visual basic power pack. I'll remove this depandancy in the next update. The app should then work fine.
Sent from my HTC Desire S using Tapatalk 2
Click to expand...
Click to collapse
Cheers for the speedy response. Will do so and update shortly. :good:
Gazington said:
Cheers for the speedy response. Will do so and update shortly. :good:
Click to expand...
Click to collapse
Here ya go matey:
http://go.microsoft.com/fwlink/?LinkID=145727&clcid=0x804
(Visual Basic Power Pack 10.0)
Sent from my HTC Desire S using Tapatalk 2
OK, so I tried your app again but this time didn't bother with Flash HBOOT Image and everything appeared to go OK.
However, I noticed in the log that 3 of the files (Busybox, su and Superuser.apk) had failed to copy across (out of memory?), despite the operation apparently having been completed (see attached jpg).
Also, when the device had rebooted, I tried to use the Application Status Bar and received the following error message:
"application Status Bar (process com.android.systemui) has stopped unexpectedly. Please try again."
Click to expand...
Click to collapse
The above message also contained a 'Force Close' button which on pressing obviously disables the Status Bar.
The device is still working, other than this error, but I'm not seeing any change to root capability - guessing it's because Busybox, su and Superuser failed to copy across? Could I just copy them on to the device manually?
Cheers in advance for any info.
Free up some memory on your device and be sure to delete everything in /data/local/tmp also. I will add error checking for the out of memory error in next release.
Sent from my HTC Desire S using Tapatalk 2
Unfortunately, after doing the above, running the app is still giving the same error and the Application Status Bar is also still giving the same error.
To make doubly sure, I backed up my device and restored it to Factory Settings (which cured the original app Status Bar error). This also meant that all data was erased from the device so memory shouldn't be an issue. However, as said above, the app is still returning the same memory error?
I'm happy to keep giving this a go so let me know your thoughts.
Hopefully we'll get to the bottom of it.
fake
Gazington said:
OK, so I tried your app again but this time didn't bother with Flash HBOOT Image and everything appeared to go OK.
However, I noticed in the log that 3 of the files (Busybox, su and Superuser.apk) had failed to copy across (out of memory?), despite the operation apparently having been completed (see attached jpg).
Also, when the device had rebooted, I tried to use the Application Status Bar and received the following error message:
The above message also contained a 'Force Close' button which on pressing obviously disables the Status Bar.
The device is still working, other than this error, but I'm not seeing any change to root capability - guessing it's because Busybox, su and Superuser failed to copy across? Could I just copy them on to the device manually?
Cheers in advance for any info.
Click to expand...
Click to collapse
its fake leave dude,
it bricked my device and i had to pay 500 buck to unbrick,
do at ur own risk,
{i m sry to d owner of d post}
hemantshah3 said:
its fake leave dude,
it bricked my device and i had to pay 500 buck to unbrick,
do at ur own risk,
{i m sry to d owner of d post}
Click to expand...
Click to collapse
It's not fake and as a recognised developer in the xda community I can safely say there is no possible way my app can brick your device unless you flash an incorrect hboot which then is your own fault and risk!
Sent from my HTC Desire S using Tapatalk 2
lyriquidperfection said:
It's not fake and as a recognised developer in the xda community I can safely say there is no possible way my app can brick your device unless you flash an incorrect hboot which then is your own fault and risk!
Sent from my HTC Desire S using Tapatalk 2
Click to expand...
Click to collapse
Don't worry, chap, I don't think there's anything fake about what you're trying with this app. Unlike the person above who claimed you were. I mean, £500 to un-brick a Wildfire S?!?! You could probably buy 4 of them brand new for that amount of cash!
Is it worth me giving your updated version of the app another go? If the app finds an error with HTC patching the exploit will the app simply terminate and return my device to its original state?
Any info greatly appreciated.
Cheers.
Gazington said:
Don't worry, chap, I don't think there's anything fake about what you're trying with this app. Unlike the person above who claimed you were. I mean, £500 to un-brick a Wildfire S?!?! You could probably buy 4 of them brand new for that amount of cash!
Is it worth me giving your updated version of the app another go? If the app finds an error with HTC patching the exploit will the app simply terminate and return my device to its original state?
Any info greatly appreciated.
Cheers.
Click to expand...
Click to collapse
Yes its fine the command will report permission denied to the app if the exploit is patched so the app will inform you.
Sent from my HTC Desire S using Tapatalk 2
lyriquidperfection said:
Yes its fine the command will report permission denied to the app if the exploit is patched so the app will inform you.
Sent from my HTC Desire S using Tapatalk 2
Click to expand...
Click to collapse
Cheers for the speedy response. I'll give it a go and let you know in due course.
Have tried with the latest version of the app and the 'Out of Memory' error has appeared again (see attached image)?
Any ideas?
Device is running fine, i.e. it's working like it was before attempting the Root, so no worries in that regard. :good:
Gazington said:
Have tried with the latest version of the app and the 'Out of Memory' error has appeared again (see attached image)?
Any ideas?
Device is running fine, i.e. it's working like it was before attempting the Root, so no worries in that regard. :good:
Click to expand...
Click to collapse
I need to figure out why the files will not push to the device. It looks like temp root is achieved which is half the battle. At least you know the exploit works on your device. I'll look into the out of memory error.
Sent from my HTC Desire S using Tapatalk 2
lyriquidperfection said:
I need to figure out why the files will not push to the device. It looks like temp root is achieved which is half the battle. At least you know the exploit works on your device. I'll look into the out of memory error.
Sent from my HTC Desire S using Tapatalk 2
Click to expand...
Click to collapse
Thanks again for the quick reply and good luck. I'll keep my fingers crossed the answer presents itself to ya. :good:

Android System [UID] Root

Hello guys. I've rooted my Galaxy Nexus and since I change my kernel to franco.kernel, every time I open an app or from time to time when I'm using the phone I see a notification of Android System [UID] allowing access to something and the first time it appeared I was asked to give it root permissions. Is it anything I should worry about?
felystar said:
Hello guys. I've rooted my Galaxy Nexus and since I change my kernel to franco.kernel, every time I open an app or from time to time when I'm using the phone I see a notification of Android System [UID] allowing access to something and the first time it appeared I was asked to give it root permissions. Is it anything I should worry about?
Click to expand...
Click to collapse
Question: What method did you use to root your device?
Next question: Every time you see Android System giving root permissions to an app, is it giving permissions to an app YOU WILLINGLY gave permissions to before?
I used a software for Windows called Nexus Root Toolkit. And no, it gives permission to something every two minutes or so, but not to apps I gave permission before. The first time I booted my phone after the installation I think it didn't appear, I started seeing it after changing my kernel to franco.kernel.
Enviado desde mi Galaxy Nexus usando Tapatalk

How to stop Popup ads on zenfone 2

Hi
I got a Zenfone 2 from gearbest. I keep getting popup ads randomly appearing. Has anyone else had this problem? How can I remove these pesky ads?
Thanks
Wipe & install rom from scratch
Inviato dal mio ASUS_Z00AD utilizzando Tapatalk
keikkio said:
Wipe & install rom from scratch
Inviato dal mio ASUS_Z00AD utilizzando Tapatalk
Click to expand...
Click to collapse
I tried doing this through recovery . But it's the same after wipe and clean install.
Thanks
What ads exactly? Have you tried uninstalling all the unneeded bloatware the phone comes with?
Sent from my ASUS_Z00AD using Tapatalk
yrtrnc said:
Hi
I got a Zenfone 2 from gearbest. I keep getting popup ads randomly appearing. Has anyone else had this problem? How can I remove these pesky ads?
Thanks
Click to expand...
Click to collapse
Please go through this;
https://blog.lookout.com/blog/2015/11/04/trojanized-adware/
nishuksd said:
Please go through this;
https://blog.lookout.com/blog/2015/11/04/trojanized-adware/
Click to expand...
Click to collapse
Ok. This seems like the problem.
Any ideas on remedies?
Thanks
Sent from my SM-N9000Q using XDA Free mobile app
yrtrnc said:
Ok. This seems like the problem.
Any ideas on remedies?
Thanks
Sent from my SM-N9000Q using XDA Free mobile app
Click to expand...
Click to collapse
I cannot confirm whether your device is infected by that mentioned kind of malware.. Can I know which country you belong to?
And if your device is infected, presently there is nothing we can do. Lookout clearly said that for a normal user it's better to replace the device with a new one. And for an advanced user who know well about root/system files, can try removing those malware from root level...
Everyone is at risk, dont worry.. Someone will come up with a solution..
nishuksd said:
I cannot confirm whether your device is infected by that mentioned kind of malware.. Can I know which country you belong to?
And if your device is infected, presently there is nothing we can do. Lookout clearly said that for a normal user it's better to replace the device with a new one. And for an advanced user who know well about root/system files, can try removing those malware from root level...
Everyone is at risk, dont worry.. Someone will come up with a solution..
Click to expand...
Click to collapse
Hello
There must be a way to clear the phone completely. A full wipe somehow and start fresh?
If I knew what the files were I'd delete them from root folders. No problems there.
Thanks
Sent from my SM-N9000Q using XDA Free mobile app
yrtrnc said:
Hello
There must be a way to clear the phone completely. A full wipe somehow and start fresh?
If I knew what the files were I'd delete them from root folders. No problems there.
Thanks
Sent from my SM-N9000Q using XDA Free mobile app
Click to expand...
Click to collapse
These malwares will not be removed even on full wipe/factory reset or anything. And as I told presently there is no way to remove it. But dont be sure that your device is infected by that one, may be it's something else.., so first you've to check other things, find out if its because of any application installed in your phone!
Remove those suspicious apps, and then check it out..
I removed many apps. But no success.
Any idea on how the malware reinstall itself after a clean wipe?
Sent from my SM-N9000Q using XDA Free mobile app
the malware doesnt reinstall itself.. it simply hides in the system partition which isn't affected my clean wipes.
the only way to remove it is to wipe and restore the system partition.
You could try
http://forum.xda-developers.com/zenfone2/general/asus-zenfone-2-flashing-recovery-mode-t3096596
under 3.1) Rooting Zenfone 2
use method 1
that will flash a clean image to your system partition, albeit with root and its caveats like "DO NOT TAKE OTAs, flash manually"
google is the real criminal...
hi guys..first of all install addons detector from playstore..use it ..it will show you all apps with adv.addons…delete those apps….second go to apps..google..yes..google…that is the main culprit..delete all your stored history…caches..cookies etc…third always browse the web in incongnito mode/do not track mode.whenever there is a pop up on your mobile..see the ad closely ..u will see :i:..press it..it will take you to its source..(google)..follow instructions…and you will be fine !! and last but not least…bless me..!!
nishuksd said:
These malwares will not be removed even on full wipe/factory reset or anything. And as I told presently there is no way to remove it. But dont be sure that your device is infected by that one, may be it's something else.., so first you've to check other things, find out if its because of any application installed in your phone!
Remove those suspicious apps, and then check it out..
Click to expand...
Click to collapse
what does it mean.. i think wiping out entire partition will sort the issue. re partition you device. or wipe and reflash every partition with fastboot commands
The problem is Gearbest. They do this on almost every freaking phone they sell, and in the case of ZF2, they even make it in a way that you are unable to even update the ROM (it gives error everytime). They do this more notoriously on Xiaomi devices, they just come loaded with adware with no chance of getting rid of it, at least for regular smartphone users.
Anyway, i bought mine last month and the way i did it was this:
Convert the SKU from CN to WW (search here the thread on how to do it)
Flash phone with Asus Flash Tool, i used the oldest available LL build, from 05/2015
Reboot to recovery, connect to PC and update to latest LL build via ADB
Reboot to recovery again and update to the first MM build via ADB
Boot the phone normally, put latest MM firmware zip file on internal storage or sdcard and update via update notification.
There you go, a ZE551ML updated to latest official MM firmware, with WW SKU.
JBolho said:
The problem is Gearbest. They do this on almost every freaking phone they sell, and in the case of ZF2, they even make it in a way that you are unable to even update the ROM (it gives error everytime). They do this more notoriously on Xiaomi devices, they just come loaded with adware with no chance of getting rid of it, at least for regular smartphone users.
Click to expand...
Click to collapse
Then, GTFO Gearbest and never buy anything from this ****ing company, again, ever.
Sent from my ASUS_Z00A using XDA Labs

Categories

Resources