Commit graph

446 commits

Author SHA1 Message Date
LuK1337
d3a5d47f75 sm8250-common: Add com.android.hotwordenrollment.common.util library
Fixes:
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.android.hotwordenrollment.xgoogle, PID: 4331
E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/android/hotwordenrollment/common/EnrollmentUtil;
E AndroidRuntime: 	at com.android.hotwordenrollment.common.EnrollmentService.onCreate(EnrollmentService.java:59)
E AndroidRuntime: 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4186)
E AndroidRuntime: 	at android.app.ActivityThread.access$1500(ActivityThread.java:237)
E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:223)
E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:7660)
E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: com.android.hotwordenrollment.common.EnrollmentUtil
E AndroidRuntime: 	... 10 more

Change-Id: I5e9605a3ecb9ec080aed554c1541ded9f25c188b
2021-02-01 14:34:15 +01:00
LuK1337
625e09ca3f sm8250-common: Pass OEM_TARGET_PRODUCT to kernel make flags
* OnePlus kernel adds -DUFS3V0 to KBUILD_CFLAGS for
  instantnoodle* and -DUFS3V1 otherwise.

Change-Id: I1cc104f973ead9dec3ab24a90d152c51798f3164
2021-01-31 14:29:44 +01:00
LuK1337
b32f70dd43 sm8250-common: Set ro.netflix.bsp_rev
* This prop makes Netflix select L1 instead of L3.

Change-Id: Idc0368803ca082e99392fb136f2cdc41a4cb0c87
2021-01-27 19:44:37 +01:00
LuK1337
8276504d67 sm8250-common: Decommonize audio amplifier firmware
Change-Id: Id262c31832d203fb04c1a36335f125547e1f850b
2021-01-24 15:55:07 +01:00
LuK1337
75c37b543c sm8250-common: sepolicy: Label ro.gfx.driver.1
Change-Id: I56ea28752ab8a1ef489adc7ab6547e86dfc220ca
2021-01-23 20:38:10 +01:00
LuK1337
443ade5112 sm8250-common: Set ro.gfx.driver.0 according to stock
* This was in stock /system/build.prop but since it's
  labeled as u:object_r:exported3_default_prop:s0 it
  may as well be put in /vendor/build.prop instead.

Change-Id: I5c03cedec64e7364c0733cd2ea416ca6a7b09089
2021-01-23 20:38:10 +01:00
LuK1337
0cd9a81dcf sm8250-common: Enable ro.audio.monitorRotation
* This was in stock /system/build.prop but since it's
  labeled as u:object_r:exported3_default_prop:s0 it
  may as well be put in /vendor/build.prop instead.

Change-Id: I462c575da006f096185f515ffb1b050d7bd4ae3c
2021-01-23 20:31:10 +01:00
LuK1337
a5e8df179d sm8250-common: Add liboemcrypto and its dependency
* For some users L1 isn't disabled on BL unlock.
  While this occurence is a true mystery that
  I wasn't able to reproduce on my hardware,
  it's totally fine to include these blobs in
  the vendor image so that these users can enjoy L1.

Change-Id: Ib5fdb7a41fec84a9df03296ad48473e70ce8f208
2021-01-23 17:28:11 +01:00
Alexander Koskovich
dba70894ea sm8250-common: Set gain of vibrator to 0x55 on boot
* Seems better than the default of 0x80, vibrator is
   a bit too strong by default.

