I'm trying to copy files from /system/lib/hw folder to another folder (in device storage).
I have root and I use the following code to do that:
Runtime.getRuntime().exec("su -c cat source > destination");
The files get copied but are empty. Is there another way to do it? copying other files using this code succeeds, this only happens for files in /system/lib/hw directory.