yashsingh1/xdaforums huggingface dataset:
[Android Software Development] GaboWinter:
Hi, when i try to recompile framework-res.apk i'm receive this

/home/gabo/android-utility/working-folder/mod-here-solo/framework-res/res/values/public.xml:2541: error: Public symbol style/TextAppearance.Large.Inverse.NumberPickerInputText declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8391611978313248302.tmp, -x, -S, /home/gabo/android-utility/working-folder/mod-here-solo/framework-res/res, -M, /home/gabo/android-utility/working-folder/mod-here-solo/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8391611978313248302.tmp, -x, -S, /home/gabo/android-utility/working-folder/mod-here-solo/framework-res/res, -M, /home/gabo/android-utility/working-folder/mod-here-solo/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

Please check build_log for apk with errors

Could you give me a little help of where it's the error?

Thanks in advance :)

EDIT: I'm solved the issue yet, i'm make all the changes again and then could compile
[Android Software Development] exb0:
--2012-03-31 11:15:33-- 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% 1.85M=0s

2012-03-31 11:15:33 (1.85 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
'""platform-tools"\adb.exe"' is not recognized as an internal or external command,
operable program or batch file.
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Junyu\AppData\Local\Temp\APKTOOL6991191615709474251.tmp, -x, -I, C:\Users\Junyu\apktool\framework\1.apk, -S, C:\Apk tool\projects\ics.apk\res, -M, C:\Apk tool\projects\ics.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Junyu\AppData\Local\Temp\APKTOOL6991191615709474251.tmp, -x, -I, C:\Users\Junyu\apktool\framework\1.apk, -S, C:\Apk tool\projects\ics.apk\res, -M, C:\Apk tool\projects\ics.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more

Any idea on how to solve this? This is when I'm recompiling after replacing a png. Even when I try just decompiling and recompiling without any changes I get this error too.
[Android Software Development] crash_194:
Hello there, I have just got this working after experiencing your problems. Have you noticed that in "androidsdk/tools" there is a file called "adb_has_moved.txt" and with that it gives you the new location of the adb.exe

It's now in platform-tools, so make sure you have updated your environmental variables accordingly.
[Android Software Development] andoyanna:
I'm trying to decompile SystemUI.apk from samsung galaxy s2 ics 4.0.3 rom and having this error message:

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

|Mon 04/02/2012 -- 17:08:16.80|

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

--2012-04-02 17:08:17-- 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% 1.15M=0s

2012-04-02 17:08:18 (1.15 MB/s) - `apkver.txt' saved [152/152]

A subdirectory or file projects already exists.

A subdirectory or file place-apk-here-for-modding already exists.

A subdirectory or file place-ogg-here already exists.

A subdirectory or file place-apk-here-to-batch-optimize already exists.

A subdirectory or file place-apk-here-for-signing already exists.

java version "1.6.0_31"

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

Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)

'""platform-tools"\adb.exe"' is not recognized as an internal or external command,

operable program or batch file.

The system cannot find the path specified.

The system cannot find the path specified.

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

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

Any help will be greatly appreciated!
[Android Software Development] Wdustin1:
hey raziel23x i appreciate all the work you do i sent you a little something ( Paypal conformation number: 0C9228779B030421K) sorry it ain't much bro ;)
[Android Software Development] mDroidd:
Thanks for supporting him!!
[Android Software Development] xK1LLSW1TCHx127:
Yes i did notice that, i tried just installing the tool in that folder but that didn't work, can you tell me what i should try to adjust my variables? I'm new to all of this, so i would appreciate any help, i can probably figure it out if you tell me or hint me to where to start, thanks!
[Android Software Development] Astrikz:
adb was not found.

Here is my path.

%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_31\bin;C:\android-sdk-windows\platform-tools\;

Yes. adb.exe is located in "C:\android-sdk-windows\platform-tools\"

When i have the adb path alone it works but it then says java was not found

When i have "C:\android-sdk-windows\platform-tools\" by itselt in the path it seems to find it but doesn't find java/
[Android Software Development] bombadier:
Check that your java path is correct,I have it set up and working with java 7 and my path reads C:\Program Files\Java\jdk1.7.0_03\bin everything else checks out the same as me,also thought I saw a space at Sy stem32\Wbem hope you get/got it working

Also try copying adb.exe to the same java folder that you have working, reboot and adb should work
[Android Software Development] Astrikz:
Yeah i saw the space two. it doesnt show like that on my path. But thanks ill try it out.

Edit- same issue.

Its weird. because if i have the location of adb by itself. it works but says java was not found.

When i try to add another path(to java) it says adb not found
[Android Software Development] Unrealwolf:
Hey, guys, i've got a problem. I'm trying to modify framework-res.apk on my Nook Simple Touch ereader to make a russian translation of png files. It's decompiling OK, i change resources (edit PNG files), compile, no errors here, then i do

Then i reboot. It boots OK,the resources i've changed are showing up properly, but all the user apps doesn't work anymore - they simply don't launch. System apps are working properly, i think.

If i change framework-res to original (using same way), user apps still don't work.

What am i doing wrong?

OK, i've found out what i needed to do.

The right solution for me was the next sequence of actions:

1. set apk compression level in Apk Multi Tool to 0

2. Decompile framework-res.apk

3. Change resources

4. Compile apk ("is this a system apk" - y; "do you need to do second thing" - n)

5. Open original apk and new unsigned apk with 7zip.

5. Move drawable-mdpi (images) and resources.arsc from new unsigned to original framework-res.apk

6. push changed original to the device through adb

All apps are working this way.
[Android Software Development] Astrikz:
Nobody?

The space in the quote is not on the "path" so that cant be the problem

Update- This is getting so frustrated.

I put java.exe in the same folder as adb.exe

Open Multi-tool but it doesnt find java

I delete java from the folder then it says java was not found.

Note- The only path i have is "C:\android-sdk-windows\platform-tools\" which is where adb is located.
[Android Software Development] raziel23x:
Go to the official java website it has a guide also there is a guide in the document that comes with apk multi tool
[Android Software Development] goldiecalypso:
How to make(compile) an apk file correctly

Hi, thank you for your special job!

I want to edit some .xml files in a "systemUI.apk", as I found out, this file is special since it's signed and system's.

I successfully decompiled it using "command 9" and after that, I saw some new folders:

place-apk-here-for-modding

place-apk-here-for-signing

place-apk-here-to-batch-optimize

place-ogg-here

and KEEP

I followed the program's tutorial and put "systemUI.apk" in "place-apk-here-for-modding" then I selected the project and it said I should delete modified files from "KEEP" folder; then I chose "command 11" to compile the project but I found the new apk file is larger that usual (it contains a "KEEP" folder that includes the whole project!!!)

Am I wrong in a step or should I select a different way (commands)?!

Please give me your opinion.
[Android Software Development] plegdroid:
did you find a solution for this error? as I've got the same error at compiling :)
[Android Software Development] raziel23x:
You did not run the 9patch on the two 9.png files you edited I forget the name of the file but googling android 9patch tutorial will give you a few step by step guides to how to properly patch them and that should fix your issue
[Android Software Development] blueluck77:
Same thing as before.
[Android Software Development] zelendel:
Did you sign the apk?

maybe on option to have it open the current project folder after decompile?
[Android Software Development] blueluck77:
Yeah I signed it. There are two apks in the modded folder the original called "foursquare" and the new one called "signedfoursquare"

That option sounds perfect. Anything to clean up my desktop more than it already is. lol
[Android Software Development] zelendel:
And you removed the singned in the name and over wrote the other apk. In data/app yes?
[Android Software Development] blueluck77:
No I uninstalled the other then restarted then reinstalled. Should I remove the other from data/app? The only thing I changed was the widget pngs.
[Android Software Development] zelendel:
Here is just what I do. I remove the signed. and use like root explorer to delete the other apk and copy the new one in its place. Making sure the permissions are right. then reboot
[Android Software Development] blueluck77:
Well I wanted it to be able to be installed correctly in case I change ROMs or change phones or even share it on here with others.
[Android Software Development] blueluck77:
I can just edit the pngs and the .9.pngs and everything goes fine. I can install and everything works perfectly except the font is too dark on the widget so you cant see it. I am wanting to change the font on the venues widget to white not black. If you look at the styles.xml there are 3 instances that are there and they are as follows:

<style name="TextViewStyleVenueActivityTodoHere">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/black_end</item>
</style>
<style name="TextViewStyleAddTipTodoActivityBold">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/black_end</item>
</style>
<style name="TextViewStyleAddTipTodoActivityNormal">
<item name="android:textSize">14.0dip</item>
<item name="android:textColor">@color/black_end</item>
</style>

I am changing black_end to white. that is all I am changing. Anyone offer any assistance with this? Attached is the original apk and the pngs (yes I ran the 9patch on the .9.pngs) that I have edited and the styles.xml file is in res/values
[Android Software Development] dipxda:
I tried to decompile SystemUI.apk on my Samsung Galaxy S to get rid of the notification vibration when battery is fully charged. I used twframework-res.apk for decompiling. However, after changing the code, compiling and pushing the modified SystemUI.apk to the phone, the notification bar is completely dissapeared.

For testing purposes, I then only decompiled SystemUI.apk and compiled it again without amending anything. Even then the notification bar is disappeared after pushing the new SystemUI.apk (which is smaller than the original one) to the phone. I pushed than the original file to the phone and the notification bar appears again.

I have no errors in the log.txt file so what do I make wrong? It is the first time that I try to decompile and compile an apk file. Any help would be very much appreciated.
[Android Software Development] gcamp0730:
You may need to add framework-res.apk as well. I've done just what you describe with no problem using both apks.
[Android Software Development] dipxda:
How do I add framework-res.apk in addition to twframework-res.apk? Using option 10 there is only one possibility to add the dependee apk to the script.
[Android Software Development] dipxda:
I have now made a big progress. Until now I always did not use the "keep" option to keep unmodified files during re-compilation but always choose to compile all files. The reason was that I did not exactly know which files I should keep, since I want to edit the file StatusBarPolicy.smali which is in the directory projects\SystemUI.apk\smali\com\android\systemui\statusbar\policy but this file does not exist in the keep folder (so I did not know which file I shoul delete).

Finally, I had the impression that the file StatusBarPolicy.smali is included in the file classes.dex and so I made a new compilation trial, this time with the "keep" option set to yes, and then deleted only classes.dex from the created keep folder. The thus created SystemUI.apk now works, the notification bar does no longer dissapear and the amendment to the StatusBarPolicy.smali file seems to work (since there is no longer this annoying vibration when the phone is in silent mode and the battery is fully charged).

However, I still do not understand why it does not work when I don't use the keep option. Has anybody an idea to that question?
[Android Software Development] zelendel:
By not keeping tlthe original files you replace the Meta folder which is the sig that the system uses. At least this is how I understand it. I always choose to keep the files I don't edit so i know if it was one of my edits that broke it and not some random error
[Android Software Development] dipxda:
Thanks for the explanation and to both of you for your help.
[Android Software Development] ktmbikerman:
Help needed with decompiling/compiling errors

Hello, Could someone please take a look at the log below and tell me what I'm doing wrong. Extracting > Zipping > Signing > Installing works fine but when I try to Decompile > Recompile > Sign > Install I get the error below. I've tried with APK Manager 5.02 and APK Multi-tool Alpha2, the results are the same. Here's the log:

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

|08-11-2011 -- 18:07:55.79|

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

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)

1662 KB/s (3613268 bytes in 2.122s)

Could Not Find C:\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedics16.apk

Could Not Find C:\Apk_Multi-Tool_Alpha_02\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedics16.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

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

I: Loaded.

I: Decoding file-resources...

I: Decoding values*/* XMLs...

I: Done.

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

I: Building apk file...

1828 KB/s (3697269 bytes in 1.974s)

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java: 142)

at brut.androlib.Androlib.build(Androlib.java:159)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:174)

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

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:103)

at brut.androlib.Androlib.readMetaFile(Androlib.java: 138)

... 4 more

The system cannot find the path specified.

1780 KB/s (3586435 bytes in 1.967s)
[Android Software Development] raziel23x:
I am currently working on adding in a Auto update feature into the next release so when you launch the tool it will check for a new version of the application and if there is a update it will update automatically and have you relaunch the application.
[Android Software Development] waterpolo:
I can't decompile the latest market v3.3.11.

Is this solved with the new release?

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)
Could Not Find D:\Android\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk
-here-for-modding/signedcom.android.vending-2_v3.3.11.apk
Could Not Find D:\Android\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk
-here-for-modding/unsignedcom.android.vending-2_v3.3.11.apk
I: Baksmaling...
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: 20030000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR0
W: Config flags size > 32. Exceeding bytes: -17FD0000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR1
W: Config flags size > 32. Exceeding bytes: 20030000.
W: Invalid config flags detected. Dropping resources: string-v13-ERR2
W: Config flags size > 32. Exceeding bytes: 20030000.
W: Invalid config flags detected. Dropping resources: string-ca-v13-ERR3
W: Config flags size > 32. Exceeding bytes: 20030000.
W: Invalid config flags detected. Dropping resources: string-lt-v13-ERR4
W: Config flags size > 32. Exceeding bytes: 20030000.
W: Invalid config flags detected. Dropping resources: string-en-rGB-v13-ERR5
W: Config flags size > 32. Exceeding bytes: 20030000.
W: Invalid config flags detected. Dropping resources: bool-v13-ERR6
W: Config flags size > 32. Exceeding bytes: -17FD0000.
W: Invalid config flags detected. Dropping resources: bool-v13-ERR7
W: Config flags size > 32. Exceeding bytes: 20030000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR8
W: Config flags size > 32. Exceeding bytes: -17FD0000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR9
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x7f0b0007 dimen/content_entry_large_size, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
[Android Software Development] rossm1873:
hi, is there another like to download the apk multitool as the current link is not working for me. thankyou :)
[Android Software Development] hell_lock:
Getting this error while opening your site
[Android Software Development] N00BY0815:
Homepage still down... Error code:

Fatal error: Cannot redeclare user_delete() (previously declared in /home/apkmulti/public_html/modules/user/user.module:1649) in /home/apkmulti/public_html/phpbb3/includes/functions_user.php on line 603

Thanks, for having a look ;)
[Android Software Development] 12MaNy:
Damn.....

Fatal error: Cannot redeclare user_delete() (previously declared in /home/apkmulti/public_html/modules/user/user.module:1649) in /home/apkmulti/public_html/phpbb3/includes/functions_user.php on line 603
[Android Software Development] raziel23x:
I am working on fixing the issue hopefully have it up as soon as possible as i have ti send a ticket to my service provider as it was one of there server updates that caused the error
[Android Software Development] Razer(x):
Having problems with signing apks, where do i have to place the signapk.jar file?
[Android Software Development] bombadier:
Mines is in /android-sdk/tools which I have set up in my environment path so can call it from any folder works for me.
[Android Software Development] Razer(x):
So i have to place files in tools folder and then what? i want to use the 12 command to sign apks
[Android Software Development] bombadier:
Place signapk.jar in the tools folder then option 12 should sign the apk or whats the problem you are having?
[Android Software Development] Razer(x):
It used to work until i had to update SDK for Eclipse