How to get android.permission.WRITE_SETTINGS on Android Wear? - Java for Android App Development

I found this method which works perfectly fine on phones but on watch it does not work. I tried to give permissions with
Code:
pm grant com.sssemil.advancedsettings android.permission.WRITE_SETTINGS
but it returns error
Code:
Operation not allowed: java.lang.SecurityException: Permission android.permission.WRITE_SETTINGS is not a changeable permission type

Requesting Permissions on Android Wear
http://developer.android.com/training/articles/wear-permissions.html
A few months ago, and if i remember right (But I'm not 100% sure), I read that not all wearable permissions are granted / available for individual developers.

Ashraf Alshahawy said:
Requesting Permissions on Android Wear
http://developer.android.com/training/articles/wear-permissions.html
A few months ago, and if i remember right (But I'm not 100% sure), I read that not all wearable permissions are granted / available for individual developers.
Click to expand...
Click to collapse
There is odd thing with WRITE_SETTINGS permission, it can't be requested same way as any other permission. To get it one needs to open settings app but looks like there is no such activity in Android Wear's settings version.

Related

Root: a little trouble

Hi, guys i look for an answer......i rooted my htc hero, changed rom with last modaco, but when i tried to use some programs it gives me an error concerning root.
For example if i use screenshot program it notices me that i need to be rooted, how is it ossible if i'm already rooted?
Sorry for my english if i made some errors
"rooted" means that you can get root permissions if you want them (like running a program that needs those permission). but for security reasons you don't have this permissions always. so when something want these permissions this dialog shows up and wants your "OK" to give root permissions to this program. thats normal.
There is an app in the menu that is named "root" or something, this is where you set your permission rules, if I remember correctly
Thanx guys.....now the program I needed works.....dunno why yet, but the important is that it works

"Default" permission -- Maps update?

The new Google Maps update requires new / different permissions. It says it needs 'Default' permission, with the description "read Google service configuration".
Does anyone know what default permission is or where I could find a service configuration to read?
It's probably not all that important, Google knows everything about me already but I want to ~feel like~ I have some control.
I don't see such thing in the permissions list. 4.3.0 uses only one permission more than 4.2.0: android.permission.RECORD_AUDIO.
aha! i got that too and this post is the only thing i can find about it.
i found this permission while redownloading fast web installer. anyone got any ideas?

Need some help with Permissions on Android TV M vs Regular Android M. TargetAPI is 19

Need some help with Permissions on Android TV M vs Regular Android M.
So the issue appears that regardless of Target API Version, there is a Modify System Settings permission on M, that does not appear to be on Android-TV.
-This appears to be a different permission than what you approve at install time.
-On Android phones / tablets, this is under the advanced permissions menu.
-AndroidTV is missing this extra menu.
-The App I am testing with runs fine on standard and no permission issues according to logcat, but according to logcat on AndroidTV it is failing to read link on system files, and the modify system settings is the only permission I can't verify is on, on Android TV.
-It appears that M doesn't read this permission in from the Manifest file, and that it is separate.
-Anyone with enough experience to give some thoughts / feedback? A way to check this permission from adb?
Thanks!
bump.

Non-root acccess to /proc/net/{tcp,tcp6,udp,udp6} in Android Q

Up until Android Pie it was possible to read the /proc/net/{tcp,tcp6,udp,udp6} files from apps targeting API level < 28. Access from apps no longer seems to work in Android Q, although the files are still readable using adb shell as a non-root user.
Is there a new permission or something else that apps need for that access?

Fire HD 10 2019 Kids edition - Permission problems

Hi all,
I am having issues with permissions on a Fire HD 10 Kids tablet (2019). The specific access problem is with Storage Permissions Here is the situation :
On the "Parent" Side, I can add or remove permissions in the application section as we would on regular android devices, and these permissions work and I can access Storage of the device.
On the "Kid" Side, Permissions are managed by some sort of MDM system, while it does say Authorized by Administrator, Storage access does not work and says permissions are incorrect. Camera access, Location services both work, but storage still is not allowed.
Question is, Is there a specific MDM section, or ADB commands or anything i can do to look at settings to really ensure that it is authorized?
Hopefully its enough information to get some assistance from you guys
Thanks
Actually, Additional update, whether i give access to the storage or not in the parent profile, it says authorized by administrator on the kid side... I wonder how to reach the Administrator App where those settings reside?
seryser said:
Hi all,
I am having issues with permissions on a Fire HD 10 Kids tablet (2019). The specific access problem is with Storage Permissions Here is the situation :
On the "Parent" Side, I can add or remove permissions in the application section as we would on regular android devices, and these permissions work and I can access Storage of the device.
On the "Kid" Side, Permissions are managed by some sort of MDM system, while it does say Authorized by Administrator, Storage access does not work and says permissions are incorrect. Camera access, Location services both work, but storage still is not allowed.
Question is, Is there a specific MDM section, or ADB commands or anything i can do to look at settings to really ensure that it is authorized?
Hopefully its enough information to get some assistance from you guys
Thanks
Click to expand...
Click to collapse
You can try it:
Code:
adb shell
pm grant <package-name> android.permission.READ_EXTERNAL_STORAGE
//Example
pm grant com.microsoft.office.word android.permission.READ_EXTERNAL_STORAGE

Categories

Resources