chun0522 wrote:
我覺得還OK,那你可...(恕刪)
我在framework-res\res\values
<string name="factorytest_reboot">Reboot</string>
<string name="reboot">Reboot</string>
<string name="reboot_progress">Rebooting\u2026</string>
<string name="reboot_nb_confirm">Your machine will reboot.</string>
<string name="global_action_reboot">Reboot</string>
包回去,一堆錯誤~再去找那些錯誤
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Hermes>apktool d "C:\framework-res.apk" "C:\framework-res"
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
**********************************************
* Android Ñx╞Wªw¿⌠║⌠ *
* www.apk.tw *
* ╛▐º@º╣ª¿íAÑ⌠╖N┴Σ─~─≥ *
**********************************************
Press any key to continue . . .
'end' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Hermes>apktool b "C:\framework-res"
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\framework-res\res\values\strings.xml:526: error: Resource entry permlab_reboo
t is already defined.
C:\framework-res\res\values\strings.xml:522: Originally defined here.
C:\framework-res\res\values\strings.xml:527: error: Resource entry permdesc_rebo
ot is already defined.
C:\framework-res\res\values\strings.xml:523: Originally defined here.
C:\framework-res\res\values\strings.xml:762: error: Resource entry factorytest_r
eboot is already defined.
C:\framework-res\res\values\strings.xml:528: Originally defined here.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, D:\TempAll\APKTOOL40029958464860264
26.tmp, -x, -S, C:\framework-res\res, -M, C:\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, D:\T
empAll\APKTOOL4002995846486026426.tmp, -x, -S, C:\framework-res\res, -M, C:\fram
ework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
**********************************************
* Android Ñx╞Wªw¿⌠║⌠ *
* www.apk.tw *
* ╛▐º@º╣ª¿íAÑ⌠╖N┴Σ─~─≥ *
**********************************************
Press any key to continue . . .
'end' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Hermes>apktool b "C:\framework-res"
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\framework-res\res\values\strings.xml:524: error: Resource entry permdesc_rebo
ot is already defined.
C:\framework-res\res\values\strings.xml:522: Originally defined here.
C:\framework-res\res\values\strings.xml:758: error: Resource entry factorytest_r
eboot is already defined.
C:\framework-res\res\values\strings.xml:525: Originally defined here.
aapt: warning: string 'permlab_reboot' has no default translation in C:\framewor
k-res\res; found: ar bg bn bs ca cs da de el en_GB es es_ES es_US et eu fa fi fr
fr_CA gl hi hr hu in is it iw ja jv kk ko lt lv mk ms nb nl pl pt pt_BR pt_PT r
o ru sk sl sq sr su sv th tl tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'reboot_nb_confirm' has no default translation in C:\frame
work-res\res; found: zh_TW
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, D:\TempAll\APKTOOL40674242093533172
84.tmp, -x, -S, C:\framework-res\res, -M, C:\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, D:\T
empAll\APKTOOL4067424209353317284.tmp, -x, -S, C:\framework-res\res, -M, C:\fram
ework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
**********************************************
* Android Ñx╞Wªw¿⌠║⌠ *
* www.apk.tw *
* ╛▐º@º╣ª¿íAÑ⌠╖N┴Σ─~─≥ *
**********************************************
Press any key to continue . . .
'end' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Hermes>apktool b "C:\framework-res"
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\framework-res\res\values\strings.xml:755: error: Resource entry factorytest_r
eboot is already defined.
C:\framework-res\res\values\strings.xml:523: Originally defined here.
Exception in thread "main" aapt: warning: string 'js_dialog_title' has no defaul
t translation in C:\framework-res\res; found: ar bg bn bs ca cs da de el en_GB e
s es_ES es_US et eu fa fi fr fr_CA gl hi hr hu in is it iw ja jv kk ko lt lv mk
ms nb nl pl pt pt_BR pt_PT ro ru sk sl sq sr su sv th tl tr uk vi zh_CN zh_HK zh
_TW
aapt: warning: string 'permdesc_mount_unmount_filesystems' has no default transl
ation in C:\framework-res\res; found: ar bg bn bs ca cs da de el en en_CA en_GB
en_US es es_ES es_US et eu fa fi fr fr_CA gl hi hr hu in is it iw ja jv kk ko lt
lv mk ms nb nl pl pt pt_BR pt_PT ro ru sk sl sq sr su sv th tl tr uk vi zh_CN z
h_HK zh_TW
aapt: warning: string 'permdesc_reboot' has no default translation in C:\framewo
rk-res\res; found: ar bg bn bs ca cs da de el en en_CA en_GB en_US es es_ES es_U
S et eu fa fi fr fr_CA gl hi hr hu in is it iw ja jv kk ko lt lv mk ms nb nl pl
pt pt_BR pt_PT ro ru sk sl sq sr su sv th tl tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'permlab_reboot' has no default translation in C:\framewor
k-res\res; found: ar bg bn bs ca cs da de el en_GB es es_ES es_US et eu fa fi fr
fr_CA gl hi hr hu in is it iw ja jv kk ko lt lv mk ms nb nl pl pt pt_BR pt_PT r
o ru sk sl sq sr su sv th tl tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'reboot_nb_confirm' has no default translation in C:\frame
work-res\res; found: zh_TW
brut.androlib.AndrolibException: brut.common.BrutException: could not exec comma
nd: [aapt, p, -F, D:\TempAll\APKTOOL7853136711319786932.tmp, -x, -S, C:\framewor
k-res\res, -M, C:\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, D:\T
empAll\APKTOOL7853136711319786932.tmp, -x, -S, C:\framework-res\res, -M, C:\fram
ework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
**********************************************
* Android Ñx╞Wªw¿⌠║⌠ *
* www.apk.tw *
* ╛▐º@º╣ª¿íAÑ⌠╖N┴Σ─~─≥ *
**********************************************
Press any key to continue . . .
'end' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Hermes>apktool b "C:\framework-res"
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'factorytest_reboot' has no default translation in C:\fram
ework-res\res; found: ar bg bn bs ca cs da de el en_GB es es_ES es_US et eu fa f
i fr fr_CA gl hi hr hu in is it iw ja jv kk ko lt lv mk ms nb nl pl pt pt_BR pt_
PT ro ru sk sl sq sr su sv th tl tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'js_dialog_title' has no default translation in C:\framewo
rk-res\res; found: ar bg bn bs ca cs da de el en_GB es es_ES es_US et eu fa fi f
r fr_CA gl hi hr hu in is it iw ja jv kk ko lt lv mk ms nb nl pl pt pt_BR pt_PT
ro ru sk sl sq sr su sv th tl tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'permdesc_mount_unmount_filesystems' has no default transl
ation in C:\framework-res\res; found: ar bg bn bs ca cs da de el en en_CA en_GB
en_US es es_ES es_US et eu fa fi fr fr_CA gl hi hr hu in is it iw ja jv kk ko lt
lv mk ms nb nl pl pt pt_BR pt_PT ro ru sk sl sq sr su sv th tl tr uk vi zh_CN z
h_HK zh_TW
aapt: warning: string 'permdesc_reboot' has no default translation in C:\framewo
rk-res\res; found: ar bg bn bs ca cs da de el en en_CA en_GB en_US es es_ES es_U
S et eu fa fi fr fr_CA gl hi hr hu in is it iw ja jv kk ko lt lv mk ms nb nl pl
pt pt_BR pt_PT ro ru sk sl sq sr su sv th tl tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'permlab_reboot' has no default translation in C:\framewor
k-res\res; found: ar bg bn bs ca cs da de el en_GB es es_ES es_US et eu fa fi fr
fr_CA gl hi hr hu in is it iw ja jv kk ko lt lv mk ms nb nl pl pt pt_BR pt_PT r
o ru sk sl sq sr su sv th tl tr uk vi zh_CN zh_HK zh_TW
aapt: warning: string 'reboot_nb_confirm' has no default translation in C:\frame
work-res\res; found: zh_TW
I: Building apk file...
**********************************************
* Android Ñx╞Wªw¿⌠║⌠ *
* www.apk.tw *
* ╛▐º@º╣ª¿íAÑ⌠╖N┴Σ─~─≥ *
**********************************************
Press any key to continue . . .
'end' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Hermes>