Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Unexpected @ProvisioningPreCondition #17

Open
amiyo-biswas opened this issue Aug 7, 2019 · 3 comments
Open

Unexpected @ProvisioningPreCondition #17

amiyo-biswas opened this issue Aug 7, 2019 · 3 comments

Comments

@amiyo-biswas
Copy link

amiyo-biswas commented Aug 7, 2019

I am getting Unexpected @ProvisioningPreCondition error on some devices (API 28) when set adb shell dpm set-device-owner .
Does any guys meet this issue? Any help would be greatly appreciated.

adb shell dpm set-device-owner com.myapp/.AppAdminReceiver

Error Is

java.lang.IllegalStateException: Unexpected @ProvisioningPreCondition 99
        at android.os.Parcel.createException(Parcel.java:1974)
        at android.os.Parcel.readException(Parcel.java:1934)
        at android.os.Parcel.readException(Parcel.java:1884)
        at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:5863)
        at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:176)
        at com.android.commands.dpm.Dpm.onRun(Dpm.java:106)
        at com.android.internal.os.BaseCommand.run(BaseCommand.java:54)
        at com.android.commands.dpm.Dpm.main(Dpm.java:41)
        at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
        at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:416)
Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:8007)
        at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:7291)
@skywalkerhbz
Copy link

Hello , I meet the same problem on a oppo euqipment also api 28. Excuse me , do you solve this problem in the end? Appreciately!

@VeluFi
Copy link

VeluFi commented Nov 29, 2019

i meet the same issue on realme c2 mobile. how to solve this issue??

@mangoid
Copy link

mangoid commented Feb 20, 2020

Hi , I meet the same problem on oppo a9 . If you solve this problem,Please tell me by [email protected] . Appreciately!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants