island
island copied to clipboard
Issue when running dpm set-profile-owner on android 14
Running this command on android 14 returns an IllegalArgumentException
error, seems like on the newest version of dpm the --name
argument for set-profile-owner
was removed.
dpm set-profile-owner --user 0 --name Mainland com.oasisfeng.island/.IslandDeviceAdminReceiver
output:
java.lang.IllegalArgumentException: Unknown option: --name
at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.parseArgs(DevicePolicyManagerServiceShellCommand.java:358)
at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.runSetProfileOwner(DevicePolicyManagerServiceShellCommand.java:284)
at com.android.server.devicepolicy.DevicePolicyManagerServiceShellCommand.onCommand(DevicePolicyManagerServiceShellCommand.java:89)
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:11422)
at android.os.Binder.shellCommand(Binder.java:1071)
at android.os.Binder.onTransact(Binder.java:888)
at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:6340)
at android.os.Binder.execTransactInternal(Binder.java:1337)
at android.os.Binder.execTransact(Binder.java:1278)
Facing the same issue. It's still there based on the adb documentation, though.
https://developer.android.com/tools/adb#dpm
apparently it works despite the error message. GenesisOS A14.
the same issue, but it's actually executed already though, just restart island in your phone and you'll find it's managed now.
I got the same error message, and it did NOT work for me. I restarted island and it's not Managed Mainland...
I did get it working by removing --name Mainland from the command though.
Enabling Managed Mainland removes Developer Options???? Choices choices... I need dev options and wireless debugging for adb