3

So, android 5.0.2 doesn't allow side loading of apks for 2nd user (irrespective of whether it is guest or standard user). "Unknown Sources" is disabled and is uncheckable. And I use a pure Cyanogen Mod 12 (android 5.0.2) without any Google apps. So, there is no Play Store app.

But I have root access.

As shown in the pics, Unknown Sources is Uncheckable and installation is blocked.

(Click image to enlarge)

IMG: install-blocked IMG: unknown sources uncheckable

With this situation, how can i install apks on to the 2nd user account??

EDIT:

It seems Google intentionally (in the name of security) blocked sideloading apks for 2nd user in android 5.0.2. There is a bug report here. And sideloading was reenabled in android 5.1.

I will post how to sideload apks on lolipop 2nd user using adb. If this can be done without adb please post.

Firelord
  • 25,084
  • 20
  • 124
  • 286
Bharat G
  • 692
  • 2
  • 10
  • 25

1 Answers1

6

Using the command,

adb install -r whatever.apk

will install the application in 2nd user of android 5.0.2 .

Source

Bharat G
  • 692
  • 2
  • 10
  • 25
  • 1
    what if the 2nd user can't enable developer options and so can't enable usb debugging ? – niceman Feb 23 '16 at 17:41
  • 1
    2nd user cannot enable developer options and usb debugging. When 1st user enables usb debugging and installs this way, the application will appear to 2nd user. If 1st user willingly disables usb debugging, then there is nothing much 2nd user can do in this regard.. – Bharat G Feb 23 '16 at 19:44
  • If settings.apk is recompiled with this (https://github.com/CyanogenMod/android_packages_apps_Settings/commit/338ab4561d7e06619b43f3634be7414afe5389d1) commit or this (https://android.googlesource.com/platform/packages/apps/Settings/+/ceceb2a) included, then it will be fixed. – Bharat G Feb 23 '16 at 19:48
  • Is there a way without need to use ADB? Any method that might require root or custom recovery maybe? – tsilvs Dec 29 '20 at 23:30