Probleme APKTOOL Decompile/Compile HELP :(

K

kleenaMax

Neues Mitglied
1
Moin Leute,

ich hab ein Problem und komm einfach nicht mehr weiter :blushing:

Ich möchte Modifikationen an der Email.apk und Gmail.apk durchführen.
Möchte den WIDGET der APP einfach nur Transparent machen und die Schriftfarbe anpassen.

Habe ICS 4.0.4 (AOSP Android Open Kang Projekt) und eine Galaxy Nexus.
Arbeiten bzw. versuchen tu ich das ganze mit dem APKTOOL 1.4.3

Die Apps befindensich auf meinem Rechner,
Java JDK und Android SDK ist alles soweit funktionsfähig und läuft auch.

Ich mach das genau gleich nach dieser Anleitung hier: How to decompile/compile using apktools

Leider immer wieder ohne Erfolg.
Das decmopilen der Email APK funktioniert auch noch soweit ohne Probleme :)
Wenn ich jetzt aber ändereungen in einer XML vornehme und dann wieder Compilen will, kommt andauernd dieser beschissene Fehler:

Code:
C:\Users\Mbrut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, -F, C:\Users\MAXIMI~1\AppData\Local\Temp\APKTOOL12890883
93909371449.tmp, -I, C:\Users\Maximilian\apktool\framework\1.apk, -S, C:\Users\M
aximilian\Desktop\ICS\Email\res, -M, C:\Users\Maximilian\Desktop\ICS\Email\Andro
idManifest.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\MAXIMI~1\AppData\Local\Temp\APKTOOL1289088393909371449.tmp, -I, C:\Users\Ma
ximilian\apktool\framework\1.apk, -S, C:\Users\Maximilian\Desktop\ICS\Email\res,
 -M, C:\Users\Maximilian\Desktop\ICS\Email\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more

ich hab mich schon ewigkeiten durch google geschlagen und verschiedene Lösungsansätze probiert doch es scheint keiner wirklich zu funktionieren :confused2:

Hat irgendjemand von euch die passende Lösung ? Mache jetzt schon ewig dran rum -.-
Habe auch schon versucht, die APP zu decompilen und keine Modifikation vor zu nehmen und dann direkt wieder zu compilen, leider auch ohne Erfolg.

Weiß mir langsam keinen Rat mehr und geb es wohl bald auf wenn ich nicht bald hinter die Lösung komme -.-

Vielleicht könnt ihr mir ja weiterhelfen :)
Danke
 
Zuletzt bearbeitet:
Schau mal ca 1 Zeile oberhalb des kopierten Textes.
Sicherlich hast Du einen Syntax-Error in der XML-Datei.
Kopier mal bitte ab der Zeile, wo Du "java -jar apktool.jar b Email" eingegeben hast.
 
der spuckt mir nen haufen fehler aus: hier mal der komplette code:
hab in der XML colors im ordner values jeweils die farbcodes auf ffffffff umgestellt und gespeichert.




