java.io.IOException: Cannot run program; error=13, Permission denied - Android Q&A, Help & Troubleshooting

installed an apk I built on flutter and im getting this error from adb logcat:
>java.io.IOException: Cannot run program "/data/user/0/com.invertedx.sentinelx/app_torfiles/tor.so" (in directory "/data/user/0/com.invertedx.sentinelx/app_torfiles"): error=13, Permission denied
it relates to bundled tor which is failing to connect in the app. how do I grant permission?

Related

[Q] permission problem on 6 files in extract-files.sh

Running extract-files.sh to get proprietary files. All is good apart from the following files
failed to copy '/system/etc/firmware/wcnss.b00' to '../../../vendor/Samsung/express/proprietary/wcnss.b00': Permission denied
failed to copy '/system/etc/firmware/wcnss.b01' to '../../../vendor/Samsung/express/proprietary/wcnss.b01': Permission denied
failed to copy '/system/etc/firmware/wcnss.b02' to '../../../vendor/Samsung/express/proprietary/wcnss.b02': Permission denied
failed to copy '/system/etc/firmware/wcnss.b04' to '../../../vendor/Samsung/express/proprietary/wcnss.b04': Permission denied
failed to copy '/system/etc/firmware/wcnss.b05' to '../../../vendor/Samsung/express/proprietary/wcnss.b05': Permission denied
failed to copy '/system/etc/firmware/wcnss.mdt' to '../../../vendor/Samsung/express/proprietary/wcnss.mdt': Permission denied
Tried running the script as root - no difference. Using Rom Lite Toolbox and the Root Browser they are listed as rwxrwxrwx 0777
Tried running CHMOD -R 777 across the directory and an individual file. Get told it is a read only.
Any ideas?
Bazzan

[Q] Trouble With Ioroot

I am running Ubuntu 14.04 x64. I installed the ADB packages through apt-get:
sudo apt-get install android-tools-fastboot
sudo apt-get install android-tools-adb
Then I downloaded ioroot.zip, extracted it and did:
chmod +x ioroot.sh
When I run ioroot.sh I get the following errors:
Determining device model and firmware version...
./ioroot.sh: line 93: SLEEP: command not found
./ioroot.sh: line 94: ./adblinux: Permission denied
./ioroot.sh: line 95: ./adblinux: Permission denied
./ioroot.sh: line 96: ./adblinux: Permission denied
No matching phone found. Full device info below.
Post device info in IOroot thread.
./ioroot.sh: line 1683: ./adblinux: Permission denied
./ioroot.sh: line 1684: ./adblinux: Permission denied
./ioroot.sh: line 1685: ./adblinux: Permission denied
./ioroot.sh: line 1686: ./adblinux: Permission denied
Press enter to continue...
So, what does that mean?
My main goal is to root, install recovery and install Cyanogenmod.
I have Googled like crazy. Can't figure out what the problem is. I guess I leave it alone. The phone works fine without CM, just a lot of bloat from LG. I don't think I have the skills for this.
mooreted said:
I have Googled like crazy. Can't figure out what the problem is. I guess I leave it alone. The phone works fine without CM, just a lot of bloat from LG. I don't think I have the skills for this.
Click to expand...
Click to collapse
I had the same problems. I found the solution and posted it here. It may help you :
forum.xda-developers.com/showpost.php?p=59374674&postcount=43

su binary install installed with root adb but error when I run su

Hi,
I just picked up this cheap (cheap as in I paid $20 and think I over paid) android tablet from a garage sale. It was originally a promotional item from Herbalife. the only information on it I have been able to find is the FCC database page. https://fccid.io/ZVRGKMID7026R
It is running stock 4.4.4. Naturally the first thing I wanted to do was root it. this is not my first android, so I am familiar with the process.
the first thing I did was connect it to my computer. And low and behold the adb shell runs as root by default! this should be easy. I used this guide (almost, I adjusted some stuff because I use linux). it seemed to work. when I open the Superuser app, the info tab it says that the su binary is installed and the permissions are set properly, and when I run su from adb shell, a popup message comes up on the device saying "root has been given super user permissions". but when I run su from terminal emulator on the device, it gives an error.
Code:
[email protected]:/ $ su
java.lang.SecurityException: Permission Denial: broadcast asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
at android.os.Parcel.readException(Parcel.java:1465)
at android.os.Parcel.readException(Parcel.java:1419)
at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2373)
at com.android.commands.am.Am.sendBroadcast(Am.java:802)
at com.android.commands.am.Am.onRun(Am.java:284)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:76)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:243)
at dalvik.system.NativeStart.main(Native Method)
Permission denied
1 | [email protected]:/ $
also root checker says su is not installed corectly.
Thank you

termux can't execute permission denied

i installed magisk and updated the package installed python gave it root permission but when i try
to run anything it ends with the error i mentioned
i tried to install nethunter
sudo ./install-nethunter-termux
and i got that
env: can't execute './install-nethunter-termux': Permission denied
how can i solve that

Grant permission to app not requesting permissions?

I want to grant INJECT_EVENTS permission to a SSH app that I downloaded in order to emulate touch using SSH.
I plugged into my computer and typed the following, but got the error below
Code:
adb -d shell pm grant net.xnano.android.sshserver android.permission.INJECT_EVENTS
Security exception: Package net.xnano.android.sshserver has not requested permission android.permission.INJECT_EVENTS
Click to expand...
Click to collapse
My Pixel 3a(Android 10) does not have the setting to Disable permission monitoring, as other internet sources said to try.
Are there any other ways I could grant permissions to an app that I did not make without rooting?
@spencer_3
Only the permissions that are defined in the APK's manifest file can be granted/revoked .

Categories

Resources