[Q] updater script for custom rom jvq - Galaxy S I9000 Q&A, Help & Troubleshooting

hi everyone,
well i'd like to make my own custom rom but i have a problem with the updater script under meta-inf.
The custom rom is ok on installation but it does not copy the data/app on the proper data folder on my galaxy s.
It works fine under jvp but under jvq the data folder is never copied.
i have this as script :
ui_print("Customing applications...");
package_extract_dir("data", "/data");
what's wrong with jpq ?
thanks in advance.

run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");

Will try this evening. Thanks.
Sent from my GT-I9000 using Tapatalk

oups forgot to reply.
In fact, it comes from my base rom.
Ok now.
Thanks.

Related

Need help with flashable zip for gingerbread!

Hi guys,
Im trying to make a flashable zip for 2.3.3 but it seems it has changed to what we used to use for froyo...
The script for my update script in my META INF folder used to look like this...
Code:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.1 10
But this doesnt work any more...
Do we need some sort of a binary now and can someone point me in the right direction to one...
Thanks for any help in advance!
Is it stock rom or custom rom? Are you using a custom kernel on your rom? if yes what kernel or custom rom are you using?
taha_e said:
Is it stock rom or custom rom? Are you using a custom kernel on your rom? if yes what kernel or custom rom are you using?
Click to expand...
Click to collapse
Simply honey 3.2 rom
Ultimate beta 7 kernel from damiengto
I think you are using a cwm2 update with a cwm3 compatible kernel or vice versa you can find cwm2 and cwm3 blank files on forum try them and let me know
Edit:
I attached the blank files
taha_e said:
I think you are using a cwm2 update with a cwm3 compatible kernel or vice versa you can find cwm2 and cwm3 blank files on forum try them and let me know
Edit:
I attached the blank files
Click to expand...
Click to collapse
Thanks for that mate ill give it a whirl!

Flashable TWlauncher3 for CWM

Please help me.
how do I create a update.zip file to flash toucwhiz3? since I removed it... :s
I did the folder tree correctly and this updater-script:
run_program("/sbin/mount", "/system");
package_extract_dir("system/app", "/system/app");
what is the update-binary?
why can't I flash it correctly?
i've got touch wiz 4 if its any good to you? in a zip folder ready to flash via cwm recovery? use at your own risk, im not responsible if anything happens, that kind of thing let me know if you want it.
maybe you can look through the tw4 i have and see if any of the files will help you get tw3?
Difusal said:
Please help me.
how do I create a update.zip file to flash toucwhiz3? since I removed it... :s
I did the folder tree correctly and this updater-script:
run_program("/sbin/mount", "/system");
package_extract_dir("system/app", "/system/app");
what is the update-binary?
why can't I flash it correctly?
Click to expand...
Click to collapse
Hi,
Here you go..
just to mention that it's a modded TW3 that looks like TW4 (no apps backdrops)
Enjoy!
dany__ said:
Hi,
Here you go..
just to mention that it's a modded TW3 that looks like TW4 (no apps backdrops)
Enjoy!
Click to expand...
Click to collapse
thanks, I'll try that right away!
Oh! And for those who were looking for the original touchwiz 3.0 from stock roms just like I was, I made this 100% working update.zip you can flash via recovery.
It is lighter than the stock because I removed unnecessary files.
It has only ~1mb, and before it had ~2mb.
Again, it works just like the stock, but faster and smoother!
See attached files for download.
dany__ said:
Hi,
Here you go..
just to mention that it's a modded TW3 that looks like TW4 (no apps backdrops)
Enjoy!
Click to expand...
Click to collapse
yes, that works fine! it's touchwiz 3 without the app backdrops, just like you said
Difusal said:
yes, that works fine! it's touchwiz 3 without the app backdrops, just like you said
Click to expand...
Click to collapse
Hi,
Good to hear that it worked fine.
I'm using it since a long time and never had problem.
Added to it Appzorter to reorganize the apps alphabetically (free on the market) and some TW4 widgets ( Digital clock, weather and program monitor)
I've tried all the ported TW4 but no one works as it should be.

