Will someone please help me to figure this out
i have jdk6, android sdk installed, my path is set up correctly and im using wanams apk manager
im running all this from root of c drive
I want to Set Logs type to "View by All Call Logs" - Hide SMS from Call Logs
i have decompiled, made the changes and it recompiles perfect
i drop it into my rom, perform a wipe and flash - my contacts then fc's on me...i just cant figure out why...
i have attached my modded file if someone could take a look
Click to expand...
Click to collapse
And for enabling call recording, i get this:
Code:
--------------------------------------------------------------------------
|23/07/2012 -- 10:58:15.51|
--------------------------------------------------------------------------
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/signedSecPhone.apk
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/unsignedSecPhone.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\****\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc6-xhdpi/c
all_video_call_icon_dim.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc5-xhdpi/c
all_video_call_icon_dim.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc6-land-xh
dpi/call_video_call_icon_dim.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc5-land-xh
dpi/call_video_call_icon_dim.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc6-land-xh
dpi/call_video_call_icon.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc5-xhdpi/c
all_video_call_icon.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc6-xhdpi/c
all_video_call_icon.png
S: Could not decode file, replacing by FALSE value: drawable-mcc450-mnc5-land-xh
dpi/call_video_call_icon.png
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file
: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
The system cannot find the file specified.
Press any key to continue . . .
EDIT
I then decompiled and recompiled without making changes and got this different set of errors
Code:
--------------------------------------------------------------------------
|23/07/2012 -- 11:13:01.23|
--------------------------------------------------------------------------
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/signedSecPhone.apk
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/unsignedSecPhone.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\****\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...
aapt: warning: string 'auto_dialing_guide' has no default translation in C:\Apk_
Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_enable_1' has no default translation in C:\Ap
k_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_enable_2' has no default translation in C:\Ap
k_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_enable_3' has no default translation in C:\Ap
k_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_enable_disable' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_guide_1' has no default translation in C:\Apk
_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'autodialing_guide_2' has no default translation in C:\Apk
_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'callFailed_timeout_408_487' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: pt
aapt: warning: string 'country_setting_1' has no default translation in C:\Apk_M
anager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'country_setting_2' has no default translation in C:\Apk_M
anager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'country_setting_3' has no default translation in C:\Apk_M
anager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'reject_cause_location_reg_fail' has no default translatio
n in C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: pt
aapt: warning: string 'reject_cause_location_registering' has no default transla
tion in C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: iw pt
aapt: warning: string 'reject_cause_skt_registering' has no default translation
in C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: iw pt
aapt: warning: string 'target_country_setting' has no default translation in C:\
Apk_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
aapt: warning: string 'what_is_autodialing' has no default translation in C:\Apk
_Manager_ICS\other\..\projects\SecPhone.apk\res; found: ko
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-es\strings.xml:195:
error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-es\strings.xml:196:
error: Unexpected end tag string
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-es-rUS\strings.xml:
200: error: Multiple substitutions specified in non-positional format; did you m
ean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-es-rUS\strings.xml:
201: error: Unexpected end tag string
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-it\strings.xml:197:
error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res\values-it\strings.xml:198:
error: Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\****\AppData\Local\Temp\APK
TOOL6557143836137260780.tmp, -I, C:\Users\****\apktool\framework\1.apk, -S, C:\Ap
k_Manager_ICS\other\..\projects\SecPhone.apk\res, -M, C:\Apk_Manager_ICS\other\.
.\projects\SecPhone.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\****\AppData\Local\Temp\APKTOOL6557143836137260780.tmp, -I, C:\Users\****\apk
tool\framework\1.apk, -S, C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\res,
-M, C:\Apk_Manager_ICS\other\..\projects\SecPhone.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
The system cannot find the file specified.
Press any key to continue . . .
C:\Apk_Manager_ICS>
i tried doing this with apktool only and got this:
Code:
icrosoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\****>apktool d "E:\Phone\Android\Galaxy SIII\XXBLG1 **\system\app\SecContacts.apk"
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\****\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\****>apktool b C:\Users\****\SecContacts
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\****\AppData\Local\Temp\APK
TOOL289705730655537096.tmp, -I, C:\Users\****\apktool\framework\1.apk, -S, C:\Use
rs\****\SecContacts\res, -M, C:\Users\****\SecContacts\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\****\AppData\Local\Temp\APKTOOL289705730655537096.tmp, -I, C:\Users\****\apkt
ool\framework\1.apk, -S, C:\Users\****\SecContacts\res, -M, C:\Users\****\SecConta
cts\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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 th
e 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
Click to expand...
Click to collapse
i just want to make my own mods instead of using someone elses files....
still cant get it fixed...does anyone want to help? I thought this was a developer forum...
framework-res.apk wont compile properly after decompiling an making NO changes
Code:
|23/07/2012 -- 14:38:03.56|
--------------------------------------------------------------------------
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03, mixed mode)
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/signedframework-res.apk
Could Not Find C:\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-f
or-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'feature_stock_edaily_closed' has no default translation i
n C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: es_US iw ja
ko pt_BR zh_CN zh_HK zh_TW
aapt: warning: string 'feature_stock_edaily_delayed' has no default translation
in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: es_US iw j
a ko pt_BR zh_CN zh_HK zh_TW
aapt: warning: string 'permdesc_fm_receiver' has no default translation in C:\Ap
k_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'permlab_fm_receiver' has no default translation in C:\Apk
_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_allowAttachments' has no default translation i
n C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_allow_smimeencryptionalgonegotiation' has no d
efault translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res
; found: en_US
aapt: warning: string 'policydesc_allow_smimesoftcerts' has no default translati
on in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_limitAttachments' has no default translation i
n C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_max_calendarage' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_max_emailage' has no default translation in C:
\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_max_emailbodytruncsize' has no default transla
tion in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policydesc_max_htmlemailbodytruncsize' has no default tra
nslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: e
n_US
aapt: warning: string 'policydesc_require_encryptedsmimemessages' has no default
translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; foun
d: en_US
aapt: warning: string 'policydesc_require_encryptionsmimealgorithm' has no defau
lt translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; fo
und: en_US
aapt: warning: string 'policydesc_require_manualsyncroaming' has no default tran
slation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en
_US
aapt: warning: string 'policydesc_require_signedsmimealgorithm' has no default t
ranslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found:
en_US
aapt: warning: string 'policydesc_require_signedsmimemessages' has no default tr
anslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found:
en_US
aapt: warning: string 'policylab_allowAttachments' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_allow_smimeencryptionalgonegotiation' has no de
fault translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res;
found: en_US
aapt: warning: string 'policylab_allow_smimesoftcerts' has no default translatio
n in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_limitAttachments' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_max_calendarage' has no default translation in
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_max_emailage' has no default translation in C:\
Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_max_emailbodytruncsize' has no default translat
ion in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_US
aapt: warning: string 'policylab_max_htmlemailbodytruncsize' has no default tran
slation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en
_US
aapt: warning: string 'policylab_require_encryptedsmimemessages' has no default
translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found
: en_US
aapt: warning: string 'policylab_require_encryptionsmimealgorithm' has no defaul
t translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; fou
nd: en_US
aapt: warning: string 'policylab_require_manualsyncroaming' has no default trans
lation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_
US
aapt: warning: string 'policylab_require_signedsmimealgorithm' has no default tr
anslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found:
en_US
aapt: warning: string 'policylab_require_signedsmimemessages' has no default tra
nslation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: e
n_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no defau
lt translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; fo
und: en_GB en_US es pt
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation
in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; found: en_GB en_U
S es pt
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no defau
lt translation in C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res; fo
und: en_GB en_US es pt
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values\plurals.xml:79
: error: Multiple substitutions specified in non-positional format; did you mean
to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values\plurals.xml:79
: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rGB\plurals
.xml:79: error: Multiple substitutions specified in non-positional format; did y
ou mean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rGB\plurals
.xml:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rUS\plurals
.xml:79: error: Multiple substitutions specified in non-positional format; did y
ou mean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-en-rUS\plurals
.xml:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-es\plurals.xml
:79: error: Multiple substitutions specified in non-positional format; did you m
ean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-es\plurals.xml
:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-pt\plurals.xml
:79: error: Multiple substitutions specified in non-positional format; did you m
ean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-pt\plurals.xml
:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-mcc310-mnc260-
en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional
format; did you mean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-mcc310-mnc260-
en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-mcc310-mnc410-
en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional
format; did you mean to add the formatted="false" attribute?
C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\res\values-mcc310-mnc410-
en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\DSA\AppData\Local\Temp\APK
TOOL3382395325731499172.tmp, -x, -S, C:\Apk_Manager_ICS\other\..\projects\framew
ork-res.apk\res, -M, C:\Apk_Manager_ICS\other\..\projects\framework-res.apk\Andr
oidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\****\AppData\Local\Temp\APKTOOL3382395325731499172.tmp, -x, -S, C:\Apk_Manag
er_ICS\other\..\projects\framework-res.apk\res, -M, C:\Apk_Manager_ICS\other\..\
projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
The system cannot find the file specified.
Press any key to continue . . .
Try taking a look at this thread in Android development http://forum.xda-developers.com/showthread.php?t=1752201
Sent from my GT-I9300 using Tapatalk 2
_neutron_ said:
still cant get it fixed...does anyone want to help? I thought this was a developer forum...
Click to expand...
Click to collapse
It is but expecting a developer to be at your instant service is stupid .
A developer who knows the answer has to see your post first they don't sit here waiting but are in their hidey holes developing .
jje
I've had this exact same issue decompiling and recompiling.
I'm going to try my Linux box next if I don't get any joy
JJEgan said:
It is but expecting a developer to be at your instant service is stupid .
A developer who knows the answer has to see your post first they don't sit here waiting but are in their hidey holes developing .
jje
Click to expand...
Click to collapse
Thanks for the name calling the first time you speak to me...from behind a pc on the web no less....very manly of you JJ
_neutron_ said:
Thanks for the name calling the first time you speak to me...from behind a pc on the web no less....very manly of you JJ
Click to expand...
Click to collapse
If it helps you, you can install S Voice and disable the double click from the settings of the app. That just decreased my home button time significantly.
_neutron_ said:
Thanks for the name calling the first time you speak to me...from behind a pc on the web no less....very manly of you JJ
Click to expand...
Click to collapse
I have a feeling no developer will help you when you have that kind of attitude.
I was going to post here earlier until I saw the smart comment you made in your second post.
Sent from my GT-I9300 using xda premium
Kryten2k35 said:
If it helps you, you can install S Voice and disable the double click from the settings of the app. That just decreased my home button time significantly.
Click to expand...
Click to collapse
Thanks but thats not what im after
im building a rom - i can mod/decompile/recompile .jar files perfect, i know how to set a rom up blah blah blah - i just cant decompile ANY apks without an error or the relevant app fc'ing on me when flashed
The only things i have on my pc are the android sdk, the jdk, a firmware, some mods and multiple apk editing software - i have re-flashed windows and everything else around 20 times. i have followed 19 different tutorials, downloaded 13 different packages that people say will allow me to do what i want but they dont
i know i have the relevant programs installed correctly, and i know my path is correct (otherwise apk manager wouldnt pick java up and wont work)
I just wanted to know what all the people on this forum are using as they are bringing ou mods and roms every day...not everyone uses linux
i have some background knowledge in android and know how to read smali/xml files, i know how to make the mods and where the mods needs to go....i just cannot get the decompiling/recompiling sorted at all....this has taken me months to get this sorted
nodstuff said:
I have a feeling no developer will help you when you have that kind of attitude.
I was going to post here earlier until I saw the smart comment you made in your second post.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
i suppose im meant to feel like im missing out on your expertise now?
my second post in this thread was THAT BAD it caused you to not want to help AND to make a derogatory comment? i think you need to get out more
and JJ calling me stupid is ok because he has a lot of posts and thanks? hypocrite much?
I didn't make any derogatory comment, I was merely stating facts.
You won't get far here when you behave like that.
You are very angry and there is no need for it.
Sent from my GT-I9300 using xda premium
nodstuff said:
I didn't make any derogatory comment, I was merely stating facts.
You won't get far here when you behave like that.
You are very angry and there is no need for it.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
lol, and your opinion counts for....? i thought so
im not angry (i love being called angry by a person on the web based on the content of one post - baseless drivel), frustrated yes...theres a difference 'o great one'
_neutron_ said:
Thanks but thats not what im after
im building a rom - i can mod/decompile/recompile .jar files perfect, i know how to set a rom up blah blah blah - i just cant decompile ANY apks without an error or the relevant app fc'ing on me when flashed
The only things i have on my pc are the android sdk, the jdk, a firmware, some mods and multiple apk editing software - i have re-flashed windows and everything else around 20 times. i have followed 19 different tutorials, downloaded 13 different packages that people say will allow me to do what i want but they dont
i know i have the relevant programs installed correctly, and i know my path is correct (otherwise apk manager wouldnt pick java up and wont work)
I just wanted to know what all the people on this forum are using as they are bringing ou mods and roms every day...not everyone uses linux
i have some background knowledge in android and know how to read smali/xml files, i know how to make the mods and where the mods needs to go....i just cannot get the decompiling/recompiling sorted at all....this has taken me months to get this sorted
Click to expand...
Click to collapse
I'm in the same position. I have JD for Eclipse installed and such, but I can't get APK's to recompile at all. I get the exact same errors.
Nobody around here is going to hold your hand and help you out with an attitude like that.
Sent from my GT-I9300 using Tapatalk 2
1. Use APKTool directly instead of wrappers. You learn more this way, I promise.
2. You need a newer aapt.exe in your PATH. Grab the Windows platform-tools from here: http://www.hariadi.org/android/manually-download-of-android-sdk-tools-and-sdk-platform-tools/, take the aapt.exe and place it in a folder that's in your %PATH% (or install the Android SDK)
3. APKTool ships with an older framework-res. Grab /system/framework/framework-res.apk (and optionally twframework-res.apk) and run "apktool if framework-res.apk"
(I haven't read your post fully so there may be something I missed, but the above should get you started)
qwerty12 said:
1. Use APKTool directly instead of wrappers. You learn more this way, I promise.
2. You need a newer aapt.exe in your PATH. Grab the Windows platform-tools from here: http://www.hariadi.org/android/manually-download-of-android-sdk-tools-and-sdk-platform-tools/, take the aapt.exe and place it in a folder that's in your %PATH% (or install the Android SDK)
3. APKTool ships with an older framework-res. Grab /system/framework/framework-res.apk (and optionally twframework-res.apk) and run "apktool if framework-res.apk"
(I haven't read your post fully so there may be something I missed, but the above should get you started)
Click to expand...
Click to collapse
Thanks fella
Ive got all that sorted, using apktool returns errors also...so im not sure
As i mentioned i can de/recompile .jar files no problem...and some 'normal' system apks work fine...its only the important ones that i want to mod that are causing issues
_neutron_ said:
using apktool returns errors also...so im not sure
Click to expand...
Click to collapse
Could you give me a log of what happens when you use APKTool directly, please? To decompile android.policy.jar I have to use this version (I don't recommend using it for everything as it doesn't format the resources' XML correctly - but it's fine for making edits with) or I get a "bad magic value" error
Will do, im not at home right now
edit:
complete log of using apktool
As you can see, it loads and decompiles fine, but wont recompile an unmodified framework
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\****>apktool
Apktool v1.4.5 - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wi?niewski <[email protected]>
Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
Usage: apktool [-q|--quiet OR -v|--verbose] COMMAND [...]
COMMANDs are:
d[ecode] [OPTS] <file.apk> [<dir>]
Decode <file.apk> to <dir>.
OPTS:
-s, --no-src
Do not decode sources.
-r, --no-res
Do not decode resources.
-d, --debug
Decode in debug mode. Check project page for more info.
-f, --force
Force delete destination directory.
-t <tag>, --frame-tag <tag>
Try to use framework files tagged by <tag>.
--keep-broken-res
Use if there was an error and some resources were dropped, e.g.:
"Invalid config flags detected. Dropping resources", but you
want to decode them anyway, even with errors. You will have to
fix them manually before building.
b[uild] [OPTS] [<app_path>] [<out_file>]
Build an apk from already decoded application located in <app_path>.
It will automatically detect, whether files was changed and perform
needed steps only.
If you omit <app_path> then current directory will be used.
If you omit <out_file> then <app_path>/dist/<name_of_original.apk>
will be used.
OPTS:
-f, --force-all
Skip changes detection and build all files.
-d, --debug
Build in debug mode. Check project page for more info.
if|install-framework <framework.apk> [<tag>]
Install framework file to your system.
For additional info, see: http://code.google.com/p/android-apktool/
C:\Users\****>apktool d C:\framework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\****>apktool b C:\Users\****\framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\****\AppData\Local\Temp\APK
TOOL1954503919927585308.tmp, -x, -S, C:\Users\****\framework-res\res, -M, C:\User
s\****\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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:\U
sers\****\AppData\Local\Temp\APKTOOL1954503919927585308.tmp, -x, -S, C:\Users\****
\framework-res\res, -M, C:\Users\****\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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 th
e 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
C:\Users\****>
_neutron_ said:
Will do, im not at home right now
edit:
Click to expand...
Click to collapse
ption: could not exec command: [aapt, p, -F, C:\Users\****\AppData\Local\Temp\APK
Click to expand...
Click to collapse
Like I said in my previous post, you need to have aapt.exe in a folder that's in your path
Related
Please Refer the below link first to know what procedure i have followed.
http://forum.xda-developers.com/showthread.php?t=1479493
After running make command to make a ported zip file, got this error. Please tell me what about the error is and how can i fix that.
Code:
cp /home/jayasimha/thepatcher/miui/system/framework/framework-miui-res.apk .build/ZIP/system/framework/framework-miui-res.apk
build .build/framework-res.apk...
--------------------------------------------
cp -r framework-res .build
/home/jayasimha/thepatcher/tools/apktool b .build/framework-res .build/framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'wifi_available' has no default translation in /home/jayasimha/thepatcher/i9100G/.build/framework-res/res; found: ms
aapt: warning: string 'wifi_available_detailed' has no default translation in /home/jayasimha/thepatcher/i9100G/.build/framework-res/res; found: ms
I: Building apk file...
cp apks-unsinged to zip dirs
cp .build/framework-res.apk .build/ZIP/system/framework/framework-res.apk
build .build/MIUISystemUI.apk...
--------------------------------------------
cp -r SystemUI .build
/home/jayasimha/thepatcher/tools/apktool b .build/SystemUI .build/MIUISystemUI.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
res/drawable-hdpi/status_bar_background.png:0: error: Resource entry status_bar_background is already defined.
res/drawable-hdpi/status_bar_background.9.png:0: Originally defined here.
/home/jayasimha/thepatcher/i9100G/.build/SystemUI/res/values/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Panel'.
/home/jayasimha/thepatcher/i9100G/.build/SystemUI/res/values/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Holo.Light.Panel'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL2651416676899838457.tmp, -I, /home/jayasimha/apktool/framework/1.apk, -S, /home/jayasimha/thepatcher/i9100G/.build/SystemUI/res, -M, /home/jayasimha/thepatcher/i9100G/.build/SystemUI/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/APKTOOL2651416676899838457.tmp, -I, /home/jayasimha/apktool/framework/1.apk, -S, /home/jayasimha/thepatcher/i9100G/.build/SystemUI/res, -M, /home/jayasimha/thepatcher/i9100G/.build/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [.build/MIUISystemUI.apk] Error 1
Hey guys, I need some help here.
I can decompile apks fine, got past the bad magic value error, ICS APKs decompile with no problems at all.
When I make changes... better yet, even when I don't change a thing and go to compile the project, I get an error like this:
Code:
--------------------------------------------------------------------------
|03/15/2012 Thu -- 16:10:40.42|
--------------------------------------------------------------------------
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
Could Not Find D:\Android\APKMod\place-apk-here-for-modding\../place-apk-here-for-modding/signedPhone.apk
Could Not Find D:\Android\APKMod\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedPhone.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\YG007\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\YG007\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Framework installed to: C:\Users\YG007\apktool\framework\2.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\YG007\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\YG007\apktool\framework\2.apk
I: Loaded.
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...
D:\Android\APKMod\other\..\projects\Phone.apk\res\layout\pref_dialog_editpin.xml:2: error: Error: Resource is not public. (at 'id' with value '@android:id/edittext_container').
aapt: warning: string 'contactsFavoritesLabel' has no default translation in D:\Android\APKMod\other\..\projects\Phone.apk\res; found: bg cs da de el en_US es es_ES et fi fr ga hr hu is it kk ko lt lv mk nb nl pl pt ro ru sk sl sr sv tr uk
aapt: warning: string 'contactsIconLabel' has no default translation in D:\Android\APKMod\other\..\projects\Phone.apk\res; found: bg cs da de el en_US es es_ES et fi fr ga hr hu is it kk ko lt lv mk nb nl pl pt ro ru sk sl sr sv tr uk
aapt: warning: string 'dialerIconLabel' has no default translation in D:\Android\APKMod\other\..\projects\Phone.apk\res; found: bg cs da de el en_US es es_ES et fi fr ga hr hu is it kk ko lt lv mk nb nl pl pt ro ru sk sl sr sv tr uk
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\YG007\AppData\Local\Temp\APKTOOL4181477595211452909.tmp, -I, C:\Users\YG007\apktool\framework\1.apk, -I, C:\Users\YG007\apktool\framework\2.apk, -S, D:\Android\APKMod\other\..\projects\Phone.apk\res, -M, D:\Android\APKMod\other\..\projects\Phone.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\YG007\AppData\Local\Temp\APKTOOL4181477595211452909.tmp, -I, C:\Users\YG007\apktool\framework\1.apk, -I, C:\Users\YG007\apktool\framework\2.apk, -S, D:\Android\APKMod\other\..\projects\Phone.apk\res, -M, D:\Android\APKMod\other\..\projects\Phone.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I'm using the LPQ rom, stock, deodexed.
1.apk was pulled from framework-res.apk from the LPQ ROM.
2.apk was pulled from twframework-res.apk from the LPQ ROM.
I've used the search function to find a solution, but I couldn't so I'm posting here.
Anyone know whats going on? Any solutions??
I've been trying for many days to get this to work, it's driving me nuts!!
I can decompile and recompile framework-res.apk and other apps successfully, but every time I decompile a theme chooser *.apk I get errors trying to recompile.
Is there a trick to this? I am running Reaper 3.0(CyanogenMod 7) installed the framework via installation options(that's all), have paths to platform-tools, tools etc.. The latest Android SDK installed (and all the others..)
Once again I'n only getting these errors Recompiling TC Themes.
Here is an Excerpt of my APKMULTITOOL.LOG, the start middle and end.
(full log is also attached)
|
Code:
Thu 06/21/2012 -- 22:05:11.28|
--------------------------------------------------------------------------
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode, sharing)
Could Not Find C:\android-sdk\place-apk-here-for-modding\../place-apk-here-for-modding/signedcom.araviel.theme.aerish.apk
Could Not Find C:\android-sdk\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedcom.araviel.theme.aerish.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\twIIce\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W/ResourceType( 3988): Bad string block: string #14 extends to 1847, past end at 60
W/ResourceType( 3988): Bad string block: string #13 extends to 1842, past end at 60
W/ResourceType( 3988): Bad string block: string #12 extends to 1075, past end at 60
W/ResourceType( 3988): Bad string block: string #11 extends to 815, past end at 60
W/ResourceType( 3988): Bad string block: string #10 extends to 812, past end at 60
W/ResourceType( 3988): Bad string block: string #9 extends to 1061, past end at 60
W/ResourceType( 3988): Bad string block: string #8 extends to 1575, past end at 60
W/ResourceType( 3988): Bad string block: string #7 extends to 2075, past end at 60..................
res\xml\com_melodis_midomiMusicIdentifier.xml: Invalid file name: must contain only [a-z0-9_.]
res\xml\com_melodis_midomiMusicIdentifier.xml: Invalid file name: must contain only [a-z0-9_.]
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:9: error: Error: No resource found that matches the given name: attr 'android:shadowColor'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:10: error: Error: No resource found that matches the given name: attr 'android:shadowDx'.
C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res\values\styles.xml:11: error: Error: No resource found that matches the given name: attr 'android:shadowDy'..............................................................................................................................................................................................
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\twIIce\LOCALS~1\Temp\APKTOOL7854039488745011416.tmp, -x, -I, C:\Documents and Settings\twIIce\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res, -M, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:302)
at brut.androlib.Androlib.buildResources(Androlib.java:249)
at brut.androlib.Androlib.build(Androlib.java:172)
at brut.androlib.Androlib.build(Androlib.java:155)
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:\DOCUME~1\twIIce\LOCALS~1\Temp\APKTOOL7854039488745011416.tmp, -x, -I, C:\Documents and Settings\twIIce\apktool\framework\1.apk, -S, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\res, -M, C:\android-sdk\platform-tools\..\projects\com.araviel.theme.aerish.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I would GREATLY appreciate it if anyone could shed some light on this for me, I've been googling for days, but sadly (at the moment) I've no programming skills whatsoever and sorting through technical posts is confusing at best.
Bump!
twiice said:
Bump!
Click to expand...
Click to collapse
Did you found a solution ?
Ive been trying for days too ... no sucess
I tried to decompiling framework-res.apk and I succeded.I made all the changes I need to make and tried to recompile but I get this error
Code:
[*] D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res
recompiling D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res...
W: Could not find sources
I: Building resources...
aapt: warning: string 'gps_assisted_data_download' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: ko
aapt: warning: string 'lockscreen_too_many_failed_attempts_countdown' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: az bg ca cs da de el en_GB en_US es es_ES es_US et eu fi fr ga gl hr hu hy is is_IS it ka kk ko lt lv mk nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv tr uk uz
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:83: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:83: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rGB\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rGB\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-pt\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-pt\plurals.xml:79: error: Found tag </item> where </plurals> is expected
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vijai\AppData\Local\Temp\APKTOOL3129400460395038332.tmp, -x, -S, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\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, C:\Users\Vijai\AppData\Local\Temp\APKTOOL3129400460395038332.tmp, -x, -S, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I have tried all the tools including wannam apktool,apk multitool,original apktool,auto apktool and many others.But still no luck.
I have latest java JDK installed and confirmed it working and have platform-tools added in path variables too.Still no luck.Could someone please help me out?
vijai2011 said:
I tried to decompiling framework-res.apk and I succeded.I made all the changes I need to make and tried to recompile but I get this error
Code:
[*] D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res
recompiling D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res...
W: Could not find sources
I: Building resources...
aapt: warning: string 'gps_assisted_data_download' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: ko
aapt: warning: string 'lockscreen_too_many_failed_attempts_countdown' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: az bg ca cs da de el en_GB en_US es es_ES es_US et eu fi fr ga gl hr hu hy is is_IS it ka kk ko lt lv mk nb nl pl pt pt_BR pt_PT ro ru sk sl sr sv tr uk uz
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no default translation in D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: en_GB es pt
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:83: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values\plurals.xml:83: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rGB\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rGB\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-en-rUS\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-es\plurals.xml:79: error: Found tag </item> where </plurals> is expected
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-pt\plurals.xml:79: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res\values-pt\plurals.xml:79: error: Found tag </item> where </plurals> is expected
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Vijai\AppData\Local\Temp\APKTOOL3129400460395038332.tmp, -x, -S, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\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, C:\Users\Vijai\AppData\Local\Temp\APKTOOL3129400460395038332.tmp, -x, -S, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res, -M, D:\AutoAPKTool2.0.4a\AutoAPKTool2.0.4\_INPUT_APK\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I have tried all the tools including wannam apktool,apk multitool,original apktool,auto apktool and many others.But still no luck.
I have latest java JDK installed and confirmed it working and have platform-tools added in path variables too.Still no luck.Could someone please help me out?
Click to expand...
Click to collapse
Ah, the multiple substitutions error. Nasty. Are you using the most recent version of apktool?
I would suggest trying Tickle My Android, which has the most recent version of apktool built in and just happens to be in the link in my signature.
If that doesn't work, it's worth reporting the issue here: http://forum.xda-developers.com/showthread.php?t=1755243
This is the official apktool thread and is run by the actual person who's taken over making the tool.
Ticklefish said:
Ah, the multiple substitutions error. Nasty. Are you using the most recent version of apktool?
I would suggest trying Tickle My Android, which has the most recent version of apktool built in and just happens to be in the link in my signature.
If that doesn't work, it's worth reporting the issue here: http://forum.xda-developers.com/showthread.php?t=1755243
This is the official apktool thread and is run by the actual person who's taken over making the tool.
Click to expand...
Click to collapse
I used the latest apktool and aapt from the thread you mentioned and it worked flawlessly And FYI I used you tool v11 but got compilation errors and found the cause .Could I PM you the solution for it or can I do it here.
vijai2011 said:
I used the latest apktool and aapt from the thread you mentioned and it worked flawlessly And FYI I used you tool v11 but got compilation errors and found the cause .Could I PM you the solution for it or can I do it here.
Click to expand...
Click to collapse
You're welcome to do it here.
Did you say you've used version 11 of my tool? It's only on version 4.0...
vijai2011 said:
I used the latest apktool and aapt from the thread you mentioned and it worked flawlessly And FYI I used you tool v11 but got compilation errors and found the cause .Could I PM you the solution for it or can I do it here.
Click to expand...
Click to collapse
Maybe this could help even if the latest apktool doesn't work:
http://forum.xda-developers.com/showthread.php?p=30025707
please help me in edit mtk app ( any one )...because I have an error in apktool when I try to compile it
I use framework-res.apk and mediatek-res.apk but the error still appear every time I try to complie even with no change....
This is Error Log :
Code:
--------------------------------------------------
Batch ApkTool : 3.5.0
SMALI : smali-2.2.jar
API level : 23
APKTOOL : apktool_2.2.0.jar
build in EXPERT mode : NO
Sign output APKs : YES
--------------------------------------------------
[*] Installing framework framework-res.apk
I: Framework installed to: bin\framework\1.apk
[*] Installing framework mediatek-res.apk
I: Framework installed to: bin\framework\2.apk
[*] Installing framework SystemUI.apk
I: Framework installed to: bin\framework\127.apk
[*] Recompiling TeleService
I: Using Apktool 2.2.0_0621
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'absent_num' has no default translation.
W: warning: string 'callFailed_cb_enabled' has no default translation.
W: warning: string 'callFailed_congestion' has no default translation.
W: warning: string 'callFailed_dsac_restricted' has no default translation.
W: warning: string 'callFailed_dsac_restricted_emergency' has no default translation.
W: warning: string 'callFailed_dsac_restricted_normal' has no default translation.
W: warning: string 'callFailed_fdn_only' has no default translation.
W: warning: string 'callFailed_invalid_credentials' has no default translation.
W: warning: string 'callFailed_limitExceeded' has no default translation.
W: warning: string 'callFailed_noSignal' has no default translation.
W: warning: string 'callFailed_number_unreachable' has no default translation.
W: warning: string 'callFailed_outOfService' has no default translation.
W: warning: string 'callFailed_out_of_network' has no default translation.
W: warning: string 'callFailed_powerOff' has no default translation.
W: warning: string 'callFailed_server_error' has no default translation.
W: warning: string 'callFailed_server_unreachable' has no default translation.
W: warning: string 'callFailed_timedOut' has no default translation.
W: warning: string 'callFailed_unobtainable_number' has no default translation.
W: warning: string 'callFailed_userBusy' has no default translation.
W: warning: string 'call_lost' has no default translation.
W: warning: string 'confCall' has no default translation.
W: warning: string 'prefer_2g' has no default translation.
W: warning: string 'prefer_2g_summary' has no default translation.
W: warning: string 'preferred_network_mode_lte_cdma_summary' has no default translation.
W: G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\res\layout\sim_widget_view.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@com.mediatek:style/ImageSwitch').
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Lord\AppData\Local\Temp\BAT_temp\brut_util_Jar_7730726614405888323.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-eng.kupyxa4444.1452701589, -F, C:\Users\Lord\AppData\Local\Temp\BAT_temp\APKTOOL884800051196399711.tmp, -0, arsc, -0, arsc, -I, .\framework\1.apk, -S, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\res, -M, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\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 = 1): [C:\Users\Lord\AppData\Local\Temp\BAT_temp\brut_util_Jar_7730726614405888323.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-eng.kupyxa4444.1452701589, -F, C:\Users\Lord\AppData\Local\Temp\BAT_temp\APKTOOL884800051196399711.tmp, -0, arsc, -0, arsc, -I, .\framework\1.apk, -S, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\res, -M, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:436)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Lord\AppData\Local\Temp\BAT_temp\brut_util_Jar_7730726614405888323.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-eng.kupyxa4444.1452701589, -F, C:\Users\Lord\AppData\Local\Temp\BAT_temp\APKTOOL884800051196399711.tmp, -0, arsc, -0, arsc, -I, .\framework\1.apk, -S, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\res, -M, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:430)
... 6 more
[*] ---> Error recompiling "TeleService"
DONE with 1 ERRORS.
please help me....