island icon indicating copy to clipboard operation
island copied to clipboard

"...Unknown admin: ComponentInfo..." error message

Open yevheniikom opened this issue 1 year ago • 3 comments

I am trying to follow the instruction(https://island.oasisfeng.com/setup.html) and setup the work profile manually. Android 12. Insular installed from F-Droid

$ dpm set-profile-owner --user 0 --name Mainland com.oasisfeng.island.fdroid/.IslandDeviceAdminReceiver

Exception occurred while executing 'set-profile-owner':
java.lang.IllegalArgumentException: Unknown admin: ComponentInfo{com.oasisfeng.island.fdroid/com.oasisfeng.island.fdroid.IslandDeviceAdminReceiver}
        at com.android.server.devicepolicy.DevicePolicyManagerService.findAdmin(DevicePolicyManagerService.java:3304)
        at com.android.server.devicepolicy.DevicePolicyManagerService.setActiveAdmin(DevicePolicyManagerService.java:3885)
        at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.runSetProfileOwner(DevicePolicyManagerServiceShellCommand.java:283)
        at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.onCommand(DevicePolicyManagerServiceShellCommand.java:91)
        at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
        at android.os.ShellCommand.exec(ShellCommand.java:38)
        at com.android.server.devicepolicy.DevicePolicyManagerService.onShellCommand(DevicePolicyManagerService.java:10707)
        at android.os.Binder.shellCommand(Binder.java:986)
        at android.os.Binder.onTransact(Binder.java:860)
        at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:7615)
        at android.os.Binder.execTransactInternal(Binder.java:1220)
        at android.os.Binder.execTransact(Binder.java:1179)

yevheniikom avatar Jul 23 '22 09:07 yevheniikom

Yeah same to me a while ago. That was happend when I tried to use Adb.

Pocarai avatar Jul 25 '22 14:07 Pocarai

Hi Guys! I had same problem. I was able to solve this issue. Just follow these steps:

  1. Extract Island APK file.
  2. Copy it to your Computer.
  3. Install APK File using this command: adb install --user path/to/apk/file

MadCkull avatar Dec 05 '22 04:12 MadCkull

I am trying to follow the instruction(https://island.oasisfeng.com/setup.html) and setup the work profile manually. Android 12. Insular installed from F-Droid

$ dpm set-profile-owner --user 0 --name Mainland com.oasisfeng.island.fdroid/.IslandDeviceAdminReceiver

Exception occurred while executing 'set-profile-owner':
java.lang.IllegalArgumentException: Unknown admin: ComponentInfo{com.oasisfeng.island.fdroid/com.oasisfeng.island.fdroid.IslandDeviceAdminReceiver}
        at com.android.server.devicepolicy.DevicePolicyManagerService.findAdmin(DevicePolicyManagerService.java:3304)
        at com.android.server.devicepolicy.DevicePolicyManagerService.setActiveAdmin(DevicePolicyManagerService.java:3885)
        at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.runSetProfileOwner(DevicePolicyManagerServiceShellCommand.java:283)
        at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.onCommand(DevicePolicyManagerServiceShellCommand.java:91)
        at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
        at android.os.ShellCommand.exec(ShellCommand.java:38)
        at com.android.server.devicepolicy.DevicePolicyManagerService.onShellCommand(DevicePolicyManagerService.java:10707)
        at android.os.Binder.shellCommand(Binder.java:986)
        at android.os.Binder.onTransact(Binder.java:860)
        at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:7615)
        at android.os.Binder.execTransactInternal(Binder.java:1220)
        at android.os.Binder.execTransact(Binder.java:1179)

fdroid ver has different package ID,

dpm set-profile-owner --user 12 com.oasisfeng.island.fdroid/com.oasisfeng.island.IslandDeviceAdminReceiver

galenzhao avatar Jan 30 '24 14:01 galenzhao