How to create a flashable zip file? - Android Software/Hacking General [Developers Only]

Just spent a few hours on modifying few files..
I have modified:
framework.jar
android.policy.jar
framework-res.apk
(All for the system/framework folder )
So, I wanna create a flashable zip file that can be flashed from CWM recovery...
Following this guide:
http://forum.xda-developers.com/showthread.php?t=732957
Looking at the fact that it's nearly 1AM for me presently and I'm sleepy, it's a bit hard to understand...
If anyone can tell me the contents of updater-script file...it'll be helpful
Also, some help there with the update-binary too..
Can I use the files created by UOT kitchen?

The updater-script is mainly text, since your 3 files are in the system folder, you're going to want to mount system, extract package, and then unmount system.
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system");
package_extract_dir("system", "/system");
unmount("/system");
The bolded text can vary. That goes in the updater script. the updater-script should be accompanied by update-binary, and should be placed in [projectname]/META-INF/com/google/android.
now, inside your [projectname] folder, you should have /system/framework/[your three files go here].
Now build that, sign it (CWM will throw an Error 7 for some odd reason if it's not signed and is not a full ROM), and flash it and see how that goes.

Thank you for the answer
Another thing, can you please those values which you have given in bold?
Also, what to put in the updater-binary file?

I wouldn't know, those values vary from phone to phone. What may work on mine may not work with yours. Also you don't have to modify the updater-binary, just place it there.

Related

How do I create an update-script in Linux?

How do I create an update-script in Linux? I'd like to create my own ROM, but I need to find a way to create my own update-script for the update.zip.
hotweiss said:
How do I create an update-script in Linux? I'd like to create my own ROM, but I need to find a way to create my own update-script for the update.zip.
Click to expand...
Click to collapse
I have never actually used it but you get one when you compile the androids source
http://source.android.com/download
perhaps you could just compile that one thing.
edit: Its named of course make-update-script
I've started to play around with the scripts that others have created... they always fail for me when a symlink is being created between toolbox and what ever file...
Yeah, I have only made realy simple update.zip scripts. one liners. I could try my compiled make-update-script and see if it does what its supposed to
I've tried it a very limited amount now and all I can say is that it seems to be doing stuff correct, but not all the way, so my assumption is that the "scene" people or what I should call them, use a modified version of this, when I ran it against fatal1tys hero1.4 or gave me a filesize of 0.98KB whereas fatal1tys version is 13.2KB, of course he has both system and data in his, but it still don't add up.
I can't figure out why symlink isn't working? Am I missing something?
Here's what I did so far:
1) copied xbin into my system directory
2) created META-INF folder and subfolder
3) pasted my update-script
I'm afraid I cannot help you much I don't know what xbin is supposed to to with the update-script. But are you creating symlinks through the update-script?
You have to look at another update-script and compare it... and you have to look which symlinks you need!

Question about modifying signed Rom zip files

