island: Android 11 can't create user

Device: pixel2 with RPP1.200123.016

Island setup with Android 10, after upgrade to Android 11, Island works fine.

After active the God mode, launch Island but don’t create work profile. Then manual setup

pm create-user --profileOf 0 --managed Island
Error: android.os.ServiceSpecificException: Cannot add user: no_add_managed_profile is enabled. (code 1)
Error: couldn't create User.

In the document https://developer.android.com/reference/android/os/UserManager#DISALLOW_ADD_MANAGED_PROFILE

DISALLOW_ADD_MANAGED_PROFILE Added in API level 26 Deprecated in API level R public static final String DISALLOW_ADD_MANAGED_PROFILE This constant was deprecated in API level R. As the ability to have a managed profile on a fully-managed device has been removed from the platform, this restriction will be silently ignored when applied by the device owner.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 20 (4 by maintainers)

Most upvoted comments

Is there a solution to this problem available ? Iam stuck with the same thing on a Galaxy S20 with Android 11. pm create-user --profileOf 0 --managed Island results in “Error: couldn’t create User”

getprop fw.max_users Shows a set value of 10.

I’m also stuck at the same issue. I’m using Android 10, Samsung Galaxy M31s.

Interesting fact: All of this works when Samsung FBE device encryption is not used. So if you have a rooted phone and re-setup it without encryption (e.g. by flashing multidisabler), Island will install just fine with the root routine of the app. If the phone is encrypted, the step 1 error comes up, and user creation via ADB doesn’t work either.

Very weird.

Is there a solution to this problem available ? Iam stuck with the same thing on a Galaxy S20 with Android 11. pm create-user --profileOf 0 --managed Island results in “Error: couldn’t create User”

getprop fw.max_users Shows a set value of 10.

God mode 激活

walleye:/ $ dpm set-device-owner com.oasisfeng.island/.IslandDeviceAdminReceiver
Success: Device owner set to package ComponentInfo{com.oasisfeng.island/com.oasisfeng.island.IslandDeviceAdminReceiver}
Active admin set to component {com.oasisfeng.island/com.oasisfeng.island.IslandDeviceAdminReceiver}

等几分钟后进入 app,只有主空间,没有 Island 空间

adb 日志

