How to make a flashable zip that deletes files - Galaxy S III Mini Q&A, Help & Troubleshooting

I have found a similar post but I couldn't find any solution. So, I made a zip that contains my favorite mods for flashing after a factory reset. Some of them need odex files to be deleted. I try to do that with the update-binary file but when I open it with notepad+ I see unrecognisable characters. Could anyone help me? I tried to edit the updater script file but when I flash it the files are not deleted.

For delete single file you should add to updater-script this:
Code:
delete("/system/bin/xxx.odex");
For s iii mini you can use update.zip in attachment. Only edit updater-script for your need.

Delete this!

Related

Recompile APK help

I'm a noob at this... I searched the forum but couldn't find any information.
Could someone more knowledgeable explain to me how to decompile and recompile apk's?? More specifically the framework-res??
I read that you can't simply unzip and then rezip... so what do I have to do?
The apk's are zip files that contain the resources (icons, bitmaps, sounds, etc.) as well as the code compiled in a classes.dex file. You can replace the resources after deodexing, but I don't think you will be able to change the compiled code in classes.dex unless you have the source code.
Sent from my SAMSUNG-SGH-I897 using XDA App
So for instance... if I have a clockwork flashable battery mod... and I unzip that... and edit colors of icons in the framework-res.apk, then can I just save the files, recompress and it will still flash properly?
And another thing.. if you have a clockword flashable .zip how do you change it so that you can flash via stock recovery? I know that simply renaming it to update.zip and trying via stock will not work. Is it a hard process, do I need a special program on my pc??
make your life easier..
search xda for Apk Manager
jslee1020 said:
So for instance... if I have a clockwork flashable battery mod... and I unzip that... and edit colors of icons in the framework-res.apk, then can I just save the files, recompress and it will still flash properly?
And another thing.. if you have a clockword flashable .zip how do you change it so that you can flash via stock recovery? I know that simply renaming it to update.zip and trying via stock will not work. Is it a hard process, do I need a special program on my pc??
Click to expand...
Click to collapse
I am not sure about editing apk's. To create a flashable zip file through stock recovery, you need to have the META-INF folder correctly created with a working updater script and the manifest and certificate files that you get by signing the zip file. Look into playing with the HTC android kitchen on the chef central section here to automate that process.

[Q] Framework Jar File

I am trying to create a reboot option for my galaxy tablet. I am in the proccess of using smali/baksmali to edit some files...the problem is when I adb pull the framework jar there is no classes file in the zip. The only thing in there is the META-INF obviously and a file called preloaded classes...this is considered just a file, not a class file. Should I not have a .class file?
EDIT-------------------------------------------------
I looked, what I mean is that there is no classes.dex file
Thanks
Found the problem. I am using a stock rom that hasn't been deodexed. I had to use baksmali to deodex the framework.odex file. Of course if you do this you have to have the right bootclasses in the folder or the file will not decompile right, and from what I have read you need that to happen in order to compile it back into a odex file. I should deodex the whole rom, but I am still new at this and don't want to create a boot loop
-Peace

[Q] Font Creation - Help requested

I've done my searching and experimenting to try to get this to work, but I'm stuck.
I've got a font (Rockwell) that I'd like to package up into a nice .apk so I can just install it now, and have something simple to reinstall in the future should I need to.
What I've done so far is to pull a font .apk out of my phone already (Armani font, in this case), decompiled it with apktools, and then edited the following files:
/assets/fonts -> replaced fonts with rockwell.ttf files
/assets/xml -> updated xml file with appropriate filenames
/res/values ->updated strings.xml only with new app name
/res/layout & /res/drawable -> did not touch these folders
/smali/com/monotype/android/font/Armani ->replaced all references to Armani with Rockwell
/AndroidManifest.xml ->updated package name
/apktool.yml ->updated to show correct output name for apk
I then used apktools to package up the files into an .apk file, and then transfer it to my phone. When I attempt to install it, it sees the file, tries the installer, but then says "package not installed successfully" (or something similar).
My questions are:
1. Did I edit something incorrectly?
2. Did I follow the wrong steps to package up the files?
3. Is it possible that Rockwell just isn't a .ttf file that can be used?
4. Did I install the .apk wrong? (i.e. is it a system file and needs to be installed in a root environment/pushed with adb)?
Thanks in advance - I'll post any additional information that is needed.
(Oh, and I do realize this is a question - I didn't post in Q&A because everything I've seen posted font-wise has been in this section. If I'm mistaken, please move this.)
Update:
I retraced my steps through this post, and realized that I hadn't signed the file in APK Manager.
I was able to install the font file, and it's all better now.

[Q] What is the update-binary file?

Can anyone tell me what the file is for and what is inside??
It is next to the updater-script in the update.zip files
ty
Its a compiled binary executable file that bears the installation code.
and do I need to create my own or can I use one existing already?
You could use the existing one which works for the version of the CWM that you want your ZIP file to work on.

Help.

Holla amigos...
I need help........again.
See, I'm creating my own rom and my base uses blackhawk. I want to change this to firekernel. I searched xda and Google but I couldn't find anything. All they talk about is how to flash another kernel. I want to know how to include it in rom before flashing. And also, could someone tell me the .XML that is used for Modding the lock screen.
Sent from my GT-S5830 using xda app-developers app
Inside the flashable zip (any flashable zip) you'll find several folders and files. To see where each file gets flashed to, look inside the META-INF folder and search for a file called "updater script".
Its the updater script the one that indicates where each part of the zip will be flashed, so open it with a text editor, take notes where each file ends up, and copy them to their location inside your rom.
dxppxd said:
Inside the flashable zip (any flashable zip) you'll find several folders and files. To see where each file gets flashed to, look inside the META-INF folder and search for a file called "updater script".
Its the updater script the one that indicates where each part of the zip will be flashed, so open it with a text editor, take notes where each file ends up, and copy them to their location inside your rom.
Click to expand...
Click to collapse
And at the start, through dsixda kitchen updater script was converted into update script. Is it the same? Okk. And what about including scripts, I want adrenaline engine. I downloaded the zip. Ignored the Meta -inf and copied the system folders inside the system folder of the working project....Am I right?
Sent from my GT-S5830 using xda app-developers app
If you're using the kitchen its OK, you can add any flashable zip that way, copying the files and folders to their respective location inside your Project. Checking the updater script is only necessary when in doubt of where each thing goes.
Don't use kitchen's updater script and binaries.They won't work,could even brick the device.To change kernel,download firekernel and replace the boot.img in that pack with the one in your rom.Boot.img is the kernel.Scripts go in init.d
Prawesome said:
Don't use kitchen's updater script and binaries.They won't work,could even brick the device.To change kernel,download firekernel and replace the boot.img in that pack with the one in your rom.Boot.img is the kernel.Scripts go in init.d
Click to expand...
Click to collapse
Hey. Thanks for that. Please help me out here: http://forum.xda-developers.com/showthread.php?p=28891130#post28891130

Categories

Resources