[Galaxy S III Android Development] ChronoMonochrome:
Changelogs

Changelog

6.03.2019 - build #3a

Correct NativeWindow PixelFormat fix (should fix crashes in apps like Google Play)

Re-tune Power HAL to match build #1a (22.02.2019)

5.03.2019 - build #2a

Update sources

Switch gralloc to UMP-only allocations*

Actually include LiveDisplay HIDL this time

Dropped earlysuspend support in a favor of autosuspend (credits to [MENTION=2222292]rINanDO[/MENTION])

Build libEGL_mali from sources & set the correct pixel format for the native window**

Fix NFC service crashes & include NFC feature

Reverted kernel ext4 fs updates***

Bluetooth: revert to LK 3.0.101****

* this should fix some artifacts like the distortion in the camera app or some apps like Chrome.

** this fixes color inversion in videos produced by Recorder app

*** recently pushed updates seems to be incomplete and according to some user report were also causing filesystem corruption...

**** a possible fix for the BT calls. Have no idea if that was broken by LK 3.4 update but lets just see if it fixes anything...

22.02.2019 - build #1a

Update sources to android-8.1.0_r52 (security patch 2019-02-05)

Fixed gralloc artefacts with HIDL addition

Update to LiveDisplay HIDL 2.0 (thanks [MENTION=2222292]rINanDO[/MENTION])

Clean sources up to get rid of most of hacks*

Hex-edit proprietary blobs libsec-ril.so and glgps to get rid of text relocations

Added symbol required by libsec-ril.so (and removed use of now unneeded shim lib)

Added incall CPU boost hook by [MENTION=4898097]arter97[/MENTION]

Added back hotplug support to Dynamic CPU governor

Optimized Power HIDL for even better power savings

Switch to 64-bit version of binder (official addonsu now should work)

Revert sensors to Replicant OS version (+ some fixes for them to work)

* torch wakelock patch is moved to kernel, removed hack for audio playback detection and so on.

