Strange question................. - Galaxy S I9000 Q&A, Help & Troubleshooting

Why ClockworkMod updates on update.zip invalid?
The system can boot?
My script:
ui_print("Welcome to HACKECLAIR JM5 v1.0.4!");
show_progress(0.500000, 0);
ui_print("Formatting cache..");
format("MTD", "cache");
ui_print("Mounting system folder..");
mount("MTD", "system", "/system");
ui_print("Formatting system and framework folders..");
delete_recursive("/system/framework/framework.jar");
delete_recursive("/system/framework/framework.odex");
show_progress(0.200000, 40);
ui_print("over");
unmount("/system");

framework.jar not be removed......................

Related

help me /hidden/data/CDA/cda.prop

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

[Q] Superwipe script

Hi All,
is there any super wipe script that i can wipe all the thing i have ?
something like this , is it possible ?
format("MTD", "system");
mount("MTD", "system", "/system");
delete_recursive("/system");
delete_recursive("/dbdata");
delete_recursive("/cache");
delete_recursive("/data/dalvik-cache");
delete_recursive("/data");
delete_recursive("/etc");
delete_recursive("/config");
delete_recursive("/acct");
delete_recursive("/proc");
delete_recursive("/vendor");
delete_recursive("/sys");
delete_recursive("/sbin");
delete_recursive("/root");
delete_recursive("/res");
delete_recursive("/mnt");
delete_recursive("/dev");
delete_recursive("/d");
delete_recursive("/config");
delete_recursive("/");
unmount("/system");

[help] apps extracted through recovery won't install

hey guys
I want to install all of my apps from a zip package through recovery (a lot faster than installing each via adb). It's fine, but I don't see the apps. I believe this is a permission issue and can't figure it out
the script :
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
unmount("/data");
is this wrong ?

[Q] i need a devlopper help

so i have a statue 6 in cayogenmod but i have the hyperion rom working well so i can give the devlopper the 2 scripts and he try to solve the cayogenmod statue 6
this is cayogenmod i think here is the issue
mount("yaffs2", "MTD", "system", "/system");
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
set_metadata("/tmp/backuptool.sh", "uid", 0, "gid", 0, "mode", 0755);
set_metadata("/tmp/backuptool.functions", "uid", 0, "gid", 0, "mode", 0644);
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.500000, 0);
mount("yaffs2", "MTD", "userdata", "/data");
package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);
run_program("/tmp/otasigcheck.sh");
sha1_check(read_file("/tmp/releasekey"),"7241e92725436afc79389d4fc2333a2aa8c20230") && abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
format("yaffs2", "MTD", "system", "0", "/system");
mount("yaffs2", "MTD", "system", "/system");
this is a working scripte from hyperion rom
show_progress(0.1, 0);
ui_print("Mount Partitions");
mount("vfat", "/dev/block/mmcblk0p1", "/sdcard", "rw");
ui_print("-/sdcard");
mount("rfs", "rfs", "/dev/block/stl19", "/system");
ui_print("-/system");
mount("rfs", "rfs16", "/dev/block/stl11", "/data");
ui_print("-/data");
ui_print("[DONE]");
ui_print("Format System");
ui_print("-/system");
delete_recursive("/system");
ui_print("[DONE]");
ui_print("Extract Package");
ui_print("-/sdcard");
package_extract_dir("sdcard", "/sdcard");
ui_print("-/system");
package_extract_dir("system", "/system");
ui_print("-/data");
package_extract_dir("data", "/data");
ui_print("[DONE]");
ui_print("Symlink Toolbox");
please guys i am new and i have S5570i and i would like the cayogenmode cuz i cant find any other good rom

[Q] Xposed Uninstaller

Guys I'm trying to build a flashable zip for the uninstaller for Xposed using the idea of this http://forum.xda-developers.com/showpost.php?p=58964632&postcount=2262. How ever I'm facing some problem.
Code:
ui_print("########################################");
ui_print("# Xposed Uninstaller #");
ui_print("########################################");
ui_print("");
ui_print("");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Mounting System Partition");
ui_print("");
ui_print("");
delete("/system/bin/app_process32");
delete("/system/bin/app_process32_xposed");
delete("/system/bin/dex2oat");
delete("/system/bin/oatdump");
delete("/system/bin/patchoat");
delete("/system/lib/libart.so");
delete("/system/lib/libart-compiler.so");
delete("/system/lib/libart-disassembler.so");
delete("/system/lib/libsigchain.so");
delete("/system/lib/libxposed_art.so");
delete("/system/xposed.prop");
delete("/system/framework/XposedBridge.jar");
ui_print("Deleting Xposed Files");
ui_print("");
ui_print("");
ui_print("Extracting stock files");
ui_print("");
ui_print("");
ui_print("Restoring stock files");
ui_print("");
ui_print("");
ui_print("Cleaning up files");
ui_print("");
ui_print("");
ui_print("Xposed Framework Successfully Disabled!");
ui_print("");
ui_print("");
ui_print("Enjoy!");
ui_print("");
ui_print("");
ui_print("########################################");
ui_print("# From AK1149 from XDA #");
ui_print("########################################");
ui_print("");
ui_print("");
Can anyone help me finish the script?
The extract part will be untar-ing the xposed-original from system folder to their original place.
The restoring part will be renaming the files.
The clean up part will be removing unwanted files

Categories

Resources