Hi,
I was doing (update-script):
Code:
delete_recursive DATA:something
How to I do that in updateR-script?
thx
no one?
come on, please
Did you ever find the answer to this question? I am in the same position....with the same question.
AFAIK, I believe I've used this is syntax in my updater-script before (it's been a while!!)
Code:
mount("MTD", "data", "/data");
delete_recursive("/data/data/com.android.vending/cache")
unmount("/data");
though I do believe you need the update-binary as well...
I'm attempting to make an install script for a couple of mods just as before on the Droid X. Unfortunately I'm getting different errors at different times. One of the errors is (Status 0)... and the other is (Status 6).
Also, Mount says that it expects 4 args, got 3.
What changed?
nitro66215 said:
I'm attempting to make an install script for a couple of mods just as before on the Droid X. Unfortunately I'm getting different errors at different times. One of the errors is (Status 0)... and the other is (Status 6).
Also, Mount says that it expects 4 args, got 3.
What changed?
Click to expand...
Click to collapse
You need to use the right Syntax to mount /system . Best way... Busybox.
run program("/sbin/busybox" , "mount", "/system");
DroidTh3ory said:
You need to use the right Syntax to mount /system . Best way... Busybox.
run program("/sbin/busybox" , "mount", "/system");
Click to expand...
Click to collapse
So... I've tried this.... and I get....
Error in /sdcard/update.zip
(Status 6)
For Shi*s and giggles... I just did a test script.
ui_print(" ");
ui_print("Mount Bionic Script...");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Doing Something.......");
ui_print("Installing Files");
ui_print(" ");
ui_print("** Unmounting System **");
unmount("/system");
This errors out. I have the META-INF folder from another Bionic update that someone else created, so I'm assuming that the files within (other than the script) will work as is.
Here is my mod script and update-binary. Make the appropriate folders for your mod and give it a go.
Case and spacing is essential as I am sure you know.
3G ICON VISUAL FIX
DroidTh3ory said:
Here is my mod script and update-binary. Make the appropriate folders for your mod and give it a go.
Case and spacing is essential as I am sure you know.
3G ICON VISUAL FIX
Click to expand...
Click to collapse
ui_print(" ");
show_progress(0.800000, 35);
ui_print(" ");
ui_print("** Mounting this ***** **");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
ui_print("** Installing Your MOD **");
ui_print(" ");
ui_print("** Unmounting System, Rock Out!! **");
unmount("/system");
show_progress(0.050000,0);
Ugh... same error. I only deleted your package extract. I'm using 7-zip and just doing store. Is that still the preferred method?
nitro66215 said:
ui_print(" ");
show_progress(0.800000, 35);
ui_print(" ");
ui_print("** Mounting this ***** **");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
ui_print("** Installing Your MOD **");
ui_print(" ");
ui_print("** Unmounting System, Rock Out!! **");
unmount("/system");
show_progress(0.050000,0);
Ugh... same error. I only deleted your package extract. I'm using 7-zip and just doing store. Is that still the preferred method?
Click to expand...
Click to collapse
What is it installing if there is no package extract?
I don't use 7zip, I just compress in linux... Couldn't really say in that.
DroidTh3ory said:
What is it installing if there is no package extract?
I don't use 7zip, I just compress in linux... Couldn't really say in that.
Click to expand...
Click to collapse
I plan on doing the install later, but I just wanted to do a test script without install. Just some "Hello World" text to make sure I got something going on.
I even just did that....
ui_print("Hello World");
Gave me the same error!
Ok.... so.... It is now working after a reboot of Recovery. Don't ask me why. And I am using standard windows zipping.
updater-script
Code:
ui_print("Mounting SYSTEM Partition...");
#run_program("/sbin/mount", "/hidden");
mount("ext3", "EMMC", "[COLOR="Red"]/dev/block/.............", "/hidden[/COLOR]");
set_perm_recursive(0, 0, 0777, 0777, "/hidden/data/CDA/cda.prop");
package_extract_file("change_cda.sh","/tmp/change_cda.sh");
set_perm(0, 0, 0755, "/tmp/change_cda.sh");
run_program("/tmp/change_cda.sh");
package_extract_dir("hidden", "/hidden/data/CDA");
set_perm_recursive(0, 0, 0755, 0755, "/hidden/data/CDA/cda.prop");
ui_print("Cleaning process...");
delete("/tmp/change_cda.sh");
#run_program("/sbin/umount", "/hidden");
unmount("/hidden");
ui_print("OK...");
change_cda.sh
Code:
#! /hidden/data/CDA
rm [COLOR="red"]/hidden/data/CDA/cda.prop[/COLOR]
echo -e "ro.product.model.num=0017\nro.product.name=SH8188U\nro.product.device=SH8188U\nro.product.model=test\nro.product.brand=Sharp\nro.product.board=Sharp\nro.telephony.num.auto.hyphen=true\nro.telephony.gsm.spn.shortname=true\nro.telephony.gsm.wait.switch=true\nro.telephony.rat.network.select=false\nro.telephony.gsm.sms.auto-reg=false\nro.telephony.add.mccmnctable=false\nro.telephony.spn.support.mvno=false\nro.telephony.fdn.data=false\nro.telephony.configurable.mtu=false\nro.telephony.cphs-spn.support=true\nro.telephony.dun.show=true\nro.telephony.fast.dormancy=true\nro.tether.denied=false\nro.telephony.mvno.sim.spn=false\nro.telephony.croatia.shortcode=false\nro.CDG_MENU_EVDO_ONLY=false\nro.telephony.custom.showspn=false\nro.telephony.gsm.ecclist=110,119,112\nro.telephony.ecclist=110,119,112\nro.telephony.fake.ecclist=110,112,119,911\nro.telephony.cdma.ecclist=110,112,119,911\nro.telephony.cdma.ecm=false\nro.contacts.number.match.length=7\nro.contacts.number.match.minima=0\nro.config.dbgcfgtool=3\nro.DRM_SOLUTION_ID=0\nro.SYSTEM_CTA_MODEL=false\nro.NETWORK_DISABLE_3G_MODULE=false\nro.USB_PLUG_IN_NOTIFICATION=true\nro.LOCKSCREEN_SUPPORT_ROTATION=false\nro.SETTINGS_ENABLE_MSISDN_ALPHA=false\nro.CC_SEC_INC_CALL_OPTIONS=false\nro.SETTINGS_LANG_HIDE_TW_CHINA=false\nro.CALENDAR_FESTIVALS_OPTION=false\nro.SETTINGS_LOCK_PRELOADED_APN=false\nro.PHONE_ENABLE_COUNTRY_CODE=false\nro.MEDIA_ENABLE_SRS=true\nro.FB_ENABLE_HIDE_FOLDER=false\nro.CONTACT_VCARD_VERSION=3.0\nro.NETWORK_SB_CUST_FD_MECH=false\nro.SETTINGS_LOCK_VOICEMAIL_NUM=false\nro.CC_QUERY_CF_ON_BOOT=false\nro.BROWSER_ENABLE_PROXY=false\nro.SETTINGS_REMOVE_SIGNAL_STR=false\nro.SYSTEM_GCF_MODEL=false\nro.CC_HIDE_CB_PW_CHANGE=false\nro.SYSTEM_UI_STYLE_ID=0\nro.SB_SHOW_PLMN=false\nro.SETTINGS_DISABLE_TOUCH_TONE=false\nro.NETWORK_ENABLE_HOTSPOT_SEC=false\nro.CC_ENABLE_MAKE_OOS_CALL=false\nro.NETWORK_NET_MODE_IND=false\nro.NETWORK_ENABLE_OP_LABEL=false\nro.NETWORK_HOTSPOT_AUTO_OFF=false\nro.NETWORK_OP_NAME_OPTION=0\nro.NETWORK_WIFI_SLEEP_POLICY=0\nro.NETWORK_SIGNAL_DISP_STYLE=0\nro.SYSTEM_LED_NOTIFY_STYLE=0\nro.SL_DISABLE_UNLOCK_PROMPT=false\nro.BT_ENABLE_FF_RW=false\nro.MUSIC_DEACTIVATED_BY_FW_BW=false\nro.RSS_DISABLE_COST_PROMPT=false\nro.SETTINGS_HIDE_WIFI_SCAN=false\nro.PHONE_ENABLE_REBOOT_FUNC=false\nro.SYSTEM_SIM_WATCHER=false\nro.CAMERA_DISABLE_H263_ENCODER=false\nro.SYSTEM_SPK_OFF_WHEN_HS_IN=false\nro.NETWORK_REMOVE_GSM_COMBO=false\nro.STANDMODE_ENABLE_TV=false\nro.IME_DISABLE_AUTO_PUNC=false\nro.IME_DISABLE_SHOW_SUGGESTION=false\nro.MEDIA_HIDE_3g2_FILE=false\nro.BROWSER_DL_POPUP_DIALOG=false\nro.CC_HIDE_SIP_UI=false\nro.SYSTEM_DISABLE_LOW_MM_CHECK=false\nro.SYSTEM_ENABLE_FLIP_FONT=false\nro.MUSIC_ENABLE_FORCE_TRNAS_RU=false\nro.com.google.clientidbase=android-sharp\nro.com.google.clientidbase.yt=android-sharp\nro.com.google.clientidbase.am=android-sharp\nro.com.google.clientidbase.gmm=android-sharp\nro.hwt.softbank=false" >> /hidden/data/CDA/cda.prop
Installation complete, but it does not create cda.prop.
Correct me if I'm wrong but isn't /hidden a separate partition. I think you should mount it first......
Sent from my FIH-FB0 using XDA
whyzee said:
Correct me if I'm wrong but isn't /hidden a separate partition. I think you should mount it first......
Sent from my FIH-FB0 using XDA
Click to expand...
Click to collapse
mount where 3-4 ?
i test mount ext3 :crying: missing
comdevx said:
updater-script
Code:
mount("ext3", "EMMC", "[COLOR="Red"]/dev/block/.............", "/hidden[/COLOR]");
Click to expand...
Click to collapse
The correct line should be:
Code:
mount("ext3", "EMMC", "/dev/block/mmcblk0p9", "/hidden/data");
mmaacc said:
The correct line should be:
Code:
mount("ext3", "EMMC", "/dev/block/mmcblk0p9", "/hidden/data");
Click to expand...
Click to collapse
not work
comdevx said:
not work
Click to expand...
Click to collapse
Actually what do you want to do?if the update script original is ext4,try change all the line to ext4..if you free pm me with you update script,I help you see the update script
---------- Post added at 06:51 PM ---------- Previous post was at 06:39 PM ----------
comdevx said:
updater-script
Code:
ui_print("Mounting SYSTEM Partition...");
#run_program("/sbin/mount", "/hidden");
mount("ext3", "EMMC", "[COLOR="Red"]/dev/block/.............", "/hidden[/COLOR]");
set_perm_recursive(0, 0, 0777, 0777, "/hidden/data/CDA/cda.prop");
package_extract_file("change_cda.sh","/tmp/change_cda.sh");
set_perm(0, 0, 0755, "/tmp/change_cda.sh");
run_program("/tmp/change_cda.sh");
package_extract_dir("hidden", "/hidden/data/CDA");
set_perm_recursive(0, 0, 0755, 0755, "/hidden/data/CDA/cda.prop");
ui_print("Cleaning process...");
delete("/tmp/change_cda.sh");
#run_program("/sbin/umount", "/hidden");
unmount("/hidden");
ui_print("OK...");
change_cda.sh
Code:
#! /hidden/data/CDA
rm [COLOR="red"]/hidden/data/CDA/cda.prop[/COLOR]
echo -e "ro.product.model.num=0017\nro.product.name=SH8188U\nro.product.device=SH8188U\nro.product.model=test\nro.product.brand=Sharp\nro.product.board=Sharp\nro.telephony.num.auto.hyphen=true\nro.telephony.gsm.spn.shortname=true\nro.telephony.gsm.wait.switch=true\nro.telephony.rat.network.select=false\nro.telephony.gsm.sms.auto-reg=false\nro.telephony.add.mccmnctable=false\nro.telephony.spn.support.mvno=false\nro.telephony.fdn.data=false\nro.telephony.configurable.mtu=false\nro.telephony.cphs-spn.support=true\nro.telephony.dun.show=true\nro.telephony.fast.dormancy=true\nro.tether.denied=false\nro.telephony.mvno.sim.spn=false\nro.telephony.croatia.shortcode=false\nro.CDG_MENU_EVDO_ONLY=false\nro.telephony.custom.showspn=false\nro.telephony.gsm.ecclist=110,119,112\nro.telephony.ecclist=110,119,112\nro.telephony.fake.ecclist=110,112,119,911\nro.telephony.cdma.ecclist=110,112,119,911\nro.telephony.cdma.ecm=false\nro.contacts.number.match.length=7\nro.contacts.number.match.minima=0\nro.config.dbgcfgtool=3\nro.DRM_SOLUTION_ID=0\nro.SYSTEM_CTA_MODEL=false\nro.NETWORK_DISABLE_3G_MODULE=false\nro.USB_PLUG_IN_NOTIFICATION=true\nro.LOCKSCREEN_SUPPORT_ROTATION=false\nro.SETTINGS_ENABLE_MSISDN_ALPHA=false\nro.CC_SEC_INC_CALL_OPTIONS=false\nro.SETTINGS_LANG_HIDE_TW_CHINA=false\nro.CALENDAR_FESTIVALS_OPTION=false\nro.SETTINGS_LOCK_PRELOADED_APN=false\nro.PHONE_ENABLE_COUNTRY_CODE=false\nro.MEDIA_ENABLE_SRS=true\nro.FB_ENABLE_HIDE_FOLDER=false\nro.CONTACT_VCARD_VERSION=3.0\nro.NETWORK_SB_CUST_FD_MECH=false\nro.SETTINGS_LOCK_VOICEMAIL_NUM=false\nro.CC_QUERY_CF_ON_BOOT=false\nro.BROWSER_ENABLE_PROXY=false\nro.SETTINGS_REMOVE_SIGNAL_STR=false\nro.SYSTEM_GCF_MODEL=false\nro.CC_HIDE_CB_PW_CHANGE=false\nro.SYSTEM_UI_STYLE_ID=0\nro.SB_SHOW_PLMN=false\nro.SETTINGS_DISABLE_TOUCH_TONE=false\nro.NETWORK_ENABLE_HOTSPOT_SEC=false\nro.CC_ENABLE_MAKE_OOS_CALL=false\nro.NETWORK_NET_MODE_IND=false\nro.NETWORK_ENABLE_OP_LABEL=false\nro.NETWORK_HOTSPOT_AUTO_OFF=false\nro.NETWORK_OP_NAME_OPTION=0\nro.NETWORK_WIFI_SLEEP_POLICY=0\nro.NETWORK_SIGNAL_DISP_STYLE=0\nro.SYSTEM_LED_NOTIFY_STYLE=0\nro.SL_DISABLE_UNLOCK_PROMPT=false\nro.BT_ENABLE_FF_RW=false\nro.MUSIC_DEACTIVATED_BY_FW_BW=false\nro.RSS_DISABLE_COST_PROMPT=false\nro.SETTINGS_HIDE_WIFI_SCAN=false\nro.PHONE_ENABLE_REBOOT_FUNC=false\nro.SYSTEM_SIM_WATCHER=false\nro.CAMERA_DISABLE_H263_ENCODER=false\nro.SYSTEM_SPK_OFF_WHEN_HS_IN=false\nro.NETWORK_REMOVE_GSM_COMBO=false\nro.STANDMODE_ENABLE_TV=false\nro.IME_DISABLE_AUTO_PUNC=false\nro.IME_DISABLE_SHOW_SUGGESTION=false\nro.MEDIA_HIDE_3g2_FILE=false\nro.BROWSER_DL_POPUP_DIALOG=false\nro.CC_HIDE_SIP_UI=false\nro.SYSTEM_DISABLE_LOW_MM_CHECK=false\nro.SYSTEM_ENABLE_FLIP_FONT=false\nro.MUSIC_ENABLE_FORCE_TRNAS_RU=false\nro.com.google.clientidbase=android-sharp\nro.com.google.clientidbase.yt=android-sharp\nro.com.google.clientidbase.am=android-sharp\nro.com.google.clientidbase.gmm=android-sharp\nro.hwt.softbank=false" >> /hidden/data/CDA/cda.prop
Installation complete, but it does not create cda.prop.
Click to expand...
Click to collapse
Or try delete this line "delete ("/tmp/change_cda.sh);"..then try flash again
I tried all the commands.
Not at all.
mount("ext3", "EMMC", "/dev/block/mmcblk1p9", "/hidden");
mount("ext3", "EMMC", "/dev/block/mmcblk0p9", "/hidden");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/hidden");
mount("ext4", "EMMC", "/dev/block/mmcblk1p9", "/hidden");
mount("ext3", "EMMC", "/dev/block/mmcblk0p9", "/hidden/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/hidden/data");
comdevx said:
I tried all the commands.
Not at all.
mount("ext3", "EMMC", "/dev/block/mmcblk1p9", "/hidden");
mount("ext3", "EMMC", "/dev/block/mmcblk0p9", "/hidden");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/hidden");
mount("ext4", "EMMC", "/dev/block/mmcblk1p9", "/hidden");
mount("ext3", "EMMC", "/dev/block/mmcblk0p9", "/hidden/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/hidden/data");
Click to expand...
Click to collapse
try this commands
show_progress(0.1, 0);
mount("ext3", "EMMC", "/dev/block/mmcblk0p10", "/hidden");
mount("ext3", "EMMC", "/dev/block/mmcblk0p9", "/hidden/data");
package_extract_dir("hiddendata", "/hidden/data");
and(set permission for you file)
hope this will help you
Ow Thank you very much Project Success :angel::victory::laugh::good::fingers-crossed:
comdevx said:
Ow Thank you very much Project Success :angel::victory::laugh::good::fingers-crossed:
Click to expand...
Click to collapse
Gud..I just try to help what I know
Hi guys.
I've been trying to install the mighty HoloBlur but I'm unable to. I get error:
set_perm: some changes failed (status 7)
Now, I readed the updater-script and noticed a reference to a file named fixperm.sh. The line says the following:
package_extract_file("system/etc/releasetools/fixperm.sh", "/tmp/fixperm.sh");
set_perm(0, 0, 0777, "/tmp/fixperm.sh");
I looked at that directory on the .zip but didn't find the releasetools folder. Neither the fixperm.sh file.
I deleted that line and another reference to that file, and it advanced. Next I had to modify this line:
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
It said that I needed 5 parameters and was only giving 4. I modified it to this:
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");
And it advanced. But then, error on symlinks:
symlink: some symlinks failed
And because that error didn't specified which ones, I couldn't continue with my quest.
Anybody has an idea how to fix this? Or has a past version of HoloBlur? Original links in the thread don't work. BTW, I'm using Philz Touch 6 with CWM v6.0.4.7
Well I planned to build a kernel for S5830 from samsung msm 7x27-cm-11.0 source . I obtained the zImage successfully. Later on I used Koush's AnyKernelUpdate.zip.
1- I placed the zImage in the folder named Kernel in the AnyKernelUpdate.zip
2- Modified
Code:
mount("MTD", "system", "/system");
with
Code:
mount("ext4", "EMMC", "/dev/block/stl12", "/system");
When I flash this zip from CWM it gives Installation aborted.
Any help?
Thanks in advance.
Anyone??