yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] TheWenger:
Hi guys. Thanks for all the help.

I'm still having issues with the whole "Error: Unable to access jarfile platform-tools\apktool.jar" deal. I uninstalled and reinstalled all the SDK, I'm on Java7 and I can't really figure it out. My path is also set appropriately for the SDK and for java. I feel like it may have to do with the file structure of everything.

FYI I'm trying to just modify an apk I downloaded, so I'm expecting to get the "adb not found" message since my phone isn't plugged in (by the way, do I have to have my phone plugged in to use apk manager?). The apk is in a folder under my documents. What's the appropriate file structure for this all to work? Do I have to have it in the android or platform-tools folder?

Thanks much.
[G1 Android Development] maped:
I think there's some error in the code you have edit :o
[G1 Android Development] trislr:
but i just delete" swipe screen to unlock" in string.xml.

i have read guide from other topic. they said i delete resource in keep folder.

but i can't find keep folder. :mad:

How do u compile systemUI.apk??? please tell me:D i see center clock in ur post :D
[G1 Android Development] Ajthescot:
Press 11 to compile,

Y then y

Nav to keep folder

Delete resource.Arsc

Hit enter.

Press 8 Push to

system/app/SystemUI.apk

Reboot

Job done
[G1 Android Development] maped:
Go here bro ;)

http://xdaforums.com/showpost.php?p=19760562&postcount=3

On ics you can't delete only one values for have a mod, otherwise you have error when you compile sistemUI.apk ;)

well ask me if you need ;)

________________________________

I have decompiled the file framework.jar, systemUI.jar but I can not find a guide to change the color of the statusbar in lockscreen (and change the color for clock on the lockscreen) .. I wrote all the thread and read every guide now but nothing
[G1 Android Development] trislr:
i see. but i can't find keep folder. i don't why??????:mad:

---------- Post added at 02:50 PM ---------- Previous post was at 02:48 PM ----------

Nav = ???

srr, i am from Vietnam. :D

i can't find keep folder. it do not appear. :mad::mad:
[G1 Android Development] 3rdstring:
The keep folder appears in the same directory as the projects folder when you hit the second Y (and BEFORE you press any key to continue), for example on my pc it's

D:\AndroidTools\apk_manager_4.9\keep

where i make my edits in

D:\AndroidTools\apk_manager_4.9\projects

HTH
[G1 Android Development] maped:
Oh god, this is not a problem of configuration on my PC :o.

For file framework.jar I use baksmali manager and 0 problem to decompile&compile

