Skip to content

Commit

Permalink
jason: Update to P blobs
Browse files Browse the repository at this point in the history
Change-Id: I0e4fdb0c231a94163124c129b8d3cbd10bcca065
  • Loading branch information
moetayuko committed Jun 28, 2019
1 parent 8b20f1c commit f5e852a
Show file tree
Hide file tree
Showing 11 changed files with 204 additions and 142 deletions.
1 change: 0 additions & 1 deletion BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ QCOM_BT_USE_BTNV := true

# Camera
BOARD_QTI_CAMERA_32BIT_ONLY := true
TARGET_TS_MAKEUP := true
TARGET_USES_QTI_CAMERA_DEVICE := true
USE_DEVICE_SPECIFIC_CAMERA := true

Expand Down
67 changes: 52 additions & 15 deletions configs/manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<hal format="hidl">
<name>android.hardware.radio</name>
<transport>hwbinder</transport>
<version>1.1</version>
<version>1.2</version>
<interface>
<name>IRadio</name>
<instance>slot1</instance>
Expand All @@ -234,15 +234,25 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<instance>slot2</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.radio.deprecated</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IOemHook</name>
<instance>slot1</instance>
<instance>slot2</instance>
</interface>
<!-- RADIO CONFIG -->
<hal format="hidl">
<name>android.hardware.radio.config</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IRadioConfig</name>
<instance>default</instance>
</interface>
</hal>
<!--UICC secure element -->
<hal format="hidl">
<name>android.hardware.secure_element</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ISecureElement</name>
<instance>SIM1</instance>
</interface>
</hal>
<!-- RIL UIM REMOTE CLIENT -->
<hal format="hidl">
Expand Down Expand Up @@ -291,7 +301,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<hal format="hidl">
<name>vendor.qti.hardware.radio.uim</name>
<transport>hwbinder</transport>
<version>1.0</version>
<version>1.1</version>
<interface>
<name>IUim</name>
<instance>Uim0</instance>
Expand Down Expand Up @@ -481,7 +491,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<hal format="hidl">
<name>vendor.qti.hardware.radio.ims</name>
<transport>hwbinder</transport>
<version>1.0</version>
<version>1.4</version>
<interface>
<name>IImsRadio</name>
<instance>imsradio0</instance>
Expand Down Expand Up @@ -541,7 +551,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<hal format="hidl">
<name>com.qualcomm.qti.uceservice</name>
<transport>hwbinder</transport>
<version>1.0</version>
<version>2.0</version>
<interface>
<name>IUceService</name>
<instance>com.qualcomm.qti.uceservice</instance>
Expand All @@ -562,7 +572,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<hal format="hidl">
<name>com.qualcomm.qti.imscmservice</name>
<transport>hwbinder</transport>
<version>1.0</version>
<version>2.1</version>
<interface>
<name>IImsCmService</name>
<instance>qti.ims.connectionmanagerservice</instance>
Expand Down Expand Up @@ -798,12 +808,39 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</interface>
</hal>
<hal format="hidl">
<name>vendor.xiaomi.hardware.mlipay</name>
<name>vendor.xiaomi.hardware.mfidoca</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IFidoService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.xiaomi.hardware.mlipay</name>
<transport>hwbinder</transport>
<version>1.1</version>
<interface>
<name>IMlipayService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.xiaomi.hardware.mtdservice</name>
<transport>hwbinder</transport>
<version>1.2</version>
<interface>
<name>IMTService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.xiaomi.hardware.tidaservice</name>
<transport>hwbinder</transport>
<version>1.1</version>
<interface>
<name>ITidaService</name>
<instance>default</instance>
</interface>
</hal>
</manifest>
31 changes: 23 additions & 8 deletions configs/vendor_framework_compatibility_matrix.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</hal>
<hal format="hidl" optional="true">
<name>com.qualcomm.qti.imscmservice</name>
<version>1.0-1</version>
<version>2.0-1</version>
<interface>
<name>IImsCmService</name>
<instance>qti.ims.connectionmanagerservice</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>com.qualcomm.qti.uceservice</name>
<version>1.0</version>
<version>2.0</version>
<interface>
<name>IUceService</name>
<instance>com.qualcomm.qti.uceservice</instance>
Expand Down Expand Up @@ -303,7 +303,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</hal>
<hal format="hidl" optional="true">
<name>vendor.qti.hardware.radio.uim</name>
<version>1.0</version>
<version>1.1</version>
<interface>
<name>IUim</name>
<instance>Uim0</instance>
Expand Down Expand Up @@ -546,20 +546,35 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.radio.deprecated</name>
<name>vendor.xiaomi.hardware.mfidoca</name>
<version>1.0</version>
<interface>
<name>IOemHook</name>
<instance>slot1</instance>
<instance>slot2</instance>
<name>IFidoService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.mlipay</name>
<version>1.0</version>
<version>1.1</version>
<interface>
<name>IMlipayService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.mtdservice</name>
<version>1.2</version>
<interface>
<name>IMTService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.tidaservice</name>
<version>1.1</version>
<interface>
<name>ITidaService</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>
2 changes: 2 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ PRODUCT_PACKAGES += \

