[G1 Android Development] jermaine151:
I have spent many hours trying to edit my framework-res.apk and recompile it, with no luck. I thought it was my edits to xml files in the drawable directory, that were causing me bootloops. I finally made a discovery today. I can simply do:

C:\apktool>apktool.bat d framework-res.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...

I don't change ANYTHING and just rebuild it:

C:\apktool>apktool.bat b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'lockscreen_network_locked_message' has no default translation in C:\apktool\f
ramework-res\res; found: de es fr it nl pt pt_PT ru
I: Building apk file...

C:\apktool>

I just open my original framework-res.apk (7 zip) drag in the resources.arsc from the framework-res/build folder, put it in my flashable zip, flash it and I get bootloops with this logcat:

W/UsageStats( 183): Usage stats version changed; dropping
D/dalvikvm( 183): GC_FOR_MALLOC freed 2595 objects / 231200 bytes in 71ms
E/System ( 183): Failure starting core service
E/System ( 183): android.content.res.Resources$NotFoundException: Resource ID #0x10b000b
E/System ( 183): at android.content.res.Resources.getValue(Resources.java:892)
E/System ( 183): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)
E/System ( 183): at android.content.res.Resources.getXml(Resources.java:780)
E/System ( 183): at com.android.internal.os.PowerProfile.readPowerValuesFromXml(PowerProfile.
java:147)
E/System ( 183): at com.android.internal.os.PowerProfile.<init>(PowerProfile.java:141)
E/System ( 183): at com.android.server.am.BatteryStatsService.publish(BatteryStatsService.jav
a:53)
E/System ( 183): at com.android.server.am.ActivityManagerService.main(ActivityManagerService.
java:1358)
E/System ( 183): at com.android.server.ServerThread.run(SystemServer.java:115)
I/SystemServer( 183): Device Policy
E/SystemServer( 183): Failure starting DevicePolicyService
E/SystemServer( 183): java.lang.NullPointerException
E/SystemServer( 183): at com.android.internal.content.PackageMonitor.register(PackageMonitor.java:
65)
E/SystemServer( 183): at com.android.server.DevicePolicyManagerService.<init>(DevicePolicyManagerS
ervice.java:217)
E/SystemServer( 183): at com.android.server.ServerThread.run(SystemServer.java:220)
I/SystemServer( 183): Status Bar
E/SystemServer( 183): Failure starting StatusBarService
E/SystemServer( 183): java.lang.NullPointerException
E/SystemServer( 183): at com.android.server.status.StatusBarService.<init>(StatusBarService.java:5
53)
E/SystemServer( 183): at com.android.server.ServerThread.run(SystemServer.java:228)
I/SystemServer( 183): Clipboard Service
I/SystemServer( 183): Input Method Service
E/SystemServer( 183): Failure starting Input Manager Service
E/SystemServer( 183): java.lang.NullPointerException
E/SystemServer( 183): at com.android.internal.os.HandlerCaller.<init>(HandlerCaller.java:71)
E/SystemServer( 183): at com.android.server.InputMethodManagerService.<init>(InputMethodManagerSer
vice.java:455)
E/SystemServer( 183): at com.android.server.ServerThread.run(SystemServer.java:244)
I/SystemServer( 183): NetStat Service
I/SystemServer( 183): NetworkManagement Service
I/SystemServer( 183): Connectivity Service
V/ConnectivityService( 183): ConnectivityService starting up
W/dalvikvm( 183): threadid=12: thread exiting with uncaught exception (group=0x4001d7f0)
E/AndroidRuntime( 183): *** FATAL EXCEPTION IN SYSTEM PROCESS: ConnectivityThread
E/AndroidRuntime( 183): java.lang.NullPointerException
E/AndroidRuntime( 183): at com.android.server.ConnectivityService.<init>(ConnectivityService
.java:221)
E/AndroidRuntime( 183): at com.android.server.ConnectivityService.<init>(ConnectivityService
.java:62)
E/AndroidRuntime( 183): at com.android.server.ConnectivityService$ConnectivityThread.run(Con
nectivityService.java:186)
E/AndroidRuntime( 183): Error reporting crash
E/AndroidRuntime( 183): java.lang.NullPointerException
E/AndroidRuntime( 183): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtExcep
tion(RuntimeInit.java:76)
E/AndroidRuntime( 183): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887)
E/AndroidRuntime( 183): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884)
I/Process ( 183): Sending signal. PID: 183 SIG: 9
I/ServiceManager( 106): service 'power' died
I/ServiceManager( 106): service 'clipboard' died
I/ServiceManager( 106): service 'netstat' died
I/ServiceManager( 106): service 'entropy' died
I/ServiceManager( 106): service 'batteryinfo' died
I/ServiceManager( 106): service 'SurfaceFlinger' died
I/ServiceManager( 106): service 'network_management' died
D/BootAnimation( 197): SurfaceFlinger died, exiting...
I/Zygote ( 171): Exit zygote because system server (183) has terminated
I/ServiceManager( 106): service 'media.audio_flinger' died
I/ServiceManager( 106): service 'media.player' died
I/ServiceManager( 106): service 'media.camera' died
I/ServiceManager( 106): service 'media.audio_policy' died

I am using apktool v1.3.2. Brut.all or anyone else, please help.. I just want to add 1% increments to my LiquidLight Rom's battery.

I am attaching the unedited framework-res.apk.

Thanks for any help!