Hello Everyone,I own a International Galaxy S3 I9300,and wanted to know one thing
How can I remove modem.bin from ROMS? I just have to delete modem.bin or also have to modify updater-script? Thanks in advance guys! :highfive:
First solution I guess but no harm to look the script and see if there are specific lines for modem.bin and comment them. Most roms come without modem.
Bump before 24h delay is a violation of xda rules.
My mistake, i'm sorry
Anyway, yes i found the lines in the updater-script, they are at the end of the file
Sent from my GT-I9300 using xda app-developers app
EDIT: This are the last lines that regard the modem flash
Code:
ui_print("Flashing kernel");
assert(package_extract_file("pendroz/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p5"),
delete("/tmp/boot.img"));
ui_print("Flashing modem");
package_extract_file("pendroz/flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
assert(package_extract_file("pendroz/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
unmount("/system");
unmount("/data");
ui_print("");
ui_print(" Enjoy ");
ui_print(" Please reboot ");
Yes these are the lines. Just remove them and modem won't be flashed.
Striatum_bdr said:
Yes these are the lines. Just remove them and modem won't be flashed.
Click to expand...
Click to collapse
So I must remove only this lines?
Code:
ui_print("Flashing modem");
package_extract_file("pendroz/flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
assert(package_extract_file("pendroz/modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
And leave kernel?
Yes. Kernel has nothing to do with modem.
Striatum_bdr said:
Yes. Kernel has nothing to do with modem.
Click to expand...
Click to collapse
Okay then,will remove the lines and try to flash the rom,i'll let ya know,thank you very much man! :highfive:
Btw other question...the rom i want to install is based on a different build from the one i have now..it doesnt matter if modem will be different?
Sent from my GT-I9300 using xda app-developers app
Any single modem should work with all roms.
Sent from my GT-I9300 using Tapatalk 2
That's why IMO a Rom shouldn't provide any modem.
Agreed. I don't like the assumption that I'd want to upgrade my modem
Sent from my GT-I9300 using Tapatalk 2
Shouldn't he have left this line in his updater-script:
delete("/tmp/flash_image");
wangdaning said:
Shouldn't he have left this line in his updater-script:
delete("/tmp/flash_image");
Click to expand...
Click to collapse
It worked perfectly man,even without that line..
Anyway I agree too with you guys,modem update should be manual or it should be an optional selection in Aroma..
...
...
wangdaning said:
Shouldn't he have left this line in his updater-script:
delete("/tmp/flash_image");
Click to expand...
Click to collapse
It would do no harm leaving it in. Any delete /tmp is good but removing this line:
package_extract_file("pendroz/flash_image", "/tmp/flash_image");
Means theres nothing in flash_image to delete so it shouldn't be the end of the world
Sent from my GT-I9300 using Tapatalk 2
Other question,if I may want to revert to stock 4.1.2 ROM,how do I remove modem.bin from the tar.md5 package? I opened it with winrar and removed modem.bin then repacked,am I good to go??
Thanks!!
Sent from my GT-I9300 using xda app-developers app
bump!
Related
here you are link:
CWM-Recovery 3.2.0.0-r1 - Fixed for Custom ROM's
CWM-Recovery 3.2.0.0-r2 - Fixed for Custom ROM's
can you please make the zip edify to upgrade the version of clockworldmod r1 to r2?
nick88 said:
can you please make the zip edify to upgrade the version of clockworldmod r1 to r2?
Click to expand...
Click to collapse
Try this zip
EDIT: Fixed zip
D4rKn3sSyS said:
Try this zip
Click to expand...
Click to collapse
that won't work
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/bin/chargemon");
set_perm(0, 0, 0755, "/system/bin/recovery.tar"); <<< This file doesn't exist
set_perm(0, 0, 0755, "/system/bin/charger");
Chumby_666 said:
that won't work
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/bin/chargemon");
set_perm(0, 0, 0755, "/system/bin/recovery.tar"); <<< This file doesn't exist
set_perm(0, 0, 0755, "/system/bin/charger");
Click to expand...
Click to collapse
Well so your amend script was bad too , reuploaded zip
Could you explain what's bad with CWM recovery and gets 'fixed' here? I only see a different chargemon which *wont* work e.g. for MiniCM and possibly the majority of custom roms which spawn from MiniCM.
Sent from my Nexus One using XDA App
damn.. i have redownload... r1 and r2 refix them..
but on both i see r1 on normal or CWM flash :O
downloaded r1tor2 edify zip installed twice successfully but i have r1 again....why is that?
nobodyAtall said:
Could you explain what's bad with CWM recovery and gets 'fixed' here? I only see a different chargemon which *wont* work e.g. for MiniCM and possibly the majority of custom roms which spawn from MiniCM.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
right.
my rom is not from miniCM.. i could use old xrec or wait Z new xrec no problem.
this chargemon won't work on your rom becouse, your miniCM uses:
# Mount /system to /minicm/system
/sbin/mount_system
sleep 1
chroot /minicm /init
and you can allways use your chargemon. and most other custom roms use wide method like chroot / /init o right what needed to be fixed
>>> non working on custom roms.. <<<
Chumby_666 said:
right.
my rom is not from miniCM.. i could use old xrec or wait Z new xrec no problem.
this chargemon won't work on your rom becouse, your miniCM uses:
# Mount /system to /minicm/system
/sbin/mount_system
sleep 1
chroot /minicm /init
and you can allways use your chargemon. and most other custom roms use wide method like chroot / /init o right what needed to be fixed
>>> non working on custom roms.. <<<
Click to expand...
Click to collapse
Well so seems to be that's not gonna work for you nick88, anyway i find the error, and reuploaded fixed zip, for chroot / /init people
D4rKn3sSyS said:
Try this zip
EDIT: Fixed zip
Click to expand...
Click to collapse
I can report the fixed version as working!
Orkeren said:
I can report the fixed version as working!
Click to expand...
Click to collapse
yep working fine! ty
D4rKn3sSyS said:
Try this zip
EDIT: Fixed zip
Click to expand...
Click to collapse
i have installed r1tor2 ...but i have r1 again
mercuriox85 said:
i have installed r1tor2 ...but i have r1 again
Click to expand...
Click to collapse
try to use totalcommander binary compare.. and compare r1 and r2 they are the same..
I´m on CWM r2 now ... ty! but i found one bug. when i want to restart my cell from menu into CWM Recovery its boot direct to my CM7. I can only get into CWM with pressing the back button after the SE logo... not a problem but maybe u find the answer! ty anyway
martiii said:
I´m on CWM r2 now ... ty! but i found one bug. when i want to restart my cell from menu into CWM its boot direct to my CM7. I can only get into CWM with pressing th e back button after the SE logo... not a problem but maybe u find the answer! ty anyway
Click to expand...
Click to collapse
to be honest..
didn't even try that option
ok now i have.. and i don't see the point.. maybe some n00b trap
do factory wipe .. then select reset recovery
thank you very much
thanks chumby,
you saved my phone!!!
____________________________________
Xperia Mini
MiniCM7.2 [JIT,oc,uv...a lot]
CWM Recovery3.2 r2
So this works on minicm 7 with xrecovery? Thanks!
Sent from my X10mini using XDA App
Chumby_666 said:
that won't work
mount("yaffs2", "MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/bin/chargemon");
set_perm(0, 0, 0755, "/system/bin/recovery.tar"); <<< This file doesn't exist
set_perm(0, 0, 0755, "/system/bin/charger");
Click to expand...
Click to collapse
same bug is on CWM-Recovery 3.2.0.0-r2 - Fixed for Custom ROM's..
in update-script is set_perm(0, 0, 0755, "/system/bin/recovery.tar"); but on /system/bin/ is file xrecovery.tar
CWM Recovery r1 reuploaded with fixed script and with backup/restore fixed...
CWM Recovery r2 reuploaded with fixed script and with backup/restore fixed...
I modded a flashable zip and now it won't let me flash it.
When I try to flash I get
E:Error in /tmp/sideload/package.zip
(Status 6)
I have edited the update script, and don't know how to edit the update binary if that could be it. I am able to flash other zips though. I've tried removing things and adding things. The funny part is that another modded update zip I made a few days ago worked perfectly fine. Any ideas guys? What does Status 6 mean? Why does it give me the tmp/sideload/package.zip thing? Do I need to go back to factory (PLEASE SAY I DONT )
EDIT: I think it was just that zip.
According to AssassinsLament, the issue is probably your update-binary file (assuming you're already using edify: updater-script), which you can compile in AOSP or use the version AssassinsLament provides as the latest attached in his post here:
http://forum.xda-developers.com/showpost.php?p=16409219&postcount=24
also, you can get a more detailed log in recovery, cat /tmp/recovery.log and pastebin that. with the more detailed recovery log, we will be able to determine more precisely the issue you're experiencing, but as a general solution, updating the update-binary file *should* work. if not, pastebin your /tmp/recovery.log.
hope that helps!
joeykrim said:
According to AssassinsLament, the issue is probably your update-binary file (assuming you're already using edify: updater-script), which you can compile in AOSP or use the version AssassinsLament provides as the latest attached in his post here:
http://forum.xda-developers.com/showpost.php?p=16409219&postcount=24
also, you can get a more detailed log in recovery, cat /tmp/recovery.log and pastebin that. with the more detailed recovery log, we will be able to determine more precisely the issue you're experiencing, but as a general solution, updating the update-binary file *should* work. if not, pastebin your /tmp/recovery.log.
hope that helps!
Click to expand...
Click to collapse
Thanks! That's exactly it!, I wasn't touching the update binary (i dont know how).
EDIT: So how exactly do I update the binary? Or do I just copy the one from assassinlaments post into the update zip.
What are you trying to flash?
il Duce said:
What are you trying to flash?
Click to expand...
Click to collapse
Modded framework, sysui and a few other apks to the system partition.
Sent from my PG86100 using Tapatalk
fowenati said:
Modded framework, sysui and a few other apks to the system partition.
Sent from my PG86100 using Tapatalk
Click to expand...
Click to collapse
Make sure you're not using Wordpad or anything like that to edit the updater-script. You need to use something that encodes the file with Unix encoding. Also, it shouldn't be the update-binary, you would get a sideload error. Check to make sure you're not missing a "," or ";" or little things like that somewhere. Also, if you open the file /cache/recovery/last_log when you reboot (or I think there is a /cache/recovery/recovery.log while you're in recovery [just cat that file]) it will tell you what the error is and the line location of any errors in your updater-script
-viperboy- said:
Make sure you're not using Wordpad or anything like that to edit the updater-script. You need to use something that encodes the file with Unix encoding. Also, it shouldn't be the update-binary, you would get a sideload error. Check to make sure you're not missing a "," or ";" or little things like that somewhere. Also, if you open the file /cache/recovery/last_log when you reboot (or I think there is a /cache/recovery/recovery.log while you're in recovery [just cat that file]) it will tell you what the error is and the line location of any errors in your updater-script
Click to expand...
Click to collapse
Yeah I made sure it was in UTF 8, (using text wrangler). I'm gonna check the log right now.
fowenati said:
Yeah I made sure it was in UTF 8, (using text wrangler). I'm gonna check the log right now.
Click to expand...
Click to collapse
Send me your .zip too if you want and I will take a look at it in the morning!
-viperboy- said:
Send me your .zip too if you want and I will take a look at it in the morning!
Click to expand...
Click to collapse
Alright! Here it is!
This one doesnt give me a tmp/sideload/package.zip error, but when it finshes installing it doesn't really install. It wont give an error, but nothing happens.
http://dev-host.org/65j7ve7q0a2f/SupraMOD.zip
fowenati said:
Alright! Here it is!
This one doesnt give me a tmp/sideload/package.zip error, but when it finshes installing it doesn't really install. It wont give an error, but nothing happens.
http://dev-host.org/65j7ve7q0a2f/SupraMOD.zip
Click to expand...
Click to collapse
A few things... you don't even have an updater-binary. You NEED to have that. For the updater-script, you have:
Code:
ui_print("SupraROM v1.2.1 Upgrade-Beta");
show_progress(0.1, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
show_progress(0.2, 0);package_extract_dir("system", "/system");
show_progress(0.3, 0);
unmount("/system");
show_progress(0.4, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
show_progress(0.5, 0);
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Done Flashing");
You are mounting and unmounting twice and trying to extract the same package. Also, show progress is a pain in the ass and I doubt the way you have it shows a progress bar. Do it like this:
Code:
ui_print("SupraROM v1.2.1 Upgrade-Beta");
run_program("/sbin/busybox", "mount", "/system");
ui_print("");
ui_print("Installing files...");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
ui_print("");
ui_print("Done!");
unmount("/system");
And add in this updater-binary...
http://dl.dropbox.com/u/6621763/update-binary.zip
That should take care of it
-viperboy- said:
A few things... you don't even have an updater-binary. You NEED to have that. For the updater-script, you have:
Code:
ui_print("SupraROM v1.2.1 Upgrade-Beta");
show_progress(0.1, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
show_progress(0.2, 0);package_extract_dir("system", "/system");
show_progress(0.3, 0);
unmount("/system");
show_progress(0.4, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
show_progress(0.5, 0);
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Done Flashing");
You are mounting and unmounting twice and trying to extract the same package. Also, show progress is a pain in the ass and I doubt the way you have it shows a progress bar. Do it like this:
Code:
ui_print("SupraROM v1.2.1 Upgrade-Beta");
run_program("/sbin/busybox", "mount", "/system");
ui_print("");
ui_print("Installing files...");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
ui_print("");
ui_print("Done!");
unmount("/system");
And add in this updater-binary...
http://dl.dropbox.com/u/6621763/update-binary.zip
That should take care of it
Click to expand...
Click to collapse
thanks I got it working
I've tried everything: signing, not signing, latest cwm, latest twrp, etc, but I always get the same error.
syntax error, unexpected $end, expecting ',' or ')'
and it's always last line, last column.
The EOL's are in Unix format.
Code:
ui_print("===============================================");
ui_print("| Doing Conversion |");
ui_print("===============================================");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
run_program("/sbin/busybox", "mount", "/sdcard");
run_program("/sbin/busybox", "mkdir", "/sd-ext");
delete("/data/AmazingSense2.apk");
delete("/data/com.metago.astro-1.apk");
delete("/data/com.rerware.android.MyBackupRoot-1.apk");
delete("/data/com.skin.HoneyHD-1.apk");
delete("/data/com.skin.ThyparancyGingerArchInv-1.apk");
delete("/data/com.skin.ThyparancyGingerNormal-1.apk");
delete("/data/Glasskin_Green_ttb.apk");
delete("/data/MyBackupRoot.apk");
delete("/system/app/amazonmp3.apk");
delete("/system/app/AppSharing.apk");
delete("/system/app/Blockbuster_Stub_HTC.apk");
delete("/system/app/BlueSky.apk");
delete("/system/app/Burgundy.apk");
delete("/system/app/CheckinProvider.apk");
delete("/system/app/com.amazon.mp3.apk");
delete("/system/app/com.htc.FMRadioWidget.apk");
delete("/system/app/com.htc.FriendStream3DWidget.apk");
delete("/system/app/com.htc.htcmsgwidgets3d.apk");
delete("/system/app/com.htc.idlescreen_SN.apk");
delete("/system/app/com.htc.MusicWidget.apk");
delete("/system/app/com.htc.Sync3DWidget.apk");
delete("/system/app/com.htc.TrendsWidget.apk");
delete("/system/app/com.htc.Twitter3DWidget.apk");
delete("/system/app/DCSStock.apk");
delete("/system/app/dms.apk");
delete("/system/app/DFPI.apk");
delete("/system/app/DockMode.apk");
delete("/system/app/Flickr.apk");
delete("/system/app/FriendStream.apk");
delete("/system/app/fusion.apk)";
delete("/system/app/FusionStockWidget.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/GingerbreadKeyboard.apk");
delete("/system/app/GreenHornet3D.apk");
delete("/system/app/GSD.apk");
delete("/system/app/HTC_IME.apk");
delete("/system/app/HtcAddProgramWidget.apk");
delete("/system/app/HtcAutoRotateWidget.apk");
delete("/system/app/HtcBackgroundDataWidget.apk");
delete("/system/app/htcbookmarkwidget3d.apk");
delete("/system/app/HtcCalculatorWidget.apk");
delete("/system/app/htccalendarwidgets3d.apk");
delete("/system/app/HtcCarPanel.apk");
delete("/system/app/HtcClock3DWidget.apk");
delete("/system/app/HtcCompressViewer.apk");
delete("/system/app/HtcConnectedMedia.apk");
delete("/system/app/htccontactwidgets3D.apk");
delete("/system/app/HtcDataRoamingWidget.apk");
delete("/system/app/HtcDataStripWidget.apk");
delete("/system/app/HtcDirect.apk");
delete("/system/app/HtcFacebook.apk");
delete("/system/app/HtcFeedback.apk");
delete("/system/app/HtcFMRadio.apk");
delete("/system/app/HtcFootprints.apk");
delete("/system/app/HtcFootprintsWidget3d.apk");
delete("/system/app/HtcGreader.apk");
delete("/system/app/HtcGreaderWidget.apk");
delete("/system/app/HtcHubSyncProvider.apk");
delete("/system/app/HtcImageWallpaper.apk");
delete("/system/app/HtcIQAgent.apk");
delete("/system/app/HTCLivewallpaperStreak.apk");
delete("/system/app/HtcLockScreen.apk");
delete("/system/app/HtcLoggers.apk");
delete("/system/app/htcmailwidgets3d.apk");
delete("/system/app/HtcPhotoGridWidget3D.apk");
delete("/system/app/HtcPhotoWidget.apk");
delete("/system/app/HtcPowerStripWidget.apk");
delete("/system/app/HtcProfileWidget.apk");
delete("/system/app/HtcRecommends.apk");
delete("/system/app/HtcRecommendsWidget.apk");
delete("/system/app/MyReportAgent.apk");
delete("/system/app/HtcResetNotify.apk");
delete("/system/app/HtcRingtoneTrimmer.apk");
delete("/system/app/HtcRingtoneWidget.apk");
delete("/system/app/HtcScreenBrightnessWidget.apk");
delete("/system/app/HtcScreenTimeoutWidget.apk");
delete("/system/app/htcsettingwidgets.apk");
delete("/system/app/HtcStreamPlayer.apk");
delete("/system/app/HtcTipWidget.apk");
delete("/system/app/HtcTwitter.apk");
delete("/system/app/htcwatchwidget3d.apk");
delete("/system/app/HtcWeather3DWidget.apk");
delete("/system/app/HtcWeatherWallpaper.apk");
delete("/system/app/Idlescreen_Base.apk");
delete("/system/app/idlescreen_photo.apk");
delete("/system/app/idlescreen_shortcut.apk");
delete("/system/app/IdleScreen_Stock.apk");
delete("/system/app/IdleScreen_Weather.apk");
delete("/system/app/IQRD.apk");
delete("/system/app/JETCET_PRINT.apk");
delete("/system/app/JETCET_PRINT_Resources.apk");
delete("/system/app/LiveWallpapers.apk");
delete("/system/app/LiveWallpapersPicker.apk");
delete("/system/app/Mode10Wallpapers.apk");
delete("/system/app/mSpotRadioSprint_VPL.apk");
delete("/system/app/NscmStub.apk");
delete("/system/app/PluginManager.apk");
delete("/system/app/Rosie.apk");
delete("/system/app/MagicSmokeWallpapers.apk");
delete("/system/app/Maps.apk");
delete("/system/app/MyHTC.apk");
delete("/system/app/MyReportAgent.apk");
delete("/system/app/MyShelf_Widget.apk");
delete("/system/app/PGAWidget_HTCEvo3D_Sprint_v100.apk");
delete("/system/app/Protips.apk");
delete("/system/app/qik.apk");
delete("/system/app/SIE_HTCMobileGuide_Shooter.apk");
delete("/system/app/Spiderman_HTC_EVO2_ML_IGP_3D_Sprint_122.apk");
delete("/system/app/Sprint_Navigator_stub.apk");
delete("/system/app/SprintMobileWallet.apk");
delete("/system/app/SprintTVStub_Signed.apk");
delete("/system/app/Stock.apk");
delete("/system/app/Street.apk");
delete("/system/app/Swype.apk");
delete("/system/app/Talk.apk");
delete("/system/app/TaskManager.apk");
delete("/system/app/Transfer-shooter-8.30.0.33-S30.apk");
delete("/system/app/TrimIt.apk");
delete("/system/app/Twitter.apk");
delete("/system/app/VisualizationWallpapers.apk");
delete("/system/app/vtt-sprint.apk");
delete("/system/app/WeatherAgentService.apk");
delete("/system/app/WeatherLiveWallpaper.apk");
delete("/system/app/WeatherProvider.apk");
delete("/system/app/WeatherSyncProvider.apk");
delete("/system/framework/com.blockbuster.lib.htc");
delete("/system/framework/com.htc.android.rosie");
delete("/system/framework/com.htc.fusion.fx");
delete("/system/framework/com.htc.lockscreen.fusion");
delete("/system/framework/com.orange.authentication.simcard");
delete("/system/lib/libspiderman_117.so");
delete("/system/lib/libSwypeCore.3.7.85.27287.so");
delete("/system/lib/libSwypeCore.3.21.87.28626.so");
delete_recursive("/system/media/weather");
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
package_extract_dir("sdcard", "/sdcard");
set_perm(0, 0, 0750, "/system/bin/voc");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm(0, 0, 0750, "/system/xbin/virtuous_oc");
unmount("/system");
unmount("/data");
ui_print("===============================================");
ui_print("| Conversion Complete |");
ui_print("===============================================");
Is there a blank line at the end? Cuz there should be...
Sent from my PG86100 using xda premium
dkdude36 said:
Is there a blank line at the end? Cuz there should be...
Sent from my PG86100 using xda premium
Click to expand...
Click to collapse
Yes there is
dementio said:
I've tried everything: signing, not signing, latest cwm, latest twrp, etc, but I always get the same error.
syntax error, unexpected $end, expecting ',' or ')'
and it's always last line, last column.
The EOL's are in Unix format.
Code:
ui_print("===============================================");
ui_print("| Doing Conversion |");
ui_print("===============================================");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/data");
run_program("/sbin/busybox", "mount", "/sdcard");
run_program("/sbin/busybox", "mkdir", "/sd-ext");
delete("/data/AmazingSense2.apk");
delete("/data/com.metago.astro-1.apk");
delete("/data/com.rerware.android.MyBackupRoot-1.apk");
delete("/data/com.skin.HoneyHD-1.apk");
delete("/data/com.skin.ThyparancyGingerArchInv-1.apk");
delete("/data/com.skin.ThyparancyGingerNormal-1.apk");
delete("/data/Glasskin_Green_ttb.apk");
delete("/data/MyBackupRoot.apk");
delete("/system/app/amazonmp3.apk");
delete("/system/app/AppSharing.apk");
delete("/system/app/Blockbuster_Stub_HTC.apk");
delete("/system/app/BlueSky.apk");
delete("/system/app/Burgundy.apk");
delete("/system/app/CheckinProvider.apk");
delete("/system/app/com.amazon.mp3.apk");
delete("/system/app/com.htc.FMRadioWidget.apk");
delete("/system/app/com.htc.FriendStream3DWidget.apk");
delete("/system/app/com.htc.htcmsgwidgets3d.apk");
delete("/system/app/com.htc.idlescreen_SN.apk");
delete("/system/app/com.htc.MusicWidget.apk");
delete("/system/app/com.htc.Sync3DWidget.apk");
delete("/system/app/com.htc.TrendsWidget.apk");
delete("/system/app/com.htc.Twitter3DWidget.apk");
delete("/system/app/DCSStock.apk");
delete("/system/app/dms.apk");
delete("/system/app/DFPI.apk");
delete("/system/app/DockMode.apk");
delete("/system/app/Flickr.apk");
delete("/system/app/FriendStream.apk");
delete("/system/app/fusion.apk)";
delete("/system/app/FusionStockWidget.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/GingerbreadKeyboard.apk");
delete("/system/app/GreenHornet3D.apk");
delete("/system/app/GSD.apk");
delete("/system/app/HTC_IME.apk");
delete("/system/app/HtcAddProgramWidget.apk");
delete("/system/app/HtcAutoRotateWidget.apk");
delete("/system/app/HtcBackgroundDataWidget.apk");
delete("/system/app/htcbookmarkwidget3d.apk");
delete("/system/app/HtcCalculatorWidget.apk");
delete("/system/app/htccalendarwidgets3d.apk");
delete("/system/app/HtcCarPanel.apk");
delete("/system/app/HtcClock3DWidget.apk");
delete("/system/app/HtcCompressViewer.apk");
delete("/system/app/HtcConnectedMedia.apk");
delete("/system/app/htccontactwidgets3D.apk");
delete("/system/app/HtcDataRoamingWidget.apk");
delete("/system/app/HtcDataStripWidget.apk");
delete("/system/app/HtcDirect.apk");
delete("/system/app/HtcFacebook.apk");
delete("/system/app/HtcFeedback.apk");
delete("/system/app/HtcFMRadio.apk");
delete("/system/app/HtcFootprints.apk");
delete("/system/app/HtcFootprintsWidget3d.apk");
delete("/system/app/HtcGreader.apk");
delete("/system/app/HtcGreaderWidget.apk");
delete("/system/app/HtcHubSyncProvider.apk");
delete("/system/app/HtcImageWallpaper.apk");
delete("/system/app/HtcIQAgent.apk");
delete("/system/app/HTCLivewallpaperStreak.apk");
delete("/system/app/HtcLockScreen.apk");
delete("/system/app/HtcLoggers.apk");
delete("/system/app/htcmailwidgets3d.apk");
delete("/system/app/HtcPhotoGridWidget3D.apk");
delete("/system/app/HtcPhotoWidget.apk");
delete("/system/app/HtcPowerStripWidget.apk");
delete("/system/app/HtcProfileWidget.apk");
delete("/system/app/HtcRecommends.apk");
delete("/system/app/HtcRecommendsWidget.apk");
delete("/system/app/MyReportAgent.apk");
delete("/system/app/HtcResetNotify.apk");
delete("/system/app/HtcRingtoneTrimmer.apk");
delete("/system/app/HtcRingtoneWidget.apk");
delete("/system/app/HtcScreenBrightnessWidget.apk");
delete("/system/app/HtcScreenTimeoutWidget.apk");
delete("/system/app/htcsettingwidgets.apk");
delete("/system/app/HtcStreamPlayer.apk");
delete("/system/app/HtcTipWidget.apk");
delete("/system/app/HtcTwitter.apk");
delete("/system/app/htcwatchwidget3d.apk");
delete("/system/app/HtcWeather3DWidget.apk");
delete("/system/app/HtcWeatherWallpaper.apk");
delete("/system/app/Idlescreen_Base.apk");
delete("/system/app/idlescreen_photo.apk");
delete("/system/app/idlescreen_shortcut.apk");
delete("/system/app/IdleScreen_Stock.apk");
delete("/system/app/IdleScreen_Weather.apk");
delete("/system/app/IQRD.apk");
delete("/system/app/JETCET_PRINT.apk");
delete("/system/app/JETCET_PRINT_Resources.apk");
delete("/system/app/LiveWallpapers.apk");
delete("/system/app/LiveWallpapersPicker.apk");
delete("/system/app/Mode10Wallpapers.apk");
delete("/system/app/mSpotRadioSprint_VPL.apk");
delete("/system/app/NscmStub.apk");
delete("/system/app/PluginManager.apk");
delete("/system/app/Rosie.apk");
delete("/system/app/MagicSmokeWallpapers.apk");
delete("/system/app/Maps.apk");
delete("/system/app/MyHTC.apk");
delete("/system/app/MyReportAgent.apk");
delete("/system/app/MyShelf_Widget.apk");
delete("/system/app/PGAWidget_HTCEvo3D_Sprint_v100.apk");
delete("/system/app/Protips.apk");
delete("/system/app/qik.apk");
delete("/system/app/SIE_HTCMobileGuide_Shooter.apk");
delete("/system/app/Spiderman_HTC_EVO2_ML_IGP_3D_Sprint_122.apk");
delete("/system/app/Sprint_Navigator_stub.apk");
delete("/system/app/SprintMobileWallet.apk");
delete("/system/app/SprintTVStub_Signed.apk");
delete("/system/app/Stock.apk");
delete("/system/app/Street.apk");
delete("/system/app/Swype.apk");
delete("/system/app/Talk.apk");
delete("/system/app/TaskManager.apk");
delete("/system/app/Transfer-shooter-8.30.0.33-S30.apk");
delete("/system/app/TrimIt.apk");
delete("/system/app/Twitter.apk");
delete("/system/app/VisualizationWallpapers.apk");
delete("/system/app/vtt-sprint.apk");
delete("/system/app/WeatherAgentService.apk");
delete("/system/app/WeatherLiveWallpaper.apk");
delete("/system/app/WeatherProvider.apk");
delete("/system/app/WeatherSyncProvider.apk");
delete("/system/framework/com.blockbuster.lib.htc");
delete("/system/framework/com.htc.android.rosie");
delete("/system/framework/com.htc.fusion.fx");
delete("/system/framework/com.htc.lockscreen.fusion");
delete("/system/framework/com.orange.authentication.simcard");
delete("/system/lib/libspiderman_117.so");
delete("/system/lib/libSwypeCore.3.7.85.27287.so");
delete("/system/lib/libSwypeCore.3.21.87.28626.so");
delete_recursive("/system/media/weather");
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
package_extract_dir("sdcard", "/sdcard");
set_perm(0, 0, 0750, "/system/bin/voc");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm(0, 0, 0750, "/system/xbin/virtuous_oc");
unmount("/system");
unmount("/data");
ui_print("===============================================");
ui_print("| Conversion Complete |");
ui_print("===============================================");
Click to expand...
Click to collapse
I think you posted this issue on IRC last night. After confirming with you, you're using the corrrect Unix style text file format for the updater-script, I suggested removing the last line of the script and trying again.
The concept behind that idea is to help develop a type of troubleshooting method.
Issue: If you're always receiving an error on the last line due to the system expecting a "," or ")" which shows either the system is expecting more parameters or a closing parathensis meaning somewhere in your code you're not ending a statement properly.
One type of approach: Cut your script in half and see if it executes properly. If so, then you know the first half of your lines are correct. If not, then you know there is at least one issue in the first half of your lines. Depending on the result you either add more commands (first half worked) or you reduce the commands (first half didnt work) in an effort to narrow down your issue. As you proceed using this approach, you should be able to narrow down the trouble line/lines to the exact specific line/syntax which causes the script to always error.
For reference, if you want to compare against a known working updater-script, the one I wrote in my ROM works very well. Feel free to extract it out of the ROM and compare/contrast/use.
[ROM] joeykrim-original-1.2.0 Odex *Stock Rooted 2.08.651.2*
Hope that helps! Keep us updated!
I found the offending line, and can't believe I missed it so many times:
Code:
delete("/system/app/fusion.apk)";
dementio said:
I found the offending line, and can't believe I missed it so many times:
Code:
delete("/system/app/fusion.apk)";
Click to expand...
Click to collapse
The quotation mark should be inside the parenthesis. Its always a little thing.
Sent from my PG86100 using XDA App
unCoRrUpTeD said:
The quotation mark should be inside the parenthesis. Its always a little thing.
Sent from my PG86100 using XDA App
Click to expand...
Click to collapse
I noticed that while I was typing my last post. It's annoying because I'd hate to know how many times I (and others) looked at it.
dementio said:
I've tried everything: signing, not signing, latest cwm, latest twrp, etc, but I always get the same error.
syntax error, unexpected $end, expecting ',' or ')'
and it's always last line, last column.
Click to expand...
Click to collapse
joeykrim said:
Issue: If you're always receiving an error on the last line due to the system expecting a "," or ")" which shows either the system is expecting more parameters or a closing parathensis meaning somewhere in your code you're not ending a statement properly.
Click to expand...
Click to collapse
dementio said:
I found the offending line, and can't believe I missed it so many times:
Code:
delete("/system/app/fusion.apk)";
Click to expand...
Click to collapse
exactly what the update-binary was saying the error was. glad you were able to locate the line.
this is the main reason i dislike programming, syntax .. but we all learn to live by it.
thanks for the follow up post. good to know update-binary does throw a correct error message according to your post, although the offending line doesnt seem to be correctly mentioned in the error message.
joeykrim said:
exactly what the update-binary was saying the error was. glad you were able to locate the line.
this is the main reason i dislike programming, syntax .. but we all learn to live by it.
thanks for the follow up post. good to know update-binary does throw a correct error message according to your post, although the offending line doesnt seem to be correctly mentioned in the error message.
Click to expand...
Click to collapse
That was what was driving me crazy: the wrong line number.
Hi all
I have been trying to make a flashable zip for my mod for jb 4.2.2.
I haven't really seen a detailed guide (exact steps) on how to achive this.... most of the threads are for CWM, the op of the thread attaches a sample.zip but its for CWM.
My problem is the update-binary. When I come to flash the file it give an error and quits the install.
My mod is to be written to the system folder.
Where do I get an update-binary file compatible with 4.2.2 if that is what I require.
I am willing to read/learn if there is a guide.
Thanks all
Sent from my GT-I9300 using xda app-developers app
Hey there mate,
try the following method:
http://teamuscellular.com/Forum/topic/3488-how-to-make-flashable-zip-files-for-cwm-or-twrp/
Thanks for the reply mate. Yeah have read this post but still need to find out about the update binary file.
Again thanks
Sent from my GT-I9300 using xda app-developers app
I'd recommend finding a flashable zip that already works for TWRP and replacing the contents of it with your mod.
That should work...
You could try this blank TWRP zip I use it for 4.1.2 so not sure if it will work with 4.2.2 as it stands.
If you rename it make sure you don't have any spaces in the naming format all words must be linked with a _ or - or something no gaps
Top work guys thanks alot for ya fast responses will try when I get in
Sent from my GT-I9300 using xda app-developers app
ag4751 said:
You could try this blank TWRP zip I use it for 4.1.2 so not sure if it will work with 4.2.2 as it stands.
If you rename it make sure you don't have any spaces in the naming format all words must be linked with a _ or - or something no gaps
Click to expand...
Click to collapse
i tried the attached file but as it starts its says
E: Error executing updater binary in zip
error flashing zip
this is on the internal memory.
this is the update script im using.... more that likely wrong...
ui_print("Lockscreen Clock Font");
show_progress(0.500000, 0);
ui_print("inspired by Delight CFW Font");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
set_perm_recursive 0 0 0755 0644 SYSTEM:app
unmount("/system");
ui_print("Reboot now!");
show_progress(1.000000, 0);
i took mikep99 advice and edited the script and put my info in
i busybox installed so am now a little stuck
Try with a ';' at the end of the set_perm line..
EDIT. remove the line completely and try.
EDIT2. That line should be:
set_perm_recursive(0, 0, 0755, 0644, "/system");
Sent from my GT-I9300 using xda app-developers app
mikep99 said:
Try with a ';' at the end of the set_perm line..
EDIT. remove the line completely and try.
EDIT2. That line should be:
set_perm_recursive(0, 0, 0755, 0644, "/system");
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
thanks for replying
i just tried the editions to the file and it did install this time but sent me in to boot loop... all restored in 127 seconds.... love TWRP lol just wish my mod would flash.
i am trying to flash the keyguardwidget.apk to the /system/app folder.
the set_perm line has had different values ive notice in other flash files, are mine correct for what im trying to do.
Its just file permissions. that wont cause a boot loop in itself
Sent from my GT-I9300 using Tapatalk 2
i tryed adding a couple of more lines but still boot looped.... after it flashes it says "fix permissions... looks like you are not rooted"
i just dont want to edit someone elses work.
Boooooooom!!!! done it :silly:
For all..... this line DID send me in to boot loop
set_perm_recursive(0, 0, 0755, 0644, "/system");
it should be
set_perm(0, 0, 0644, "X");
were X is the directory in the zip
thanks to all for your help
pug1 said:
Boooooooom!!!! done it :silly:
For all..... this line DID send me in to boot loop
set_perm_recursive(0, 0, 0755, 0644, "/system");
it should be
set_perm(0, 0, 0644, "X");
were X is the directory in the zip
thanks to all for your help
Click to expand...
Click to collapse
odd
The only thing I can think is that:
0, is /system, Next 0 is app, And the 644 is to the app itself.
Had to look at another flash file (gs4 keyboard)
Sent from my GT-I9300 using xda app-developers app
Can someone make for me a flashable zip to replace the system/app
And system/framework
Folders with another folders from my choice
Cuz I have deodexed them but
I don't have android sdk to push them through abd
Thanks in advance
Sent from my GT-S7562 using xda premium
Does your device have a custom recovery? Do you know the mount points?
You don't need the full SDK for adb, and depending on what all you are replacing you could do it with a root file explorer or a terminal emulator
Sent from my Nexus 4 using Tapatalk 2
I do have cwm recovery
But what is this mount points ??
Anyway
I think if I changed this files through root explorer or terminal emulator
The phone will freeze in the process
And won't boot again
Cuz while the system is on the android will be running this apps and changing them while the phone is on will cause the phone to stop working before the process finish
Sent from my GT-S7562 using xda premium
depending on what your flashing could make your phone freeze true but you didnt really explain what your are in need of flashing.
adding a system app wont harm anything, changing the framework-res.apk will, but again i dont have all the info on what your trying to flash so its all a guess
by mount points i mean location of system partition etc, but you can try to bypass this
here is an example of what your updater script should look like (again just guessing being i would need more detail)
Code:
ui_print("Installing Mods..");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
probably would need to set permissions as well but again would need more info
About the mounting points I can mount it manually through the recovery
I need a zip to replace all the apks and jars in this directory
Maybe wiping the two directories
And placing a new ones
Sent from my GT-S7562 using xda premium
I want replace everything in the system/app and system/framework directories
I have deodexed everything inside them but I don't have android sdk to push them
Sent from my GT-S7562 using xda premium
well again, you dont need the whole sdk to have adb, which even for more than just this case its a handy tool to have, and you should have it if your modding androids
The script bellow will wipe /system/app and /system/framework and then drop your files in those place and set their permissions
just create a file called updater-script and put this in there (unix format) and grab an update-binary for your device and put both files in META-INF/com/google/android
then at the same level as META-INF, make a folder called system, in that folder have two more folders, app and framework, place files you want to flash in the proper folders
now zip it all up, sign it (or change sig check in recovery) and flash
Code:
ui_print("Installing Mods..");
ui_print("Deleting first..");
delete_recursive("/system/app");
delete_recursive("/system/framework");
ui_print("Mounting System..");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Extracting Files..");
package_extract_dir("system", "/system");
ui_print("Setting Permissions..");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Installation complete!");
Thanks gona try it and will report back
Sent from my GT-S7562 using xda premium
It worked thank you very much
Sent from my GT-S7562 using xda premium