Also removed patches I found that were unused (I hope I didn't remove anything that was actually in use).

(Customized builds)

6.02.2019 - build #15

Fixed graphic artefacts (hopefully fixes lags during scrolling too)

Fixed AdvancedDisplay (mDNIe)

All credit goes to [MENTION=2222292]rINanDO[/MENTION].

5.02.2019 - build #14

Fixed screenshot issue

Fixed vibration

Reverted Binder driver to 32-bit version

Re-tuned CPU governor for better performance

Re-enabled GPU step 3

3.02.2019 - build #13

Fixed and added back HWComposer (thanks to [MENTION=2222292]rINanDO[/MENTION] for patches)

PowerHAL && kernel CPU governor are tuned for better powersavings *

Disabled GPU step 3 for better powersavings

Switch kernel to Powersuspend driver (credits goes to Paul Reioux and Jean-Pierre Rasquin)

Build now got rid of many hacks in Android sources**

Switched to FunctionFS from legacy ADB driver (thanks to [MENTION=2233641]AdrianDC[/MENTION] for patchset)

Updated SDcardFS code from [MENTION=2233641]AdrianDC[/MENTION] Sony huashan kernel

Fixed kernel to switch to BOOTTIME support (thanks [MENTION=2222292]rINanDO[/MENTION])

Removed any CMA-related kernel hacks for better device stability

Switched to Camera HAL2 (fixes modes like panorama in Google Camera)

Fixed broken workaround for SIM detection (again)

* Please test and give some feedback about these changes. Usage of high CPU freqs now should be limited as much as possible (it's an intended behaviour). Also this update makes PowerHAL profile working.

** Moved libc pthread hack to shim, also reverted RIL ashmem hack (thanks [MENTION=5795145]javelinanddart[/MENTION] for original commit and helping me with fixing our RIL blob).

13.01.2019 - build #12

Bring CMA enabled kernel back

Reverted to Dynamic CPU governor

Added GPU control (thanks [MENTION=2660962]netarchy[/MENTION], Andrei F., [MENTION=7427799]pascua28[/MENTION])

Gralloc fixes (credits to [MENTION=2222292]rINanDO[/MENTION])

Added power HIDL (thanks [MENTION=2222292]rINanDO[/MENTION])

Various patches for the Dialer (thanks to [MENTION=1508790]SergeyL[/MENTION])

Fix for choppy audio playback

Added Google Camera (thanks Quiec@telegram)

Build is now signed with release keys *

Fixed (hopefully) device wake up issues **

* This should prevent the Trust from giving a warning about public keys being used. A possible fix for some apps that previously couldn't have been installed from Play Market (not tested).

** The known issue, however, is device slowness right after device first boot.

There is nothing to do, just wait until mediaserver get scanned all files and dex2oat finish apps optimization. After that the phone is responsive again.

8.01.2019 - build #11

Reverted CMA changes (build has 770 Mb RAM available) *

Set Lionheart CPU governor as default

Added Substratum theme engine support (thanks [MENTION=1508790]SergeyL[/MENTION] for patches)

Various optimizations from [MENTION=1508790]SergeyL[/MENTION] LineageOS 15.1 build

* Because of some issues (like slow device wakeup) reported, I'm reverting for now back to CMA disabled.

In case if anyone want still using kernel with CMA enabled (this build has 937 Mb RAM available), I have built a kernel, download link below:

https://www.androidfilehost.com/?fid=11410963190603893736

5.01.2019 - build #10

Fixed accelerometer issues

Enabled Contiguous Memory Allocator *

Added memory management tweaks (see 94kernel init.d script), zRAM size changed to 300 Mb

Added Torch wakelock (thanks [MENTION=2222292]rINanDO[/MENTION])

Changed user-settable display brightness interval (thanks to [MENTION=7914139]Oebbler1[/MENTION]) **

Updated video drivers from n7100 (thanks to [MENTION=7427799]pascua28[/MENTION])

Updated CPU voltage table from [MENTION=7427799]pascua28[/MENTION] kernel

Fixed CPU hotplug issues on Dynamic CPU governor

Added experimental HWComposer back

* This one was a toughest thing to get to work. After some testing of various patchsets and memory management tweaks I've decided to go with the original CMA implementation (by Samsung). A short test of heavy-tasking (with Google Chrome) didn't show any lags, but I might've missed something, so your assistanse in testing / reports are welcome!

Currently available RAM is 956 Mb (compared to 776 Mb on previous build).

** Now display can be set much darker than before. Please be sure to set the display brightness higher before flashing new build (if you were already using a considerably low brigthness).

15.12.2018 - build #9

Re-add Camera2 app *

Rework memory management optimizations **

* Because of some snap issues now we again have two camera apps. I'll consider further switching to some another camera app, unless I can fix it some other way (e.g. we can try some fixes for camera HAL from Galaxy S2, which aren't currently ported to S3).

** This is just a quick rebuild in which I've reverted previously applied memory optimizations from LineageOS 16.0 and applied ones from LineageOS 15.1 build for Galaxy Ace 2. Credit goes to [MENTION=1508790]SergeyL[/MENTION] for these optimizations.

Please test and report if you feel it works better.

13.12.2018 - build #8

Fixed wifi (flashing wifi fix should be no longer needed) *

Fixed sensors (thanks [MENTION=2222292]rINanDO[/MENTION] for help)

Implemented in-kernel battery charge level LED notification

Added CPU hotplug support for Dynamic governor (ported from PegasusQ governor)

Reverted kernel timer to 200 HZ (Exynos4 default value)

Added exFAT file system support (not tested)

Fixed menu key function override (thanks [MENTION=7105282]ComicoX[/MENTION])

* not tested. Mine S3 has semcosh radio chip, in which case flashing wifi fix was already unnecessary. Please report if wifi now works without flashing fix linked in OP.

27.11.2018 - build #7

Revert sensors updates (ambient light sensor breakage)

Small improvements to RIL workaround

Added init.d script for Boeffla Sound and Charge Level interface*

A small change in SIM detection workaround will allow to detect SIM faster if phone boots in airplane mode.

* Thanks to [MENTION=7451289]Marc0601[/MENTION] and [MENTION=363297]NoN1979[/MENTION] for pointing to this script! Also thanks to [MENTION=5314272]Darkened_Sky[/MENTION] for writing this script :)

Known issues

