この構文ってどうすればDeviceOwnerが使用できますか?java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device -- バカですが 2022-02-26 (土) 22:46:15
some accounts on the device と書いてあるので、設定→アカウントと行ったところにあるアカウントを選択して「アカウントの削除」を選択しましょう。※全部消しましょう そしてもう一度実行してみればできると思います。できたらもう一度アカウントにログインしなおすなりなんなりしてください -- Nm12 2022-02-26 (土) 23:42:30
CPad Customize ToolにDevice Ownerの機能を許可するためadb shell dpm set-device〜と記事掲載のadbコマンドを打ち込んだら java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device at android.os.Parcel.createException(Parcel.java:1958) at android.os.Parcel.readException(Parcel.java:1918) at android.os.Parcel.readException(Parcel.java:1868) 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:340) Caused by: android.os.RemoteException: Remote stack trace: at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:7895) at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:7185) at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:1095) at android.os.Binder.execTransact(Binder.java:731) と返され、アプリを見ても許可されていませんでした。どうしたらよろしいでしょうか? -- 名無し 2023-02-25 (土) 15:45:31
at android.os.Parcel.createException(Parcel.java:1958) at android.os.Parcel.readException(Parcel.java:1918) at android.os.Parcel.readException(Parcel.java:1868) 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:340) Caused by: android.os.RemoteException: Remote stack trace: at com.android.server.devicepolicy.DevicePolicyManagerService.enforceCanSetDeviceOwnerLocked(DevicePolicyManagerService.java:7895) at com.android.server.devicepolicy.DevicePolicyManagerService.setDeviceOwner(DevicePolicyManagerService.java:7185) at android.app.admin.IDevicePolicyManager$Stub.onTransact(IDevicePolicyManager.java:1095) at android.os.Binder.execTransact(Binder.java:731) -- railroad_crossing 2023-04-01 (土) 15:21:58
ログですSTACK BACKTRACE java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=794360321, result=-1, data=Intent { dat=content://com.android.providers.downloads.documents/document/116 flg=0x43 }} to activity {com.saradabar.cpadcustomizetool/com.saradabar.cpadcustomizetool.view.activity.StartActivity}: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at android.app.ActivityThread.deliverResults(ActivityThread.java:4391) at android.app.ActivityThread.handleSendResult(ActivityThread.java:4433) at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1836) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6702) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1 at y0.o.t0(Unknown Source:68) at y0.o.E(Unknown Source:105) at androidx.fragment.app.x$i.a(SourceFile:6) at androidx.activity.result.d.b(Unknown Source:41) at androidx.activity.ComponentActivity.onActivityResult(Unknown Source:2) at androidx.fragment.app.p.onActivityResult(Unknown Source:5) at android.app.Activity.dispatchActivityResult(Activity.java:7454) at android.app.ActivityThread.deliverResults(ActivityThread.java:4384) ... 11 more -- 2023-05-22 (月) 09:59:43
Windows 7 Proffesional ADB環境あり -- ななしのごんべい 2023-06-04 (日) 15:21:19
Windows 7 Proffesional ADB環境あり タブレットはnextですが、カスタマイズツールにデバイスオーナーを付与できません。adbコマンドはコピペです。 -- ななしのごんべい 2023-06-04 (日) 15:22:50