I'm trying to make a zip to remove the stuff I remove every time and install Titanium Backup, but I keep getting error 6 when I try to flash it. I did sign it, and it was written using Notepad++.
Directory Structure:
data
-app
--com.keramidas.TitaniumBackup-1.apk
--com.keramidas.TitaniumBackupPro-1.apk
META-INF
-com
--google
---android
----update-binary
----updater-script
-CERT.RSA
-CERT.SF
-MANIFEST.MF
updater-script:
show_progress 0.1 0
ui_print(" ===============================================");
ui_print(" | Removing Sense |");
ui_print(" ===============================================");
mount("MTD", "system", "/system");
delete("/system/app/com.htc.FMRRadioWidget.apk");
delete("/system/app/com.htc.FriendStream3DWidget.apk");
delete("/system/app/com.htc.htcmsgwidgets3d.apk");
delete("/system/app/com.htc.MusicWidget.apk");
delete("/system/app/com.htc.Sync3DWidget.apk");
delete("/system/app/com.htc.TrendsdWidget.apk");
delete("/system/app/com.htc.Twitter3DWidget.apk");
delete("/system/app/FusionStockWidget.apk");
delete("/system/app/GenieWidget.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/htccalendarwidget3d.apk");
delete("/system/app/HtcClock3DWidget.apk");
delete("/system/app/htccontactwidgets3D.apk");
delete("/system/app/HtcDataRoamingWidget.apk");
delete("/system/app/HtcDataStripWidget.apk");
delete("/system/app/HtcFootprintsWidget3d.apk");
delete("/system/app/HtcGreaderWidget.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/HtcRingtoneWidget.apk");
delete("/system/app/HtcScreenBrightnessWidget.apk");
delete("/system/app/HtcScreenTimeoutWidget.apk");
delete("/system/app/htcsettingswidget.apk");
delete("/system/app/HtcWeather3DWidget.apk");
delete("/system/app/Rosie.apk");
delete("/system/app/Stock.apk");
ui_print(" ===============================================");
ui_print(" | Removing Sense Lockscreen |");
ui_print(" ===============================================");
delete("/system/app/com.htc.idlescreen_SN.apk");
delete("/system/app/HtcLockScreen.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");.apk");
ui_print(" ===============================================");
ui_print(" | Removing Bloatware |");
ui_print(" ===============================================");
delete("/system/app/AppSharing.apk");
delete("/system/app/BlueSky.apk");
delete("/system/app/Burgundy.apk");
delete("/system/app/DockMode.apk");
delete("/system/app/Flickr.apk");
delete("/system/app/FriendStream.apk");
delete("/system/app/HtcCarPanel.apk");
delete("/system/app/HtcConnectedMedia.apk");
delete("/system/app/HtcFacebook.apk");
delete("/system/app/HtcFMRadio.apk");
delete("/system/app/HtcFootprints.apk");
delete("/system/app/HtcGreader.apk");
delete("/system/app/HTCLivewallpaperStreak.apk");
delete("/system/app/HtcRingtoneTrimmer.apk");
delete("/system/app/HtcTwitter.apk");
delete("/system/app/HtcWeatherWallpaper.apk");
delete("/system/app/MagicSmokeWallpapers.apk");
delete("/system/app/Maps.apk");
delete("/system/app/MyShelf_Widget.apk");
delete("/system/app/Protips.apk");
delete("/system/app/Swype.apk");
delete("/system/app/TaskManager.apk");
delete("/system/app/Twitter.apk");
delete("/system/app/WeatherLiveWallpaper.apk");
delete("/system/app/MyReportAgent.apk");
unmount("/system");
ui_print(" ===============================================");
ui_print(" | Installing Titanium Backup |");
ui_print(" ===============================================");
mount("MTD", "data", "/data");
copy_dir PACKAGE:data DATA:
unmount("/data");
dementio said:
I'm trying to make a zip to remove the stuff I remove every time and install Titanium Backup, but I keep getting error 6 when I try to flash it. I did sign it, and it was written using Notepad++.
Directory Structure:
data
-app
--com.keramidas.TitaniumBackup-1.apk
--com.keramidas.TitaniumBackupPro-1.apk
META-INF
-com
--google
---android
----update-binary
----updater-script
-CERT.RSA
-CERT.SF
-MANIFEST.MF
updater-script:
show_progress 0.1 0
mount("MTD", "system", "/system");
mount("MTD", "data", "/data");
copy_dir PACKAGE:data DATA:
unmount("/data");
Click to expand...
Click to collapse
the script looks like a great method and its wonderful to see people putting together their own scripts.
i'm assuming you wrote that updater-script file and understand the different components. if you don't, please ask and i can provide more detail.
critique: off the top of my head, two things catch my attention.
1) copy_dir command ends with a : instead of a ; and it appears to be the amend command, not the edify version of the command. edify version of the command would be: package_extract_dir("data", "/data");
2) in the latest version of the update-binary, i think it requires 4 args instead of 3 args for the mount command. also our file system is not MTD as supplied in the 3 args version of the mount command given above. edify version for api 3 used by the latest update-binary should be: mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
here is a great post which outlines some of these changes and how to execute commands under edify: [TUT]Edify Installation Script Syntax's
for advanced troubleshooting, when the custom recovery throws an error, like the error 6 you mention above, via adb check out the /tmp/recovery.log file as this will provide detail around the error and usually a line number to narrow down the issue. i usually access the tmp/recovery.log file via adb shell then cat /tmp/recovery.log .
also, if you're interested, i have a php script on my custom EVO 3D stock app custom site which creates a custom removal .zip file to be loaded through recovery. if you create your own, you can see my updater-script syntax and also my update-binary (latest version). feel free to use them as i enjoy giving back to the community!
hope that helps! good luck!
Nice. Thanks
I didn't realize there were different syntaxes for the different versions, when I was researching, I was looking at several different sites.
Sent from my PG86100 using xda premium
dementio said:
Nice. Thanks
I didn't realize there were different syntaxes for the different versions, when I was researching, I was looking at several different sites.
Click to expand...
Click to collapse
Nice. You're definitely on the right path.
Only a few tweaks to the syntax and you should be all set. The two main versions of update(r)-script code are amend and edify. Edify being the latest and most recent version, you'll want to stick with that for the EVO 3D and probably most android devices/custom recovery's going forward.
Hope you post up your script when you're done!
I will once I figure out this line 1 expected eof error
Sent from my PG86100 using xda premium
dementio said:
updater-script:
show_progress 0.1 0
Click to expand...
Click to collapse
dementio said:
I will once I figure out this line 1 expected eof error
Click to expand...
Click to collapse
i'm assuming the line one error is relating to the command you issue on line 1 of the updater-script file you posted above, i.e. no changes have been made to the first line since you posted.
if you refer to the guide i linked to above, it gives a proper example of the show_progress command under edify syntax. the show_progress command quoted in your original post is using amend syntax.
amend syntax: show_progress 0.1 0
edify syntax: show_progress(0.1, 10);
hope that helps!
joeykrim said:
also, if you're interested, i have a php script on my custom EVO 3D stock app custom site which creates a custom removal .zip file to be loaded through recovery. if you create your own, you can see my updater-script syntax and also my update-binary (latest version). feel free to use them as i enjoy giving back to the community!
Click to expand...
Click to collapse
Wow, nice tool, and bookmarked
joeykrim said:
i'm assuming the line one error is relating to the command you issue on line 1 of the updater-script file you posted above, i.e. no changes have been made to the first line since you posted.
if you refer to the guide i linked to above, it gives a proper example of the show_progress command under edify syntax. the show_progress command quoted in your original post is using amend syntax.
amend syntax: show_progress 0.1 0
edify syntax: show_progress(0.1, 10);
hope that helps!
Click to expand...
Click to collapse
I noticed that, but still got the same error, even after I took that line out
dementio said:
I noticed that, but still got the same error, even after I took that line out
Click to expand...
Click to collapse
the only other idea which comes to mind for EOF on first line would be the type of text editor being used as windows and unix text files are setup differently with return/new line characters.
best method on windows is to use notepad++ and make sure under the settings for new files it is set to use unix standard instead of windows.
i prefer editing the file on a unix/linux machine and if in windows, i'd run a VM.
if you wanted to eliminate that possibility, feel free to grab one of my updater-script files which are known to be working correctly and make sure to use a proper text editor which will maintain the file integrity.
hope that helps!
FINALLY, here's the completed script. It completely? removes Sense, the stock lockscreen (I use Hidden Lock), and a bunch of apps that I never use, and installs Titanium Backup Premium so I can restore everything else. The progress bar doesn't actually work, but it runs so quick I don't really care.
Code:
show_progress(0.1, 10);
ui_print(" ===============================================");
ui_print(" | Removing Sense |");
ui_print(" ===============================================");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/system");
delete("/system/app/com.htc.FMRRadioWidget.apk");
delete("/system/app/com.htc.FriendStream3DWidget.apk");
delete("/system/app/com.htc.htcmsgwidgets3d.apk");
delete("/system/app/com.htc.MusicWidget.apk");
delete("/system/app/com.htc.Sync3DWidget.apk");
delete("/system/app/com.htc.TrendsdWidget.apk");
delete("/system/app/com.htc.Twitter3DWidget.apk");
delete("/system/app/FusionStockWidget.apk");
delete("/system/app/GenieWidget.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/htccalendarwidget3d.apk");
delete("/system/app/HtcClock3DWidget.apk");
delete("/system/app/htccontactwidgets3D.apk");
delete("/system/app/HtcDataRoamingWidget.apk");
delete("/system/app/HtcDataStripWidget.apk");
delete("/system/app/HtcFootprintsWidget3d.apk");
delete("/system/app/HtcGreaderWidget.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/HtcRingtoneWidget.apk");
delete("/system/app/HtcScreenBrightnessWidget.apk");
delete("/system/app/HtcScreenTimeoutWidget.apk");
delete("/system/app/htcsettingswidget.apk");
delete("/system/app/HtcWeather3DWidget.apk");
delete("/system/app/Rosie.apk");
delete("/system/app/Stock.apk");
ui_print(" ===============================================");
ui_print(" | Removing Sense Lockscreen |");
ui_print(" ===============================================");
delete("/system/app/com.htc.idlescreen_SN.apk");
delete("/system/app/HtcLockScreen.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");
ui_print(" ===============================================");
ui_print(" | Removing Bloatware |");
ui_print(" ===============================================");
delete("/system/app/AppSharing.apk");
delete("/system/app/BlueSky.apk");
delete("/system/app/Burgundy.apk");
delete("/system/app/DockMode.apk");
delete("/system/app/Flickr.apk");
delete("/system/app/FriendStream.apk");
delete("/system/app/HtcCarPanel.apk");
delete("/system/app/HtcConnectedMedia.apk");
delete("/system/app/HtcFacebook.apk");
delete("/system/app/HtcFMRadio.apk");
delete("/system/app/HtcFootprints.apk");
delete("/system/app/HtcGreader.apk");
delete("/system/app/HTCLivewallpaperStreak.apk");
delete("/system/app/HtcRingtoneTrimmer.apk");
delete("/system/app/HtcTwitter.apk");
delete("/system/app/HtcWeatherWallpaper.apk");
delete("/system/app/MagicSmokeWallpapers.apk");
delete("/system/app/Maps.apk");
delete("/system/app/MyReportAgent.apk");
delete("/system/app/MyShelf_Widget.apk");
delete("/system/app/Protips.apk");
delete("/system/app/Swype.apk");
delete("/system/app/TaskManager.apk");
delete("/system/app/Twitter.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");
unmount("/system");
ui_print(" ===============================================");
ui_print(" | Installing Titanium Backup |");
ui_print(" ===============================================");
mount("ext3", "EMMC", "/dev/block/mmcblk0p26", "/data");
package_extract_dir("data", "/data");
unmount("/data");
Related
Hey all,
I created a little zip to be flashed in cwm recovery, It works great in almost every way, except some apps in /data/app and system/app in the zip do not get installed at all or are corrupted (both happen with diff apps). I've tried reflashing the same zip, repackaging it, and even installing the apks manually. Nothing works except installing the apks manually.
I've deduced that before packaging, the apks are fine. And because I've repacked it twice, and have had complete success packaging other flashable zips, I feel something is happening in CWM recovery, or maybe my updater script doesn't install to the directories the right way.
Is there a better way to batch install via recovery? Or something I'm missing in my script? Or is it not reliable to install apks via flashable zip?
This is how I do it.
In my zip I have:
Code:
/system
/app
/***.apk
/***.apk
/data
/app
/***.apk
/***.apk
/META-INF
/com
/google
/android
/update-binary
/updater-script
This is my updater script (modified from a remover script)
Code:
ui_print("---------------------------");
ui_print("SGS2 Batch Installer");
ui_print("and Bloatware Remover v0.2");
ui_print("---------------------------");
ui_print("Deleting useless bloatware ...");
delete("/system/app/AnalogClock.apk");
delete("/system/app/BuddiesNow.apk");
delete("/system/app/ChocoEUKor.apk");
delete("/system/app/Days.apk");
delete("/system/app/Dlna.apk");
delete("/system/app/DualClock.apk");
delete("/system/app/EmailWidget.apk");
delete("/system/app/GameHub.apk");
delete("/system/app/GenieWidget.apk");
delete("/system/app/Kies.apk");
delete("/system/app/KiesAir.apk");
delete("/system/app/kieswifi.apk");
delete("/system/app/Kobo.apk");
delete("/system/app/Microbesgl.apk");
delete("/system/app/MiniDiary.apk");
delete("/system/app/MtpApplication.apk");
delete("/system/app/MusicHub_U1.apk");
delete("/system/app/MusicPlayer.apk");
delete("/system/app/PhotoRetouching.apk");
delete("/system/app/PolarisOffice.apk");
delete("/system/app/PressReader.apk");
delete("/system/app/Protips.apk");
delete("/system/app/ReadersHub.apk");
delete("/system/app/SamsungApps.apk");
delete("/system/app/SamsungAppsUNA3.apk");
delete("/system/app/SamsungAppsUNAService.apk");
delete("/system/app/SamsungIM.apk");
delete("/system/app/SamsungWidget_News.apk");
delete("/system/app/SamsungWidget_ProgramMonitor.apk");
delete("/system/app/SamsungWidget_StockClock.apk");
delete("/system/app/SamsungWidget_WeatherClock.apk");
delete("/system/app/SecretWallpaper1.apk");
delete("/system/app/SecretWallpaper2.apk");
delete("/system/app/SevenEngine.apk");
delete("/system/app/SnsAccountFb.apk");
delete("/system/app/SnsAccountLi.apk");
delete("/system/app/SnsAccountMs.apk");
delete("/system/app/SnsAccountTw.apk");
delete("/system/app/SnsDisclaimer.apk");
delete("/system/app/SnsImageCache.apk");
delete("/system/app/SnsProvider.apk");
delete("/system/app/SocialHub.apk");
delete("/system/app/Talk.apk");
delete("/system/app/Talk2.apk");
delete("/system/app/TouchWiz30Launcher.apk");
delete("/system/app/Vending.apk");
delete("/system/app/VideoEditor.apk");
delete("/system/app/VideoPlayer.apk");
delete("/system/app/VoiceToGo.apk");
delete("/system/app/YouTube.apk");
delete("/system/app/Zinio.apk");
delete("/system/app/AnalogClock.odex");
delete("/system/app/BuddiesNow.odex");
delete("/system/app/ChocoEUKor.odex");
delete("/system/app/Days.odex");
delete("/system/app/Dlna.odex");
delete("/system/app/DualClock.odex");
delete("/system/app/EmailWidget.odex");
delete("/system/app/GameHub.odex");
delete("/system/app/GenieWidget.odex");
delete("/system/app/Kies.odex");
delete("/system/app/KiesAir.odex");
delete("/system/app/kieswifi.odex");
delete("/system/app/Kobo.odex");
delete("/system/app/Microbesgl.odex");
delete("/system/app/MiniDiary.odex");
delete("/system/app/MtpApplication.odex");
delete("/system/app/MusicHub_U1.odex");
delete("/system/app/MusicPlayer.odex");
delete("/system/app/PhotoRetouching.odex");
delete("/system/app/PressReader.odex");
delete("/system/app/Protips.odex");
delete("/system/app/ReadersHub.odex");
delete("/system/app/SamsungApps.odex");
delete("/system/app/SamsungAppsUNA3.odex");
delete("/system/app/SamsungAppsUNAService.odex");
delete("/system/app/SamsungIM.odex");
delete("/system/app/SamsungWidget_News.odex");
delete("/system/app/SamsungWidget_ProgramMonitor.odex");
delete("/system/app/SamsungWidget_StockClock.odex");
delete("/system/app/SamsungWidget_WeatherClock.odex");
delete("/system/app/SecretWallpaper1.odex");
delete("/system/app/SecretWallpaper2.odex");
delete("/system/app/SevenEngine.odex");
delete("/system/app/SnsAccountFb.odex");
delete("/system/app/SnsAccountLi.odex");
delete("/system/app/SnsAccountMs.odex");
delete("/system/app/SnsAccountTw.odex");
delete("/system/app/SnsDisclaimer.odex");
delete("/system/app/SnsImageCache.odex");
delete("/system/app/SnsProvider.odex");
delete("/system/app/SocialHub.odex");
delete("/system/app/Talk.odex");
delete("/system/app/Talk2.odex");
delete("/system/app/TouchWiz30Launcher.odex");
delete("/system/app/Vending.odex");
delete("/system/app/VideoEditor.odex");
delete("/system/app/VideoPlayer.odex");
delete("/system/app/VoiceSearch.odex");
delete("/system/app/VoiceToGo.odex");
delete("/system/app/YouTube.odex");
delete("/system/app/Zinio.odex");
ui_print(" ");
ui_print("Batch Installing!");
ui_print(" ");
ui_print("Extracting /system...");
package_extract_dir("system", "/system");
ui_print(" ");
ui_print("Extracting /sdcard...");
package_extract_dir("sdcard", "/sdcard");
ui_print(" ");
ui_print("Extracting /data...");
unmount("/data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p10", "/data");
package_extract_dir("data", "/data");
unmount("/data");
ui_print("Done! Reboot that sh**!");
Anybody have any thoughts?
Thank you!
Endor
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.
I followed this tutorial: http://fokke.org/site/content/howto-create-android-updatezip-package
...on making update.zip files.
It only says opening... installing... then installation aborted.
I followed the directions to the letter.
It doesn´t even go so far as to do the ui print from step one.
Code:
ui_print("Android Security Enhancements");
ui_print("By: Michiel Fokke - fokke.org/android");
show_progress(1.000000, 0);
ui_print(" Mounting /system");
mount("MTD", "system", "/system");
set_progress(0.100000);
So I don't think it runs any of the code at all.
I signed it and everything... no dice.
Any idea what the problem could be?
Now I've got the exact text in front of me from CWM Recovery:
Code:
--Installing: /emmc/Updates/update.zip
Finding update package....
Opening update package...
Installing update..
E:Error in /emmc/Updates/update.zip
(Status 0)
Installation aborted.
And here´s the exact text of my update.zip:
Code:
ui_print("Simple Font Change");
ui_print("By: Team Rainless");
show_progress(1.000000, 0);
ui_print(" Mounting /system");
mount("MTD", "system", "/system");
set_progress(0.100000);
ui_print(" Extracting files to /system");
package_extract_dir("system/fonts/Clockopia2.ttf", "/system/fonts");
set_progress(0.200000);
ui_print(" Setting permissions to 0644...");
set_perm(0,0,0644,"/system/fonts/Clockopia2.ttf");
set_progress(0.400000);
ui_print(" Unmounting /system");
unmount("/system");
set_progress(0.900000);
ui_print("Update complete. Hope this worked!");
set_progress(1.000000);
Should I perhaps post this in the dev forum instead?
It's really not a general or easy question...
TeamRainless said:
Now I've got the exact text in front of me from CWM Recovery:
Code:
--Installing: /emmc/Updates/update.zip
Finding update package....
Opening update package...
Installing update..
E:Error in /emmc/Updates/update.zip
(Status 0)
Installation aborted.
And here´s the exact text of my update.zip:
Code:
ui_print("Simple Font Change");
ui_print("By: Team Rainless");
show_progress(1.000000, 0);
ui_print(" Mounting /system");
mount("MTD", "system", "/system");
set_progress(0.100000);
ui_print(" Extracting files to /system");
package_extract_dir("system/fonts/Clockopia2.ttf", "/system/fonts");
set_progress(0.200000);
ui_print(" Setting permissions to 0644...");
set_perm(0,0,0644,"/system/fonts/Clockopia2.ttf");
set_progress(0.400000);
ui_print(" Unmounting /system");
unmount("/system");
set_progress(0.900000);
ui_print("Update complete. Hope this worked!");
set_progress(1.000000);
Click to expand...
Click to collapse
TeamRainless said:
Should I perhaps post this in the dev forum instead?
It's really not a general or easy question...
Click to expand...
Click to collapse
This is the right section as it's not development as such but a development question which the dev thread isn't for. This covers all really and you'll always get someone read and come and answer.
Anyway just the first thing I've noticed is your mount instruction looks completely wrong to me and have never seen it like that. I've never read those instructions before but they don't look too great. Also I thought the extract should be ("label", "location").
This is what is common across all the zips I use:
Mount command:
Code:
run_program("/sbin/busybox", "mount", "/system");
Package extract:
Code:
package_extract_dir("system", "/system");
package_extract_file("Clockopia2.ttf", "/system/fonts")
I may be wrong about the extract but also don't forget to unmount the system in the same way:
Code:
run_program("/sbin/busybox", "unmount", "/system");
I only really modify zips as opposed to create whole new ones but give it a go as yours isn't working at the moment.
Hope it helps or someone clarifies this for me too.
AvRS said:
This is the right section as it's not development as such but a development question which the dev thread isn't for. This covers all really and you'll always get someone read and come and answer.
Anyway just the first thing I've noticed is your mount instruction looks completely wrong to me and have never seen it like that. I've never read those instructions before but they don't look too great. Also I thought the extract should be ("label", "location").
This is what is common across all the zips I use:
Mount command:
Code:
run_program("/sbin/busybox", "mount", "/system");
Package extract:
Code:
package_extract_dir("system", "/system");
package_extract_file("Clockopia2.ttf", "/system/fonts")
I may be wrong about the extract but also don't forget to unmount the system in the same way:
Code:
run_program("/sbin/busybox", "unmount", "/system");
I only really modify zips as opposed to create whole new ones but give it a go as yours isn't working at the moment.
Hope it helps or someone clarifies this for me too.
Click to expand...
Click to collapse
Figured it out:
The update-binary was bogus.
And that guide... like ALL the guides on making update.zips... SUCKS.
I'm going to write my own guide now.
Thanks for the help.
TeamRainless said:
Figured it out:
The update-binary was bogus.
And that guide... like ALL the guides on making update.zips... SUCKS.
I'm going to write my own guide now.
Thanks for the help.
Click to expand...
Click to collapse
At least you figured it out. I'm also in the process of writing (just not got round to finishing) a CWM guide but not how to create them so that would work out nicely if you created one.
I know people talk about this all the time... I found a lot of thread of how to create a flashable zip file.. But every thread has it different than others. So I have tried it several ways and still get errors...
I'm trying to make a flashable zip to push an apk to system/app and I decided to do this to test it out...
This is the update-script I have tested it with
run_program("/sbin/busybox", "mount", "/system");
delete("/system/app/FlashBarService.apk");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "unmount", "/system");
Ok what I figure is the run_program is to mount system with busybox. Every line i see that it have this on there.. Then Im trying to replace an app from system/app so I put in delete("/system/app/name of app");
then package_extract_dir("system", :/system"); is so recovery can extract and push the zip file
and again run_program to unmount... But recovery is giving me an error status 4
I also deleted that delete line and still got status 4.
Again this is another way I tried it to do it with
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/cache");
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/cache");
run_program("/sbin/busybox", "umount", "/data");
And this way too
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/data");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "unmount", "/system");
run_program("/sbin/busybox", "unmount", "/data");
And till got status 4.
Inside my xxx.zip I have it set up this way META-INF/com/google/android
And other folder on root system/app
I have a GS3.
Like I said I have followed several threads about this and all looks different and none worked.
I know this is supposed to be the easies thing to do when it comes to android. But I just need to be directed to the right path.
Can somebody with more experience with this help me out?
Status 4 means that you have a syntax error somewhere... (yep, you have a syntax error or you're using notepad or wordpad to edit the files. That's it).
The best guide I ever seen out there is this one, take a look at it.
I use notepad++ to edit any android related files like build.prop. Thanks will look at that
Sent from my SGH-T999 using Tapatalk 4 Beta
Anyone?
gypsy214 said:
I use notepad++ to edit any android related files like build.prop. Thanks will look at that
Sent from my SGH-T999 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Yeah. Notepad++ is best for this type of Editing in Windows.
Have you chosen the correct format in settings?
Edit>>EOL Conversions>>UNIX Format
The problem may be that windows use CR(carriage return) while unix(Android) uses LF (line feed) for a new line character.
You can also try to mount the system manually(there is option in CWM for that) & may be leave only the "package_extract_dir("system", "/system");" in the updater script.
Also, post the zip file here, so that problem can be easily identified.
GobletSky31689 said:
Yeah. Notepad++ is best for this type of Editing in Windows.
Have you chosen the correct format in settings?
Edit>>EOL Conversions>>UNIX Format
The problem may be that windows use CR(carriage return) while unix(Android) uses LF (line feed) for a new line character.
You can also try to mount the system manually(there is option in CWM for that) & may be leave only the "package_extract_dir("system", "/system");" in the updater script.
Also, post the zip file here, so that problem can be easily identified.
Click to expand...
Click to collapse
Will do.. But it works when I use notepad++ to add ui_print.