[Kernel] Anti Gravity [Q][Pie][Oreo][01-22-2020][Lnx3.10.108][UberTC]

Pierre2324

Senior Member
Oct 25, 2015
1,458
2,125
153
22
AntiGravityKernel



Want to unleash the full potential of OnePlus 2?
Get NoGravity Kernel!

Why is it called AntiGravity kernel?

Introduction

Familliar with NoGravity Kernel? This is a lite version of the it... AntiGravity doesn't have overclock and custom thermals. AGK was made for ROM developers who wanted to integrate NGK into their ROMs without the heavy modifications that NGK requires. This Kernel is for Performance but it still gets descent battery life due to some added features (see below).

No Gravity App

To tweak the kernel easily, here's my No Gravity app! featuring custom profiles (Battery, Balanced, Performance, Gaming and Gaming+). My kernel offers some features that cant be found in other kernel tweaking apps. You can find them lower in the thread.)

Kernel Features
  • CPU Underclocked to 302 MHz(idle) and undervolted
  • The two CPUs (big and little cpu) can be configured completely separate in terms of min/max frequencies and governors
  • Undervolted for better battery life and temps
  • Jaw dropping Applications Opening speed
  • No Gravity app! support
  • DTS Eagle Drivers added for better sound
  • GPU Underclocked to 27 MHz on idle
  • Added Adreno Idler
  • AdrenoBoost
  • DDR Input Boost
  • Smarter GPU
  • Disabled ZRAM
  • Max screen off frequency tunable
  • Dynamic File Sync
  • Slimbus Overclock
  • Thermal Throttling Slider
  • Added Governors (Chill, Relaxed)
  • Added Fingerprint boost
  • Added WakeBoost module
  • Faux Sound support
  • Gestures Support
  • FastCharge drivers Support (Now the charging rate is fast even when screen on without increasing temps that much!)
  • Maximum charge rate over USB 3.0 increased from 500mA to 900mA
  • WireGuard Support
  • Added and Using ZEN I/O Scheduler as default for app opening speed && overall Smoothness
  • Added Maple, SIO and FIOPS I/O Scheduler
  • KCAL Support
  • K-Lapse Support
  • Blocked wakelock (Boeffla)
  • Added Hotplug (Core_ctl)
  • Added Gentle fair sleepers toggle
  • New battery screen animation with percentage
  • 60FPS Video Recording support added! (This app is needed)
  • New Simple Low Memory Killer
  • F2FS Support leading to ~10% faster write speeds compared to EXT4
  • Based on Linux version 3.10.108

NoGravity app Features
  • Balance, Performance, Battery, Gaming and Gaming+ Profiles for NGK & NGK EAS
    [*]Max Cluster Overclock toggles to apply maximum overclock frequencies to Little and/or Big Cluster NGK & NGK-EAS only
  • Displays most accurate CPU temperatures for Little and Big clusters separately
    [*]Voltage Control page that fits NoGravity Kernel NGK only
  • GPU Stats page to show every GPU Frequencies time in state stats
    [*]Thermal Switch to select between NoGravity thermal config and stock NGK & NGK-EAS only
  • PocketMode Switch to turn off fingerprint sensor when device is in pocket or on table face down
  • Proximity Gestures Switch to pulse ambient dispay on Hand Wave
  • Pick-Up Gesture Switch to pulse ambient display when device is taken
  • Pixel 3 Flip to Shhh feature
  • Resolution Changer to switch between 1080p FHD and 720p HD resolutions
  • Selinux Switch to switch between Enforcing and Permissive SELinux modes
  • Battery Current Limit Switch to disable or enable BCL on low battery percentage
  • Sound page lets user download DTS:Eagle apps (Headphone:X or Ultra)
  • CPU Temperature Limit slider to set thermal throttling temps
  • K-Lapse Night mode and Brightness mode toggles
  • Video Recording Codecs Selector (H.264, H.265, H.265+)
  • Backlight Dimmer button to help reduce eye strain
  • Apply On Boot to apply user settings on boot
    [*]EAS page to tweak Load tracker, governors and dynamic schedtune boost! NGK-EAS only
  • 60FPS app download link since NGK now supports 60FPS
  • DDR Input Boost Toggle
    More info on those in the app

Planned Features
  • You tell me ;) I will do what I can

Compatibility

