ADB installed apk not showing or launchable - android

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

Related

How to remove apps from Samsung phone by pushing file with package names with ADB

Several years ago, a friend of mine was working on a Samsung S8 Active. He was trying to remove most of the apps on it so it was just a basic phone. He had some instructions for a Ponderosa system. He was having trouble with several things so I was helping him. We got a list of all the packages on the phone using ADB and then copied them into a text editor. We removed the name of any package that we didn't want and then saved the file and pushed it back onto the phone using ADB again. I'm not certain but there might have been an app or something on the phone that had something to do with it as well but the end result was that only the apps on the list were left on the phone. I believe that we could put a password in on the phone and the apps came back but I'm not 100% sure.
Since then I have lost the papers that had the instructions on them and the place we originally got them from no longer has them either. I have another Samsung S8 Active that needs the same system (or simular) put on it. I know how to get a list of all the app package names using ADB.
adb shell pm list packages
But does anyone know of a system that would be capable of removing apps by pushing a file to the phone? Is there an app that would work like I described? Any help would be appreciated.
If you have the list of packages to remove in pkgs2rm, this would uninstall all the packages as long as they are installed apps
xargs -l adb uninstall < pkgs2rm

Android emulator. Its posible сomplete removal com.google.android.googlequicksearchbox?

AVD Manager installs pure android. Most of the components do nothing, except that they flood a huge amount of unnecessary information into the logs.The champion among them is com.google.android.googlequicksearchbox. It writes a lot of information to the Logcat and jobscheduler (adb shell dumpsys jobscheduler). Can i somehow remove this component, which is essentially useless and only floods?
For grins I tried:
adb shell
su
pm uninstall package com.google.android.googlequicksearchbox
The system rebooted itself and the package was there again. So no, I don't think it's possible to remove it.
What you can do in Android Studio is, in the Logcat pane, choose Show only selected application (usually on the far right of the header). Then choose your app in the box to the right of the machine selector. That will show only your app in the logcat.

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.

Installing application and uninstalling does not remove completly - Android Studio

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"

Archos 43 Startup Wizard 3rd Party Apps Install

I contacted Archos and they said they don't give developer support because they use straight Android, so I am posting this question here. If someone knows of a better place, please let me know.
The company I work for is reselling the Archos 4.3 as a platform for our product. We have several APKs that we are installing in our production facility. I have some questions about different ways to do this. Can someone point me to a forum or maybe here is the place that can answer some specific questions about the Startup Wizard that can install 3rd party apps?
Our process is currently:
Connect Archos to PC
Touch screen calibration
Skip wizard
Mount as a drive on PC
Copy files to the .system/APK folder
Go to settings / recovery and turn on the startup wizard to run again
Reboot device
touch screen calibration (again)
Perform wizard including installing 3rd party apps
Now we are ready to ship
The problem is that his process takes a long time. We would like to shorten it. We did originally plan on using ADB to install our applications, but that was very unreliable. Sometimes ADB would get mixed up and we had to reboot the computer. Keep in mind we are making about 100 per day. ADB was really made for developers to debug and test and doesn't seem to be a real hardened production tool.
If we could change our process to be this:
Connect Archos to PC
Touch screen calibration
Complete wizard
Mount as drive on PC
Copy files to .system/APK
and here is the change if someone can tell me how to do it:
Just run the part of the wizard that installs 3rd party apps
Then we would be done. This would save us the reboot and having to do the touch screen calibration over again.
Does anyone know how to trigger just the process that the startup wizard uses to install 3rd party apps from the .system/apk folder?
I tried writing my own app that installs the APKs, but it makes you go through the UI of approving each app and installing them manually and that takes longer than the startup wizard. The startup wizard is somehow able to install everything in the .system/APK folder without asking the user to go through and approve each one. It assumes that since the user ran the wizard and said yes that they approve. It just shows a toast window that iterates through all of the APKs. There is also a .txt file for each APK that contains the work "shortcut" or "noshortcut" that puts a shortcut or doesn't on the home page.
Thanks....
What do you mean "part of the wizard that installs apps from the .system/apk folder"? There is no such part of that in the standard setup wizard. The closest thing I can think of is at the end of setup when you have configured your account, the restore of your installed apps from an older device. I'm also not sure what you mean by a ".system/apk" folder. Do you mean /system/app? If so, any .apks in there are automatically scanned and "installed" during the early boot of the device, well before setup wizard.
In general, currently Android is intended to be customized by building system images that are installed on devices. There are no facilities in the standard platform for automatically configuring a device without doing that by flashing an updated system image.
The stuff you are talking about installing from a .system/APK folder doesn't sound like anything that is in the standard platform. The only ways to install apps in the standard platform are through the app installer UI, through the shell with "adb install", and of course if you have the Google apps through the Market app. Manufacturers can certainly add their own customizations for installing apps other ways, though.

Categories

Resources