yashsingh1/xdaforums huggingface dataset:
[Android Software Development] zelendel:
Increase your heap size. I have the same prob with the settings apk. But once I increase the heap size the 128 then it works fine
[Android Software Development] Nightwing0815:
Doesn't work for me... Going to bed now...

ToM
[Android Software Development] reekotubbs:
I am having the same issue and I posted it a few pages back, but no one seems to have the correct answer.

I increased my heap size from 512 to 1024, still no good. I've used apktool, apk edit, and apk manager, and most of the time they work, but with the new 2.08.651.2 I have not been successful at this point.

Any one have a specific framework that works?
[Android Software Development] fitti28:
I am getting this error when trying to decompile the framework-res.apk file.

I am using APK Manager 5.0

Can anyone tell me what might be the issue.

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

|Tue 09/20/2011 -- 19:42:34.35|

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

java version "1.7.0"

Java(TM) SE Runtime Environment (build 1.7.0-b147)

Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

Could Not Find C:\Users\Larry\Desktop\APK Manager 5.0\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk

Could Not Find C:\Users\Larry\Desktop\APK Manager 5.0\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk

I: Loading resource table...

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.
[Android Software Development] zohaib0001:
Thanks Buddy

I got your point

thanks...............
[Android Software Development] reekotubbs:
brut.androlib.err.UndefinedResObject [SOLVED!!!!]

For all those having similar issues like above, this is what I did to get the apk to decompile.

I attempted to pull the framework-res from my phone and use it to decompile the files, and this seemed to be the issue.

1. delete all files in the following folder c:\Documents and Settings\%current user%\apktool\framework\*

2. Pull com.htc.resources.apk from phone

3. Install com.htc.resources.apk to computer with apkmanager

4. now attempt to decompile again.

This worked because apktool already has the framework-res.apk integrated in it.

Hope this helps someone.
[Android Software Development] Nightwing0815:
Question to step #2 & #3: How can i do this? (using CM7r2 HBOOT).

ToM
[Android Software Development] reekotubbs:
Not sure on the custom rom you are on, but it should be the same,

for #2 you can use adb to pull com.htc.resources.apk from the system/framework/ directory or you can locate the file by using root explorer or es explorer and transfer the file by bluetooth or data cable.

for #3 in cmd window change directory to the location of the apktool.bat, which in apk manager it is located in the "other" folder. Next run this command "apktool if com.htc.resources.apk".
[Android Software Development] Nightwing0815:
Thanks for explaining, but i can't get it to work, same errors... :confused:

stupid...

ToM
[Android Software Development] mahleek20:
How would I undo #3 because not its not doing anything at all. It just hangs.
[Android Software Development] dancer_69:
I have this problem too, I downloaded the latest version I found on first post but it didn't change anythink. Whatever option I choose ask 22 option and when I input 22, asks for a project number but no number appears. I put on projects folder some apks too, but still no number appears.
[Android Software Development] raziel23x:
There can be no spaces what so ever in your file paths

best place to do this is extract all the files in for example

C:\APK_Manger

run the script

and it works just fine for me using XP

---------- Post added at 08:40 PM ---------- Previous post was at 08:37 PM ----------

I have a TEST CASE EXE Version that if anyone cares to test it out

remember some of the scripting will not function if there is a space in the file path so please make sure to extract the files like the example below

C:\APK_Manager

Here is the TEST CASE
[Android Software Development] abbas:
Can we have a different mirror please? It is almost impossible to download from this site.
[Android Software Development] dancer_69:
I had a space on APKManager folder, but after I changed and tried again I still have this issue.

I'm using windows 8 Developer Preview though and maybe the issue come from this. It works fine on linux distros though.

EDIT:

For some(maybe permissions) reason needs to be on windows disk and not in some other.

I Copied to this disk and now works.
[Android Software Development] kefallo:
I've tried and tried but can't sign apk. Here's my error:

|23.09.2011 -- 12:50:42,61|

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

java version "1.6.0_26"

Java(TM) SE Runtime Environment (build 1.6.0_26-b03)

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