Can I modify an existing one by simply dropping in updated bootscreen files, rosie.apk, etc.. and signing the existing rom zip?
Any good guides on how to do one if not, and/or how to use Flipz kitchen tool to create a rom?
Ceger
I am pretty sure if you sign the file and you modify it after that you will have to resign it. At least thats how it goes for other things that are similar that I deal with.
Kcarpenter said:
I am pretty sure if you sign the file and you modify it after that you will have to resign it. At least thats how it goes for other things that are similar that I deal with.
Click to expand...
Click to collapse
I understand that, just wondering if I can add new files and they will move or does some master script need to be updated to know to move the files. In other words, is it done by directory or by file?
For example, if I add some apps to /data/app in the zip will they be there on the phone when I install the ROM zip, etc.. More specifically, I have added an alternate boot sequence. The rom does not have a boot1.gif. If I add the new sequence with XML, will the boot1.gif be installed as well or do I need to update something that directs the install of the ROM to move that file or is it automatic as the folder is moved over?
Ceger
Ceger said:
I understand that, just wondering if I can add new files and they will move or does some master script need to be updated to know to move the files. In other words, is it done by directory or by file?
For example, if I add some apps to /data/app in the zip will they be there on the phone when I install the ROM zip, etc.. More specifically, I have added an alternate boot sequence. The rom does not have a boot1.gif. If I add the new sequence with XML, will the boot1.gif be installed as well or do I need to update something that directs the install of the ROM to move that file or is it automatic as the folder is moved over?
Ceger
Click to expand...
Click to collapse
I have found that the easiest thing to do is just put the files that you want to use to replace the old ones into a signed zip and then flash just those files I have tried altering a rom file with no success
wtphoto said:
I have found that the easiest thing to do is just put the files that you want to use to replace the old ones into a signed zip and then flash just those files I have tried altering a rom file with no success
Click to expand...
Click to collapse
Oh well, was trying to have a one step zip. I guess I can make at least have a 2 step process which is better than 4-5.
Thanks,
Ceger
Yes you can modify just about anything in the rom and flash your zip as long as it is signed and the update script is correct. I always make all my changes to a rom before flashing it so i do not have to flash several different things etc.
The update script is located in RomName\META-INF\com\google\android\
Lets look at a very simple update script to show you what i mean.
In this update script it is to write something to /system
example:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
We see here that whatever is in the system folder within the signed zip will be written to the phone
in this case i am writing /system/app/mobiledefense.apk
That will be the only file written to the phone and will be written to /system/app
The update script is not specific to every file so you can have 1 thing in the system folder or 100 and it will write everything in there.
One thing that many people mess up on is not using a update-script file when they sign a .zip file. The recovery has to know what to flash or it will not flash anything.
So the answer is yes you can change many things and then flash the signed update.zip file.
Not everything can be done this way but most things will work.
But for example changing the boot sceen can be done even if the file names are different as long as the folder structure stays the same and the .XML file is the correct one for the boot screen. I opened the .zip of a rom deleted everything out of the boot screen folder and dropped in all the files from the nexus one hero hybrid boot screen re signed the zip and everything flashed perfect. I changed many other things as well in the .zip like rosie.apk, sound files, lockscreen files, busybox files, added apps to /system/app and just resigned the zip and everything flashed the way i wanted it to and works perfect.
The way to correctly zip a file is to extract the zip modify what you want then select everything inside the zip right after you open the folder and the highlight everything select add to archive and then zip it up now sign that .zip
so say you extract the ROM and it is named Rom123 now you will have a folder named Rom123 open that folder and select everything file or folder in there and then hit add to archive that will make another zip right there called Rom123.zip pull that zip out to the desktop and sign that zip file and thats it.
I Know that is confusing as it is late as hell and i am tired but wanted to answer this real quick.
zippy-man said:
Yes you can modify just about anything in the rom and flash your zip as long as it is signed and the update script is correct. I always make all my changes to a rom before flashing it so i do not have to flash several different things etc.
The update script is located in RomName\META-INF\com\google\android\
Lets look at a very simple update script to show you what i mean.
In this update script it is to write something to /system
example:
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.1 10
We see here that whatever is in the system folder within the signed zip will be written to the phone
in this case i am writing /system/app/mobiledefense.apk
That will be the only file written to the phone and will be written to /system/app
The update script is not specific to every file so you can have 1 thing in the system folder or 100 and it will write everything in there.
One thing that many people mess up on is not using a update-script file when they sign a .zip file. The recovery has to know what to flash or it will not flash anything.
So the answer is yes you can change many things and then flash the signed update.zip file.
Not everything can be done this way but most things will work.
But for example changing the boot sceen can be done even if the file names are different as long as the folder structure stays the same and the .XML file is the correct one for the boot screen. I opened the .zip of a rom deleted everything out of the boot screen folder and dropped in all the files from the nexus one hero hybrid boot screen re signed the zip and everything flashed perfect. I changed many other things as well in the .zip like rosie.apk, sound files, lockscreen files, busybox files, added apps to /system/app and just resigned the zip and everything flashed the way i wanted it to and works perfect.
The way to correctly zip a file is to extract the zip modify what you want then select everything inside the zip right after you open the folder and the highlight everything select add to archive and then zip it up now sign that .zip
so say you extract the ROM and it is named Rom123 now you will have a folder named Rom123 open that folder and select everything file or folder in there and then hit add to archive that will make another zip right there called Rom123.zip pull that zip out to the desktop and sign that zip file and thats it.
I Know that is confusing as it is late as hell and i am tired but wanted to answer this real quick.
Click to expand...
Click to collapse
Perfect, just what I was looking for.
Thank you, just made my day!
Ceger

Help with creating a flashable zip

