SimpleAppProjects / SimpleWear

Control your Android phone from your WearOS watch
Apache License 2.0
107 stars 37 forks source link

Problem with granting WRITE_SECURE_SETTINGS permission #14

Closed Adam4CZ closed 1 year ago

Adam4CZ commented 1 year ago

Hello,

Recently I installed SimpleWear app and the add-on for settings and I ran into a problem with granting WRITE_SECURE_SETTINGS secure permission to control some of the mobile settings. When I run the batch script it gives some error and the secure permission is not granted as you can see on the screenshot.

Screenshot 2023-03-06 102346

I have OnePlus Nord 2T 5G with OS version Oxygen OS 12.1 based on Android 12.

Screenshot 2023-03-06 102445 Screenshot_2023-03-06-10-22-17-12_9492aa3750dca76abb7c25b39a5f1e8e

Is there any update or solution for this problem? Thank you.

The issue is probably the same as closed #4

Adam4CZ commented 1 year ago

Today I tried it also on the new version but still the same issue

Screenshot 2023-03-10 163154 Screenshot_2023-03-10-16-34-22-44_9492aa3750dca76abb7c25b39a5f1e8e

mcfasa09 commented 1 year ago

Same issue on a Galaxy Watch 4 connected to a Pixel 7.

McFaul4 commented 1 year ago

Same Issue with my Galaxy watch 4 Classic LTE connected to the One Plus Nord

VeraPush commented 1 year ago

I have an able write secure problem ... . Can you help

Aradig26 commented 1 year ago

Exception occurred while executing 'grant': java.lang.SecurityException: grantRuntimePermission: Neither user 11218 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS. at android.app.ContextImpl.enforce(ContextImpl.java:2359) at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2387) at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermissionInternal(PermissionManagerServiceImpl.java:1384) at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermission(PermissionManagerServiceImpl.java:1366) at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:551) at android.permission.PermissionManager.grantRuntimePermission(PermissionManager.java:599) at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2604) at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:309) at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97) at android.os.ShellCommand.exec(ShellCommand.java:38) at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:7140) at android.os.Binder.shellCommand(Binder.java:1085) at android.os.Binder.onTransact(Binder.java:903) at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4962) at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:7124) at android.os.Binder.execTransactInternal(Binder.java:1321) at android.os.Binder.execTransact(Binder.java:1280)

thewizrd commented 1 year ago

Please check if you have one of the following settings in Developer options and enable it:

Lastly, reboot and try again

Jprussell2020 commented 1 year ago

Hi i want to inscribe pls.thank you

On Sun, 24 Sep 2023, 06:30 Dave Antoine, @.***> wrote:

Please check if you have one of the following settings in Developer options and enable it:

  • USB debugging (Security settings)
  • Disable Permission Monitoring

Lastly, reboot and try again

— Reply to this email directly, view it on GitHub https://github.com/SimpleAppProjects/SimpleWear/issues/14#issuecomment-1732474152, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAMSBI6NHEIBNZFUIERI73DX36ZO3ANCNFSM6AAAAAAVS3SEHI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Adam4CZ commented 1 year ago

Please check if you have one of the following settings in Developer options and enable it:

* USB debugging (Security settings)

* Disable Permission Monitoring

Lastly, reboot and try again

Yes, it worked. Thank you so much