Editing system.img/YAFFS2 (custom ROM creation) - EVO 4G Android Development

Basically I just want a stock ROM base with the sprint crap taken out and unrevoked added in with some other app mods.
I've grabbed all the sources for YAFFS2/yaffs2Utils and compiled them using cygwin.
Now when I go to extract the system.img all I get is a fonts folder.
I'm setting up a virtual linux machine to try to mount the image instead, but in the meantime anyone care to assist me?

Do a search for android basic kitchen .53. Made myself a custom rom off the .6 release
Sent from my Evo 4g using Tapatalk

stroths said:
Do a search for android basic kitchen .53. Made myself a custom rom off the .6 release
Sent from my Evo 4g using Tapatalk
Click to expand...
Click to collapse
Awesome!!!
Since you claim it works, I'll take your word for it and say I can't thank you enough!
(even if it doesn't do what I need, it should one step forward nonetheless)

Neotelos_com said:
Awesome!!!
Since you claim it works, I'll take your word for it and say I can't thank you enough!
(even if it doesn't do what I need, it should one step forward nonetheless)
Click to expand...
Click to collapse
It seems to be worthless for EVO, only generates update files...I can't even use it to extract the filesystem from system.img

my experience has been working with rfs and not yaffs2 so far.
i think you'll be needing yaffs2 tools, like unyaffs2, etc.
i googled, android system.img mount. seems like a great place to start:
http://wiki.xda-developers.com/index.php?pagename=Android system.img Customization
let us know what works or doesnt work?

If you are rooted with toast, you can flash the custom roms made with that kitchen. you can add or remove apk files before recompiling to the update zip format. I am typing this from my customized rom I made with that kitchen. The kitchen can root the rom for you, add apps2sd (havent tested that) and add wifi tether. I mainly went this routw as io wanted a rooted .6 rom to use after rooting with the Toast method. I am an Android newbie but managed to do this
Sent from my Evo 4g using Tapatalk

joeykrim said:
i googled, android system.img mount. seems like a great place to start:
http://wiki.xda-developers.com/index.php?pagename=Android system.img Customization
let us know what works or doesnt work?
Click to expand...
Click to collapse
Awesome, I figured I would need linux (why I installed it)
stroths said:
If you are rooted with toast, you can flash the custom roms made with that kitchen. you can add or remove apk files before recompiling to the update zip format.
Click to expand...
Click to collapse
I already said it's useless and I said why, it generates update files...
I need to actually extract/mount the original system, that is precisely what the thread title is about.

From the command line you can create a system dump using the following command
tar -cvf /sdcard/system.tgz /system
assuming both /sdcard and /system are mounted. you may have to use "busybox tar" instead.
You can run it from recovery mode.
To mount the filesystems while in adb shell use
"mount /dev/block/mtdblock4 /system" to mount system
and
"mount /dev/block/mmcblk0p1 /sdcard" to mount sdcard
if needed
As for making an update.zip you can take an existing one and replace the system directory inside it with your own custom one. Rezip it, no need to resign it for the EVO recovery, and flash away. Oh, and you'll have to delete any symlinks from the /system/bin directory inside the zip before flashing.

Related

How to create update script

I dont know how to create update script till now i used to edit some ones update script so i need a tutorial on making update script...
Update script? if you are asking for what I think you are you need to learn bash scripting. If not, you should clarify what you want when asking a question.
I think perhaps he means themes? If so, use the search key
Darkrift said:
Update script? if you are asking for what I think you are you need to learn bash scripting. If not, you should clarify what you want when asking a question.
Click to expand...
Click to collapse
If you're thinking what I'm thinking that you are thinking about what he is thinking..
the update-script file in an update.zip isn't a bash script . It sorta looks like one, but it actually contains commands that are interpreted by the recovery program.
sangeet.003 said:
I dont know how to create update script till now i used to edit some ones update script so i need a tutorial on making update script...
Click to expand...
Click to collapse
Assuming you mean update-script in an update.zip update, you will need to either look at existing update-script files for an example of the syntax, or look at the source of the recovery program in the android source
Thanks JesusFreke U got my point...
Bump
I too would like info on this. I'm wondering if its at all possible to alter the update script to install 3rd party apps into /data/app and /data/app-private. I've tried placing 3rd party apps into one of the Dude's roms(i think, can.'t remember exactly which rom it was), but I didn't install my 3rd party app. Yes, I did resign the update.
So if someone could help me with this, i would be really grateful. I'd like to make one script to load just /data and another to be included with my usual update.zip's.
I really enjoy the fact that my phone is so customizable, but those 3rd party apps make my custom themes sooooo ugly. i don't mind taking the time to pull apps and theme them, but reinstalling them is a pain. I know there is a windows utility for reinstalling apps, but I'd rather just flash /data.... is this even possible?
Anywho, if any of you "smart" guys around here could help me with this, I would be such a happy droid.
jonnybueno said:
I too would like info on this. I'm wondering if its at all possible to alter the update script to install 3rd party apps into /data/app and /data/app-private. I've tried placing 3rd party apps into one of the Dude's roms(i think, can.'t remember exactly which rom it was), but I didn't install my 3rd party app. Yes, I did resign the update.
So if someone could help me with this, i would be really grateful. I'd like to make one script to load just /data and another to be included with my usual update.zip's.
I really enjoy the fact that my phone is so customizable, but those 3rd party apps make my custom themes sooooo ugly. i don't mind taking the time to pull apps and theme them, but reinstalling them is a pain. I know there is a windows utility for reinstalling apps, but I'd rather just flash /data.... is this even possible?
Anywho, if any of you "smart" guys around here could help me with this, I would be such a happy droid.
Click to expand...
Click to collapse
update-script can put things into data, yes. Just create a data folder in your zip file and include the relevant lines in the script:
copy_dir PACKAGE:system SYSTEM:
copy_dir PACKAGE:data DATA:
Thank you! you sir, are a kind person. I will try this tonight and report my findings afterward!
bringing this thread back from the dead. I need help, if somebody could point to how to use set_permission and why all the symlinking toolbox and busybox (i understand busybox is not part of the regular android package) to other tools already in bin. Also, maybe pointers of what the tools in bin do and if i could remove them after including busybox since they're already in busybox anyway
how about removing a file?
would it be 'remove system:app:mms.apk'
would that work?
gwydionwaters said:
how about removing a file?
would it be 'remove system:app:mms.apk'
would that work?
Click to expand...
Click to collapse
Nope but I think
"delete SYSTEM:app/Mms.apk"
update-script
gwydionwaters said:
how about removing a file?
would it be 'remove system:app:mms.apk'
would that work?
Click to expand...
Click to collapse
what he said:
delete SYSTEM:app/Mms.apk
delete SYSTEM:app/Mms.odex
if you're really interested just grab any ROM available on xda and started learning the commands .. it's really rather simplistic
right on, thanks guys. i'll download some other roms as well and have a look through.
Maybe someone can halp me with correct command for sript. I need to copy one file (for example photo.ipg) into ext (root) partition whilst flshing update.zip. Files is in update.zip/photo.jpg. I have try put it into system/sd, but after flash files wont copy.
im trying remove certain apps from /data/app then install other apps on the /system/app
but im having trouble in removing apps from /data/app
mount("MTD", "data", "/data");
delete("/data/app/someapp.apk"); ?? not sure about deleting apps, i think this is wrong.
unmount("/data");
Is that the even the correct way to mount it? because that works with the /system
Any help would be greatly appreciated.
Ubuntu only
Wrong section btw, just have to say it. I am on Ubuntu 10.04 LTS and I just use terminal:
Code:
gedit update-script
Once you do that your newly created file will pop up, the put what ever you want in it and save it. The file will be in your home folder. this is what mine looks like:
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
Then create these folders, each one inside of the other:
Code:
META-INF
root of update zip >
Code:
com
>
Code:
google
>
Code:
android
Then place your update-script in the android folder, and also create the system or data folder in root of update.zip
If it's not compressed into a zip file already than you will need to select all the folders, right click and select compress, then compress as zip. After compressing into zip you will need to sign it. I'm not going to get into signing and all that because there is tons of info on xda for signing roms
in other thread and if someone still looking:
update-script syntax - A guide for ROM devs, modders, and themers
Code:
http://forum.xda-developers.com/showthread.php?t=641223
Thanks to TylTru for the gift
hey!, I have a problem when I try to flash the update.zip (AOSP compiled for HTC Desire), I get the following error:
E: Can't chown/mod /system/keyspa.sh
(No such file or directory)
E:Failure at line 14:
set_perm 0 0 06755 SYSTEM:keyspa.sh
Installation aborted
anybody knows the reason?
Thanks in advance..
jm0077 said:
hey!, I have a problem when I try to flash the update.zip (AOSP compiled for HTC Desire), I get the following error:
E: Can't chown/mod /system/keyspa.sh
(No such file or directory)
E:Failure at line 14:
set_perm 0 0 06755 SYSTEM:keyspa.sh
Installation aborted
anybody knows the reason?
Thanks in advance..
Click to expand...
Click to collapse
does /system/keyspa.sh exist?

