yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] santacruzdz:
can anyone please help me ?? I'm getting this error, when "recompiling" an apk . I use a galaxy nexus with a AOKP rom .

java version "1.6.0_29"

Java(TM) SE Runtime Environment (build 1.6.0_29-b11)

Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)

'adb' n'est pas reconnu en tant que commande interne

ou externe, un programme ex‚cutable ou un fichier de commandes.

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

ERROR: unable to open 'C:\Users\SANTA_~1\AppData\Local\Temp\APKTOOL2902047541754566197.tmp' as Zip file for writing

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.io.FileNotFoundException: C:\Users\SANTA_~1\AppData\Local\Temp\APKTOOL2902047541754566197.tmp (Le fichier spécifié est introuvable)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:318)

at brut.androlib.Androlib.buildResources(Androlib.java:248)

at brut.androlib.Androlib.build(Androlib.java:171)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:174)

at brut.apktool.Main.main(Main.java:59)

Caused by: brut.directory.DirectoryException: java.io.FileNotFoundException: C:\Users\SANTA_~1\AppData\Local\Temp\APKTOOL2902047541754566197.tmp (Le fichier spécifié est introuvable)

at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)

at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)

at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)

at brut.androlib.Androlib.buildResourcesFull(Androlib.java:309)

... 5 more

Caused by: java.io.FileNotFoundException: C:\Users\SANTA_~1\AppData\Local\Temp\APKTOOL2902047541754566197.tmp (Le fichier spécifié est introuvable)

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(Unknown Source)

at java.util.zip.ZipFile.<init>(Unknown Source)

at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)

... 8 more
[G1 Android Development] santacruzdz:
when decompiling, in the project folder, there is no ressources.arsc, is that normal ?? please anyone knows ??
[G1 Android Development] Ajthescot:
That's correct, the resources...arsc decompiles to the values folders in projects..

If you make any changes to the values. You should delete the ressources.arsc from the keep folder when recompiling..

Compare an extracted apk to a decompiled apk. You will see the difference..

Hope that helps.
[G1 Android Development] santacruzdz:
Thank you for your answer, I do understand now a little better but...my problem is, if i dont move manually the ressources from the original apk to the "project folder" it won't recompile..this is the problem. if i try recompiling without moving the original ressources.arsc from the non modified apk, it give the folowing error :

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

ERROR: unable to open 'C:\Users\SANTA_~1\AppData\Local\Temp\APKTOOL2089442691140089665.tmp' as Zip file for writing

so i dont really know what is going wrong in that temporary folder ??
[G1 Android Development] Ajthescot:
not sure of that i havent come across that as yet .

have you tried the files that chilschils41

posted here http://xdaforums.com/showthread.php?t=695701&page=122
[G1 Android Development] willianssrj:
Tested and approved in windows 7 x64
[G1 Android Development] santacruzdz:
doesnt seem to work on vista x86...using ICS as framework-res.apk
[G1 Android Development] Driv:
Pls reupload Windows link . Multiupload down ?!
[G1 Android Development] atlantisu21:
Great script! You are the best! :)
[G1 Android Development] Wader_X:
GAHHH i cant post links !

but i downloaded the file from

h**p://w*w.4shared.com/get/c-CyZ0vc/apk_manager_49.html

i think its the same
[G1 Android Development] jasminthoria:
Hi Download link dont work is there anything you can do to upload some other website or mirrior plzzz.:confused:
[G1 Android Development] MrSmith317:
New website http://apkmultitool.com
[G1 Android Development] bonesy:
There should be a hand on all computers that slaps you whenever YOU QUOTE THE FIRST POST!
[G1 Android Development] yoseir2:
compiling doesn't create unsignedapp.apk

