yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] bignadad:
Trying to decompile google maps 5.1 and i get the following error..

Never had a problem decompiling before..

Any help is greatly appreciated.. Need to get my widget text white :)

java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
Could Not Find C:\Users\Addie\Desktop\Droid Local\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedcom.google.android.apps.maps-5.1.apk
Could Not Find C:\Users\Addie\Desktop\Droid Local\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedcom.google.android.apps.maps-5.1.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f02013c drawable/directions_map_pins_android, config=-mdpi
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 Source)
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 C:\Users\Addie\Desktop\Droid Local\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedMaps.apk
[G1 Android Development] bluviper:
how come my pc doesnt recognize 'mode' command from the script.

it reads java... errr... i tried ADB before.. and path it right (i think), coz i have used ADB to root my phone before..

now it just doesnt seem to work...

help please!
[G1 Android Development] Lento10:
does anyone know what this means "/Script.sh: 284: which: not found" ?
[G1 Android Development] bluviper:
it has been like that... and im waiting for daemon to load....

but it doesnt... how come?
[G1 Android Development] PIRATA!:
Ok, I need to edit an APK file, the DialerTabActivity.apk from Samsung Galaxy S.

Can this Apk Manager give me the capability to edit the file with a graphical interface and without the need to have the phone pluged to the computer??

Otherwise, can you please tell me what could I do with this app to my apk??

Thank you.
[G1 Android Development] Fusio9:
uhmm.. any chance to have this for OSX ? I mean.. from linux to OSX shouldn't be difficult.. right ?

EDIT:

I actually did it. It seems to be working in OSX, too.

Had to:

- download the linux version (of course)

- download and place "sox" into the "other" folder

- download a 7-zip, "7za" compiled for OSX.

I'm actually attaching the modified version.

Try it out.
[G1 Android Development] Paul627g:
APK Manager 4.9

I'm trying to decompile option #9, Settings.apk file from a deodexed Froyo DK28 ROM. Not themed or anything. I have used the framework-res.apk and twframework-res.apk from this ROM and had great success decompiling and recompiling with no errors.

When I go to option #9 to decompile Settings.apk I get the following.

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

|Sat 02/05/2011 -- 12:24:51.61|

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

java version "1.6.0_23"

Java(TM) SE Runtime Environment (build 1.6.0_23-b05)

Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)

Could Not Find C:\apk_Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSettings.apk

Could Not Find C:\apk_Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSettings.apk

I: Baksmaling...

I: Loading resource table...

W: Skipping "android" package group

I: Decoding resources...

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

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02070015

W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000e

W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106003b

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0106003b

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=textColorHint, value=0x02050001

W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f

What would I be doing wrong in this situation? I read over some of the other posts concerning Settings.apk and tried changing the Max Memory Size and also tried Option #10 and dragged my framework-res.apk and twframework-res.apk in and still no luck.

Very simple mod I am trying to accomplish to the Settings.apk by "ticking" a checkbox located in one of your setting options. Default setting is a unchecked/unticked option and I want to change it to checked/ticked for the user(s).

Thanks.
[G1 Android Development] Goodstuff:
guys i was wondering if i can use this application/ program to edit imobster for android.. maybe we can change property prices ,weapons, and points.. i want to edit the apk like the iphone imobster to get things...
[G1 Android Development] daddyspud:
hi guys im get fed up with ubunta it will not let me create the dame path and run the script

does any one have a list of command on how to install argh driving me mad argh