[Q] [Request] "blank"-CWM-Kernel-ZIP

Hello Guys 'n girls,
I would like to ask if everybody could make me (or tell me how to do with windows) a ZIP-File for CWM where I can put a zImage in to flash it. Till now I always use a Overcome kernel.zip and replace zImage but I feel bad about such "stealing" as well as it confused people already (CM9 Kernel said "welcome to the Overcome-experience").
Know now what I want?
Otherwise please pm me...
http://forum.xda-developers.com/showthread.php?t=926430
Thanks, but not what I am looking for. I want to make a standalone zImage-cwm-zip, not intzegrate it into a rom.
Sent from my GT-P1000 using XDA App
there is one thread in the Epic 4G
http://forum.xda-developers.com/showthread.php?t=1301756
Makes me wonder if it is device specific?
But then again I am not a dev...
Or an easy way would be to open up the overcome zip, replace YOUR zimage inside, go into the file meta-inf/com/google/android/updater-script and change the text to whatever you want it to say. J always do this via root explorer when I want to edit it. Just see where the TEXT part is located, delete out what is written, type what you want it to say. For example it should look like this:
ui_print(">> Samsung Galaxy S II I777");
ui_print(">> CM7 STOCK KERNEL REVERTER");
ui_print(" @@@@ @@@@");
ui_print(" @ @ @ @");
ui_print(" @ @ @ @");
ui_print(" @ @ @ @");
ui_print(" @@ @@");
ui_print(" @ @ @ @");
ui_print(" @ @ @ @");
ui_print(" @ @OCK @ @ATT");
ui_print(">>");
So everything after:
ui_print("PUT IN YOUR TEXT HERE");
Just leave the ui_print(""); and fill in between the quotation marks. This way is easiest and you can remake it say anything you want.
Sent From My KickAss ATT SGS2 SPORTING CM7
It will actually look like this in root explorer when you choose to open in TEXT EDITOR. But you can also use a notepad i believe.
Sent From My KickAss ATT SGS2 SPORTING CM7

[guide] my way in porting roms (gb)