C:\apkmanager\place-apk-here-for-modding\../place-apk-here-for-modding/signedswype.apk Bulunamad

C:\apkmanager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedswype.apk Bulunamad

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Loading resource table from file: C:\Users\THE DOCTOR\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

I: Copying libs...

I: Building apk file...

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

at java.util.Arrays.copyOf(Unknown Source)

at java.io.ByteArrayOutputStream.write(Unknown Source)

at java.util.zip.ZipOutputStream.write(Unknown Source)

at com.android.signapk.SignApk.copyFiles(SignApk.java:405)

at com.android.signapk.SignApk.main(SignApk.java:473)
[Android Software Development] adude247:
Anyone have any luck decompiling the new google maps apk....
[Android Software Development] waterpolo:
same question for the new market :(
[Android Software Development] zzkonzz:
Sorry for the noob question? but I have read all 11 pages.

How or where do I set the path for apkmanager to find Java?

I am using windows7 and am confident that java is available.
[Android Software Development] raziel23x:
Have you made sure you have the latest version installed as well as the most recent developers version installed and them installed correctly?

Because I have tested this on both my xp machine as well as my win 7 ultimate machine
[Android Software Development] WhiteReign:
Its not seen my JAVA I now I have to edit some thing but forgot. Can any one help me here?

LOL I got it now. Thanks any ways
[Android Software Development] raziel23x:
Like the post above have you made sure you have both the latest version of java and the developers version as well installed correctly? Are they paths correct in system eviorment set correctly? Are you running it in admin mode?
[Android Software Development] adude247:
So I'm guessing no help with google maps or the new market huh?...
[Android Software Development] raziel23x:
I have not done any testing yet with them yet.

I have been busy with other projects.

I am planning on converting apk manager into a python script program and combine both the linux and windows versions since python is cross platform.

I should have a alpha build soon as I finish reading the python tutorials.

And researching differences in shell/bash script and python script and then I may not change anything in case python rout does not make things easier.

I am planning on compiling a custom build of apktool with the recent github source.

Hopefully this may fix some bugs.

There is also a few ideas I am planning on changing as well
[Android Software Development] adude247:
So will the new thing work like apk manager....
[Android Software Development] ghadap:
Im quite confuse.. can i deodex an app (apk and odex file) from an Eclair phone, and then install it into my Froyo phone? In my situation, Garmin-Asus apps, copy it and install into my Optimus 2x.. :-?
[Android Software Development] waterpolo:
You can use the HTC Kitchen for deodexing
[Android Software Development] geokilla:
Hey guys, I already have Java 6 Update 26 installed, but I keep on getting the following error:

--------------------------------------------------------------------------
|25/09/2011 -- 1:28:10.17|
--------------------------------------------------------------------------
'java' is not recognized as an internal or external command,
operable program or batch file.
'java' is not recognized as an internal or external command,
operable program or batch file.

I see that you have to set a path for java. How do I do that?
[Android Software Development] raziel23x:
Well The plan is to design a Graphical GUI for APK Manager writing it in Python to make it more newbie Friendly

Also the redesign will also allow us to combine both the windows version and the linux version into one package instead of making two separate scripts Which will help with Development of the application.

I am just running into road blocks finding a suitable Graphical GUI Editor to test the design and help development run faster
[Android Software Development] maddoggin:
keep getting this error even after installing framework resources pleasehelp im trying to decompile settings.apk

|Mon 09/26/2011 -- 17:36:49.10|
--------------------------------------------------------------------------
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)
Could Not Find C:\Users\maddoggin\Desktop\EG30_deodexed\New folder\New folder (2)\place-apk-here-for-modding\../place-apk-here-for-modding/signedSettings.apk
Could Not Find C:\Users\maddoggin\Desktop\EG30_deodexed\New folder\New folder (2)\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSettings.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\maddoggin\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\maddoggin\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 3
at java.lang.String.charAt(Unknown Source)
at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(ResXmlEncoders.java:165)
at brut.androlib.res.xml.ResXmlEncoders.enumerateNonPositionalSubstitutions(ResXmlEncoders.java:142)
at brut.androlib.res.data.value.ResStringValue.encodeAsResXmlValue(ResStringValue.java:45)
at brut.androlib.res.data.value.ResArrayValue.serializeToResValuesXml(ResArrayValue.java:55)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
[Android Software Development] Shizlak:
Multiple resources?

