Apktool & Framework-res.apk

Savoury

Savoury

Erfahrenes Mitglied
418
Hallo Leute..

Vielleicht könnt ihr mir helfen?!
Hab versucht die Framework-Res.apk der Stock Rom zu dekompilieren, was scheinbar auch funktionierte. Ziel des ganzen ist die Anpassung der values/dimens.xml Datei. Im Anhang findet ihr den Output.

Apktool lief soweit fehlerfrei durch, die Anpassung wurde gemacht und eine neue Framework-Res.apk kompiliert. Jedoch ist diese nachher um einiges kleiner.. :bored: (Vorher: 10,1 MB (10.672.838 Bytes) Nachher: 6,53 MB (6.851.260 Bytes))

Nach dem Ausstausch der Datei endet das Nexus (wie anhand der Dateigröße zu erwarten war) bei einem hängenden Bootscreen.

Hat jemand von euch eine Lösung oder zumindest einen Vorschlag?

Output:

..apktool.jar if framework-res.apk
Code:
I: Framework installed to: C:\Users\..\apktool\framework\1.apk

..apktool.jar d framework-res.apk
Code:
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...

..apktool.jar b framework-res
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
 
Hab gerade mal im xda thema weiter gelesen und da hat jemand das gleiche Problem wie du.

Finally it worked.
Thanks for all your patience and help. My way was somewhat different from yours so here is a quick overview for those facing the same problems:

1. Download apktool from here android-apktool - A tool for reverse engineering Android apk files - Google Project Hosting
2. Follow the steps in this tutorial to decompile, modify and recompile the framework-res.apk Tutorials | Modstorm
3. Download the Brainmasters.Battery.Mod.Flasher.Nexus.4.zip from this location http://forum.xda-developers.com/show....php?t=2037171
4. Safety-step: Put the original UNmodified framework-res.apk in a new folder with the name "framework" and put this one into the system folder from the zip above. Rename the zip to something like originalframework.zip
5. Now repeat step 4 with the modified framework-res.apk and another copy of the zip from step 3. Name this zip to something like newframework.zip
6. Copy both new zips onto your phone, reboot into recovery and flash.
xda-developers - View Single Post - Navigation bar height


Seine Datei war auch ca. 6mb groß.
 
Danke, hab ich leider auch schon probiert (jedoch oben vergessen zu erwähnen) - ohne Erfolg.
Steckt beim booten fest.. Hab auch probiert die apk beim laufenden system zu ersetzen, mit dem selben Ergebnis.
 
Danke, hatte es aber bereits mit der 1.5.1er Version probiert.
Da ich leider dank mangelnder posts bei XDA nicht direkt ins Thema schreiben darf hab ich mir selbst ne Lösung "gebastelt". Ziemlich oldschool aber es funktioniert auch so..

Hätte es auch bereits beschrieben wie, aber es funktioniert nur in 2 von 3 versuchen.
Scheinbar reagiert Android ziemlich sensibel auf Veränderungen der Framework-Res Datei.
 

Ähnliche Themen

U
Antworten
1
Aufrufe
930
Klarooo
Klarooo
A
Antworten
14
Aufrufe
2.761
mista
mista
Zurück
Oben Unten