yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] POC0bob:
HELP i keep getting this error and i have tryed (almost) everything!

Could Not Find C:\Users\brandon\Desktop\apkManager\place-apk-here-for-modding\../place-apk-here-for-modding/signedlicenseplategametracker-4.apk

Could Not Find C:\Users\brandon\Desktop\apkManager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedlicenseplategametracker-4.apk

I: Baksmaling...

I: Loading resource table...

I: Decoding resources...

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

I: Copying assets and libs...

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

C:\Users\brandon\Desktop\apkManager\other\..\projects\licenseplategametracker-4.apk\AndroidManifest.xml:2: error: Error parsing XML: not well-formed (invalid token)

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\brandon\AppData\Local\Temp\APKTOOL4964634212421907881.tmp, -I, C:\Users\brandon\apktool\framework\1.apk, -S, C:\Users\brandon\Desktop\apkManager\other\..\projects\licenseplategametracker-4.apk\res, -M, C:\Users\brandon\Desktop\apkManager\other\..\projects\licenseplategametracker-4.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\brandon\AppData\Local\Temp\APKTOOL4964634212421907881.tmp, -I, C:\Users\brandon\apktool\framework\1.apk, -S, C:\Users\brandon\Desktop\apkManager\other\..\projects\licenseplategametracker-4.apk\res, -M, C:\Users\brandon\Desktop\apkManager\other\..\projects\licenseplategametracker-4.apk\AndroidManifest.xml]

at brut.util.OS.exec(Unknown Source)

... 7 more

______________________

i do the number 9 command, edit the XML adding a few things that are needed, then save and quit out of dream weiver then when i type the 11 command i get this error... what do i do?
[G1 Android Development] webstar1:
help please, this is what i am getting:

What is it, what am i doing wrong?
[G1 Android Development] darkarchon10:
Thousands of errors, anyone any idea? I was recompiling a 2.3-themed framework-res.apk for the Moto Milestone… Didn't work with a original 2.3-framework from a Desire, same kind of error-level.
[G1 Android Development] Owaeis:
I used apk manager to replace a graphic in an app but it wont install after modifying. As soon as I replace the original graphic back again, it'd install fine. Strange : S
[G1 Android Development] Daneshm90:
The following is an assumption : You did not sign the app after you modified it.

That makes sense because the modified image will have a mismatched digest and hence won't let you install it :)
[G1 Android Development] POC0bob:
EDIT FOR MORE INFO: I am using an .APK made using Google's app inventor BETA then made some editations to the appmanifest.xml (adding: android:versionName="" and android:versionCode="1" <user-sdk android:mindAdkVersion="7" />

and then i removed the "android:debuggable="true"" and moved the "android:icon="@drawable/ya" (with out the '" " on both) up to the application tag, hit save and quit DW then i tryed to recompile it, i got the error above, alot even after re installing the program and doing everything (twice) still got the error, so i decompiled a test app (the same thing, lol) and did not edit, recompileing right away -still got the error and nothing happens, it asked if this is a (somthing) application y/n i enter 'n' and nothing happens after that, and i cannot sign the application... i looked it up and followed a few youtube tutorails and it worked for them... but not me :( what am i doing wrong? PLEASE HELP!!! :(
[G1 Android Development] DaGunn:
C:\Users\Zohaib\Desktop\apkmanager\other\..\projec ts\framework-res.apk\res\layout\zzz_keyguard_screen_puzzle_lock .xml:13: error: Error: No resource found that matches the given name (at 'id' with value '@id/zzz_sweepglass2').

Start with the spelling of projects, you have an extra space in there.
[G1 Android Development] DaGunn:
You have an extra space in the framework folder name
[G1 Android Development] apkxun:
someone help me with patching my Phone.apk

i will be thankful if someone could help me with it！

my email is 78826921@qq.com wish you can modified it and send it to me！
[G1 Android Development] icematrix:
Is possibile to add in next version decompile/compile jar file ?

Thanks
[G1 Android Development] Daneshm90:
Right, so just smali/baksmali. Yea good idea.

