Installing application and uninstalling does not remove completly - Android Studio - android

I got a strange issue in few of my recent applications.
What I did:
Installing an application either directly using USB cable with Android Studio . Or downloading and installing signed APK through my local server.
Application works fine in all aspects
Uninstalling the application by long press and dragging the app icon to Uninstall icon
Or uninstalling through Settings -> Apps -> Uninstall by selecting the app
Problem:
After uninstall , under Settings -> Apps -> Still the app is shown as below
My application still shows in the list at the bottom with NOT INSTALLED FOR THIS USER message
I am not sure why this is happening. For majority of devices again downloading/installing new APK version from local server does not work unless I again uninstall by clicking on above list and goes to next screen as shown below.
What might be causing this?
Does any other developer faced same issue?
Android Studio Version : 2.1.3
Min SDK in Manifest : 17
Devices Tested : Nexus 4 , OnePlus 3 , Motorolla Gen-3 , Honor
Different Trials Made:
Device is having only one user Owner
Now I have uninstalled an application which was downloaded from App store. This was done successfully without giving an option again with NOT INSTALLED FOR THIS USER
Again complete removal of my application and reinstalling is done. After this , I tried to uninstall again.The same options are shown for my application
NOT INSTALLED FOR THIS USER
Seems to be this is the issue with custom applications and not those installed from App Store. In-fact some steps which probably I am missing. Can anyone point out!!

In Android there is multiuser environment came from Android 4.2,
So when there are multiple user accounts present on the device, and if one user installs the app, it get's installed for all users.
Though when you uninstall it from your user, it's still present in other user.
So it shows that message:NOT INSTALLED FOR THIS USER
To solve this problem, there's are three ways, you can try any one feasible to you:
1. You need to login to that user environment and uninstall the app.
2. Uninstall for all users(you need to be admin user) Go to Settings > Apps, find and open the app info. Then, open the overflow menu (3 vertical dots), and choose Uninstall for all users.
3. You can uninstall app for all users from PC using adb command: adb uninstall on command prompt/shell.

If you have multiple users on your device, which means that the apps are installed by another user,and while you uninstall app the default account is another than this issue occurs
Try this
(from Owner account) Go to Settings > Apps, find and open the app
info. Then, open the overflow menu (3 vertical dots), and choose
Uninstall for all users.
(from PC) Enter adb uninstall on command prompt/shell.
This is the same as "uninstall for all users"

Related

ADB installed apk not showing or launchable

I've installed 5 APKs using the abd install command. Three of the packages install and function as expected but the other 2 (including Brave browser) don't. If I try to access the 2 apps in question via swiping up from the bottom of the screen to reveal the app list (app drawer) but they are not shown. If I go to 'setting > apps' they are viewable but cant be opened. The output of adb dumpsys package packages show that the the apps are installed. Some forums suggest that this may occur if there are more than on account on the device but this isnt the case for me.
Does anyone have any idea why this is happening and how I can get the apps to work as normal.
Thanks

Verify how an Instant App in Android is launched

