Hello,
I've got problem with cf3d. Im stuck at bootloop. I know all i have to do is use adb and run *uninstall.sh
Problem is with my phone.. I cant use usb (its just not working).
I tried to use updater script cuz i can move sdcard to another device and create update.zip
Code:
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/system");
run_program("/system/lib/cf3d_uninstall.sh");
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/system");
So i run it from here.. But all tuts i saw there was needed " su " soooo do i need it here? How to do it. Help me pls.:angel:
(Sry for bad english ofc..but who cares)
Related
Hey all,
I'm trying to create a flashable zip for myself, for some ringtones I have to manually copy to /system/media/ everytime I flash a ROM (I flash nightlies) so I want to simplify this task with this zip.
I'm software developer, I know my way around linux consoles but are in general inclined towards web development. So I can understand most of the process of creating cwm zips.
My first guess was to check how other cwm zips were made. I grabbed the sgs3 ringtones zip and check it up.
It looks like an easy task to do, just replace those ringtones with mine, since on updater-script they only copy whatever there is on "system" to "/system". Before that there's the mount /system, then after that, unmount system.
But this is where my question comes from. Mounting and Unmounting /system.
I've seem some CWM zips that mount this way:
Code:
run_program("/sbin/busybox", "mount", "/system");
However, busybox is definitely not at that location, I checked. It could be a symlink though, I don't know if root explorer doesn't show symlinks. Busybox seems to be in /system/xbin/busybox.
Also, my other question is for unmounting. I've seen this:
Code:
unmount("/system");
AND this:
Code:
run_program("/sbin/busybox", "umount", "/system");
So, as for the first question, is it safe to use that line of code for mounting /system? is there a "hidden" symlink to busybox somehow?
2. Unmounting /system, what's the difference between the unmount() command and using the run_program(busybox) command? They both work? Why are there two of them? Which one should I use?
On this CWM flashable zip I took as an example, they mount /system with busybox and unmounts /system with unmount("/system");
It's really confusing. Can anyone help me?
You can install busy box in either location, it works (at least for me) in /system/bin or /system/xbin. Someone correct me if I'm wrong.
Sent from my SGH-I777 using Tapatalk 2
I want to modify a ROM for my personal use, I want to put all my apps in the ROM zip and it will automatically be installed on my sd card after I flashed it. Is that's possible how will I do that?
Thanks
zcedar said:
I want to modify a ROM for my personal use, I want to put all my apps in the ROM zip and it will automatically be installed on my sd card after I flashed it. Is that's possible how will I do that?
Thanks
Click to expand...
Click to collapse
Use this app to create the flashable zip of your apps
Read the instructions in forum carefully . you need to have java 6+ up and running on your PC.
OR
just put all the apk files u want inside system/app in your ROm.zip file. Open system/app on your winrar and drag all apks into it
MoonBlade said:
Use this app to create the flashable zip of your apps
Read the instructions in forum carefully . you need to have java 6+ up and running on your PC.
OR
just put all the apk files u want inside system/app in your ROm.zip file. Open system/app on your winrar and drag all apks into it
Click to expand...
Click to collapse
I want it on my SD card not in system/app....
what if i put a folder data/app where will it go i flash the rom?
zcedar said:
I want it on my SD card not in system/app....
what if i put a folder data/app where will it go i flash the rom?
Click to expand...
Click to collapse
u said u wanted to include the apks inside the ROM before flashing it Right???
zcedar said:
what if i put a folder data/app where will it go i flash the rom?
Click to expand...
Click to collapse
It will go to internal memory, you need to move them to sd card manually after flashing, and you will need to add this to updater script before flashing:
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
coz without it, your added apps will not be copied
PS: be aware of adding too much apps to system/app, then the rom couldn't fit the /system partition and you will not be able to boot it up!
MoonBlade said:
u said u wanted to include the apks inside the ROM before flashing it Right???
Click to expand...
Click to collapse
Yes, but while the flashing it will be installed in my sd card
pcpepik said:
It will go to internal memory, you need to move them to sd card manually after flashing, and you will need to add this to updater script before flashing:
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
coz without it, your added apps will not be copied
PS: be aware of adding too much apps to system/app, then the rom couldn't fit the /system partition and you will not be able to boot it up!
Click to expand...
Click to collapse
where should i put this code?
In the zip go to
Code:
META-INF > com > google > android
here you will find the updater-script file, which you need to edit
Okay so uh...I'm trying to make my own custom ROM from a stock Galaxy S3 sgh-i747, using dsixda's Kitchen.
My problem is that I am getting a status 7 error when trying to flash it.
Now I know, since I read the FAQ, that it has something to do with the updater-script. The only info I could gather is that you need to go in and change the format/mount code.
I have this:
Code:
format("ext4", "EMMC", "/dev/block/mmcblk0p14");
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/data");
So I suppose my real question is...what am I supposed to change (it to) so I can make it work? (and what else might I need to change?)
Any help greatly appreciated!
Edit: Oh and um...I'm also wondering.... If I put any new apks in the rom (such as note2 camera, etc.), do I have to put specific code in the script for them? (I'm a bit new to all this--everyone starts somewhere I guess)
same issue with me also .. Any one there to help?
Figure out your mount points if this is your error, also depending on your update-binary youay need to change the format of the arguments
As for the question about adding .apks, yes you need to modify updater-script to reflect this, and it depends on what folder they are in for ROM.zip and what partition you want them stored in.
Can't answer any further without more info but Google is your friend
Sent from my Nexus 4 using Tapatalk 2
Thats why i don't use kitchen, you wont LEARN anything.
and then you have this kind of problems, and you cant fix them.
And the last reply it usefull, check your mount points.
may be the updater-binary making the cause, try updater binary of working rom.
TroubleShooterâ„¢ said:
may be the updater-binary making the cause, try updater binary of working rom.
Click to expand...
Click to collapse
Try from the stock rom first (if the stock is running the same Android os version)
Hi guys I am new here and I can write into this topic: http://forum.xda-developers.com/showthread.php?t=1721680
So here is my problem...
I made a zip file following the instructions here. The only difference is I need to put files into data (but there was an answer in the topic how to make it so.. I renamed the folder system to data and changed the script)
My script looks like this
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
ui_print("Enjoy!");
I put the .zip file into mnt/sdcard/clockworkmod/backup and tried to use titanium backup to run it...
But it always crashes when I click the file sample.zip
Whats wrong?Can I use other apps to start it?
LetisXXX said:
Hi guys I am new here and I can write into this topic: http://forum.xda-developers.com/showthread.php?t=1721680
So here is my problem...
I made a zip file following the instructions here. The only difference is I need to put files into data (but there was an answer in the topic how to make it so.. I renamed the folder system to data and changed the script)
My script looks like this
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
ui_print("Enjoy!");
I put the .zip file into mnt/sdcard/clockworkmod/backup and tried to use titanium backup to run it...
But it always crashes when I click the file sample.zip
Whats wrong?Can I use other apps to start it?
Click to expand...
Click to collapse
what are you trying to do? Install an app?
Hello everyone!
I am trying learning how to create cwm flashable items. I have some questions though.
While i was trying to see how an updater-script was made, i edited some scripts from cwm for themes, wallpapers etc.
I saw that some files have:
run_program("/sbin/unmount", "/dev/block/mmcblk0p2", "/system");
run_program("/sbin/unmount", "/dev/block/mmcblk0p10", "/system");
run_program("/sbin/unmount", "/dev/block/mmcblk0p12", "/system");
What does it stand for? Which is the difference between mmcblk0p2,mmcblk0p10 and mmcblk0p12?
Thanks in advance
Anyone?
Thhey are the mount points for the memory, they are different for each device. If you have some that work for your device that point to the system partition, then just use them. Changing them will mean you will get a bootloop, or the mod wont flash
gregbradley said:
Thhey are the mount points for the memory, they are different for each device. If you have some that work for your device that point to the system partition, then just use them. Changing them will mean you will get a bootloop, or the mod wont flash
Click to expand...
Click to collapse
Thanks mate, but what if i want to create a cwm for another device? How am i supposed to know which one fits?
See my flashable zip tool thread
On general section
Press thanks if I helped