Creating a CWM zip file - AT&T Samsung Galaxy S II SGH-I777

I have some changes that I like to make to the Settings.apk, Systemui.apk, and framework-res.apk. Typically, I just pull these files from the Rom I'm using, edit the images in the drawable folders, and then copy them into the system files on my phone. I'd like to be able to create a zip file to do this for me. It looks like I can take someone elses update package and edit the "update script" file to do this. Is it that simple or is there more to it? What other files are important to creating an updater zip.
Thanks
Sent from my SAMSUNG-SGH-I777 using xda premium

BigMc71 said:
I have some changes that I like to make to the Settings.apk, Systemui.apk, and framework-res.apk. Typically, I just pull these files from the Rom I'm using, edit the images in the drawable folders, and then copy them into the system files on my phone. I'd like to be able to create a zip file to do this for me. It looks like I can take someone elses update package and edit the "update script" file to do this. Is it that simple or is there more to it? What other files are important to creating an updater zip.
Thanks
Sent from my SAMSUNG-SGH-I777 using xda premium
Click to expand...
Click to collapse
Just head over to perkas files stash (google it) and look for a empty system cwm.
Now you just have to make folders in this zip and add your files. example you want framework-res.apk and systemui.apk flashed.
So open the cwm zip and add a folders called app and a folder called framework.
The zip will be/system and so with the folders it creates /system/framework/framework-res.apk and system/app/SystemUI.apk. Etc
This empty system cwm should have all the folders you need for the zip

Related

Edit Concat Picture

Hi..
I wanted to change the contact images in the framework-res. I've done so far, but when I folded the new framework-res with the mod-tool push, then that too, but he shows me the new image does not accumulate in handy.
I can do or what?
My steps:
1. I replace the corresponding image (PNG format) with 7zip
2. im sending the new framework-res or contact.apk via adb mask controller on my x10i
3. reboot
4. im showing in contacts and the image ist the same as before
looking like a rat i handle it?
"Title: Edit Contact Picture"
you should edit "contacts.apk" located in "/system/app" not "framework-res.apk"
DynamicRam said:
you should edit "contacts.apk" located in "/system/app" not "framework-res.apk"
Click to expand...
Click to collapse
the contact image I have is in the framework-res. in the contact.apk another is available.
I am using CM 4.5.7 by Wolf Break
Have you resigned the apk?
Sent from my X10i using XDA App
no, like I do that?
Google it. But you will need the Android SDK or at least latest JDK and there is a script somewhere here on XDA called autosign or something like that. You will need to install those than remove the meta-inf from the modified apk put the apk file in the folder for autosign (make sure theres only one apk in the folder) then run autosign and it will create a new apk called your_signed_apk then rename it and push back to your phone.
Search "resigning apk files" and read. Theres an old thread somewhere for changing app icons i think that has everything you need to know.
Sent from my X10i using XDA App
Here is the thread
http://forum.xda-developers.com/showthread.php?t=503007
Read this thread and use the OPs modified tool found here:
http://www.mediafire.com/?yw24z5m4yya
Sent from my X10i using XDA App
Thx for this.
Sent from my X10i using XDA Premium App
CMoney87 said:
But you will need the Android SDK or at least latest JDK and there is a script somewhere here on XDA called autosign or something like that. You will need to install those than remove the meta-inf from the modified apk put the apk file in the folder for autosign (make sure theres only one apk in the folder) then run autosign and it will create a new apk called your_signed_apk then rename it and push back to your phone.
Click to expand...
Click to collapse
System apps don't need to be signed. If you look in framework-res.apk, there's no META-INF directory.
Are you sure you replaced the framework-res.apk file correctly? I posted some info about framework-res.apk here: http://forum.xda-developers.com/showthread.php?p=11193663#post11193663
As always, back up with xRecovery before messing around with framework-res.apk. One mistake and you won't be able to boot.
I think most stock apps actually might not need to be signed, now that i think about it though. You might just need to make sure you remove the unmodified app first (copy it somewhere first for a backup) and then manually put the apk in, set permissions correctly and then reboot. This apk signing trick allows you to modify any app to change shortcut icons or customize anything you want and reinstall it correctly so it should come in handy anyways.
Sent from my X10i using XDA App

Packing a boot.img and drivers to a zip?

Im developing a custom kernel. I was wondering now that i have my boot.img and drivers is there a way to pack them for installtion in a flashable .zip? I basically want to supply features to an existing rom. with custom kernel and shell scripts. I would like ot to be easy for others to install. Google didnt turn up much about this. Any info or links would be greatly appreciated!
Sent from my LG-VM670 using XDA App
Have the drivers put into folders in this fashion. system/lib/modules the drivers being in the modules folder. The boot.img is in the root of the zip along with the META-INF and system folders. The META-INF folder consists of this order META-INF/com/google/android and in the android folder contains the update-binary and updater-script files. The update-binary is specific to whatever device you have. The updater-script is to be edited by a text editor to tell how to flash. Look through other flashable zips to see the syntax of the updater-script.
私のEVO 3Dから送信される。
Thank you this is allot simpler than i expected. I thought i was going to need some kind of Kitchen or tools to build the META stuff and scripts!
The only thing im still fuzzy on is the directory structure of the zip file lets say i have these three files boot.img, /system/bin/modules/wirless.ko, and /system/bin/remount.sh the zip should look like this:
-/boot.img
-/META-INF/obviously more to this dir just a quick layout
-/system/bin/remount.sh
-/system/lib/modules/wirless.ko
and if i wanted to throw anything else in there i would just add the directory with the new files in it as needed and any will /data, /mnt/sd-ext, whatever
Refer the link in my sig

