Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)

Do you find the latest beta functional ?

  • Yes

    Votes: 1,105 74.6%
  • No

    Votes: 376 25.4%

  • Total voters
    1,481
Search This thread

gregbradley

Retired Forum Moderator
Got problems ?

1. Make sure your path has no spaces
2. Your filename has no wierd characters
3. Java/adb are in your path
4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
6. Look at the log to know whats happening
7. If all else fails, post as much info as possible and we will try to assist you.

I have adb and java on my laptop.
I can use apkmanager to extract the apk and to edit image files, also to rezip them.
However, when i first run the script i get
Code:
java was not found, you will not be able to use apktool or sign apk,s

The problem is that i want to decompile an apke to get at the xml files and its not letting me.
I was wondering what the troubleshoot point
make sure you have java/adb in your path
means?

I have my sdk installed on my c drive
C:\Android

but apk manager here

G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9

but when i put it into the C:\android\apkmanager it still doesnt work...

any help would be appreciated
 
Last edited:

Ajthescot

Senior Member
May 20, 2010
1,145
1,963
I have adb and java on my laptop.
I can use apkmanager to extract the apk and to edit image files, also to rezip them.
However, when i first run the script i get
Code:
java was not found, you will not be able to use apktool or sign apk,s

The problem is that i want to decompile an apke to get at the xml files and its not letting me.
I was wondering what the troubleshoot point means?

I have my sdk installed on my c drive
C:\Android

but apk manager here

G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9

but when i put it into the C:\android\apkmanager it still doesnt work...

any help would be appreciated

Look for my posts in this thread mate.
I have written a fix a few times,
Also posted a link to my tutorial with screenshots. Just a few days ago.
You need to set your addresses for tools, java and sdk, into you class paths.


Sent from my HTC EVO 3D X515m using Tapatalk 2
 
  • Like
Reactions: gregbradley

gregbradley

Retired Forum Moderator
Look for my posts in this thread mate.
I have written a fix a few times,
Also posted a link to my tutorial with screenshots. Just a few days ago.
You need to set your addresses for tools, java and sdk, into you class paths.


Sent from my HTC EVO 3D X515m using Tapatalk 2

OK, found that and now have the paths set so that I dont get the jave not found error.

However, when I choose 9 to decompile the framework-res.apk I get a whole bunch of errors saying things like
Code:
|04/12/2011 -- 13:50:43.76|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
--------------------------------------------------------------------------
|04/12/2011 -- 14:11:48.25|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
--------------------------------------------------------------------------
|04/12/2011 -- 14:12:53.65|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
--------------------------------------------------------------------------
|05/12/2011 -- 12:16:08.96|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
--------------------------------------------------------------------------
|05/12/2011 -- 12:18:52.54|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
--------------------------------------------------------------------------
|05/12/2011 -- 12:20:00.86|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
--------------------------------------------------------------------------
|05/12/2011 -- 20:12:14.56|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
--------------------------------------------------------------------------
|05/12/2011 -- 20:17:39.35|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
--------------------------------------------------------------------------
|10/12/2011 --  9:30:59.11|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|19/12/2011 -- 16:51:34.50|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|19/12/2011 -- 16:51:51.60|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|19/12/2011 -- 16:53:12.53|
--------------------------------------------------------------------------
'mode' 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.
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk

'java' is not recognized as an internal or external command,
operable program or batch file.
--------------------------------------------------------------------------
|18/03/2012 -- 18:29:50.46|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|18/03/2012 -- 18:30:41.03|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|18/03/2012 -- 18:31:14.18|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|21/03/2012 -- 18:33:48.60|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|23/03/2012 -- 19:28:33.78|
--------------------------------------------------------------------------
'mode' 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.
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk

'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.
'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.
--------------------------------------------------------------------------
|23/03/2012 -- 19:30:55.25|
--------------------------------------------------------------------------
'mode' 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.
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk

