[Q] Are update.zips Universal? - Android Q&A, Help & Troubleshooting

Hi guys,
just a quick question for you all. Are flashable zip files universal across all devices?
In other words, if I had a zip file that replaced the framework-res.apk, would it work on any phone or tablet? I know the app wouldn't, but would the zip file?
Thanks!

depends on the updater- script

So if I had a script that just copied the contents of the system/app folder from the zip file to the phone, that would work? I don't want to do anything complicated, it's mainly for replacing apk's.

Related

[Q] nuub question, can an .apk be lightly modified like this?

I am sure this would be a WTF for some people thats why I'm asking in the Q&A section.
I've noticed that .apk files can be renamed to .rar and, once decompressed, we can find files in a normal-structure in their real format (images, sounds, xmls, etc).
So I wonder, let's say, we want to modify one of the images inside the .apk. We would change it for another with the same name/size so no probs with that.
Could we decompress the .apk as a .rar, change the file, recompress it to a .rar and rename it to .apk, or we would **** permissions or something in the way?
Otherwise it needs some compiler or something I guess right? But then I wouldn't understand why it can be plainly decompressed as a .rar..
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
UpInTheAir said:
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
Click to expand...
Click to collapse
Thanks a lot mate! Very appreciated

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...

Edit files inside zip without extracting it?

I'm looking for an app can edit files inside zip (or apk) without extracting it. For java, there was a program called Mini Commander, which could do that. For Android I could't find one. All zip programs can just extract and repack. So is there any program supports inside zip file management?

Categories

Resources