C:\Users\Maximilian\Desktop\ICS>java -jar apktool.jar b email
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\three_pane_collapsible_impl.xml
:11: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/fogged_glass').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\three_pane_impl.xml:4: error: E
rror: No resource found that matches the given name (at 'id' with value '@id/lef
t_pane').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\three_pane_impl.xml:6: error: E
rror: No resource found that matches the given name (at 'id' with value '@id/mid
dle_pane').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\three_pane_impl.xml:7: error: E
rror: No resource found that matches the given name (at 'id' with value '@id/mes
sage_command_buttons').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\three_pane_impl.xml:9: error: E
rror: No resource found that matches the given name (at 'id' with value '@id/rig
ht_pane').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\waiting_for_sync_message.xml:2:
error: Error: No resource found that matches the given name (at 'id' with value
'@id/waiting_for_sync_message').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\waiting_for_sync_message.xml:5:
error: Error: No resource found that matches the given name (at 'id' with value
'@id/progress').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\waiting_for_sync_message.xml:6:
error: Error: No resource found that matches the given name (at 'id' with value
'@id/title').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\waiting_for_sync_message.xml:6:
error: Error: No resource found that matches the given name (at 'layout_toRight
Of' with value '@id/progress').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\waiting_for_sync_message.xml:7:
error: Error: No resource found that matches the given name (at 'layout_toRight
Of' with value '@id/progress').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\waiting_for_sync_message.xml:7:
error: Error: No resource found that matches the given name (at 'layout_below'
with value '@id/title').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout-sw600dp\waiting_for_sync_messag
e.xml:2: error: Error: No resource found that matches the given name (at 'id' wi
th value '@id/waiting_for_sync_message').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget.xml:5: error: Error: No
resource found that matches the given name (at 'id' with value '@id/widget_logo'
).
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget.xml:6: error: Error: No
resource found that matches the given name (at 'id' with value '@id/widget_heade
r').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget.xml:7: error: Error: No
resource found that matches the given name (at 'id' with value '@id/widget_title
').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget.xml:8: error: Error: No
resource found that matches the given name (at 'id' with value '@id/widget_tap')
.
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget.xml:10: error: Error: No
resource found that matches the given name (at 'id' with value '@id/widget_coun
t').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget.xml:11: error: Error: No
resource found that matches the given name (at 'id' with value '@id/widget_comp
ose').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget.xml:13: error: Error: No
resource found that matches the given name (at 'id' with value '@id/message_lis
t').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget.xml:14: error: Error: No
resource found that matches the given name (at 'id' with value '@id/tap_to_conf
igure').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget_list_item.xml:2: error:
Error: No resource found that matches the given name (at 'id' with value '@id/wi
dget_message').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget_list_item.xml:4: error:
Error: No resource found that matches the given name (at 'id' with value '@id/co
lor_chip').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget_list_item.xml:7: error:
Error: No resource found that matches the given name (at 'id' with value '@id/wi
dget_from').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget_list_item.xml:8: error:
Error: No resource found that matches the given name (at 'id' with value '@id/wi
dget_invite').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget_list_item.xml:9: error:
Error: No resource found that matches the given name (at 'id' with value '@id/wi
dget_attachment').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget_list_item.xml:10: error:
Error: No resource found that matches the given name (at 'id' with value '@id/w
idget_date').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget_list_item.xml:12: error:
Error: No resource found that matches the given name (at 'id' with value '@id/w
idget_subject').
C:\Users\Maximilian\Desktop\ICS\Email\res\layout\widget_loading.xml:4: error: Er
ror: No resource found that matches the given name (at 'id' with value '@id/load
ing_text').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\account_settings_add_account_opti
on.xml:4: error: Error: No resource found that matches the given name (at 'id' w
ith value '@id/add_new_account').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\account_settings_add_acco
unt_option.xml:4: error: Error: No resource found that matches the given name (a
t 'id' with value '@id/add_new_account').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\email_activity_options.xml:4: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/compose').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\email_activity_options.xml:5: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/search').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\email_activity_options.xml:6: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/show_all_mailboxes').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\email_activity_options.xml:7: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/refresh').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\email_activity_options.xml:8: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/newer').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\email_activity_options.xml:9: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/older').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\email_activity_options.xml:10: er
ror: Error: No resource found that matches the given name (at 'id' with value '@
id/mailbox_settings').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\email_activity_options.xml:11: er
ror: Error: No resource found that matches the given name (at 'id' with value '@
id/account_settings').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\emaiException in thread "
main" l_activity_options.xml:4: error: Error: No resource found that matches the
given name (at 'id' with value '@id/compose').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\email_activity_options.xm
l:5: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/search').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\email_activity_options.xm
l:6: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/refresh').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\email_activity_options.xm
l:7: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/newer').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\email_activity_options.xm
l:8: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/older').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\email_activity_options.xm
l:9: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/mailbox_settings').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\email_activity_options.xm
l:10: error: Error: No resource found that matches the given name (at 'id' with
value '@id/account_settings').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_compose_option.xml:4: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/send').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_compose_option.xml:5: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/add_attachment').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_compose_option.xml:6: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/add_cc_bcc').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_compose_option.xml:7: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/save').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_compose_option.xml:8: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/discard').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_compose_option.xml:9: err
or: Error: No resource found that matches the given name (at 'id' with value '@i
d/show_quick_text_list_dialog').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_compose_option.xml:10: er
ror: Error: No resource found that matches the given name (at 'id' with value '@
id/settings').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\message_compose_option.xm
l:4: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/send').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\message_compose_option.xm
l:5: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/save').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\message_compose_option.xm
l:6: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/discard').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\message_compose_option.xm
l:7: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/show_quick_text_list_dialog').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\message_compose_option.xm
l:8: error: Error: No resource found that matches the given name (at 'id' with v
alue '@id/settings').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_header_overflow_menu.xml:
4: error: Error: No resource found that matches the given name (at 'id' with val
ue '@id/reply').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_header_overflow_menu.xml:
5: error: Error: No resource found that matches the given name (at 'id' with val
ue '@id/reply_all').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_header_overflow_menu.xml:
6: error: Error: No resource found that matches the given name (at 'id' with val
ue '@id/forward').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_list_fragment_cab_options
.xml:4: error: Error: No resource found that matches the given name (at 'id' wit
h value '@id/delete').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_list_fragment_cab_options
.xml:5: error: Error: No resource found that matches the given name (at 'id' wit
h value '@id/move').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_list_fragment_cab_options
.xml:6: error: Error: No resource found that matches the given name (at 'id' wit
h value '@id/mark_read').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_list_fragment_cab_options
.xml:7: error: Error: No resource found that matches the given name (at 'id' wit
h value '@id/mark_unread').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_list_fragment_cab_options
.xml:8: error: Error: No resource found that matches the given name (at 'id' wit
h value '@id/add_star').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_list_fragment_cab_options
.xml:9: error: Error: No resource found that matches the given name (at 'id' wit
h value '@id/remove_star').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_list_fragment_option.xml:
4: error: Error: No resource found that matches the given name (at 'id' with val
ue '@id/send').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_view_fragment_option.xml:
4: error: Error: No resource found that matches the given name (at 'id' with val
ue '@id/move').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_view_fragment_option.xml:
5: error: Error: No resource found that matches the given name (at 'id' with val
ue '@id/delete').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\message_view_fragment_option.xml:
6: error: Error: No resource found that matches the given name (at 'id' with val
ue '@id/mark_as_unread').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\message_view_fragment_opt
ion.xml:4: error: Error: No resource found that matches the given name (at 'id'
with value '@id/delete').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\message_view_fragment_opt
ion.xml:5: error: Error: No resource found that matches the given name (at 'id'
with value '@id/move').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu-sw600dp\message_view_fragment_opt
ion.xml:6: error: Error: No resource found that matches the given name (at 'id'
with value '@id/mark_as_unread').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:4: error
: Error: No resource found that matches the given name (at 'id' with value '@id/
PHONE_MENU').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:5: error
: Error: No resource found that matches the given name (at 'id' with value '@id/
dial_context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:6: error
: Error: No resource found that matches the given name (at 'id' with value '@id/
sms_context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:7: error
: Error: No resource found that matches the given name (at 'id' with value '@id/
add_contact_context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:8: error
: Error: No resource found that matches the given name (at 'id' with value '@id/
copy_phone_context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:10: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/EMAIL_MENU').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:11: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/email_context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:12: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/copy_mail_context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:14: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/GEO_MENU').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:15: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/map_context_menu_id').
C:\Users\Mbrut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, -F, C:\Users\MAXIMI~1\AppData\Local\Temp\APKTOOL58531587
07372150601.tmp, -I, C:\Users\Maximilian\apktool\framework\1.apk, -S, C:\Users\M
aximilian\Desktop\ICS\Email\res, -M, C:\Users\Maximilian\Desktop\ICS\Email\Andro
idManifest.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\MAXIMI~1\AppData\Local\Temp\APKTOOL5853158707372150601.tmp, -I, C:\Users\Ma
ximilian\apktool\framework\1.apk, -S, C:\Users\Maximilian\Desktop\ICS\Email\res,
-M, C:\Users\Maximilian\Desktop\ICS\Email\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
aximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:16: error: Error:
No resource found that matches the given name (at 'id' with value '@id/copy_geo_
context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:18: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/ANCHOR_MENU').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:19: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/open_context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:20: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/copy_link_context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:21: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/share_link_context_menu_id').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:23: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/HELP_FEEDBACK_GROUP').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:24: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/help_info_menu_item').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\webview_context_menu.xml:25: erro
r: Error: No resource found that matches the given name (at 'id' with value '@id
/feedback_menu_item').
C:\Users\Maximilian\Desktop\ICS\Email\res\menu\welcome.xml:4: error: Error: No r
esource found that matches the given name (at 'id' with value '@id/account_setti
ngs').
 
Zuletzt bearbeitet:
kleinerkathe schrieb:
Warum holst dir den Sourcecode (entsprechend deiner gewünschten Android-Version) nicht direkt und bearbeitest ihn dann?

https://github.com/android/platform_packages_apps_email
(nicht offizielles Git-Repository ... Nur nen "online"-Mirror den ich schnell gefunden hab :)

Und dann ? ich hab ja Probleme beim Compilieren und nicht beim Bearbeiten... Versteh glaub gerade nicht wie sich mein Problem dadurch beseitigen lässt :)
Kannst mir deine Aussage bisschen genauer erklären ?

Einzige was ich machen will ist die Email.apk folgendermaßen zu bearbeiten: der Widget soll transparent werden, dass ist auch soweit kein Problem, die einzelnen Bilder zu bearbeiten.
Jetzt will ich aber noch in der XML Colors.xml im Ordner Values die Schriftfarbe in weiß(ffffffff) ändern, damit ich den Text auch lesen kann...
Beim Compilieren kommen dann die Fehler
 
Du brauchst <Android-Sdk>\platform-tools in deinem Datei-Suchpfad. Dann sollte erst auch aapt Funden können.

Gesendet von meinem MB525 mit Tapatalk 2
 
maniac103 schrieb:
Du brauchst <Android-Sdk>\platform-tools in deinem Datei-Suchpfad. Dann sollte erst auch aapt Funden können.

Gesendet von meinem MB525 mit Tapatalk 2

habe ich auch schon versucht, leider ohne erfolg, kommt beim compilieren der gleiche fehler
 
der fehler steht doch da: der findet ids nicht...
 
Fr4gg0r schrieb:
der fehler steht doch da: der findet ids nicht...

ist ganz egal wo ich die dateien weider compilieren will auch wenn z.B. alles in : "C:\Program Files (x86)\Android\android-sdk\platform-tools" oder sonst wo liegt, bringt er mir genau den gleichen Fehler nur mit eben dem entsprechenden Pfad.
:thumbdn:
 
.-.
schau einfach noch ob die erste id über die er meckert in der public.xml und der ids.xml ist im values ordner.
 
Fr4gg0r schrieb:
.-.
schau einfach noch ob die erste id über die er meckert in der public.xml und der ids.xml ist im values ordner.


jopa, gerade überprüft. alle stehen dort drin.
 
Decompiliren und sofortiges Compilieren wchlägt bei dieser APK bei mir fehl. Aber es findet sich ein netter lateinischer Text als Test.html, der Absicht sein könnte..

Gesendet von meinem Galaxy Nexus
 
Jetzt melde ich mich hier auch mal.
Habe ein deodexed System laufen und versuche die Rosie.apk zu bearbeiten. Die Classes.dex hab ich aus der APK entfernt und mit baksmali auseinander genommen.

Das decompilieren klappt problemlos und auch die Modifikationen (.smali, .xml, etc.) gingen gut von der Hand.
Allerdings wollte ich jetzt die App kompilieren und bekomme wiedermal einen Fehler:

Code:
C:\Android>apktool b rosie
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
    (skipping index file 'C:\Android\rosie\res\drawable\Thumbs.db')
    (skipping index file 'C:\Android\rosie\res\drawable-hdpi\Thumbs.db')
    (skipping index file 'C:\Android\rosie\res\drawable-land-hdpi\Thumbs.db')
    (skipping index file 'C:\Android\rosie\res\drawable-port-hdpi\Thumbs.db')
invalid resource directory name: C:\Android\rosie\res/drawable-sw480dp-long-port
-hdpi
invalid resource directory name: C:\Android\rosie\res/values-sw320dp-long-port-h
dpi
invalid resource directory name: C:\Android\rosie\res/values-sw360dp-long-port-h
dpi
invalid resource directory name: C:\Android\rosie\res/values-sw480dp-long-port-h
dpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOKUME~1\XPMUser\LOKALE~1\Temp\A
PKTOOL435715783773269962.tmp, -I, C:\Dokumente und Einstellungen\XPMUser\apktool
\framework\1.apk, -I, C:\Dokumente und Einstellungen\XPMUser\apktool\framework\2
.apk, -S, C:\Android\rosie\res, -M, C:\Android\rosie\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:\D
OKUME~1\XPMUser\LOKALE~1\Temp\APKTOOL435715783773269962.tmp, -I, C:\Dokumente un
d Einstellungen\XPMUser\apktool\framework\1.apk, -I, C:\Dokumente und Einstellun
gen\XPMUser\apktool\framework\2.apk, -S, C:\Android\rosie\res, -M, C:\Android\ro
sie\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more
Nachdem dekompilieren der Rosie.apk befinden sich in dem Ordner folgende Ordner bzw. Dateien:

- assets
- res
- AndroidManifest.xml
- apktool.yml

Wenn ich es mit apktool b rosie.apk versuche bekomme ich diese Meldung:

Code:
C:\Android>apktool b rosie.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
        at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
        at brut.androlib.Androlib.build(Androlib.java:159)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:182)
        at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
        at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
        at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
        ... 4 more

Auch wenn ich die App dekompiliere und dann direkt wieder kompiliere klappt es nicht...
Warum geht das dekompilieren problemlos aber das kompilieren nicht?
 
Weil dir -wie dem OP auch und wie oben erwähnt - aapt im exe-Suchpfad fehlt. Wenn du das fixt, wird es funktionieren.

Gesendet von meinem MB525 mit Tapatalk 2
 
Aktuellste aapt.exe, apktool.bat und apktool.jar liegen under C:\Windows.
Wenn ich das jetzt richtig verstanden hab muss der Prompt auf C:\Windows aufgemacht werden?!

Also anstatt:

Code:
C:\Android>apktool b rosie.apk

Dann:

Code:
C:\Windows>apktool b C:\Android\rosie.apk

Wenn ich flasch liege bitte ich um Aufklärung :D
Oder gibt es bei Sense 3.6 Apk´s noch etwas zu beachten?
 
Zuletzt bearbeitet:
Postet Eure Probleme am besten direkt in brut`s apktool Thread bzw. als issue. Bei beiden apk´s (ICS Rosie und ICS email) sind die compile errors bekannt und bereits im issue Tracker aufgenommen. Bei der ICS email kann man das umgehen, indem man direkt von Google oder Cyanogen source arbeitet, bei Sense ICS Rosie wird es schwierig.

Ist die email aus einer stock ODEXED oder einer DEODEXED ROM? Im zweiten Falle mal versuchen, ob es klappt diese ohne die classes.dex zu dekompilieren und wieder zu kompilieren (ist oft ein funktionierender workaround, sofern nicht in den smalis gearbeitet werden muss).

Alternativ mal mit dieser inoffiziellen apktool Version versuchen, allerdings wird es ev. bei diesen beiden speziellen Problem Bären trotzdem mühsam bleiben.

Miscellaneous - Minus
 
für ics rosie hab ich ne geodexte version von nem port genommen, läuft.
 
Schrenz schrieb:
Aktuellste aapt.exe, apktool.bat und apktool.jar liegen under C:\Windows.
Wenn ich das jetzt richtig verstanden hab muss der Prompt auf C:\Windows aufgemacht werden?!

Also anstatt:

Code:
C:\Android>apktool b rosie.apk

Dann:

Code:
C:\Windows>apktool b C:\Android\rosie.apk

Wenn ich flasch liege bitte ich um Aufklärung :D
Oder gibt es bei Sense 3.6 Apk´s noch etwas zu beachten?

Pack die aapt.exe in den gleichen Ordner, wie deine apktool.jar, aber bitte nicht in den Windows Ordner (z.B. in C:\apktool). Dann musst Du natürlich apktool im entsprechenden Ordner ansprechen ( C:\apktool>apktool b rosie.apk ) .
 
Zuletzt bearbeitet:
hab auch nen problem beim komelieren:-(
hab mir mal die mms.apk vorgenommen um die hintergrundfarbe zu ändern aber beim kompelieren kommt folgende fehlermeldung,hatte ich noch nie.

C:\apktool>apktool b -f mms
I: Smaling...
I: Building resources...
C:\apktool\mms\res\values\plurals.xml:9: error: Multiple substitutions specified
in non-positional format; did you mean to add the formatted="false" attribute?
C:\apktool\mms\res\values\plurals.xml:9: error: Found tag </item> where </plural
s> is expected
C:\apktool\mms\res\values\public.xml:41: error: Public symbol drawable/light_blu
e_background declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOKUME~1\jos\LOKALE~1\Temp\APKTO
OL6246489155558833997.tmp, -I, C:\Dokumente und Einstellungen\jos\apktool\framew
ork\1.apk, -S, C:\apktool\mms\res, -M, C:\apktool\mms\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:\D
OKUME~1\jos\LOKALE~1\Temp\APKTOOL6246489155558833997.tmp, -I, C:\Dokumente und E
instellungen\jos\apktool\framework\1.apk, -S, C:\apktool\mms\res, -M, C:\apktool
\mms\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

C:\apktool>


hoffe mir kann jemand helfen
 

Ähnliche Themen

S
Antworten
4
Aufrufe
991
Sempervivum
S
R
Antworten
3
Aufrufe
1.615
Ritartet
R
N
Antworten
8
Aufrufe
1.015
NerkJ
N
Zurück
Oben Unten