190 Commits

Author SHA1 Message Date
SGCMarkus
488bd72bc5 sm8250-common: sepolicy: add rules for goodix/fpc1020 2022-02-20 14:21:47 +01:00
dianlujitao
99a387cf03 sm8250-common: Fix invalid usage of log utility
Fix derp in 1116fa8b1fcc9513d91f174300496c673b09f5eb

Change-Id: I7a4d5291a11d823f0cef024b136cfc703fa64fc0
2022-02-20 13:06:27 +01:00
SGCMarkus
2e99e32574 sm8250-common: cleanup rootdir init
remove non existing services

also fixup path for fpc_ident
2022-02-20 13:04:31 +01:00
SGCMarkus
d021fee4e1 sm8250-common: fstab: dont use bootdevice for metadata
this is also used by first_stage_init, which cant access
/dev/block/bootdevice
2022-02-20 13:04:31 +01:00
SGCMarkus
ac525e3da1 sm8250-common: seccomp: add mediacodec.policy 2022-02-20 13:04:31 +01:00
SGCMarkus
ca50a49da4 sm8250-common: use moto way of setting dual sim 2022-02-20 13:04:31 +01:00
SGCMarkus
bf4786eff2 sm8250-common: proprietary-files: add CACertService.apk 2022-02-20 13:04:31 +01:00
dianlujitao
1116fa8b1f sm8250-common: sepolicy: Rework policies for moto services
* Avoid direct access to kmsg for logging purpose.

Change-Id: I7bb86c270d81dbd6f4bdc66e78ac77e44b61e708
2022-02-20 13:04:31 +01:00
SGCMarkus
a7b86aed87 sm8250-common: add wifi firmware files 2022-02-20 13:04:31 +01:00
SGCMarkus
a8990d491d sm8250-common: build android.hardware.thermal for qspmsvc 2022-02-20 13:04:31 +01:00
TH779
7dffcc1c58 sm8250-common: Don't call configureRpcThreadpool for camera postproc impl
* In Android 12, no longer allowed to shrink the process pool after a
   larger process pool is started, we should patch camera postproc impl
   to nuke it from shrinking process pool and prevent triggering a fatal
   to cause the camera to crash.
   Ref: 8e047f7a62.

 * The following are the difference between before and after the
   patch.
   Before:
   MOV    W1, #1
   BL     ._ZN7android8hardware22configureRpcThreadpoolEmb
   Now:
   MOV    W1, #1
   NOP

 * Obtained by comparing the camera postproc impl modified by
   GitHub@erfanoabdi.

 * A tutorial on use hexdump, sed and xxd to patch hex in
   binary file: https://everydaywithlinux.blogspot.com/2012/11/patch-strings-in-binary-files-with-sed.html.

Co-authored-by: Erfan Abdi <erfangplus@gmail.com>
Signed-off-by: TH779 <i@779.moe>
Change-Id: I66c257e80bf56a48c640efc3c1c8949852edf756
2022-02-20 13:04:31 +01:00
SGCMarkus
d737c70cd4 sm8250-common: use mdm and not msm symlinks 2022-02-20 13:04:31 +01:00
SGCMarkus
4601793fdf sm8250-common: build libgui_vendor from source 2022-02-20 13:04:31 +01:00
dianlujitao
38ea080103 sm8250-common: Pin patched ims.apk
Change-Id: I7d944a692b91c1cb9646a89492d1998be36e9d0e
2022-02-20 13:04:31 +01:00
dianlujitao
e51b238a4f sm8250-common: Move moto-telephony.jar to system_ext and remove unused moto jar
* moto-telephony.jar is a dependence of ims.apk and thus should locate
   in system_ext as well.
 * The rest jars are not needed as far as I observe.

Change-Id: I0711c0178906293179998eae70663de7b09a4a77
2022-02-20 13:04:31 +01:00
dianlujitao
05119776b8 sm8250-common: Disable QTI telephony
Change-Id: If2a485892d5f8f0f743cf8e40c9238efbc4367f0
2022-02-20 13:04:31 +01:00
SGCMarkus
4b786f2379 Revert "sm8250-common: fixup for pstars libgui_vendor.so"
This reverts commit 1b2090b03b263060a67e7675068e42c8c79a212d.

building from source
2022-02-20 13:04:31 +01:00
Dan Pasanen
22daf1fca5 sm8250-common: qsap: add wifi_qsap_set_tx_power
Change-Id: I9ef277db6f4e068e7b92710f6039b4f261d72282
2022-02-20 13:04:31 +01:00
dianlujitao
cb80d968d3 sm8250-common: qsap: Always build as vendor module
Change-Id: I529ca3951be2be0fb8d5bf93a85737b38ee8fbee
2022-02-20 13:04:31 +01:00
RenanQueiroz
1d4c67b016 sm8250-common: softap: sdk: Add 'vendor.' prefix to wlan.driver.config
* In 126af66b04,
  the prop wlan.driver.config was renamed to vendor.wlan.driver.config.
  Therefore, make the same change on softap as well.

Change-Id: I696d851c8ecd35ec42cf680149c402b3b8044cfc
2022-02-20 13:04:31 +01:00
Erfan Abdi
009c1a7c0d sm8250-common: qsap: Suppress errors
Change-Id: I2809d3acd0e2ae402f9d15351bc9cb7a68f5be7a
2022-02-20 13:04:31 +01:00
Christopher N. Hesse
11e2232257 sm8250-common: softap: sdk: Declare VNDK usage
Change-Id: I8d408c34947d9febf6afa95929bf9fb696d9d097
2022-02-20 13:04:31 +01:00
Arne Coucheron
b99809be64 sm8250-common: qsap: Fix missing log symbols
Add liblog to LOCAL_SHARED_LIBRARIES instead of using LOCAL_LDLIBS.