any adivce welcome thanks
[G1 Android Development] nlovers2000:
guys plz help i`m getting this error when running the script

"The program adb is missing or is not in your PATH,

please install it or fix your PATH variable

The program sox is missing or is not in your PATH,

please install it or fix your PATH variable"
[G1 Android Development] Ghisy:
Hi guys,

This used to work fine until now!

When I wanna select a current project, it asks me "Choose the app to be set as current project? Enter It's Number:". I have no idea what number I should enter!

It used to list the .apk I put in the "place-apk-here-for-modding" folder so I could just choose the one I wanted to work on.

Please help!
[G1 Android Development] Westi01:
Hey,

I was modifying an apk and was trying to compile/sign/install it on my device but comiling falied. Even with a non modded apk which i decompiled first.

Log file in this post. Thanks for your help!
[G1 Android Development] darkfield:
How can i change the icon of a app?

I start it, type 22 and choose my project.

Then i type 2 for "Optimize images inside".. > batch closed.

?
[G1 Android Development] SkilletDesire:
How long is the key used to sign apks in apk manager valid for?
[G1 Android Development] HewGBalls:
to fix adb error:

type in terminal : sudo gedit ~/.bashrc

at the end of the file copy/paste

to fix the sox, in terminal type: sudo apt-get install sox
[G1 Android Development] HewGBalls:
I had this problem. Copy aapt file from apk_manager/other folder to your android_sdk_directory/platform-tools folder
[G1 Android Development] HewGBalls:
Make sure there is only 1 apk file in place-apk-here-for-modding folder when decompiling.
[G1 Android Development] HewGBalls:
Try the following steps:

1) extract apk_manager and copy it to your home directory

2) in terminal cd apk_manager_linux_4.7

2) chmod a+x Script.sh

3) ./Script.sh

Make sure you are not in sudo or su.
[G1 Android Development] Westi01:
Thanks mate!

When I am starting script.bat it says that ADB was not found. in which folder does it have to be placed to run correctly ?
[G1 Android Development] scuba_d:
generation x 2.0 theme modification

I want to edit the /system/app/DialerTabActivity.apk file, more specifically one file inside of that after the decompile. its in the /res/values/strings.xml. I am just trying to correct some spelling in it just to see if I can do it, that way I am more confident with moding or making my own theme. Here is the log error i get but it still decompiles and then I make my changes to the xml file and compile and then sign and then install to phone through adb. it never installs on the phone is part of the problem the problem I am worried about is from the log it looks like some files will be messed up when I recompile it. Let me know your thoughts. The Dialer apk is from the title theme. Thanks for the help, here is the log.

java version "1.6.0_23"

Java(TM) SE Runtime Environment (build 1.6.0_23-b05)

Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)

Could Not Find C:\Documents and Settings\Extension201\Desktop\redsn0w-win_0.8\ap

k_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedDia

lerTabActivity.apk

Could Not Find C:\Documents and Settings\Extension201\Desktop\redsn0w-win_0.8\ap

k_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedD

ialerTabActivity.apk

I: Baksmaling...

I: Loading resource table...

I: Decoding resources...

I: Loading resource table from file: C:\Documents and Settings\Extension201\apkt

ool\framework\1.apk

W: Could not decode attr value, using undecoded value instead: ns=android, name=

textColor, value=0x0205009a

W: Cant find 9patch chunk in file: "drawable-hdpi/tw_tab_selected_bar_left.9.png

". Renaming it to *.png.

W: Could not decode attr value, using undecoded value instead: ns=android, name=

textColor, value=0x0205009a

W: Cant find 9patch chunk in file: "drawable-hdpi/tw_tab_selected_bar_right.9.pn

g". Renaming it to *.png.

W: Could not decode attr value, using undecoded value instead: ns=android, name=

color, value=0x02050097

Press any key to continue . . .
[G1 Android Development] Daneshm90:
please do not sign and publish app with this script

this uses testkeys google has stopped accepting them
[G1 Android Development] fernando sor:
it will still work you just dont a path set in your computer system variables
[G1 Android Development] ccdreadcc:
is it posible to translate an apk from chinese to english with this tool?

thanks.
[G1 Android Development] evelryu:
I got a big problem, i sign my market app with apk manager long ago, now i need to upload an upgrade and market dont aceppt this certificate anymore.

What i can do in this case?
[G1 Android Development] Brotuck:
When trying to decompile "settings.apk" i get errors

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\encrypt\place-apk-here-for-modding\../place-apk-here-for-modding/signedSettings.apk
Could Not Find C:\encrypt\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSettings.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\bro\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x02070015
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColorHint, value=0x02050001
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000e
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f

I actually solved the problem by using the dependency option.

Now how to encrypt this file back ? It's a stock samsung file (settings.apk), do i need some special certificate ? Or can i use any certificate ?
[G1 Android Development] evasilisin:
Failing to edit Settings.apk

I tried decompiling and then editing xml file and then recompiling what am i doing wrong. im getting errors on decompile and recompile, and it wont even push adb
[G1 Android Development] Brotuck:
So now it is not possible anymore or is there another way to sign a edited apk file ?
[G1 Android Development] Daneshm90:
Oh no you misunderstood.

What im referring to is you cannot upload apps you have modified with this script to the market because google will not allow it anymore. Those are signed with testkeys. If you want to upload anything produced by this script, you need to replace the testkey's with private keys generated by android sdk.
[G1 Android Development] naboleo:
Ok i'm a bit confused here as i was supposed to apply the correct workaround.

I followed these above steps (with keep folder) and without modifying anything...

And it produces the logcat error regarding "valid layout" !

I'm just basicaly decompiling/compiling the apk, so wasn't I supposed to have in any case a working application deleting the ressource.arcs only ?
[G1 Android Development] live4rock81:
Please Help

What am I doing wrong?

I am simply trying to replace a png file inside of the drawable-hdpi folder.

I first select option 9 to decompile the apk(Gmail.apk), which produces a folder labeled "out".

I then replace the original png with my modified version within the drawable-hdpi folder located in the out folder.

After that I select option 11 to recompile and I receive the following error....

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

|Tue 02/15/2011 -- 21:45:56.14|

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

java version "1.6.0_23"

Java(TM) SE Runtime Environment (build 1.6.0_23-b05)

Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)

Could Not Find E:\Documents and Settings\Nathan\Desktop\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged.apk

Could Not Find E:\Documents and Settings\Nathan\Desktop\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-signed.apk

Could Not Find E:\Documents and Settings\Nathan\Desktop\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-unsigned.apk

The system cannot find the file specified.

I: Baksmaling...

I: Loading resource table...

I: Decoding resources...

I: Loading resource table from file: E:\Documents and Settings\Nathan\apktool\framework\1.apk

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

E:\Documents and Settings\Nathan\Desktop\other\..\out\smali\com\google\common\base\Functions.smali[0,0] null

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: java.io.FileInputStream@1f899e9

at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)

at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)

at brut.androlib.src.SmaliBuilder.buildFile(Unknown Source)

at brut.androlib.src.SmaliBuilder.build(Unknown Source)

at brut.androlib.src.SmaliBuilder.build(Unknown Source)

at brut.androlib.Androlib.buildSourcesSmali(Unknown Source)

at brut.androlib.Androlib.buildSources(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)
[G1 Android Development] fernando sor:
Just drop it in. no need to decompile for an image

Badseeds custom y'all
[G1 Android Development] live4rock81:
Ok, thanks. But, it should work regardless. Say I wanted to edit and xml file. How would I get this to recompile. Can you tell what I'm doing wrong from my log?
[G1 Android Development] steelbreeze:
Hey guys. Need some help here.

Hey guyz, I was just going through this thread to change my battery icon. I followed everything, but when I try to build the apk, it gives me numerous errors saying "Public symbol xxxx declared here is not defined". I don't understand what to do. Can you please help?

Oops my bad. I'm so frustrated that I don't know what I am doing. BTW here are the files. Battery icons that I'm trying to add, the log of the original framework-res.apk file which I decompiled and re-compiled without making any changes and my original framework-res.apk. Hope someone can help me.
[G1 Android Development] Sine.:
Rapidshare for a screen?! :confused: (Bad link btw)

Why don't you attach your screen & framework-res.apk directly to your post?
[G1 Android Development] steelbreeze:
Please check my previous post. I have edited it.
[G1 Android Development] XsceneXhippieX:
I have a question about this program involving the framework-res.apk, if i extracted it, and have the code for cyanogen mod's cmparts (to add only the cmsettings menu to the settings screen) would i just add the script i downloaded to the already existing xml files and such, and after i get it compiled into the .apk would it be signed correctly to install back to a rom with the cmparts working?
[G1 Android Development] Daneshm90:
Well just make sure u say yes to system app and preferably say yes to 2nd question as well, then delete everything u modified from keep folder. Then continue with script. Once done, dont resign or nething, the apk it spits out, is ready to be pushed.

If you modified androidmanifest, make sure core is not running. Ie, either

1. Push in recovery

2. Do adb shell stop, push, adb shell start
[G1 Android Development] XsceneXhippieX:
could i use root explorer to copy the edited framework-res.apk over the unedited one and then reboot? (i have nand backups so if it goes wrong i can fix it)
[G1 Android Development] Daneshm90:
If you haven't modified the androidmanifest.xml, then yes you can do it that way.
[G1 Android Development] XsceneXhippieX:
I see, i think im doing all of this wrong... i downloaded the cmparts from source (the github cyanogenmod cmparts download) i used apkmanager from the first post of this thread to decompile my framework-res.apk, i took all the files from the cmparts download and placed the files in the correct folders (pasted whole folders where they didnt previously exist) opened the androidmanifest.xml from the original apk and pasted in the script from the androidmanifest.xml at the bottom, saved it, then attempted to recompile and recieved an error but it still made an apk, it was just 1/10th the size it is supposed to be.. 0.o im new at this and feel awkwardly noobish... im sorry if im just being dumb and following directions wrong, this is my first attempt at editing an apk ever
[G1 Android Development] live4rock81:
When you say "keep" folder...what do you mean by this? I don't see anything labeled "keep". After decompiling there is a folder produced called "out". Please explain.
[G1 Android Development] XsceneXhippieX:
i got a keep folder by answering the 2nd question brought up from compile apk option with a "y" or yes, it makes a keep folder with all the files from the original apk in it i believe, it will copy the files in the keep folder to the unsigned apk produced to prevent possible errors, at least thats what i got from reading, my problem wasnt with this, it was afterwards the apk was MUCH too small, like supposed to be 3000kb+ but was only like 300kb and after signing 100kb, neither of which o felt comfortable with overwriting my framework-res.apk with...
[G1 Android Development] live4rock81:
When I tried to recompile, I never received a keep folder. What could I be doing wrong?
[G1 Android Development] XsceneXhippieX:
I tried using steps 1, then 2, then 3 in that order and it gave me a 7000kb file, i was excited until it boot looped me >.< i think it is because i didnt decompile for system changes like option 9 or 10 or something
[G1 Android Development] S_Dot:
I'm getting error recompiling framework with no change, here is the log

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\O\AppData\Local\Temp\APKTOOL1813313182530962069.tmp, -x, -0, arsc, -S, C:\Program Files (x86)\Java\jre6\bin\other\..\projects\fw.apk\res, -M, C:\Program Files (x86)\Java\jre6\bin\other\..\projects\fw.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\O\AppData\Local\Temp\APKTOOL1813313182530962069.tmp, -x, -0, arsc, -S, C:\Program Files (x86)\Java\jre6\bin\other\..\projects\fw.apk\res, -M, C:\Program Files (x86)\Java\jre6\bin\other\..\projects\fw.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more

anyone got any ideas?
[G1 Android Development] XsceneXhippieX:
abslutely no idea, but ive recieved the same error about 30 times now, just been working so much i couldnt get the log up for interpretation
[G1 Android Development] jerryyyyy:
I have an app I created with AppInventor and modified with Marketizer and sucessfully uploaded to the MarketPlace. BUT, foolishly I want to change the icon from the standard. I have apk running but cannot figure out the sequence of steps for what should be a simple operation? I have the replacement icon ready to go in the correct format replace ya.png in the Drawable Folder.

HOW to I recreate the .apk file?
[G1 Android Development] Daneshm90:
Use the first batch of operations.

Extract,change icon png,zip,sign,install.
[G1 Android Development] luhu:
I just wanted do edit some pictures out of a apk file. But I get this message in log.txt when I want do open the script.bat:

But it has worked some weeks ago...
[G1 Android Development] jerryyyyy:
Thanks, but when I "sign" and upload to the Android Marketplace it does not like the "Android" signature. I have my own signature on my computer that worked with a prior upload, but I cannot seem to index it.

If I do not sign it, it also cannot be uploaded.

The app works fine when I move it directly across to the phone.
[G1 Android Development] apparition:
I want to add a folder called values-en-rCA to my ROM's frameworks-res.apk. How can I do that? I tried decompiling the ROM's frameworks-res.apk but I'm not sure how to do this..

EDIT: theres a guide apparently
[G1 Android Development] silverxbv2:
I need a little help guys. I'm only changing one color in values/ colors in Rosie. So I decompile, go to projects, open Rosie, res, values, and edit colors with notepad++. Make my change, save, go back to the script, choose option 11, yes and yes again. Go to the keep folder and delete resources.arsc. Now in the place here to mod folder I have Rosie and unsigned Rosie. Finally to my question. Why is the unsigned Rosie so much bigger than the other one? Am I doing something wrong? Signing doesn't make a difference. Help please.
[G1 Android Development] bwot75:
OK, just a noob here having a slight issue with color changing/editing images. I used the "simple tasks" menu, I have the APK on my pc, so I unzipped it, plased the system apk from apps (camera.apk for instance), placed it inside "place-apk-here-for-modding" folder. extracted the apk, which created a nice folder inside "projects". I edited the colors of a few images in PS from blue to red, once finished I selected "zip" and chose option 1 "system apk" I then received an apk title "unsignedcamera.apk" but when I tried to extract that one to check on my edits, there was no "res" folder. what am I doing wrong?