[Moto G Original Android Development] elrod16:
NEW EASY INSTALLER, RECOVERY ZIP

Total overhaul of code.

*HELP WANTED, PM FOR RELEVANT DETAILS*

This software package was originally just made for my personal use to rectify the issue of my phone not entering deep sleep when idle and me not having access to a charger for the majority of the day while also improving multitasking because being my phone is also my build environment/office environment, I am frequently jumping around various apps that I'd prefer to keep open.

Things this package accomplishes on your phone (very simple and brief summary):

*Forces entry into deep sleep as soon as the screen is off (if enabled, on by default). It also has audio detection so you can listen to music with the screen off without unwanted deep sleep entry.

*Improves multitasking, no more apps having to reload/redraw when you switch back to them.

*Automatic odexing of all apps, including new installs (if enabled, pre-lollipop ROM's).

*Easy management of swap.

*CPU management. You can set your own values to be locked (no other app can change them) or let its device manager automatically set CPU frequencies and the governor you specify.

*Dynamic Max CPU Freq: When enabled (on by default) it will automatically scale the max CPU frequency value depending on the CPU load. This can help with governors that favor the high end of the frequency table too much by allowing you to save battery but have the CPU power available when needed, without having to adjust anything manually whenever you go from doing something processor demanding to having your phone sit idle.

*Fixes issues with several kernels where the touch screen is unresponsive after waking the device. No more inconvenient force reboots.

*Enables all idle and suspend states available (they are disabled by default quite often) and can help get your device into the lower C-States.

*Fixes broken links to firmware files caused by buggy init scripts on some ROM's.

New/Other features:

*New recovery flashable installer

*Force system wide GPU rendering and faster framerate.

*Fixes Dt2w and Sw2w lock screen freeze bug.

*Now compatible with KSM.

*Faster app loading and responsiveness. Key android services are given priority status for I/O and CPU resources.

*Multitask over 20+ apps simultaneously without any redraws and low-latency app switching (provided you have the swap space)

Tip: I use the large amount of unused space on /system to increase the size of that MaxOpt managed swapfile.

*Fixed the crash on boot issue between MaxOpt and some kernels.

Default MaxOpt config:

•Swap on, default MaxOpt generated swapfile size is 64 MB, with one made on /data, one on /cache, and one on /system if mounted rw.

•Auto-odexing off.

•Hotplugging compatibility on.

•User CPU settings off, auto-device manager on.

•Deep Sleep immediately on screen off enabled.

•KSM off (you must have a kernel that supports it to enable this option and have it work).

•Kernel settings on.

•Everything is forced to be drawn by the GPU.

All of the above listed features are user optional/tuneable.

For those who wish to only use MaxOpt for fixing the lock screen freeze bug associated with some kernels/DT2W/S2W use the following link: http://xdaforums.com/showthread.php?t=3061589

If you would like to just use individual components or adjust program settings from a terminal app, here is an example usage and description of their individual functions as well as other useful documentation (VERY OLD DOC, NEEDS LOTS OF UPDATES):https://docs.google.com/file/d/0B_hgNZE_j5sVbEN4ZUtkS2p0bW8/edit?usp=docslist_api

Terminal Emulator is what I would recommend for use with managing MaxOpts' settings.

System Requirements (not entirely sure due to lack of public testing):

Busybox

A terminal app

A kernel that can best be utilized by these programs.

Please make a nandroid backup before using.

And here is the MaxOpt installer ( R2 1.0.6 ):

* https://drive.google.com/file/d/0B_hgNZE_j5sVaGdxV0FfODdxbVU/view?usp=docslist_api

Changelog:

R2 v1.0.6- Adjustments to write buffering and multitasking memory performance.

R2 v1.0.5a- Fixed a bug present in both this project and MaxLife where data wasn't validated thoroughly enough before using it.

R2 v1.0.5- Added a new completely experimental new user tuneable (on/off, default off) that changes runtime memory allocation values. Only activate it if you have a large amount of swap.

R2 v1.0.0- Totally rebuilt the project, installable with a recovery flashable zip now, kernel image installer is no longer compatible and is scrapped.

For those still getting crashes:

The issue still appears to be related to the device radio when it happens, so, after a crash could you please force reboot your device and try to disable mobile data when it boots before it crashes again and please post a copy of /proc/last_kmesg. Thank you.

Screenshots of battery screen showing time spent in sleep:

https://docs.google.com/file/d/0B_hgNZE_j5sVSjRUU0ZlX0UwUWc/edit?usp=docslist_api

https://docs.google.com/file/d/0B_hgNZE_j5sVSmNjYThkUzAtNGM/edit?usp=docslist_api

https://docs.google.com/file/d/0B_hgNZE_j5sVcWxJd0JyV09nMDA/edit?usp=docslist_api

Please thank if my software has helped you and please leave logs and descriptions of problems if my software did not work for you.