I have a rooted device, and want to change the chmod permission of an apk(Prueba.apk) that is inside /system/app , so to achieve that I am using the RootTools library with BusyBox. And my code is:
Command comando = new Command(0, "chmod 777 /system/app/Prueba.apk");
try {
RootTools.getShell(true).add(comando);
} catch (IOException | RootDeniedException | TimeoutException ex) {
ex.printStackTrace();
}
But when I check, after running that code with a Root file explorer I see that the chmod permissions for Prueba.apk didn't change.