This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/J6EVM5777: Running shell commands with SU privileges from and Android app

Part Number: J6EVM5777

Tool/software: Linux

Hi,

The problem:
While we are developing and testing out our solution for Apple CarPlay,
we need to execute shell commands to re-configure the USB and grant directory/file permissions using shell commands to allow native code in an Android app to access the proper directory and file.
We have been using a workaround by doing 'su' and running some shell scripts before running our Android app.

We've reached a stage where this is not acceptable and need to have an automated way to do all the directory file configurations programmatically.
I cannot run SU or get root privileges for Android app in either Java or native code.

Is there an easy way to solve this problem?

Thanks,

Alan