Will do.
[G1 Android Development] nitro66215:
I've used this too for system apks and have no issue. I've been attempting to change images within Handcent without success. Here's what I've tried. In between installs... I do open Settings... Applications.... Manage Applications.... and Uninstall Handcent. I also check /data/app/ for any left over com.handcent.nextsms.apk files.

Test 1...

1, replace image (just 1 for a test), 2, 3 (regular apk), 4, 5, 6. Seams to work... then when I open Handcent... it just imediately closes. No force close... just back to desktop of phone.

Test 2...

1, Don't do anything to folder, 3 (select system apk to retain signature), 8... Push to data/local/temp/com.handcent.nextsms.apk.... Open in Root Explorer... Install... Works Fine... but obviously useless since I didn't change anything.

Test 3...

1, Change image (1 only), 3 (select system apk to retain signature), 5, 6 Same result as Test 1.

Test 4...

9, Leave folder alone, 11 - Select Y for system file... then No for pulling from original file, 8 push to /data/local/temp/com.handcent.nextsms.apk. Find file in Root Explorer and do an install. Error.... Application Not Installed. I'm not sure how to look up what failed.... so nothing to see here.

Test 5...

9, Leave folder alone, 11 - Select N for system file... 12 (sign), 13 to install. Notice Success at end of script... Handcent shows installed... but same result as Test 1... just closes and does nothing. No force close.

Test 6...

9, Leave folder alone, 11 - Select N for system file... 4 (sign), 13 to install. Same result. Attempts to open... then just closes.... just like above.

I've tried this with 4.9 and 4.8

What's going on? Is there a signature problem? Any suggestions?
[G1 Android Development] nitro66215:
Another test I did... I tried optimizing the images....

1, 2, 3 (system file retain signature), 8 push to data/local/temp/com.handcent.nextsms.apk ... find in root explorer... install..... Errors... doesn't install.

Some sort of MD5 BS? or file size checking... something within the Manifest file?
[G1 Android Development] nitro66215:
Ok... I think I'm stupid... My guess.... Handcent's custom font / color / theme changing that is built in doesn't like any change in the images. Ugh!
[G1 Android Development] Rahulrulez:
I decompiled DialerTabActivity.apk from my Galaxy S.. made some changes and compiled it.. but the size is reduced and dialer doesn't work anymore..

what should I do?
[G1 Android Development] fernando sor:
awesome program man. i was wondering if stericsons auto sign tool interfears with the sdk path? im not sure if it was a java update , stericsons tool or my crappy laptop but ever since i get adb not found on your program. it still works, i just dont push or pull files from my phone. my path is correct. have you heard of this?
[G1 Android Development] OhDear:
I've installed ADB but it's showing up as missing :X

I've installed it in Program Files X86

Path: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_23\bin\;C:\Program Files (x86)\Android\android-sdk-windows\tools\;
[G1 Android Development] taras_rashnik:
One layout xml file compiled back with error.

Hello,

I used "Apk Manager 4.9" for decompiling and compiling again this package:

learnwords.ru - download - LearnWords.apk

I played with version 1.2.1.

The problem ocured with "LearnWords.apk\res\layout\flipper.xml" file. Application doesn't start with it.

My temporary workaround: After decompiling - I'm compiling it again, then overwriting "original binary" flipper.xml in unsignedLearnWords.apk. Then I'm signing it and installing. All works fine.

So I think that the problem is in decompiling and compiling back "flipper.xml".

Could somebody help me?
[G1 Android Development] taras_rashnik:
layout XML compilation error

The same thing happened with:

com.google.android.apps.reader.apk

1. Decompile

2. Compile

3. Workaround: overwrite "binary xmls" from "apk_manager_4.9\projects\com.google.android.apps.reader.apk\res\layout\" by original ones.

4. Sign

5. Install (all works correctly)

Without workaround it crashes on start.

What's wrong with decompiling/compiling layout xmls?
[G1 Android Development] taras_rashnik:
Ok, I think I solved it. I found the new slightly fixed by Brut.alll "apktool.jar".

After that Compile/Decompile cycle started work properly on both .apks.

I can't write a direct link, but try to use the folowing keywords to find the link for "apktool.jar" downloading:

code.google.com + p + android-apktool + issues + detail?id=100

> Comment 7 by project member Brut.alll, Oct 05, 2010

> Ok, I had fixed "@", but had not "?". Try this one.
[G1 Android Development] last0ne:
stock framework-res.apk not work

hi all,

I'm newbie, i use apk manager 4.9

i test re-compile stock XXJPY framework-res.apk

following step

1. choose 22 for select file.

2. choose 9 for decompile.

3. choose 11 for compile. no edit anything.

4. choose y.

5. choose y.

6. enter for continue.

i got unsignframework-res.apk

7. rename unsignframework-res.apk to framework-res.apk

8. copy to sdcard and replace in /system/framework with root explorer.

9. reboot.

it's crash on bootscreen

my phone is sgs i9000

win7 32bit

Please help investigate.

thank you.

log.txt

--------------------------------------------------------------------------
|Sat 12/25/2010 -- 12:05:38.73|
--------------------------------------------------------------------------
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:\androidSDK\apkmanager\place-apk-here-for-modding\../place-apk-here-for-modding/signedstock_JPY.apk
Could Not Find C:\androidSDK\apkmanager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedstock_JPY.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
The system cannot find the file specified.
[G1 Android Development] taras_rashnik:
Repeate all, but try to overwrite "binary xml" files in the newly created unsigned apk, from your original apk.

After 11. Compile step.
[G1 Android Development] last0ne:
Why?

normally, apk file can copy images or non-xml in to file.

if i copy all "binary xml", it like copies only images from other to original apk.

right??? :confused:
[G1 Android Development] taras_rashnik:
APK Manager 4.9 based on apktool 1.3.2

LINK:

code.google.com + p + android-apktool + issues + detail?id=100

It has bug so called "issue 100". It convert some xmls from binary and back to binary form with errors. I downloaded updated "apktool.jar" from link above. The new "apktool.jar" fixed my problem with xml -> binary -> xml transformation for both my apks. Try it.
[G1 Android Development] last0ne:
Thank ypu taras_rashnik, i will try it.
[G1 Android Development] B-dub25:
Errors

I'm on Ubuntu 10.10 and did the instructions. This is my problem here

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

please install it or fix your PATH variable

The program 7za is missing or is not in your PATH,

please install it or fix your PATH variable

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

These programs are in my path thou any ideas
[G1 Android Development] rori~:
I dont get it..where´s -> The new "apktool.jar" ?
[G1 Android Development] DaGunn:
I think he means the 1.31 version of the apktool.jar That works well with this script.
[G1 Android Development] rori~:
Yeah ....confused when I read "New"

Sent from my Nexus One
[G1 Android Development] 2fast4u88:
I'm on ubuntu and followed the guide a few pages back. I already had eclipse and sdk setup and installed. When I get to the part about typing in the script file I get this error.

root@home-Desktop:/home/home/AndroidSDK/am# ./script.sh

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

please install it or fix your PATH variable

Can someone help me out with what I seem to be doing wrong. Thanks.;)
[G1 Android Development] 2fast4u88:
If you would read you would know adb is in a different path in the newest release which is what is giving me problems with the same error.

Edit: Got it work but how do I change compression levels on linux? As I don't have that option.
[G1 Android Development] dully79:
I'm well aware of adb now being located in the "platform-tools" folder.

You can copy and paste adb wherever you like and it will run as long as you have the drivers and the correct path set.

And i said google your problem, not trying to be a funny bastard, but the top link helped me solve my problem and i wasnt able, or have the time to explain in full or post a link on a mobile phone-

http://www.google.co.uk/search?hl=e...avclient-ff&rlz=1B3MOZA_enGB410GB410&ie=UTF-8

An easy way to solve all these problems is-

1-Pickup desktop.

2-Open window.

3-Throw desktop out of window

4-Shut window and make a brew!!:D
[G1 Android Development] 2fast4u88:
I just seen your post and thought is was a little not needed. As for your post that is a bit funny ;)

