[Q] editing zip/rar without extracting? - Android Q&A, Help & Troubleshooting

Hi!
Is there any way to edit the zip files without extracting? I mean replacing/deleting files without need to extract the zip/rar files!
Is there any app for that?
Thanks!!!

Powergrasp. But if you want to edit a file then you can extract that file(only that file), edit it and then copy and replace inside the zip. Hope this helps. O

use vim editor in linux/ubuntu
usage : vim filename.zip
edit the contents and save it using :x

7-Zip for Windows

Related

[TUT] Advance Framework Edit

things you'll need
APK MANAGER
7zip
DESCRIPTION :
Q : Basic
A : The icons are stored in the Drawable-mdpi folder in the framework.
these icons are linked to XML's in Drawable folder
if you just add the icons and don't change the xml, you'll get nothing.
Q : Why Cant we just Edit the XML files?
A : The XML files are encrypted. if you try to edit it you will get weird characters.
Q : No XML No Edits, Are we Done?
A : Yes, No XML No Edits. But we've a walkaround. The APK MANAGER
it decompiles the apk and unencrypts the xml file.
BASIC :
Extract the contents of APK MANAGER to any folder
you'll have few folders
place your apk in the place-apk-here-for-modding folder
open Script.bat
and chose option to decompile and minimize
it will create a folder namely PROJECTS
now you can edit the xml files
after your done, maximize the apkmanager window and choose comiple apk
HOW TO ADD MORE PNGS :
if you want to add pngs like the battery percentage you'll need to link the png to the xml file
this can be done by two ways
1. assigning resource_id
&
2. directly putting in the names
the 1st method is easy but complex so forget it
the second method is simpler.
just find the xml file corresponding to the png and than simply add the name.
for eg.
stat_sys_battery.xml is the battery status xml.
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
Click to expand...
Click to collapse
here the
android:drawable is the android code
and
@drawable/stat_sys_battery_* is the file location
check the attachment for better understanding
Click to expand...
Click to collapse
THE PROBLEM & THE SOLUTION :
if you try to edit any modded framework file you'll get error while compiling.
and your phone will hang if you use that file.
SOLUTION
instead of using modded file. use the STOCK framework. Edit your files and compile your apk
now when you compile it, it will give you few options
1. is it a system file [y/n]
choose yes
2. (...blah blah.. do you wish to keep files)
choose yes
now it will extract the stock (unedited) framework in a KEEP folder
minimize the window
open the folder and delete all the files you modified.
if you had modified xml file you'll also need to delete resources.asrc
now maximize the apkmanager window and press any key.
your modded apk will be compiled in the place-apk-here-for-modding folder
PS : IT WOULD BE UNSIGNED
LAST STEP :
open the compiled unsigned apk and extract all the files you edited (including resources.asrc)
simply replace these files in the framework-res.apk you wanted to mod
only part to take care is the resources.asrc file you don't have to replace it directly
do this steps for replacing resources.asrc
1. right click the resources.asrc
2. select add to archive
3. archive format zip
4. compression method Store
5. select the path of your framework-res.apk
I know this all seems way to complex but if you read carefully and do it step by step, its all easy as a PIE

need system apps from Live with walkman Rom

Hy guys if some one rooted their WT19i live with walkman phone
then please copy your system apps folder using root explorer and upload them
from original WT19i stock ROM
i really need them
You may get all files in a few steps:
1. Download firmware file (take it here).
2. Open it with 7-zip or WinRAR and extract somewere system.sin.
3. Download and unpack Direct SIN & YAFFS UnPacker in the same folder with system.sin.
4. Open console (cmd) from this folder and type:
aIUP.exe system.sin 4096 apps_LIVE
5. Your apps will appear in apps_LIVE folder.
Please delete my post
Can you use them with CM ?
.: SID :. said:
You may get all files in a few steps:
1. Download firmware file (take it here).
2. Open it with 7-zip or WinRAR and extract somewere system.sin.
3. Download and unpack Direct SIN & YAFFS UnPacker in the same folder with system.sin.
4. Open console (cmd) from this folder and type:
aIUP.exe system.sin 4096 apps_LIVE
5. Your apps will appear in apps_LIVE folder.
Click to expand...
Click to collapse
Please tell me if i want to extract other mobile phone sin files then what will be the command for them
i want to extract Xperia Arc sin files to .... ?????????????
and i am thankful to you for your info.......
The command will be the same.

Open XML file

I had extract surces files from an .apk application and I'd like to open XML files in the folder "res"
I import it in eclipse but i obtain this message:
"No XML content. Please add a root view or layout to your document."
you're right !
xml files in res folder doesn't seem to be real xml but "DBase 3 data file"
-> using the "file" command (on linux)
res/layout$ file main.xml
main.xml: DBase 3 data file (864 records)
Why not just use Notepad++ or Geany(Linux) ? That how i edit xml files.
smokin1337 said:
Why not just use Notepad++ or Geany(Linux) ? That how i edit xml files.
Click to expand...
Click to collapse
If anybody want to edit an xml inside an apk, he must decompile with proper decompiler (apktool) . Then only he can edit the xml with notepad or gedit or Geany .
Simple extracting of xml file will that suffice. XML extracted from apk with a zip manager , may not even viewed properly with notepad gedit or Geany .
yeah, you must decompile the .apk , then you can edit the xml file by a text editor.
Yes, you cannot just unzip the .apk and edit the files. You must de compile the apk first:
http://code.google.com/p/android-apktool/
It is easy, then you can edit all you want.
Then: compile, zip, sign.