I'm trying to Decompile (9) the Google Maps APK, (using 5.02) and I get this:

Then in projects\com.google.android.apps.maps-2.apk\ I get a folder called "Smali" and about 200 folders named "A, a.2, aA, aa.2, aB, ab.2" etc etc.

Help?
[Android Software Development] raziel23x:
You extracted apk manager into your android sdk folder? Besides that I have had a issue with this problem using apktool with system apps.

I will have to look over at apktool google groups to see if anyone has a answer for this as this looks to be a issue with apktool not apk manager.
[Android Software Development] maddoggin:
can i get some help with this please im still having troublw same error!!!
[Android Software Development] waterpolo:
Try to copy the apk manager folder in the drive root (without spaces), ie

C:\apk_manager\
[Android Software Development] maddoggin:
thanks man that worked lmao i been struggling with this for days thank you!!!:)
[Android Software Development] moccor:
Can someone tell me where this apk manager should be located? And what are some requirements to have it working perfectly? I keep getting dumb errors and its frustrating... I decompiled a apk to edit a XML, and it won't let me re-compile it.
[Android Software Development] waterpolo:
Which app?

Can you post the error log.
[Android Software Development] moccor:
It's SwiftKey. I'm decompiling it to change the keyboard font color, but upon decompiling, I get this error.

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

|Fri 09/30/2011 -- 13:09:34.59|

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

java version "1.6.0_26"

Java(TM) SE Runtime Environment (build 1.6.0_26-b03)

Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

Could Not Find C:\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSwiftKey-finished-KEEP.apk

Could Not Find C:\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSwiftKey-finished-KEEP.apk

I: Baksmaling...

I: Loading resource table...

W: Skipping "android" package group

I: Loaded.

I: Loading resource table from file: C:\Users\MOCCOR\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 1

at java.lang.String.charAt(Unknown Source)

at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(ResXmlEncoders.java:165)

at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitutions(ResXmlEncoders.java:138)

at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(ResStringValue.java:63)

at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(ResScalarValue.java:65)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)

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

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

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

Apkmanager is on the root of the C:, and I left it with it's default name. and also the android-sdk-windows is on the root of C:.
[Android Software Development] mishok_006:
moccor

apktool1.4.2.269870b.jar

Change the in a folder other/apktool.jar
[Android Software Development] ghadap:
Doesnt say support Garmin-Asus A10.. hurmm.. :-?
[Android Software Development] WhiteReign:
is there an eazy way to just pull from the phone and replace the systemui.apk when i use root exporer it tells me the file is read only and i am not sure how to change that.
[Android Software Development] zelendel:
Look at the top of root explorer when in the system directory and hit the button to change read only to Rwanda and write
[Android Software Development] Devildog8791:
If the rom that I am working on has -v4 (drawable-v4, drawable-hdpi-v4) folders in framework-res.apk, how can I keep from getting duplicate folders when I recompile?
[Android Software Development] Lit:
Crappy filejungle.com wont give a file and clear my timer to over 900

Apk_Manager_5.0.2.zip

Windows : (5.0.2)

mirror http://www.multiupload.com/BMIN4NF6TL
[Android Software Development] WhiteReign:
"btn_default_small_normal.9.PNG" The Patch 9 files are killing me. I cant use APK Manager if I change any one them. Is there a way to change them and not get errors?
[Android Software Development] robm1911:
Are you trying to edit the images or replace them???
[Android Software Development] raziel23x:
Have you tried using the .9.png patcher that is in the android sdk there is a tutorial over on the android sdk devlopers website at android.com
[Android Software Development] ivicask:
Guys i need help im going crazzy, was using 5.0.2 version for some time without problems. Than it just stoped working for no reason.

java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
Could Not Find C:\apk_manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\apk_manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
The directory is not empty.
Could Not Find C:\apk_manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\apk_manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
The system cannot find the file specified.