According to the documentations, an Instant App is downloaded via Google Play and launched on the fly. It is not installed but is rather cached in the Android system. As a developer and user, I would like to validate this behaviour.
I have tried running Clash Royale by hitting the "Try now" - that is when a splash screen is shown with a progress bar (assuming that's when the feature APK is downloaded?) and it launches soon. On exit, there is no application icon which is expected.
In the device storage I looked for trace of the APK but with no success. Do I need ROOT permissions to see this? Is there a way to inspect and verify?
There is still an APK installed.
For O+ devices, run adb shell pm path com.supercell.clashroyale after TRY NOW
And you'll see:
package:/data/app/com.supercell.clashroyale-CUaYOumzCbUDNAdv1MRtRg==/base.apk
package:/data/app/com.supercell.clashroyale-CUaYOumzCbUDNAdv1MRtRg==/split_split_2_tutorial_battles.apk
Do it again after INSTALL (for comparison), and you'll see:
package:/data/app/com.supercell.clashroyale-0Dn0s6yq6WqGCRZ9ETT8bA==/base.apk
package:/data/app/com.supercell.clashroyale-0Dn0s6yq6WqGCRZ9ETT8bA==/split_config.arm64_v8a.apk
package:/data/app/com.supercell.clashroyale-0Dn0s6yq6WqGCRZ9ETT8bA==/split_config.en.apk
package:/data/app/com.supercell.clashroyale-0Dn0s6yq6WqGCRZ9ETT8bA==/split_config.xxxhdpi.apk
(For pre-O devices, the first part won't work, but I don't know any other cmd that will do the same)
You can navigate to Settings -> Apps, and see instant apps there. The App Icon will have Lightning bolt sub-icon at least it looks like that on Samsung Android 12.

Android Studio: Failure [INSTALL_FAILED_USER_RESTRICTED]

I work on Android Studio with Meizu MX6. Previously everything was ok. But it seems after updating Flyme, I started getting this problem:
Failure [INSTALL_FAILED_USER_RESTRICTED]
If I choose "Ok" I get next:
DELETE_FAILED_INTERNAL_ERROR
When I work with another smartphone all right. If I copy apk-file on my phone all right too. It installs and runs. Install software from unknown sources is on.
I had the same issue. It happens only on Flyme due to Security App.
To enable installation:
Open Security Application. (it is one of preinstalled Flyme apps)
Go to Permission
Usb app installation.
Turn off USB installation monitor.
Have found the solution here: http://bbs.flyme.cn/thread-1106582-1-1.html using Google Translate.
I also had the same problem with my Xiaomi Redmi note 3.
here's how i solved it,
Go to settings>>Additional Settings.
Go to developer options.(if its not there, first goto about phone
and tap on build number 7 times...and start again from step 1)
Click on install via USB.
That's all, you are ready to rock :)
The device is temporarily restricted error appears in MIUI 8.5.
To resolve the error you need to make WIFI off and make mobile data on and then enable the option “Install via USB”.
It will work for you.
Enjoy!
I have had the same problem with XIAO MI.
I went to Settings -> Additional Settings -> Developer options -> Turn On "Install via USB"
Only you can activate this switch if you have a Xiaomi count, create and activate your count, then sign on and turn on install via USB.
In my Redmi4 i had the same issue.
The steps followed to overcome:
(1)
Settings -> About Phone -> tap 7-8 times the MIUI version(to activate Developer Options)
Settings -> Additional settings-> Developer Options -> enable USB
debugging -> install via USB
DONE
On Redmi Note 4, Go To
Settings --> System & Device (Additional Settings) --> Developer Options --> Install via USB.
Register using a mobile number(OTP).
Try again, should work.
Redmi Note 7 and pro In developer options Allow USB Debugging, Install Via USB and disable Verify apps over USB
Do you have a rooted phone with some application installed that manages App Access authorisations, like King Root?
I had faced with same problem on one of the devices. There was an app on device with super user access that was blocking the new installation. Had to approve installation in that app first before installing new apks.
This occurs when you select the option "remember my choice" and Decline accidentally.
The only solution I found was to change the name of the package and application, but this is not feasible in many cases
If you got this after mistakenly "Cancel"-ing when you must have selected Remember my choice then some dirty fix would be to:
Manually copy the same debug apk from your build output to the same test phone.
Manually install the apk. (You have to allow installation from unknown sources of course)
Go to "App Manager" and clear preferences.
Restart the debug as usual.
NB: This was put up in a hurry after some wasted hours so, I'm yet to verify if step #3 is necessary for this to work.
NBB: You'd be back to square one if you uninstall the app and try to do a fresh install from the debug so, apparently, the App Manager preference reset doesn't cover whichever subsystem it is that governs the setting.
Yes, I know, this should infer that our first #NB is void but things don't always follow intuition so, I'm leaving it till it's verified. :D

Difference between installing an app from eclipse, adb shell and app store (google play / Samsung app store)

I have an application in which I also create a home screen shortcut. My app supports multiple languages. I am testing if I change the phone language, the home screen shortcut name is updating automatically or not.
If I install the app through eclipse, it works fine and home screen short name updates fine to new language automatically on device language change. But if I install the app through adb (using adb install), the home screen shortcut name does not update automatically on device language change.
So, is their any difference in the way we install app by following ways:
Installing through eclipse
Installing through adb shell
Installing through app store.
I try to install signed application in all cases. please help

Signed App cant install on low end tablet

Hi guys, I know most of people faced the problem same like me.
But I still cant solve this problems.
I had build android app and this app is using Google Map API and Google Places API.
I had signed my apk file using Eclipse wizard, but when I transfer it to my tab (taiwan product) using SD Card it said "application not installed". I never installed this app with debug key before. All others Google Map apps I downloaded from Play store can use well in this tab.
I set min android version is 2.2 and highest is 4.0.3. My tab running on 4.0.3.
I also tried to install this app to other brands low end tablet, and it was successful.
But in my tablet, it failed.
Anybody have idea why I can't install this signed apk file? I had tried so much to solve this.
thanks..
There comes a time in every Android user's life where you want to install an app not found in the Android Market. If it's your first time, you're greeted with, "For security, your phone is set to block installation of applications not obtained from the Android Market" message as you try to install. But how do we get there?
To allow app installs from non-Market apps, tap the menu button on your home screen, then choose Settings >> Applications >> Unknown sources.
Who are these "Unknown sources," and what do they want? Simply put, it's anything other than the Android Market. Could be an app sent by e-mail. Or downloaded from a website.
If you're worried about the security implications of allowing unknown sources, there's an easy fix -- install the app from outside the Android Market, and then hit the checkbox again to turn them back off.
source.

Categories

Resources