Ive been trying to create a rom for personal like ive done before with froyo roms
but when we switched to gingerbread it seems like were now using updater-scripts instead of update-scripts and i keep getting error Status 6 on cwm when i try to install and ive narrowed it down to being the updater script
here is my updater script if anyone could help me see what is wrong
ui print(" +=========================================+");
ui_print(" | Installing Rom..." |");
show_progress(0.200000, 5);
run_program("/sbin/mount", "/system");
run_program("/sbin/mount", "/dev/block/stl10", "/dbdata");
run_program("/sbin/mount", "/dev/block/stl11", "/cache");
run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");
ui_print(" | Formatting system |");
delete_recursive("/system");
delete_recursive("/dbdata");
delete_recursive("/cache");
delete_recursive("/data");
package_extract_dir("updates", "/tmp");
set_perm(0, 0, 0777, "/tmp/redbend_ua");
set_perm(0, 0, 0777, "/tmp/wipe");
run_program("/tmp/wipe");
ui_print(" | Extracting apps... |");
package_extract_dir("data", "/data");
set_perm(1000, 1010, 0771, "/data/app");
show_progress(0.500000, 60);
ui_print(" | Installing system files |");
package_extract_dir("system", "/system");
ui_print(" | creating symlinks... |");
symlink("toolbox", "/system/bin/cat", "/system/bin/chmod", "/system/bin/chown", "/system/bin/cmp", "/system/bin/date", "/system/bin/dd" "/system/bin/df", "/system/bin/dmesg", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd", "/system/bin/id" "/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice", "/system/bin/kill" "/system/bin/ln", "/system/bin/log", "/system/bin/ls", "/system/bin/lsmod", "/system/bin/mkdir", "/system/bin/mount" "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/notify" "/system/bin/printenv", "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir" "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setconsole" "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd", "/system/bin/start", "/system/bin/stop", "/system/bin/sync" "/system/bin/top", "/system/bin/umount", "/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe");
symlink("/system/xbin/su", "/system/bin/su");
symlink("/system/bin/dumpstate", "/system/bin/dumpmesg");
symlink("/system/bin/debuggerd", "/system/bin/csview");
show_progress(0.200000, 70);
ui_print(" | setting permissions... |");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(1002, 1002, 0755, 0440, /system/etc/bluetooth);
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/bin/launch_gps.sh");
set_perm(0, 2000, 0755, "/system/vendor/bin/gpsd");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/bin/sqlite3");
ui_print(" | installing busybox.... |");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print(" | Flashing modem |");
run_program("/tmp/redbend_ua", "restore", "/tmp/modem.bin", "/dev/block/bml12");
ui_print(" | Flashing kernel |");
run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
ui_print(" | Finishing Install | ");
unmount("/data");
unmount("/dbdata");
unmount("/cache");
unmount("/system");
show_progress(0.200000, 0);
ui_print(" +=========================================+");
its the encoding on updater.script
something probably corrupted the encoding on your updater.script (like a Microsoft product editor or something). Change the encoding back to unix and see if that doesn't fix it.
Rob
insink71 said:
something probably corrupted the encoding on your updater.script (like a Microsoft product editor or something). Change the encoding back to unix and see if that doesn't fix it.
Rob
Click to expand...
Click to collapse
holy necro post, dude....
insink71 said:
something probably corrupted the encoding on your updater.script (like a Microsoft product editor or something). Change the encoding back to unix and see if that doesn't fix it.
Rob
Click to expand...
Click to collapse
Its been so long since i had this prob and i still get it... I have a macwhich is paet of prob but ive found a solution thanks')
howtomen said:
Its been so long since i had this prob and i still get it... I have a macwhich is paet of prob but ive found a solution thanks')
Click to expand...
Click to collapse
What was the solution, if you don't mind? I'm having the same issue.
---------- Post added at 09:18 PM ---------- Previous post was at 09:11 PM ----------
Nevermind, found the solution - http://boardreader.com/thread/update_zip_error_status_6_677jjXi0hq.html
In CMW go to "Advanced" panel and then select "Log"
Here you can see where you went wrong and it will specify even the line number so you can easily edit these mistakes.
I recommend Notepad++ for editing these scripts.
Leon1234 said:
In CMW go to "Advanced" panel and then select "Log"
Here you can see where you went wrong and it will specify even the line number so you can easily edit these mistakes.
I recommend Notepad++ for editing these scripts.
Click to expand...
Click to collapse
Haha prob solved but thanks... The issue wasnt a specific to the updater but to what i used to edit it
trolol and awayyy!! Expect typos this is my phone.
Good to hear that.,
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
i created a sample recovery cwm update file for you guys that want to install new mods on your phone:
this is updater-script file:
Code:
#Mounting partitions
ui_print(" Mounting Partitions");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
#Install Files into System partition
ui_print(" Copying Data...");
package_extract_dir("system", "/system");
#Setting Permissions to files
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm(0, 0, 0644, "/system/build.prop");
if you want to install Kernel
create a directory beside the META-INF folder and name it to what you want.
for example is used amestris folder and i copy the boot.img [kernel file] into amestris folder.
Code:
# Installing The Kernel
package_extract_file("amestris/boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
#finish
---------------------------------------------------------------
this is an example for installing busybox
Code:
# install Busybox
# Mounting system partition
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
# copy busybox applet to system-xbin folder
# you have to create a folder beside META-INF folder and name it to system and then you have to craete xbin folder into the system directory and name it to xbin , then copy busybox applet into xbin folder]
# finally we have " /system/xbin/busybox
# copy busybox to phone
package_extract_dir("system", "/system");
# do permission
set_perm(0, 1000, 0755, "/system/xbin/busybox");
# create a symlink for busybox into the bin folder
symlink("/system/xbin/busybox", "/system/bin/busybox");
# install busybox
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
#finish
# Author Comments
ui_print(" Done.");
ui_print(" Reboot your phone. ");
ui_print(" ");
ui_print(" M Javad Nazari")
All lines that starts by sharp [ # ] , they are comments line and you can delete them.
------------------------------------------------------------------
Another Example
Code:
# AMESTRIS TEAM.
ui_print(" Amestris Team");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
show_progress(0.1, 0);
#Mounting partitions
ui_print(" Mounting Partitions");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/efs", "/efs");
ui_print(" ");
#Install Files into System partition
ui_print(" Copying Data...");
package_extract_dir("system", "/system");
show_progress(0.1, 3);
#Setting Permissions to files
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
show_progress(0.1, 6);
#Symlinking Files to bin folder
symlink("/system/xbin/busybox", "/system/bin/busybox");
symlink("/system/xbin/su", "/system/bin/su");
#Installing Busybox 1.20.2
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print(" ");
show_progress(0.1, 7);
# EFS Backup
ui_print(" Creating EFS Backup");
package_extract_file("amestris/efs_backup.sh", "/tmp/efs_backup.sh");
set_perm(0, 0, 0777, "/tmp/efs_backup.sh");
run_program("/tmp/efs_backup.sh");
ui_print(" ");
show_progress(0.1, 9);
# Installing The Kernel
package_extract_file("amestris/boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.1, 10);
#finish
ui_print(" Done.");
ui_print(" Reboot your phone. ");
ui_print(" ");
ui_print(" M Javad Nazari")
M_J_Nazari said:
All lines that starts by sharp [ # ] , they are comments line and you can delete them.
------------------------------------------------------------------
Another Example
Code:
# AMESTRIS TEAM.
ui_print(" Amestris Team");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
show_progress(0.1, 0);
#Mounting partitions
ui_print(" Mounting Partitions");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/efs", "/efs");
ui_print(" ");
#Install Files into System partition
ui_print(" Copying Data...");
package_extract_dir("system", "/system");
show_progress(0.1, 3);
#Setting Permissions to files
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
show_progress(0.1, 6);
#Symlinking Files to bin folder
symlink("/system/xbin/busybox", "/system/bin/busybox");
symlink("/system/xbin/su", "/system/bin/su");
#Installing Busybox 1.20.2
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
ui_print(" ");
show_progress(0.1, 7);
# EFS Backup
ui_print(" Creating EFS Backup");
package_extract_file("amestris/efs_backup.sh", "/tmp/efs_backup.sh");
set_perm(0, 0, 0777, "/tmp/efs_backup.sh");
run_program("/tmp/efs_backup.sh");
ui_print(" ");
show_progress(0.1, 9);
# Installing The Kernel
package_extract_file("amestris/boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.1, 10);
#finish
ui_print(" Done.");
ui_print(" Reboot your phone. ");
ui_print(" ");
ui_print(" M Javad Nazari")
Click to expand...
Click to collapse
hi, this is updater script ? i make new rom but not have update binry and updater script. please help me. thank you.
Please make updater script for i9190 sammy rom. i want make fully wiped rom. and init.d support. this wanam s4 rom script. please edit for s4 mini script. and add modem (NON-HLOS.bin) thank you. sorry for my bad english
show_progress(0.500000, 0);
ui_print("");
ui_print("********************************");
ui_print("Welcome to WanamLite UBUBMH1 V2.0");
ui_print("********************************");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
unmount("/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p20", "/system");
delete_recursive("/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p19", "/cache");
delete_recursive("/cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p21", "/data");
delete_recursive("/data/dalvik-cache");
show_progress(0.500000, 80);
ui_print("Installing System ...");
package_extract_dir("system", "/system");
package_extract_dir("wanam/data", "/data");
ui_print("Simlinking ...");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/adjtimex", "/system/xbin/arp", "/system/xbin/ash",
"/system/xbin/awk", "/system/xbin/base64", "/system/xbin/basename",
"/system/xbin/bbconfig", "/system/xbin/blkid", "/system/xbin/blockdev",
"/system/xbin/brctl", "/system/xbin/bunzip2", "/system/xbin/bzcat",
"/system/xbin/bzip2", "/system/xbin/cal", "/system/xbin/cat",
"/system/xbin/catv", "/system/xbin/chattr", "/system/xbin/chgrp",
"/system/xbin/chmod", "/system/xbin/chown", "/system/xbin/chroot",
"/system/xbin/clear", "/system/xbin/cmp", "/system/xbin/comm",
"/system/xbin/cp", "/system/xbin/cpio", "/system/xbin/crond",
"/system/xbin/crontab", "/system/xbin/cut", "/system/xbin/date",
"/system/xbin/dc", "/system/xbin/dd", "/system/xbin/depmod",
"/system/xbin/devmem", "/system/xbin/df", "/system/xbin/diff",
"/system/xbin/dirname", "/system/xbin/dmesg", "/system/xbin/dnsd",
"/system/xbin/dos2unix", "/system/xbin/du", "/system/xbin/echo",
"/system/xbin/ed", "/system/xbin/egrep", "/system/xbin/env",
"/system/xbin/expand", "/system/xbin/expr", "/system/xbin/false",
"/system/xbin/fdisk", "/system/xbin/fgrep", "/system/xbin/find",
"/system/xbin/flash_lock", "/system/xbin/flash_unlock",
"/system/xbin/flashcp", "/system/xbin/flock", "/system/xbin/fold",
"/system/xbin/free", "/system/xbin/freeramdisk", "/system/xbin/fsync",
"/system/xbin/ftpget", "/system/xbin/ftpput", "/system/xbin/fuser",
"/system/xbin/getopt", "/system/xbin/grep", "/system/xbin/groups",
"/system/xbin/gunzip", "/system/xbin/gzip", "/system/xbin/halt",
"/system/xbin/head", "/system/xbin/hexdump", "/system/xbin/id",
"/system/xbin/ifconfig", "/system/xbin/inetd", "/system/xbin/insmod",
"/system/xbin/install", "/system/xbin/iostat", "/system/xbin/ip",
"/system/xbin/kill", "/system/xbin/killall", "/system/xbin/killall5",
"/system/xbin/length", "/system/xbin/less", "/system/xbin/ln",
"/system/xbin/losetup", "/system/xbin/ls", "/system/xbin/lsattr",
"/system/xbin/lsmod", "/system/xbin/lsusb", "/system/xbin/lzcat",
"/system/xbin/lzma", "/system/xbin/lzop", "/system/xbin/lzopcat",
"/system/xbin/man", "/system/xbin/md5sum", "/system/xbin/mesg",
"/system/xbin/mkdir", "/system/xbin/mke2fs", "/system/xbin/mkfifo",
"/system/xbin/mkfs.ext2", "/system/xbin/mkfs.vfat",
"/system/xbin/mknod", "/system/xbin/mkswap", "/system/xbin/mktemp",
"/system/xbin/modinfo", "/system/xbin/modprobe", "/system/xbin/more",
"/system/xbin/mount", "/system/xbin/mountpoint", "/system/xbin/mpstat",
"/system/xbin/mv", "/system/xbin/nanddump", "/system/xbin/nandwrite",
"/system/xbin/netstat", "/system/xbin/nice", "/system/xbin/nohup",
"/system/xbin/nslookup", "/system/xbin/ntpd", "/system/xbin/od",
"/system/xbin/patch", "/system/xbin/pgrep", "/system/xbin/pidof",
"/system/xbin/ping", "/system/xbin/pkill", "/system/xbin/pmap",
"/system/xbin/poweroff", "/system/xbin/printenv", "/system/xbin/printf",
"/system/xbin/ps", "/system/xbin/pstree", "/system/xbin/pwd",
"/system/xbin/pwdx", "/system/xbin/rdev", "/system/xbin/readlink",
"/system/xbin/realpath", "/system/xbin/renice", "/system/xbin/reset",
"/system/xbin/resize", "/system/xbin/rev", "/system/xbin/rm",
"/system/xbin/rmdir", "/system/xbin/rmmod", "/system/xbin/route",
"/system/xbin/run-parts", "/system/xbin/rx", "/system/xbin/sed",
"/system/xbin/seq", "/system/xbin/setconsole", "/system/xbin/setserial",
"/system/xbin/setsid", "/system/xbin/sh", "/system/xbin/sha1sum",
"/system/xbin/sha256sum", "/system/xbin/sha512sum",
"/system/xbin/sleep", "/system/xbin/sort", "/system/xbin/split",
"/system/xbin/stat", "/system/xbin/strings", "/system/xbin/stty",
"/system/xbin/sum", "/system/xbin/swapoff", "/system/xbin/swapon",
"/system/xbin/sync", "/system/xbin/sysctl", "/system/xbin/tac",
"/system/xbin/tail", "/system/xbin/tar", "/system/xbin/taskset",
"/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
"/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
"/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
"/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
"/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
"/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
"/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
"/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
"/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
"/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
"/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
"/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
"/system/xbin/xz", "/system/xbin/xzcat", "/system/xbin/yes",
"/system/xbin/zcat");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/cat", "/system/bin/chcon", "/system/bin/chmod",
"/system/bin/chown", "/system/bin/cmp", "/system/bin/cp", "/system/bin/date",
"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg", "/system/bin/du", "/system/bin/getenforce",
"/system/bin/getevent", "/system/bin/getprop", "/system/bin/getsebool", "/system/bin/grep", "/system/bin/hd",
"/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
"/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
"/system/bin/kill", "/system/bin/ln", "/system/bin/load_policy", "/system/bin/log",
"/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
"/system/bin/md5", "/system/bin/mkdir", "/system/bin/mount",
"/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
"/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/playback", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/reboot",
"/system/bin/renice", "/system/bin/restorecon", "/system/bin/rm", "/system/bin/rmdir",
"/system/bin/rmmod", "/system/bin/route", "/system/bin/runcon", "/system/bin/schedtop",
"/system/bin/sendevent", "/system/bin/setconsole", "/system/bin/setenforce",
"/system/bin/setprop", "/system/bin/setsebool", "/system/bin/sleep", "/system/bin/smd",
"/system/bin/start", "/system/bin/stop", "/system/bin/sync",
"/system/bin/top", "/system/bin/touch", "/system/bin/touchinput", "/system/bin/umount",
"/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
"/system/bin/wipe");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0644, "/data/xposed");
set_perm(0, 0, 0666, "/data/xposed/modules.list");
set_perm(0, 0, 0666, "/data/xposed/modules.whitelist");
set_perm_recursive(0, 0, 0755, 0644, "/data/app");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pair_devlist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
ui_print("Flashing Kernel ...");
assert(package_extract_file("wanam/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p9"),
delete("/tmp/boot.img"));
show_progress(0.100000, 0);
unmount("/system");
unmount("/data");
ui_print(" ");
ui_print("Thanks for using WanamLite Rom, please reboot");
ok, i don't know about the 9190 partition, but it must be the same as 9192
so...
Code:
show_progress(0.1, 0);
unmount
# format system partition
format("ext4", "EMMC", "/dev/block/mmcblk0p21");
# mount partitions
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/efs", "/efs")
# WIPING DATA
#delete cache partition
delete_recursive("/cache");
# this will be delete all contents of data folder
delete_recursive("/data");
# Delete system partition
delete_recursive("/system");
# Copying
package_extract_dir("system", "/system");
#Symlinking
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("debuggerd", "/system/bin/csview");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/setprop");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
symlink("toolbox", "/system/bin/chcon");
symlink("toolbox", "/system/bin/setenforce");
symlink("toolbox", "/system/bin/grep");
symlink("toolbox", "/system/bin/runcon");
symlink("toolbox", "/system/bin/touchinput");
symlink("toolbox", "/system/bin/md5");
symlink("toolbox", "/system/bin/getsebool");
symlink("toolbox", "/system/bin/setsebool");
symlink("toolbox", "/system/bin/restorecon");
symlink("toolbox", "/system/bin/getenforce");
symlink("toolbox", "/system/bin/load_policy");
symlink("toolbox", "/system/bin/cp");
symlink("toolbox", "/system/bin/playback");
symlink("toolbox", "/system/bin/du");
symlink("wiperiface_v02", "/system/bin/wiperiface");
# Setting permission
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 06755, "/system/bin/ip");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pair_devlist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
show_progress(0.1, 10);
show_progress(0.2, 0);
#Install The kernel
package_extract_file("amestris/boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.2, 10);
unmount("/system");
init.d support is the kernel feature.
advice ; don't change the modem.
the meta-inf is attahced to this post.
if you had a problem or want more explanation , you just need to ask me here.
best regards.
Big thanks. I will try soon :silly:
Hi M_J_Nazari, how to add busybox ?
Thank you M_J_Nazari, script work perfect.
Just to make sure is it only this I need to use to backup/change settings in build.prop :
#Mounting partitions
ui_print(" Mounting Partitions");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
#Install Files into System partition
ui_print(" Copying Data...");
package_extract_dir("system", "/system");
#Setting Permissions to files
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm(0, 0, 0644, "/system/build.prop");
Click to expand...
Click to collapse
If so, do I need to change any settings?
Hi all
citymen34 said:
Hi M_J_Nazari, how to add busybox ?
Click to expand...
Click to collapse
you need to put busybox into /system/xbin folder
then add these lines to your script , exactly before the installing kernel section
Code:
# Installing Busybox
ui_print(" Instaling Busybox ...");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
EwOkie said:
Just to make sure is it only this I need to use to backup/change settings in build.prop :
If so, do I need to change any settings?
Click to expand...
Click to collapse
just for build.prop ?
Step by Step
Code:
# Mount System Partition
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
Code:
# make a backup from existing build.prop and copy it to sdcard
package_extract_file("/system/build.prop", "/sdcard/0/build.prop");
it will copy the current build.prop to sdcard/build.prop
now, we will copy our new build.prop that located beside of meta-inf folder into system partition of our phone.
Code:
package_extract_file("build.prop", "/system/build.prop");
now we will set the permission for new build.prop file.
Code:
set_perm(0, 0, 0644, "/system/build.prop");
------------------------------------------------------------------------------
final result is:
to make a backup and install new file
Code:
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_file("/system/build.prop", "/sdcard/0/build.prop");
package_extract_file("build.prop", "/system/build.prop")
set_perm(0, 0, 0644, "/system/build.prop");
to restore a backup from last one:
if you want to restore a backup you need to use this line
package_extract_file("/sdcard/0/build.prop" , "/system/build.prop");
Code:
# Restore Script
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_file("/sdcard/0/build.prop" , "/system/build.prop");
set_perm(0, 0, 0644, "/system/build.prop");
[/CODE]
Best Regards
# Mount System Partition
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
Click to expand...
Click to collapse
The by-name do i leave this as is or do I change this?
Thanks for helping me
EwOkie said:
The by-name do i leave this as is or do I change this?
Thanks for helping me
Click to expand...
Click to collapse
don't change it, it seems these partition names are the same for all qualcom chipsets.
If I only wish to flash framework-res.apk what do i need to do?
Tried the build.prop script you gave and flashed with CWM then wiped cache and dalvic cache whch came up :
no sd/ext found or something
Buy says wipe complete below ...so restarted phone and build.prop still the same ?
Like its not writing to the System...
Help please
Hi M_J_Nazari, this modem updater script or not ? please help me. i'm trying to make a new fully rom. Big thanks.
ui_print("Flashing Modem ...");
package_extract_file("NON-HLOS.bin", "/dev/block/mmcblk0p1");
citymen34 said:
Hi M_J_Nazari, this modem updater script or not ? please help me. i'm trying to make a new fully rom. Big thanks.
ui_print("Flashing Modem ...");
package_extract_file("NON-HLOS.bin", "/dev/block/mmcblk0p1");
Click to expand...
Click to collapse
Not sure but I think it's better to use "by-name" reference to the block devices:
Code:
package_extract_file("NON-HLOS.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem");
citymen34 said:
Hi M_J_Nazari, this modem updater script or not ? please help me. i'm trying to make a new fully rom. Big thanks.
ui_print("Flashing Modem ...");
package_extract_file("NON-HLOS.bin", "/dev/block/mmcblk0p1");
Click to expand...
Click to collapse
ladislav.heller said:
Not sure but I think it's better to use "by-name" reference to the block devices:
Code:
package_extract_file("NON-HLOS.bin", "/dev/block/platform/msm_sdcc.1/by-name/modem");
Click to expand...
Click to collapse
i didn't test the modem installing by cwm , it is very risky and maybe break your phone.
i recommend you to change modem by ODIN, just load the "NON-HLOS.bin" file into "PHONE' slot with disabling "F.Reset Time" option.
EwOkie said:
If I only wish to flash framework-res.apk what do i need to do?
Tried the build.prop script you gave and flashed with CWM then wiped cache and dalvic cache whch came up :
no sd/ext found or something
Buy says wipe complete below ...so restarted phone and build.prop still the same ?
Like its not writing to the System...
Help please
Click to expand...
Click to collapse
load system partition
copy your system dir to phone
set the 0644 permission for that.
finish.
I want some way of removing system apps from my phone automatically upon installing a rom.
Minimal gapps 5.1 thread had a bloatware removal script that did this, but it doesn't remove the folders in the /system. TK gapps has this feature currently, but I want to have this feature with any gapps I choose to install. Can anyone please tell me some method to do this?
Thanks
you can use this script, it's what I use to remove system apps when I upgrade/clean flash a ROM.
here is what it removes, you can edit to suit your needs, credit goes to Ar-Dinthalion for creating the script here.
Code:
ui_print("Package: Debloating Script");
ui_print("Updated: 16-05-2015");
show_progress(1, 15);
ui_print("-Unmounting system partition");
run_program("/sbin/busybox", "umount", "/system");
ui_print("-Mounting system partition");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("-debloating ROM");
delete_recursive(
"/system/app/BasicDreams",
"/system/app/Browser",
"/system/app/Calculator",
"/system/app/Camera2",
"/system/app/CMFileManager",
"/system/app/CMWallpapers",
"/system/app/Email",
"/system/app/Exchange2",
"/system/app/Galaxy4",
"/system/app/Gallery2",
"/system/app/HoloSpiralWallpaper",
"/system/app/HTMLViewer",
"/system/app/LiveWallpapers",
"/system/app/Lantern",
"/system/app/NoiseField",
"/system/app/PhaseBeam",
"/system/app/PhotoPhase",
"/system/app/PhotoTable",
"/system/app/PicoTts",
"/system/app/RomStats",
"/system/app/SoundRecorder",
"/system/app/Stk",
"/system/app/VisualizationWallpapers"
);
show_progress(1, 15);
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/etc/permissions", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/etc/preferred-apps", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/framework", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/priv-app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
ui_print("-Unmounting system partition");
run_program("/sbin/busybox", "umount", "/system");
ui_print("");
ui_print("Done debloating your ROM!");
blind_rodro said:
you can use this script, it's what I use to remove system apps when I upgrade/clean flash a ROM.
here is what it removes, you can edit to suit your needs, credit goes to Ar-Dinthalion for creating the script here.
Code:
ui_print("Package: Debloating Script");
ui_print("Updated: 16-05-2015");
show_progress(1, 15);
ui_print("-Unmounting system partition");
run_program("/sbin/busybox", "umount", "/system");
ui_print("-Mounting system partition");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("-debloating ROM");
delete_recursive(
"/system/app/BasicDreams",
"/system/app/Browser",
"/system/app/Calculator",
"/system/app/Camera2",
"/system/app/CMFileManager",
"/system/app/CMWallpapers",
"/system/app/Email",
"/system/app/Exchange2",
"/system/app/Galaxy4",
"/system/app/Gallery2",
"/system/app/HoloSpiralWallpaper",
"/system/app/HTMLViewer",
"/system/app/LiveWallpapers",
"/system/app/Lantern",
"/system/app/NoiseField",
"/system/app/PhaseBeam",
"/system/app/PhotoPhase",
"/system/app/PhotoTable",
"/system/app/PicoTts",
"/system/app/RomStats",
"/system/app/SoundRecorder",
"/system/app/Stk",
"/system/app/VisualizationWallpapers"
);
show_progress(1, 15);
set_metadata_recursive("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/etc/permissions", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/etc/preferred-apps", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/framework", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
set_metadata_recursive("/system/priv-app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
ui_print("-Unmounting system partition");
run_program("/sbin/busybox", "umount", "/system");
ui_print("");
ui_print("Done debloating your ROM!");
Click to expand...
Click to collapse
Thank you so much. I remember you from the development threads
If I edit the script, will it work if I just copy it back inside the zip? Or do I have to resign or something (like apks)?
You can just copy it back to the zip, no signing needed.