Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device admin activated, but need device owner #36

Open
ashpro1212 opened this issue Nov 30, 2023 · 7 comments
Open

Device admin activated, but need device owner #36

ashpro1212 opened this issue Nov 30, 2023 · 7 comments

Comments

@ashpro1212
Copy link

Hello there im new to these things and also kinda a newbie to github so sorry if idk what im talking about when i try to use Dhizuku with shizuku i keep running into Device admin activated, but need device owner. "ConsoleError(code=1, read=, error=java.lang.RuntimeException: Can't set package ComponentInfo{com.rosan.dhizuku/com.rosan.dhizuku.server.DhizukuDAReceiver} as device owner.
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:204)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:115)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:56)
at com.android.commands.dpm.Dpm.main(Dpm.java:41)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)"

@ashpro1212
Copy link
Author

There are more. "ConsoleError(code=1, read=, error=java.lang.RuntimeException: Can't set package ComponentInfo{com.rosan.dhizuku/com.rosan.dhizuku.server.DhizukuDAReceiver} as device owner.
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:204)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:115)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:56)
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:339)
)
at f5.s.g(SourceFile:296)
at s5.a.u(Unknown Source:8)
at g6.g0.run(Unknown Source:102)
at kotlinx.coroutines.internal.e.run(Unknown Source:11)
at kotlinx.coroutines.scheduling.i.run(Unknown Source:2)
at kotlinx.coroutines.scheduling.a.run(SourceFile:77)"

@fu8765
Copy link

fu8765 commented Dec 11, 2023

@ashpro1212 have you tried these #19

@bkosse
Copy link

bkosse commented Feb 20, 2024

I did do everything mentioned here #19 , but no luck.

  1. Setup Shizuku (successful)
  2. Installed Accounts app (successful)
  3. Installed Hail app (successful)
  4. Listed all accounts using Accounts app, copy to clipboard (successful)
  5. Past all accounts in Hail app (successful)
  6. Freeze all apps using method Shizuku - Disable (successful)
  7. Run Dhizuku activation using Activation by Shizuku (not successful)

I still get the message "Not allowed to set the device owner because there are already some accounts on the device."

I also added my password manager to the list in Hail, because it was not listed by Accounts.

@catmeowjiao
Copy link

I'm the same way

@catmeowjiao
Copy link

 adb shell dpm set-device-owner com.rosan.dhizuku/.server.DhizukuDAReceiver
java.lang.RuntimeException: Can't set package ComponentInfo{com.rosan.dhizuku/com.rosan.dhizuku.server.DhizukuDAReceiver} as device owner.
	at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:149)
	at com.android.commands.dpm.Dpm.onRun(Dpm.java:96)
	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:285)

@DARK7BEAST
Copy link

i too follow each step. and getting same error

@incapdns
Copy link

incapdns commented Jun 8, 2024

I even tried to format my phone without success.

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

No branches or pull requests

6 participants