[Xiaomi Redmi 3s ROMs, Kernels, Recoveries, & Other] TeamMex:
Changelog: last build

xx/xx/XX

xx/xx/XX in the date means no release date yet.

20/10/2017

CVE-2017-0809 (Stagefright: avoid buffer overflow in base64 decoder)

CVE-2017-0810 Fixed Memory Overflow Errors

In function impeg2d_dec_p_b_slice, there was no check for num_mbs_left ==

0 after skip_mbs function call. Hence, even though it should have returned

as an error, it goes ahead to decode the frame and writes beyond the

buffer allocated for output. Put a check for the same.

CVE-2017-0811 (Ensure CTB size > 16 for clips with tiles and width/height >= 4096)

CVE-2017-0815 CVE-2017-0816 (Add EFFECT_CMD_SET_PARAM parameter checking to Downmix and Reverb)

A lot of camera changes im too lazy to write everything.

also thanks to [MENTION=8316567]nichcream[/MENTION] for his big help with this. (I'm really busy working in the moto mods support for the moto Z play)

Kang media stack from santoni

Fix missing files of DPM service

Fix some issues with GPS (Kang missing blobs from Garlic/marmite)

Revert to old WCNSS for those guys who things the change of the mac (the first time is a bug(and yes it change every clean install only))

Fix KERNEL CVE's

Allow user to add/remove QS with one click

16/10/2017

land: Allow HAL to handle video buffer duped FD's.

Outdated camera HALs aren't closing native handles internally,

causing video recording to freeze after ~30s

thanks to [MENTION=8316567]nichcream[/MENTION] for point me out to this. (weird since I updated the hal xD)

CVE krack (WPA_SUPLICANT)

more minimun changes.

12/10/2017

Flash issue in camera (photos ) and camcoder fixed thanks for the idea to [MENTION=8316567]nichcream[/MENTION]

Fixed some issues with Qualcomm location app

added QtiTetherService

Returned DPMService

added missing blobs.

update ims from op3

if you get dark video recording hey you can use the flash now xD

07/oct/2017

Fix QCamera2: HAL: Convert Boottime from ISP to MONOTONIC

QCamera2/HAL1: Not to modify video timestamp in VT usecase

Issue:

In VT usecase, ISP Query the special timestamp from AV timer

i.e, from avcs_core_query_timer() which is different from

Boottime/Ktime. This is needed for synchronization between

audio and video as both will be using the same time source.

But Camera HAL adjusting this AV timer to Ktime assuming

ISP giving regular Bootime like in standalone recording

which results in time stamp difference.

Fix:

Not to change the video timestamp in VT use cases.

QCamera2: HAL: Enable presentation timestamp logic only for video

QCamera2: HAL3: correct timestamp calculation in HFR mode

When the phone powers up for several days,

the timestamp (in ns, nano sec) of frames will exceed the

precision of float data type.

It will lead to incorrect timestamp calculation in

HFR batch mode. Use double instead

Ack-by: Gaoxiang Chen

QCamera2: HAL: Fix bug in Preview Timestamp computation

Issue:

Some of the variables are in msec but they are directly used in

nsecs related calculation and thus resulting wrong preview

timestamp. Due to this testCameraToSurfaceTextureMetadata

cts is failing for HAL1.

Fix:

Covert the required variables to nsec before their usage.

QCamera2: Disable sync cb when facebeauty is enabled.

Issue:

The sync cb is taking too much time in case of facebeauty

enabled and leading to delay in dequeue of other stream

frames. Due to this forming of superbuf is getting delayed

as well resulting in capture stuck for quite large time

Fix:

Disable sync cb in case of facebeauty is enabled

QCamera2: HAL1: Fixing a bug in beauty mode.

Issue:

If the prev and current mode is in beauty mode,

then changes for whiten and clean does not take place.

Fix:

Incase when beauty mode remains ON, check for changes

in settings for WHITEN and CLEAN and apply.

QCamera2: HAL1: Fixing KW errors.

Issue:

String not check for NULL and dereferenced.

Fix:

Added NULL Check.

QCamera2/HAL1: Remove FPS mitigation in Camcorder mode

Issue:

1) FPS throttling happening in Camcorder mode and So, the