# RIL
PRODUCT_PACKAGES += \
android.hardware.radio@1.2 \
android.hardware.radio.config@1.0 \
librmnetctl \
libxml2 \
libprotobuf-cpp-full
Expand Down
9 changes: 0 additions & 9 deletions extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,12 @@ extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION"

DEVICE_BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary

sed -i \
's/\/system\/etc\//\/vendor\/etc\//g' \
"$DEVICE_BLOB_ROOT"/vendor/lib/libmmcamera2_sensor_modules.so

sed -i 's/\x1e\x40\x9a\x99\x99\x99\x99\x99\x3b\x40\x10/\x1e\x40\x9a\x99\x99\x99\x99\x99\x3b\x40\x01/' \
"$DEVICE_BLOB_ROOT"/vendor/lib/libmmcamera_jason_s5k3p8sp_sunny.so

patchelf --remove-needed libandroid.so "$DEVICE_BLOB_ROOT"/vendor/lib/libmmcamera2_stats_modules.so
patchelf --remove-needed libandroid.so "$DEVICE_BLOB_ROOT"/vendor/lib/libmpbase.so
patchelf --remove-needed libandroid_runtime.so "$DEVICE_BLOB_ROOT"/vendor/bin/mlipayd
patchelf --remove-needed libandroid_runtime.so "$DEVICE_BLOB_ROOT"/vendor/lib64/libmlipay.so
patchelf --remove-needed libgui.so "$DEVICE_BLOB_ROOT"/vendor/lib/libmmcamera_ppeiscore.so
patchelf --remove-needed libgui.so "$DEVICE_BLOB_ROOT"/vendor/lib/libmmcamera2_stats_modules.so
patchelf --remove-needed libmedia.so "$DEVICE_BLOB_ROOT"/vendor/lib64/lib-dplmedia.so
patchelf --remove-needed vendor.xiaomi.hardware.mtdservice@1.0.so "$DEVICE_BLOB_ROOT"/vendor/bin/mlipayd
patchelf --remove-needed vendor.xiaomi.hardware.mtdservice@1.0.so "$DEVICE_BLOB_ROOT"/vendor/lib64/libmlipay.so

"$MY_DIR"/setup-makefiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ on boot
on post-fs-data
mkdir /data/vendor/fpc 0770 system system
mkdir /data/vendor/goodix 0770 system system
mkdir /data/misc/goodix 0770 system system
mkdir /data/vendor/gf_data 0770 system system
mkdir /data/vendor/calibration 0770 system system
chmod 0600 /persist/fpc/calibration_image.pndat
copy /persist/fpc/calibration_image.pndat /data/vendor/calibration/calibration_image.pndat
chown system /data/vendor/fpc/calibration_image.pndat
chown system /data/vendor/calibration/calibration_image.pndat
Loading

0 comments on commit f5e852a

Please sign in to comment.