[Galaxy S 4 i9505 Original Android Development] Buff99:
View attachment 4521232

Current issues

​

Bluetooth

Calls made / received using bluetooth headsets are garbled.

Car connections may well be the same.

Camera

fully working

Root / Safetynet

The only tested and verified root solution is Magisk. Recommended: latest beta (17.1)

Lineage root did not work when attempted - may be re-visited in future.

Magisk / safetynet failing issues are beyond scope of this thread.

If you have Magisk problems refer to the Magisk support thread here.

Good thread of hints and tips for Magisk by Didgeridoohan here.

Audio mods

The only tested and confirmed working audio mods are Viper4AndroidFX / V4fxmat / JamesDSP + Ainur Sauron + AML flashed in MagiskManager.

Viper flashed from TWRP does not work.

Other Magisk mods

Font mods work fine

Doze / Deep sleep

Deep sleep is easily achieved.

Doze works well when the system allows dozing.

Be aware of apps that prevent Doze from starting. These will be apps that keep the wifi or data connection enabled to allow some kind of server to run enabling remote access. Examples so far include Airdroid and AirAudio. If you want to run an app like this you will not Doze

To easily see if you are getting doze, look at your battery usage graph and when suspended if you have a near-horizontal line then you are dozing and getting the best possible battery savings when suspended.

Doze relies on an active connection to Google messaging services, so closing off all active data / wifi connections will (counter intuitively) stop doze and therefore cause more power drain. Doze manages the power states of your connections and stops wakelocks and alarms firing when suspended and batches them all together so everything fires at once minimising power usage.

Wifi seems to be less likely to achieve doze due to wlan_rx_wake wakelock. If this affects you try using data connection instead of wifi when suspended.

Custom DPI

The rom is currently set at a non standard 420dpi. If apps are having problems change back to 480dpi.

Themes

There is the basic Lineage themeing system built in.

There is also full OMS support, so you can install Substratum and use Substratum themes for oreo. For some themes the rom is treated as an 8.1 Pixel / Nexus rom.

I would not recommend mixing both theme systems. Most substratum themes seem to be built on top of a white basic theme, so if using Substratum set Lineage theme to white.

The first time you try to build and apply a Substratum theme it may correctly make the overlays and appear to apply them, but do nothing. If so reboot and re-apply the overlays again and they will work after this.

Kernel

The current kernel is a fork of BB's AOSP 8.1. It has fast charging and added battery saving features from RR-N Buffcore but no added governors or schedulers.

Permissive SElinux

The rom is currently set to be permissive i.e reporting SElinux denials but NOT enforcing them. It's simply too early to be enforcing as the rom / kernel is not finished. If it bothers you then try using a utility to flip enforcing on but be aware functionality may start to fail. If it really bothers you, do not use this rom and use one of the many other oreo roms that are set for enforcing.

Spectrum

Spectrum support is enabled to allow switching between 4 preset performance profiles. (0=default Buff, 1=AOSP / OptLos stock, 2=Buff tuned slower, 3=Buff with linear tuned interactive gov).

Spectrum app needs downloaded from here.

OR install the Buffcore Aduitor from the JDC aroma package as spectrum support is built in.

Battery

Battery life will currently not be quite as good as the final versions of RR-N, but still decent and usable.

Battery saving tips:

Go to Memory > apps started on boot. Disable "start at boot" and "run in background" for any apps that shouldn't be running all the time.

Disable Bluetooth / NFC / GPS / wifi & bluetooth scanning whenever practicable.

Test if wifi or data connection are more power efficient when phone is suspended. Phone connections can be wasteful in suspend when in poor reception areas. Poor wifi reception can also be wasteful. Often router bugs / mis-configurations can cause too many externally triggered wakeups on wifi .

Do what you can to get Doze running when suspended. Especially try NOT to use apps that keep a server running at all times as this will prevent Doze from managing your active data / wifi connection.

Go to configurations > misc > suspend actions. Set 2g / data off / gps off as necessary?

Install spectrum and choose a profile as documented in post #7.

Go to configurations > misc. Enable "sensor block per package".

Go to configurations > misc > system app remover. Remove apps not required / wasting power in background.

Use a kernel tuning app - Buffcore Aduitor / Kernel Adiutor / EX Kernel manager / etc. Change / tweak governor. Undervolt CPU speeds.

Installation

During gapps install wifi could be difficult to get an initial connection. If you find wifi does not see any networks, try backing up to start of setup and going through again. Or reset the phone and setup will start again from the same point - hopefully picking up wifi networks.

Not supported

Cannot / will not add MicroG support.

Xposed. Do not report bugs if you use xposed.

Alternate kernels. i.e. not Buffcore or Sidecore.

Future

Treble-ised implementation. Erm. No. Not soon. Maybe never.