This will make sec audioril init succeed, as it creates socket for rild and audio system to connect
Still don't know what this actually does since its part of Samsung telephony framework
The Pixel libperfmgr has following code :
std::thread initThread([&]() {
::android::base::WaitForProperty(kPowerHalInitProp.data(), 1);
hm->Start();
dlpw->Init();
});
which is basically
declare thread {
if (powerhalprop_is_not_set) wait;
else (powerhal_prop_is_set) init_other_threads;
}.start();
But in logcat
<11>[ 21.988418] [2: init: 2815] init: Unable to set property 'vendor.powerhal.init' from uid:0 gid:0 pid:2816: SELinux permission check failed
<36>[ 21.989189] [3: logd.auditd: 3586] type=1107 audit(1654915533.291:146): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=vendor.powerhal.init pid=2816 uid=0 gid=0 scontext=u:r:vendor_init:s0 tcontext=u:object_r:vendor_powerhal_prop:s0 tclass=property_service permissive=0'
So the powerhal's thread was not being run. This commit fixes seplicy to allow vendor init to set the powerhal init prop. May fix some issues on DT2W and deep sleep
* app_domain: Allow untrusted apps to get vendor.camera props such as vendor.camera.skip_unconfigure.packagelist
* debug_daemon: Allow more perms to properly execute logcat, sepolicy neverallow passes still
* Move vendor_camera_prop to vendor_public_prop, to resolve neverallow
* Using enum classes for various statuses for good readability
* Implement favorite channel saving which was missing
* Use Kotlin coroutines again for refreshing channel list button, for faster UI response
* Added javadoc for better functions description
* Also, code native audio routing system on jni (fm_route.cpp)
Change-Id: I993c88fdb580248d8a55efd8e9b6fed0e36d9b24
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
* Except for a10 which has only 1 back cam
Change-Id: Ibf6f07ea36c16880bf760bf66f5454485889c792
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
* It is already covered on ROM-specific sepolicy, therefore causing BSOD on some roms
Change-Id: I18d2592d8150a63f989c2b96cdb48a21ff11bbab
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This reverts commit cb95ff03729f9721c1a2af56e349a880c416ea59.
Revert "universal7885: sepolicy: Add another rule for thermal hal"
This reverts commit e695df796cf6b39e88652b2829bb18fc797ac0c8.
Revert "universal7885: switch to pixel thermal hal"
This reverts commit b8f413737399e34405322865d1efb391648124d7.