02-22 10:42:15.160  2323  2323 E asisfeng.islan: Not starting debugger since process cannot load the jdwp agent.
02-22 10:42:15.216  2323  2323 I asisfeng.islan: The ClassLoaderContext is a special shared library.
02-22 10:42:15.220  2323  2323 I asisfeng.islan: The ClassLoaderContext is a special shared library.
02-22 10:42:15.223  2323  2323 W asisfeng.islan: Insufficient pre-allocated space to mmap vdex.
02-22 10:42:15.265  2323  2323 D AppListProvider: Provider created.
02-22 10:42:15.271  2323  2323 I ManualProvisioningReceiver: Device owner changed.
02-22 10:42:17.681  2323  2323 I Island.Main: Profile not setup yet
02-22 10:42:17.721  2323  2323 D skia    : Warning: an opaque image should be decoded as opaque - it is being decoded as non-opaque, which will draw slower
02-22 10:42:17.754  2323  2395 I Adreno GLES: QUALCOMM build                   : 641b27b, Id352e9e033
02-22 10:42:17.754  2323  2395 I Adreno GLES: Build Date                       : 05/27/19
02-22 10:42:17.754  2323  2395 I Adreno GLES: OpenGL ES Shader Compiler Version: EV031.26.13.00
02-22 10:42:17.754  2323  2395 I Adreno GLES: Local Branch                     : 
02-22 10:42:17.754  2323  2395 I Adreno GLES: Remote Branch                    : 
02-22 10:42:17.754  2323  2395 I Adreno GLES: Remote Branch                    : 
02-22 10:42:17.754  2323  2395 I Adreno GLES: Reconstruct Branch               : 
02-22 10:42:17.754  2323  2395 I Adreno GLES: Build Config                     : S L 8.0.7 AArch64
02-22 10:42:17.757  2323  2395 I Adreno GLES: PFP: 0x005ff110, ME: 0x005ff066
02-22 10:42:17.774  2323  2395 I Gralloc4: mapper 4.x is not supported
02-22 10:42:17.774  2323  2395 W Gralloc3: mapper 3.x is not supported
02-22 10:42:17.871  2323  2323 W InputMethodManager: Ignoring onBind: cur seq=1458, given seq=1457
02-22 10:42:17.873  2323  2323 I GAv4    : Google Analytics 12.4.51 is starting up. To enable debug logging on a device run:
02-22 10:42:17.873  2323  2323 I GAv4    :   adb shell setprop log.tag.GAv4 DEBUG
02-22 10:42:17.873  2323  2323 I GAv4    :   adb logcat -s GAv4
02-22 10:42:17.881  2323  2405 W GAv4    : CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
02-22 10:42:17.908  2323  2323 I CrashlyticsCore: Initializing Crashlytics 2.6.7.30
02-22 10:42:17.933  2323  2412 I FA      : App measurement is starting up, version: 14710
02-22 10:42:17.933  2323  2412 I FA      : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
02-22 10:42:17.934  2323  2412 I FA      : To enable faster debug mode event logging run:
02-22 10:42:17.934  2323  2412 I FA      :   adb shell setprop debug.firebase.analytics.app com.oasisfeng.island
02-22 10:42:17.940  2323  2412 E FA      : AppMeasurementReceiver not registered/enabled
02-22 10:42:17.941  2323  2412 E FA      : Uploading is not possible. App measurement disabled
02-22 10:42:21.136  2323  2412 I FA      : Tag Manager is not found and thus will not be used
02-22 10:42:22.387  2323  2323 I Island.Main: Profile not setup yet
02-22 10:42:42.724  2323  2323 I ManualProvisioningReceiver: Device owner changed.
02-22 10:42:42.780  2323  2636 D Analytics: Event: device_provision_manual_start
02-22 10:44:01.636  2323  2323 D MPSharedPrefs: Tracking shared preferences: app.scope
02-22 10:44:01.664  2323  2323 E asisfeng.islan: Invalid ID 0x00000000.
02-22 10:44:01.670  2323  2323 I chatty  : uid=10211(com.oasisfeng.island) identical 2 lines
02-22 10:44:01.671  2323  2323 E asisfeng.islan: Invalid ID 0x00000000.
02-22 10:44:01.694  2323  2323 D Island.Apps: Primary filter: Mainland
02-22 10:44:01.725  2323  2323 D Island.AppListProv: Start loading apps...
02-22 10:44:01.742  2323  2323 D Island.Apps: Primary filter: Mainland
02-22 10:44:01.761  2323  2323 D Island.Apps: Primary filter: Mainland
02-22 10:44:01.823  2323  2693 D skia    : Warning: an opaque image should be decoded as opaque - it is being decoded as non-opaque, which will draw slower
02-22 10:44:01.833  2323  2693 W asisfeng.islan: resources.arsc in APK '/data/app/hk.alipay.wallet-mFE86X_ryKpgfKztL0V50A==/base.apk' is compressed.
02-22 10:44:01.838  2323  2693 D skia    : Warning: an opaque image should be decoded as opaque - it is being decoded as non-opaque, which will draw slower
02-22 10:44:01.900  2323  2693 W asisfeng.islan: resources.arsc in APK '/data/app/dji.mimo-i64IaugboPUO_SdwHU8nWQ==/base.apk' is compressed.
02-22 10:44:16.874  2323  2395 D OpenGLRenderer: endAllActiveAnimators on 0x7245197d00 (MenuPopupWindow$MenuDropDownListView) with handle 0x7247944160
02-22 10:44:25.674  2323  2323 W asisfeng.islan: resources.arsc in APK '/data/app/hk.alipay.wallet-mFE86X_ryKpgfKztL0V50A==/base.apk' is compressed.
02-22 10:44:25.789  2323  2323 W asisfeng.islan: resources.arsc in APK '/data/app/com.tencent.wework-4Y-PbsCCKRMKUml34cUFTg==/base.apk' is compressed.
02-22 10:44:28.035  2323  2323 W InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.

激活 God mode 后,请在 Island 内创建新空间(Android P 之后 God mode 已无法再通过 ADB 创建空间)。

如果创建失败,请提供 logcat 以便分析。