Hello! I have Huawei U8500 with custom Android 2.2. I wanted to decode framework-res.apk with apktool, change anything and build it again. But I have troubles with it. First of all decoding:
Code:
C:\framework>apktool d framework-res.apk
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: 5500000048030000.
W: Invalid config flags detected. Dropping resources: array-ERR0
W: Config flags size > 32. Exceeding bytes: 7F00000058010000.
W: Invalid config flags detected. Dropping resources: array-ERR1
W: Config flags size > 32. Exceeding bytes: -4CFFFFFF97FF0000.
W: Invalid config flags detected. Dropping resources: array-ERR2
W: Config flags size > 32. Exceeding bytes: -18FCFFFF18FD0000.
W: Invalid config flags detected. Dropping resources: array-ERR3
I: Decoding resources...
I: Copying assets and libs...
C:\framework>
As you can see, it drops some resources. I tried to decode it with "--keep-broken-res":
Code:
C:\framework>apktool d --keep-broken-res framework-res.apk
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: 5500000048030000.
W: Invalid config flags detected: array-ERR0
W: Config flags size > 32. Exceeding bytes: 7F00000058010000.
W: Invalid config flags detected: array-ERR1
W: Config flags size > 32. Exceeding bytes: -4CFFFFFF97FF0000.
W: Invalid config flags detected: array-ERR2
W: Config flags size > 32. Exceeding bytes: -18FCFFFF18FD0000.
W: Invalid config flags detected: array-ERR3
I: Decoding resources...
I: Copying assets and libs...
C:\framework>
The difference is that for the second time in the "res" folder appeared 4 additional folders "values-ERR0", "values-ERR1", "values-ERR2" and "values-ERR3" with "arrays.xml" file in each. And also there is one more string in "public.xml", which was not there for the first time. The string is:
Code:
<public type="array" name="default_locales" id="0x01070005" />
Than I tried to build it (without any changes).
When I try to build framework-res, which was decoded without "--keep-broken-res" parameter I get this:
Code:
C:\framework>apktool b framework-res1 1.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\framework\framework-res1\res\values\public.xml:2395: error: Public entry iden
tifier 0x107001d entry index is larger than available symbols (index 29, total s
ymbols 29).
C:\framework\framework-res1\res\values\public.xml:2395: error: Public symbol arr
ay/carrier_properties declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Soontir\AppData\Local\Temp
\APKTOOL5080969896487671571.tmp, -x, -S, C:\framework\framework-res1\res, -M, C:
\framework\framework-res1\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:\U
sers\Soontir\AppData\Local\Temp\APKTOOL5080969896487671571.tmp, -x, -S, C:\frame
work\framework-res1\res, -M, C:\framework\framework-res1\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\framework>
And when I try to build framework-res, which was decoded with "--keep-broken-res" parameter I get this:
Code:
C:\framework>apktool b framework-res 1.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\framework\framework-res\res/values-ERR0
invalid resource directory name: C:\framework\framework-res\res/values-ERR1
invalid resource directory name: C:\framework\framework-res\res/values-ERR2
invalid resource directory name: C:\framework\framework-res\res/values-ERR3
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Soontir\AppData\Local\Temp
\APKTOOL5529805555528398812.tmp, -x, -S, C:\framework\framework-res\res, -M, C:\
framework\framework-res\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:\U
sers\Soontir\AppData\Local\Temp\APKTOOL5529805555528398812.tmp, -x, -S, C:\frame
work\framework-res\res, -M, C:\framework\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\framework>
Can someone help me with it, please?
Just in case framework-res.apk is attached.
https://code.google.com/p/android-apktool/issues/detail?id=128
Thank you for your answer, I'll try to fix these resources manually.
gamewpo clean
Soontir Fel said:
Thank you for your answer, I'll try to fix these resources manually.
Click to expand...
Click to collapse
How do you fix this manually? I am having the same problem.
Related
Hi:
Yes, I've Googled, searched the forum, etc.
I'm having a problem with the framework-res.apk from Revolution HD for the Amaze 4G. I have tried countless methods of decompiling / recompiling on my native linux system and a virtual XP system.
Yes, I did install the dependencies (if framework-res.apk and if com.htc.resources.apk). When I decompile I get some errors :
Code:
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR11
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
A quick google reveals that it's a just a warning and that I shouldn't have any problems.
Next error is during recompile
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
apktool\framework\res\values\anims.xml:3:error: Found tag anim where item is expected
apktool\framework\res\values\public.xml:6585: error: Public symbol anim/htc_ime_decelerate_interpolator declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, APKTOOL2735390385429398495.tmp, -x, -S, \apktool\framework\res, -M, \apktool\framework\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, \APKTOOL2735390385429398495.tmp, -x, -S, apktool\framework\res, -M, apktool\framework\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
A quick google reveals that I need to replace a line in /res/xml/values/anims.xml:
Replace:
Code:
<anim name="htc_ime_decelerate_interpolator">@anim/zzz_htc_ime_decelerate_interpolator</anim>
With
Code:
<item type="anim" name="htc_ime_decelerate_interpolator">@anim/zzz_htc_ime_decelerate_interpolator</item>
After doing that, framework-res compiles properly, however, on reboot I can't get past the lockscreen (com.android.phone has stopped ).
I tried it signed, unsigned, a dozen different versions of apktool, apk multi tool, FrameworkFlasher, etc.
Any ideas?
INFO:
I am trying to replace apns.xml with a custom one that I put together.
shameless
a shameless bump.......
Have you tried this one?
http://forum.xda-developers.com/showpost.php?p=23935070&postcount=14
I was having a lot of trouble with ICS myself and once I started using this one they went away
Downloading it now. Thanks!
I download APKTool and extract C:\APKTools.
When I run command "apktool.bat if framework-res.apk" (without quote).
Then I got this error.
Code:
C:\apktools>apktool.bat if framework-res.apk
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: -3FFD0000.
W: Invalid config flags detected: dimen-v13-ERR1
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01050001 dimen/thumbnail_height, config=-v13
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(Unknown Source)
at brut.androlib.Androlib.installFramework(Unknown Source)
at brut.apktool.Main.cmdInstallFramework(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
C:\apktools>
but when I extract another apk, it is fine. (but it load other framework)
Code:
C:\apktools>apktool.bat d "CZFX v3.5.5 apkmania.com.apk"
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\vm-win7\apktool\framework\1.apk
I: Copying assets and libs...
Is there any problem?
Thanks
I think you should state the location of your framework e.g apktool.bat if E:\framework-res.apk.
Sent from my GT-I9300 using xda app-developers app
Arsaw said:
I think you should state the location of your framework e.g apktool.bat if E:\framework-res.apk.
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Yes, framework-res.apk is in the same directory.
I follow this instruction.
http://forum.xda-developers.com/showthread.php?t=1427959
Well, I have a trouble with an apk game that i wanna mod, i extracted my apk with apk manager waiting that it will be modded by me, but when i tried to decompile i get this problem:
|12/05/2016 -- 19:55:24.00|
--------------------------------------------------------------------------
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) Client VM (build 25.91-b14, mixed mode, sharing)
Not found C:\Users\Gerardo Pèrez Vàsque\Downloads\Apk_Manager_5.0.2 e
n español\place-apk-here-for-modding\../place-apk-here-for-modding/signedair.com
.konami.ygo-1.apk
Not found C:\Users\Gerardo Pèrez Vàsque\Downloads\Apk_Manager_5.0.2 e
n español\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedair.c
om.konami.ygo-1.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Gerardo PÞrez VÓsque\apktool\frame
work\1.apk
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: -3FFD0000.
W: Invalid config flags detected: dimen-v13-ERR1
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionCode, value=0x000f6d39
I: Loading resource table from file: C:\Users\Gerardo PÞrez VÓsque\apktool\frame
work\1.apk
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected: dimen-v13-ERR2
W: Config flags size > 32. Exceeding bytes: -3FFD0000.
W: Invalid config flags detected: dimen-v13-ERR3
W: Could not decode attr value, using undecoded value instead: ns=android, name=
versionName, value=0x0000001d
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSeria
lizer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:
673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSer
ializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
I will waiting for your help
I am trying to recompile an APK of kodi. I keep getting this mess of code while using apktool and cant figure out how to correct the problem. I originally thought it was something I had done wrong in the editing process so to double check instead of editing anything I simply decompiled the original APK and tried to recompile without touching any of the files and I still receive this error. Any help is much appreciated. Thank you!
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Jeff\Desktop\YazooStructures\apk\ForkingTool\APK>apktool b a -o a.apk
I: Using Apktool 2.1.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: ERROR: Unknown option '--forced-package-id'
W: Android Asset Packaging Tool
W:
W: Usage:
W: aapt l[ist] [-v] [-a] file.{zip,jar,apk}
W: List contents of Zip-compatible archive.
W:
W: aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
W: badging Print the label and icon for the app declared in APK.
W: permissions Print the permissions from the APK.
W: resources Print the resource table from the APK.
W: configurations Print the configurations in the APK.
W: xmltree Print the compiled xmls in the given assets.
W: xmlstrings Print the strings of the given compiled xml assets.
W:
W: aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \
W: [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \
Exception in thread "main" W: [--debug-mode] [--min-sdk-version VAL] [--
target-sdk-version VAL] \
W: [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL]
\
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br
utException: could not exec (exit code = 2): [aapt, p, --forced-package-id, 127,
--min-sdk-version, 21, --target-sdk-version, 22, --version-code, 1760000, --ver
sion-name, 17.6, -F, C:\Users\Jeff\AppData\Local\Temp\APKTOOL1726186263921521136
5.tmp, -0, arsc, -0, properties, -0, woff2, -0, swf, -0, zip, -0, txt, -0, asset
s/addons/script.module.pil/lib/EGG-INFO/zip-safe, -0, py, -0, xml, -0, pth, -0,
arsc, -I, C:\Users\Jeff\apktool\framework\1.apk, -S, C:\Users\Jeff\Desktop\Yazoo
Structures\apk\ForkingTool\APK\a\res, -M, C:\Users\Jeff\Desktop\YazooStructures\
apk\ForkingTool\APK\a\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:371)
at brut.androlib.Androlib.build(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec (exit code = 2): [aapt, p, --forced-package-id, 127, --min-sdk-version, 21
, --target-sdk-version, 22, --version-code, 1760000, --version-name, 17.6, -F, C
:\Users\Jeff\AppData\Local\Temp\APKTOOL17261862639215211365.tmp, -0, arsc, -0, p
roperties, -0, woff2, -0, swf, -0, zip, -0, txt, -0, assets/addons/script.module
.pil/lib/EGG-INFO/zip-safe, -0, py, -0, xml, -0, pth, -0, arsc, -I, C:\Users\Jef
f\apktool\framework\1.apk, -S, C:\Users\Jeff\Desktop\YazooStructures\apk\Forking
Tool\APK\a\res, -M, C:\Users\Jeff\Desktop\YazooStructures\apk\ForkingTool\APK\a\
AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:436)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 2): [aapt, p,
--forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 22, --ver
sion-code, 1760000, --version-name, 17.6, -F, C:\Users\Jeff\AppData\Local\Temp\A
PKTOOL17261862639215211365.tmp, -0, arsc, -0, properties, -0, woff2, -0, swf, -0
, zip, -0, txt, -0, assets/addons/script.module.pil/lib/EGG-INFO/zip-safe, -0, p
y, -0, xml, -0, pth, -0, arsc, -I, C:\Users\Jeff\apktool\framework\1.apk, -S, C:
\Users\Jeff\Desktop\YazooStructures\apk\ForkingTool\APK\a\res, -M, C:\Users\Jeff
\Desktop\YazooStructures\apk\ForkingTool\APK\a\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:430)
... 6 more
W: [--rename-manifest-package PACKAGE] \
W: [--rename-instrumentation-target-package PACKAGE] \
W: [--utf16] [--auto-add-overlay] \
W: [--max-res-version VAL] \
W: [-I base-package [-I base-package ...]] \
W: [-A asset-source-dir] [-G class-list-file] [-P public-definitions-fi
le] \
W: [-S resource-sources [-S resource-sources ...]] [-F apk-file]
[-J R-file-dir] \
W: [--product product1,product2,...] \
W: [raw-files-dir [raw-files-dir] ...]
W:
W: Package the android resources. It will read assets and resources that are
W: supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -
R
W: options control which files are output.
W:
W: aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]
W: Delete specified files from Zip-compatible archive.
W:
W: aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]
W: Add specified files to Zip-compatible archive.
W:
W: aapt v[ersion]
W: Print program version.
W:
W: Modifiers:
W: -a print Android-specific data (resources, manifest) when listing
W: -c specify which configurations to include. The default is all
W: configurations. The value of the parameter should be a comma
W: separated list of configuration values. Locales should be specified
W: as either a language or language-region pair. Some examples:
W: en
W: port,en
W: port,land,en_US
W: If you put the special locale, zz_ZZ on the list, it will perform
W: pseudolocalization on the default locale, modifying all of the
W: strings so you can look for strings that missed the
W: internationalization process. For example:
W: port,land,zz_ZZ
W: -d one or more device assets to include, separated by commas
W: -f force overwrite of existing files
W: -g specify a pixel tolerance to force images to grayscale, default 0
W: -j specify a jar or zip file containing classes to include
W: -k junk path of file(s) added
W: -m make package directories under location specified by -J
W: -u update existing packages (add new, replace older, remove deleted files
)
W: -v verbose output
W: -x create extending (non-application) resource IDs
W: -z require localization of resource attributes marked with
W: localization="suggested"
W: -A additional directory in which to find raw asset files
W: -G A file to output proguard options into.
W: -F specify the apk file to output
W: -I add an existing package to base include set
W: -J specify where to output R.java resource constant definitions
W: -M specify full path to AndroidManifest.xml to include in zip
W: -P specify where to output public resource definitions
W: -S directory in which to find resources. Multiple directories will be sc
anned
W: and the first match found (left to right) will take precedence.
W: -0 specifies an additional extension for which such files will not
W: be stored compressed in the .apk. An empty string means to not
W: compress any files at all.
W: --debug-mode
W: inserts android:debuggable="true" in to the application node of the
W: manifest, making the application debuggable even on production devices
.
W: --min-sdk-version
W: inserts android:minSdkVersion in to manifest. If the version is 7 or
W: higher, the default encoding for resources will be in UTF-8.
W: --target-sdk-version
W: inserts android:targetSdkVersion in to manifest.
W: --max-res-version
W: ignores versioned resource directories above the given value.
W: --values
W: when used with "dump resources" also includes resource values.
W: --version-code
W: inserts android:versionCode in to manifest.
W: --version-name
W: inserts android:versionName in to manifest.
W: --custom-package
W: generates R.java into a different package.
W: --auto-add-overlay
W: Automatically add resources that are only in overlays.
W: --rename-manifest-package
W: Rewrite the manifest so that its package name is the package name
W: given here. Relative class names (for example .Foo) will be
W: changed to absolute names with the old package so that the code
W: does not need to change.
W: --rename-instrumentation-target-package
W: Rewrite the manifest so that all of its instrumentation
W: components target the given package. Useful when used in
W: conjunction with --rename-manifest-package to fix tests against
W: a package that has been renamed.
W: --product
W: Specifies which variant to choose for strings that have
W: product variants
W: --utf16
W: changes default encoding for resources to UTF-16. Only useful when AP
I
W: level is set to 7 or higher where the default encoding is UTF-8.
W: --non-constant-id
W: Make the resources ID non constant. This is required to make an R java
class
W: that does not contain the final value but is used to make reusable com
piled
W: libraries that need to access resources.
C:\Users\Jeff\Desktop\YazooStructures\apk\ForkingTool\APK>
Hello im trying to use Advanced ApkTool v4.2.0 !
when i want to recompile i got this :
HTML:
Log For : Komachi1.apk
Log Type : Recompiling
Log Recorded At : 07 2019-12- 21:29:16,43
Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak
------------------------------------------------------
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_0.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #178 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_0.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_1.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #129 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_1.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_2.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #166 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_2.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_def_0.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #180 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_def_0.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_3.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #153 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_3.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_def_1.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #68 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_def_1.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_1.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #160 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_1.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_2.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_2.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_3.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #172 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_3.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_0.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_0.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_0.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_0.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_3.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #197 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_3.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_2.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_2.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_1.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_1.9.png
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Ziko\AppData\Local\Temp\brut_util_Jar_6977338750880722860.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 18, --version-code, 4, --version-name, 1.0.2, --no-version-vectors, -F, C:\Users\Ziko\AppData\Local\Temp\APKTOOL3074840337446226583.tmp, -0, arsc, -0, arsc, -I, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res, -M, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:477)
at brut.androlib.Androlib.buildResources(Androlib.java:411)
at brut.androlib.Androlib.build(Androlib.java:310)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Ziko\AppData\Local\Temp\brut_util_Jar_6977338750880722860.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 18, --version-code, 4, --version-name, 1.0.2, --no-version-vectors, -F, C:\Users\Ziko\AppData\Local\Temp\APKTOOL3074840337446226583.tmp, -0, arsc, -0, arsc, -I, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res, -M, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:440)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:463)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Ziko\AppData\Local\Temp\brut_util_Jar_6977338750880722860.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 18, --version-code, 4, --version-name, 1.0.2, --no-version-vectors, -F, C:\Users\Ziko\AppData\Local\Temp\APKTOOL3074840337446226583.tmp, -0, arsc, -0, arsc, -I, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res, -M, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:434)
... 6 more
------------------------------------------------------
how can i find the 9-Patch and How to fix it ? Thank you