At least I think this is easy.
I was going to write an app to install a boot animation.
Now with my app I can copy my boot animation to any folder on my SD card so I know my code is working but I cannot for the life of me copy it to anywhere on the system.
I have su access and my app shows up under my super user ninja. So I am unsure what the issue is. I am trying to write to /data/local and you don't have to mount that area to write to it you just need su.
I can check /data/local for the bootanimation.zip and that works fine... but like I said nothing I do allows me to move it there.
^^ should work with BOOTANIMATION being /sdcard/bootanimation.zip and DESTINATION being /data/local/bootanimation.zip
I forget the other way I tried but anyways be gentle I am a TOTAL noob. I just wanted to make a nice little app to help people install boot animations. People always seem to have problems doing it. (Not even sure if this is the right place for this.)
I was going to write an app to install a boot animation.
Now with my app I can copy my boot animation to any folder on my SD card so I know my code is working but I cannot for the life of me copy it to anywhere on the system.
I have su access and my app shows up under my super user ninja. So I am unsure what the issue is. I am trying to write to /data/local and you don't have to mount that area to write to it you just need su.
I can check /data/local for the bootanimation.zip and that works fine... but like I said nothing I do allows me to move it there.
Code:
Process p;
try {
p = Runtime.getRuntime().exec("cp " + BOOTANIMATION + " " + DESTINATION);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
^^ should work with BOOTANIMATION being /sdcard/bootanimation.zip and DESTINATION being /data/local/bootanimation.zip
I forget the other way I tried but anyways be gentle I am a TOTAL noob. I just wanted to make a nice little app to help people install boot animations. People always seem to have problems doing it. (Not even sure if this is the right place for this.)