Question How to find app that is crashing my phone from logcat? - Google Pixel 6

I have an app or setting that is causing my phone to freeze after booting (about 30 seconds after booting). The phone gets really hot during this time.
To fix it I have to hard reboot then quickly freeze a bunch of apps in Titanium Backup before it hangs again, and then it freezes and reboots by itself after about a minute. I do this process a few times and eventually I have frozen most of the user apps and I can use my phone again.
I then slowly re-enable some apps at a time, and later it freezes again, normally after a reboot.
I have managed to pull a logcat but don't know where to start to try to see which app or process is hanging the phone.
What should I be searching for (exceptions, etc.) and how do I link a message back to an actual app?
Any tips or pointers will be greatly appreciated. Thanks!

There are a few ways to get logs.
One of the easiest is to use MatLog app.

I have a logcat by pulling one from adb but I don't know what to search for to find the crash.

Related

[Q] Prevent Force Stop

I have a security application that I wrote to run on our sales staff tablets. We have several hundred sales people in the field and they are going to use tablets instead of laptops (once we get it done). Here's the problem. The Application cannot be deleted so we root the device and move the application to system/app and the manifest auto starts the program. Now, the problem is we just discovered that you can force stop the application and it does not restart when rebooting the tablet. It only restarts if the user selects it from the apps, until then it stays off (very bad for us). Unfortunately, we cannot have the application turned off, we always need the application to run especially after rebooting. We don't care the force stop stops the program, but it has to restart on boot.
Currently I'm testing on an ASUS TF101 but the same behavior is seen on other tablets.
I have deteremined that I can adb shell and run am startservice -a android.intent.action.MAIN .... which gets it going again, but I don't seem to be able to get this into any startup scripts. The .rc scripts seem to be on the ROM and don't stay modified after you reboot.
So, does anyone have any ideas on how to solve this? I would like to root the device, install our app, unroot it. I would also like any updates not to undo it if the MFG pushes an update. I really don't want to make custom boot images either nor install another app. I could write another app that checks app_1 and restarts it etc etc, but then again all you have to do is force stop them all. I would just really like to remove (disable) the force stop button on our application which runs only on devices we own.
Thanks,
TimmyDean
Did you find any solution for this one?
Thanks

[Q] How would you track down what is causing dormant Android phone reboots?

I frequently hear stories about people catching their dormant Android phones rebooting all of a sudden. They assume one of the apps working in the background might be the cause.
What can be done using its Linux subsystem to track down what exactly caused it to reboot?
Read a logcat in adb to see what causes the reboots. There's a low chance apps can actually cause it, it's most likely a Java fatal exception that requires a hard reboot to resolve.
adb shell
logcat gave me this screen shot.
I tried to install an app to just quickly read and save logcat files to SD card and it made the attached txt.
Which app is good to quickly give me a logcat file to post here?

[Q] What's going on: Weird issues - Unable to uninstall, download from Google play

This one is a weird one. I have not experienced this before.
My wife's HTC One X unrooted, factory unlocked from oversees, still under warranty. Latest JB available (stock).
Just the other day I went to clean up some of her redundant apps that I installed on her phone. All apps were from legitimate sources, Google Play.
Problem 1. I could not uninstall any app. The device would get quite warm, actually very warm. I would do a hard boot and sometimes I would then be able to uninstall the app, most other times no. I even have uninstaller apps and I tried using them and the app would go through the motions. it would seemingly uninstall the apps but it really didn't . On the times it would uninstall apps (it doesn't matter which app or how large or small) it often would take a long time.
Problem 2: Downloading apps from GP. I might be able to get away with downloading one app and installing it. However, most of the time GP would be stuck in "downloading', Again, if I do a hard reboot or even soft reboot, sometimes the download would start and you would see the small tray and down arrow. Most of the times, not. What is odd about this is that if I go to Google Play via desktop and remotely tell GP to install a particular app, it usually does without issue on the device.
Problem 3. I did a factory restore and after a few apps everything was ok. but problem would then develop again. I repeated the process to narrow down which app may be causing issue but I haven't been able to do so. Then, I did a hard reboot again and then the download would be very slow to start, several minutes then it would start up normally. I tried uninstalling an app and it too took a long time initially and then it was ok. However, in between this all, it was not. Even when going to SETTINGS, APPS, seeing info on the app (cache size, etc) would take a very very long time to populate.
The wife has her phone with her today at work, but for now it is operating as it should. However, I am very confident it will return to the way it was.
Does any one know what could be going on? Is this a s/w issue or hardware issue? Is there any way to test to see if the flash drive has bad sectors or is somehow damaged? Perhaps the HTC needs a brand new re-flash to the original ROM ?

Persistent Automatic Polling Force Close App or Automatic Clear App Data App

First off, if anyone is to respond to this question, please do not lecture on dangers or the "why" of forcing closing apps, or how they can be more a detriment on the system, etc. This doesn't answer the question and just makes everyone else who may be seeking an answer more pissed off when someone starts to question you on why do you want that feature, etc. The same goes true on trying to change the subject, or otherwise just failing to answer the question. If you don't know, then don't reply.
I have a [currently] un-rootable tablet which is a Verizon Asus ZT581KL running Android 6.0.1. There is a system update available. There is no [easy] way to ignore or close this update notification. If one says no to available system update (Android 7), it will magically re-appear and is hell bent on at least downloading the update and then trying to force you to pick a time to install it. By not installing the update, one has to suffer the notification that is always there and one has to be mindful to not accidentally hit yes to install the update. Factory reset (annoying) fixes this for about 24 hours.
[do not reply on how to get rid of the notification or other tips which do not answer the question, if you do, I will find you and I will kill you. (unless it's another workaround solution, in which case I will give you a big shiny nickel along with my gratitude)]
On this tablet, the OTA download and installation is run via this system service called FOTAService, and it's a sly little bastard. If you force stop it, it will re-initialize--only if you hit it like 4-5x will it "seem" to stay closed--but it will resume the download once the service is restarted/phone rebooted presumably--I wouldn't be surprised if it tried to start again on it's own if left the device to sit and simmer for a few hours.
However, there is a grimmer of hope: If I goto settings->app manager-> . . .->system apps->FOTAService->Storage and hit clear data, the notification seems to go away. Unknown at this time is if will resume or restart the download on it's own or next reboot. This is a service you cannot disable without root.
There are apps out there that will presumably disable autostartup apps/service even they say without root. I've tried All in One Toolbox, and it did not seem to disable the service--probably because I do not have root.
Obviously I do not want to update android because I will more than likely have better chances on older version versus newer version to be able to root it, if/when it becomes available.
My question: Are there any [good] apps that will allow me to either persistently auto-kill apps/services (the equivalent of manually going to app manager and hitting force close over and over again) via NO ROOT. A program that just makes sure a certain program doesn't load, and if it does will keep killing it
as it spawns a process.
AND/OR
A program that will allow me to do the equivalent of clearing app data/cache either whenever app data is present and/or at predetermined times ..i.e. on an automatic/polling basis.
(mindfart...maybe automateit app can do that..I'll have to check)
If I can have it so something is running keeping FOTAService from spawning or automatically nuking it's app data, that should work and I won't have to worry about it updating behind my back. Any help appreciated.
I might have found a working solution to build on.
https://stackoverflow.com/questions/10934304/clear-android-application-user-data
I could write a script and run it at intervals...I'll report back
smokejumper76 said:
I might have found a working solution to build on.
https://stackoverflow.com/questions/10934304/clear-android-application-user-data
I could write a script and run it at intervals...I'll report back
Click to expand...
Click to collapse
awesome...so many replies..thank you. So, I was able clear app data via this command:
pm clear 'app name' or more specifically issuing the command: pm clear com.asus.dm and it nuked the update for a good 24 hours. I tried creating a .sh script file, but I ran into permission errors. Issuing the command from adb works.
There are a bunch of app/cache cleaners available on the play store, but they all seem to do the same thing: They offer auto cache clearing and some offer interval app cache cleaning, but the ones I saw all seem just clean ALL app cache.
Does anyone know of an app that will allow me to SELECTIVELY set just the app/apps that I want to have their app cache cleared?--and not just ALL apps? If I found that, I could just set it to automatically run whenever, and be done with it. An app cache cleaner that when run, will just do the apps I have selected to be cleared. Does anybody know?

Says "Android is starting..."

So I used the debloat thread to get rid of a lot of things (uninstalling stuff through adb shell). Only problem is I got an error randomly/occasionally that said "Galaxy apps has stopped..." and required me to press a button to get rid of the message. Things were fine so I lived with it, but recently I decided to try and uninstall some more stuff and hopefully get that message to go away.
Now my phone shows my background and says "Android is starting...". It just sits there with a loading bar moving.
I can swipe down the top of the screen and go into settings, then apps, and I can access all my apps, then view on Google Play store.. so I am able to open all my apps just fine, with a bunch of extra steps to get them open. I tested the alarm clock so I can wake up in the morning and it works fine also.
I tried booting into safe mode. I understand I may need to do a factory reset, but I was hoping to avoid going through that.
Any suggestions?
To add insult to injury as I sit here typing this the "Galaxy Apps has stopped" message popped up again! I wasn't even touching my phone lol.
Well, I figured that out.. I must have removed whatever Samsung uses as a launcher. I downloaded another launcher and instantly the "Android is starting" message went away.
Any way to get Samsung's launcher back? I kind of started to like it.. or is there another one you recommend I try?
Reload the firmware via odin

Categories

Resources