Change-Id: Iaf8fbc245babce372f047f73cb1400b19c54836d
2022-02-20 13:04:31 +01:00
SGCMarkus
2d6c60c531 sm8250-common: build libqsap_sdk from source
imported from LA.UM.9.12.r1-13800-SMxx50.0
2022-02-20 13:04:31 +01:00
SGCMarkus
63b0bed177 sm8250-common: switch to aosp health and add recovery impl 2022-02-20 13:04:31 +01:00
SGCMarkus
edd9e6b21e sm8250-common: import audio feature props from nio
from
6aab8124c1/properties.mk
2022-02-20 13:04:31 +01:00
SGCMarkus
adb81334a8 sm8250-common: add hotword whitelist and permissions 2022-02-19 15:28:33 +01:00
dianlujitao
477f21e5c1 sm8250-common: Enable moto specific VT APIs for ims.apk
Change-Id: I9be06efcb8130efe543099a1d3a147c3c5148f1c
2022-02-19 15:28:33 +01:00
SGCMarkus
e4966ac6e7 sm8250-common: enable qspm service 2022-02-19 15:28:33 +01:00
SGCMarkus
9ff9e90390 sm8250-common: proprietary-files: remove more duplicates and fix a typo 2022-02-19 15:28:33 +01:00
SGCMarkus
21b29c1582 sm8250-common: proprietary-files: add few missing blobs
alignment with e30fba7666/proprietary-files.txt
2022-02-19 15:28:33 +01:00
SGCMarkus
6af61c5c3f sm8250-common: proprietary-files: remove duplicates 2022-02-19 15:28:33 +01:00
dianlujitao
7e727b900f sm8250-common: Remove moto charger
* The close-sourced binary uses symbols removed on R. It doesn't make
   much sense to fix the 45MB binary :), simply use AOSP one instead.
 * Move charge-only services to init.mmi.charge_only.rc while at it.

Change-Id: I62cdd36603afb46d5287dfcaac3d16acc9fca178
2022-02-19 15:28:33 +01:00
dianlujitao
7ef070111c sm8250-common: Use ueventd to load aw882xx calibration file
* Avoid direct filesystem access from the kernel
 * Switch to CAF-defined label while at it

Change-Id: Id9571e0cfb635b536eb4927fb4b2bed042917306
2022-02-19 15:28:33 +01:00
SGCMarkus
a6fb204f84 sm8250-common: add sepolicies from nio
state: fffc7ba5a6
2022-02-19 15:28:33 +01:00
Arvind Kumar
15bf2f2822 sm8250-common: GRF: Set soc properties
- Set soc model and manufacturer properties

Change-Id: I9ecc1cb75a415f5df147d47234fd9d8b69e1e6b5
2022-02-19 15:28:24 +01:00
SGCMarkus
c386f9ceb3 sm8250-common: overlay: pstar and nio have an assistant button 2022-02-19 00:38:42 +01:00
SGCMarkus
61aa352650 sm8250-common: WifiResCommon: remove old, and set its additional flags in the new 2022-02-19 00:38:41 +01:00
SGCMarkus
daf9cf42d6 sm8250-common: import common/kona overlays from nio
https://github.com/LineageOS/android_device_motorola_nio at 03bb670fb7e1236ebe54e06351ddaa05fb4e58f6
2022-02-19 00:23:56 +01:00
SGCMarkus
802309e154 sm8250-common: add missing ril blobs
also build libcodec2_hidl@1.0.vendor and set media.settings.xml
2022-02-19 00:16:43 +01:00
SGCMarkus
091f230a3d sm8250-common: proprietary-files: add vendor.qti.media.c2 service 2022-02-18 23:23:51 +01:00
SGCMarkus
a5d0fba9e9 sm8250-common: add ro.vendor.radio.imei.sv prop 2022-02-18 23:23:51 +01:00
SGCMarkus
da5b3b4830 sm8250-common: manifest: add second android.hardware.radio entries
also add secure_element eSE1 interface
uprev ims, factory, lpa
2022-02-18 23:23:51 +01:00
SGCMarkus
f1ae7f8284 sm8250-common: add a framework manifest file 2022-02-18 23:23:50 +01:00
SGCMarkus
1b2090b03b sm8250-common: fixup for pstars libgui_vendor.so 2022-02-18 22:09:16 +01:00
SGCMarkus
e7b7cabf19 sm8250-common: fstab: remove spunvm entry
cant be mounted -> causes init to not mount /data (and others)
causes bootprocess to hang, without providing adb or anything
2022-02-18 22:09:16 +01:00
SGCMarkus
4d6667e043 sm8250-common: add missing ril blob 2022-02-18 22:09:16 +01:00
SGCMarkus
e3358a2ba8 sm8250-common: build authsecret and add qti fm vendor hidls 2022-02-18 22:09:09 +01:00
SGCMarkus
c72a8b55a3 sm8250-common: add missing vendor_boot partition to AB list 2022-02-18 19:55:51 +01:00
SGCMarkus
7b7e2ba9a3 sm8250-common: build renderscript impl 2022-02-18 17:31:42 +01:00