when I compile (after editing arrays.xml from res/values and adding multiple pngs to drawable-hdpi folder, it doesn't create an unsignedapp.apk

If I only replace files in the drawable-hdpi folder, it works fine, I can compile, sign, and install onto my phone.

Its only when I edit the arrays.xml file from the res/values folder and add more files to the drawable-hdpi folder that it doesn't create an unsignedapp.apk after I compile. Please help!
[G1 Android Development] spawk:
if pocible reupload it pleas the multiupload link dont work thanks in advance
[G1 Android Development] Ajthescot:
It Tells you right there the problem.

Install a framework
[G1 Android Development] {davros}:
I see that but it just all of the sudden started doing this is.

How would I do it .. adb pull? System dump?
[G1 Android Development] Ajthescot:
Search this thread for install framework. I have plus others put up instructions many times mate.

I wouldn't want to type it on my phone because it may be wrong.

If you can't find it I'll edit this post when I get home
[G1 Android Development] Bologna:
I can't download linux version...can you check your link?

Thanks in advance.
[G1 Android Development] Ajthescot:
The Op hasn't been in here in a long long time. Check the last Page for links to new threads. May have a linux version there.
[G1 Android Development] :
Copy the apktool.jar out of the "other" folder

and the

framework-res.apk

And

(other dependent frameworks i.e twframework or whatever you might be working with to your C:\

Assuming you are in Windows

Open command prompt in C:\

Type:

java -jar apktool.jar if framework-res.apk

Hit enter

This installs framework in C:\users\whatever\apktool\framework folder as 1.apk

Do this for the other dependants as well.

Sorry I'm doing this from my phone if my post looks weird.

Feel free to pm me if you have any questions.
[G1 Android Development] {davros}:
using linux ...
[G1 Android Development] trinhhongha90:
Please upload link of window version...!.. old link can not downloadable !
[G1 Android Development] Idea Generator:
I have JDK and Java installed on my PC but I don't have ADB.. Can someone give me link for ADB ?
[G1 Android Development] Ajthescot:
It should be in your sdk platform tools folder
[G1 Android Development] Idea Generator:
Works! Thanks
[G1 Android Development] Jumper1984:
i have same problem! can any one update the link?
[G1 Android Development] Ajthescot:
That was back a Page mate
[G1 Android Development] hadramos:
Hi,

I'm confused but i can't decompile Settings.apk.

I'm use Xperia ARC with the new 4.0.2.A.0.62 firmware.

I'm use apkmanger 4.9.

I always have the same error :(

[B][COLOR="Red"]Can't find framework resources for package of id: 2. You must install proper fram
ework files, see project website for more info.
"An Error Occured, Please Check The Log (option 21)"[/COLOR][/B]

I have installed apkmanager in folder C:\Xperia\apkmanager

I decompile framework-res.apk with apktool in C:\xperia\apkmanager\other folder with command :

java -jar apktool.jar if framework-res.apk

I set path environment variables (ADB and Java)

C:\Program Files\Java\jre6\bin\java.exe;D:\eclipse-php\android-sdks\platform-tools;

And I have selected 9 option (Decompile apk) in apkmanager

I don't understand why i can't decompile Settings.apk!

It works without problem for SystemUI.apk or framework-res.apk for example...

Please help me :)

APKMANAGER LOG

|29/02/2012 -- 12:56:24,69|
--------------------------------------------------------------------------
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)
Impossible de trouver C:\Xperia\apkmanager\place-apk-here-for-modding\../place-a
pk-here-for-modding/signedSettings.apk
Impossible de trouver C:\Xperia\apkmanager\place-apk-here-for-modding\../place-a
pk-here-for-modding/unsignedSettings.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: C:\Users\hadramos\apktool\framework\1.apk
Impossible de trouver C:\Xperia\apkmanager\place-apk-here-for-modding\../place-a
pk-here-for-modding/signedSettings.apk
Impossible de trouver C:\Xperia\apkmanager\place-apk-here-for-modding\../place-a
pk-here-for-modding/unsignedSettings.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Decoding resources...
I: Loading resource table from file: C:\Users\hadramos\apktool\framework\1.apk
[G1 Android Development] aaron.a:
When compiling systemui the values folder doesn't exist in the keep folder, so any changes you make are gone.

what's up with that? the apkmultitool forums are inaccessible as well. what gives?
[G1 Android Development] 3rdstring:
The values folder is compiled into the resources.arsc file. If you make chnges there you should delete that file from the keep folder & it should be rebuilt.

HTH
[G1 Android Development] RogueCoyote:
So i'm just getting my feet wet with all of this and i'm stuck at the beginning. I'm working with an mms.apk from a theme I downloaded for the SG SII.

Using Apk Multi-Tool I am able to extract the apk. I see the mms.apk folder created within the projects folder. Without making any changes, I press 3 in Apk Multi-Tool to zip the apk, I then move the newly created mms.apk file to the theme folder and zip that back up. After flashing, the text messaging app no longer works. When i click it says "Application not found."

I have tried both signed and unsigned without any changes but it's still not working. What am i doing wrong? What is the proper way to zip the apk back up?

Thanks any help is appreciated.
[G1 Android Development] aaron.a:
thanks! i'll give it a shot. =)
[G1 Android Development] julianpaul:
Links on first page are dead, can someone mirror please?

Edit: Shoulda googled before asking. http://apkmultitool.com/?q=node/5
[G1 Android Development] wardfan220:
I updated the link in the first post. :)
[G1 Android Development] GaboWinter:
Help a Noob

