Commit Graph

763 Commits

Author SHA1 Message Date
LuK1337 7aa52cc950
sm8150-common: sepolicy: Label ro.gfx.driver.1
Change-Id: I56ea28752ab8a1ef489adc7ab6547e86dfc220ca
2021-04-05 15:34:43 +05:30
LuK1337 c76a719d35
sm8150-common: Sync {system,vendor}.prop with stock
Change-Id: I429cf25910652dc37503276118d010fc80151181
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:42 +05:30
LuK1337 576449a513
sm8150-common: Sync configs with OOS 11
Change-Id: Id9e4bc38775865e0153a6b8615bf8e37e99b2bb1
2021-04-05 15:34:41 +05:30
LuK1337 e17e3acf05
sm8150-common: Remove local hals.conf
Change-Id: I62586d76507079ae92b90e6ce052ea9775581cdf
2021-04-05 15:34:40 +05:30
LuK1337 e8e1f47081
sm8150-common: Sync /vendor/etc/permissions with OOS 11
Change-Id: I1c2da90bd2af9f20bc35d7e01c4e2e4076c8b8d8
2021-04-05 15:34:39 +05:30
Omkar Chandorkar 348904ab4d
sm8150-common: sepolicy: address denials for user build
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:38 +05:30
Omkar Chandorkar d3fd15a276
sm8150-common: change nfcee_access resources
* fix warnings during buildtime

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:36 +05:30
Vishal Cj fad43a2dc5
sm8150-common: rootdir: Change permissions for /dev/diag.
* Logs spam with error '-13' which basically translates to access denied/invalid permission.

* Fix this by giving system read and write access.

Before in log:
  Diag_Lib:  Diag_LSM_Init: Failed to open handle to diag driver, error = 13

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:35 +05:30
Omkar Chandorkar deae5e88b6
sm8150-common: sepolicy: allow untrusted_app_29 to access camera prop
* fixes E/libc    (7181): Access denied finding property "persist.vendor.camera.privapp.list"

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:34 +05:30
baalajimaestro f8b7175692
sm8150-common: sepolicy: label more nfc props
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:33 +05:30
Adam Shih 0d9ad4ed83
sm8150-common: Update SELinux boot error
Bug: 148033913
Bug: 151195350
Test: boot with no relevant avc error
Change-Id: Ice7f8fb430eca6002a46b56284db8b8ead8303c7
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:32 +05:30
Omkar Chandorkar 6be7e137eb
sm8150-common: decommonise QTI vibrator HAL
* everyone except op7 still seems to have better haptics with prebuilt Q stack

This reverts commit 0b0f0f63f9.
2021-04-05 15:34:31 +05:30
Omkar Chandorkar 42121654e5
sm8150-common: update manifest
* uprev fcm to level 4
* move fod and touch hal to vintf_fragments
* remove manifest entries of unused HALs

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:29 +05:30
baalajimaestro cba7fe58ac
sm8150-common: Update dex flags
Use dex2oat64, and drop deprecated flags

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Change-Id: I42a7d87ab7f0af20b9c3f5bacba37ab0b0b529f1
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:28 +05:30
Omkar Chandorkar 182e9dc044
sm8150-common: set BOARD_SUPPORTS_SOUND_TRIGGER to true
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:27 +05:30
Omkar Chandorkar 8ec877a605
sm8150-common: oneplus-fwk: update from OnePlus7TOxygen_14.O.25_OTA_0250_all_2103170010_42034d7f
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 15:34:12 +05:30
Omkar Chandorkar 7c589d05a1
sm8150-common: log priv-app perms
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:41 +05:30
Omkar Chandorkar 641d3bfa76
sm8150-common: remove unused keyhandler entry
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:39 +05:30
Kuba Wojciechowski 5305d226dc
sm8150-common: add a rro to disable telephony injection
doesn't work, doesn't break anything, why care?

Signed-off-by: Kuba Wojciechowski <nullbytepl@gmail.com>
2021-04-05 07:54:38 +05:30
Omkar Chandorkar ed241e5418
sm8150-common: update wfd blobs
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:37 +05:30
Omkar Chandorkar 4af9d6d752
sm8150-common: uprev vendor.qti.hardware.wifi*
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:36 +05:30
Omkar Chandorkar d1fbbe9519
sm8150-common: props: enable and update DPM props
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:35 +05:30
Ido Ben-Hur 7a6ff5d057
sm8150-common: sepolicy: build fixes 2021-04-05 07:54:33 +05:30
Ido Ben-Hur 68d854141e
sm8150-common: DeviceSettings: Update HBM tile & switch on screen off
What happens is that HBM is being turned off in lower level and the node is not being updated.
Writing 0 to node when the screen turns off to go around that.

Service only runs when HBM is turned on.
it stops itself when the screen turns off / HBM is turned off

Also remove some useless code all around and slightly improve...

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:32 +05:30
Ido Ben-Hur ec7489af2d
sm8150-common: DeviceSettings: Improve refresh rate switches
Have the preference change listeners inside DeviceSettings -
This allows us to always correctly display forced 90Hz peak rate state.
What happened before is that you could enable and disable auto refresh rate
and forced peak would retain its state, even though practically it's disabled now.

Also correctly check if forced peak refresh rate is currently enabled -
We need to check both min & max refresh rate settings values