How to turn an RUU into a flashable ROM

I'm sorry to say I have no idea but I'm now determined to learn how and I think I'll start with a linux partition.
Anyone care to join me?
I think the Avabox that avaluanchemods posted up included the files to pull out the files from the .img, after that wouldn't it be just like modifying another ROM (with a lot more to mod, of course, to gain root, etc.)?
danaff37 said:
I think the Avabox that avaluanchemods posted up included the files to pull out the files from the .img, after that wouldn't it be just like modifying another ROM (with a lot more to mod, of course, to gain root, etc.)?
Click to expand...
Click to collapse
nope, this ruu is different
doesn't work like that.
well, once you have the images you can use yaffs, for the system image, but getting the images from the ruu...
regaw_leinad said:
nope, this ruu is different
doesn't work like that.
well, once you have the images you can use yaffs, for the system image, but getting the images from the ruu...
Click to expand...
Click to collapse
Hahaha yeah, getting the images from the ruu is a blast!
u guys want the new sprint ruu turned into a flashable update.zip? isn't that what damages 2.06 basically is? if not i'll do it for you.
I think it's really more that they wanna learn how. Anyone down to throw out some pointers?? I'd be interested to learn too
I was actually just looking into pulling the files from the ruu myself.
extract the exe file. unyaffs the system.img. make an update-script in META-INF/com/google/android/. zip the boot.img META-INF/ folder, and system/ folder and sign it. nothing more to it. lol
zenulator said:
u guys want the new sprint ruu turned into a flashable update.zip? isn't that what damages 2.06 basically is? if not i'll do it for you.
Click to expand...
Click to collapse
well, well howdy stranger! zen you were a great dev on the vogue/android...we need you here my man!
fixxxer2008 said:
well, well howdy stranger! zen you were a great dev on the vogue/android...we need you here my man!
Click to expand...
Click to collapse
this communtiy is a little crazy for my taste. but darchstar answered the question.
http://code.google.com/p/zen-droid/downloads/list
this is a link to the files i use. you must have linux installed to use them as well as pearl which should be installed on most distros. you'll prob have to chmod them executable if you download them.
any questions post them and i'll try to help. i'm glad to see people trying to learn.
regaw_leinad said:
nope, this ruu is different
doesn't work like that.
well, once you have the images you can use yaffs, for the system image, but getting the images from the ruu...
Click to expand...
Click to collapse
thats all you need for a rom. is the /system. just place that in a folder along with the boot.img. andddd archive and sign. you have a rom now.
and if you want to know a secret. lol
if you are in windows, all .exe's are archived as zips. change .exe to .rar/zip and then you can unzip and have everything. very simple.
o and you need an update script which you can create, or take someones from a rom and edit it to fit the RUU. and as always give credit where needed
Avalaunchmods said:
thats all you need for a rom. is the /system. just place that in a folder along with the boot.img. andddd archive and sign. you have a rom now.
and if you want to know a secret. lol
if you are in windows, all .exe's are archived as zips. change .exe to .rar/zip and then you can unzip and have everything. very simple.
o and you need an update script which you can create, or take someones from a rom and edit it to fit the RUU. and as always give credit where needed
Click to expand...
Click to collapse
interesting. so in theory this could be done as easily on windows, no linux partitions?
mountaindont said:
interesting. so in theory this could be done as easily on windows, no linux partitions?
Click to expand...
Click to collapse
i hate linux. lol so yes
Not all exe's work like that. Like this one for example....
not even 7zip can get into it.
danaff37 said:
Not all exe's work like that. Like this one for example....
not even 7zip can get into it.
Click to expand...
Click to collapse
uniextract, google it. you are correct some are a certain type that cant be extracted but 99% of RUU's can.
Ok here is a basic run through for extracting the RUU and making an update.zip
1. Run the RUU in windows or through wine. You don't have to run it completely with your phone plugged in. The install shield will extract the files to a tmp folder. Search through your tmp folders until you find it. Inside should be a rom.zip. Unzip it. Inside it should be system.img data.img boot.img etc...
2.
a: Switch to linux. Use unyaffs to extract the system.img. I usually make a directory called system in the same directory as the system image and cd to it. then issue.
unyaffs ../system.img
this will extract it into the system directory that your in. make your changes. add apps/busybox/su etc..
b: You can also use unyaffs for windows from here: http://code.google.com/p/unyaffs/downloads/list it should do the same thing but I've never used it.
3. If you want apps pre-installed to /data then make a data directory with a apps directory in it and put your extra apps there like wireless tether etc... so now you have a directory with
/system
/data
boot.img
4. Use an update script from another rom as a base and modify it to symlink busybox, set the correct permissions, copy data write boot.img, clear cache etc... read through some other update scripts to get the idea of whats going on it's simple text based stuff. The update script is inside the directory
META-INF/com/google/android.
Once done move the META-INF directory to your working directory. so you should now have
/system
/data
/META-INF
boot.img
Zip up the above directorys/files into something like myrom.zip
5. Sign the zip. You'll need java and a testsign.jar and the android sdk. I've never done it without the sdk. Create a directory called sign inside the tools directory of the android sdk. Move testsign.jar and your myrom.zip to the sign directory. Execute the following command while in the sign directory
java -classpath testsign.jar testsign myrom.zip myrom-signed.zip
6. Copy myrom-signed.zip to the root of your sdcard. reboot recovery. nandroid backup. wipe/factory reset. flash update zip.
Good luck.
zenulator said:
Ok here goes a basic run through for extracting the ruu and making an update.zip
1. Run the ruu in windows or through wine. It will be extracted to a tmp folder. Search through the tmp folders until you find it. Inside should be a rom.zip. Unzip it. Inside it should be system.img data.img boot.img etc...
2. Switch to linux. Use unyaffs to extract the system.img. I usually make a directory called system in the same directory as the system image and cd to it. then issue.
unyaffs ../system.img
this will extract it into the system directory that your in. make your changes. add apps/busybox/su etc..
3. if you want apps pre-installed to /data then make a data directory with a apps directory in it and put your extra apps there like wireless tether etc... so now you have a directory with
/system
/data
boot.img
4. use a update script from another rom as a base and modify it to symlink busybox, set the correct permissions, copy data write boot.img, clear cache etc... read through some other update scripts to get the idea of whats going on it's simple text based stuff. the update script is inside the directory META-INF/com/google/android. once done move it to your working directory. so you should now have
/system
/data
/META-INF
boot.img
Zip up the above directorys/files into something like myrom.zip
5 sign the zip. you need java and a testsign.jar and the android sdk. i've never done it without the sdk. create a directory called sign inside the tools directory of the android sdk. move testsign.jar and your myrom.zip to the sign directory. execute the following command while in the sign directory
java -classpath testsign.jar testsign myrom.zip myrom-signed.zip
6. copy myrom-signed.zip to the root of your sdcard. reboot recovery. nandroid backup. wipe/factory reset. flash update zip.
Good luck.
Click to expand...
Click to collapse
uhh...i think ill leave that one too the pros
zenulator said:
Ok here goes a basic run through for extracting the ruu and making an update.zip
Click to expand...
Click to collapse
Interesting. Sounds easy enough, I'll definitely have a go. Thanks for the tutorial.
pseudoremora said:
Interesting. Sounds easy enough, I'll definitely have a go. Thanks for the tutorial.
Click to expand...
Click to collapse
+5, HOLY CRAP guys, I havent checked the forum in a few hours.
Thank you all so much for the insight.
I'll be back in a week!!
nebenezer said:
+5, HOLY CRAP guys, I havent checked the forum in a few hours.
Thank you all so much for the insight.
I'll be back in a week!!
Click to expand...
Click to collapse
There's an easy fix for your problem... Install the XDA Android App. Seriously, my soul belongs to Android now... and XDA has become my home, I HAVE to know what's going on at all times... it's like a drug, lol.

