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.

7
  • enable sideloading Commented Aug 15, 2015 at 5:52
  • 1
    How? Unknown sources is untickable in 2nd user in lolipop 5.0.2 .
    – Bharat G
    Commented Aug 15, 2015 at 6:40
  • amd first user? I think it's untickable because the main user has disabled it. so any other user can't active it Commented Aug 15, 2015 at 6:41
  • 1
    Main user has it enabled. 2nd user has only option to install apps from play store. Device without gapps are affected...
    – Bharat G
    Commented Aug 15, 2015 at 6:44
  • it's working on cm 12.1. I tried it right now. Commented Aug 15, 2015 at 6:48

1 Answer 1

6

Using the command,

adb install -r whatever.apk

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

Source

4
  • 1
    what if the 2nd user can't enable developer options and so can't enable usb debugging ?
    – niceman
    Commented Feb 23, 2016 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
    Commented Feb 23, 2016 at 19:44
  • If settings.apk is recompiled with this (github.com/CyanogenMod/android_packages_apps_Settings/commit/…) commit or this (android.googlesource.com/platform/packages/apps/Settings/+/…) included, then it will be fixed.
    – Bharat G
    Commented Feb 23, 2016 at 19:48
  • Is there a way without need to use ADB? Any method that might require root or custom recovery maybe?
    – tsilvs
    Commented Dec 29, 2020 at 23:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .