Execute binary file on android API 31 and 32

Viewed 83

I have executable files made through the tool-chain via the rust platform. which is right now arm arch supported.

now my code snipers as per below

 try {
        File binFilePath1 = new File(getFilesDir() + Util.BinPath);

        ProcessBuilder processBuilder = new ProcessBuilder();
        processBuilder.command(pluginFilePath.getCanonicalPath(), "-c", pingPath.getCanonicalPath(), "-lp"
                , binFilePath1.getCanonicalPath(), "-o", resultPath.getCanonicalPath());

        Process process = processBuilder.start();
        Log.i("", process.toString());
    } catch (IOException e) {
        e.printStackTrace();
    }

so basically my command is ./plugintest -c in.conf -lp /data/data/.*.*****/files/bin/lib -o results.txt

It smoothly works on android API 24,25

But when I try to load in android 31 / 32 API level it gives me an error like below

System.err: java.io.IOException: Cannot run program "/data/data/../files/verifier/bin/plugin-testapp": error=13, Permission denied

  • try all permission but with any of permission no luck.

Let me know if need more information.

0 Answers
Related