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.
Related
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 tried to create an update.zip to install my apps when i flash a rom.
first i got a status 2 error -- solved it. (dont remember how)
then got a status 6 error -- solved it by changing EOL to unix based
now i am getting status 7 error
this is my updater-script
show_progress(0.1, 0);
ui_print("DATA FLASH");
mount("MTD", "userdata", "/data");
package_extract_dir("data", "/data");
set_perm_recursive(0, 0, 0755, 0644, "data/app");
show_progress(0.1, 10);
unmount("/userdata");
is it because the commands are wrong? (i copied them directly)
if so how to modify
Phone- Xperia mini pro sk17i
EDIT: tying other mount commands now, will update - run_program("/sbin/busybox", "mount", "/data");
IT WORKED:victory:
sorry for creating a dud-thread
Hi all! I want to show you how to create custom rom based on stock lg firmware and stock rom ready to install by recovery
1. Making stock rom ready to install by recovery
1. Download latest LG KK Firmware KDZ: IS HERE
PASSWORD: firmware-lg-d620r-poland-62010
then this programme:
this: Click!
2. Run KDZ Extractor and open kdz (downloaded file) in it.
3. Click extract KDZ
4. Open extracted DZ file, wait and then click on merge system bin (you must check every file in programme)
5. Now you have some more files, look on:
-system.img
and
-boot_327680.bin (rename it to boot.img)
-cust_704512.bin (rename it to cust.bin)
6. Download attach file: attach file is here
7. Make some folder on your disc and put there META-INF folder (which you downloaded), system.img, boot.img and cust.bin.
8. Make zip package by 7zip.
9. Now you have ready zip package, you can install it by moded-Recovery.
2. Making custom rom based on stock
1. Make all points from first tutorial to 5*
2. Download here
3. Open system file in downloaded programme and save what you want.
4. Download "META-INF for custom":
Here
Example:
Code:
[B]Your text here[/B]
ui_print("*****************************");
ui_print("* Your mod *");
ui_print("*****************************");
ui_print("* for LG G2M *");
ui_print("*****************************");
ui_print("First part of installation...");
run_program("/sbin/mount", "/system");
run_program("/sbin/busybox","mount","/data");
[B]Delete system folder, in example you see "media" folder[/B]
delete_recursive("/system/media");
package_extract_dir("system", "/system");
mount("ext2", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
symlink("../xbin/su", "/system/bin/su");
symlink("../xbin/busybox", "/system/bin/busybox");
set_metadata("/system/xbin/su", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Second part of installation...");
[B]About deleting apps, for example Books apk and odex file[/B]
delete("/system/app/Books.apk");
delete("/system/app/Books.odex");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
ui_print("Please wait... ");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
unmount("/system");
ui_print("Clearing cache");
delete_recursive("/data/dalvik-cache");
ui_print("Now UnMounting partitions");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
show_progress(0.1, 0);
[B]Last words for ending intsallation[/B]
ui_print("*******************************");
ui_print("* Thank you! *");
ui_print("*******************************");
show_progress(0.1, 10);
If you want add kernel installation put boot.img to your folder and add to your script this command:
Code:
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
*** NEW UPDATER-SCRIPT, WITH FORMATING SYSTEM AND CLEAN INSTALLATION:
here!
FOR EDITING UPDATER SCRIPT ETC USE ALWAYS NOTEPAD++ (NotepadPP)
HOMEPAGE of N++
Thats all
great work
:good:
WYPIERDAALAAC said:
Hi all! I want to show you how to create custom rom based on stock lg firmware and stock rom ready to install by recovery
1. Making stock rom ready to install by recovery
1. Download latest LG KK Firmware KDZ: CLICK
then this programme:
this: Click!
2. Run KDZ Extractor and open kdz (downloaded file) in it.
3. Click extract KDZ
4. Open extracted DZ file, wait and then click on merge system bin (you must check every file in programme)
5. Now you have some more files, look on:
-system.img
and
-boot_327680.bin (rename it to boot.img)
-cust_704512.bin (rename it to cust.bin)
6. Download attach file: attach file is here
7. Make some folder on your disc and put there META-INF folder (which you downloaded), system.img, boot.img and cust.bin.
8. Make zip package by 7zip.
9. Now you have ready zip package, you can install it by moded-Recovery.
2. Making custom rom based on stock
1. Make all points from first tutorial to 5*
2. Download here
3. Open system file in downloaded programme and save what you want.
4. Download "META-INF for custom":
Here
Example:
Code:
[B]Your text here[/B]
ui_print("*****************************");
ui_print("* Your mod *");
ui_print("*****************************");
ui_print("* for LG G2M *");
ui_print("*****************************");
ui_print("First part of installation...");
run_program("/sbin/mount", "/system");
run_program("/sbin/busybox","mount","/data");
[B]Delete system folder, in example you see "media" folder[/B]
delete_recursive("/system/media");
package_extract_dir("system", "/system");
mount("ext2", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
package_extract_dir("system", "/system");
symlink("../xbin/su", "/system/bin/su");
symlink("../xbin/busybox", "/system/bin/busybox");
set_metadata("/system/xbin/su", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:su_exec:s0");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Second part of installation...");
[B]About deleting apps, for example Books apk and odex file[/B]
delete("/system/app/Books.apk");
delete("/system/app/Books.odex");
set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app");
ui_print("Please wait... ");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
unmount("/system");
ui_print("Clearing cache");
delete_recursive("/data/dalvik-cache");
ui_print("Now UnMounting partitions");
run_program("/sbin/umount", "/system");
run_program("/sbin/umount", "/data");
show_progress(0.1, 0);
[B]Last words for ending intsallation[/B]
ui_print("*******************************");
ui_print("* Thank you! *");
ui_print("*******************************");
show_progress(0.1, 10);
If you want add kernel installation put boot.img to your folder and add to your script this command:
Code:
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
Thats all
Click to expand...
Click to collapse
Very good tutorial !
I made a flashable v10j ! I can upload it if anyone is interested.
Tse™ said:
Very good tutorial !
I made a flashable v10j ! I can upload it if anyone is interested.
Click to expand...
Click to collapse
why not maybe it will help someone back from cm to stock
question: would it be possible to copy the part of the stock of sw Gps CM12? I'm fine with CM12 but GPS signal ... dancer stock with stable signal
WYPIERDAALAAC said:
why not maybe it will help someone back from cm to stock
Click to expand...
Click to collapse
Ok! I am uploading!
Just tell if this is for d620 or d61*
Sent from my D620fr [SlimKat]
D620R V10J unbranded. Here is the link until i get 10 posts and i am able to open a thread.
https://www.dropbox.com/s/xv3ftorno1208en/V10j_D620R.zip?dl=0
Tse™ said:
D620R V10J unbranded. Here is the link until i get 10 posts and i am able to open a thread.
https://www.dropbox.com/s/xv3ftorno1208en/V10j_D620R.zip?dl=0
Click to expand...
Click to collapse
Just add the link in this thread :good:
Sent from my D620fr [SlimKat]
Already done! I think I'll start playing a bit with the ROM .
baggino said:
question: would it be possible to copy the part of the stock of sw Gps CM12? I'm fine with CM12 but GPS signal ... dancer stock with stable signal
Click to expand...
Click to collapse
You can use gps file from stock to cm12, below link:
WYPIERDAALAAC said:
You can use gps file from stock to cm12, below link:
Click to expand...
Click to collapse
Now I try it immediately and tell you how it works. If it works well, as you might do for Rom Resurrection Remix
stability is improved but still less the stock. I'd like to try the Resurrection_remix - but I do not know how to copy ...
baggino said:
stability is improved but still less the stock. I'd like to try the Resurrection_remix - but I do not know how to copy ...
Click to expand...
Click to collapse
system\etc\gps.conf it's here
copy it from Resurrection_remix to your ROM and set permission.
PS.: THREAD UPDATED
Just want to know if this method is compatible with D722....and if yes is the meta inf too?????
Thank so. ..
Is there a way to root ROM before flash?
WYPIERDAALAAC said:
PS.: THREAD UPDATED
Click to expand...
Click to collapse
How to add root directly in the created zip ? ???
rayman95 said:
How to add root directly in the created zip ? ???
Click to expand...
Click to collapse
you must write commands in script for that, tell me if it's good:
link for supersu https://download.chainfire.eu/696/SuperSU/UPDATE-SuperSU-v2.46.zip and put to tmp/supersu folder
Code:
set_progress(0.700000);
ui_print("Rooting...");
package_extract_dir("PACKAGENAME/supersu", "/tmp/supersu");
run_program("/sbin/busybox", "unzip", "/tmp/supersu/UPDATE-SuperSU-v2.46.zip", "META-INF/com/google/android/*", "-d", "/tmp/supersu");
run_program("/sbin/busybox", "sh", "/tmp/supersu/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/supersu/UPDATE-SuperSU-v2.46.zip");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_progress(0.800000);
Tse™ said:
Very good tutorial !
I made a flashable v10j ! I can upload it if anyone is interested.
Click to expand...
Click to collapse
Thanks!
i cant find the system.img.
these files are D62020a00.kdz,
Hello XDA Members! I Have Developed A Custom ROM. I Have Create A updater-script. It Showing "Process Ended With Error:255". Here Is My updater-script.
Code:
ui_print(">>> ZenMod Xperia <<<");
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
ui_print("Installing ZenMod");
ui_print("Please wait...");
show_progress(1.34,175);
package_extract_dir("system", "/system");
unmount("/system");
ui_print("Flashing Kernel...");
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
ui_print("Finished!");
show_progress(1.000000, 0);
Anybody Know How To Fix It?. If Anybody Know Please Help Me...
in recovery , that command row make the mistake ???
And where are the symlinks????
format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system"); <- What's the purpose of "0" in here?
Everything else looks fine though.
Copy the logcat of TWRP and upload, so you could help more
lol u need symlinks, permitions and much more and also add get device prop..lol updater script cant be this much short...
Harsh_1998 said:
lol u need symlinks, permitions and much more and also add get device prop..lol updater script cant be this much short...
Click to expand...
Click to collapse
lol why would he add symlinks and permissions uselessly?
and for the device prop it's a good practice to add it but not so necessary.
Updater-script can be shorter than this.
http://forum.xda-developers.com/showthread.php?t=1931585
EDIT: This guide is now not necessary, there is a mod of the app for system_root phones, and probably soon there will be official support.
Modded app (install on the rom before making backups):
https://forum.xda-developers.com/re...igrate-root-fixed-version-unofficial-t3944054
This guide is still valid, for those who have already done the backups, but they are not working.
How to make Migrate app backups compatible with our rom(and other AB roms)
I am not affiliated in anyway to this app. This is only a guide for those who want to use it to switch their apps between roms.
You are responsible if you miss anything and screw up your rom. I will not be offering any extra support.
Make sure to read and understand everything carefully before you proceed.
App:
https://play.google.com/store/apps/details?id=balti.migrate
1. Open the zip with winrar or 7zip
2. Inside the folder META-INF\com\google\android, extract the file updater-script
3. Open it with notepad/notepad++ or another text editor(if you know what you are doing)
4. Find these lines at the beginning:
Code:
ui_print("Mounting partition...");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
ifelse(is_mounted("/data") && is_mounted("/system"), ui_print(""), ui_print("Mounting using self busybox...") && run_program("/tmp/mount_using_self_busybox.sh", "m"));
ifelse(is_mounted("/data") && is_mounted("/system"), ui_print("Mounted!"), abort("Mount failed! Exiting..."));
package_extract_file("prep.sh", "/tmp/prep.sh");
5. Change them to:
Code:
ui_print("Mounting partition...");
run_program("/sbin/busybox", "mount", "/system_root");
run_program("/sbin/busybox", "mount", "/data");
ifelse(is_mounted("/data") && is_mounted("/system_root"), ui_print(""), ui_print("Mounting using self busybox...") && run_program("/tmp/mount_using_self_busybox.sh", "m"));
ifelse(is_mounted("/data") && is_mounted("/system_root"), ui_print("Mounted!"), abort("Mount failed! Exiting..."));
package_extract_file("prep.sh", "/tmp/prep.sh");
6. Find these lines at the end:
Code:
ui_print(" ");
ui_print("Unmounting partitions...");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/data");
ifelse(is_mounted("/data") && is_mounted("/system"), ui_print(""), run_program("/tmp/mount_using_self_busybox.sh", "u"));
ui_print(" ");
ui_print("Finished!");
7. Change them to:
Code:
ui_print(" ");
ui_print("Unmounting partitions...");
run_program("/sbin/busybox", "umount", "/system_root");
run_program("/sbin/busybox", "umount", "/data");
ifelse(is_mounted("/data") && is_mounted("/system_root"), ui_print(""), run_program("/tmp/mount_using_self_busybox.sh", "u"));
ui_print(" ");
ui_print("Finished!");
8. Repack the file to the original position
9. Redo all of this for every migrate zip you have
Just a quick question. I don't have Mi 9 SE. So I rely on inputs from users so that I can issue a fix.
After changing this, does the helper app work as expected? Because someone told me that helper can't seem to find the migrate cache directory.
Thanks for the information.
For me it worked. If you need to make tests, contact me(I am on beta channel for your app in play store too)
redispade said:
For me it worked. If you need to make tests, contact me(I am on beta channel for your app in play store too)
Click to expand...
Click to collapse
Is it still working for you ? I tried these steps and I could not get it working. I am thinking to replace "system" as "system_root" in the updater script.
basically replace this:
Code:
ui_print("Unpacking helper");
package_extract_dir("system", "/system");
package_extract_file("helper_unpacking_script.sh", "/tmp/helper_unpacking_script.sh");
set_perm_recursive(0, 0, 0777, 0777, "/tmp/helper_unpacking_script.sh");
run_program("/tmp/helper_unpacking_script.sh", "/system/app/helper", "12");
set_perm_recursive(0, 0, 0777, 0777, "/system/app/MigrateHelper");
with this:
Code:
ui_print("Unpacking helper");
package_extract_dir("system_root", "/system_root");
package_extract_file("helper_unpacking_script.sh", "/tmp/helper_unpacking_script.sh");
set_perm_recursive(0, 0, 0777, 0777, "/tmp/helper_unpacking_script.sh");
run_program("/tmp/helper_unpacking_script.sh", "/system_root/app/helper", "12");
set_perm_recursive(0, 0, 0777, 0777, "/system_root/app/MigrateHelper");
The part you are modifying is for the helper apk. If it gives errors, you have done something wrong. If you want to replace that part, replace it with /system_root/system
Sent from my Mi 9 SE using Tapatalk
redispade said:
The part you are modifying is for the helper apk. If it gives errors, you have done something wrong. If you want to replace that part, replace it with /system_root/system
Sent from my Mi 9 SE using Tapatalk
Click to expand...
Click to collapse
Thanks for the quick response. I tried your changes only once again before doing my change and it somehow worked.