Io usavo apk multi tool.....installi il framework tramite il setup e setti le directory.
Dopo cominci a decompilare i tuoi apk...tipo phone....
Visualizzazione stampabile
Ma voi riuscite con il PHONE della CM10.1?codice:I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\
es\values-de\strings.xml:208: error: Multiple substitutions specified in non-po
itional format; did you mean to add the formatted="false" attribute?
C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\
es\values-de\strings.xml:209: error: Unexpected end tag string
C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\
es\values-es\strings.xml:216: error: Multiple substitutions specified in non-po
itional format; did you mean to add the formatted="false" attribute?
C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\
es\values-es\strings.xml:217: error: Unexpected end tag string
C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\
es\values-es-rUS\strings.xml:173: error: Multiple substitutions specified in no
-positional format; did you mean to add the formatted="false" attribute?
C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\
es\values-es-rUS\strings.xml:174: error: Unexpected end tag string
C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\
es\values-it\strings.xml:219: error: Multiple substitutions specified in non-po
itional format; did you mean to add the formatted="false" attribute?
C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\
es\values-it\strings.xml:220: error: Unexpected end tag string
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Andro
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\ALESSI~1.ALE\AppData\Lo
al\Temp\APKTOOL8365207088700794156.tmp, -0, arsc, -I, C:\Users\Alessio.Alessio-
C\apktool\framework\1.apk, -S, C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-To
l\other\..\projects\Phone.apk\res, -M, C:\Users\Alessio.Alessio-PC\Desktop\APK-
ulti-Tool\other\..\projects\Phone.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could no
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C
\Users\ALESSI~1.ALE\AppData\Local\Temp\APKTOOL8365207088700794156.tmp, -0, arsc
-I, C:\Users\Alessio.Alessio-PC\apktool\framework\1.apk, -S, C:\Users\Alessio.
lessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\res, -M, C:\Users\
lessio.Alessio-PC\Desktop\APK-Multi-Tool\other\..\projects\Phone.apk\AndroidMan
fest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.ja
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-s
k-version, 17, --target-sdk-version, 17, -F, C:\Users\ALESSI~1.ALE\AppData\Loca
\Temp\APKTOOL8365207088700794156.tmp, -0, arsc, -I, C:\Users\Alessio.Alessio-PC
apktool\framework\1.apk, -S, C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool
other\..\projects\Phone.apk\res, -M, C:\Users\Alessio.Alessio-PC\Desktop\APK-Mu
ti-Tool\other\..\projects\Phone.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.ja
a:355)
... 6 more
(questo è l'apk preso dalla versione del 2 aprile 2013... non ho cambiato nulla... decompilato e ricompilato subito)
Sia apktool che apkmultitool mi rilasciano gli stessi errori in ricompilazione. :(
Dovrò pensare di correggere manualmente i vari XML prima di ricompilare... forse è l'unica soluzione :(
Con gli APK della CM7 era tutto molto più semplice.
si,a me riesce..ma di preciso cosa vai a modificare?
Inviato dal mio GT-I9300 con Tapatalk 2
Figurati;)
Può darsi che eikcas pone in essere le sue modifiche direttamente quando compila la rom dai sorgenti..la butto lì..
Vedrò di informarmi...nel caso riuscissi..posterò qui:)
Non è così;)
Dipende dalle versioni di apktool.
In tutte le versioni precedenti alla 1.5.0 non era possibile compilare correttamente tutti gli apk di sistema di ICS-JB:)
E allora dicci pure a noi che tool usi......................................rotfl
Nulla :DQuote:
si,a me riesce..ma di preciso cosa vai a modificare?
come ho scritto nel precedente post... anche se tu mi hai battuto sul tempo, mentre editavo :D
Gli altri correttamente :)
comunque sto provando a correggere gli errori... e... man mano che correggo provo a ricompilare...
l'errore corretto scompare dalla lista :)
a breve forse riuscirò a compilare anch'io il Phone! :)
Nel res/values/strings.xml abbiamo %1$d٪
mentre nei vari linguistici con errore troviamo %1$d%
sto sostituendo il primo al secondo...
a presto novità! :D
Dopo le correzioni manuali...
:)codice:C:\Users\Alessio.Alessio-PC\Desktop\APK-Multi-Tool\other>apktool b outphone
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
Non dovrebbero esserci quei simboli..il che vuol dire che il problema non sta solo nella compilazione ma anche nella decompilazione..
Non avendo sul pc una cm 10.1 ho provato con l'ultima aokp: stessa cosa.
Sarà colpa di apktool 1.5.2..
Ora non sono al pc..provate a decompilare pure il Systemui, il framework e il contacts.apk con il metodo da me indicato nel mio penultimo post..
Se il problema persistesse anche con i predetti apk..ci sarebbe poco da aggiungere...:)
Inviato dal mio GT-S5570 con Tapatalk 2
Il framework-res non ha problemi...
proverò gli altri files e farò sapere :)
Contacts non ha problemi...
SystemUI non ha problemi!
Ho decompilato e ricompilato senza modificare nulla :)
Sembra che il problema lo si riscontri solo con il Phone!