Fix incoming SMS and mobile data on MT6379
This commit is contained in:
parent
ea419e9266
commit
3772908b38
1
Android.bp
Normal file
1
Android.bp
Normal file
@ -0,0 +1 @@
|
||||
subdirs = [ "cmds" ]
|
4
base.mk
4
base.mk
@ -75,3 +75,7 @@ PRODUCT_COPY_FILES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/phh/treble/files/samsung-gpio_keys.kl:system/phh/samsung-gpio_keys.kl \
|
||||
device/phh/treble/files/samsung-sec_touchscreen.kl:system/phh/samsung-sec_touchscreen.kl
|
||||
|
||||
#MTK incoming SMS fix
|
||||
PRODUCT_PACKAGES += \
|
||||
mtk-sms-fwk-ready
|
||||
|
14
cmds/Android.bp
Normal file
14
cmds/Android.bp
Normal file
@ -0,0 +1,14 @@
|
||||
cc_binary {
|
||||
name: "mtk-sms-fwk-ready",
|
||||
srcs: [
|
||||
"mtk-sms-fwk-ready.cpp",
|
||||
],
|
||||
shared_libs: [
|
||||
"vendor.mediatek.hardware.radio@2.6",
|
||||
"libutils",
|
||||
"libhidlbase",
|
||||
],
|
||||
init_rc: [
|
||||
"mtk-sms-fwk-ready.rc"
|
||||
],
|
||||
}
|
12
cmds/mtk-sms-fwk-ready.cpp
Normal file
12
cmds/mtk-sms-fwk-ready.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include <vendor/mediatek/hardware/radio/2.6/IRadio.h>
|
||||
|
||||
using ::vendor::mediatek::hardware::radio::V2_6::IRadio;
|
||||
using ::android::sp;
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
auto svc = IRadio::getService(argv[1]);
|
||||
|
||||
svc->setSmsFwkReady(1);
|
||||
}
|
3
cmds/mtk-sms-fwk-ready.rc
Normal file
3
cmds/mtk-sms-fwk-ready.rc
Normal file
@ -0,0 +1,3 @@
|
||||
on property:sys.boot_completed=1
|
||||
exec u:r:phhsu_daemon:s0 root -- /system/bin/mtk-sms-fwk-ready slot1
|
||||
exec u:r:phhsu_daemon:s0 root -- /system/bin/mtk-sms-fwk-ready slot2
|
@ -150,6 +150,8 @@ for f in /vendor/lib/mtk-ril.so /vendor/lib64/mtk-ril.so /vendor/lib/libmtk-ril.
|
||||
/mnt/phh/$b
|
||||
chcon "$ctxt" /mnt/phh/$b
|
||||
mount -o bind /mnt/phh/$b $f
|
||||
|
||||
setprop persist.sys.phh.radio.force_cognitive true
|
||||
done
|
||||
|
||||
mount -o bind /system/phh/empty /vendor/overlay/SysuiDarkTheme/SysuiDarkTheme.apk || true
|
||||
|
Loading…
Reference in New Issue
Block a user