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

Root Modifying a someone else's ROM

dsmryder

Android Expert
I tried to search for this, but I'm not sure what to search for.

What I am trying to do is add apps to a ROM that doesn't have the /data partition in the installation "update-script". I'm sure I can do it if I knew better what I needed to find. I think I would need to add some "mounting" parts, then "extract" parts. I can add the files to the /system/app folder, but that doesn't work for all of the apps. I think some need to be made to be run from there.

I'm also hoping this thread will help other MT users to tweak the ROMs they download. Personally, I don't like having to uninstall the same apps when I get an update. Plus, I like the "my account" app. I know it's only a link, but I like it.
 
I tried to search for this, but I'm not sure what to search for.

What I am trying to do is add apps to a ROM that doesn't have the /data partition in the installation "update-script". I'm sure I can do it if I knew better what I needed to find. I think I would need to add some "mounting" parts, then "extract" parts. I can add the files to the /system/app folder, but that doesn't work for all of the apps. I think some need to be made to be run from there.

I'm also hoping this thread will help other MT users to tweak the ROMs they download. Personally, I don't like having to uninstall the same apps when I get an update. Plus, I like the "my account" app. I know it's only a link, but I like it.

Just put the .apks in system/apps.

Edit: just realized you already talked about it... Read too fast... maybe b_randon can help.
 
Just put the .apks in system/apps.

Edit: just realized you already talked about it... Read too fast... maybe b_randon can help.

Didn't want to bug anyone in particular. I can think of a ton of people here who could help. I thought I would let them keep working on ICS for us shlubs.

It will come and other noobs like me can benifit later.
 
here you go... :D idk know if "mmcblk0p26" is the right partition for /data so wait for someone elses input first

Code:
mount("ext3", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
 
here you go... :D idk know if "mmcblk0p26" is the right partition for /data so wait for someone elses input first

Code:
mount("ext3", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");

Sweet! So after confirmation on the partition ID, I just add the /data folders and grab the files form Titanium Backup? Or should I contact the DEVs for the apps them selves?
 
Sweet! So after confirmation on the partition ID, I just add the /data folders and grab the files form Titanium Backup? Or should I contact the DEVs for the apps them selves?


Just make a folder called "data" in the rom beside the folder "system" and the make a folder called "app" inside the data folder. Then put your apps in.

And you shouldn't have to worry about contacting the devs about there apps unless there paid apps. :D so your all good lol
 
Looks like you were close, Ziggy. I have a screenshot of my termanal running the "df" command. I can't seem to upload a screenshot like I see everyone else:(, but the command says it's /dev/block/mmcblk0p8

and if anyone wants to know
/system is /dev/block/mmcblk0p7
and a mystore block
/dev/block/mmcblk0p11

Ninja'd
 
And sence this is about learning.
Code:
mount("ext3", "EMMC", "/dev/block/mmcblk0p8", "/data");package_extract_dir("data", "/data");set_perm(1000, 1000, 0771, "/data");set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
I wanted to know what I'm doing
mount (the program that mounts) ext3 (the file system) EMMC (I no know) "/dev/block/mmcblk0p8 (the detected device, raw partition) /data (the logical partition
package_extract_dir (seems self explanitory)
now under permisions, I'm barely used to the way linux does it. the 0771 look familier, but what's the "1000" for?
 
1000 is the owner. I believe 0 is root. 1000 is system. Could be wrong about the numbers but it sets the owner. The emmc tells the recovery and the update-binary how the internal rom is layer out and its in an emmc set up. Can't tell you what that means other than our internal nand is classified as an emmc style nand flash memory. Believe it had to do with the way the nand is arranged and recognized by the phone. Like I said you'd have to research more on what emmc actually means in terms of our phone.
 
And the 0771 refers to the file permissions. And if you set recurssive permissions for a whole folder, the the first set of permissions is file then the folder permissions follow. If I'm not all backwards during to lack of sleep :-)
 
What I have found so far

the "1000" is the UID of user ID. This is system or systemserver

the "0771" is the permissions settings

the first # is for sticky bit. With a "1" the bit is set so even the owner can't delete the file/folder. With the "0" the bit is not set. You would just need write permission

The second # is for the owner permissions

The third # is for the group permissions

The fourth # is for the other; ie everyone else permissions

The "7" is a combo of 1+2+4. 1 is read, 2 is write, 4 is execute

Found this on eMMC What is eMMC?
Seems to be emmbedded Multi Media Card, an SD card soldered to the board.

And I found this on UIDs UID and GIDs - xda-developers

Still having fun with this, will add more to this later.
 
Back
Top Bottom