This kernel works on Android 10, PIE and OREO ROMs.
DO NOT FLASH ON STOCK OXYGEN OS!

Notes
Initial boot might heat up device a bit, which is normal - Let it settle
I'll recommend before coming to conclusion, give it at least 2 complete charge cycles and then raise any issue.

To install
  • Flash AntiGravity_Kernel-vX.X.zip file in TWRP (Latest TWRP Recovery Recommanded)
  • (Optional) - Clear cache and Dalvik



Made your choice?
Download Links
v3.2 PIE-OREO-NOUGAT AOSP Based Roms
v3.2 PIE-OREO-NOUGAT LineageOS Based Roms

NGK Thread

No Gravity App 3.3

As I put a lot of time and effort into this project, I now accept donations feel free to help me a little :cool:
Donate

Older builds

Changelog
post#2 for public released build changelogs.

ScreenShots
See screenshots section at the top of the thread!

Thanks To: All of my testers.

XDA:DevDB Information
AntiGravity Kernel, Kernel for the OnePlus 2

Contributors
Pierre2324
Source: [url]https://github.com/Pierre2324/AGK_android_kernel_oneplus_msm8994[/URL]
Version Information
Status: Stable
Current Version: 3.2
Created: 2018-02-15
Last Updated: 2020-01-22
 
Last edited:

Pierre2324

Senior Member
Oct 25, 2015
1,458
2,125
153
22
3.4.1 Build:
Kernel:
  • Revert latest LPM changes to fix a blackscreen issue

NoGravity Kernel App v3.4.2:
General:
  • Updated Profiles
  • New App & Kernel Update checker
  • Small fixes

OnePlus 2:
  • Nothing specific to OP2 added

Pocophone-Mi8:
  • Modified NGK Thermals to fit NGK thermal locking mecanism
  • DT2W Toggle added to Kernel Page (mainly for OOS)
  • Updated Backlight Dimmer
  • New NGK stats page
    -Shows last session average FPS
    -NGK overlay service toggle to show FPS,CPU & GPU stats in real time on screen

Previous Changelogs:

3.4 Build:
Kernel:
  • Faster app opening
  • Added Memfd call for new Android 10 ROMs
  • Various CPU, GPU, devreq & cpubw optimisations
  • Proper DDR bus boost when rendering frames to the display (to fit our old kernel)
  • And more under the hood changes

Kernel EAS:
  • Updated to latest NGK changes

*Notes :
-I would recommend turning off No Gravity app toast notifications from Magisk Manager app.



3.3 Build:
NoGravity Kernel App v3.3:
General:
  • Updated Profiles
  • Lowered Magisk Toast Messages*
  • Max GPU Freq Selector
  • Added an option to refresh GPU Stats
  • Updated descriptions

OnePlus 2:
  • DDR Input Boost Toggle

Pocophone-Mi8:
  • New GPU Page:
    -GPU Stats
    -KLapse (Brightness and Daytime modes)
    -Backlight Dimmer

Kernel:
  • Faster app opening
  • DDR Bus boost on input now disabled by default (use my app to enable it again)
  • Backported,cleaned up some GPU stuffs
  • Removed some bloat
  • Lowered heat and battery drain
  • Many optimisations
  • And more under the hood changes

Kernel EAS:
  • Updated to latest NGK changes
  • Fixed a notification/call sound distortion

*Notes :
-I would recommend turning off No Gravity app toast notifications from Magisk Manager app.


3.2 Build:
NoGravity Kernel App v3.2:
General:
  • Updated Profiles
  • Auto-dismiss Apply on boot notification
  • Updated descriptions

OnePlus 2:
  • Fixed App opening on AGK
  • Fixed EAS Dynamic Schedtune Bug

