FORUMS

[ ROM ] Calkulin's Nexus 4 v1.5 [ 4.4.2 | KOT49H | Tweaked | Battery Saver Script ]

1,645 posts
Thanks Meter: 9,139
 
By Calkulin, Recognized Developer on 30th November 2013, 08:41 PM
Post Reply Email Thread
Nexus 4 Series




Based on 4.4.2 / KOT49H (Google)

ROM includes:
Stock Google kernel w/ init.d support
Google Experience Launcher
Working ART runtime
Deodexed system
Superuser
Busybox
and more

MODs included:
Tweaked system (Very FAST)
Raised contact sync resolution (requires resyncing of contacts if you don't factory reset before installing)
Enabled LTE option in mobile network settings (requires LTE enabled modem)
Battery % on status bar (thanks to Erhany for the code) (disable zip in FAQ)
Exchange security bypass (thanks to Apascual89 for the code)
Enabled Multi-User support (rotate lockscreen to change users)
4 way reboot power menu (thanks to Kahvitahra for the code)
Enabled menu button to be always on (disable zip in FAQ)
Enabled volume keys to skip tracks while screen is off
Relaxed MMS compression ratio (Hangouts & Messaging)
Enabled access to App Ops in Settings/Security
Disabled alarm set icon (enable zip in FAQ)
Blocked annoying ads in programs
Enabled NFC while on lockscreen
APN settings for a lot of carriers
Colored notification icons
And other misc tweaks/mods


Notes about Battery Saver script

Can be used with any kernels that have init.d support

It completely eliminates the need for an application to set CPU speeds or profiles
Easily customizable - See FAQ for instructions
During sleep, it will set Max CPU speed to 1.0GHz & Min CPU speed to 384MHz
If Android Overclock, No-Frills CPU Control, Overclock Widget, QuickClock Advanced Overclock, SetCPU or System Tuner are detected, the script is ignored, so it will not affect them
The script can also control how the second, third & fourth cores works, they can be enabled full time, per profile or disabled completely

Preset profiles are:
1.45GHz - 100-85%
1.35GHz - 84-36%
1.24GHz - 35-0%

And just an FYI, even at 1.24GHz, the phone still operates very well & smooth, it's the battery savings that are the real benefit


v1.5
Enabled Multi-User support (rotate lockscreen to change users)
Simplified some of the battery saver script code
Enabled NFC while on lockscreen

Added
UV support for m_plus kernel

Updated
YouTube v5.3.28

Code:
v1.4
Enabled access to App Ops in Settings/Security
Removed CloudPrint & HPPrintPlugin (can be downloaded from the Play Store)

Updated
Calendar v201308023
Gmail v4.7.1 (946962)
Google Music v5.3.1317M.940995
Hangouts v2.0.217 (944332-30)
LatinIme v2.0.19133.927933a
Maps v7.5.0
QuickSearchBox v3.1.24.94.1712.arm
SuperSU v1.86

v1.3.1
Based on 4.4.2/KOT49H build
Enabled access to App Ops, as 4.4.2 killed it (v1.3.1)
Enabled volume keys to skip tracks while screen is off
Exchange security bypass (thanks to apascual89 for the code)
Removed QuickOffice & Wallet (can be downloaded from the Play Store)
Removed extra ringtones to save space
Removed libs for removed apps (v1.3.1)
Tweaked apks to save space

Updated
Hangouts v2.0.216 (939144-30)

v1.2.1
Based on 4.4.1/KOT49E build
Enabled LTE option in mobile network settings
Made kernel insecure so adb remount, etc now work
Fixed lag when adding contact picture in quick settings (v1.2.1)

Updated
Google Music v5.3.1316M.934206

v1.0
Initial Release
Important Notes - Due to how this ROM is setup, a wipe is recommended BEFORE flashing if coming from another ROM

If your are updating, then nothing extra is needed during flashing as the update script wipes what is needed, unless other wise stated in the change log

Be sure to do a backup before flashing and read the change log


Nexus 4 ROM (v1.5) - Mirror
md5 - 967881c86a58f9c8c305c114b80c5ff0

Nexus 4 ROM Update (v1.4 to v1.5)


Previous ROM versions
The Following 104 Users Say Thank You to Calkulin For This Useful Post: [ View ]
30th November 2013, 08:42 PM |#2  
Calkulin's Avatar
OP Recognized Developer
Thanks Meter: 9,139
 
Donate to Me
More
FAQ

How to modify the battery saver script?
(requires knowledge of how to run terminal or adb commands)

These are the available commands to set parameters. To check what the available commands are for each, type available after the command

For ex.

cpu available

To check what the current settings are

cpu status

To verify what the cpu is currently set to

cpu verify

To reset the script back to stock

cpu default

To disable the script

cpu off
Code:
cpu - Controls the script

cpu_awake - Enables or disables awake boost feature

cpu_awake_duration - Duration of awake boost

cpu_awake_governor - Enables or disables awake boost governor and sets governor

cpu_awake_max - Max cpu speed for awake

cpu_awake_min - Min cpu speed for awake

cpu1_awake - Enables or lets the kernel handle CPU1 for awake

cpu2_awake - Enables or lets the kernel handle CPU2 for awake

cpu3_awake - Enables or lets the kernel handle CPU3 for awake

cpu_bp - Enables or disables battery profiles feature

cpu_bp1_batt - Battery percent of when profile 1 ends

cpu_bp1_governor - Enables or disables battery profile 1 governor and sets governor

cpu_bp1_max - Max cpu speed for battery profile 1

cpu_bp1_min - Min cpu speed for battery profile 1

cpu1_bp1 - Enables or lets the kernel handle CPU1 for battery profiles 1

cpu2_bp1 - Enables or lets the kernel handle CPU2 for battery profiles 1

cpu3_bp1 - Enables or lets the kernel handle CPU3 for battery profiles 1

cpu_bp2_batt - Battery percent of when profile 2 starts

cpu_bp2_governor - Enables or disables battery profile 2 governor and sets governor

cpu_bp2_max - Max cpu speed for battery profile 2

cpu_bp2_min - Min cpu speed for battery profile 2

cpu1_bp2 - Enables or lets the kernel handle CPU1 for battery profiles 2

cpu2_bp2 - Enables or lets the kernel handle CPU2 for battery profiles 2

cpu3_bp2 - Enables or lets the kernel handle CPU3 for battery profiles 2

cpu_governor - Main governor

cpu_max - Max cpu speed when profiles are off and in between battery profiles 1 & 2

cpu_min - Min cpu speed when profiles are off and in between battery profiles 1 & 2

cpu_sleep - Enables or disables sleep feature

cpu_sleep_delay - Delay before sleep feature kicks in

cpu_sleep_governor - Enables or disables sleep governor and sets governor

cpu_sleep_max - Max cpu speed for sleep

cpu_sleep_min - Min cpu speed for sleep

cpu_uv - Controls undervolting for kernels like Franco's, 0-200mV in increments of 25

cpu1 - Enables, disables or lets the kernel handle CPU1

cpu2 - Enables, disables or lets the kernel handle CPU2

cpu3 - Enables, disables or lets the kernel handle CPU3

devlog - Enables or disables logging

NOTE: Most parameters can be set without restarting but you need to cycle the screen on/off and wait the time set in cpu_sleep_delay. If the setting isn't taking effect, then reboot


Want to disable the battery percent in the status bar and the menu button in the navigation bar?

Flash the Calkulin's_Disable_Battery_Percent_and_Menu_Button _for_Nexus_4_v* zip attached


Want to disable the menu button in the navigation bar?

Flash the Calkulin's_Disable_Menu_Button_for_Nexus_4_v* zip attached


Want to enable the alarm set icon in the status bar?

Flash the Calkulin's_Enable_Alarm_Icon_for_Nexus_4_v* zip attached


Having problems with included hosts file or want to see advertisements again?

Flash the Stock_Android_Hosts_for_Nexus_4 zip attached
The Following 40 Users Say Thank You to Calkulin For This Useful Post: [ View ]
30th November 2013, 08:48 PM |#3  
Calkulin's Avatar
OP Recognized Developer
Thanks Meter: 9,139
 
Donate to Me
More
...............
The Following 15 Users Say Thank You to Calkulin For This Useful Post: [ View ]
30th November 2013, 08:52 PM |#4  
Da Kine's Avatar
Senior Member
Flag Santa Rosa, Ca
Thanks Meter: 1,432
 
Donate to Me
More
First? Woohoo. Going to download and try it out later, thanks Calkulin

Sent from my Nexus 4 using XDA Premium 4 mobile app
The Following User Says Thank You to Da Kine For This Useful Post: [ View ] Gift Da Kine Ad-Free
30th November 2013, 08:54 PM |#5  
klanistok's Avatar
Senior Member
Thanks Meter: 85
 
More
Thumbs up GJ
Gonna flash and report, tnx for the new rom.
The Following User Says Thank You to klanistok For This Useful Post: [ View ] Gift klanistok Ad-Free
30th November 2013, 08:55 PM |#6  
Senior Member
Thanks Meter: 48
 
More
Wow I remember your ROMs for the epic 4g touch, they are amazing. Very cool seeing you over here on the N4. Downloading now!

Sent from my Nexus 4 using xda app-developers app
The Following 2 Users Say Thank You to Robertleehadley For This Useful Post: [ View ] Gift Robertleehadley Ad-Free
30th November 2013, 09:16 PM |#7  
jonathan413's Avatar
Senior Member
Thanks Meter: 39
 
More
if i flash a different kernel will that mess with any of the system tweaks youve done and will i have to flash the dalvik patch from moto x also if i flash different kernel?
30th November 2013, 09:23 PM |#8  
Calkulin's Avatar
OP Recognized Developer
Thanks Meter: 9,139
 
Donate to Me
More
Quote:
Originally Posted by jonathan413

if i flash a different kernel will that mess with any of the system tweaks youve done and will i have to flash the dalvik patch from moto x also if i flash different kernel?


If the kernel is just a boot.img, then no, if it for some reason includes libs and binaries, depending on which ones it's overwriting, then maybe but I highly doubt it it's overwriting dalvik/bionic libs. Best bet would be to look in the kernel zip and see what files are included.
The Following 4 Users Say Thank You to Calkulin For This Useful Post: [ View ]
30th November 2013, 09:28 PM |#9  
dan96815's Avatar
Senior Member
Flag Markham ON CANADA
Thanks Meter: 378
 
More
SO franco would work fine?
The Following User Says Thank You to dan96815 For This Useful Post: [ View ] Gift dan96815 Ad-Free
30th November 2013, 10:08 PM |#10  
Calkulin's Avatar
OP Recognized Developer
Thanks Meter: 9,139
 
Donate to Me
More
Quote:
Originally Posted by dan96815

SO franco would work fine?


Not by default as he for some reason hasn't enabled init.d support in his 4.4 kernels yet, so use this one I modded to add it. This is also change the default governor to interactive as he removed ondemand


EDIT: r196 posted here
The Following 4 Users Say Thank You to Calkulin For This Useful Post: [ View ]
1st December 2013, 12:19 AM |#11  
Senior Member
Flag san diego, ca
Thanks Meter: 65
 
More
wow Calkulin! you made my htc touch pro a lot less awful! welcome!
The Following User Says Thank You to illwafer For This Useful Post: [ View ] Gift illwafer Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes