App reinstalls after reboot - Samsung Galaxy S8 Questions and Answers

App reinstalls after boot
I did not routed my device or gave this app special permission I programmed it at my self. It only opens Webview. Maybe it is the Packagename [.com]. I tried often to normal uninstall it and also with adb fastboot ,but it still reinstalls after reboot. I have Android 8.0.0 .

Related

Optimising App message on every boot problem

After not using my car for a few weeks everytime I start my car and boot the headunit now it shows the 'Android is Starting Optimising App 1 of 1' message then continues to boot normally. Not sure why this is happening now as I changed any software or installed any new apps since not using the car.
WishiHadAnR32 said:
After not using my car for a few weeks everytime I start my car and boot the headunit now it shows the 'Android is Starting Optimising App 1 of 1' message then continues to boot normally. Not sure why this is happening now as I changed any software or installed any new apps since not using the car.
Click to expand...
Click to collapse
which head unit brand? custom rom or not? xposed installed?
It is a 3rd part installed app but something is indeed wrong. Mostly uninstalling and reinstalling fixes it.
Check your android log (logcat) which app is optimizing as that is written to the logcat.
and I mention xposed as some xposed module hack into an apk and thereby "corrupt" the dalvik cache leading to a new optimisation on every boot.
Joying Intel unit with 2GB on stock ROM but rooted, no Xposed. I've installed a logcat app so what should I search for to find optimising apps?
WishiHadAnR32 said:
Joying Intel unit with 2GB on stock ROM but rooted, no Xposed. I've installed a logcat app so what should I search for to find optimising apps?
Click to expand...
Click to collapse
You should search for that optimizing message in the logcat.
The other (very boring and time consuming) action you can do is to uninstall and reinstall the third party apps one by one and do a reboot.
surfer63 said:
You should search for that optimizing message in the logcat.
The other (very boring and time consuming) action you can do is to uninstall and reinstall the third party apps one by one and do a reboot.
Click to expand...
Click to collapse
I've checked the log after every reboot and it never mentions anything to do with optimising apps. Is it possible logcat does not have permission to view this as when I start the app it request extra permissions via ADB to view 'all logs'?
Why would this only start happening now, could it just be a recent app update that has triggered it?
WishiHadAnR32 said:
I've checked the log after every reboot and it never mentions anything to do with optimising apps. Is it possible logcat does not have permission to view this as when I start the app it request extra permissions via ADB to view 'all logs'?
Why would this only start happening now, could it just be a recent app update that has triggered it?
Click to expand...
Click to collapse
As you are rooted you should be able to see everything.
It could very well be a recent app installation or a recent update.
But I already mentioned that in post 2
Ok thanks I'll try another log app or grant the ADB permissions etc.
It must be an app update as I have not installed any apps before it started and I have very few 3rd party apps installed anyway which update via the Play Store.
Would it be safe to say that I only really need to try uninstalling apps which recently updated before the optimising error started?
Problem solved. Turns out it was my Speedometer app causing it.

S10+ keeps randomly restarting, is there any way to find out what's causing it?

And if not would doing a reset of just the settings probably fix it?
Also tried things like clearing cache partition, I didn't really want to do a whole wipe if possible but clearing cache hasn't worked.
It's doing it daily, sometimes a couple of times per day in different apps.
Are there any event logs that would tell me what happened at the point of the restarts?
If I did a while wipe would my settings and apps be restored after? I can't remember about settings but I know it tries to get back your apps but from previous experience you end up with a load you didn't want any more and a load it missed for some reason.
What does anyone think is best?
Thanks
James
A factory data reset might fix it. I would take it to a local repair shop and see what they say. It might be a hardware malfunction in which if so, claim warranty.
I had a problem once with constant restarts, i finally found the problem. I was removing bloatware with ADB and the apps called ANT i removed. They sere somehow linked to the security folder. Once i reinstalled those apps everything was fine.
Also in Device Care you can check if there's an jssue with any apps. (Which May Or May Not Be Related)
my s10 constantly restarts
Darkat70 said:
I had a problem once with constant restarts, i finally found the problem. I was removing bloatware with ADB and the apps called ANT i removed. They sere somehow linked to the security folder. Once i reinstalled those apps everything was fine.
Click to expand...
Click to collapse
Hi
How do I use ADB to remove apps? how can I find out which app is the culprit?
I dont want to factory reset my phone, as I will lose a lot of data, I cant back it up, since it restarts as I start backing app, no matter which app I use
Thanks!
acetrip said:
Hi
How do I use ADB to remove apps? how can I find out which app is the culprit?
I dont want to factory reset my phone, as I will lose a lot of data, I cant back it up, since it restarts as I start backing app, no matter which app I use
Thanks!
Click to expand...
Click to collapse
To get a list of apps
adb shell pm list packages
To uninstall a package
adb shell pm uninstall --user 0 (package name)
Reinstall
adb shell cmd package install-existing (package name)
What is causing is difficult but if you have removed ant services for example, then afterwards setup secure folder access this will cause a loop reboot.
Try remembering if you have recently removed anything.