Change-Id: I676b74aac3cbc1900c73b3236879479e8ecfca00
2021-01-22 15:45:53 +01:00
LuK1337
232c213a90 sm8250-common: Enable barometer sensor for SKU 9 and 11
Change-Id: I2a0568822557d1ce4217f092a695037c8329dc1a
2021-01-17 13:48:55 +01:00
chandra
b1f4027111 sm8250-common: Sort and remove duplicated packages under display group
Change-Id: I637d43c89aca0d9817e77996c0d2db394e2bdf34
2021-01-15 21:47:28 +01:00
LuK1337
f758a48142 sm8250-common: Add vintf fragments for all local Lineage HALs
Change-Id: Iffa3e7bc3d01c2c8975ee9ea2eb03adf93d175e6
2021-01-13 12:36:09 +01:00
LuK1337
30a4a42bb2 sm8250-common: Decommonize PowerShare HAL
Change-Id: Id6b79d04e3cac4ea602c2af27c3562227e3c0485
2021-01-13 12:09:00 +01:00
Bruno Martins
08c4245a54 sm8250-common: Drop prebuilt libwfdaac
Change-Id: Ia2b8b073b652c3969ac8b95c2ecce355754bd1b4
2021-01-12 21:08:04 +01:00
Indranil Chakraborty
79b4324a2a sm8250-common: Pack libwfdaac_vendor for WFD
Change-Id: I828918c42e1eb2963829d62a9dbeee83e2f0e600
2021-01-12 21:07:59 +01:00
Lubin Yin
14c6cdd034 sm8250-common: Deploy libwfdaac_proprietary for miracast
Change-Id: I7f00c9f0a0375d7007123614e7605e3915903b90
2021-01-12 21:07:45 +01:00
LuK1337
d2b4a13530 sm8250-common: Add 32-bit vendor.qti.hardware.dsp@1.0 HIDL lib
* Somehow this lib is being loaded by `media.codec` process
  and thus along with stagefright vendor plugin fixes video
  recording start timestamp (?)

Change-Id: Ib39fb9385b13947b5e1ec6f0bf7e62a22d7ab0c3
2021-01-12 04:37:43 +01:00
LuK1337
cddd4bebc4 sm8250-common: Build stagefright vendor plugin
Change-Id: I040a8fb7639e78a538f3d75bdaba2a6deb9b6825
2021-01-12 04:36:38 +01:00
LuK1337
122c9902a1 sm8250-common: Include device specific init recovery rc script
Change-Id: I7750ff22585a7b760d8b4d6f771fd7fe22db1e2e
2021-01-11 18:38:02 +01:00
Badhri Jagan Sridharan
e5d06f846a sm8250-common: Add usb hal service
BUG: 31015010
Test: Manually tested for type-c role switches.
Change-Id: Ibc81cf763a14c0975a7721588d6e8b81bd0b124c
2021-01-11 12:21:57 +01:00
LuK1337
22ab810b58 sm8250-common: Import surface flinger props from OOS
Change-Id: Iac8f215d02b0873f51a9ab0e35f5a659393b75e6
2021-01-11 03:59:45 +01:00
LuK1337
1412004719 sm8250-common: Increase /product image reserved size
Change-Id: Ifc90f64cff2748143bb341004520222e70d16e1a
2021-01-09 12:19:47 +01:00
LuK1337
9e70d87ab6 sm8250-common: Add PowerOffAlarm app
* Blob has been modified to add back MS_IN_ONE_MIN offset.

Change-Id: Ib69b4e00794c5d094a5e95e84281f7db205d423f
2021-01-08 14:31:39 +01:00
LuK1337
5df4fcc558 sm8250-common: Set SSR level to RELATED
Change-Id: I15871af43e62936ffde5e86aa1c0630bff909237
2021-01-08 14:31:38 +01:00
Ryan Mitchell
1d9989ef3d sm8250-common: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2021-01-08 14:31:38 +01:00
LuK1337
08b67c59e8 sm8250-common: Restrict DSDS to intl variants
Change-Id: I8858ca1ce05a3354acea8f322bb34cc2192d81f5
2021-01-08 14:31:38 +01:00
LuK1337
f87d85bdd7 sm8250-common: Decommonize super partition size
Change-Id: I833f31bf639599fafd38e9f69cb073da1f0463b7
2021-01-08 14:31:38 +01:00
Jimmy Chen
b7b61bb523 sm8250-common: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2021-01-08 14:31:38 +01:00
Anton Hansson
59c42cbe94 sm8250-common: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2021-01-08 14:31:38 +01:00
LuK1337
c28ecd7875 sm8250-common: Decommonize fstab
* 8T uses different metadata/userdata encryption algo.

Change-Id: Ie19487d4b4efe17540dd8c018537d7e222f64abd
2021-01-08 14:31:38 +01:00
LuK1337
dfd05e2565 sm8250-common: Build vndservicemanager
* Needed for FCM >= R.

Change-Id: I6d5eb8084127e295e4abec2c0192c0ad5b07b867
2021-01-08 14:31:38 +01:00
LuK1337
46098650a7 sm8250-common: Add DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE
* Needed for FCM >= R.

