Relative Content

Tag Archive for javaandroidbusybox

executing binary files on android targetSdkVersion>=29 raise Permission denied

I have some binary files and copied to /data/data/com.staf621.ki4a/ki4a/bin folder when the app initialized and set the file permission to be executed with command: chmod 755 /data/data/com.staf621.ki4a/ki4a/bin/busybox, when executing the file on targetSDK<=28 it executes without problem, but on targetSDK>=29 it raise permission denied error.

UPDATE: I copy the binary files when activity runs and the files not exist in /data/data/com.staf621.ki4a/ki4a/bin/ and after files copied set the permission.

here is some part of my code to check execution and execution command: