Commit Graph

68 Commits

Author SHA1 Message Date
Joel16
aa7f6c6aa2 kitakami-common: Switch to OSS thermanager 2022-03-06 22:49:05 -05:00
TARKZiM
d2c7f7fe1c kitakami-common: Switch to OP2 Perf/Thermal stack
* Move thermal-engine.conf to vendor trees.
2021-10-05 11:31:09 -04:00
TARKZiM
0d4056f7e9 kitakami-common: rootdir: Add some power tweaks 2021-10-05 00:28:31 -04:00
pix106
db6648c42a kitakami-common: add /misc to fstab.qcom
Fixes "failed to find /misc partition" when trying to reboot to recovery on kitakami
2021-10-05 00:17:10 -04:00
TARKZiM
96b176c3ba kitakami-common: Disable PPDaemon & Livedisplay legacymm
* Causing deepsleep issues.
2021-04-21 14:40:28 -04:00
Bernhard Thoben
5370499f1f kitakami-common: rootdir: Removed deprecated entries.
Change-Id: I95243a9541ecac080e4568f9f438aba6a2940b04
2021-04-21 14:39:24 -04:00
Bernhard Thoben
4045556346 kitakami-common: Fixed P2P crash.
Change-Id: Ie7535c1d1e522e8b819ba298c136604426252543
2021-04-21 14:39:08 -04:00
TARKZiM
4c15483b97 kitakami-common: rootdir: Disable iddd for now 2020-10-26 02:17:40 +08:00
TARKZiM
0540092ab9 kitakami-common: rootdir: Remove service overrides 2020-10-26 02:17:40 +08:00
TARKZiM
24c28e308b kitikami-common: Revert IMS changes 2020-09-18 13:47:05 +08:00
Mukul
fd4433cd68 kitakami-common: Kang IMS stack from Oneplus2
- Bring back VoLTE support using https://github.com/eErenYeager/ims_apk/
2020-08-14 16:38:12 +08:00
TARKZiM
2949861d08 kitakami-common: light: Switch back to classic HAL
* Trying to fix notification led blinking, will re-write
  our HIDL HAL in the future.

* Move led permissions to on init before HIDL service starts.
2020-08-12 16:19:15 +08:00
Subbaraman Narayanamurthy
1577377b52 kitakami-common: Add CAP_SYS_BOOT for charger
Add CAP_SYS_BOOT capability for charger service so that it can
shutdown/reboot the system.

Change-Id: I17ccba74d5a3c38bd751c55bcf42fb3689d730a7
2020-08-10 12:34:44 +08:00
Subbaraman Narayanamurthy
839426c5b0 kitakami-common: Update charger service path and label
charger binary is moved to /system/bin. Also the label got changed
to charger. Update it accordingly.

