roynatech2544
f8eb3e1258
universal7885: Inital port to A20/A20e
...
Addtitionally, Add device-specific trees as well
Change-Id: Icbbc31c063b18bce3702d0b208a0aee78148a7c0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-03-22 18:08:09 +09:00
SamarV-121
601b5ef5aa
universal7885: sepolicy: Allow tee to write efs_file
...
`W McDaemon.FSD2: type=1400 audit(0.0:98): avc: denied { write } for name="Store_1.tf" dev="mmcblk0p3" ino=28 scontext=u:r:tee:s0 tcontext=u:object_r:efs_file:s0 tclass=file permissive=0`
`I TeeMcDaemon: create: Create storage file "/mnt/vendor/efs/TEE/Store_1.tf" [hardware/samsung_slsi/exynos7885/mobicore/Daemon/src/FSD2.cpp:129]`
`E TeeMcDaemon: creating storage file failed with "Permission denied"(errno 13) [hardware/samsung_slsi/exynos7885/mobicore/Daemon/src/FSD2.cpp:144]`
Change-Id: I5f82cf2a25ed32203734b2f80aa041e99c66f17f
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
SamarV-121
f8fe2f5426
universal7885: Cleanup
...
* Alphabetize
* Remove packages which are built by default
Change-Id: Id678c95765d395ba65477ca6a1b220a2107283dd
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
Wei Wang
cf9c04c640
universal7885: Skip wait for hwservicemanager
...
* Wait for hwservicemanager is no longer needed
after this CL:
https://android-review.googlesource.com/#/c/356043/
Bug: 36399429
Test: victara boot
Signed off by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I12c5adab70dc519b5e834eb35262ff73d214978b
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
Wei Wang
672638813b
universal7885: Make sure graphics HAL services started before mounting data
...
Bug: 36409349
Signed off by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I1df0bd7878c7d67d3695ad1644c6b928cee0e323
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
Chia-I Wu
ed3b642100
universal7885: Start hwservicemanager early
...
Test: builds and boots
Bug: 35173320
Change-Id: I9f060904174103a6a145a83cbb4c100728ff6df6
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
Wei Wang
b6b210ae70
universal7885: Start bootanim before mounting data partition [1/2]
...
Bug: 30118894
Signed off by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: If84764e3ce51f467b2dfa867ce28e1e396422d45
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
SamarV-121
00ea8fd0bb
universal7885: Add blob dependency only when it doesn't exist
...
Change-Id: I46873a22d11b91a0a7329f075505e53a005f0665
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
Arne Coucheron
36933979a5
universal7885: Enable more lmkd configs
...
Change-Id: Ie8748a46ce39f3c8c629d8862e767876f0c4c99f
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
SamarV-121
e0ee886329
universal7885: Add missing seperators in lineage.dependencies
...
Change-Id: I79f191bcc32bbf388a376e87af792f0747d4f533
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
SamarV-121
a466f7e675
universal7885: sepolicy: Allow gpuservice to read graphics_config_prop
...
`W Binder:3927_1: type=1400 audit(0.0:663): avc: denied { read } for name="u:object_r:graphics_config_prop:s0" dev="tmpfs" ino=2654 scontext=u:r:gpuservice:s0 tcontext=u:object_r:graphics_config_prop:s0 tclass=file permissive=0`
`E libc : Access denied finding property "ro.cpuvulkan.version"`
Change-Id: I0e85c1bf7fc8ac54c6ce2b5d20fe28fdec61c102
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
SamarV-121
63869dafa1
universal7885: sepolicy: Allow memtrack HAL to read sysfs_gpu
...
`android.hardware.memtrack@1.0-service: libmemtrack-hw -- Couldn't open gpu_memory node`
`memtrack@1.0-se: type=1400 audit(0.0:721): avc: denied { read } for name="gpu_memory" dev="sysfs" ino=15688 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:sysfs_gpu:s0 tclass=file`
Change-Id: I5aa468a7f4cb3b2dad032e7505705efcb84f9519
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
LuK1337
d3dc59fac8
universal7885: Add reboot_fastboot action to power menu
...
Change-Id: I73e3a66db4d7cb34f1c13d4b8b1b8baad3b87f0d
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:09 +09:00
SamarV-121
90e35eef41
universal7885: rro_overlays: Cleanup default configs
...
* also change packagename
Change-Id: I3332d2775e978c3ef0c79283990cc3063cac5656
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
SamarV-121
c7376eff2f
universal7885: sepolicy: Allow fingerprint HAL to write /dev/goodix_fp
...
Change-Id: I29fde9ebc48852ad121766a4066e563aced88bb0
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
SamarV-121
3df475a44f
universal7885: Update blobs from A305FNPUS6BUD3
...
Change-Id: I5ee1e984872a2aa7eeb670e46a3697ad0848e6a1
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
SamarV-121
386f45e30a
universal7885: sepolicy: Label recovery and boot block
...
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Change-Id: I861165f7b6c3279bc104818f2ec33887f34f5384
2021-10-21 22:12:08 +09:00
SamarV-121
22cd3a8290
universal7885: sepolicy: Cleanup unused contexts
...
* Also rearrange them
Change-Id: I27cbe8e6d4a4a26461e23485f7ae46afcd7f7d74
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
SamarV-121
101e8c1452
universal7885: Set wifi direct interface
...
* taken from 9a2952357b
Change-Id: I1ad819041e7d6633fd8aedf6e2bfd1f69df546a6
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
Tim Zimmermann
e4a3293ac5
fixup! universal7885: Move supplicant service init to wpa_supplicant
...
* Stock uses use_p2p_group_interface=1
but we need to set p2p_no_group_iface=1 to use p2p0
Change-Id: I2e5be52e489bce137252e8c7b8e4a6ac59bb011d
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
Naina Nalluri
ecb572dba1
universal7885: Set the flag to disable rild
...
This is partial revert of this commit 9a0c0303d5ab9a2fd1ce6f1a7726f2638304c7db
Set the flag to enable vendor equivalent
ril service - i.e to disable rild
Bug: 73299369
Test: Compile and check the out folder
Change-Id: I43d38c2d334b5988800da9de49f467cf3beadf24
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
SamarV-121
bcd346f7e6
universal7885: Correct board platform
...
* as per stock
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Change-Id: Id19c9afbbe6eb6b7dd2ab5f27f6b6088444760dc
2021-10-21 22:12:08 +09:00
SamarV-121
e44015122d
universal7885: Decommonize board-info.txt
...
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
Change-Id: Iee2bfc56173aeb2c07e2ab731de23c67da6ae696
2021-10-21 22:12:08 +09:00
ѕαмαя νιѕρυтє
237ccdbcd2
universal7885: Track slsi sepolicy repo
...
Change-Id: I44fa22d5eb43d1c31697fcd97beb5b3011e143a8
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
Anton Hansson
f1ff6e2d9c
universal7885: Use TARGET_SCREEN_DENSITY
...
This variable is used to auto-populate the ro.sf.lcd_density as
well as selecting density bucket for resources in recovery.
Bug: 118676832
Test: adb shell getprop ro.sf.lcd_density
Test: boot into recovery
Change-Id: Ib383d18b61e7a2058a69ae26136aa053fdba4df2
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
SamarV-121
0bba914af2
universal7885: recovery: Initialize usb.configfs
...
Change-Id: I092daa2b489f51f78b530253c1c1370e8c0f6a8a
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
ae24c2ca02
universal7885: Label more power supply nodes
...
* seen on a40
Change-Id: If0ab64794d9805bb2310d085e15c72c1c9190078
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
SamarV-121
3cb8448da3
universal7885: Label another rtc node
...
* seen on a40
Change-Id: Ibaa65145a2e3874e33677acb0b2fd7350c004f23
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
Tim Zimmermann
8968b33f19
universal7885: Assert on firmware version
...
* <= Pie firmwares aren't supported
Change-Id: Ibe4ba20f05141c5bf0726f4f4a5a6c0cc5672e29
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
SamarV-121
9a5bc701e2
universal7885: Run shfmt
...
Change-Id: I835dccd7143af8a6d6ab2012cd37822db4fe0d97
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
98d5cfb583
universal7885: extract-files: Use pipe in case to assign the multiple expressions
...
Change-Id: Ibaeacd4f5d6090e14b15e347f9ff4a7cf83e491f
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Francescodario Cuzzocrea
55a20a7518
universal7885: Kang RIL blobs from A405FMPUU3CUC2
...
* needed to fix incall audio
Change-Id: I6462faae62ed18c512306d0068a18528ad8614d8
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
0d34c0e460
universal7885: Allow wifi HAL to read vendor_wifi_prop
...
Change-Id: I3af8cb34f0555bfe8b1d4eeb629c80fcfb865afc
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Arne Coucheron
d0e9e5ef6a
universal7885: sepolicy: Allow radio to make binder calls to gpuservice
...
I have no idea why it needs to.
avc: denied { call } for scontext=u:r:radio:s0 tcontext=u:r:gpuservice:s0 tclass=binder permissive=0
Change-Id: I2a1eac04bb90423c2c2f4fb7a524cd03f3d31df2
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
c73e82afaf
universal7885: sepolicy: Allow hwc HAL to write ion_device
...
`W composer@2.1-se: type=1400 audit(0.0:144): avc: denied { write } for name="ion" dev="tmpfs" ino=13333 scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:ion_device:s0 tclass=chr_file permissive=0`
`E libacryl: Failed to open /dev/ion [Permission denied]`
Change-Id: I4f6475d00981a21adddd7a99d5cfb902ee0959da
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
681aa46ba9
universal7885: Re-add mx140 debugging files
...
`E [6:wifi@1.0-servic: 3650] wlbt: [MX_FILE]: mx140_request_file: vfs_stat() failed for /vendor/etc/wifi/mx140/debug/common/log-strings.bin`
`E [6:wifi@1.0-servic: 3650] wlbt: [MX_FW]: mxlog_init: Failed to read common/log-strings.bin needed by MXlog Phase 5`
Change-Id: Ic28c7ff3dee15a3c26bd59cf0e61f1025cb96b58
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
f0353ae729
universal7885: Update memetrack HAL from A405FMPUU3CUC2
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ie70d9554921353fb4cd0322ae9805c01715c30c8
2021-10-21 22:12:08 +09:00
SamarV-121
959d155c73
universal7885: sepolicy: Cleanup unused rules
...
Change-Id: Idcf765bab4f43f67ecc21cd572b6264d691f9185
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
cdae24b850
universal7885: sepolicy: Allow zygote to read cmdline
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ieb498872e834939da48da56ac13554b78da21915
2021-10-21 22:12:08 +09:00
dhacker29
94ca3b4cde
universal7885: rootdir: Allow telephony access to proc/cmdline
...
`D/TelephonyManager( 131): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)`
Change-Id: I2685959d485be3e29a738bc6287fdd99dc52b771
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
c01abf68d7
universal7885: sepolicy: Label /mnt/vendor/cpefs
...
`W vold : Failed to open /mnt/vendor/cpefs: Permission denied`
`I auditd : type=1400 audit(0.0:78): avc: denied { read } for comm="Binder:3484_2" name="/" dev="mmcblk0p4" ino=2 scontext=u:r:vold:s0 tcontext=u:object_r:mnt_vendor_file:s0 tclass=dir permissive=0`
Change-Id: Id8a194322977d4a697dd525df27f1b1a691a2475
Signed-off-by: SamarV-121 <samarvispute121@pm.me>
2021-10-21 22:12:08 +09:00
SamarV-121
bea423e4a5
universal7885: sepolicy: Silence tee denial
...
- `I auditd : type=1107 audit(0.0:15): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for propertteey=sys.mobicoredaemon.enable pid=3585 uid=1000 gid=1000 scontext=u:r:tee:s0 tcontext=u:object_r:system_prop:s0 tclass=property_service permissive=0'`
- this prop is used nowhere
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I823e09cd6ee98fded5855d71ccec2d5f91454611
2021-10-21 22:12:08 +09:00
SamarV-121
c4c7efdbac
universal7885: sepolicy: Nuke neverallows
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ie0339184617873ffe3b5dc25c277e740b34c8d86
2021-10-21 22:12:08 +09:00
SamarV-121
aed3c1f464
universal7885: sepolicy: Allow kernel to read sysfs_virtual nodes
...
`avc: denied { read } for name="hall_detect" dev="sysfs" ino=29566 scontext=u:r:kernel:s0 tcontext=u:object_r:sysfs_virtual:s0 tclass=file permissive=0`
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I8fb01d8c4ce8b48fbf58a0688b04dc79664d2964
2021-10-21 22:12:08 +09:00
SamarV-121
0b3a75c212
universal7885: sepolicy: Allow hwc HAL to read hwc.exynos.vsync_mode prop
...
`W composer@2.1-se: type=1400 audit(0.0:23509): avc: denied { read } for name="u:object_r:default_prop:s0" dev="tmpfs" ino=2518 scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:default_prop:s0 tclass=file permissive=0`
`E libc : Access denied finding property "hwc.exynos.vsync_mode"`
Change-Id: Ib259886ae5560dc3b2e427890e46877c732ff7ba
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
6cfb2d5778
universal7885: sepolicy: Remove mobicore and trustonic HAL rules from here
...
* Moved to common slsi sepolicy
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: I204b0eaad014f97166180b17678277c48a851491
2021-10-21 22:12:08 +09:00
SamarV-121
ae0130bb13
universal7885: sepolicy: Resolve neverallows
...
libsepol.report_failure: neverallow on line 9 of device/samsung/universal7885-common/sepolicy/vendor/mediacodec.te (or line 60921 of policy.conf) violated by allow hal_power_default hal_power_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 5 of system/sepolicy/public/hal_power.te (or line 19140 of policy.conf) violated by allow mediacodec hal_power_hwservice:hwservice_manager { find };
libsepol.report_failure: neverallow on line 5 of system/sepolicy/public/hal_power.te (or line 19132 of policy.conf) violated by allow mediacodec hal_power_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 990 of system/sepolicy/public/domain.te (or line 13095 of policy.conf) violated by allow zygote vendor_file:file { read };
libsepol.report_failure: neverallow on line 861 of system/sepolicy/public/domain.te (or line 12818 of policy.conf) violated by allow hal_fingerprint_default fingerprintd_data_file:dir { write };
libsepol.report_failure: neverallow on line 861 of system/sepolicy/public/domain.te (or line 12818 of policy.conf) violated by allow rild radio_data_file:dir { search };
libsepol.report_failure: neverallow on line 861 of system/sepolicy/public/domain.te (or line 12818 of policy.conf) violated by allow hal_camera_default camera_data_file:dir { search };
libsepol.report_failure: neverallow on line 861 of system/sepolicy/public/domain.te (or line 12818 of policy.conf) violated by allow hal_drm_widevine media_data_file:dir { search };
libsepol.report_failure: neverallow on line 831 of system/sepolicy/public/domain.te (or line 12761 of policy.conf) violated by allow rild radio_data_file:file { lock open watch watch_reads };
Change-Id: I47cc5117dda055ca4041e666bb7ffa8a51f9a3d9
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
SamarV-121
a9dab1b0bf
universal7885: init: Set correct device model
...
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
Change-Id: Ia9db3a1b4009e461b7df8cd677acd9b2bb298dab
2021-10-21 22:12:08 +09:00
Volodymyr Zhdanov
c7c83fdac1
universal7885: Only start NFC service on supported variants
...
Change-Id: I6c272eca6b45760679aac4effc7c074444692cf1
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00
Pig
f66a5f7574
universal7885: Enable NFC only if hardware sku prop is set
...
Change-Id: Iac4734657504004c12630dc482dfb9d6c2612282
Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
2021-10-21 22:12:08 +09:00