| | #1 (permalink) |
| Android Experte Registriert seit: 13.07.2010
Beiträge: 588
Abgegebene Danke: 29
Erhielt 69 Danke für 42 Beiträge
| ich würde gern den Hintergrund der Einstellungen (da, wo Töne, Display,... einzustellen sind) ändern und wollte euch fragen, ob ihr wisst wo ich zu suchen habe. Ich finde einfach keine png die dafür verantwortlich sein könnten und bei anderen ROM's sind es auch definitv Grafiken. Ich danke schonmal Nik |
| | |
| | #2 (permalink) |
| Android Guru Modell: [modded black] Samsung Galaxy S II Registriert seit: 05.02.2010
Beiträge: 3.287
Abgegebene Danke: 281
Erhielt 691 Danke für 514 Beiträge
|
Evt ist es die "profile_preference_layout.xml", welche angepasst werden muss. Code: <RelativeLayout android:id="@android:attr/theme" android:background="@android:drawable/menuitem_background" android:focusable="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="16.0sp" android:layout_marginTop="6.0sp" android:layout_marginRight="6.0sp" android:layout_marginBottom="6.0sp" android:layout_weight="1.0"> Allerdings gebe ich keine Gewähr auf correctness! Wäre ein Versuch wert. Dann ist aber noch die Schriftfarbe zu ändern, weil weiß auf weiß ...
__________________ «bãndït» Phone: Samsung GT-I9100 - ROM: [mod. black] HyDrOG3N-ICS # Sakaschi - Kernel: Fluxi XX Kernel ICS - Baseband: XXLP6 |
| | |
| Folgender Benutzer bedankt sich bei Bandit für diesen Beitrag: | Dodge (26.06.2011) |
| | #4 (permalink) | |
| Android-Hilfe.de Mitglied Registriert seit: 02.01.2011
Beiträge: 113
Abgegebene Danke: 12
Erhielt 21 Danke für 14 Beiträge
|
Ich hänge mich hier mal mit an. Nik und ich möchten die Änderungen im FroyoMod fürs Milestone machen. Zitat:
Ich habe mir mal styles.xml und AndroidManifest.xml aus Settings.apk von verschiedenen ROMs mit weißem Hintergrund angesehen. Der größte Unterschied ist, dass in AndroidManifest.xml beim FroyoMod kein Theme für Application, sondern nur für einzelne Activitys angegeben ist. Code: <application android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
<activity android:label="@string/settings_label" android:name="Settings" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="singleTop"> Code: <application android:theme="@android:style/Theme.Light.NoTitleBar" android:label="@string/settings_label" android:icon="@drawable/ic_launcher_settings" android:taskAffinity="">
<activity android:label="@string/settings_label" android:name="Settings" android:taskAffinity="com.android.settings" android:clearTaskOnLaunch="true" android:launchMode="singleTop"> Zum (de)compilieren nutze ich ApkManager und bin wie folgt vorgegangen: - originale framework-res.apk als 1.apk nach /apktool/framework kopiert - Settings.apk im ApkManager decompiliert (9) - Änderung in AndroidManifest.xml wie oben beschrieben gemacht - Settings.apk compiliert (11) - "Is this a system apk (y/n)?" mit "y" beantwortet -"... copy over any additional files that you didnt modify ... (y/n) mit "y" beantwortet - im Ordner "keep" AndroidManifest.xml und resources.arsc gelöscht - mit drücken einer beliebigen Taste fertig compiliert - "everything is ok" Die originale Settings.apk hat eine Größe von 2858kb, die neue unsignedSettings.apk ist aber nur 1516kb groß. Trotzdem habe ich sie getestet, chmod und chown passend gesetzt. Wie erwartet funktioniert sie nicht. Wenn ich auf Settings/ Einstellungen klicke passiert nichts, nicht mal ein fc. Das ist der Logmitschnitt aus log.txt: Code: java version "1.6.0_25" Java(TM) SE Runtime Environment (build 1.6.0_25-b06) Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing) C:\Users\Uta\android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signed2.8.0b-Settings.apk konnte nicht gefunden werden C:\Users\Uta\android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsigned2.8.0b-Settings.apk konnte nicht gefunden werden I: Baksmaling... I: Loading resource table... W: Skipping "android" package group I: Loaded. I: Loading resource table from file: C:\Users\Uta\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... I: Building apk file... Das System kann die angegebene Datei nicht finden. Settings.apk und unsignedSettings.apk mit WinRar geöffnet, in Settings.apk AndroidManifest.xml und resources.arsc gelöscht, aus unsignedSettings.apk unsignedSettings.apk AndroidManifest.xml und resources.arsc nach Settings.apk kopiert, beide apk wieder geschlossen. Dabei ist mir noch aufgefallen, dass resources.arsc in unsignedSettings.apk eine Größe von 1.779.584Bytes (gepackt 449.024Bytes) hat. Bei der originalen Settings.apk ist es eine Größe von 1.779.584Bytes (gepackt 1.779.584Bytes). Wer kann uns hier weiter helfen? | |
| | |
| | #5 (permalink) |
| Android-Hilfe.de Mitglied Registriert seit: 02.01.2011
Beiträge: 113
Abgegebene Danke: 12
Erhielt 21 Danke für 14 Beiträge
| Ich glaube einen Fehler habe ich gefunden. Diese originale framework-res.apk läßt sich nicht ohne Fehler decomilieren: Code: I: Loading resource table... I: Loaded. I: Decoding file-resources... Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds! at sun.awt.image.ByteInterleavedRaster.setDataElements(Unknown Source) at java.awt.image.BufferedImage.setRGB(Unknown Source) at brut.androlib.res.decoder.Res9patchStreamDecoder.drawHLine(Res9patchStreamDecoder.java:93) at brut.androlib.res.decoder.Res9patchStreamDecoder.decode(Res9patchStreamDecoder.java:53) at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34) at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100) at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:68) at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132) at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93) at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98) at brut.apktool.Main.cmdDecode(Main.java:120) at brut.apktool.Main.main(Main.java:57) Mit der neuen framework-res.apk in /apktool/framework erhalte ich beim decompilieren der Settings.apk diese Fehlermeldungen: Code: W/ResourceType( 8012): Unable to get buffer of resource asset file C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:7: error: Error: No resource found that matches the given name: attr 'android:layout_height'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:6: error: Error: No resource found that matches the given name: attr 'android:layout_width'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:paddingRight'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:4: error: Error: No resource found that matches the given name: attr 'android:textAppearance'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:12: error: Error: No resource found that matches the given name: attr 'android:layout_height'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:11: error: Error: No resource found that matches the given name: attr 'android:layout_width'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:10: error: Error: No resource found that matches the given name: attr 'android:textAppearance'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:17: error: Error: No resource found that matches the given name: attr 'android:layout_height'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:16: error: Error: No resource found that matches the given name: attr 'android:layout_width'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:15: error: Error: No resource found that matches the given name: attr 'android:textAppearance'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:26: error: Error: No resource found that matches the given name: attr 'android:layout_height'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:25: error: Error: No resource found that matches the given name: attr 'android:layout_width'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:20: error: Error: No resource found that matches the given name: attr 'android:orientation'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:24: error: Error: No resource found that matches the given name: attr 'android:paddingBottom'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:21: error: Error: No resource found that matches the given name: attr 'android:paddingLeft'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:23: error: Error: No resource found that matches the given name: attr 'android:paddingRight'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:22: error: Error: No resource found that matches the given name: attr 'android:paddingTop'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:31: error: Error: No resource found that matches the given name: attr 'android:layout_height'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:30: error: Error: No resource found that matches the given name: attr 'android:layout_width'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:29: error: Error: No resource found that matches the given name: attr 'android:orientation'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:35: error: Error: No resource found that matches the given name: attr 'android:layout_height'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:34: error: Error: No resource found that matches the given name: attr 'android:layout_width'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:37: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:39: error: Error: No resource found that matches the given name: attr 'android:textSize'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:40: error: Error: No resource found that matches the given name: attr 'android:textStyle'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:43: error: Error: No resource found that matches the given name: attr 'android:textSize'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:44: error: Error: No resource found that matches the given name: attr 'android:textStyle'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:47: error: Error: No resource found that matches the given name: attr 'android:textSize'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:48: error: Error: No resource found that matches the given name: attr 'android:textStyle'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:50: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.NoTitleBar'. C:\Users\Uta\android\apk_manager_4.9\other\..\projects\2.8.0b-Settings.apk\res\values\styles.xml:51: error: Error: No resource found that matches the given name: attr 'android:windowContentOverlay'. Code: <?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="info_label">
<item name="android:textAppearance">@style/TextAppearance.info_label</item>
<item name="android:paddingRight">4.0dip</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="info_value">
<item name="android:textAppearance">@style/TextAppearance.info_value</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="info_small">
<item name="android:textAppearance">@style/TextAppearance.info_small</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="info_layout">
<item name="android:orientation">vertical</item>
<item name="android:paddingLeft">10.0dip</item>
<item name="android:paddingTop">10.0dip</item>
<item name="android:paddingRight">10.0dip</item>
<item name="android:paddingBottom">10.0dip</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
</style>
<style name="entry_layout">
<item name="android:orientation">horizontal</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="form_value">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="TextAppearance" parent="@android:style/TextAppearance" />
<style name="TextAppearance.info_label" parent="@style/TextAppearance">
<item name="android:textSize">14.0sp</item>
<item name="android:textStyle">bold</item>
</style>
<style name="TextAppearance.info_small" parent="@style/TextAppearance">
<item name="android:textSize">12.0sp</item>
<item name="android:textStyle">normal</item>
</style>
<style name="TextAppearance.info_value" parent="@style/TextAppearance">
<item name="android:textSize">14.0sp</item>
<item name="android:textStyle">normal</item>
</style>
<style name="TallTitleBarTheme" parent="@android:style/Theme.NoTitleBar">
<item name="android:windowContentOverlay">@null</item>
</style>
</resources> |
| | |
| | #6 (permalink) |
| Android Guru Modell: [modded black] Samsung Galaxy S II Registriert seit: 05.02.2010
Beiträge: 3.287
Abgegebene Danke: 281
Erhielt 691 Danke für 514 Beiträge
|
Im Prinzip gehst du schon korrekt vor. Man muss, wie du es machst, öfter mal in die logs schauen. Zum einen macht akpmanager folgendes. Wenn du mit y/y die Abfragen beantwortest, werden deine gemoddeten xml durch die originalen ersetzt, sprich du hast ne apk wie vorher auch. Daher lieber unter /projects/apkname/res/build dann die xml,welche du geändert hast nehmen und in die apk per WinRAR packen. android:theme="@android:style/Theme.Light.NoTitleBar" Das einfach in die xml einfügen wird nur bedingt oder gar nichts bringen. Das "THEME" muss ja auch irgendwo definiert werden. Sprich man muss die id's und mehere xml ändern. Also musst du da mit Eclipse oder sowas ran.
__________________ «bãndït» Phone: Samsung GT-I9100 - ROM: [mod. black] HyDrOG3N-ICS # Sakaschi - Kernel: Fluxi XX Kernel ICS - Baseband: XXLP6 |
| | |
| | #7 (permalink) |
| Android-Hilfe.de Mitglied Registriert seit: 02.01.2011
Beiträge: 113
Abgegebene Danke: 12
Erhielt 21 Danke für 14 Beiträge
|
Danke erstmal für deine Hilfe. Ich glaube ich habe mich in meinem letzten Post nicht richtig ausgedrückt. Alles was ich da geschrieben und zitiert habe, basiert auf APKs die ich noch nicht geändert habe. Ich habe einfach nur decompiliert und ohne Änderungen wieder compiliert. Denn wenn das nicht funktioniert, wie soll es dann mit Änderungen funktionieren... |
| | |
| | #8 (permalink) |
| Android Guru Modell: [modded black] Samsung Galaxy S II Registriert seit: 05.02.2010
Beiträge: 3.287
Abgegebene Danke: 281
Erhielt 691 Danke für 514 Beiträge
|
Ah ok. Aber die apk's können ja auch schon gemodded gewesen sein, daher vllt die Log Einträge. Ist immer nen schmaler Grat zwischen funzt & funzt nicht :/.
__________________ «bãndït» Phone: Samsung GT-I9100 - ROM: [mod. black] HyDrOG3N-ICS # Sakaschi - Kernel: Fluxi XX Kernel ICS - Baseband: XXLP6 |
| | |
| | #9 (permalink) |
| Android-Hilfe.de Mitglied Registriert seit: 02.01.2011
Beiträge: 113
Abgegebene Danke: 12
Erhielt 21 Danke für 14 Beiträge
|
Hast du eine Idee wo ich ansetzen könnte? Ich habe noch das hier gefunden: Issue 40 - android-apktool - "entry index is larger than available symbols" error - A tool for reengineering Android apk files - Google Project Hosting Hab schon diverse Versionen getestet, ohne Erfolg. Es scheint doch als wenn mir eine nicht gemoddete framework-res.apk fehlt. Weißt du wo ich eine her bekomme? FM basiert ja auf AOSP. |
| | |
| | #10 (permalink) | ||
| Android-Hilfe.de Mitglied Registriert seit: 02.01.2011
Beiträge: 113
Abgegebene Danke: 12
Erhielt 21 Danke für 14 Beiträge
| Zitat:
Wenn ich nun aber xml´s geändert habe, bleibt die Prozedur die gleiche (also 2x "y"). Nur muss ich danach im Ordner "keep" noch die geänderten xml´s und die resources.arsc löschen. Danach kann zu ende compiliert werden. Zitat:
Wie ist es wenn ich in AndroidManifest.xml Änderungen vorgenommen habe mir die nun wie du vorgeschlagen hast aus build raus hole? Was ist dann mit der resources.arsc? | ||
| | |
![]() |
|
| Themen-Optionen | |
| Ansicht | |
| |
| ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Adress-Verknüpfungen von "HTC Kontakte" zu Karten-App ändern | yokomaka | HTC Desire HD Forum | 25 | 18.05.2011 16:54 |
| "Rote" Farbe ändern und lockscreen ändern à la optimus speed? | Bärry | Motorola Defy Forum | 2 | 15.04.2011 02:46 |
| Update FroYo (2.2) Der "Von-wegen-bleiben-alle-Einstellungen-erhalten-Thread" | Andrutheo | HTC Desire Forum | 8 | 02.08.2010 14:45 |
| Software-Tastatur: ".com" auf ".de" ändern | theparanoidandroid | Android Allgemein | 1 | 20.07.2010 00:57 |
| Tastaturlayout von ".com" auf ".de" ändern? | theparanoidandroid | Motorola Milestone Forum | 2 | 14.04.2010 13:53 |