• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Boost Mobile] included /data

I think I'm gonna call it a night for now... maybe I'll think up a solution in my sleep lol

Thanks for all your help!
 
Package extract works for /data/app I already install forty mb of apps that way in my rom... but I must admit I have difficulty applying /data/data on this device... you can only use package extract with data if you have the jbr400 data fix in the system....
 
Okay, not working...
I tried looking in /tmp, too and none of my files are even showing there.


Once flash is complete /tmp would be empty...it's just used to hold stuff temporarily. Try a set_perm_recurssive ("1000, 1000, ,0771," "/data") then the regular package_extract_dir...
 
Once flash is complete /tmp would be empty...it's just used to hold stuff temporarily. Try a set_perm_recurssive ("1000, 1000, ,0771," "/data") then the regular package_extract_dir...

I tried the permissions and it won't even execute. I get "Failed" in red and that's it. On a side note, I tried copying the things I want in /data manually with the file manager in TWRP and it works fine... until I reboot and it all disappears lol

I thought I had the data fix in there, I'll have to check.
 
Lol my bad...I figured you had it since smartmanvan had already mentioned it. Like he said even with it there are issues with /data/data and I thought that was the problem area...
 
Lol my bad...I figured you had it since smartmanvan had already mentioned it. Like he said even with it there are issues with /data/data and I thought that was the problem area...

Lol I figured I had it in there too! I could've sworn I did... I must've switched my working folders at some point lol
 
Okay, this time I tried flashing my ROM then the data patch. I am seeing what I have in the ROM .zip is in fact getting copied to /tmp, but it never makes it to /data. It's like it's write-protected or something, even though the file manager in TWRP can copy things there just fine.

I also tried flashing the ROM, then the patch, then copying the contents of /tmp manually into /data/data which works fine. Upon reboot, however, it's as though it all was never there. All the apps start with their default configurations as they always do.
 
I'm getting the same results... no difference between using the edify command or the package extract of the /data/data/ folder... however if i copy the desired folder to its location after boot and i reboot then it sticks... i get the feeling that at first boot it gets cleared... looking into this custom config hunch i got...
 
I'm getting the same results... no difference between using the edify command or the package extract of the /data/data/ folder... however if i copy the desired folder to its location after boot and i reboot then it sticks... i get the feeling that at first boot it gets cleared... looking into this custom config hunch i got...

What is custom_config?

Also I was thinking maybe we could have the installer-script mount /persist and copy the desired data to there. Then have an accompanying init.d script to install the data from /persist into /data/data after boot, then delete the data out of /persist. It's a huge kludge, but it should work...
 
I was just thinking along those lines only using init.d...write a script to extract /data/data from the zip and add an rm command to a later script to delete the first...
 
that could work and i have had no success with custom config... /system/etc/costom_config/app/ is where settings for certain apps are set on first boot and i was looking to see how to translate app data to the xml format needed for that... i think it's possible but complicated as it would be more than just copying a folder...
 
Just thought of another possible solution...add mkdir to /sbin and create /data/data then set its permissions before package extract
 
Just thought of another possible solution...add mkdir to /sbin and create /data/data then set its permissions before package extract

I tried doing that with the permissions line you gave me before, and it didn't seem to like it for some reason. Any time that line is included, it throws a fit lol

TWRP gives me:


Failed




 
ive done similar things. you create a custom dir.

example.. custom_config

package_extract_dir("custom_config", "/data");

that will extract the contents of custom_config to data
 
ive done similar things. you create a custom dir.

example.. custom_config

package_extract_dir("custom_config", "/data");

that will extract the contents of custom_config to data


Do you mean the custom_config folder? Or one that represents the how you want /data/data to look when your ROM is done installing?
 
Can someone send me or post a link for the data fix? I had it but can't find it now and can't find the original download link.
 
I haven't ever had a problem package extracting data to /data it has always worked for Mr. Just make sure you mount the data partition in your script.
 
I haven't ever had a problem package extracting data to /data it has always worked for Mr. Just make sure you mount the data partition in your script.

Really?! I can't believe it, it's giving me nothing but problems. I tried that, mounted /data, then did a package extract, just like we do with system, but the data never makes it to the data partition. The same command works for other partitions, like /persist, but it seemingly refuses to work on /data. I'm working on a two step script that'll paint it's wagon, though.
 
Back
Top Bottom