Commit graph

1,139 commits

Author SHA1 Message Date
roynatech2544
cb6cd3067d universal7885: Adopt to changes on R10
* The /proc/kmsg buffer is empty by default
2022-06-17 13:58:33 +00:00
Soo-Hwan Na
4c9d50ef37
universal7885: rootdir: Use static numbers instead of % 2022-06-17 21:15:43 +09:00
roynatech2544
6feb600625
universal7885: Allow vendor_init to set powerhal init prop
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
2022-06-11 13:17:55 +09:00
roynatech2544
2fcc6c236f
a30s: Import stock values 2022-06-11 13:10:51 +09:00
Soo-Hwan Na
9fba29cf56
a30s: Put partition sizes pulled from a30s 2022-06-08 12:04:09 +09:00
roynatech2544
667c3b5dda universal7885: Add A30s camera support 2022-06-08 00:04:19 +00:00
roynatech2544
142f12bef4 a30s: Import missing libs 2022-06-07 23:50:27 +00:00
roynatech2544
53ee3a5321 univetsal7885: Fixup for A30s bringup 2022-06-07 23:18:27 +00:00
roynatech2544
c37d9e4681 vendorsetup: Generate A30s makefiles 2022-06-07 11:53:52 +00:00
Soo-Hwan Na
da39a992ff
vendorsetup: Track R9.6 2022-06-07 20:39:45 +09:00
roynatech2544
e62e89bd53
universal7885: Welcome A30s 2022-06-07 20:28:13 +09:00
roynatech2544
ace2dca16f universal7885: Track new kernel branch 2022-06-04 08:47:23 +05:30
roynatech2544
06f0ba16cc universal7885: Drop bt call patch
No longer required as of R9.5
2022-06-04 08:47:23 +05:30
Soo-Hwan Na
9c844c2fae
universal7885: Switch back zram compressor to zstd 2022-06-04 11:31:54 +09:00
Tim Zimmermann
dbd446b32c
Revert "universal7885: Uprev graphic composer HAL from 2.1 to 2.4"
* Our HWC does not support setActiveModeWithConstraints
* This way we can actually have mode switching working
  which will be needed for Tiramisu resolution settings

This reverts commit 6c0bc75905.
2022-05-27 17:52:15 +09:00
roynatech2544
2d5919abc1
universal7885: Copy volume tables from source
Change-Id: I6b583cb56dc4812e4483fe56e9e23359248e55e9
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-05-25 21:07:22 +09:00
orges
33bb6ae880
universal7885: overlay: Fix deprecated power profile items
* PowerProfile: screen.on is deprecated! Use screen.on.display0 instead.
 * PowerProfile: screen.full is deprecated! Use screen.full.display0 instead.

Signed-off-by: orges <me@orgesified.ml>
Change-Id: Ieff844423b735ebdab51c4b648820d84b7d1e5f0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-05-23 20:18:19 +09:00
roynatech2544
1ce9146e89
universal7885: parts: Fix the mkswap method
Change-Id: Ic078b1d2e5692036699ffc112fc62c932823265c
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-05-23 19:34:19 +09:00
roynatech2544
988595370b universal7885: Fix clang-tidy issue again 2022-05-22 05:16:57 +00:00
roynatech2544
f5d7b37699 universal7885: Address additional clang-tidy errors 2022-05-21 02:35:11 +00:00
roynatech2544
14e4406a1b universal7885: sepolicy: Drop shell execute rules 2022-05-21 02:29:42 +00:00
roynatech2544
22caa5374c universal7885: interfaces: Do not use hardcoded cmd
Use standard C/C++ functions
2022-05-21 02:28:47 +00:00
roynatech2544
b3ec9c4371 universal7885: Fix errors according to clang-tidy 2022-05-21 01:07:44 +00:00
roynatech2544
5394c3b11f universal7885: Add extra compiler defaults 2022-05-21 00:37:58 +00:00
roynatech2544
be82ebd1fe
universal7885: bpfmt 2022-05-20 18:37:24 +09:00
roynatech2544
d97d8b7bfe
universal7885: Import radio hals
* Build them from source
* Drop prebuilts on vendor tree
2022-05-20 18:24:21 +09:00
roynatech2544
0282f1e3a9
universal7885: Address some denials
Change-Id: I6892bbdecf6780891c0baf5849687632602e52c9
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
2022-05-14 15:04:18 +09:00
roynatech2544
082cd1ac46
universal7885: AARs: Update to 1.6.0 release
Link: https://mvnrepository.com/artifact/com.google.android.material/material/1.6.0
2022-05-10 21:44:20 +09:00
roynatech2544
8def03df20
universal7885: Remove unused funcs from header
Now matches the AOSP source one
2022-05-10 21:42:46 +09:00
Soo-Hwan Na
7664f1ae7d
universal7885: Drop unused keyhandler overlay 2022-05-09 12:52:42 +09:00
roynatech2544
5e69a17ac0
universal7885: Label powerhal props 2022-05-08 18:15:09 +09:00
roynatech2544
043d4db5cf
universal7885: rootdir: Allow tracing
Also address some selinux denials
2022-05-07 13:58:08 +09:00
roynatech2544
56df394666
universal7885: extract_utils: Remove not needed patching
Now built from src
2022-05-07 11:18:12 +09:00
roynatech2544
5ad98e1963
universal7885: Make shim link against provider
Also remove unused methods in shim
2022-05-07 11:17:15 +09:00
Tim Zimmermann
688fdd42c8
universal7885: Camera3: Change usage type to uint64_t
* gralloc BufferUsage is already uint64_t, this seems to be samsung's real change here