AKM sensors aren't working properly. A prebuilt Akm blob we use seems to have some broken logic regarding enabling / disabling Accelerometer and Magnetometer.

26.11.2018 - build #6

GPS improvements (thanks to Nik2001Nik3006@4pda.ru)

SIM card detection workaround *

Reverted SELinux changes**

Added FIOPS I/O scheduler and set as default

Added SDCard FS support

Added Boeffla Sound***

Added charge level interface (from Boeffla kernel)

Added CPU undervolting interface (and update the default UV table from [MENTION=7907521]A$teroid[/MENTION] kernel)

* A temporary solution, that basically resets the RILD daemon, but still better than nothing. After booting the phone in the airplane mode SIM card now is detected, though I could't encounter a rare case where SIM is not detected at bootup when not booting in airplane mode.

** Magisk doesn't seem to support SELinux-disabled kernels, so reverting changes from previous build.

*** Some of you asked me to add Boeffla sound - so far only kernel level is implemented, not sure about implementing an app. If anyone know an open-source app that supports Boeffla kernel features, let me know.

Known issues

AKM sensors aren't working properly. A prebuilt Akm blob we use seems to have some broken logic regarding enabling / disabling Accelerometer and Magnetometer.

18.11.2018 - build #5

Update kernel to 3.4.67. We are now using LK 3.4 sources! *

Kernel: set kernel scheduler HZ to 300 for even more smoothness

Kernel: switch to Dynamic CPU governor and tune it for i9300 (credits for this CPU governor goes to [MENTION=3329816]mkaluza[/MENTION])

Fixed GPS

HWC is actually updated to the newest one**

Fix USB mode not to be set to charging only by default (thanks to OmniROM)

Add UMS USB mode***

Add option to disable media scaninng (not tested)

Add Signature Spoofing patch (not tested)

SELinux status spoofing (set to enforced now) ****

Add custom animation transition scales

Various fixes from AICP, OmniROM, BlissROM and other ROMs (thanks to [MENTION=1508790]SergeyL[/MENTION] for patches)

* I have been testing this kernel for a few days and hopefully fixed all the instabilities. Please report any reboots or other bugs you've found (if any).

** have forgot to remove an old HWC, so now we actually switched to HWC from experimental CM14.1 builds. Credit goes to [MENTION=7907521]A$teroid[/MENTION] for filtering out an unsupported RGB565 layers.

*** this is an experimental feature I've originally implemented for Ace 2. Make sure to safely eject your phone's SD card on the host device before unplugging the cable (otherwise it may lead even to filesystem corruption)

**** SELinux is NOT actually set to enforced mode, nor it's enabled at all, it's just a preparation for apps that may require this. You can switch it to "permissive" mode by setting a property sys.selinux_enforcing to false in build.prop:

sys.selinux_enforcing=false

P.s. I haven't been noticing any freezes nor I could reproduce it, however I've had some gralloc errors. Let's see how it's going with a new HWC (though I wouldn't think that it will solve all errors)

Known issues

SIM sometimes is not detected at device boot. It's never detected when phone is booted in the flight mode (after a flight mode is turned off).

Probably GPS could be working better (not merged [MENTION=2222292]rINanDO[/MENTION]'s fixes for GPS yet)

Gralloc buffer release errors

13.11.2018 - build #4

Kernel: updates from n7100 (thanks [MENTION=2222292]rINanDO[/MENTION])

Reset memory management config to S2 kernel

HWC: merge changes from experimental CM14.1 builds (thanks [MENTION=5405215]forkbomb444[/MENTION])

Revert Mount Namespace / Magisk Hide patches

Revert cameraserver to a separate service

11.11.2018 - build #3

update source to 8.1.0_r50

reboots issue fix (thanks to [MENTION=7907521]A$teroid[/MENTION] for kernel patch)

9.11.2018 - build #2

fixed Calls (needs to be confirmed!)

fixed SDcard issues (thanks to [MENTION=7907521]A$teroid[/MENTION] for kernel patches)

added Magisk hide kernel patch (thanks to [MENTION=7907521]A$teroid[/MENTION]), NOT tested

fixed V-Sync issues

another minor fixes and improvements

5.11.2018 - build #1

initial release