'java' is not recognized as an internal or external command,
operable program or batch file.
--------------------------------------------------------------------------
|04/04/2012 -- 17:56:21.98|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|11/05/2012 -- 11:49:41.13|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|14/05/2012 -- 15:21:50.89|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|14/05/2012 -- 15:29:37.78|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|14/05/2012 -- 15:40:00.94|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|14/05/2012 -- 15:40:15.26|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|14/05/2012 -- 17:41:20.66|
--------------------------------------------------------------------------
'mode' 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.
--------------------------------------------------------------------------
|14/05/2012 -- 17:49:09.60|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
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)
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk

I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01040341 string/web_user_agent_target_content, config=[DEFAULT]
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Sou
rce)
        at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
        at brut.androlib.Androlib.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.decode(Unknown Source)
        at brut.apktool.Main.cmdDecode(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01040341 string/web_user_agent_target_content, config=[DEFAULT]
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
        at brut.androlib.res.AndrolibResources.installFramework(Unknown Source)
        at brut.androlib.Androlib.installFramework(Unknown Source)
        at brut.apktool.Main.cmdInstallFramework(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)
--------------------------------------------------------------------------
|14/05/2012 -- 17:50:33.55|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
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)
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk

I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01040341 string/web_user_agent_target_content, config=[DEFAULT]
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Sou
rce)
        at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
        at brut.androlib.Androlib.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.decode(Unknown Source)
        at brut.apktool.Main.cmdDecode(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find G:\PortableApps\PortableApps\Phone\APK Manager\apk_manager_4.9\pl
ace-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk

I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01040341 string/web_user_agent_target_content, config=[DEFAULT]
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Sou
rce)
        at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
        at brut.androlib.Androlib.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.decode(Unknown Source)
        at brut.apktool.Main.cmdDecode(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)
Press any key to continue . . .

any help?
 

Ajthescot

Senior Member
May 20, 2010
1,145
1,963
Try reducing you path to apkmanager.
G:\apkmanager
Or something like that,
Then create a shortcut to where ever you want it.
Place a copy of framework-res.apk in your other folder in apkmanager.
Open a command prompt to the other folder. Type "apktool if framework-res.apk " without the quotes.

Sent from my HTC EVO 3D X515m using Tapatalk 2
 

gregbradley

Retired Forum Moderator
Try reducing you path to apkmanager.
G:\apkmanager
Or something like that,
Then create a shortcut to where ever you want it.
Place a copy of framework-res.apk in your other folder in apkmanager.
Open a command prompt to the other folder. Type "apktool if framework-res.apk " without the quotes.

Sent from my HTC EVO 3D X515m using Tapatalk 2

I had already moved apk manager to the c drive where i have installed adb.

Not sure what you mean about open a command prompt to the other folder..i hope you mean

Code:
cd c:\.......\other

anyway, this is what i got

Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\spareLT>cd C:\Android\apk_manager_4.9\other

C:\Android\apk_manager_4.9\other>apktool if framework-res.apk
'apktool' is not recognized as an internal or external command,
operable program or batch file.

C:\Android\apk_manager_4.9\other>


EDIT
I changed the code to
Code:
apktool.jar if framework-res.apk
and it did something, but then the script.bat in the apkmanager folder just opens and closes with about 1 second when i try to open it


EDIT2
I just tried to decompile another apk and it worked fine. I have read here that there is problems with framework-res.apk...
If i post it here can you see what the problem is?

I am trying to edit a bool to turn crt screen off animation on in Stock ICS rom from SE....aparently its only one bool that needs changing from false to true, but this is a royal pain inthe ar*e to decompile.....
 

Attachments

  • framework-res.apk
    6.8 MB · Views: 12
Last edited:

tsakali

Member
Jul 18, 2010
17
4
hello all.k I'l just ost this here cause I get no help under QnA's:

I've been reading threads about pulling, pushing, editing, unpacking, signing, and all that for days now, but I still can't get my edited framework-res.apk to actually take effect .

I'm just trying to change some of the system notification icons, but when I replace the .apk, and reboot, the changes never take place. what am I doing wrong?

