Skip to content

Patch 1 - #1

Open
mutluemir08 wants to merge 71 commits into
mahajant99:lineage-17.1from
mutluemir08:patch-1
Open

Patch 1#1
mutluemir08 wants to merge 71 commits into
mahajant99:lineage-17.1from
mutluemir08:patch-1

Conversation

@mutluemir08

Copy link
Copy Markdown

No description provided.

lupesoltec and others added 30 commits July 5, 2020 17:04
avc: denied { open } for comm="power@1.2-servi" path="/sys/devices/platform/soc/78b7000.i2c/i2c-3/3-0038/wakeup_gesture" dev="sysfs" ino=34415 scontext=u:r:hal_power_default:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
* Move BOOT_SECURITY_PATCH to device.mk
* Move VENDOR_SECURITY_PATCH to device.mk and set it to PLATFORM_SECURITY_PATCH
* Fix bad processing of the chown system command causing high cpu frequencies

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: TogoFire <italomellopereira@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
* Breaks screen recorder, because sdm625 platform doesn't support writeback UBWC
* This corrects the green recording of the games.

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
on skiagl in some rare situations graphic bugs occur
so we enforce opengl for now

 * adb shell setprop debug.hwui.renderer skiagl
 * adb shell setprop debug.hwui.renderer skiavk
   (buggy here as FCs on some apps)
 * adb shell setprop debug.hwui.renderer opengl
   (can be named anything as if the both other doesnt match if fallback to opengl)

Change-Id: I73edc7e380e869e0241d976873322786bac5b98c
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: Ic173e45df6bfb5fa58d0c082c06bf48cba9d733c
Signed-off-by: srfarias <erikofarias@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: 6a0027eeadec9ee57911507208a7dd2b480578e1
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: 394ca74267d4b60c5f53d51dec7d1bd5aa0c073a
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: e9cf1c654b6c145561463563fab6e81dc69a39b1
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
[05-12 16:38:52.435 1579:1688 E/ColorFade]
eglDestroySurface failed: error 12301
java.lang.Throwable
	at com.android.server.display.ColorFade.logEglError(ColorFade.java:701)
	at com.android.server.display.ColorFade.destroyEglSurface(ColorFade.java:642)
	at com.android.server.display.ColorFade.dismissResources(ColorFade.java:339)
	at com.android.server.display.DisplayPowerState.dismissColorFadeResources(DisplayPowerState.java:216)
	at com.android.server.display.DisplayPowerController.animateScreenStateChange(DisplayPowerController.java:1527)
	at com.android.server.display.DisplayPowerController.updatePowerState(DisplayPowerController.java:902)
	at com.android.server.display.DisplayPowerController.access$800(DisplayPowerController.java:91)
	at com.android.server.display.DisplayPowerController$DisplayControllerHandler.handleMessage(DisplayPowerController.java:1951)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loop(Looper.java:214)
	at android.os.HandlerThread.run(HandlerThread.java:67)
	at com.android.server.ServiceThread.run(ServiceThread.java:44)

* Some Xiaomi devices seem to have an issue with EGL.

Change-Id: I00c51ebcc2dac4c4a7245867e9581439dbe25556
Signed-off-by: Andrew Hexen <SyberHexen@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
* This commit fixes slow Internet speed while using Bluetooth

Change-Id: c1a85c4647b200cba4cad640bdc496419023cb04
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: Id82aaf8e554e4fa73c205f4356a79af9496328ef
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: I506e59e46d1b3d15f76f86d58a2d1c61b012ef6a
Signed-off-by: PainKiller3 <ninadpatil100@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
 * From xiaomi/daisy/daisy_sprout:10/QKQ1.191002.002/V11.0.5.0.QDLMIXM:user/release-keys

Signed-off-by: ShihabZzz <Shihab.riadn@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
fix: unable to find path 'hph-highquality-mode'

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
 * The anti-falsing implementation from HumanInteractionClassifier
    regularly prevents easy swipe to unlock or to pattern / pin
    on the keyguard lockscreen, requiring multiple attempts
    until accepted due to a hardcoded evaluation (5.0f)
    while normal usage shows better results without it

 * Another solved situation is remote device access like
    Vysor or TeamViewer were the device is almost impossible
    to swipe properly from a computer client

Change-Id: I0c2590f56e2cf6d6cd4ff3af2341a985670168e3
Signed-off-by: Adrian DC <radian.dc@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
FastTransition is enabled by default in qcacld thus advertise it to Android.
Remove wifi buffers overlay while at it because it's set by common fwb.