Pocophone:
  • New Kernel Page to let you control:
    -Thermals:
    Stock one || Evaluation (NGK’s default)
    -Thermal Suspend API:
    OFF || ON (NGK's default)
    -Battery Thermal Throttling Removal:
    OFF || ON (NGK’s default)
    -SELinux Switch:
    Enforcing (NGK’s default) || Permissive
  • New DTS Eagle (Sound) Page

Kernel:
  • Faster app opening
  • DDR Bus boost on input (Q Gestures, Animations are much better)
  • Various changes to make the UI smoother
  • Backported some small changes from the Pocophone F1 kernel (gpu, cpuidle)
  • Better Dynamic FSync
  • Removed some bloat
  • Many optimisations
  • Blackscreen fix (Device screen not turning on issue)
  • And more under the hood changes

*Notes :
-Make sure you flash Magisk after flashing the kernel
-As always when you wipe cache and dalvik, make sure you charge atleast once overnight so ART Optimisation does its job while charging at 100%.


3.1 Build:
NoGravity 3.1 App:
  • Pocophone support added (Profiles and cluster temps only for now)
  • Small fixes/optimisations
*Notes :
-You may need to uninstall previous app for it to install
-I recommend using my app over others to tweak EAS kernel since its made for the specific OnePlus 2 implementation


Kernel:
  • Debloated the kernel leading to smaller kernel
  • Compiling Optimisations
  • Removed Simple Low Memory killer (Yea algorithm is better but too aggressive even if its made for 4GB devices) This also fixes some black screen issues.
  • Improved latency
  • And more under the hood changes
  • Updated to latest LineageOS changes

*Notes :
-Make sure you flash Magisk after flashing the kernel



3.0 Build:
NoGravity 3.0 App:
  • Fixes for Android 10
  • New EAS page to change Load tracker, governor and enable dynamic schedtune boost!
  • Added 60FPS app download link since NGK now supports 60FPS
  • Boot delay removed
  • No more annoying persistent notification!
  • Thermals and codecs switching should now work for everyone
  • DTS Eagle page updated
  • Adapted profiles for EAS
  • Small fixes/optimisations
*Notes :
-You may need to uninstall previous app for it to install
-I recommend using my app over others to tweak EAS kernel since its made for the specific OnePlus 2 implementation


Kernel:
  • 60FPS Video Recording support added ((This app is needed))
  • New more efficient Simple Low Memory Killer
  • CPU-Boosting, Fingerprint, Cache, MMC & Sched optimisations
  • Improved F2FS (700 commits+) averaging about 10% better write speeds over EXT4 in my tests
  • Battery improvements (mostly to screen off drain)
  • And more under the hood changes
  • Adapted to Android 10
  • Updated to latest LineageOS changes

2.7 Build:
NoGravity 2.7 App:
  • New Backlight Dimmer feature added to GPU page
*Notes :
-You may need to uninstall previous app for it to install


Kernel:
  • Fixed stucked on 1+ logo while charging issue
  • While at it, improved that charging screen with battery percentage and colors
  • Fixed big cores turning off randomly or when gaming resulting in same/constant performance for every sessions or benchmark
  • Updated to latest LineageOS changes

2.6 Build:
NoGravity 2.6 App:
  • New App Settings Page
  • Fast NGK App opening after boot toggle added to app settings*
  • New Camera Page
  • New video recording codecs switches added => H.264(Default), H.265(Lower file size) and H.265+(Better Quality)*
Kernel:
  • DeepSleep issue is fixed!
  • Reworked Battery profile to make it usable and quite smooth
  • Battery optimisations
  • AdrenoBoost modifications to fit NGK’s GPU Overclock and help battery
  • BCL modifications
  • Little faster app opening speeds
  • UI optimisations
  • Updated to latest LineageOS changes..
  • [/STRIKE]Placed some performance-critical IRQs and kthreads onto the performance CPU cluster in order to improve performance[/STRIKE] (2.5.1 feature removed in 2.6 to fix deep sleep issues)
  • And more under the hood changes
*Notes :
-Possibility to remove the delay before opening the app after boot. This works on new ROMs. Old ROMs like Shreesha’s Pixel Experience will need the delay to be enabled.
-H.264 is default OnePlus 2 codecs. H.265 (lowered bitrates) will give you same quality but much lower file sizes. H.265+ may give you slightly better quality with same(stock) bitrates (same file sizes). Best file size reduction will be seen in 4K.


2.5.1 Build:
NoGravity 2.5 App:
  • Same app just updated Android File Host link because of the "no mirrors found" issue...
Kernel:
  • Smoothness improvements
  • GPU maximum frequency is now 650MHz on balance profile instead of 450MHz since not everyone uses profiles and some people like to game on balance too. This will give better gaming experience on default profile.
    [*]Random phone not waking up after going in DeepSleep issue should be fixed not fixed will be in next build go 2.4.2 instead if you encounter this issue
  • Updated to latest LineageOS changes.. Video recording fixed!

2.5 Build:
NoGravity 2.5 App:
  • K-Lapse Night & Brightness modes toggles added to GPU page
  • Max overclock toggles states after reboot fixed
  • No Gravity EAS support
Kernel:
  • Updated with NGK's latest changes
  • Missing Underclock frequencies fixed

    2.4.2 Build:
    NoGravity 2.5 App*:
    • AGK Kernel support
    Kernel:
    • First Release see features list in OP for full list of features.. AGK has same features as NGK but without Overclocking, Custom Thermals and Profiles.. AGK will continue to follow NGK's features for futur updates
    • AntiGravity Kernel is now Official CrDroid's integrated kernel! Get the ROM HERE
    *Notes : No need to download again support was added way before


ROMS with inbuilt AntiGravity Kernel:
 
Last edited:
  • Like
Reactions: lucyr03 and Nixx7

Pierre2324

Senior Member
Oct 25, 2015
1,458
2,125
153
22
Surprise for yall!

New AGK build (2.4.2) is up.. Wait what AGK? Yea you read it right AntiGravity Kernel is here! This kernel is made for ROM developers who wanted to integrate NGK into their ROMs without the heavy modifications that NGK requires. Whats in AGK? everything NGK has to offer except Overclocking, Custom Thermals and Profiles thread updated.. :cool:
 

Pierre2324

Senior Member
Oct 25, 2015
1,458
2,125
153
22
Hey everyone new section added under changelog: ROMS with inbuilt AnitGravity Kernel
This section will be updated when developers release their ROM with AGK inbuilt
 

Pierre2324

Senior Member
Oct 25, 2015
1,458
2,125
153
22
Good news! New build(2.5) is out along with new NGK app! Thread updated go see the new What Suits You Best Picture! and please read changelogs...
 

desteele

Senior Member
Apr 8, 2011
247
119
0
Well I finally got it to load by doing ADB sideload, but when I install the no gravity app, I can't get past the splash screen. It asks for root, I grant it, and it freezes.

Any ideas?
 

gps3dx

Senior Member
Jan 24, 2010
721
355
0
Wonderful kernel - the *only one* that many HAVOC rom's pie camera to work using built-in camera app & 3rd party. ( I tried no-gravity eas but it has that camera/video recording issues ).

is there anyway to add support for fast/quick change for this fork of kernel ( aka "anti gravity" ) ?
thanks !
 

Pierre2324

Senior Member
Oct 25, 2015
1,458
2,125
153
22
Wonderful kernel - the *only one* that many HAVOC rom's pie camera to work using built-in camera app & 3rd party. ( I tried no-gravity eas but it has that camera/video recording issues ).

is there anyway to add support for fast/quick change for this fork of kernel ( aka "anti gravity" ) ?
thanks !
It supports fast charging, but won't be as fast as NoGravity Kernel since it doesn't have a custom thermal configuration
 

Pierre2324

Senior Member
Oct 25, 2015
1,458
2,125
153
22
Kernel + App Update

Good news! New build (2.7) and new NoGravity 2.7 app are up , please read changelogs in post #2! thread updated..

Don't forget to take a look at the new Battery Charging Screen! Yea offline charging issue is fixed
 

chxei

Senior Member
Jun 26, 2015
483
117
63
tbilisi
Two days in a row I left phone with 20% battery and went to sleep, when i woke up it was turned off. Looks like idle drain on latest version. I have clean flashed crdroid. Will look into battery stats and monitoring, if its some apps caus but i dont think so.
 

Pierre2324

Senior Member
Oct 25, 2015
1,458
2,125
153
22
Kernel + App Update

Good news:cool: New NGK, AGK & NGK EAS Builds along with the App updates are here! Please do read the juicy changelog! Thread updated quite a lot and new detailed infos about the EAS Kernel in NGK's thread post#3. What suit you best picture with charts to compare the three kernels updated in OP too.

For Android 10 users, make sure you flash latest Magisk after you flash the kernel!
If you don't want root simply do not install the app afterwards

Let's celebrate this new release with a new antutu benchmark record and a new Logo! => (spoiler alert) :cool:

As you can see from the new logo, NGK and App will support Xiaomi Pocophone F1 device shortly..

As I put a lot of time and effort into Android development, wmbruckner (OnePlus 2 user now on Pocophone) created a crowdfunding so I can get the device for NGK development,
If you want to support me you can do so here:
https://www.gofundme.com/f/ngk-for-poco