Change-Id: I5200b7a8d159cfd5ff91ad80fa714c215c7e01fb
2021-01-08 14:31:38 +01:00
LuK1337
f9c9767e3b sm8250-common: sepolicy: Initial vendor sepolicy
Change-Id: I28ae7907209b5aae9806466556dc49639dd7c9e4
2021-01-08 14:31:38 +01:00
LuK1337
507155e7a5 sm8250-common: Switch to QTI bootctrl HAL
Change-Id: Ie5079fd4c40cb1f7414f2cba9f98d350f03047d8
2021-01-08 14:31:38 +01:00
LuK1337
e7a726e756 sm8250-common: Enable OTG
Change-Id: I9a361ba93d94ee9a5cfeb8421367fae097837601
2021-01-08 14:31:38 +01:00
LuK1337
343e954111 sm8250-common: Start building vendor and odm
* Build whatever we can from source
* Import vintf compatibility_matrix and manifest
* Import stock vendor props

Change-Id: I905b2b6c388f6b76844e7cea2def70d10e164dab
2021-01-08 14:31:38 +01:00
LuK1337
f1b69167ae sm8250-common: Remove OnePlus vendor overlays
Change-Id: Id22dfbeabb9487e4ee67f914dbb4507115bf250f
2021-01-06 18:47:30 +01:00
LuK1337
da018dd3c6 sm8250-common: Re:Start sepolicy
* Drop all old rules, but keep tri-state-key.
* Also introduce dashd/wlchgd domain as they are needed for seclabels.

Change-Id: I0a7121f51d106d927866aead746a49b3dea6a149
2021-01-06 18:47:30 +01:00
LuK1337
5e1e5980eb sm8250-common: Import seccomp policy
Change-Id: I37ce3ffb096b18e08f994d0dc327456f850e35eb
2021-01-06 18:47:30 +01:00
LuK1337
5a92c56a82 Revert "sm8250-common: Add dummy libthermalclient module"
This reverts commit 47c6c28171.
2021-01-06 18:47:30 +01:00
LuK1337
2de76e9c5c sm8250-common: Import excluded-input-devices.xml
* Relocate keylayout/idc to vendor while at it

Change-Id: I6564d65de759fb11b1c91703583ae349ae2469c2
2021-01-06 18:47:30 +01:00
LuK1337
d80f3cef0e sm8250-common: Import public.libraries.txt
Change-Id: I4ba4570fd2d4f62344b3ebcc2fe4395b1c1406d7
2021-01-06 18:47:30 +01:00
LuK1337
5eb5e3ffd8 sm8250-common: Import WiFi configs
Change-Id: I9fdc4472ba2b4be1025e65f6574dca96282de40a
2021-01-06 18:47:30 +01:00
LuK1337
19ff917fb1 sm8250-common: Import GPS configs
Change-Id: I190c31889f2905144e03fe1880789ef480448abc
2021-01-06 11:18:27 +01:00
LuK1337
57766acdd1 sm8250-common: Switch to vendor Trust HAL
Change-Id: I34d524dea8a073247691a10f224870b8dc1e9257
2021-01-06 11:18:27 +01:00
LuK1337
bc11d47a23 sm8250-common: Import audio configs
Change-Id: Ia3d9ed83f96d781f06d8f8eb3069c7a6276e7e70
2021-01-06 11:18:27 +01:00
LuK1337
46fa73ab87 sm8250-common: Import media_codecs / media_profiles
Change-Id: Ia2531ec21746dbdd8f2ba059b1bfae5305deda76
2021-01-06 11:18:27 +01:00
LuK1337
8b1be26d37 sm8250-common: Switch to common QTI vibrator HAL implementation
Change-Id: I2c884e951d2dc9285f86926eb88107be65bcce1f
2021-01-06 11:18:27 +01:00
LuK1337
039cae69d5 sm8250-common: Switch to common power HAL implementation
Change-Id: I56f1fa264909c6402f1bb418d6bb6196605c3b9c
2021-01-06 11:18:27 +01:00
LuK1337
53a230127f sm8250-common: Add vendor symlinks
Change-Id: I3e3dcfa58fe56eb37ca9354556aedd6293ec22dd
2021-01-06 11:18:27 +01:00