Now I have to decompile the file framework-res.apk and I have read half thread (only 124 pages :eek: :cool:

I have a folder "other" with apktool.jar and aapt.exe from latest sdk.

I have pull framework-res.apk

I have move framework-res.apk from "place-apk-here-for-modding" to "other"

I have run for "other" folder command java -jar apktool.jar if framework-res.apk (no error)

I have decompile and compile my framework-res.apk without any changes only for test and...

Dont't work :(
[G1 Android Development] xm2406:
error

Always gives error compiling apks >.<
[G1 Android Development] maped:
With all apk or only for framework-res.apk?
[G1 Android Development] xm2406:
all
[G1 Android Development] julianpaul:
Err, dude i really love your signature. Can you make it bigger, brighter and bolder?
[G1 Android Development] xm2406:
XD

alrite

after my lunch xD
[G1 Android Development] Ajthescot:
Post your error log.

Are the apks you are trying to decompile already themed.

There is a lot of zip themers out there.

Decompiling there work cause a lot of errors.

Even HTC hide sneaky little errors in there apks.

Without your error log its just a guessing game mate.
[G1 Android Development] gregbradley:
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

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
[G1 Android Development] Ajthescot:
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.
[G1 Android Development] Ajthescot:
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.
[G1 Android Development] gregbradley:
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

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

anyway, this is what i got

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

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.....
[G1 Android Development] tsakali:
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!
[G1 Android Development] KBizzle:
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?
[G1 Android Development] Ajthescot:
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
[G1 Android Development] KBizzle:
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.

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.
[G1 Android Development] maped:
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 :(
[G1 Android Development] adroid!:
Compiling

i have a probelem compiling my apk. working on framework.apk

here is the log http://dl.dropbox.com/u/54790911/log.txt
[G1 Android Development] KBizzle:
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.
[G1 Android Development] maped:
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 :(
[G1 Android Development] DjSound:
Hi to all!

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

--------------------------------------------------------------------------
|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
[G1 Android Development] BigBearEvo:
unable to download.....do u have a mirror?
[G1 Android Development] nyydynasty:
same here.

update: the link is back online. thanks!
[G1 Android Development] ankursharma12:
http://apkmultitool.com/ site is down. Please help
[G1 Android Development] Komodo Rogue:
Confirmed... I found another site on Google, but that was down too. Anyone have a torrent?
[G1 Android Development] sgrant:
Here are the links:

Linux: http://apkmultitool.com/downloads/apk_manager_linux_5.0.zip

Windows: http://apkmultitool.com/downloads/Apk_Manager_5.0.2.zip
[G1 Android Development] Schmidty850:
Hey, those download links don't work either, or at least they didn't work for me.

Could someone who has these files downloaded please post it on dropbox and provide us with a link please?

Thanks

Update: Nevermind, links are working now
[G1 Android Development] Ajthescot:
Search github for the latest versions when links are down.

Edit

https://github.com/ApkMultiTools/APK-Multi-Tool
[G1 Android Development] WhiteBoy997:
Can someone tell me what this error means????

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:44)

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:128)

at brut.apktool.Main.main(Main.java:65)
[G1 Android Development] izzaeroth:
those with site down issues

try this link

http://apkmultitool.com/?q=node/5
[G1 Android Development] twiice:
Obviously need to update apk managers post issue url, this threads dead!
[G1 Android Development] Ichigo:
I get an error when trying to sign the apk:

Please Help! I was only able to sign 2 apps so far.
[G1 Android Development] Ajthescot:
You need to install a framework ,

Also if you keep getting those heap size errors, option 20 to set a new size
[G1 Android Development] Ichigo:
What do you mean? Where can I download a framework, and what do I increase the size to? I tried to increase the size, but nothing would work.
[G1 Android Development] Ajthescot:
Pull a framework-res.apk from the rom you are building on ,if it's a 3rd party app pull one from and ics rom .

Place it into other

Open a cmd prompt to the other folder

Type apktool if framework-res.apk

Hit enter ,

Tools should work fine .

Memory size is shouldn't complain now but if it does try set to 512 or 1024.
[G1 Android Development] Ichigo:
Ok, I'll try that. I've been using another APK signer, and its worked fine. But it would be a lot nicer if I could use this program because it does it manually.
[G1 Android Development] alkhafaf:
Hello

when I try to decompile SystemUI.apk and the recompile without changes, the file get much smaller (the original is 254 kb without signing, the compiled is 225 without signing)

I have put the framework-res.apk and twframework-res.apk in the folder of apktool/framework/ and renamed them to 1.apk and 2.apk respectively.

this is what I get when decompile then compile: (from the log file)
[G1 Android Development] daemorok:
Attempting to decompile a system app from a custom touchwiz rom.

I have tried using APK Multi-Tool 1.0.5 and Apk_Manager_5.0.2 both in Windows 7 64

APK Multi tool does not display a log file... but this is the log file i get form apk manager.

It fails when choosing option 10 "decompile apk with dependencies"

java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)
I: Framework installed to: C:\Users\Daemorok\apktool\framework\2.apk
I: Baksmaling...
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)

On a side note when using APK Multi Tool, even after installing the framework-res.apk and twframework-res.apk using the setup.bat option 10 still asks me to drag the corresponding framework to the script window.

Decompiling with option 9 and recompiling causes a force close with the apk.
[G1 Android Development] _neutron_:
Edit

Solved
[G1 Android Development] cmajetic:
hey just a question how to start...i installed it and it works, i start it but there are no folders generated, so i cannot do anything, should i create a "projects" folder in C:/APK_MultiTool ??? for a noob the explanation is very poor...

when i drag an apk into it it always asks me for a project number, wtf is this? why do i need it? if i press 23 then insert 1 and do again nothing happens...
[G1 Android Development] jb789:
First, make sure you're using version 1.0.6 & run setup.bat. Second, look in the APK-Multi-Tool.log if things don't work as expected. I don't recall the exact answer, but with a little brains & trial-and-error you can figure out what file it wants in what folder & with what name.
[G1 Android Development] wantowan2:
Dude, they are secretly laughing at us. This thing doesn't work. Maybe extract an apk file but anything can do that. If this was a real app for windows <v.3.x , it would have gui:p
[G1 Android Development] Ajthescot:
heres my copy .latest apktool and aapt included

from here http://xdaforums.com/showthread.php?t=1755243
[G1 Android Development] cmajetic:
thanks this looks a lot easier but how to start? lol please help, i would love to know it one time to make themes and co...
[G1 Android Development] Ajthescot:
If you have the sdk and java installed .