Change-Id: I769e2de1e58dff2ed3efa770bf9ae2cb17e55df8
2022-05-07 10:39:21 +09:00
Tim Zimmermann
31a590ef20
universal7885: Drop camera.device prebuilts 2022-05-07 10:39:20 +09:00
Tim Zimmermann
53f2691a33
universal7885: import camera3.h
* hardware/libhardware/include/hardware/camera3.h from android-11.0.0_r39

Change-Id: I84e77c4b85ddcecbf664cd890ed7e595f0c5ff69
2022-05-07 10:39:20 +09:00
roynatech2544
478b6f760c
universal7885: Remove unused deps from health impl 2022-05-07 07:48:11 +09:00
roynatech2544
f7c01f23cc
universal7885: Remove legacy drm hal V1.0
We no longer need drm plugins
2022-05-06 23:28:59 +09:00
roynatech2544
3cefd465e9
universal7885: Use only top rev hidl for build list
All other higher rev interfaces require all the lowers anyway
2022-05-06 23:10:27 +09:00
roynatech2544
4518c61696
universal7885: Adapt to DRM hal changes from 9820
- Update proprietary files list to include drm 1.4 hal
- Also add missing entries on a10 proprietary files list
- Build needed interface for drm 1.4 for vendor
2022-05-06 16:22:07 +09:00
roynatech2544
cdc2de72fc
a10: Fixup issues with sensor hal
Imported sensor hal source from android 12L, rebranded and make it compile as 32bit
2022-05-04 20:29:17 +09:00
Tim Zimmermann
671bd6f797
universal7885: Use omr as /metadata
Change-Id: If93ec5ea8ce8770e23d2ba622fc8ae4e66ecfbbf
2022-05-04 20:29:10 +09:00
Steven Moreland
d1ed7506da
universal7885: Move ueventd.rc to /vendor/etc
The root location of this file is deprecated for Android T.

Bug: 189268918
Bug: 178221726
Test: device reaches boot complete after raising API level to 32
Change-Id: I97a6d2e5cacd0ac5eeb81daafeb8b1a0ad5c119b
2022-05-04 16:21:09 +09:00
Soo-Hwan Na
187f85bbca
universal7885: Update build fp to raven may 2022-05-04 14:31:52 +09:00
roynatech2544
f23f81e96f
universal7885: CameraLightSensor: Correct class name
Need to be full class name, including packagename
Also rename AIDL file to camera app's, so it will be unified
2022-05-03 21:21:17 +09:00
Soo-Hwan Na
5010ee9996
universal7885: Track our hardware/samsung 2022-05-01 18:16:14 +09:00
roynatech2544
df3f4dea62
universal7885: Add aidl for interacting with EKCamera
Also address deprecation
2022-05-01 10:12:35 +09:00
roynatech2544
1a96e0b036
universal7885: Address various selinux denials
Also fix some mistakes
2022-04-30 15:14:15 +09:00
roynatech2544
f717debf14
universal7885: Add missing new line chars 2022-04-30 15:10:37 +09:00