I have tried to run a command from the application to install the ffmpeg library. This is my code:
try {
Process process =Runtime.getRuntime().exec("/system/bin/pm install ffmpeg");
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
} catch (IOException e) {
e.printStackTrace();
Toast.makeText(getApplicationContext(),"failed",Toast.LENGTH_SHORT).show();
}
Problem:
It doesn't work and prints the output "failed".