also apk tool CANNOT recompile my framework-res.apk, and since I'm only doing .png changes (not a 9.png mind you) I just open the original framework apk and overide the pngs that I want... at that point, I dont resign or anything...

I am rinning Swagged out Stock based on 2.3.5
kernel: 2.6.35.10-g4b48446
build: SOS N
software: 2.0.9\4.67\ODEX

and using clockworkMod 5.0.2.2


-I've tried just using root explorer to overide the original and permissions, and after I reboot no changes took place.
-I've tried adb pushing to the framework folder (but with not fancy permission commands, could that be the issue?) and then wiping dalvik(sp?) cache but no changes took place.
-I've also tried using an update.zip file but i can't figure out the actual code that needs to go into the "update-script" file.

Anyway, is there an obvious reason why I'm failing? I had success with editing and updating other .apk files (my music.apk for example works fine when I decompile ... compile.... and sign)

Also, I heard that starting with an OEM framework-res.apk helps...I've tried that with an eom 2.3.5 version but no luck. ..anyone got a link on a gingerbread based one? or should I download an entire rom and just extract it?

thanx for any help!
 
Last edited:

KBizzle

Senior Member
Oct 30, 2008
4,200
4,410
Knoxville
Ok, APK manager seems to be the only tool that works for me to decompile and compile framework-res. Doesnt work for any other apk. Not a problem though because I can use a different tool that works fine. My problem is that when I make xml edits, they alway revert back to the original xml codes. I have tried deleting the folder that i made my edits in in the keep folder, didnt work. I also tried deleting the whole res folder, didnt work. I was hoping someone could tell me what I am doing wrong so that the xml edits stick. Thanks.

EDIT: NVM. Deleting the resources.arsc from the apk before recompile worked. But the funny thing is that I only changed the Colors.xml but it caused my lockscreen to appear as the wrong dpi. Its too large and cut off. Anyone know why the Colors.xml would cause this?
 
Last edited:

Ajthescot

Senior Member
May 20, 2010
1,145
1,963
Ok, APK manager seems to be the only tool that works for me to decompile and compile framework-res. Doesnt work for any other apk. Not a problem though because I can use a different tool that works fine. My problem is that when I make xml edits, they alway revert back to the original xml codes. I have tried deleting the folder that i made my edits in in the keep folder, didnt work. I also tried deleting the whole res folder, didnt work. I was hoping someone could tell me what I am doing wrong so that the xml edits stick. Thanks.

If its layouts or drawables edits ,delete those folders in keep.

If its values edits, delete the resources.arsc file in keep

Smali edits delete the classes.dex file in keep

Sent from my HTC EVO 3D X515m using Tapatalk 2
 
  • Like
Reactions: KBizzle

KBizzle

Senior Member
Oct 30, 2008
4,200
4,410
Knoxville
If its layouts or drawables edits ,delete those folders in keep.

If its values edits, delete the resources.arsc file in keep

Smali edits delete the classes.dex file in keep

Sent from my HTC EVO 3D X515m using Tapatalk 2

Thank you. Ok, I think it may be the resources.arsc that is being created at the time of compile. I took the framework-res.apk that caused the lockscreen sizing issue and replaced the resources with the one from the original apk, it fixed the resizing but I lost my edits to the colors.

I only made hex edits to the colors.xml only. There werent any sizing code lines in it. I am retrying right now to see if it was just a fluke. If you have any idea why this would happen, your help is much appreciated.

EDIT: Yeah, tried again. Same thing. Im not sure whats causing it. I am completely replacing the whole xml file from a theme that isnt for my device but like i said, there arent any defining items in the xml that would cause this. Ill try make the edits one by one to the original xml and see if it does it again.

EDIT2: Nope, still skews the lockscreen. Ill post an image.

4c49b0ec-8c41-be37.jpg


EDIT3: So I am trying to single out what is happening. I went ahead and just decompiled/compiled the framework without making a single edit. I only deleted the resources.arsc before compile. It still does it. Im at a loss right now but I am going to keep trying.
 