Ok everything is good except ...
Inside my app folder there is 3 apks and only one flashes which is the systemui.apk and the geniewidget.apk and jobmanager.apk doesnt
---------------------------------------
Say Thanks If It Helped You
Paste your updater-script here and upload your zip file somewhere. What rom are you trying to install this on? What version of CWM are you trying to install this to?
Im using valhalla black final fixed and i just made a new edify script but i dont know how to make the binary because i signed it with the updater-script and it said aborted
---------------------------------------
Say Thanks If It Helped You
updater-script http://db.tt/4i250mx1
Zip file http://db.tt/sUrpVvoP
---------------------------------------
Say Thanks If It Helped You
Ok just took a different binary..put it in..signed zip..flashed and bootlooped me..flashed working uot theme..booted then it gave me what i wanted but it also gave me a bootloop
Ex. Gave me the widget and task manager but i had a bootloop
---------------------------------------
Say Thanks If It Helped You
Instead of
Code:
ui_print("DnickDominic's ICS Theme");
ui_print("Installing...");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
ui_print("Successfully Installed");
ui_print("Enjoy!");
unmount("/system");
Try using:
Code:
ui_print("Performing update");
ui_print("");
ui_print("Mounting system");
run_program("/sbin/mount", "/dev/block/stl9 /system");
package_extract_dir("system", "/system");
ui_print("Unmounting /system");
run_program("/sbin/umount", "/system");
ui_print("");
ui_print("Update Complete.");
Note that if you're using CWM 5, there's a bug in the recovery that won't let you overwrite files that already exist, even if the partition is mounted. You might wanna throw in a few delete() lines in there if you're trying to replace files.
FBis251 said:
Instead of
Code:
ui_print("DnickDominic's ICS Theme");
ui_print("Installing...");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
ui_print("Successfully Installed");
ui_print("Enjoy!");
unmount("/system");
Try using:
Code:
ui_print("Performing update");
ui_print("");
ui_print("Mounting system");
run_program("/sbin/mount", "/dev/block/stl9 /system");
package_extract_dir("system", "/system");
ui_print("Unmounting /system");
run_program("/sbin/umount", "/system");
ui_print("");
ui_print("Update Complete.");
Note that if you're using CWM 5, there's a bug in the recovery that won't let you overwrite files that already exist, even if the partition is mounted. You might wanna throw in a few delete() lines in there if you're trying to replace files.
Click to expand...
Click to collapse
OK thank you but one more thing..what should i do about the update-binary
---------------------------------------
Say Thanks If It Helped You
DnickDominic said:
OK thank you but one more thing..what should i do about the update-binary
---------------------------------------
Say Thanks If It Helped You
Click to expand...
Click to collapse
What's wrong with your update binary?
FBis251 said:
What's wrong with your update binary?
Click to expand...
Click to collapse
I didnt have one so i took one from a uot kitchen file..is that fine or does it cause issues
---------------------------------------
Say Thanks If It Helped You
DnickDominic said:
I didnt have one so i took one from a uot kitchen file..is that fine or does it cause issues
---------------------------------------
Say Thanks If It Helped You
Click to expand...
Click to collapse
Try it, though it should work fine.
Ok tryed it with what u gave me and didnt even flash it gave me an error 9 idk what that means butbim going to add deletes to my last bootloop one..mabye thats what caused the bootloop
---------------------------------------
Say Thanks If It Helped You
Error 9 means you didn't save the file with unix line endings. Try editing the file in notepad++, open the file, go to edit > EOL conversions > Unix format and save it.
FBis251 said:
Error 9 means you didn't save the file with unix line endings. Try editing the file in notepad++, open the file, go to edit > EOL conversions > Unix format and save it.
Click to expand...
Click to collapse
Well im doing this from my phone..im going to try one more thing and then get some rest and tomorrow(later today) i will go on the computer and try to get this figured out if it doesnt work so thanks for all your help and u should go look at my screenshots for the theme in the themes section for this flashable file im trying to make
---------------------------------------
Say Thanks If It Helped You
FBis251 said:
Error 9 means you didn't save the file with unix line endings. Try editing the file in notepad++, open the file, go to edit > EOL conversions > Unix format and save it.
Click to expand...
Click to collapse
Ok just tryed it and got an error and it said status 6
---------------------------------------
Say Thanks If It Helped You
Put the zip file in dropbox and send me a link. I want to test it.
Well i have to fix the battery because the color isnt right on it and ill put in dropbox now
---------------------------------------
Say Thanks If It Helped You
FBis251 said:
Put the zip file in dropbox and send me a link. I want to test it.
Click to expand...
Click to collapse
http://db.tt/sUrpVvoP
---------------------------------------
Say Thanks If It Helped You
Here is my theme+uot and its fully flashable i just wanted my own flash file..but this is it as of now tomorrow i will fix some bugs then let out to the public
http://db.tt/qLX3Z0TH
---------------------------------------
Say Thanks If It Helped You
DnickDominic said:
http://db.tt/sUrpVvoP
---------------------------------------
Say Thanks If It Helped You
Click to expand...
Click to collapse
This zip doesn't have the updater-script I told you to use.
Oh i must of uploaded the wrong one..sry im tierd and i have a bunch
---------------------------------------
Say Thanks If It Helped You