Can you change the compression levels in linux?
[G1 Android Development] rk0:
Anyone know how to use this to resign RSA signed apps from the market? I always get a Application Can Not be installed error.
[G1 Android Development] dully79:
There probably is a way but i'm a blind bambi. Iv'e left linux and gone back to windows so i can't even check for you. Sorry.:(

Linux burns my head out- you have to install dependencies on top of dependencies to run programs and the simplest tasks take twice as long.

Apkmanager on linux Is error city and ubuntu is mayor!!

As for Apkmanager on windows, it's a paradise city and DaneshM is mayor!!

Edit: what do you want to compress??

Usually i uninstall XXX.apk, edit and resign MANUALLY with stericsons auto-sign tool(option 4... i think). I dont know why but they'll only install for me if they are signed that way(strange).

Although.....

The other day i created a new android project in eclipse,

Moved the files from the XXX.apk into the project folder,

Added my edited/modified files,

Installed it to my phone, unsigned, from eclipse.

Hope this helps.:)
[G1 Android Development] 2fast4u88:
Different apk's in my rom. Just wanted to see what would happen was all. I hate linux by heart. Some things are easier. I got adb to work on windows. But the junk java crap was driving me nuts on windows 7.

I may wipe the laptop and give it a try again.
[G1 Android Development] mike1986.:
Which version of apktool.jar is in 4.9? 1.3.2 or 1.3.1?
[G1 Android Development] MultiCulti:
hey friend´s

if i decompile a apk, like handcent (i take it out from /data/app) an modify it (png´s), after this i compile it and sign it .. BUT, i can´t install it again? whats i´m doing wrong?

or can´t i take it out from the data/app ?
[G1 Android Development] fernando sor:
Try renaming it one number up. Handcent is touchy. also you should copy out of data/app not pull it out. that causes problems in my experience. if handcent ends with a one rename yours a number up
[G1 Android Development] MultiCulti:
ok, yes, i copy it out with DroidExplorer from /data/app ... after this i deinstall it from the phone!

but, it´s not just with Handcent, also with Dolphin Browser HD it´s the same :confused::confused:
[G1 Android Development] fernando sor:
Try installing handcent and then rename yours a number up and install yours.
[G1 Android Development] kurniawan77:
apktool 1.3.2
[G1 Android Development] mike1986.:
Thanks!

Would you mind telling me also the optimal compression level for apk files? Is there some compression level that is danger for system apk? Or can I use the highest compression level in every apk?
[G1 Android Development] ultra spikey:
I've got Java and ADB set up, when I try to decompile, the script window just closes. Here's what's in the log

-
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)
Icon was unexpected at this time.

EDIT: Nevermind, looks like the .apks cant have spaces in their name.
[G1 Android Development] confiq:
hmmm... linux version is missing lot of options!

However, nice tool!
[G1 Android Development] drakenabarion:
Hi all,

I am new to modifying apk files, but, I have successfully modified a gingerbread themed keyboard to trick it into using a keyboard layout I would use in place of the layout for another language I dont use. (I can have my layout if I select French, instead of the usual french keyboard).

I am using a Samsung Galaxy S.

Now, I would like to modify the Stock Samsung Keyboard so that when I have multiple languages, instead of displaying the different languages on the space bar, I would prefer it to say Space in whatever languages I use.

So I decompiled AxT9IME.apk with dependencies using twframework-res.apk as the dependancy, made my changes (strings.xml has the language labels in various folders), deleted the files I changed from the Keep folder during recompile and recompiled.

I did all this without error, however, when I replace the keyboard apk on my phone, I can view the settings for the keyboard just fine, but when I try to actually use the keyboard, I get a force closure. I deleted the applicable folders in /dbdata/data/ which generally fixes any Force closures I had before.

Anyone got any ideas what I might be doing wrong?
[G1 Android Development] MultiCulti:
i have a little problem :o

the script say´s always, no ADB installed, but i have HTC Sync running?!
[G1 Android Development] fernando sor:
That just means your path for adb isn't set.
[G1 Android Development] MultiCulti:
that means to me?

sorry for beeing nooby :o
[G1 Android Development] fernando sor:
You have sdk installed and it's on the root of your c drive right?
[G1 Android Development] MultiCulti:
no, its on the root of G: drive,

