Commit Graph

49 Commits

Author SHA1 Message Date
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
Roshan Pius
ed082ad630
kitakami: Change ownership of wifi firmware reload sysfs paths
This will let the wifi hal run as "wifi" user and not need root
permissions to access this path for firmware reloads.

(cherry-pick of commit 7a5ffa283181f4437c2107c59af4580a50df31a9)

Bug: 33435250
Test: Compiles.
Change-Id: I84a38cea5e0f729147c3191c3485a3738d7838ef
2018-05-27 21:01:41 +02:00
Ajay Panicker
2ea8dcf4e9
Remove net_bt_stack group and replace it with bluetooth
Bug: 31549206
Change-Id: I667963e5f9fd1a5dc9ad74378b318e3b782e6883
2018-02-25 21:43:07 +01:00
Roshan Pius
226b4edff4
Move wpa_supplicant to vendor partition
Bug: 35684372
Test: Compiles
Change-Id: I0019b1b59bf3e825585c88d61e281341fdd63cdd
2018-02-25 21:42:58 +01:00
Christopher Wiley
80231012bb
wifi: Do not define superfluous wpa_supplicant service
Bug: 30816535
Change-Id: Iab4e212b1c2dcbb97e73945e6b807b37174e0ae0
2018-02-25 21:42:48 +01:00
Olivier Karasangabo
f64f83afd9
kitakami: Update shim setup for O
Change-Id: Ic593695f5f215045cc2aae184be9c4fea5271889
2018-02-25 21:42:01 +01:00
Olivier Karasangabo
51fa807397
kitakami: Remove now obsolete libgui shim
* Shouldn't be required now that we use N blobs.

Change-Id: I277847b2bb042e88224850165a2f559ca0aac98c
2018-02-25 15:18:25 +01:00
Christian Oder
95f9abf5d3 kitakami: set footer length in fstab
Change-Id: I756bde10b0e92fe13a4f6de5b22e0a65ac01686a
2018-02-18 23:31:28 +00:00
airlessproject
5570d9aa2d disable 3.5mm jack impedance detection
breaks audio output on certain impedances, like car audio or hi-fi amplifiers

Change-Id: I0e870947442c877499305dca1675db9dbb948f13
Signed-off-by: airlessproject <vlatko.mitreski@gmail.com>
2017-08-10 19:23:32 +00:00
HaoZeke
7a0a801dad kitakami: Add FPC related services
[*] prepare directories for the FPC in init
[*] Add sepolicies for the fingerprint deamon

Change-Id: I10460873096c9669114f122822363d3ea74f238f
2017-08-10 19:07:11 +00:00
andralex8
7542177e1e kitakami-common: add SonyOtgSwitch
Add SonyOtgSwitch to control usb otg switch in quick settings

Change-Id: I7bb34073211d91462e7bc6f5b36adb89ce53ba72
2017-08-05 13:22:40 +00:00
Balázs Triszka
843d0d0979 Add camera shim lib.
With this we can not patch camera.qcom lib and use all sony params.

Change-Id: I14ef800608c7ed7a95921dd71a56702ed2d68b18
2017-02-12 01:07:12 +00:00
Quarx2k
1d2f7ab768 Add seqpacket socket to perfd
Change-Id: I835d2b409635284ec52e9112b24de42c95f4d792
2017-02-11 02:43:56 +06:00
Giulio Cervera
b71e2e5d8a Z4 Tab touchscreen permission
Change-Id: If426a2831b2b7de81da1c03e80e5d7611eec756b
2017-02-05 20:58:25 +01:00
Giulio Cervera
32762943df merge multiple 'on init' definition
Change-Id: I20a09257b1df9c36f3432ec2d8c667d27c83755c
2017-02-01 21:54:02 +00:00
Giulio Cervera
5625ab18f3 add sony users and use them
Change-Id: Ieb761d8717a1008742bf412a5fdedf38786d3e97
2017-02-01 21:49:34 +00:00
LuK1337
db16ca7e02 init: Remove obsolete TimeKeep seclabel
* We are already labeling it in file_contexts.

Change-Id: I2a3dbabd62cec9bfc85d5507001d6b38c932f392
2017-01-23 14:06:44 +00:00
Willi Ye
9f74818aed Add blink and breathing support to lights
Change-Id: I9dfae67a8b08b8c1741e06c795e8a3597f03a3f9
2017-01-23 13:41:50 +00:00
Chirayu Desai
f4573cf818 Initial kitakami common tree
Change-Id: Iada79bef3460bb97b866dd1f872af4180a544e19
2017-01-15 23:08:22 +05:30