[GUIDE]Step by step guide file edits to port I9300-I9305+ CWM .zip Jkay mod for I9305

Hey guys,
**TESTING ONLY** ALPHA WARNING...NOT TESTED AS YET! PLEASE MAKE A BACKUP IN RECOVERY FIRST!!!!!
Tested and working. Some settings not implementer fully though? Unsure if this is a bug or if this is due to my mods, but will be investigating further.
*UPDATE* Updated the updater script to check the build.prop AFTER the file system has been mounted, this was causing a failure due to write protect and booting us out of the installation tested and the script is working fine
*UPDATE* updated the android.policy.jar to Jkay deluxe version as the main base. I will be looking into how the deluxe settings app checks this file to ensure it is the correct version, If this is smali textual based then we have no problems for future releases, however if it is somehow checking against MD5 hashes for this file and we make edits as what is descibed below then this is always going to break the settings app and put it in demo mode. I will report back here when I have more information.
Attached are some downloads for everyone. One is the Jkay Mod for XXELKC (only) port to our devices GT-I9305. I haven't had a chance to test it yet as I am very busy. The flashable zip does NOT include the Deluxe settings apk (it doesn't delete it from system app if you do have it though, must be version 14.3x to work though) you will still need to purchase this from the Google Play store.
Hence another reason why I have not tested this package (a long story) anyways...cause I don't have access to the Deluxe Settings apk.
Currently been testing this and its working fine but with some bugs? Unsure if these are port related or the fact that Jkay deluxe is alpha and buggy?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There is a step by step process on how to EDIT FILES jar files that are required for porting GT-I9300 ROMs to I9305. All other steps and configurations that a required for porting that do not involve file edits (only swapping files in and out) are not covered by this guide. There are many additional steps not covered by this guide that are required in addition to these steps in order to make full port of a ROM. Additional,libraries, binaries, build.prop edits, apks and permissions xmls are required
The above are mentioned additional requirements for a full port are outside the scope of this guide but maybe included in following updates
**UPDATE** please do not migrate or change anything in the android.policy.jar file for Jkay settings files if you are wanting to port them in the furture, The Deluxe settings application checks this file to ensure you are running the correct version and running the Jkay framework. If you are receiving framework mismatch type errors this is due to running an illegal copy of the Jkay Deluxe Settings application. The application checks back to GooglePlay store to see if your google account is a registered user or not, when this fails the app defaults into demo mode. Clearing application data results in settings being wipe and a reconfigure is required. Note: That none of your settings are retained by the deluxe settings app after a reboot if it has failed license checking.
I have also included all the smali and baksmali files and wrapper scripts along with the add and replace files to port the necessary files to make GT-I9300 ROMS work on our devices.
YOU MUST DO IT IN THIS ORDER!
*** please please do the remove smali files processes first!***
NOTE: The remove folders e.g framework2-remove are here *ONLY* as a references for you! What I mean is that you now have to navigate the folders of your decompiled files and remove these specific smali references from the GT-I9300 jar files.
There are 4 main files to change and several changes to be done, so please make sure you give thanks to developers like AusDim for his ahard work. When you see the amount of files you may appreciate this
I was working this port myself, but it wore thin on my patience, alas I diverse....
android.policy.jar please disregard the edits to this file as we have found that the standard Android.policy.jar file from standard I9300 seems to be all in order to work on the LTE device. More information regarding this file may come in future updates
framework.jar
framework2.jar
services.jar
HOW TO:
Use the open_commandprompt_here to launch cmd in the current directory.
decompile the specific file like following, in this example I have chosen services.jar file. NOTE: You may also wish to perform any other modifications to the services at this time i.e. V6Supercharger multi-tasking update for JB (thanks to zepplinrocks)
e.g
Code:
decompile services.jar
open the folder services-add and copy the "com" folder
open the out folder and you will see another "com" folder inside; hit paste. Accept any prompts to overwrite smali files or folders. click yes to all bla bla bla
recompile the smail code like this:
e.g
Code:
recompile out -o classes.dex
Right click your services.jar file and open it with say 7zip or WinRAR or what ever archive application you currently use; inside you will see a classes.dex file. You are now going to drag and drop your new compiled classes.dex file in over the top of the existing one.
Close your services.jar file
and you are done!
Now repeat to the other remaining jar files and Bob's ya aunty you're good to go
Special thanks goes out to:
_Jkay_ first and foremost for the awesome Jkay Deluxe framework
Thanks to AusDim who put in the hard yards to getting the initial port done for us I9305 users. Your work is very much appreciated by me mate.
Thanks to txr33 for his work in the back ground in the early stages as we both tried to nut out what the f#*% was going on with our stupid port :silly: ...
If I have left anyone off this list, then please contact me and I will be more than happy to add you (thats if you have helped and don't just want to be famous jks)
Thanks guys
Tutorial
HOW_TO_PORT_GT-I9300_TO_I9305.zip
Jkay deluxe for I9305 Note this link will produce a 404 error until such time as it has completed upload
XXELKC_JKay_Deluxe_v14_3_PORTI9305.zip
PS: I have a feeling that my dropbox account is going to get smashed after this, so can someone please re-upload and mirror after they have tested it? ThanksEDIT: *correction* I have a feeling that my dropbox is going to be a ghost town with zero downloads cause this is the I9305 section so no need to mirror as part of my initial request
reservered.
May take a while to actually be on dropbox, so please be patient
This was a rushed job. Please report any issues and I will do the best I can to sort them out for you. Please don't make any demands or tell me I have broken your phone or what ever. This is a developer forums, this is a place where people can come to share their work.
Jarmezrocks said:
reservered.
May take a while to actually be on dropbox, so please be patient
This was a rushed job. Please report any issues and I will do the best I can to sort them out for you. Please don't make any demands or tell me I have broken your phone or what ever. This is a developer forums, this is a place where people can come to share their work.
Click to expand...
Click to collapse
Good to see things start to pick up in the I9305 therad. Thanks.
stian230 said:
Good to see things start to pick up in the I9305 therad. Thanks.
Click to expand...
Click to collapse
There's still tumbleweeds blowing around this place (man it's the longest uptake that I have seen yet for a new device....that's not even new anymore) but we will get there eventually
Not surprised at all that your 1 comment is the only comment post so far lol.
This is awesome, thank you for the info
Sent from my GT-I9305 using xda app-developers app
Jarmezrocks said:
There's still tumbleweeds blowing around this place (man it's the longest uptake that I have seen yet for a new device....that's not even new anymore) but we will get there eventually
Not surprised at all that your 1 comment is the only comment post so far lol.
Click to expand...
Click to collapse
I bet it's more activity in the HTC G1 forum end this place and I'm still kinda surprised that we didn't get a dedicated forum for the I9305
Hi man you are as rock as your name!
P.S. I've seen you in Galaxy S Android Development before!
First of all, many thanks for this
Now for the noob questions
Can I flash this over the top of say Pandorium then use JKAY from the market or will I have to wait for one of the excellent ROM guys to make a JKAY compatible build ?
Thanks for this
Quick question though; what are these 'lte settings apks' that you speak of?
Ok, had some problems and need your help.
Im on xxelkc ausdim port.
First i booted into cwm and tried to flash the framework, but everytime cwm said that it cant find /system/build.prop
After serveral tries, i realized that i had to mount /system manually. Then it worked without problems.
Then i downloaded the deluxe settings from the play store and installed it. But when i run the apk, i tells me that no compatible framework is found. At the about screen it shows me:
Deluxe settings 14.4
Framework 14.3
SystemUI ?
ExtVersion ?
Android Policy ?
Can someone tell what i have to do to make it work?
Ok, i found out that the updater-script doesnt copy any of the files. After copying them manually in the right folder, everything worked well...
So the updater-script needs to be rewritten and with a mount /system command at the beginning.
MrGubby said:
First of all, many thanks for this
Now for the noob questions
Can I flash this over the top of say Pandorium then use JKAY from the market or will I have to wait for one of the excellent ROM guys to make a JKAY compatible build ?
Click to expand...
Click to collapse
Yes, you should be able to flash this over the top of Pandorium if you are using the latest XXELKC version. And yes the Jkay Settings app on the market from 14.3 upwards. I think there is only 14.3 and 14.3.1? No earlier versions will work for this framework.
I have noted that there is an issue with the Settings app not detecting the framework and it says you must be running Jkay framework. I was reading a few posts in Jkays thread and this does lead me to believe that there are still bugs in the alpha framework....hence it's alpha status.If you get this fault the XDA member mentioned that he just applied some of the settings anyway and then rebooted his phone and everything appeared as normal after a reboot.
Hope this helps
glowfinger said:
Ok, i found out that the updater-script doesnt copy any of the files. After copying them manually in the right folder, everything worked well...
So the updater-script needs to be rewritten and with a mount /system command at the beginning.
Click to expand...
Click to collapse
Um there is a mount command at the start of the script? all that I have changed in my updater script is that it does a grep for the build.prop to ensure that the user flashing this mod is flashing it to an LTE device, as they have a different partition layout to the stock I9300 as we are all aware. I knew that partition 13 is where we locate our system partition but was not aware of what this refers to on the I9300? Meaning that if the ways were reversed I didn't want someone accidently flashing this zip file and bricking or loosing the IMEI number due to corrupted efs directory or something like that.
Other than that, I just pasted my fancy bit of test above it (with no commands affecting it what so ever) and removed the delete command that tells the script to delete Jkay settings if it is in system already located. I assume that this was put in place to ensure that when a new framework was released by Jkay that the correct Deluxe settings app was used with it - or else you get SystemUI status bar crashes until it is removed. I removed it cause like me some users side load their apks and its a pain in the arse to re-add the Jkay settings app into system again .
here is the updater script
Code:
show_progress(0.500000, 0);
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print("**********************************************");
ui_print("* *");
ui_print("* *");
ui_print("*.... JARMEZ'S SGS 3 LTE Jkay Port ....*");
ui_print("* *");
ui_print("* For the I9305 LTE SGS 3 only *");
ui_print("* *");
ui_print("**********************************************");
ui_print("* Checking your build.prop... *");
assert(file_getprop("/system/build.prop", "ro.product.model") == "GT-I9305");
ui_print("* Congrats your running I9305 AusDim Port *");
ui_print("* Deleting Old System Files... *");
run_program("/sbin/mount", "/dev/block/mmcblk0p13", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p16", "/data");
show_progress(1.000000, 0);
ui_print("* Deleting JKay Deluxe data... *");
sleep (1);
run_program("/sbin/mount", "-t", "ext4", "-o","rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered,noauto_da_alloc,discard","/dev/block/mmcblk0p12", "/data");
set_progress(0.100000);
run_program("/sbin/rm", "-rf", "/data/dalvik-cache/[email protected]@com.jkaysoft.icsdeluxe*");
run_program("/sbin/rm", "-rf", "/data/app/com.jkaysoft.icsdeluxe*");
delete("/data/dalvik-cache/[email protected]@[email protected]");
delete("/data/dalvik-cache/[email protected]@[email protected]");
delete("/data/dalvik-cache/[email protected]@[email protected]");
delete("/data/dalvik-cache/[email protected]@[email protected]");
delete("/data/dalvik-cache/[email protected]@[email protected]");
set_progress(0.200000);
run_program("/sbin/rm", "-rf", "/data/data/com.jkaysoft.icsdeluxe");
run_program("/sbin/rm", "-rf", "/data/dalvik-cache/[email protected]@com.jkaysoft.icsdeluxe*");
run_program("/sbin/rm", "-rf", "/data/app/com.jkaysoft.icsdeluxe*");
set_progress(0.300000);
run_program("/sbin/sync");
sleep (1);
set_progress(0.400000);
run_program("/sbin/umount", "/data");
package_extract_dir("system_common", "/system");
sleep (1);
set_progress(0.600000);
ui_print("Setting Permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system/framework");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
sleep (1);
set_progress(0.700000);
sleep (1);
set_progress(0.800000);
sleep (1);
set_progress(0.900000);
sleep (1);
set_progress(1.000000);
show_progress(1.000000, 0);
ui_print("* Your device should reboot... *");
unmount("/system");
unmount("/data");
run_program("/sbin/sleep", "6s");
run_program("/sbin/reboot");
EDIT: I have just realised the issue. The grep command to assert the build.prop is before the system has been mounted, so recovery cannot locate the build.prop file when it asserts
rbimdxe said:
Thanks for this
Quick question though; what are these 'lte settings apks' that you speak of?
Click to expand...
Click to collapse
Umm unless you have attempted to port a ROM your self already then it's really not necessary for you to know. The LTE settings along with a string of different librarys and binary files as well as build prop edits, the jar file edits (described) in order to port non-LTE I9300 ROMs to LTE. If you have a snoop around in /system/app and look at the difference between the two devices you will notice that there are several apks that appear different/are different, among them are the aforementioned LTE settings.
glowfinger said:
Ok, had some problems and need your help.
Im on xxelkc ausdim port.
First i booted into cwm and tried to flash the framework, but everytime cwm said that it cant find /system/build.prop
After serveral tries, i realized that i had to mount /system manually. Then it worked without problems.
Then i downloaded the deluxe settings from the play store and installed it. But when i run the apk, i tells me that no compatible framework is found. At the about screen it shows me:
Deluxe settings 14.4
Framework 14.3
SystemUI ?
ExtVersion ?
Android Policy ?
Can someone tell what i have to do to make it work?
Click to expand...
Click to collapse
I think you will find that it does work, it's just that it is very buggy and alpha still and sometimes the settings don't stick after a reboot? Anyway it should improve in time. I am not certain if this is an issue with the Jkay Deluxe settings it's self or the framework....either way it is an issue that will still need to be resolved? Keep an eye on the Jkay thread for updates to this?
Jarmezrocks said:
EDIT: I have just realised the issue. The grep command to assert the build.prop is before the system has been mounted, so recovery cannot locate the build.prop file when it asserts
Click to expand...
Click to collapse
This is what i wanted to say....
Sorry for my bad english...
And yes, after putting the files manually in the right folder, its working fine for me... thanks for this :thumbup:
Hey guys,
I have updated the Jkay zip file. I had used the port base android.policy,jar file and this is what is needed to register against the Deluxe Settings app so I have found out. So with that I have reverted the android.policy.jar file to stock Jkays, however I am going to try port back the other way and see if that has any affects?
Is anyone experiencing framework type mismatch error in Deluxe Settings?
I may need to speak to Jkay about this as there maybe something within the framework.jar files that his app is dependent on for I9300 that we have changed or removed for our devices?
JRock... Big ups for creating this thread bro. Its got some great information and a wonderful place for ppl to start. We have some documents to share 're compiling , github, basic sysadmin stuffs etc. Pm me or talk me and id be happy to share ! [email protected]. (Yes the liquidsmooth port is still in works!
Sent from my GT-I9305 using xda premium
I almost tried to to flash the original jkay mod but then did a search on whether it is compatible with the i9305 at all. Glad I found this
Soo, is jkay mod working as intended with our device? I'm reading about issue here but the thread seems a bit deserted... anyways I'm eager to try this out and hope OP will continue to do ports! Thank you very much, good sir!

[SOLVED] Trouble making update.zip

Having some trouble making an update.zip for our phone. I was making my first update.zip by trying to push an apk file into /system/app. Below is the content of updater-script.
ui_print("Installing Titanium Backup6.0.2");
package_extract_file("system/app/TitaniumBackup602.apk","/system/app/TitaniumBackup602.apk");
set_perm(1000, 1000, 0664, "/system/app/TitaniumBackup602.apk");
ui_print("Done.");
Everytime I flash it gives an Installation aborted error. also I am confused about the update-binary file.Some say we should just copy paste the working binary file into our update.zip but I have two files(each of different sizes) both working with the zips they came along but surprisingly I am still getting the same error.
Any more info required? Please help.This is really frustrating.
Re: [Q] Trouble making update.zip
just use Notepad++ for editing updater scripts otherwise u will allways have errors in cwm when you try to flash it....
Sent fom my S-II running Vanilla Rootbox >>Nightly (2013/03/31)<< powered with DorimanX kernel v. >>9.12<<
Re: [Q] Trouble making update.zip
I used gedit on ubuntu.
You read my post :what:click Thanks to undo

Categories

Resources