[ONE Themes and Apps] ocd_amp:
Instructions for modding your Framework

UPDATED. SEE MY POST HERE.

http://xdaforums.com/showpost.php?p=60870224&postcount=586

OLD POST.

Here are instructions on modding your framework.

Have a look at this thread :

http://xdaforums.com/showthread.php?t=2213985

Download Framework Flasher (This contains an older version of apktool and aapt.exe, so replace with a newer version if you wish)

http://xdaforums.com/showthread.php?t=1432152

(The BAT file in here is simply to make things faster, all of this can be done with command line)

Required:

Latest Java - Apktool.jar - aapt.exe

Download and install Java (or you can use a Portable version of Java but be sure to set your parameters/environment variables if you're on Windows) - For Window Users http://www.computerhope.com/issues/ch000549.htm

1) Place framework-res.apk into Firmware Flasher "files-to-edit" directory

2) Run bat file and decompile. Close window after its done.

3) Go into Resources folder, and then into Framework-res > Res Folder > Values > Modify Arrays.xml - You can use notepad for this.

4) Go to Resource Folder where apktool is, Shift Right Click > Open Command Prompt >

Run command java -jar apktool.jar b framework-res (or name-of-the-app-directory) -- This recompiles framework. Be sure you know what your ROM requires in terms of sources.

5) It will start and it will say (W : Could not find sources) but thats ok let it continue.

6) The final modded app will be in the "DIST" folder.

7) Start 7Zip GUI Program. Open this apk INSIDE of 7zip Program window (Don't extract it) and copy both META-INF and AndroidManifest.xml from the "Original" directory INTO 7Zip window where your APK is open. After its copied, Close 7zip Program.

Note: You do not want resources.arsc file to be compressed or your ROM will bootloop.

You will now have a Packed APK but Resources.arsc will show the same size for both packed / unpacked size.

8) Download my Flashable Zip Template Directory

9) Copy your modded framework-res.apk into /System/Framework

10) Copy it into your SD Card and Flash it. Reboot > Manage Apps > Google Play Services > Clear Data > Reboot.

11) You can use Root Explorer or ES File explorer to check byte size (should be the same)

All your data will be cleared, and using an app called Disable Service, you'll be able to see Google Play Services SystemUpdateService is up and running.

No more Wake Lock issue. Enjoy a sleeper!

Before you do anything, make sure you backup your original Framework-Res.

I am not responsible for whatever you may do to mess up your phone. I simply followed Calkulin's instructions in the first post, and modding the framework has been working for me without issue. This is a serious risk you are taking so if you are uncomfortable with Anything at all, just use Calkulin's Google Play Services. Again I am not responsible if you are not sure of what you are doing. BACKUP Before you make serious changes to your system. If Any of this sounds too complicated, simply use the files provided by Calkulin.

NOTE: Google Play Services will update itself unless you block it from downloading in the first place. The solution to that is to create a folder com.google.android.gms-1.apk in /data/app (essentially the folder is the same name as the update) This solution is in this thread a few posts back if you search for it. This blocks it from downloading and installing to 03x version like 034-036 etc. So those who are experiencing wakelocks, it is because your GSMCore got updated after you flashed Calkulin's. You must install Calkulin's mod first, but also block it from updating. GSMCore udpates whether SystemUpdateService is turned on or not. The problem is, once its turned on, it does not turn off again, thereby draining your battery. If time allows, I will mod those frameworks depending on how many people are affected by it.

Thanks everyone!