We’re rewarding the question askers & reputations are being recalculated! Read more.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
1answer
439 views

Why Package Manger (pm) gives error “java.lang.IllegalArgumentException: Unknown permission:” in shell script?

I created a .sh script which sets app permissions on android devices. If I push the script on /sdcard and run it through adb shell with command sh ./test.sh. The following error occurs on each ...
0
votes
2answers
2k views

Why chmod gives “Operation not permitted” error?

I try to execute chmod on a file with Termux, but it sends back an error which I'm unable to solve. My phone is not rooted. If you can help me I would be most grateful to you for this! Here is the ...
2
votes
1answer
4k views

Is there a way to grant myself MANAGE_USERS permission while inside the adb shell?

The thing is that I'm fed up of some stock adware apps on my Micromax phone and want to disable them for good. So, as per this answer, I used adb shell to disable the app, but I'm getting the ...
0
votes
1answer
515 views

How to grant permissions to ADB?

I can use ADB while in recovery mode (TWRP) so to use it normally, I followed Android - Enable ADB from recovery to enable USB debugging. There is always an error while switching users, granting ...
1
vote
0answers
740 views

selinux denies busybox although selinux is set to permissive?

Device-info: Phone: Sony Xperia Z1 Model number: C6903 Android version: 5.1.1 Build Number: 14.6.A.1.236 Rooted, BusyBox and Terminal Emulator installed (Play Store Version!!!) I have formatted an ...
1
vote
0answers
3k views

chroot: can't execute /init.sh: Permission denied - Error while want to start linux on Android

Introduction: I formatted a SDCard in ext4 and copied an ArchVersion on it to run it from Android like in this guide (step 7). Of course my device is rooted and I am running the following scripts and ...
16
votes
2answers
14k views

Read APK permission by shell command

I want to read the requested permissions of an .apk file on the computer (android sdk is installed) via command line. I.E.: $ android read-permissions /path/to/someapp.apk I know this is possible, ...