many people ask me about this, and i have a very limited time to write this, so i hope you guys will appreciate what i'm going to write here.
porting rom is about replacing files in ported rom with our fih-fb0 proprietary files, which can be taken FROM ONE OF MY ROM, such as MIUI 2.4.20.
(for ics porting, u need an extracted rom from edowar's cm9, for GB rom with .35 kernel, take it from edowar's cm7.2 .35 rom)
files need to be changed:
system/bin folder:
btwlancoex
geomagneticd
hci_qcomm_init
hciattach
hostapd
hostapd_cli
lightd
netd
netmgrd
nt_password_hash
orientationd
proximityd
qmuxd
rild
rmt_storage
wpa_cli
wpa_supplicant
(for ics rom porting, u also need to change: hlr_auc_gw, port-bridge, wpdiagd)
system/etc folder:
apns-conf.xml
bluetooth folder
dbus.conf
dhcpcd folder
firmware folder
gps.conf
hosts
all init.*.sh files
(except init.local rc)
media_profiles.xml
resolv.conf
spn-conf.xml
sysctl.conf
vold.fstab
wifi folder
(please also copy file 08hostapd in system/etc/init.d folder from edowar's rom & paste it to the same folder in your new rom)
system/lib folder:
all files in system/lib/egl folder except libGLES_android.so
copy gps.msm7x30.so, lights.msm7x30.s0 & sensors.qcom.so from system/lib/hw folder of my rom & paste it in the same folder of your new rom, delete same files with original device name extension, such as gps.u8800.so
libauth.so
libc.so
libc_malloc_debug_leak.so
libc_malloc_debug_qemu.so
libcamera.so
libcamera_client.so
libcameraservice.so
libcm.so
libcommondefs.so
libdiag.so
libdll.so
libdsi_netctrl.so
libdsm.so
libdsutils.so
libgemini.so
libgsdi_exp.so
libgsl.so
libgstk_exp.so
libhardware.so
libhardware_legacy.so
libidl.so
libmmgsdilib.so
libmmipl.so
libmmjpeg.so
libnetmgr.so
libnv.so
liboem_rapi.so
liboemcamera.so
liboncrpc.so
libOpenVG.so
libpbmlib.so
libqdp.so
libqmi.so
libqueue.so
libreference-ril.so
libril-qc-1.so
libril-qcril-hook-oem.so
libril.so
libwms.so
libwmsts.so
libwpa_client.so
modules folder
(for ics rom porting, you also need to change: libC2DC.so, libscc-a2xx.so)
system/usr folder
keychars folder
keylayout folder
(idc folder too for ics rom porting)
as you all guys know, i just port roms from huawei u8800, you still can use this way to port roms from other device, such as htc dhd, for sure it works, but i cannot give guarantee about wifi.
ok. i'll write again later, maybe about build.prop & updater script changes in porting rom.
OK, DO IT YOURSELF, ENJOY!!!
Thanks bro. I have been waiting this for a long time. Will definitely try out.
Thankz mr.zuk
I'll try it
Sent from my CSL-MI410 using Tapatalk 2
zukriaksah said:
many people ask me about this, and i have a very limited time to write this, so i hope you guys will appreciate what i'm going to write here.
porting rom is about replacing files in ported rom with our fih-fb0 proprietary files, which can be taken FROM ONE OF MY ROM, such as MIUI 2.4.20.
(for ics porting, u need an extracted rom from edowar's cm9, for GB rom with .35 kernel, take it from edowar's cm7.2 .35 rom)
files need to be changed:
system/bin folder:
btwlancoex
geomagneticd
hci_qcomm_init
hciattach
hostapd
hostapd_cli
lightd
netd
netmgrd
nt_password_hash
orientationd
proximityd
qmuxd
rild
rmt_storage
wpa_cli
wpa_supplicant
(for ics rom porting, u also need to change: hlr_auc_gw, port-bridge, wpdiagd)
system/etc folder:
apns-conf.xml
bluetooth folder
dbus.conf
dhcpcd folder
firmware folder
gps.conf
hosts
all init.*.sh files
(except init.local rc)
media_profiles.xml
resolv.conf
spn-conf.xml
sysctl.conf
vold.fstab
wifi folder
(please also copy file 08hostapd in system/etc/init.d folder from edowar's rom & paste it to the same folder in your new rom)
system/lib folder:
all files in system/lib/egl folder except libGLES_android.so
copy gps.msm7x30.so, lights.msm7x30.s0 & sensors.qcom.so from system/lib/hw folder of my rom & paste it in the same folder of your new rom, delete same files with original device name extension, such as gps.u8800.so
libauth.so
libc.so
libc_malloc_debug_leak.so
libc_malloc_debug_qemu.so
libcamera.so
libcamera_client.so
libcameraservice.so
libcm.so
libcommondefs.so
libdiag.so
libdll.so
libdsi_netctrl.so
libdsm.so
libdsutils.so
libgemini.so
libgsdi_exp.so
libgsl.so
libgstk_exp.so
libhardware.so
libhardware_legacy.so
libidl.so
libmmgsdilib.so
libmmipl.so
libmmjpeg.so
libnetmgr.so
libnv.so
liboem_rapi.so
liboemcamera.so
liboncrpc.so
libOpenVG.so
libpbmlib.so
libqdp.so
libqmi.so
libqueue.so
libreference-ril.so
libril-qc-1.so
libril-qcril-hook-oem.so
libril.so
libwms.so
libwmsts.so
libwpa_client.so
modules folder
(for ics rom porting, you also need to change: libC2DC.so, libscc-a2xx.so)
system/usr folder
keychars folder
keylayout folder
(idc folder too for ics rom porting)
as you all guys know, i just port roms from huawei u8800, you still can use this way to port roms from other device, such as htc dhd, for sure it works, but i cannot give guarantee about wifi.
ok. i'll write again later, maybe about build.prop & updater script changes in porting rom.
OK, DO IT YOURSELF, ENJOY!!!
Click to expand...
Click to collapse
thanks zuk,and you forget to tell about how to make handsfree working,,[remember dont forget to extract the service.jar at system/framework,open the class.dex and change the line h2w to make handsfree working]....to make easy handfree working,if you porting from rom base cm7,you can take class.dex on service.jar from rom cm7 edowar,yash and me,just extract the service.jar and take the class.dex and put the class.dex on service.jar base rom you want porting,and make it sign in the service.jar..DONE..this toturial can be use on rom CM7 and MIUI..if im wrong please tell me
elol said:
thanks zuk,and you forget to tell about how to make handsfree working,,[remember dont forget to extract the service.jar at system/framework,open the class.dex and change the line h2w to make handsfree working]....to make easy handfree working,if you porting from rom base cm7,you can take class.dex on service.jar from rom cm7 edowar,yash and me,just extract the service.jar and take the class.dex and put the class.dex on service.jar base rom you want porting,and make it sign in the service.jar..DONE..this toturial can be use on rom CM7 and MIUI..if im wrong please tell me
Click to expand...
Click to collapse
Thanks for yr addition i never touch service.jar file, i hv whyzee in helping me fix the headset... this is a community, not a private limited co., we help each other. I port roms just tru' my phone, so i hv no capability to decompile & recompile .jar files
Sent from my Huawei Ideos X6 using xda premium
Changes in build.prop:
ro.product.model=U9000
ro.product.brand=huawei
ro.product.name=u9000
ro.product.device=fb0
ro.product.board=FB0
ro.build.product=fb0
ro.cm.device=fb0 (if applicable)
rild.libargs=-d /dev/smd0
ro.telephony.ril_class=fih
rild.libpath=/system/lib/libril-qc-1.so
wifi.interface=wlan0
wifi.supplicant_scan_interval=90
Sent from my Huawei Ideos X6 using xda premium
zukriaksah said:
Thanks for yr addition i never touch service.jar file, i hv whyzee in helping me fix the headset... this is a community, not a private limited co., we help each other. I port roms just tru' my phone, so i hv no capability to decompile & recompile .jar files
Sent from my Huawei Ideos X6 using xda premium
Click to expand...
Click to collapse
nevermind mate i kown you are the best and first port the rom for device fih/fbo and thanks for you share this toturial...
---------- Post added at 03:33 PM ---------- Previous post was at 03:30 PM ----------
zukriaksah said:
Changes in build.prop:
ro.product.model=U9000
ro.product.brand=huawei
ro.product.name=u9000
ro.product.device=fb0
ro.product.board=FB0
ro.build.product=fb0
ro.cm.device=fb0 (if applicable)
rild.libargs=-d /dev/smd0
ro.telephony.ril_class=fih
rild.libpath=/system/lib/libril-qc-1.so
wifi.interface=wlan0
wifi.supplicant_scan_interval=90
Sent from my Huawei Ideos X6 using xda premium
Click to expand...
Click to collapse
ro.tethering.kb_disconnect=1
dont forget this line to,to make wifi terther working...
Originally Posted by zukriaksah
Thanks for yr addition i never touch service.jar file, i hv whyzee in helping me fix the headset... this is a community, not a private limited co., we help each other. I port roms just tru' my phone, so i hv no capability to decompile & recompile .jar files
Sent from my Huawei Ideos X6 using xda premium
Click to expand...
Click to collapse
nevermind mate i kown you are the best and first port the rom for device fih/fbo and thanks for you share this toturial...
---------- Post added at 03:33 PM ---------- Previous post was at 03:30 PM ----------
Originally Posted by zukriaksah
Changes in build.prop:
ro.product.model=U9000
ro.product.brand=huawei
ro.product.name=u9000
ro.product.device=fb0
ro.product.board=FB0
ro.build.product=fb0
ro.cm.device=fb0 (if applicable)
rild.libargs=-d /dev/smd0
ro.telephony.ril_class=fih
rild.libpath=/system/lib/libril-qc-1.so
wifi.interface=wlan0
wifi.supplicant_scan_interval=90
Sent from my Huawei Ideos X6 using xda premium
Click to expand...
Click to collapse
ro.tethering.kb_disconnect=1
dont forget this line to,to make wifi terther working...
Click to expand...
Click to collapse
Maybe its a necessity for htc-based roms, but not for u8800 based roms, native tether working without that line
Sent from my Huawei Ideos X6 using xda premium
zukriaksah said:
Maybe its a necessity for htc-based roms, but not for u8800 based roms, native tether working without that line
Sent from my Huawei Ideos X6 using xda premium
Click to expand...
Click to collapse
yes you right mate..who porting from another rom use this line to make wifi terther working..
edit;hye zuk what rom on you screenshoot?
elol said:
yes you right mate..who porting from another rom use this line to make wifi terther working..
edit;hye zuk what rom on you screenshoot?
Click to expand...
Click to collapse
That is miui 2.4.20 using concepto ics theme
Sent from my U9000 using xda premium
zukriaksah said:
That is miui 2.4.20 using concepto ics theme
Sent from my U9000 using xda premium
Click to expand...
Click to collapse
how about updater script changes
uemuem said:
how about updater script changes
Click to expand...
Click to collapse
later ok
Sent from my U9000 using xda premium
zukriaksah said:
That is miui 2.4.20 using concepto ics theme
Sent from my U9000 using xda premium
Click to expand...
Click to collapse
owh,need to ask you how do you get rom aurora booting?what update script are you using and what kernal are you using?
elol said:
owh,need to ask you how do you get rom aurora booting?what update script are you using and what kernal are you using?
Click to expand...
Click to collapse
no, so far aurora cannot be booted up, other ics roms that successfully booted up were honor ics demo & one of the ligux v4 version
Sent from my U9000 using xda premium
zukriaksah said:
no, so far aurora cannot be booted up, other ics roms that successfully booted up were honor ics demo & one of the ligux v4 version
Sent from my U9000 using xda premium
Click to expand...
Click to collapse
yes you right zuk,i already tried aurora but fail booted..but another ics can be booted..i think aroura use 3.3 base kernal,that is to hard give booted the rom..i need to pM mr nasptar,give he source base kernal 3.3 ics...
zukriaksah said:
no, so far aurora cannot be booted up, other ics roms that successfully booted up were honor ics demo & one of the ligux v4 version
Sent from my U9000 using xda premium
Click to expand...
Click to collapse
bro zuk have u tried the latest honor ics demo?
released 1st april i posted it on edo's AOSP thread
changes in updater scriptt:
assert(getprop("ro.product.device") == "fb0" || getprop("ro.build.product") == "fb0" || getprop("ro.product.board") == "FB0");
(some roms come only with the 1st 2 lines, some even come without getprop, so change nothing)
if ported from u8800:
format("ext4", "EMMC", "/dev/block/mmcblk0p7", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/system");
mount("vfat", "EMMC", "/dev/block/mmcblk0p5", "/cust");
if ported from htc devices:
format("ext4", "EMMC", "/dev/block/mmcblk0p7");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/system");
package_extract_file("boot.img", "/dev/block/mmcblk0p5");
note: these are examples, some roms may come exactly like these, some may not!
Sent from my U9000 using xda premium
zukriaksah said:
changes in updater scriptt:
assert(getprop("ro.product.device") == "fb0" || getprop("ro.build.product") == "fb0" || getprop("ro.product.board") == "FB0");
(some roms come only with the 1st 2 lines, some even come without getprop, so change nothing)
if ported from u8800:
format("ext4", "EMMC", "/dev/block/mmcblk0p7", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/system");
mount("vfat", "EMMC", "/dev/block/mmcblk0p5", "/cust");
if ported from htc devices:
format("ext4", "EMMC", "/dev/block/mmcblk0p7");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/system");
package_extract_file("boot.img", "/dev/block/mmcblk0p5");
note: these are examples, some roms may come exactly like these, some may not!
Sent from my U9000 using xda premium
Click to expand...
Click to collapse
Port from U8800 and flash,but error:format() expects 3 args, got4
...
(Status 7)
uemuem said:
Port from U8800 and flash,but error:format() expects 3 args, got4
...
(Status 7)
Click to expand...
Click to collapse
Can u post here the original updater script?
Sent from my U9000 using xda premium
uemuem said:
Port from U8800 and flash,but error:format() expects 3 args, got4
...
(Status 7)
Click to expand...
Click to collapse
Change this
format("ext4", "EMMC", "/dev/block/mmcblk0p7", "0");
To this
format("ext4", "EMMC", "/dev/block/mmcblk0p7");
Sent from my U9000 using xda premium

[Q] how to change/include developers name/credits on custom ROM

guys wherecan i found this entry file on a zip file of custom rom? for example when on CWM and installaing a zip(rom) when extracting the system i can see the names of ROM's developer, where can i find it?
It is written in the updater-script
You can find it in folder Meta-inf/com/google/android/updater-script
Majkio said:
It is written in the updater-script
You can find it in folder Meta-inf/com/google/android/updater-script
Click to expand...
Click to collapse
thank you
after i've edited the updadter-script via note pad, how can i compress it to its type file?
allenpot said:
thank you
after i've edited the updadter-script via note pad, how can i compress it to its type file?
Click to expand...
Click to collapse
No compressing needed... just edit and save...
allenpot said:
thank you
after i've edited the updadter-script via note pad, how can i compress it to its type file?
Click to expand...
Click to collapse
Don't edit via notepad. It wont work. Use Notepad++
My upcoming projects -
nOOb-Lite rom & CyanoETA rom, problem?
tj_droid said:
Don't edit via notepad. It wont work. Use Notepad++
My upcoming projects -
nOOb-Lite rom & CyanoETA rom, problem?
Click to expand...
Click to collapse
How to edit developers name and codename??
Andy96877 said:
How to edit developers name and codename??
Click to expand...
Click to collapse
Use root explorer or similar and go to /system/build.prop it contains the rom name, rom date and more info, just edit this file using root explorer (or similar)
Don't change important values!
Viper The Ripper said:
Use root explorer or similar and go to /system/build.prop it contains the rom name, rom date and more info, just edit this file using root explorer (or similar)
Don't change important values!
Click to expand...
Click to collapse
Sorry, but i have used this trick , bt it dont have developers name and codename in build.prop ... i edited android version and Gingerbread to kitkat bt cant find how to change developers name and codename ??
Developer Name not found
Majkio said:
It is written in the updater-script
You can find it in folder Meta-inf/com/google/android/updater-script
Click to expand...
Click to collapse
I searched for Developer's Name in this file, but unfortunatly didn't get it. But Developer's Name, his website, and images is showing in 'About Phone' in setting menu.
allenpot said:
guys wherecan i found this entry file on a zip file of custom rom? for example when on CWM and installaing a zip(rom) when extracting the system i can see the names of ROM's developer, where can i find it?
Click to expand...
Click to collapse
U can do that by Android Kitchen where therez an option to change the name of rom in build.prop
Hit Thanks if helped
allenpot said:
guys wherecan i found this entry file on a zip file of custom rom? for example when on CWM and installaing a zip(rom) when extracting the system i can see the names of ROM's developer, where can i find it?
Click to expand...
Click to collapse
What you see in CWM, during installation, is written in updater-script to the address:
meta-inf/com/google/android/updater-script
and looks like this:
ui_print("===============================");
ui_print(" Samsung Galaxy Ace S5830 ");
ui_print(" ");
ui_print("===============================");
ui_print(" blablabla by blablabla ");
ui_print(" ");
ui_print("===============================");
Open updater-script with Notepad ++
edit only text between (" ");
like:
Samsung Galaxy Ace S5830
blablabla by blablabla
Then, save.
To the next installation will appear in CWM the text reedited by you.

Categories

Resources