Microphone permissions resetting after reboot on HD8 7.3.1.6

Hello. It's driving me crazy: microphone access permissions for Google Meet, Microsoft Teams, Facebook Messenger keep reverting to disabled state after reboot. I tried setting them from adb (e.g. pm grant com.google.android.apps.meetings android.permission.RECORD_AUDIO) but it behaves the same. I do not have profiles enabled, I already wiped cache from recovery, I do not know what to try next. Storage and Camera permissions remain, just the Microphone is stubborn. Please help, thank you.
Update to 7.3.1.7 (a quick bug-fix release), then go through ALL of the tablet settings and toggle every one of them back and forth one time to end up on the correct setting, even if it looks like it is already on the correct setting (sometimes it isn't).
Just received 7.3.1.7 and the problem is still there after restart. Do you have the same version and for you is the microphone permission working fine for either of the sideloaded apps?
I'm having same problem. It seems to be happening only with sideloaded apps.
Actually I take that back, I just tried facebook app downloaded from Amazon appstore and it's also happening.
Restart your Fire tablet and view logs on your Fire tablet using ADB
Code:
//Enter ADB shell
adb shell
//Start logcat
logcat
and you can see the suspected app that revokes microphone permission.

[solved] Google Play Store uninstalled, now cannot get it back

tl;dr: I uninstalled com.android.vending via adb, now re-installing it from APK isn't bringing the icon, or the functionality, back.
So today I tried to use my phone as you do, and "Application Google Play Services has stopped" was popping constantly, stacking the messages one after another, making it hard to even browse through GUI. Restart or clearing app data and app caches didn't helped. So I connected it to PC, and did:
```
adb shell
su
pm disable com.google.android.gms
```
(note: I should've tried "safe mode". But I didn't, so I don't know if it would help.)
The service disable command stopped the errors, but nothing else worked - Google Maps, GMail, even contacts stopped showing - looks like they had no proper local copy (which is concerning as well, but not really the issue I'm trying to solve).
So keeping GMS disabled is not really an option. I tried installing version 21.something and 19.something via adb, these both were constantly crashing as well. I finally went down to `com.google.android.gms_18.7.19` and that one seem to be working. But before that, I started removing services which use GMS - as I assumed the crash is probably caused not by GMS just existing, but by being used incorrectly by other things. One of the removed ones was Play Store - I did:
```
adb shell pm uninstall --user 0 com.android.vending
```
Ok, so no play store. But no problem, it can be easily re-installed from apk, right? Well no. This is the issue.
I tried installing a lot of various versions, but the store just isn't popping in the menu, nor in the activities handlers:
```
# adb shell monkey -p com.android.vending 1
** No activities found to run, monkey aborted.
# adb shell am start -n com.android.vending/com.google.android.vending.activities.MainActivity
Starting: Intent { cmp=com.android.vending/com.google.android.vending.activities.MainActivity }
Error type 3
Error: Activity class {com.android.vending/com.google.android.vending.activities.MainActivity} does not exist.
```
In the "Settings" -> "Applications", the Play Store is on the list, but it is marked as "not installed". Trying to "DISABLE" it or "ENABLE" again does not do anything useful (it uninstalls the version I installed, but original is still missing).
So installing the store succeeds, it just doesn't seem to do anything. Example cmd I use for installation:
```
# adb install -r -d "com.android.vending_19.9.23-all_0_PR_309342545-81992300_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi).apk"
Performing Push Install
com.android.vending_19.9.23-all_0_PR_309342545-81992300_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi).apk: 1 file pushed, 0 skipped. 2.7 MB/s (21821561 bytes in 7.817s)
pkg: /data/local/tmp/com.android.vending_19.9.23-all_0_PR_309342545-81992300_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi).apk
Success
```
I tied extracting all the factory APKs from N910 stock images, but I can't easily figure out which APK stores the shop (yeah, I might try extracting them all, it's one line script after all).
Any idea what's going on, or what I should check?
Ooh..
```
adb install -r --user 0 "com.android.vending_19.9.23-all_0_PR_309342545-81992300_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(nodpi).apk"
```
That worked. It took me far too long to figure out.
So I uninstalled the app from "--user 0" - so from system apps, but tried to re-install it for local user instead. Turns out the Play services won't work if installed this way.
Issue solved.
I started to have exactly the same f***ing issue yesterday! I have wiped all data tried reinstalling ROM and still same errror... Why did this happen?
Does your fix corrects it forever?
I will need to try your solution. Thinking of moving to another custom ROM from almost original one.
Sadly I am getting INSTALL_FAILED_VERSION_DOWNGRADE.
What ROM do you have? Does this work only with stock ROM?
Condensing the story down for people who just want to solve constant "Application Google Play Services has stopped":
If you have this error, try downloading and installing "com.google.android.gms" APK in version "18.7.19".
You don't need to uninstall anything, you can just replace the existing package with:
```
adb install -r -d --user 0 "com.google.android.gms_18.7.19_(040300-262610125)-18719015_minAPI23(armeabi-v7a)(nodpi).apk"
```
options:
* -r will allow re-installing the package on existing installation
* -d will allow to downgrade the package if current version is newer
* --user 0 will install the package as system package, as the original package is installed this way (on Note4 stock images)
You need to find and download the proper APK file first, ofc.
I also have this problem with Google Play services constantly crashing and making phone almost unusable.
I tried clearing app cache, safe mode. Did not help. Only uninstalling updates for Google Play Services stopped constant crashes, but left about half of my apps unusable state because they relay to recent version of GMS.
I will try manually install recent working google play services .apk and see if it helps.
But how to stop automatic update of Google Play Services to the crashing one again? Automatic updates disabled everywhere, including Auto Update Google apps.
dib3ns said:
I also have this problem with Google Play services constantly crashing and making phone almost unusable.
I tried clearing app cache, safe mode. Did not help. Only uninstalling updates for Google Play Services stopped constant crashes, but left about half of my apps unusable state because they relay to recent version of GMS.
I will try manually install recent working google play services .apk and see if it helps.
But how to stop automatic update of Google Play Services to the crashing one again? Automatic updates disabled everywhere, including Auto Update Google apps.
Click to expand...
Click to collapse
Seems that clearing internal storage helped, so I think update + someold settings/data files causes this issue.
Could You please specify? By clearing internal storage You mean wipe all data?
Because Nothing helps, uninstalling Play Services updates, clearing app cache and even clearing the data. Also I cannot manually install google pay services .apk file, after installing it gives me installation failed. Play store installs Play Services, but they start crashing right after that.
Galaxy Note4 910F with stock 6.0.1 Android and Magisk rooted.
The issue returned for me, and I was able to make it go away again by clearing cache & data only for few specific apps. Details here:
[Solved] Error: "Unfortunately, Google Play Services has stopped" On different Note 4 Variants!!
Getting an error on multiple Note 4 variants N910V running Modest Rom & N916K (converted to N910C) running eRobot all within the last couple of days "Unfortunately, Google Play Services has stopped" , seems like a global issue anyone knows why &...
forum.xda-developers.com
I then allowed Google Store to update everything, and the issue didn't come back. So looks like the solution from the above thread really fixed it.
Solved for me. I updated Google Play services from Play Store and appears that Google fixed the botched update by releasing new version. Hope they never botch it again and not trash my phone, but more permanent fix needed, like completely preventing unnecessary auto updates to critical Android parts.

adb commands are not effective

Hello
According to the forum research if i
- perform factory reset then the previously debloated apps will be reinstalled
- they can be reinstalled by adb command adb shell cmd package install-existing com.android.something without needing to factory reset.
- disabled (frozen) apps can be enabled through adb pm enable <packagename>
I have tried al three but it does not work. the commands were correctly used.
- If i perform factory reset (tried only through twrp recovery clearing cache, dalvik,data) then after initial setup the previously debloated apps are not back (i did not try factory reset through system settings yet because i dont know how it affects magisk)
Edit: only Kids mode got reinstalled. strange!
- If i use adb command adb shell cmd package install-existing com.android.something the terminal gives back that "the app was succesfully installed to user 0" but after checking the tablet the app is nowhere. I have tried it using the newest adb fastboot toolkit which has a nice terminal UI so i can reinstall all apps at once- which apps should be present on the tablet they give back "the app was succesfully installed to user 0" (they were uninstalled from user 0 so installing to user 0 should be fine) but they are not reinstalled.
- Titanium backup had accidentally frozen two apps, one is smart things, the second it android system webview- i cannot defrost them through titanium backup. I have tried several apps but none of them defrosts back. I have tried adb command pm enable <packagename> which gives me message "package succesfully enabled" but after checking state through adb pm list packages -d or tablet app setting they are still frozen.
My samsung tablet is rooted (at least i believe rooting was succesful because root checker says that) and on stock ROM.. It is strange that none of these commands are effective.
Does anybody have any clue why?
Thank you

Resources