Ackpine icon indicating copy to clipboard operation
Ackpine copied to clipboard

Avoid any user interactions

Open julienherrero opened this issue 1 year ago • 2 comments

Hi, to follow #52, I would know if it's possible to avoid any user interactions - even for install.

I have read #52 and the documentations + played with sample, but it seems only relevant for update cases and not install.

Just to be more specific: I am looking for a way to make an internal app store to handle my apps, and avoid any user interaction as it should be transparent for users.

julienherrero avatar Apr 27 '24 15:04 julienherrero

@julienherrero Sadly, a normal third-party app can't install packages silently. Only system-signed apps, device owner apps or affiliated profile owner apps can proceed without user action on fresh install. Ackpine doesn't support these cases specifically as they are already handled in Android system, and if your app falls under these categories, then using Ackpine should not trigger user action.

For further reference, see the Android code which determines requirement for user action: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/services/core/java/com/android/server/pm/PackageInstallerSession.java;drc=074bb2dc367bde42b837a8de4d4e88f26c074c32;l=949 https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/services/core/java/com/android/server/pm/PackageInstallerSession.java;drc=074bb2dc367bde42b837a8de4d4e88f26c074c32;l=2587

solrudev avatar Apr 27 '24 18:04 solrudev

@julienherrero Is your question resolved?

solrudev avatar May 11 '24 13:05 solrudev

Closing due to inactivity.

solrudev avatar May 24 '24 07:05 solrudev

@solrudev Sorry for the delay, and thank you for your (clear) answer 👍

julienherrero avatar May 25 '24 10:05 julienherrero