Getting this error code for whatever apk i try to compile back.

All my variables are working(adb,java,zipalign everything),i tryed moving from E: disk (where it was originaly) to c: root, but still doesnt help...Re-downloaded apk manager, even reinstalled ADB and java...

Edit: It only happens when i delete resources.arsc in keep folder when it asks me, funny thing i have done this for 30 times over few last weeks on same file while testing something, now it doesnt work on any apk...

So why does sudenly tells me The system cannot find the file specified when i delete resources.arsc when im supposed to do it and it was working before..?
[Android Software Development] mishok_006:
moccor

other/aapt.exe

apktool1.4.2.269870b.jar

Change the in a folder other/apktool.jar

:)
[Android Software Development] Savetheknot:
Can someone help me? Seems like I have a TON of issues.

Here's my log...
[Android Software Development] fragargon:
hi,

I m new to this.

apk manager works.

It can decompile a framework-res-apk

I can mod \value\arrays.xml

It can compile the file mentionned but I m wondering why the file is halfweigh.

orginal framework is 6336 KB modded framework is 3499 KB.

I try two different method.

at the end of recompliling it asks if system, I strikes no and afterwood select the unsigned project to zipalign but fails with a warning... keep folder deleted... but there is no keep folder no way out

so i try a second method at the end of recompiling i strike yes find a keep folder let everything except arsc file coz only modded a xml file.

select unsigned project to zipalign but fails

here is the log of last attempt

--------------------------------------------------------------------------
|mer. 05/10/2011 -- 17:22:26,00|
--------------------------------------------------------------------------
java version "1.6.0_27"
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode, sharing)
Could Not Find C:\apkmanager502\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\apkmanager502\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
The system cannot find the file specified.
Could Not Find C:\apkmanager502\place-apk-here-for-modding\signedunsignedframework-res.apk
Could Not Find C:\apkmanager502\place-apk-here-for-modding\unsignedunsignedframework-res.apk
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.

sorry if it sounds noob, this is new and try to understand why it fails.

I already have several tried and search the web or this thread aswell the apkmanager 4.9 ' s thread but did not find revelant respinse.

thanks for your help
[Android Software Development] mishok_006:
Delete your current project folder SwiftKey and decompile. With files that I gave you. aapt.exe

decompiling SwiftKey

I: Baksmaling...

I: Loading resource table...

W: Skipping "android" package group

I: Loaded.

I: Loading resource table from file: E:\Users\Михаил\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

compilation SwiftKey

I: Smaling...

I: Building resources...

I: Copying libs...

I: Building apk file...

Done

:)

Sorry for my bad english..
[Android Software Development] moccor:
This is the new error I get when using both files to decompile :(. haha.

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

|Wed 10/05/2011 -- 12:11:05.93|

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

java version "1.6.0_26"

Java(TM) SE Runtime Environment (build 1.6.0_26-b03)

Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

Could Not Find C:\android-sdk-windows\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedSwiftKey.apk

Could Not Find C:\android-sdk-windows\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSwiftKey.apk

I: Baksmaling...

I: Loading resource table...

W: Skipping "android" package group

I: Loaded.

I: Loading resource table from file: C:\Users\MOCCOR\apktool\framework\1.apk

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 1

at java.lang.String.charAt(Unknown Source)

at brut.androlib.res.xml.ResXmlEncoders.findNonPositionalSubstitutions(ResXmlEncoders.java:165)

at brut.androlib.res.xml.ResXmlEncoders.hasMultipleNonPositionalSubstitutions(ResXmlEncoders.java:138)

at brut.androlib.res.data.value.ResStringValue.serializeExtraXmlAttrs(ResStringValue.java:63)

at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(ResScalarValue.java:65)

at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)

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

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

at brut.apktool.Main.main(Main.java:57)
[Android Software Development] ryanpl:
<--- Android Noob here with a question. Using your apk manager would I be able to take a component from one program and add it to another? I love the way go laucher handles widgets, long press and you can either resize or delete but Zeam is way smaller on my Nook. So I'd like to take the widget managment from go launcher and add it to zeam. Any advice folks?