Last edited:

maped

Senior Member
Mar 29, 2005
494
312
Rovigo
Thank you. Ok, I think it may be the resources.arsc that is being created at the time of compile. I took the framework-res.apk that caused the lockscreen sizing issue and replaced the resources with the one from the original apk, it fixed the resizing but I lost my edits to the colors.

I only made hex edits to the colors.xml only. There werent any sizing code lines in it. I am retrying right now to see if it was just a fluke. If you have any idea why this would happen, your help is much appreciated.

EDIT: Yeah, tried again. Same thing. Im not sure whats causing it. I am completely replacing the whole xml file from a theme that isnt for my device but like i said, there arent any defining items in the xml that would cause this. Ill try make the edits one by one to the original xml and see if it does it again.

EDIT2: Nope, still skews the lockscreen. Ill post an image.

4c49b0ec-8c41-be37.jpg


EDIT3: So I am trying to single out what is happening. I went ahead and just decompiled/compiled the framework without making a single edit. I only deleted the resources.arsc before compile. It still does it. Im at a loss right now but I am going to keep trying.

I'm going crazy!!

I tried them all really, decompiled and recompiled 1.4.2 with apktools apktools with 1.4.3, I tried all the possible tools on xda but nothing doing, the framework-res.apk not recompile.

I want to do your own thing, have the lockscreen clock in blue and I think the value to change is http://androidxref.com/source/xref/frameworks/base/core/res/res/values-sw600dp/colors.xml

Can you please tell me how you did (and what) to rebuild the framework-res.apk to achieve your result

With apkmanager 5.0.2 can decompile and recompile the framework res.apk-but once the folder is not decompiled sw600dp-values ​​(as with other versions of apkmanager I could edit the xml file)

It is possible that there is a way, it is 4 days I try and read guides on guides but none share the positive experience with the error plurals. I manually changed all the values ​​in row 79 but to no avail.

EDIT: ieeeaaaah...i've recompiled my framework-res.apk but I have not my lockscreen clock in blue with change framework-res.apk\res\values\colors.xml and I have the same problem of you :(
 
Last edited:

KBizzle

Senior Member
Oct 30, 2008
4,200
4,410
Knoxville
I'm going crazy!!

I tried them all really, decompiled and recompiled 1.4.2 with apktools apktools with 1.4.3, I tried all the possible tools on xda but nothing doing, the framework-res.apk not recompile.

I want to do your own thing, have the lockscreen clock in blue and I think the value to change is http://androidxref.com/source/xref/frameworks/base/core/res/res/values-sw600dp/colors.xml

Can you please tell me how you did (and what) to rebuild the framework-res.apk to achieve your result

With apkmanager 5.0.2 can decompile and recompile the framework res.apk-but once the folder is not decompiled sw600dp-values ​​(as with other versions of apkmanager I could edit the xml file)

It is possible that there is a way, it is 4 days I try and read guides on guides but none share the positive experience with the error plurals. I manually changed all the values ​​in row 79 but to no avail.

EDIT: ieeeaaaah...i've recompiled my framework-res.apk but I have not my lockscreen clock in blue with change framework-res.apk\res\values\colors.xml and I have the same problem of you :(

Just so you know, my clock is blue because it is AOKP and I changed it via rom control settings. I am not sure what edits need to be made for the clock.

I also had to give up on using apkmanager. Search Google for ics apktool.

Sent from my SPH-D710 using Tapatalk 2
 

maped

Senior Member
Mar 29, 2005
494
312
Rovigo
Just so you know, my clock is blue because it is AOKP and I changed it via rom control settings. I am not sure what edits need to be made for the clock.

I also had to give up on using apkmanager. Search Google for ics apktool.

Sent from my SPH-D710 using Tapatalk 2

Now I can recompile my framework-res.apk with apkmanager without error :)...but in all thread I don't have read nothing where is exactly values for change lockscreen color clock/date/network operator in holo blue :(
 

