Thanks to the OP for putting this together.
I grabbed the version 3 from post #194. I see that it is now creating the correct script format.
My question pertains to the mounting...
your script creates a mount command such as
Code:
mount("ext4", "/sbin/mount", "/system");
but I am seeing other working scripts using
Code:
run_program("/sbin/mount", "/system");
run_program("/sbin/mount", "/data");
then package extract stuff...
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
I'm wondering if both methods are valid? Is it not necessary to unmount at the end of the operation?
Also, I was just assuming that my phones system memory was ext4 format but it might not be.. anyone want to conform this for a sg2.
On a final note, it would alleviate much confusion of the OP updated the original post with the latest version as I see many posts of confused folks not able to find it. At the very least maybe add a comment in the OP that the latest version is found in post #194.
Thanks again for the effort.