Hi guys, i'm really noob in this issue of modify the .apk but i really want to learn :) I'm running Linux and complete the instalation of all the tools right now, my question is:

Why always that i'm trying to decompile some app like settings or phone give me errors like this:

Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00

at org.jf.dexlib.DexFile.<init>(DexFile.java:377)

at org.jf.dexlib.DexFile.<init>(DexFile.java:274)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)

at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)

at brut.apktool.Main.cmdDecode(Main.java:120)

at brut.apktool.Main.main(Main.java:57)

---------------------------------

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f0a000e dimen/status_bar_icon_drawing_size, config=-v13

at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)

at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)

at brut.androlib.Androlib.getResTable(Androlib.java:44)

at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)

at brut.apktool.Main.cmdDecode(Main.java:120)

at brut.apktool.Main.main(Main.java:57)

Thanks in advance!
[G1 Android Development] cturcu2004:
Hi. I'm trying to decomplie and complile Phone.apk.

With Apk Manager 5.0.2, I can decompile and recompile it, but itdoes not work on the phone. I get an error when opening the phone app.

With Apk Multitool, I can decompile it, but I get the folowing error when compiling.

I have Java, Java JDK and Android SDK installed, and path for java set.

What am I doing wrong?
[G1 Android Development] officiallyme:
solved it myself :)
[G1 Android Development] officiallyme:
and solved it also. system path wrong
[G1 Android Development] johnny quest:
Having problems decompiling my apk's. I'm using the 5.02 version and I have my skin apk in the "place-apk-here-for-modding" folder then I try to drag the "com.htc.resources.apk" file to the open cmd window but nothing happens. please help. don't know if my variables are even correct. I don't know where to look for that.
[G1 Android Development] Ajthescot:
Don't need the resources for skins mate.
[G1 Android Development] swap.blue:
i have done wat u said but "adb was not found error comes"
[G1 Android Development] mattmanwrx:
Maybe make a copy of adb from platform-tools and add it to tools.. I think APK manager looks there for it...
[G1 Android Development] exb0:
--2012-03-31 11:15:33-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'

0K 100% 1.85M=0s