Change-Id: I78574238f9fc5ec028d10ab866676bfc0cd36370
2020-08-10 12:34:33 +08:00
TARKZiM
0abe64425b kitakami-common: Update SDK/SHIM override configs
* Since LD_PRELOAD doesn't seems to work on Oreo+,
  we're moving preload library to SHIM instead.
  (This fixes secd and it's security features)

* Added more blobs to SDK override list to prevent
  further issues.

* rootdir: Override some HAL services to add OEM permissions
  to it.
2020-08-02 19:24:28 +08:00
Adrian DC
874512757c kitakami-common: media: Give /dev/msm_vidc_* camera group and video_device label
* The mediacodec (or android.hardware.media.omx@1.0-service)
    services do not have the audio groups but camera,
    therefore update the group to avoid access denial

 * Resolve denials with public/mediacodec.te:
    allow mediacodec video_device:chr_file rw_file_perms;

Change-Id: I1da83eaab461ec7a98753009684ee3dca951b791
2020-07-22 19:53:12 +08:00
Bernhard Thoben
f3e7e56dde kitakami-common: Changes for LiveDisplay
Change-Id: Id464ae7aa6bee09153f3a31cccff5a444802037c
2020-05-29 10:37:24 +08:00
codeworkx
4c060e7893 kitakami-common: add CryptfsHW hidl service
Change-Id: I6285e456155bfba9671d7609f4b62884af4f8c0f
2020-05-21 17:29:31 +08:00
Zhen Kong
b4811d29e2 kitakami-common: ueventd.qcom.rc: set permissions of /dev/qce device
To support end-to-end DRM content playback with SG List feature,
android.hardware.drm@1.0-service needs to have access permission
to /dev/qce to map & unmap ION buffer virtual address with HW Crypto
Engine. So, set /dev/qce device permission 0660 and let it be
accessible by user "system" and group "drmrpc".

Change-Id: If9c0ed70acc2bb063344692374f51441fe84eff6
2020-05-13 11:36:08 +08:00
TARKZiM
2f7bbb26e2 kitakami-common: Kang Perf/Thermal stack from angler & hima
* Perf/Thermal blobs from angler - OPM6.171019.030
* Thermal HAL from angler base + hima modified configs.
* Modified thermal sensor numbers for kitakami platform.
* From https://github.com/AICP/device_htc_hima
2020-05-04 14:29:13 +08:00
Bhargav Upperla
3aa59d23e4 kitakami-common: Increase ZRAM swap size
On high RAM targets, due to more anonymous memory availability,
we can improve headroom by increasing ZRAM swap size,
especially under memory pressure, and during background app compact.

Also ZRAM swap size is logical and is used when needed and
shouldn't cause other side effects.

Change-Id: I11949b8bdf16e9b4b8abb1bd633ffa1a1c0b1ad6
2020-04-29 13:07:44 +08:00
TARKZiM
58a87ee4f5 Revert "kitakami-common: rootdir: Disable ZRAM"
This reverts commit 5314d1ec67.
2020-04-29 10:47:40 +08:00
TARKZiM
5314d1ec67 kitakami-common: rootdir: Disable ZRAM
* Causes serious memory consumption and making the device laggy,
  so let's disable it until the problem is solved.
2020-04-22 09:37:17 +08:00
TARKZiM
31f09d5fac kitakami-common: rootdir: Create VNDK camera socket folder 2020-04-22 09:36:24 +08:00
Tim Murray
20770475be kitakami-common: add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2020-03-17 14:17:43 +08:00
Artem Borisov
5490bf5beb kitakami-common: Enable ZRAM with LZ4 compression
Change-Id: Id4d231eed61dbfcfee160393812a417063035f7e
2020-03-17 14:06:06 +08:00
TARKZiM
614f928b66 kitakami-common: rootdir: Remove useless duplicate service definition 2020-02-17 23:07:32 +08:00
Arian
d99fe15881 kitakami-common: rootdir: Move brc-uim-sysfs to vendor
Change-Id: I95d5f00b45c456f76b2adb3079144e8118b3ce69
2020-02-11 22:38:28 +08:00
Bruce Levy
f74bd0acc5 kitakami-common: Mark rmt_storage as shutdown critical
rmt_storage should not be automatically killed by Android during
shutdown since it is needed to actually process the peripheral
shutdown

Change-Id: I58a29fe86955f0abad944727bb4208dad89f495d
2020-02-10 17:25:12 +08:00
TARKZiM
b6909c6cda kitakami-common: rootdir: Remove duplicated services 2020-02-10 12:04:06 +08:00
Wang Han
4d53aefed6 kitakami-common: Import and bind mount loader config for media swcodec
* This config needs to be modified for legacy devices. As
   there is no easy way to split it, import it into device
   tree and bind mount it instead.

 * Head at android-10.0.0_r2
   (3ac371484399da6efbd0c835aa461d3326263ab1).

Change-Id: I8d5003d7cd3a471c569844aede4b5ea4c68ae36b
2020-02-10 12:03:28 +08:00
TARKZiM
ddba4a6318 kitakami-common: rootdir: Update wpa supplicant configs to Q 2020-02-09 23:29:22 +08:00
Wang Han
0b946dc37a kitakami-common: Remove oem_2950 group for second RIL daemon service
* Matches rild.legacy.rc from Pie's RIL

Change-Id: Icdb0a3e4859bc0a4011e34fdd483cef2ca3b8a7f
2020-02-09 20:42:32 +08:00
Wang Han
90d2a554b4 kitakami-common: ueventd: Don't modify permissions of /dev/hw_random
This addresses an underlying problem since /dev/hw_random is used. The
issue is that EntropyMixer, which runs in system_server, needs to read
from /dev/hw_random, but thanks to our qualcomm ueventd, EntropyMixer
can never accress this node, resulting in warnings like this:

W EntropyMixer: Failed to add HW RNG output to entropy pool
W EntropyMixer: java.io.FileNotFoundException: /dev/hw_random (Permission denied)

AOSP ueventd handles this well, so just remove this line to get things
back to stage. This issue was never exposed because Google derps the
logging here, which is already fixed on Pie.

c78a463e87

Change-Id: I42c9aaa8f57306536e51c0a17febad57a5a77581
2020-02-09 20:19:56 +08:00
John Stultz
882b5c96d0 kitakami-common: Disable nonblocking_ffs to avoid recent crashes with adbd
Recent changes to adbd have enabled nonblocking_ffs by default.

These have seeminly uncovered some bad memory corruption in the
kernel ffs gadget driver on every kernel I've tried so far.

Unfortunately I've not been able to diagnose what is going wrong,
so for now, lets disable the nonblocking_ffs.

We still need to root cause the issue as its a problem even with
the mainline kernel on HiKey, so its likely a generic kernel issue.

Change-Id: I7a0797cc9e8e5f263e533beea23642f768c0f017
Signed-off-by: John Stultz <john.stultz@linaro.org>
2020-02-09 19:58:18 +08:00
Jerry Zhang
4ce7a9c55f kitakami-common: Set sys.usb.ffs.aio_compat
The kernel does not support aio with ffs.
Set the property so adb/mtp know to use the compatible
functions.

Bug: 37916658
Test: Use adb
Change-Id: Id35a05fcb9952dcf7239bd15a61cc620537419bc
2020-02-09 19:57:34 +08:00
Michael Bestas
ee7ae498e4 kitakami-common: Get rid of recovery-only fstab
* Mounting /system partition is handled in kernel now, however
   removing the entry from fstab caused issues building the OTA.
   The workaround was to have a separate fstab, but turns out
   that simply setting the recoveryonly flag does the trick because
   those are then ignored during a normal Android boot.

Change-Id: I2944384d0a1c41bc9f9f51e2e29daff2bed0a0f4
2020-02-09 02:54:15 +08:00
Bruno Martins
897636f500 kitakami-common: Create dirs for firmware mount points
As of Q, the directories for the mount points must be created
upfront. Worked well on P, but not anymore.

Change-Id: Id2a7a01c78a82fc310c04377f2e07143178a4f52
2020-02-09 02:25:50 +08:00
TARKZiM
da774c9032 kitakami-common: rootdir: Remove deprecated user flag 2020-02-09 02:08:37 +08:00
Quarx2k
b0c12fc2cd
init: Fix all permissions
Change-Id: Ib66109ceca0e446599593b70d58738a158a848fb
2019-07-15 22:35:08 +02:00
Olivier Karasangabo
07e798880d
kitakami: Use new config.fs for Sony users
* Overriding the header is no longer necessary
  and deprecated as of Android 8.

Change-Id: I4960c7dc03a918e1f9711b1d16bb5acc73953ebb
2019-07-15 22:35:08 +02:00
Nickolay Semendyaev
f6e8be9ce5
init: Fix sensors service
Change-Id: I273a46bf64809ba228ca4ed8bd315f6a25f48fda
2019-07-15 22:35:08 +02:00
Nickolay Semendyaev
369fe4d2ef
init: Remove seclabel for UIM
So UIM can at least start.

Change-Id: Id49a7be8d478db7cc8d660de996ff0c4b1e50bd7
2019-07-15 22:35:08 +02:00
Nickolay Semendyaev
e66f152070
Fix ril-daemon2 service path
Change-Id: I3ab64baba7703661ca213657a138036f58681618
2019-07-15 22:35:08 +02:00
Ole Birketvedt
8bc969d1d2
kitakami: Set res_info graphics node ownership
* Fixes MHL

Change-Id: Ie97ec60eda7024cf859d98c0ed71f3e762c57975
2019-07-15 22:35:08 +02:00
Olivier Karasangabo
b387a65694
init: Remove local TimeKeep service definition
* Obsoleted by /vendor/etc/init/timekeep.rc

Change-Id: Ic038a690da0269ccd168791632cab75203e69743
2019-07-15 22:35:08 +02:00
LuK1337
c61dfe0b6f
kitakami: Replace QCOM GIDs with oem_29XX
* Currently, config.fs doesn't have the ability of adding AIDs
   to init so that they can actually be used in init scripts.
 * Replace all instances of qcom_diag and rfs_shared with
   oem_2950 and oem_2952.

Change-Id: Ibc1a2db8c73ca6ff9d882e42ac734e4ea65ad949
2019-07-15 22:35:08 +02:00
Olivier Karasangabo
ece3b3d7c5
kitakami: Remove CNE/DPM stack
* Didn't work, caused crashes, and was incomplete anyway.

Change-Id: I193a2b715e78b9e40b6a7b5313fe047556a270ca
2019-07-15 22:32:19 +02:00
Woody Lin
a780bacd27
fs: symlink platform/soc.0/${ro.boot.bootdevice} to bootdevice
Make symbolic link from
/dev/block/platform/soc.0/${ro.boot.bootdevice} to
/dev/block/bootdevice.

Change-Id: I7b7f4c728656103445e7fb68ccca92402fa36ff5
2018-08-04 21:10:35 +02:00
Olivier Karasangabo
f04339057e
[DNM] SELinux: Remove local sepolicies and contexts
Change-Id: I872414403a0b36da65f8a806533ece27da7e40a1
2018-05-27 21:01:41 +02:00