You need to set there paths into your environment variables .

Also you will need to install a framework for what base you are working on.

I have a tutorial in this thread .

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

There is loads of other information there to help you get started.

edit dam tapatalk broke the link

heres update http://xdaforums.com/showthread.php?t=1605509&highlight=help+interactive
[G1 Android Development] QNBT:
I'm having problem decompling the native email app that comes with ICS. Anyone able to help me out?

I've included the "exchange" file as well cause I'm not sure if it useful or not, since it's a part of the email service as well...
[G1 Android Development] ImSherlocked:
Guys we cannot use APK manager directly with stock Jelly bean SystemUI.apk as it is odexed, right?

So what tools do we use to deodex the JB apks?
[G1 Android Development] Bologna:
you can probably use dsixda kitchen

---

@Daneshm90, the next time you update o.p. can you perhaps add in installation for ubuntu

sudo apt-get install sox

it can help someone to avoid asking or searching

anyway, thanks for Apk_Manager 5.0 :)

do not know yet if works with JB system apps...but I hope so ;)
[G1 Android Development] Dj Telo:
Icon in system app.

First of all, thanks for this awesome program! I have already tried to change app's icons with success, excepting system apps.

I have tried to change the camera app icon. I have extracted the app, edited the file in question, pack it again without signing it, put it in a random folder in my SD card and then moving it with a root file explorer to /system/app/.

After rebooting my phone, the icon has changed everywhere. That's good. The thing is that my camera app won't open. The screen turns black and finally a notification saying "app not responding" shows up.

What am I doing wrong?

Thank you!
[G1 Android Development] Ajthescot:
Did you fix permissions before rebooting?

If it's only icons you are changing , try just opening the apk with 7 zip drag the icon to the said folder and push. No need to extract.

Also files like camera, resources have sound files in the raw folder .they can't be compressed or you get fc .

Not sure why the black screen though usually they open but either have no sound or fc. Could be the permissions as mentioned above.Only thing I can think of.

Hope that helps.
[G1 Android Development] Dj Telo:
I had already tried the 7zip thing, but it hadn't worked... But I tried once again and it worked perfectly, so I must have done something wrong the first time. Thanks for the help!
[G1 Android Development] job12345:
dudee
[G1 Android Development] vinodkbishnoi:
recomplied apk not working

Hi

I have decompiled an APK using apktool. And changed one file. now modified files compiled without error. I signed APK with jarsigner then zipaligned that APK. But when I install using adb install I got error "install failed shared user incompatible".

What to do.
[G1 Android Development] Ajthescot:
System apk or 3rd party apk.?

Have you tried extracting your modified apk. And dragging your edited file into an original copy of the said apk with 7zip.

Into the Correct folder that it's.
[G1 Android Development] vinodkbishnoi:
Seems to be good idea...I will try.

And this is a system apk.
[G1 Android Development] Ajthescot:
System apk should be pushed .not installed

Adb push name.apk /system/app

If you didn't already know
[G1 Android Development] Invicta:
Hi there and thank you for your wonderful tool, i need a little help.I have downloaded an ICS rom in zip format. pulled the framework-res.apk and followed the instructions here to

1.decompile

2.make changes in an xml file

3.save the xml file

4.compile the file

Now what i have done is, put the framework-res.apk file into the folder "place-apk-here-for-modding" i then pressed "9" and the apk decompiled. Then i navigate to the xml file i wanted to edit, edit the value i wanted saved it from xml editor and then i want to recompile the apk. I pressed "11" and then replied yes and yes to the next two options. I have just deleted the resources.arsc as the "keep" folder had all files except the one i edited,

but my question is did the script asked me to delete the resources file in case i made changes to the xml files before the creation of the keep folder or after?

Now my next question is, where is my final framework-res.apk file to put it back into the zip file so as to flash the zip in CWM? in which folder?

Thank you in advance!
[G1 Android Development] Anon9mouz:
I'm having an issue where it won't decompile framework-res.apk

Edit got it working yay:D

__________________________________________________
[G1 Android Development] Ph@lo:
Had the same issue, followed your instructions now it works thanks :)
[G1 Android Development] DynamiteRave:
I can't extract the apk multi tool it keeps coming up with errors in winrar. I tried to search for a problem in the thread but couldn't find the problem that I'm having. Could anyone help me out a bit?
[G1 Android Development] Ajthescot:
Download it again could be a corrupt download.

Also ditch winrar .use 7zip