2012-03-31 11:15:33 (1.85 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
'""platform-tools"\adb.exe"' is not recognized as an internal or external command,
operable program or batch file.
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Junyu\AppData\Local\Temp\APKTOOL6991191615709474251.tmp, -x, -I, C:\Users\Junyu\apktool\framework\1.apk, -S, C:\Apk tool\projects\ics.apk\res, -M, C:\Apk tool\projects\ics.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Junyu\AppData\Local\Temp\APKTOOL6991191615709474251.tmp, -x, -I, C:\Users\Junyu\apktool\framework\1.apk, -S, C:\Apk tool\projects\ics.apk\res, -M, C:\Apk tool\projects\ics.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more

Hey guys, I have that error when I try to recompile my apk. It's a cm7 apk so it should have no problems, well it didnt with apktool. Any ideas on how to solve it?
[G1 Android Development] bjarnia:
Hey

This is my 2nd time attempting to use this tool, last time was about a year ago, and I'm now getting the exact same error I was stuck on last time.

My APK's always end up with incorrect folder structure.

The root of the original APK contains the usual AndroidManifest.xml, res, assets and more, but in my new APK, zipped with this tool, contains all of that inside a "projects" folder. This results in an error when trying to install it:

file 'place-apk-here-for-modding/signedcom.mint-2.apk' does not contain AndroidManifest.xml

I was attempting to follow the instructions from here: http://xdaforums.com/showpost.php?p=8450650&postcount=25

although I have not yet made any actual changes to the images, I'm just trying to get the workflow down first.
[G1 Android Development] brsingr:
Age of zombies modding

I want to mod Age of Zombies so I can increase the ammo of weapons and the rate of fire. I came across this program and thought it would do the trick.

Can someone direct me to a tutorial on how to do this please? Google doesnt help for a can of beans and the search feature here doesnt really help much either.

Ive found the file i want to mod (common0_weapons.xml in the assets\common0\xml\) but im pretty much stuck from there (sorry I'm new to modding apks :()

Im using Windows Version 1.0.2
[G1 Android Development] TheWenger:
Hi guys,

I'm getting a decent amount of errors just trying to decompile a framework-res.apk. I have a folder set up with apktool, the .apk, and it also has adb in it. I have the SDK all set up and installed also.

When I run the script I get the:

Adb was not found, you will not be able to manipulate the files on your phone
Press any key to continue . . .

I hit enter and set the current project. When I go to decompile with option 9, I get an error that tells me to look at the log file:

--------------------------------------------------------------------------
|Sat 04/21/2012 -- 0:42:29.65|
--------------------------------------------------------------------------
The system cannot find the path specified.
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
Error: Unable to access jarfile platform-tools\apktool.jar
The system cannot find the path specified.
The system cannot find the file signer.
--------------------------------------------------------------------------
|Sat 04/21/2012 -- 0:44:11.61|
--------------------------------------------------------------------------
The system cannot find the path specified.
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
The system cannot find the path specified.

I can't actually open the log file using option 24 because Windows gives me this error:

Windows cannot find 'signer'. Make sure you typed the name correctly, then try again.

Any help would be hot. I'm just starting to try to get involved in some ROM theming just for fun and I've banging my head against the wall on this one for a couple days now.

Thanks
[G1 Android Development] Ajthescot:
You need to set your apkmanager to your paths .

How ? you ask .

Search this thread on how to .I have wrote it more than once and many others .

Or

Check this op of this thread

http://xdaforums.com/showthread.php?t=1320891

You couldnt get any more help ,ask us anything theme related .

+

More guides than you could shake a stick at .

No trees were harmed in the making of this msg .

an astonishing number of electrons ,however,were terribly inconvenienced
[G1 Android Development] anthraxter:
Fatal error: Cannot redeclare user_delete() (previously declared in /home/apkmulti/public_html/modules/user/user.module:1649) in /home/apkmulti/public_html/phpbb3/includes/functions_user.php on line 603
[G1 Android Development] HITSY:
The link is not working !! Any one can mirror it plzz ??
[G1 Android Development] playingbball20:
I found this online searching

http://www.mediafire.com/?k1f8g523k9k0a97
[G1 Android Development] supetawesomedude:
thank you so much for that!
[G1 Android Development] antny:
The website is back up! Good thing too because I was gonna need some more help with this thing soon enough.
[G1 Android Development] Ajthescot:
put a copy of your framework-res into the other folder .

open a command prompt to that folder (hold shift right click ) if on windows 7/vista

enter this

java -jar apktool.jar if framework-res.apk

then try using the tools

should only have to do it the once unless you change roms .ie ginger to ics
[G1 Android Development] maped:
Now I deleted everything (sdktool, Java developer, Java and apkmanager) to do a very very clean install because the problem is in my computer sure (old Java version installed :confused: or not correct path...and after I check if in the path there's a space and I change it with _)

I want only a center clock in my ics oxygen AOSP rom and I have to do it, is a challenge for me ;).

Thanks bro for your support and for your fantastic work ;)

Inviato dal mio Nexus S con Tapatalk 2
[G1 Android Development] Ajthescot:
I have a tutorial on how to here.

It's for windows 7.

Also check the first Page of that thread we give loads of help and tutorials.

http://xdaforums.com/showthread.php?p=25312978
[G1 Android Development] maped:
After a clean install works all properly :) :thumbup:

I did nothing special. Perhaps it was the old versions of java though you were using the 1.6, or path not correct :o

The problem when you have an error is certainly in the not correct configuration in the PC, it's great apk manager!!!!

This is one of my last work :D
[G1 Android Development] trislr:
i think too. i download java from http://java.com/en/download/index.jsp

it version 1.6. i can download new version from where?

i try to fix adb. i hope it run this time. :D. i like center clock same u. :D.

---------- Post added at 03:02 PM ---------- Previous post was at 02:39 PM ----------

i install sdk. i set the path. but it" can't run aapt.exe" how i fix it??

please help me.

i'm from vietnam, srr my english
[G1 Android Development] maped:
the path have a correct directory? This is my path for example

C:\Program Files\Android\android-sdk\platform-tools;C:\Program Files\Java\jre6\bin
[G1 Android Development] trislr:
i got it, my path is wrong. :D

thank u so much.

again thank u. :D
[G1 Android Development] maped:
Perfect bro :):thumbup:
[G1 Android Development] trislr:
:) i have a question. i compile framework.apk but bootloop

1. i decompile famework-res.apk

2. i mod xml in project folder.

2. i complile it. i choose yes-yes.

3. i have unsignedframework-res.apk in moding foder.

4. i rename it like orgirinal apk and copy it into my phone.

5. bootlop. :mad:

what wrong???

thanks for answer.