if i go into the cmd and check adb device it shows me my DHD!

but APK still says no :(
[G1 Android Development] fernando sor:
It says adb not found you will not be able to something something your phone right?
[G1 Android Development] MultiCulti:
yes, right! also with 4.8 and 4.7

edit:

anyway, i have got a problem since yesterday, i can´t compile any apk´s ... but i didn´t change anything?

see log
[G1 Android Development] fernando sor:
That could be your decompiling

Something not edited right. Check your images. If some wont show you wont recompile without errors.

When you hit cmd on your computer does it open in c drive or g drive?
[G1 Android Development] MultiCulti:
C: drive, cause this is the system partition!

This is also comming, if i just decompile a apk, and compile it straight, without changes?!

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

|01.01.2011 -- 19:37:09,27|

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

java version "1.6.0_23"

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

Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

Der Befehl "adb" ist entweder falsch geschrieben oder

konnte nicht gefunden werden.

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

libpng error: Read Error

ERROR: Failure processing PNG image G:\DesireHD\APK Manager 4.9\other\..\projects\2.0.2framework-res.apk\res\drawable-hdpi\btn_keyboard_key_trans_pressed.9.png

libpng error: Read Error

ERROR: Failure processing PNG image G:\DesireHD\APK Manager 4.9\other\..\projects\2.0.2framework-res.apk\res\drawable-hdpi\btn_keyboard_key_trans_selected.9.png

libpng error: Read Error

ERROR: Failure processing PNG image G:\DesireHD\APK Manager 4.9\other\..\projects\2.0.2framework-res.apk\res\drawable-hdpi\title_bar_portrait.9.png
[G1 Android Development] fernando sor:
Well then that's where you need to have your sdk folder.

You need to go to start and right click on my computer. Go to properties and then advanced settings. Select environmental variables . Under system variables find path. Click on it and select edit. Type at the end of the string ;c:\android-sdk-windows\tools
[G1 Android Development] MultiCulti:
--------------------------------------------------------------------------
|01.01.2011 -- 19:57:45,38|
--------------------------------------------------------------------------
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
Der Befehl "adb" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
res\drawable-hdpi\btn_keyboard_key_trans_pressed.png:0: error: Resource entry btn_keyboard_key_trans_pressed is already defined.
res\drawable-hdpi\btn_keyboard_key_trans_pressed.9.png:0: Originally defined here.
res\drawable-hdpi\btn_keyboard_key_trans_selected.png:0: error: Resource entry btn_keyboard_key_trans_selected is already defined.
res\drawable-hdpi\btn_keyboard_key_trans_selected.9.png:0: Originally defined here.
res\drawable-hdpi\title_bar_portrait.png:0: error: Resource entry title_bar_portrait is already defined.
res\drawable-hdpi\title_bar_portrait.9.png:0: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Markus\AppData\Local\Temp\APKTOOL1079717614201686816.tmp, -x, -S, G:\DesireHD\APK Manager 4.9\other\..\projects\2.0.2framework-res.apk\res, -M, G:\DesireHD\APK Manager 4.9\other\..\projects\2.0.2framework-res.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\Markus\AppData\Local\Temp\APKTOOL1079717614201686816.tmp, -x, -S, G:\DesireHD\APK Manager 4.9\other\..\projects\2.0.2framework-res.apk\res, -M, G:\DesireHD\APK Manager 4.9\other\..\projects\2.0.2framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more

This is @ this moment comming :(
[G1 Android Development] fernando sor:
You have image errors. Try starting with an unedited version off the app
[G1 Android Development] fernando sor:
If you are just changing images you really don't need to decompile
[G1 Android Development] MultiCulti:
i get this with all APK´s .. also with "new" one´s :( i´m getting crazy
[G1 Android Development] MultiCulti:
yes, i know, but anyway, i´d like to change more things later, so i really hope i get this working again!

the strange thing is, it was working, and i didn´t change ANYTHING ... and since yesterday it isn´t working anymore!
[G1 Android Development] fernando sor:
Try decompiling and recompiling with no change