Signed-off-by: xNombre <kartapolska@gmail.com>
Change-Id: Id237a83f90af6bec21e07871e567306c69f1298c
Signed-off-by: smokey18 <kmboplays@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
mahajant99 and others added 30 commits July 17, 2020 19:30
* This reverts commit 0dbb55a, 7aa2180, d141151.
* Remove duplicate props
* Fixed UI lags

Signed-off-by: Tushar Mahajan <mahajant99@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: Ifb1cbb9d012f684d99c318417e14f1a4f1e59120

Signed-off-by: TogoFire <italomellopereira@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
* Note: this option equal to 0 makes the wifi-display green

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
*The Android low memory killer daemon (lmkd) process monitors the memory state of a
running Android system and reacts to high memory pressure by killing
the least essential processes to keep system performing at acceptable levels.

* Kang LMKD props from newest google devices (aka Pixels)
* This makes LMKD spread its wings and become a multitasking beast over kernel side LMK

Signed-off-by: vitor00almei <pondebatata@outlook.com>
Signed-off-by: TogoFire <italomellopereira@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: Iacec118bb6f2467368848ee7c3fb515d0e051d0f
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
 * This is the preparation for turning the package into
   an unified device-settings app.

Change-Id: I255f1ab8dab0e1037dee766a5ba5ee9f62fdfe6d

rosy: parts: Match Pie settings UI

Change-Id: Ia1cde37923c55faf057189f7085b69522e2802ef

rosy: doze: Move DozeUtils.checkDozeService in an handler

* There's no need to manually write to the gestures prefs
  as long we are sure the handler is run after we return true
  in the onPreferenceChangeListner

Change-Id: I090c0c6c91267aff69c45365b95b5f5e26d07b07

rosy: parts: Introduce Dirac preferences

Add a frontend for Dirac sound optimization settings.
Inject into sound preferences through settings IA.

Change-Id: I37f6e64fa440c43dbe238cc65af5f9b0bbd60d83
Signed-off-by: Joey <joey@lineageos.org>

rosy: parts: Add DiracSound backend