[Q] Manual deodex an rom before flashing?

I'm searching for a simple way how can I deodex any rom. My idea is to rename the *.odex file to classes.dex and put it into the apk/jar archive using a simple archive manager. Will this work? I don't like any scripts to do that, will make it manual before flashing the rom. And need I to sign the apk/jar files (I think the normal apk files need that, but what witch the framework? Need it too to be resigned?).
no use xultimate
Sent from my GT-S5830 using xda premium
sometimes scripts is better to make your life easier
btw try dsixda android kitchen. its my favorite tool/script to deodex
Hmm ok will try first the dsixda android kitchen, I see it has version for Linux. But I will understand how this script works?
EDIT
Ok, now I see, it uses baksmali and samli to deodex. Thanks to all, will test it tomorrow.
Ok, after using the dsixda android kitchen and deodexing the framework (and SystemUI.apk, not more) and flashing the ROM I got an bootloop (wipe doesn't help). Her is my logcat http://pastebin.com/DtfChnPp , can some help, what did I wrong? I have only after deodexing apply the volume mod and the Pdroid patch, I am working on this rom http://forum.xda-developers.com/showthread.php?t=1360889
try this
download xultimate, theres a thread about it somewhere. unzip it and connect your phone with the rom thats .odex http://forum.xda-developers.com/show....php?t=1360889
next
once connected click on opition 5 which will pull all the apps and framework files from your phone and will deodex all the files and store them in the folder called "done_app" and "done_framework" may take up to 15mins
next
change the folder names of the done folders to "app" and "framework" and have both folders and the rom.zip that you installed pre at hand, in your case
http://forum.xda-developers.com/show....php?t=1360889
Then open the rom.zip up with 7zip and then click on system folder and drop "app" and "framework" folders into the rom.zip so your swaping the the folders with the .odex files for the deoxed ones you just did. put it on sd-card. wipe, mount system and data and install.
correct me if im wrong.
hope this works.

Possible to flash certain files within an APK?

is it possible to flash only certain files contained in an APK? For instance if I want to modify a XML file in systemUI.apk, can I just flash that file or do I have to flash the whole systemUI.apk containing the modified file?
folder structure within flashable zip:
single file: \system\app\systemui.apk\res\values\drawable.xml
vs
whole apk: \system\app\systemui.apk
holtenc said:
is it possible to flash only certain files contained in an APK? For instance if I want to modify a XML file in systemUI.apk, can I just flash that file or do I have to flash the whole systemUI.apk containing the modified file?
folder structure within flashable zip:
single file: \system\app\systemui.apk\res\values\drawable.xml
vs
whole apk: \system\app\systemui.apk
Click to expand...
Click to collapse
You can't just flash anything in an apk file... But you can replace a file in an add-on using morph or vr theme... For more info search...
And if you want any reference to learn how vr theme works then you can see my atomods... In its theming section...
Thank you...
Send from my Galaxy far far away nexus...

how to create flashable.zip for any system file modded ???

hello everybody
a lot of times I find system modded files and I wanna use them but the developers often offer the file is not flashable so I have to replace the older and set the permissions
but in all times I did that , the system sent an error and was damaged
so I wanna learn how to make a flashable.zip for any system file to be installed to its location and set the permissions
please help me
thanks
engnajjar said:
hello everybody
a lot of times I find system modded files and I wanna use them but the developers often offer the file is not flashable so I have to replace the older and set the permissions
but in all times I did that , the system sent an error and was damaged
so I wanna learn how to make a flashable.zip for any system file to be installed to its location and set the permissions
please help me
thanks
Click to expand...
Click to collapse
Its quite simple. Download a superuser.zip file that is for your device. Extract it. You will find two folders, System and Meta-Inf. Open System folder and you will find a folder called app inside it. Open it and delete the superuser.apk file and copy your modded system file into it.
For eg., Let the file be Gallery2.apk .
Now open META-INF folder -> com -> google -> android. You will find a file called updater-Script. You have to edit that file. There will be a line, where the system mount command is given. Do not do anything until that line. Delete the lines below it and enter these lines.
delete("/system/app/Gallery2.apk");
# [here Gallery2 is the name of the apk file you copied]
package_extract_dir("system","/system");
ui_print("Installation complete!");
Now rezip the folders together and you have your own flashable zip to install modded system files.
Hit thanks if this helped! :laugh:
PM me if you require further help.
dev27 said:
Its quite simple. Download a superuser.zip file that is for your device. Extract it. You will find two folders, System and Meta-Inf. Open System folder and you will find a folder called app inside it. Open it and delete the superuser.apk file and copy your modded system file into it.
For eg., Let the file be Gallery2.apk .
Now open META-INF folder -> com -> google -> android. You will find a file called updater-Script. You have to edit that file. There will be a line, where the system mount command is given. Do not do anything until that line. Delete the lines below it and enter these lines.
delete("/system/app/Gallery2.apk");
# [here Gallery2 is the name of the apk file you copied]
package_extract_dir("system","/system");
ui_print("Installation complete!");
Now rezip the folders together and you have your own flashable zip to install modded system files.
Hit thanks if this helped! :laugh:
PM me if you require further help.
Click to expand...
Click to collapse
thanks so much it works well
engnajjar said:
thanks so much it works well
Click to expand...
Click to collapse
Glad that I could help. :good:

Categories

Resources