Compare commits
8 commits
fifteen/st
...
thirteen/d
Author | SHA1 | Date | |
---|---|---|---|
|
e2fe741e9b | ||
|
d5bc026c92 | ||
|
385565f029 | ||
|
e80a6564f5 | ||
|
50fed07446 | ||
4683e63404 | |||
|
1bc645396f | ||
9bbfd0eac9 |
11 changed files with 17 additions and 29 deletions
|
@ -101,6 +101,7 @@ BOARD_SUPER_PARTITION_BLOCK_DEVICES := vendor system
|
|||
BOARD_SUPER_PARTITION_METADATA_DEVICE := system
|
||||
BOARD_SUPER_PARTITION_VENDOR_DEVICE_SIZE := 1073741824
|
||||
BOARD_SUPER_PARTITION_SYSTEM_DEVICE_SIZE := 5368709120
|
||||
BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 500019200
|
||||
BOARD_SUPER_PARTITION_SIZE := $(shell expr $(BOARD_SUPER_PARTITION_VENDOR_DEVICE_SIZE) + $(BOARD_SUPER_PARTITION_SYSTEM_DEVICE_SIZE) )
|
||||
|
||||
BOARD_SUPER_PARTITION_GROUPS := lenovo710_dynpart
|
||||
|
|
|
@ -6,13 +6,14 @@
|
|||
# Currently we dont have e2fsck compiled. So fs check would failed.
|
||||
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
system /system ext4 ro wait,logical,first_stage_mount
|
||||
system_ext /system_ext ext4 ro wait,logical,first_stage_mount
|
||||
product /product ext4 ro wait,logical,first_stage_mount
|
||||
vendor /vendor ext4 ro wait,logical,first_stage_mount
|
||||
odm /odm ext4 ro wait,logical,first_stage_mount
|
||||
system /system ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
system_ext /system_ext ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
product /product ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
vendor /vendor ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
odm /odm ext4 ro,barrier=1,discard wait,logical,first_stage_mount
|
||||
/dev/block/bootdevice/by-name/recovery /recovery emmc defaults defaults
|
||||
/dev/block/bootdevice/by-name/boot /boot emmc defaults defaults
|
||||
/dev/block/bootdevice/by-name/logdump /metadata ext4 nosuid,nodev,noatime,discard wait,check,formattable,first_stage_mount
|
||||
/dev/block/by-name/logdump /metadata ext4 nosuid,nodev,noatime,discard wait,check,formattable,first_stage_mount
|
||||
/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,noatime,nodev,barrier=1,noauto_da_alloc,discard,lazytime latemount,wait,check,fileencryption=ice,reservedsize=128M
|
||||
/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,noatime,nodev,barrier=1 wait
|
||||
/devices/platform/soc/8804000.sdhci/mmc_host* /storage/sdcard1 vfat nosuid,nodev wait,voldmanaged=sdcard1:auto,encryptable=footer
|
||||
|
|
|
@ -96,12 +96,6 @@ on boot
|
|||
write /dev/cpuset/background/cpus 0-7
|
||||
write /dev/cpuset/system-background/cpus 0-7
|
||||
|
||||
# Allow system to manipulate KProfiles modes and parameters
|
||||
chown system system /sys/module/kprofiles/parameters/auto_kprofiles
|
||||
chmod 0660 /sys/module/kprofiles/parameters/auto_kprofiles
|
||||
chown system system /sys/module/kprofiles/parameters/kp_mode
|
||||
chmod 0660 /sys/module/kprofiles/parameters/kp_mode
|
||||
|
||||
####Regionalization config and prop files####
|
||||
chmod 0644 /persist/speccfg/spec
|
||||
chmod 0644 /persist/speccfg/devicetype
|
||||
|
|
|
@ -279,10 +279,6 @@ PRODUCT_PACKAGES += \
|
|||
vendor.lineage.livedisplay@2.0-service-sdm
|
||||
endif
|
||||
|
||||
# KProfiles
|
||||
PRODUCT_PACKAGES += \
|
||||
KProfiles
|
||||
|
||||
# Media
|
||||
PRODUCT_PACKAGES += \
|
||||
libavservices_minijail \
|
||||
|
|
1
sepolicy/private/init.te
Normal file
1
sepolicy/private/init.te
Normal file
|
@ -0,0 +1 @@
|
|||
allow init proc:file write;
|
3
sepolicy/vendor/file.te
vendored
3
sepolicy/vendor/file.te
vendored
|
@ -10,6 +10,3 @@ type sysfs_msm_subsys, sysfs_type, fs_type;
|
|||
type sysfs_rpm, sysfs_type, fs_type;
|
||||
type sysfs_system_sleep_stats, sysfs_type, fs_type;
|
||||
type sysfs_tp, fs_type, sysfs_type;
|
||||
|
||||
# KProfiles
|
||||
type sysfs_kprofiles, sysfs_type, fs_type;
|
4
sepolicy/vendor/file_contexts
vendored
4
sepolicy/vendor/file_contexts
vendored
|
@ -31,3 +31,7 @@
|
|||
# Block devices
|
||||
/dev/block/platform/soc/7c4000\.sdhci/by-name/system u:object_r:system_block_device:s0
|
||||
/dev/block/platform/soc/7c4000\.sdhci/by-name/vendor u:object_r:system_block_device:s0
|
||||
/dev/block/platform/soc/7c4000\.sdhci/by-name/logdump u:object_r:metadata_block_device:s0
|
||||
|
||||
# MMC
|
||||
/sys/devices/platform/soc/7c4000.sdhci/mmc_host/mmc0/mmc0:0001/block/mmcblk0/queue/discard_max_bytes u:object_r:sysfs_mmc_host:s0
|
||||
|
|
1
sepolicy/vendor/fsck.te
vendored
Normal file
1
sepolicy/vendor/fsck.te
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
allow fsck fsck:capability kill;
|
4
sepolicy/vendor/genfs_contexts
vendored
4
sepolicy/vendor/genfs_contexts
vendored
|
@ -7,10 +7,6 @@ genfscon proc /sys/kernel/sched_boost u:object_r:proc_sysctl_sch
|
|||
# DT2W
|
||||
genfscon sysfs /devices/virtual/touch/tp_dev/gesture_on u:object_r:sysfs_tp:s0
|
||||
|
||||
# KProfiles
|
||||
genfscon sysfs /module/kprofiles/parameters/auto_kprofiles u:object_r:sysfs_kprofiles:s0
|
||||
genfscon sysfs /module/kprofiles/parameters/kp_mode u:object_r:sysfs_kprofiles:s0
|
||||
|
||||
# Graphics
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,msm-ext-disp/extcon/extcon1/name u:object_r:sysfs_graphics:s0
|
||||
genfscon sysfs /devices/platform/soc/soc:qcom,msm-ext-disp/extcon/extcon2/name u:object_r:sysfs_graphics:s0
|
||||
|
|
6
sepolicy/vendor/init.te
vendored
6
sepolicy/vendor/init.te
vendored
|
@ -1,6 +1,6 @@
|
|||
get_prop(init, exported_default_prop)
|
||||
allow init logdump_partition:lnk_file relabelto;
|
||||
|
||||
allow init self:netlink_route_socket rw_socket_perms_no_ioctl;
|
||||
allow init self:rawip_socket create_socket_perms_no_ioctl;
|
||||
allow init socket_device:sock_file { unlink setattr create };
|
||||
|
||||
# Allow init to set attribute to sysfs_kprofiles
|
||||
allow init sysfs_kprofiles:file { setattr };
|
||||
|
|
3
sepolicy/vendor/system_app.te
vendored
3
sepolicy/vendor/system_app.te
vendored
|
@ -1,4 +1 @@
|
|||
# Allow KProfiles to be adjusted by a system app
|
||||
allow system_app sysfs_kprofiles:file rw_file_perms;
|
||||
|
||||
allow system_app zygote:unix_stream_socket getopt;
|
||||
|
|
Loading…
Reference in a new issue