[Q] .apk file install not working?

So I flashed the MikShift ROM onto my phone a few days ago, but I noticed that sprint tv, and also sprint navigator are missing. I found the .apk files in the mikshift folder, but when I try to install them, it says application not installed. I also tried installing it using the android sdk with no luck.
My next thought, which I am afraid to try (unless its right) is to unzip the rom on my comp, copy the sprint tv and navigator .apks into the system folder, re-compress is, then try flashing that rom. (I can't copy the files with it compressed)
What is the correct way to do this? I know it can be done, or the .apk wouldn't still be in the file, right?
Please help a noob out.
7zip will allow you to move files into the archive without extracting. Not 100%, but on my moment files needed to be zipped in a special way. If you absolutely have to extract it then I'm pretty sure you have to change compression settings to no compression. I'm also fairly sure that if you mess up CWM won't let you flash it.
Mount your /system as rw
Download terminal emulator and type
Su
Mount -o rw,remount -t ext3 /dev/block/mmcblk3p26 /system
Then install
Sent from my PG06100 using XDA App
i believe i did everything as instructed, but the file still didn't install.
I can't get the files moved with 7zip either. I'm pretty sure thats not the correct way of doing it anyway.
Follow the remount command above, then copy it to system, don't install
cp /sdcard/whateverFolder/blah.apk /system/app/
Sent from my PG06100 using XDA App
IT LIVES!!! Thank you very much.
I understand the the copy command that I did through terminal emulator, but what is the first command? I can at least figure out that i'm telling the emulator to mount the phone as r/w, then remounting it for edit i think, but i'm not sure what the "ext3 /dev/block/mmcblk3p26 /system" part means. Could someone explain that? I really want to get more involved in my phone, so i'm trying to learn all I can.
I'll walk you through it.
mount = the base command
-o = with options
rw, remount = add the read/write option, and remount
-t = using file system type
ext3 = the file system type
/dev/block/mmcblk0p26 = the absolute path to the special device file that points to that partition
/system = when you mount that partition call it /system (which it already was, hence the remount option earlier)
Sent from my PG06100 using XDA App
Awesome, thank you very much.
Where did you find the mikshift folder you are talking about on here? I would like to install Sprint TV as well. Thanks.
J_Mod45 said:
So I flashed the MikShift ROM onto my phone a few days ago, but I noticed that sprint tv, and also sprint navigator are missing. I found the .apk files in the mikshift folder, but when I try to install them, it says application not installed. I also tried installing it using the android sdk with no luck.
My next thought, which I am afraid to try (unless its right) is to unzip the rom on my comp, copy the sprint tv and navigator .apks into the system folder, re-compress is, then try flashing that rom. (I can't copy the files with it compressed)
What is the correct way to do this? I know it can be done, or the .apk wouldn't still be in the file, right?
Please help a noob out.
Click to expand...
Click to collapse
Sorry about that wished I'd seen this post earlier. Was busy most of the morning . But if your on MikShifted and want the Stock Sprint apps, go HERE. The thread should have the ones your looking for .

un/repack .rfs files?

Is it possible to repack a .rfs file? It's easy to extract, but how do you repack?
You can't really repack them...
You can flash them to your, change them and redump them..
Or mount in linux and change... but becareful of permissions this way
Sent from my SPH-D700 using XDA App
chris41g said:
You can't really repack them...
You can flash them to your, change them and redump them..
Or mount in linux and change... but becareful of permissions this way
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
What do you mean by redump? Ill most likely try to change it by mounting in linux like you said...how could the permissions be messed up?
ugothakd said:
What do you mean by redump?
Click to expand...
Click to collapse
Code:
mount -ro remount /dev/block/stl9 /system
sync
cat /dev/block/stl9 > /sdcard/system_redump.img
ugothakd said:
Ill most likely try to change it by mounting in linux like you said...how could the permissions be messed up?
Click to expand...
Click to collapse
The problem is that rfs is proprietary. The file system can only be properly mounted on the phone.
However, since rfs is a backwards-compatible extension of vfat, you can still mount an rfs image with the vfat driver on any Linux machine. This works well enough to grab some files off it. The problem is that regular vfat doesn't support POSIX permissions (owner, group, mode bits, etc.), those are implemented as a proprietary extension. So if you modify an rfs image under vfat, the permissions may end up being not what you expect them to be when mounted on the phone.
The annoying part about modifying rfs images is that, at least under Eclair, an rfs file system couldn't be loopback mounted. I don't know if they can be mounted on an mmcblkp? device or only over an stl one, or even if this limitation is still there.
I don't know about mounting the rfs image directly on the phone.. but I do it on debian.. and the rest of what he said is correct.. as soon as you start changing things.. the links, and permissions may start getting messed up because vfat doesn't support links or posix permissions.. so you will have to be careful with those sorts of things.. but for small carefully made changes it will work
I get it...so redumping makes a .img file that can be (possibly) restored by cwm? So itd be a yaffs2 file system? Or would it still be an rfs file just renamed to .img.
Related to the permissions...if I wanted to say add a program like su or nano to a stock factoryfs.rfs, I would need to chmod the file in terminal emulator after making and odin'ing a tar file for it to work?
no.. rfs is an img regardless and its an rfs img.. he just put an img file extension, you would put an rfs extension and it would flash in odin.. i actually use a different method using dd, there is a tutorial in general i made called making an odin tar.. check it out..
you cant change the permissions when mounted because vfat doesnt support permissions.. you would need to flash it to the phone to change permissions, or.. add an initscript or something that does it..
i suggest leaving those types of things to the kernel though..
chris41g said:
no.. rfs is an img regardless and its an rfs img.. he just put an img file extension, you would put an rfs extension and it would flash in odin.. i actually use a different method using dd, there is a tutorial in general i made called making an odin tar.. check it out..
you cant change the permissions when mounted because vfat doesnt support permissions.. you would need to flash it to the phone to change permissions, or.. add an initscript or something that does it..
i suggest leaving those types of things to the kernel though..
Click to expand...
Click to collapse
I actually have...lol. I think I even thanked you for it. I'm thinking about ways that would help the et4g...they can't pull a stock kernel without root, and they're current method of rooting flashes a different kernel. If rooting can be done by odin'ing a slightly modified factoryfs.rfs, then they can get the kernel, then they hit the holy grail.
If I recall, the SGSII no longer uses rfs.
ugothakd said:
I actually have...lol. I think I even thanked you for it. I'm thinking about ways that would help the et4g...they can't pull a stock kernel without root, and they're current method of rooting flashes a different kernel. If rooting can be done by odin'ing a slightly modified factoryfs.rfs, then they can get the kernel, then they hit the holy grail.
Click to expand...
Click to collapse
So it seems someone needs to install a rooted kernel, install some stuff to the /system partition (su, busybox, bash, nano, recovery(?), whatever), and then dump the /system partition to an image.
Unless maybe I'm missing something...
It shouldn't matter what kernel you have installed while dumping /system.
Kind of off-topic, but still slightly relevant...
Does the Epic 4G Touch get fastboot like the Nexus S 4G did?
[EDIT]
mkasick said:
If I recall, the SGSII no longer uses rfs.
Click to expand...
Click to collapse
Good point, from what I've been told it uses EXT4, so you should be able to mount and edit as much as you like without worry.
[/EDIT]
=]
Son of a gun. I wrote up this nice guide, and it doesn't use rfs??? Thanks for telling me though. I'm still gonna post it. Check the et4g android development section to see it
---------- Post added at 06:26 PM ---------- Previous post was at 06:22 PM ----------
nubecoder said:
So it seems someone needs to install a rooted kernel, install some stuff to the /system partition (su, busybox, bash, nano, recovery(?), whatever), and then dump the /system partition to an image.
Unless maybe I'm missing something...
It shouldn't matter what kernel you have installed while dumping /system.
Kind of off-topic, but still slightly relevant...
Does the Epic 4G Touch get fastboot like the Nexus S 4G did?
[EDIT]
Good point, from what I've been told it uses EXT4, so you should be able to mount and edit as much as you like without worry.
[/EDIT]
=]
Click to expand...
Click to collapse
Nope, good ol' odin like us. And they don't have a rooted kernel. The samsung source doesn't build right
ugothakd said:
Son of a gun. I wrote up this nice guide, and it doesn't use rfs??? Thanks for telling me though. I'm still gonna post it. Check the et4g android development section to see it
Click to expand...
Click to collapse
Could probably just add in some chmod / chown permission commands in there after the cp commands (where you copy su and superuser into the mounted image) and it should work as expected.
Also, I am required to use sudo whenever I mount a factoryfs.rfs file in my Ubuntu install here.
[edit]
ugothakd said:
Nope, good ol' odin like us. And they don't have a rooted kernel. The samsung source doesn't build right
Click to expand...
Click to collapse
Well the NS4G had both Odin and fastboot, I was hoping they would continue on with that. =[
[/edit]
=]
nubecoder said:
Could probably just add in some chmod / chown permission commands in there after the cp commands (where you copy su and superuser into the mounted image) and it should work as expected.
Also, I am required to use sudo whenever I mount a factoryfs.rfs file in my Ubuntu install here.
[edit]
Well the NS4G had both Odin and fastboot, I was hoping they would continue on with that. =[
[/edit]
=]
Click to expand...
Click to collapse
Thanks, I forgot the mount command required root...edited accordingly
Also, you'd have to boot up and chmod because it'l be mounted as a vfat image, which doesn't support permissions.
I also realized you'd need 2 epic touch's for this to work exactly right...
i can confirm the et4g uses ext4.. so you can mount and edit at will.. might need to edit as su on your linux box..

