Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the model for fixing some model direction. #18

Open
wants to merge 10 commits into
base: lineage-15.1
Choose a base branch
from
6 changes: 6 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml

# Telephony
PRODUCT_PACKAGES += \
telephony-ext

PRODUCT_BOOT_JARS += \
telephony-ext

PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
Expand Down
4 changes: 2 additions & 2 deletions modules/init/init_msm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ void vendor_load_properties()

switch(board_id) {
case LIBRA_BOARD_ID:
property_override("ro.product.model", "Mi4c");
property_override("ro.product.model", "Mi-4c");
property_override("ro.product.device", "libra");
property_override("ro.build.description", "libra-user 7.0 NRD90M 7.12.28 release-keys");
property_override("ro.build.fingerprint", "Xiaomi/libra/libra:7.0/NRD90M/7.12.28:user/release-keys");
property_override("ro.build.product", "libra");
break;
case AQUA_BOARD_ID:
property_override("ro.product.model", "Mi4s");
property_override("ro.product.model", "Mi-4s");
property_override("ro.product.device", "aqua");
property_override("ro.build.description", "aqua-user 7.0 NRD90M 7.12.28 release-keys");
property_override("ro.build.fingerprint", "Xiaomi/aqua/aqua:7.0/NRD90M/7.12.28:user/release-keys");
Expand Down
10 changes: 0 additions & 10 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,6 @@
<!-- Whether device supports double tap to wake -->
<bool name="config_supportDoubleTapWake">true</bool>

<!-- Button illumination -->
<bool name="config_deviceHasVariableButtonBrightness">true</bool>
<integer name="config_buttonBrightnessSettingDefault">153</integer>

<!-- Default list of files pinned by the Pinner Service -->
<string-array translatable="false" name="config_defaultPinnerServiceFiles">
<item>"/system/framework/arm64/boot-framework.oat"</item>
Expand All @@ -362,10 +358,4 @@
<item>"/data/dalvik-cache/arm64/system@[email protected]@classes.dex"</item>
</string-array>

<!-- Enable blur support -->
<bool name="config_uiBlurEnabled">true</bool>

<!-- Configuration to support SIM contact batch operation -->
<bool name="config_sim_phonebook_batch_operation">false</bool>

</resources>
2 changes: 1 addition & 1 deletion proprietary-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ etc/wifibt_diag.cfg
-framework/QtiTelephonyServicelibrary.jar
-framework/qcnvitems.jar
-framework/qcrilhook.jar
-framework/qti-telephony-common.jar|88212913c0c44893e05e7003ec2f3e0a432a356d
-framework/qti-telephony-common.jar|2eba987ae297a892e895ec1e9a302b41dbe0232e
-priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk
lib/librmnetctl.so
lib64/librmnetctl.so
Expand Down
3 changes: 3 additions & 0 deletions rootdir/etc/init.target.rc
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,6 @@ on property:sys.perf.profile=2
write /sys/kernel/cpu_input_boost/ib_freqs "1248000 1248000"
write /sys/kernel/cpu_input_boost/ib_duration_ms 1000
write /sys/kernel/cpu_input_boost/enabled 1

on property:sys.boot_completed=1
setprop sys.perf.profile 1
6 changes: 6 additions & 0 deletions sepolicy/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@
/system/vendor/bin/init\.qcom\.sh u:object_r:qti_init_shell_exec:s0
/system/vendor/bin/init\.qcom\.post_boot\.sh u:object_r:qti_init_shell_exec:s0
/system/vendor/bin/init\.qcom\.usb\.sh u:object_r:qti_init_shell_exec:s0

# Thermal sysfs
/sys/devices/soc\.0/qcom,bcl[^/]*(/.*)? u:object_r:sysfs_thermal:s0
/sys/devices/soc\.0/fdb00000\.qcom,kgsl-3d0/kgsl/kgsl-3d0/default_pwrlevel u:object_r:sysfs_thermal:s0
/sys/devices/virtual/net/rmnet_ipa0/queues/rx-0/rps_cpus u:object_r:sysfs_devices_system_cpu:s0
/sys/devices/soc\.0/qcom,cpubw\.[0-9]+/devfreq/qcom,cpubw\.[0-9]+(/.*)? u:object_r:sysfs_devices_system_cpu:s0
1 change: 1 addition & 0 deletions sepolicy/hal_graphics_allocator_default.te
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow hal_graphics_allocator_default sysfs_graphics:file r_file_perms;
3 changes: 3 additions & 0 deletions sepolicy/init.te
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# /sys/kernel/debug/tracing/tracing_on
allow init debugfs:file rw_file_perms;

# required for LD_SHIM_LIBS
allow init { domain -lmkd -crash_dump }:process noatsecure;
1 change: 1 addition & 0 deletions sepolicy/init_shell.te
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
allow qti_init_shell sysfs_kgsl:file write;
allow qti_init_shell sysfs_rqstats:dir r_dir_perms;
2 changes: 2 additions & 0 deletions sepolicy/system_server.te
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
allow system_server persist_file:dir read;
allow system_server sensors_persist_file:file rw_file_perms;
allow system_server lirc_device:chr_file rw_file_perms;

get_prop(system_server, alarm_boot_prop)