DjSound

Senior Member
Sep 29, 2010
787
890
Hi to all!

I updated ApkManager to latest version but now i have strange error when do batch optimize:

Code:
-------------------------------------------------------------------------- 
|25/05/2012 -- 18:35:01,68| 
-------------------------------------------------------------------------- 
--2012-05-25 18:35:01--  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% 99,1K=0,001s

2012-05-25 18:35:02 (99,1 KB/s) - `apkver.txt' saved [152/152]

Sottodirectory o file projects gi… esistente.
Sottodirectory o file place-apk-here-for-modding gi… esistente.
Sottodirectory o file place-ogg-here gi… esistente.
Sottodirectory o file place-apk-here-to-batch-optimize gi… esistente.
Sottodirectory o file place-apk-here-for-signing gi… esistente.
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing)
Sottodirectory o file optimized gi… esistente.
Impossibile trovare il file - *.9.png


Why?


Thanks all for help
 

ankursharma12

Member
Sep 27, 2010
13
1
Chicago
I tried de-compiling Sygic Aura .apk file, but it's displaying following error. Can you please help?

The system cannot find the path specified.
Could Not Find C:\test_folder\Desktop\Download From Chrome\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged.apk
Could Not Find C:\test_folder\Desktop\Download From Chrome\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-signed.apk
Could Not Find C:\test_folder\Desktop\Download From Chrome\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-unsigned.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x0000000a
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=installLocation, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f040000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x7f020001
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=process, value=0x7f040002
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f040000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=launchMode, value=0x00000002
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=configChanges, value=0x000000a0
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=screenOrientation, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=configChanges, value=0x000000a0
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f040001
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=launchMode, value=0x00000001
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=configChanges, value=0x000000a0
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=minSdkVersion, value=0x00000006
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=maxSdkVersion, value=0x0000000a
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=anyDensity, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=smallScreens, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=normalScreens, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=largeScreens, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f050000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f050001
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f050002
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xfffffffe
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x7f020000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_alignParentRight, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_centerVertical, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f050003
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xfffffffe
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080215 drawable/default_wallpaper, config=-nodpi-v4
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(Unknown Source)
at brut.androlib.res.data.ResTable.getPackage(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)

---------- Post added at 05:25 AM ---------- Previous post was at 05:19 AM ----------

All I am trying to do here is change the AndroidManifest.xml to make by default setup location to external CD card instead of internal to phone memory.


The system cannot find the path specified.
Could Not Find C:\test_folder\Desktop\Download From Chrome\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged.apk
Could Not Find C:\test_folder\Desktop\Download From Chrome\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-signed.apk
Could Not Find C:\test_folder\Desktop\Download From Chrome\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-unsigned.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x0000000a
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=installLocation, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f040000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=icon, value=0x7f020001
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=process, value=0x7f040002
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f040000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=launchMode, value=0x00000002
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=configChanges, value=0x000000a0
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=screenOrientation, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=configChanges, value=0x000000a0
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x7f040001
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=launchMode, value=0x00000001
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=configChanges, value=0x000000a0
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=exported, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=minSdkVersion, value=0x00000006
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=maxSdkVersion, value=0x0000000a
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=anyDensity, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=smallScreens, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=normalScreens, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=largeScreens, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=required, value=0x00000000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f050000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f050001
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f050002
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xfffffffe
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=src, value=0x7f020000
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_alignParentRight, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_centerVertical, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xffffffff
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=id, value=0x7f050003
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_width, value=0xfffffffe
I: Loading resource table from file: C:\test_folder\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_height, value=0xfffffffe
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x01080215 drawable/default_wallpaper, config=-nodpi-v4
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
at brut.androlib.res.AndrolibResources.loadFrameworkPkg(Unknown Source)
at brut.androlib.res.data.ResTable.getPackage(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.decode(Unknown Source)
at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
at brut.androlib.ApkDecoder.decode(Unknown Source)
at brut.apktool.Main.cmdDecode(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 219
    So i have written a simple script to ease the process of editing apks. Got a lot of downloads so thought its in demand :rolleyes:

    Whether you're doing basic image editing or editing the smali or xml files, on average u have to use (Brut.all or JF's smali/baksmali) awesome tool to extract the apk, edit it, then sign the apk and then adb push/install it. This process is quite tiresome if you are testing a method that needs fine tweaking.

    This script should make the process a LOT smoother.
    Theres an option of compiling/signing/installing all in one step :)

    Thanks:
    Goes to Brut.all for his awesome tool.
    Goes to JF for ofcourse, smali/baksmali
    Goes to farmatito for porting this script to linux

    Features:
    - Extract, Zip apk's.
    - Optimize pngs (ignores .9.pngs)
    - Zipalign apks
    - Sign apks
    - Push to specific location on phone
    - Incorporates brut.all's apktool
    - Pull apk from phone into modding environment.
    - Batch optimize apk (Zipalign,optipng,or both)
    - Quick sign an apk (Batch mode supported)
    - Batch Ogg optimization
    - Compression level selector (monitor status above menu)
    - Batch install apk from script (option 16)
    - Logging on/off has been removed. Instead a log.txt is created which logs the activities of the script organized using time/date headers
    - User can change the max java heap size (only use if certain large apks get stuck when decompiling/compiling apks) (Option 19)
    - Improved syntax of questions/answers
    - Error detection. Checks if error occured anytime u perform a task, and reports it
    - Read log (Option 20)
    - U can now set this script as ur default application for apks. When u do, if u double click any apk it will install it for u.
    - Supports batch installation, so if u drag multiple apks into the script (not while its running) it will install them all for u. U can ofcourse drag a single apk as well
    - Added framework dependent decompiling (For non propietary rom apks). (Option 10). Checks whether the dependee apk u selected is correct.
    - Allows multiple projects to be modified, switch to and from.
    - Allows to modify system apk's using apktool but ensures maximum compatibility in terms of signature / manifest.xml
    - Stuff i forgot i guess :p

    Instructions (Windows):
    - Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
    - Run script
    - Minimize the script
    - Edit files inside the project folder
    - Maximize the script

    Instructions (Linux):
    - Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
    - Open terminal and change-directory to apkmanager (Easiest way is to type "cd ")
    - Chmod 755 Script.sh
    - Chmod 755 all files apps inside other folder (thanks for the tip bkmo ;) )
    - Run script by typing ./Script.sh
    - Minimize the script
    - Edit files inside the out folder
    - Maximize the script

    Requirements:
    Java
    Adb

    Future Improvements:
    - Manage multiple simultaneous apk edits (choose which apk to extract/build)
    - Option to optimize the apks
    - Option to adb push to user defined location
    - Other stuff i dont know yet




    Got problems ?

    1. Make sure your path has no spaces
    2. Your filename has no wierd characters
    3. Java/adb are in your path
    4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
    5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
    6. Look at the log to know whats happening
    7. If all else fails, post as much info as possible and we will try to assist you.

    MOD EDIT:
    New DL link from this post
    http://apkmultitool.com
    18
    Hi Download link dont work is there anything you can do to upload some other website or mirrior plzzz.:confused:

    New website http://apkmultitool.com
    7
    No lol i have windows 7, java is just not in ur path.

    Right click my computer, click properties, advanced settings, environment variables, in bottom window scroll to PATH click and edit it, at the end add ;<path to ur bin folder of java>

    so mine looks like
    c:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Droid Explorer\SDK\tools;C:\Program Files (x86)\Java\jre6\bin;C:\Program Files (x86)\QuickTime\QTSystem\
    4
    For people having the:


    The program sox is missing or is not in your PATH,
    please install it or fix your PATH variable

    problem on linux, here's the fix:

    open Ubuntu Software Center and search "sox" without the quotes

    install it

    problem solved. If OP wants to update, it'll help a LOT of people out ;)