Special thanks to vasishath for his base work on mi3 (https://github.com/vasishath/Dirac)

Change-Id: Id81e60a18dc34c991b82a5a2685c9041222a6ea7

rosy: parts: Add summary for dirac

Change-Id: I2c19b37d303fa3a5fed87a5e37d5f2f05389769c

rosy: parts: Refactor dirac strings

* From MIUI

Change-Id: I1deba13a9a09a195e122e11c586fb5b333d37973

rosy: parts: Import dirac translations from MIUI

Change-Id: Ia7251c6a8db93e9445b302eddf308a65677c66ed
Signed-off-by: Henrique Silva <jhenrique09.mcz@hotmail.com>

rosy: Dirac fixes

* Pause/play music stream to get effects applied
* Rename setMusic to setEnabled
* Increase "BOOT_COMPLETED" broadcast priority

Change-Id: If44acc19beead1fb38ef6d58c3acf04ae67023cd

rosy: parts: Refactor Dirac setup

* Convert DiracUtils to be an instantiable class
* Stop tracking initialization state

Change-Id: Ieb6a828ba98458edce48aa4b5bd66414fcf1109b
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>

rosy: dirac: Only call setEnabled on boot completed

Change-Id: I3b9e9bcd67089dd79ed9cf5abbd0088e8205682e

rosy: dirac: Prevent failures when toggling

Change-Id: I6637e2e169bd31892d37068eafb61932bf33c23d

rosy: parts: override AudioFx for Dirac

sadly.. audiofx is conflicting with our Dirac..
so don't build it along with that

rosy: Dirac: add QS tile

Change-Id: I31759219fc25c8473d52d755eb98f21f5894f691

rosy: parts: Add vector images to doze menu.

These icons were taken from here: https://materialdesignicons.com/

Change-Id: Ib736f572aa1a8ecd882f37707c8069dcb87e82ba

rosy: parts: Add Vector icons for Dirac

Icons taken from https://materialdesignicons.com/

Change-Id: Ie5ccee937e9f7914efc0f8f4a7329bc22e2315ed

rosy: parts: Add AOD support to Ambient Display

 * This makes the always on display mode feature visible for those
   devices that explicitly set it as available via AOSP overlay.
   Should only be enabled on devices where the display has been tuned
   to be power efficient in DOZE and/or DOZE_SUSPEND states.

Change-Id: If543936f9421dd7a6c0be594f7cb76afb227e34b

rosy: doze: Make AOD preference not persistent

Change-Id: I9d80e94de02d35c85765302a01b53020824dd0ff

rosy: doze: Move DozeUtils.checkDozeService in an handler

* There's no need to manually write to the gestures prefs
  as long we are sure the handler is run after we return true
  in the onPreferenceChangeListner

Change-Id: I090c0c6c91267aff69c45365b95b5f5e26d07b07

rosy: doze: Check if AOD is enabled after boot

* The service should not start if AOD has been turned on by the user.

Change-Id: I79307adbcda57e663287714ef15830da4f285131

rosy: parts: doze: Fix AoD default pref

* Fixes non-working pulse notifications from sensors until user toggles
  the main switch and also sets the proper initial status of the
  AoD preference for the devices that have the feature available.

Signed-off-by: Henrique Silva <jhenrique09.mcz@hotmail.com>
Change-Id: I8e554decca3734b165fdc722d904d90713666db9

rosy: Add vector images to doze menu.
These icons were taken from here: https://materialdesignicons.com/

rosy: XiaomiParts: Migrate to androidx

Change-Id: Iaf9fda278aa6fdde6dcc180e44a19f832f484432

mido: parts: Clean up proguard flags

Change-Id: If0250fb629417d36c2af7286bc0620e682c4576e

rosy: Apply Q changes on AmbientDisplayConfiguration

rosy: DeviceSettings: Follow Android 10 changes on switchbar

Change-Id: Ifad28dc874233eb41d89580895b769ecbc3ea670


Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Introducing a HAL switch so users can easily swap between HAL1 and HAL3 without root and or having to reboot

@TogoFire Adapted: for XiaomiParts
@lupesoltec Adapted: for "Lineage" parts

This implementation is based / inspired by:
https://github.com/TogoFire/dt_xiaomi_daisy/commit/4335553922fd4e9847ae9e617c8df5ceffdb26a8

Co-Authored-By: TogoFire <italomellopereira@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
* Allows perf to work properly on boot to restore selected power profile
* This fix log spam QCOM PowerHAL: Failed to acquire lock.

Change-Id: Ib92f971f28ed875481170b056ac16aad05aadcfc
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
* enough for a 3GB/4GB device

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
* We're not using perfd so this is useless.
log error:
E/audio_hw_extn(704): audio_extn_perf_lock_acquire: Failed to acquire perf lock, err: -1
E/audio_hw_extn(704): audio_extn_perf_lock_release: Perf lock release error
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
* 08-20 18:00:13.324 E/audio_hw_extn(  508): audio_extn_perf_lock_acquire: Failed to acquire perf lock, err: -1

* Sometimes it is necessary to add this line to deactivate, there is no point just removing it.

Change-Id: I6a49dda85ce5826018f8004da3e08c6326c0aee4

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
*This fixes ambient display

Signed-off-by: Tushar Mahajan <mahajant99@gmail.com>

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Use nubia's binary to display shutdown charging animation trigger are defined in init.qcom.rc

Change-Id: I3865a0ad946ca63aafb40114f5cd4d6872393629

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
 *As we have dumb users that don't know anything about fluctuations of current so show them Turbo Charging after 5.50W

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: zainarbani <zaintsyariev@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Fixes the follwing error:
E ashmem  : Failed to dlopen() libashmemd_client.so: dlopen failed: library "libashmemd_client.so" not found

Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Signed-off-by: Melvin <kartik3163@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: bc6735bb6c691a8a0034efd083258770f9a21115
Signed-off-by: "Victor Bo <bvoid@yandex.ru>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: I8ca644960ffe45f460051ace42daece12533f25f
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Mountservice will check if there exist processes occupy files. Launch
many 3rd apps and set in background will cause many processes occupy
files, which will cause mountservice spend 10~20s to unmount(sometimes
 also unmount fail with 20s time out). If there is no process occupy
files, mountservice only need about 500ms. So shorten wait time from
20s to 500ms, which will save 10~20s for shutdown time, total shutdown
time is in 3s.

CRs-Fixed: 2038121

Change-Id: I4da7bbf4c86d05add7f1b1e328f70796f3bb8ee8
Signed-off-by: Dede Dindin Qudsy <xtrymind@gmail.com>
Signed-off-by: David Trpchevski <trpcevski.david@gmail.com>
Signed-off-by: Melvin <kartik3163@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Enable Qualcomm codec 2.0 bufferqueue block-pool for
reducing 10% of power consumption on 1080p@30fps video playback

Test: Full video manual test
Signed-off-by: ashwatthama <sai404142@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
tested with and without fifo ui, and jitter is reduced without it
additional reference: https://source.android.com/devices/tech/debug/jank_jitter

Signed-off-by: KenHV <kenhv@null.net>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Change-Id: 241450c5252c5941eca84d673173e8e86337f9f3
Signed-off-by: Erfan Abdi <erfangplus@gmail.com>
Signed-off-by: lupesoltec <dev@lupesoltec.com.br>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.