Know how to write files to run in CWM?

Im trying to find someone that knows how to write files that can run as a zip in CWM. , I'm wondering what I would need to do to create a file my self to run in cwm to "install zip" that will delete a specific file. I installed a new boot animation in the system/media file called sanim.zip. The animation ran, but never completed. No matter how many times I reboot. But it gets me to the point where I can plug my computer in and access the SD card. So if i could create this file, I could run it in CWM to delete the sanim.zip file and not have to do a wipe on the phone. Any help? Please?
You didn't think to make a backup first? Otherwise, I'm not sure if the charge uses edifying or amend scripting, but that's how you make update zips.
Sent from my SCH-I510 using Tapatalk
ilovesoad said:
You didn't think to make a backup first? Otherwise, I'm not sure if the charge uses edifying or amend scripting, but that's how you make update zips.
Sent from my SCH-I510 using Tapatalk
Click to expand...
Click to collapse
negative. I made no backup. I wasnt thinking. But its booting into the phone. I can even call it and it rings. But the boot animation is still the only thing that will load on the screen
You could always use adb to do this -
BUT if you want to take a shot using this feel free. WARNING - I really don't know if it will work, as I've never tried to do such a task with this particular approach. Good luck!
I'm not 100% positive that the process is the same for any Android phone (I have an HTC Evo with CWM) but I don't see why not. In order to create flashable zips you really need a few things:
1. you need to write an edify script and name it updater-script
2. you need to include the update-binary file (an interpreter for edify scripts)
3. you need to include any files to flash in the appropriate structure
There is more to it than this. You have to place files in the appropriate directory structure and you have to sign the zip as well. I'm honestly not sure what to put into an edify script to delete a file, but I really don't think that's necessary. You have a few options that are probably much easier than creating a flashable zip to delete the file:
- Restore from a backup that you made prior to flashing this sanim.zip file. You did create a backup first right? RIGHT!???? (P.S. *Always* make sure you have a backup before flashing anything in recovery!!!).
- You can just mount the /system directory in CWM. I think there is an option from the main screen called Mounts. Just go there and see if you can mount /system. I'm pretty sure you can. From there you should be able to navigate to the appropriate directory and delete the file.
Being able to mount the sdcard isn't going to help you because that's mounted at /mnt/sdcard. You need access to the /system mount point and I'm pretty sure that CWM can mount it for you. At least, I'm pretty sure this is an option in CWM on my Evo.
Good luck!
EDIT:
Ok I just posted and saw several comments before I finished typing up my reply -- including the link to the nosanim.zip file. If you extract the contents of that zip you will see the files updater-script and update-binary that I referenced. The script looks pretty simple -- most of it is just print statements to put output on the screen. Check it out and you can hopefully follow what it is doing. Looks like it should work, though you might still want to explore mounting things in CWM to see how it works. Hopefully that zip removes it and fixes everything up for you.
once I have /system mounted, how do I navigate through it? I dont see that as an option in CWM after mounting it
didureboot said:
once I have /system mounted, how do I navigate through it? I dont see that as an option in CWM after mounting it
Click to expand...
Click to collapse
I'm not sure if that is an option - although that would be a nifty one so do tell if you find out how!
woot. The NoMoreSanim.zip worked like a charm. Thanks so much. I owe you big time for fixing my stupid mistake. Thank you again.
didureboot said:
woot. The NoMoreSanim.zip worked like a charm. Thanks so much. I owe you big time for fixing my stupid mistake. Thank you again.
Click to expand...
Click to collapse
No problem - glad it worked!
didureboot said:
once I have /system mounted, how do I navigate through it? I dont see that as an option in CWM after mounting it
Click to expand...
Click to collapse
Oh I was expecting that it would show up as an external drive that you could navigate through on your computer. Like, connect it via USB, then mount /system in CWM, then you could browse it on your computer. I don't know though -- I have only ever mounted the sdcard in recovery.
Glad the zip file worked though. That's easy.

Categories

Resources