Both logic errors together caused a state that forced peak refresh rate always shows enabled,
even if you fully reopen the app, but truly is disabled and needs re-setting to actually work!

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:31 +05:30
ZONGQUAN-HU 56ff898e98
DeviceSettings: Update Chinese translation (#1)
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:30 +05:30
Ido Ben-Hur acd289b071
FallSensor: Correctly theme the dialog 2021-04-05 07:54:29 +05:30
Ido Ben-Hur 0b170523d1
sm8150-common: Theme the popup camera dialog
Make sure we follow device theme, and if it changed, recreate the dialog with the proper theme
2021-04-05 07:54:28 +05:30
Ido Ben-Hur a66514ccd9
sm8150-common: Allow to always display front camera open dialog
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:26 +05:30
rituj 5183a77b26
camera_helper: Show alert dialog before raising camera when screen is off
@idoybh edits:
* Adapted to camera_helper
* Use current intent reciever to check for screen on / off
* Simplified some code

Co-authored-by: idoybh <idoybh2@gmail.com>
2021-04-05 07:54:25 +05:30
rituj 7099ff8d71
sm8150-common: camera_*: rework implementation and cleanup
* switch to intent based camera motor control
* remove camera_motor binary

Change-Id: I52916c6f059681429eb33f63f0020e9d5f1295b8
2021-04-05 07:54:24 +05:30
Omkar Chandorkar fa7874f901
Revert "sm8150-common: sepolicy: Allow ims to read and write to diag_device"
This reverts commit c79373d4da.
2021-04-05 07:54:23 +05:30
Nauval Rizky 95a973312f
DeviceSettings: Digital-style icon for FPSInfo QS Tile
Signed-off-by: Nauval Rizky <enuma.alrizky@gmail.com>
2021-04-05 07:54:22 +05:30
Ido Ben-Hur 519249de49
DeviceSettings: Add FPS overlay QS tile 2021-04-05 07:54:21 +05:30
Omkar Chandorkar 9f5bef8b55
sm8150-common: DeviceSettings: Update DC Dimming Tile icon
Credits to @Wizper99 for icon

Change-Id: I606c4307172734b652b511739fb588ad754e5225
2021-04-05 07:54:19 +05:30
Omkar Chandorkar 7f20dd764a
sm8150-common: uprev radio
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:18 +05:30
Omkar Chandorkar 9a4e294654
sm8150-common: drop hotdogg support
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:17 +05:30
Omkar Chandorkar 79baa9f4fc
sm8150-common: remove unused firmware
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:16 +05:30
John Galt 348d2ccd20
sm8150-common: rootdir: move vendor.sensors from early-boot to boot
* fixes broken sensors due to race condition

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:15 +05:30
Omkar Chandorkar 867986b0cd
sm8150-common: add google_c2 configs
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:14 +05:30
baalajimaestro d3b18dcfd1
sm8150-common: Switch certain dexopt profiles to verify
Prebuilt apps like Gmail/Google App, will be updated by google play, and there is no need spend time and space optimising what is going to be replaced.
Switch to Google's recommendation of using verify for an OTA package.
Applications still stay on speed.
Instead, replace the install profile with speed-profile making apps perform better.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:12 +05:30
baalajimaestro 9916db4967
sm8150-common: Rework dex flags again
When I went through https://source.android.com/devices/tech/dalvik/configure my previous configs felt wrong, this one should be perfect (I hope).
Even though there is a slight trade-off for boot time by using the speed profile, we do make up for it by using 8 threads.
PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER attempts to compile all prebuilts fully optimised to speed level, thus the phone doesnt need to deal with it.
I also do know that this might be a trade-off on size, but I do see the first boot time is more worthy to trade-off.
The speed level mentioned here runs dex verification and compiles all AOT methods.

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:11 +05:30
Omkar Chandorkar c9ca630883
sm8150-common: props: enable persist.rcs.supported
* apparently Fi needs this for RCS to work and OOS has this as well

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:10 +05:30
tangrobin b8e6ec2ec4
sm8150-common: Use phase offsets as duration
In Android R, the SurfaceFlinger calculate phase offsets
based on duration. Adopt the new way of specifying
phase offsets to SurfaceFlinger.

Bug: 143933518
Bug: 142222407
Test: scrolling, app launching/closing, playing video
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:09 +05:30
tangrobin e83a2da6ee
sm8150-common: enable GL comp backpressure
Enable backpressure for client composition to avoid jank due to
HWC queue stuffing.

Bug: 151113311
Test: 1. Swipe up/down Notification shade.
      2. Measure the "FrameMissed" count from systrace result

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:08 +05:30
Wang Han b9952198f5
sm8150-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:06 +05:30
baalajimaestro 2a11b637a0
sm8150-common: Optimise dex flags for a faster boot
* Used multiple threads and speed profile to hasten the first boot

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
Change-Id: I2cce5ddf7d50308511e81436fcac613b2c6537bf
2021-04-05 07:54:05 +05:30
Jesse Chan 4c2634586f
sm8150-common: overlay: configure SQLite to operate in MEMORY mode
This change yields considerable SQLite performance gains. It should be generally safe as this device has irremovable battery.

Some OEMs have been doing this for years.
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:04 +05:30
Omkar Chandorkar c5b7fc568b
sm8150-common: enable SecureElement only for sku_3
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:03 +05:30
Bruno Martins a1204f59af
sm8150-common: Use CodeAurora ImsService implementation for RCS
There is no evidence that Qualcomm devices running a rather recent IMS
stack need to include AOSP RCS packages. RCS already worked before this
change and continues to do so, but the main goal was to get rid of some
of the RCS related log spam, which was accomplished here.

Change-Id: I219546e29d288373877e9bcd194a60ef5e09f224
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-04-05 07:54:02 +05:30