Questions tagged [packageinstaller]

PackageInstaller offers the ability to install, upgrade, and remove applications on Android devices.

PackageInstaller Class offers the ability to install, upgrade, and remove applications on the Android device. This includes support for apps packaged either as a single "monolithic" APK, or apps packaged as multiple "split" APKs.

An app is delivered for installation through a PackageInstaller.Session, which any app can create. Once the session is created, the installer can stream one or more APKs into place until it decides to either commit or destroy the session. Committing may require user intervention to complete the installation.

Sessions can install brand new apps, upgrade existing apps, or add new splits into an existing app.

Apps packaged as multiple split APKs always consist of a single "base" APK (with a null split name) and zero or more "split" APKs (with unique split names). Any subset of these APKs can be installed together, as long as the following constraints are met:

  • All APKs must have the exact same package name, version code, and signing certificates.
  • All APKs must have unique split names.
  • All installations must contain a single base APK.

enter image description here

Read more

56 questions
0
votes
0 answers

Parallel Installation in Android using PackageInstaller

I am working on an Android app to install few other apps. I am using PackageInstaller to install apps and everything is working fine. Sample code how I am installing other apps PackageInstaller.SessionParams sessionParams = new…
0
votes
1 answer

Cant get PackageInstaller.uninstall working

My app has device admin privilege but yet I'm unable to uninstall the app using packageinstaller. When my code runs it didn't throw any error yet, app I'm trying to uninstall stays there. Any idea what could be wrong? Or how to investigate the issue…
Jan Ovesny
  • 23
  • 6
0
votes
0 answers

Prompt apk Installation not working in android 10 using PackageInstaller API

My app downloads an APK from server. For below Android 10 versions, after apk download the install prompt is working as intended but in Android 10 the apk gets downloaded using PackageInstaller API as mentioned in this link Installing apk that…
Anandroid
  • 1
  • 2
0
votes
1 answer

Problem installing app from apk on LG K20

I developed an Android app using Android Studio and it perfectly works on different devices. The apk was generated as signed. I've tried to install it (through the apk file, using the package installer) on an LG K20 (Android 9) but I noticed an…
A M
  • 831
  • 1
  • 14
  • 26
0
votes
0 answers

Android permission granting keep failing with massage "Package installer has stopped"

I want to use ZXingScannerView, to read QR-code with my app. I need to grant camera permission to use ZXingScannerView, right? The view doesn't work for some reason which I don't know. Anyway, I thought so, so I tried to grant permission, but it…
이현규
  • 11
  • 1
0
votes
0 answers

Install error when trying to update android application programmatically

I wanted to update my Android application to newer version by downloading it from a server but it didn't work(both in code and manually). here is my code: MimeTypeMap map = MimeTypeMap.getSingleton(); String ext =…
Mehran Zamani
  • 831
  • 9
  • 31
-1
votes
2 answers

File is not opened by Package Installer when using intent type application/vnd.android.package-archive

This is my code: i.putExtra(Intent.EXTRA_NOT_UNKNOWN_SOURCE, true); i.setDataAndType(Uri.parse(FileUtil.getPublicDir(Environment.DIRECTORY_DOWNLOADS).concat("/Vertretungsplan.apk")),…
user11411842
-1
votes
1 answer

Why does this error keep popping up when I install my app on AIDE?

I am new to AIDE and am still learning but after I added a app icon it started crashing and it never has done this before, also here is my code for it:
Jalen Paul
  • 71
  • 2
  • 3
-1
votes
1 answer

Android Package Installer

Clicking on the apk file starts the android default installer activity with a cancel button and an install button. I would like to check that the user clicks on install button or on the cancel button. Please guide me thanks
Shoaib
  • 167
  • 2
  • 14
-1
votes
2 answers

Why Android needs the whole package to update?

Normally in desktop applications we see that the patch only applies to the part of the application that were updated, but for Android applications we need to reinstall the whole package. I mean we need to download the whole installer again. Are…
P basak
  • 4,874
  • 11
  • 40
  • 63
-2
votes
1 answer

"Parser error" after downloading upgrading in android

I am developing an application for android which on downloading the upgrade prompts the user to install. But it shows "Parser error: There was a problem while parsing the package."after downloading the file successfully. Following is my code to…
1 2 3
4