final recorded clip as < 30 fps which is not acceptable.

2) In camcoder mode when thermal mitigation level is

QCAMERA_THERMAL_SHUTDOWN then camera need to exit gracefully.

But this is not happening since in updateThermalLevel()

if RecordingHint value is true not honor QCAMERA_THERMAL_SHUTDOWN.

Fix:

1) We should not change FPS in camcorder mode for thermal

mitigation. This change removes that.

2) In updateThermalLevel(),if RecordingHint value is true

honor QCAMERA_THERMAL_SHUTDOWN.

Camera Changes in kernel side too.

Dark video fixed thanks to [MENTION=8316567]nichcream[/MENTION] majority changes made by nich =) in my case was fixed :D please test and report.

05/oct/2017

Fixed 60fps 1080p with camcoder (using google camera4)

fix media server to avoid issues when you try to use the camcoder

camera/QCamera2/HAL3: Return reprocess output without holding back

QCamera2: HAL1: Call set_buffers_geometry() with actual preview dimensions

QCamera2: HAL3: Report frame drop error for blob request.

QCamera2: Add lock protection for stream list access.

QCamera2: Fix for LSS snapshot when flash is ON

QCamera2: HAL1: Fixing a bug in beauty mode.

QCamera2: HAL1: Force Flash Off only when StillMore alone is enabled

QCamera2: Fix memory leak when fail to open camera device.

camera: add lock protection for streams

change to HAL3 (recomended the usage of Google camera)

30/09/2017

change to 0 monotonic this break the camcoder.

Move to HAL1

land: enable legacy encoders CAMERA HAL1

25/09/2017

Reverted to magisk v13 v14 have a lot of problems

camera: Set ts.monotonic back to 1

Add keymapping for fingerprint (this fix the fp acting like button) why this device have "that issue" well that maps are maded for these devices who have rear buttons in that place ie. LG devices.

...

22/09/2017

QCamera2: HAL: Convert Boottime from ISP to MONOTONIC

land: disable proximityCheckOnWake

land: drop obsolete BOARD_HAS_QCOM_WLAN_SDK flag

land: Build wcnss_service from source

land:Change some camera props

Revert "sqlite: Enable ATOMIC_WRITE" cause some problems with EXT4

StagefrightRecorder: Reset AudioSourceNode during LPCM recording

frameworks/base: Checkins batterystats dump format

Use acquire approach while retrieving futex contenders

21/09/2017

Fixed GPS using the correct way not removing that crap from overlay

added time services

move to XiaomiDoze from kenzo

add heaset keylayout based in changes from daniel.stuart14

Fix usb music playing issue (?????????????)

19/09/2017

move ts.monotonic from 1 to 0 in some devices it can help with these issues with camcoder

change the FP detection following MIUI and nichcream work (i hope ths fix goodix issues)

do not set night mode as default

FP: spi_prepare permissions thanks to daniel.stuart14

"What is this (extracted from the source)? -- * In the correct order according to the sensor spec this function will enable/disable regulators, SPI platform clocks, and reset line, all to set the sensor in a correct power on or off state "electrical" wise.

This function will not send any commands to the sensor it will only control it "electrically"

change some brightness things

add missing ims vt and wfc

Set hardware keys VIRTUAL flags

---When virtual soft keys are located within or in close physical proximity of the touch screen, it is easy for users to accidentally press a button when touching near the bottom of the screen or when sliding a finger top-to-bottom or bottom-to-top on the screen. To prevent this, the input system applies a little debouncing such that virtual soft key presses are ignored for a brief period of time after the most recent touch on the touch screen (this delay is called the virtual key quiet time).

not need to add <integer name="config_virtualKeyQuietTimeMillis">250</integer>

