TehJibba
Android Enthusiast
So in my quest to make a nice rom ive hit a small snag. Im trying to use the saved app data for the launcher layout and some other basic settings from /data/data folder in the rom. Ive also got one app in /data/app that needs to be installed on flash also (wont work from /system/app already tried)
What id like to happen is flash the rom and boom its was like using a cwm backup(sorta) my widgets and desktop layout is intact.
This is what i have for the /data partiton in my updater script so far.
A little assistance from someone that knows more then i do would be greatly appreciated
What id like to happen is flash the rom and boom its was like using a cwm backup(sorta) my widgets and desktop layout is intact.
This is what i have for the /data partiton in my updater script so far.
Its partially working as it does extract the /data folder from the rom. But the app in /data/app is not installed on boot and indeed is not even in the /data/app folder once booted. The stuff from /data/data is installed however the settings and widgets are reset like when you first flash any rom.mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/data");
run_program("/sbin/busybox", "umount", "/data");
A little assistance from someone that knows more then i do would be greatly appreciated