Modifying APKs on Lollipop

Hello everyone,
I hope I'm posting this to the right forum.
Up until Android 4.4 KitKat we were able to use apktool for decompiling an apk, making modifications and then recompiling it.
In case we were dealing with an ODEXed ROM, we could also use backsmali and various other tools to deodex before using apktool.
Now, in Lollipop, which uses ART, we get an APK file, but also a .odex file in a '/arm' subfolder.
From what I've read so far, that's not really an odex file, but rather an Android runtime .OAT file.
My question is - how does this affect our abilities to edit APKs?
Is it possible to "deodex" the OAT file to get an all-inclusive APK to use with apktool? If so, how?
After we rebuild the APK, can we just run it 'deodexed' or do we need to recreate an OAT file?
Any insight would be appreciated
purpleman2k said:
Hello everyone,
I hope I'm posting this to the right forum.
Up until Android 4.4 KitKat we were able to use apktool for decompiling an apk, making modifications and then recompiling it.
In case we were dealing with an ODEXed ROM, we could also use backsmali and various other tools to deodex before using apktool.
Now, in Lollipop, which uses ART, we get an APK file, but also a .odex file in a '/arm' subfolder.
From what I've read so far, that's not really an odex file, but rather an Android runtime .OAT file.
My question is - how does this affect our abilities to edit APKs?
Is it possible to "deodex" the OAT file to get an all-inclusive APK to use with apktool? If so, how?
After we rebuild the APK, can we just run it 'deodexed' or do we need to recreate an OAT file?
Any insight would be appreciated
Click to expand...
Click to collapse
Files needed:
1. bootoat2dex.jar
2. Cygwin
3. APKTOOL
4. Java will need to be installed also
Install Cygwin and run it once so your userfolder is created, will be in c:/cygwin/home/<User Name>
Copy bootoat2dex.jar into this folder
Go to priv/app/SystemUI/arm/ and use 7zip to extract SystemUI.odex from the SystemUI.odex.xz file
Copy SystemUI.odex to your cygwin folder c:/cygwin/home/<User Name>/
Open cygwin and run the following command:
java -jar bootoat2dex.jar SystemUI.odex
This will output 2 folders dex and odex, if you look in the odex folder you should see SystemUI.odex.
Rename this file to classes.dex and drop it into the SystemUI.apk file
Follow the same instructions for the twframework-res.odex file also.
now copy the files SystemUI.apk, framework-res.apk and twframework-res.apk into you apktool folder and install framework ex. apktool if framework-res.apk, apktool if SystemUI.apk, apktool if twframework-res.apk
After the framework install you should be able to decompile SystemUI.apk, you should be able to do this with all the apk files.
C13v3r0n3 said:
Files needed:
1. bootoat2dex.jar
2. Cygwin
3. APKTOOL
4. Java will need to be installed also
Install Cygwin and run it once so your userfolder is created, will be in c:/cygwin/home/<User Name>
Copy bootoat2dex.jar into this folder
Go to priv/app/SystemUI/arm/ and use 7zip to extract SystemUI.odex from the SystemUI.odex.xz file
Copy SystemUI.odex to your cygwin folder c:/cygwin/home/<User Name>/
Open cygwin and run the following command:
java -jar bootoat2dex.jar SystemUI.odex
This will output 2 folders dex and odex, if you look in the odex folder you should see SystemUI.odex.
Rename this file to classes.dex and drop it into the SystemUI.apk file
Follow the same instructions for the twframework-res.odex file also.
now copy the files SystemUI.apk, framework-res.apk and twframework-res.apk into you apktool folder and install framework ex. apktool if framework-res.apk, apktool if SystemUI.apk, apktool if twframework-res.apk
After the framework install you should be able to decompile SystemUI.apk, you should be able to do this with all the apk files.
Click to expand...
Click to collapse
Great info! Thanks! I have used oat2dex.py to extract the OAT file, baksmali'd, modified smali code, recompiled it but that's where I'm stuck. How do I get it back into the original OAT format for inclusion in an Odexed rom? Any help would be greatly appreciated.
P.S. I'm working with SystemUI.odex.
jermaine151 said:
Great info! Thanks! I have used oat2dex.py to extract the OAT file, baksmali'd, modified smali code, recompiled it but that's where I'm stuck. How do I get it back into the original OAT format for inclusion in an Odexed rom? Any help would be greatly appreciated.
P.S. I'm working with SystemUI.odex.
Click to expand...
Click to collapse
I haven't been able to find anything that will take the files the other direction.

[.img-zImage] [.reloc] [.text] Help

Hi!
I used Android kitchen to splite a boot.img, on split_img folder i get a .img-zImage file.
I used 7z.exe to decompress the .img-zImage file and i get a .reloc file and a .text file.
How can i edite or see the .text file?? With notpad++ i see ite but is like encrypted, so how can i see or edite this file???
Thanks!
No one to help???? ?

Categories

Resources