move to old msm8937 power profile.

17/09/2017

fixed some camera issues

added asb patch based in los for sep

land: add aptx support https://www.aptx.com/

land: bluetooth: unified default name

land: camera: fix some Headers

audioflinger: Use offloaded effects in case of PCM offload

Back-port fixes for b/62196835

and i dont remember more x_x

13/09/2017

Switch to OSS camera HAL Thanks to [MENTION=5903873]HridayHS[/MENTION] for his work

VoLTE status bar icon

Dont ask for VoLTE issues like video call from dialer (hey I can't use VoLTE in my country sorry but leave jio things if u want it go back to miui if it is supported )

land: Shim old camera client to ims-camera

land: power-8937: rebalance bias_power profile ppl want more economy [MENTION=4505438]difr[/MENTION]

backlight min level decrease [MENTION=4505438]difr[/MENTION]

fix AB1 board fingerpint is FPC and not Goodix

more inside Settings--> about --> changelog

11/09/2017

Fixed sepolicy issue for these guys who want to play to be a developer (XD )

Camera Flash issue fixed

Bluetooth mac changing issue

Bluetooth (CVE-2017-1000251)

Added google camera to the download list

-- Use it if u have weird issues using snap camera

more FP sepolicy

Switch to Magisk 14

some builds ago! flac was fixed by zhongab1708 I forget to add it in changelog list.

10/09/17

Camera issues fixed thanks to [MENTION=8316567]nichcream[/MENTION] for pointme to the missing shim thanks dude!

remove core_ctl and dont force to limit freq thanks to [MENTION=4505438]difr[/MENTION]

land: power-8937: back to 5 profiles & rebalance bias_power thanks to [MENTION=4505438]difr[/MENTION]

Fixed black screen after boot animation

08/09/17-Hotfix

camera not connect fixed

more FP denials (some goodix)

GPU and overclock by [MENTION=4505438]difr[/MENTION]

Tuned thermal-manager by [MENTION=4505438]difr[/MENTION]

modified power hal by [MENTION=4505438]difr[/MENTION]

optimal dex2oat

08/09/17

FPC fingerprint fixed (godix untested)

some camera issues fixed camera is more stable but maybe contain troubles

kernel side updated about camera

Enable ZSL and disable longshoot

add more camerashims, sensors etc

perf fixes.

29/08/17

camcoder fixed (maybe issues opening camera app )

addres more sepolicy denials

Forced lz4 zram

add fp changes (stilll buggy)

land: enable TARGET_CAMERASERVICE_CLOSES_NATIVE_HANDLES this fix the camera daemon issue(?)

Restart preview for back camera and front camera

Disable HDR 1x frame fix hdr without need to do a opening scenes

Follow implementation for HAL1 based on Addison

land: Disable dex2oat watchdog

land: enable legacy encoders

26/08/17

land: Fixed media server issue when you take a photo

Kernel:add lz4 zram

Kernel:optimized cryptographic algorithm

Kernel:enabled bfq io

Kernel:revert libc camera hax

Kernel: qpnp-smbcharger: Publish charger voltage to the usb psy

land: give fix permissions for GOODIX FP

26/08/17

Camera partially works (thanks to [MENTION=8316567]nichcream[/MENTION] )

To use HDR open filters and now u can use HDR in back camera (in front camera isnt bugged)

Force HAL1

Add-libc-hax-for-camera

CPU overhead fixed

Fixed a lot of permissions

correct the hotpluging

moar sepolicy fixes

moar kernel changes

move to Stock statements of ZRAM

Fixed VULKAN libs /(thanks for the help [MENTION=6758503]assusdan[/MENTION])

ROM

update translations

minor updates

23/08/17

enable SdcardFS

(untested ) camera hal

fix CPU hotplugging

correct performance configurations

drop irq balance

move to enforced SELinux

update media codecs

Merge security patches to kernel side

Kernel rebased on msm8953