Commit graph

185 commits

Author SHA1 Message Date
Nicole Lee
7311968443 init: grant read permission of always-on log for others
Bug: 186619367
Change-Id: Ie70d9c97d95f4cc90bc3d66d1309087dc3f148e5
2021-04-29 20:42:44 +00:00
Rick Yiu
89f31f39c2 gs101: Change uclamp min value for camera
With a scheduler change that refers to uclamp value of a rq, we need
to change uclamp min value for camera to get better performance.

Bug: 170648224
Test: check fps in video recording
Change-Id: I29e55706b49d5182935209d1d6f3552fb7f5d821
2021-04-27 06:09:06 +00:00
Franklin He
8ac9fa6194 Add a boost to NNAPI DarwiNN HAL for better perf&power
See http://shortn/_X7vYHND2xN for testing with various NN models
faster execution of NNAPI results in less execution time and
in turn, less total power consumed.

Bug: 183576817
Test: adb push'd rc file to a device
      `cat /dev/cpuctl/nnapi-hal/cpu.uclamp.min` == 15.00
      ran MLPerf, got better scores

Change-Id: I398c3741fc46958f95a9b608a27b52da47c69597
2021-04-27 01:22:33 +00:00
Jenny Ho
9e468ac2f7 init.gs101.rc: add adaptive charge node permission
Bug: 185751788
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I9173d9e5ce00f6d5df1e4fe1ef20e7c073e90e19
2021-04-21 05:47:40 +00:00
Wenhao Wang
30ddea9d11 Add restorecon for new label (persist_ss_file)
We create a new label for /mnt/vendor/persist/ss.
So add restorecon for the label.

Bug: 173971240
Bug: 173032298
Test: Trusty storage tests
Change-Id: I98267ba6c4472c2c0ae186b576ffc18de86e0378
2021-04-20 17:20:49 +00:00
Stephane Lee
a6926e9abb Fix ODPM dynamic rail config via file by allowing writes to enabled_rails
Test: Ensure that power stats no longer reports an config error on boot
Bug: 185423551
Change-Id: I5315e31a54b8cbc40fc0f4f361e5b3b81a29ceb8
2021-04-16 14:46:10 +00:00
Max Shi
fc630f27e0 Configure permission for AOC reset sysfs node.
Bug: 184858369
Test: Verify system process can write to the node.
Change-Id: Ibe4fb8e773995d8f4ba0e68b71c127ae2bc4ddc0
2021-04-16 00:49:48 +00:00
Benjamin Schwartz
3cc937165b powerstats: Add GPS state residency
Bug: 181577366
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I0fa4356542a838618e712e9b0abbf02b99db7f3a
2021-04-15 05:08:16 +00:00
chenpaul
589e1d8d89 wifi - Give execute permission to data/vendor/wifi for pixelLogger
In hostapd, there have hostapd.android.rc and make /data/vendor/wifi
with permission 770 when the device boots up.

It will overwrite the permission from slider specific rc,
which makes this folder without "+x" permission.

In order to make Pixel Logger can write config files in this folder.
This change will make sure "/data/vendor/wifi" have +x permission

Bug: 159650456
Test: wifi is workable
      data/vendor/wifi with 771 permission
Change-Id: I5b396fc41a4eddefc04d43f8e3d276787d722726
2021-04-13 11:54:19 +00:00
Jenny Ho
fa30b5b9ff init.gs101.rc: set system ownership for P7 maxfg
Bug: 184780667
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ic1df561438aa197459f7b1bbd72bd1d905c156c8
2021-04-12 04:05:09 +00:00
Craig Dooley
2762231fdf Add the aoc persist folder
Bug: 184173298
Change-Id: Ia66797e2220ef4ba728b2eb21e123b36566adf1c
2021-04-08 17:27:55 +00:00
Adam Shih
561ff7a341 remove obsolete mobicore operations
Bug: 183935443
Test: boot to home with no related avc error
Change-Id: I808d08d7e5479bdd643caa8269a68a8691796986
2021-04-07 00:48:10 +00:00
Wei Wang
aeaf942d49 Set uclamp nodes to root
Test: boot
Bug: 183626384
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Idebf93e6354810d19c40d5b6d364ed073a564a77
2021-04-02 21:23:53 +00:00
SalmaxChang
f2eb39f4d6 init: restorecon efs partitions before chown
For the 1st boot with efs erased, we need to relabel efs first to chown
for rfsd and cbd to access.

Bug: 184221482
Test: Check rfsd and cbd could access efs w/wo erasing.

Change-Id: Ib186cf5c9375ebef177081a612d5486c35fc20f4
2021-04-02 01:13:30 +00:00
Daeho Jeong
e966b2a635 init.rc: change the ownership of compression sysfs nodes
Changed the ownership of compression sysfs nodes for Pixelstats to reset
these values after reading them.

Test: check the ownership of /dev/sys/fs/by-name/userdata/compr_*
Bug: 173399386
Bug: 170789472
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: I25bd80fb4b3db855de3c536084cf4b3c14bc8d74
2021-03-24 03:57:45 +00:00
SalmaxChang
080d173c55 init: Remove duplicated folders creation
The fstab will auto create folder as mount.

Bug: 176528556
Change-Id: I78ef08e0b904b4e58541a92775c9918f2538fa77
2021-03-24 03:48:55 +00:00
Stephane Lee
33a1ce7421 Add UeventListener to pixelstats in gs101
Bug: 171793497
Test: Ensure that uevent listener reports data to statsd
Change-Id: I9e90f8483298934a78320f37dbf5eb1ac38e8f97
2021-03-23 17:23:03 +00:00
linpeter
d95bbb9740 init: set dimming_on node permission before start hwcompower
Give dimming_on node sutiable permission to allow
hwcomposer to set dimming_on to display driver.

Bug: 177141990
test: check file node permission
Change-Id: I1f78b77884d619f1e48a63ac11c4201089010a0d
2021-03-23 05:55:01 +00:00
Aaron Tsai
815ce12ad5 Remove unused rmnet and data properties for fixing avc denial error
Bug: 181924792
Test: verified with the forrest ROM and error log gone

Change-Id: Ia8eae9e2c347d79d3c37a894a1919e8f443630f7
2021-03-17 10:18:28 +00:00
TreeHugger Robot
aa58caf942 Merge "init.gs101.rc: add chmod 0771 to camera calibration folder" into sc-dev 2021-03-17 10:10:52 +00:00
Jenny Ho
60dca5dc0a Merge "init.gs101.rc: set system ownership for eeprom" into sc-dev 2021-03-17 08:07:45 +00:00
LABIB MD RASHID
9c47b4ff37 Merge "Sysfs node permission for modem" into sc-dev 2021-03-17 03:02:36 +00:00
Tai Kuo
b6b9bdaa0f gs101: set touch_offload device file permission
Bug: 173331163
Bug: 174189640
Bug: 174191163
Test: twoshay_touchflow + heatmap reflector APK works.
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: I02c3cf9fd4cd946e603f5cc5f614fa744660d0bc
2021-03-16 14:45:18 +08:00
chened
b6ac2a4088 init.gs101.rc: add chmod 0771 to camera calibration folder
We found the '-X' of chmod may not work properly.
Add chmod 0771 command to make sure the camera calibration folders have
right permission.
impact folders:
1. /mnt/vendor/persist/camera
2. /mnt/vendor/persist/camera/OTP_calibration
3. /mnt/vendor/persist/camera/pdaf_calibration_data
4. /mnt/vendor/persist/camera/rear

Test: build pass, gca
Bug: 181520309
Change-Id: Ib43b457764d0a700cd6fe413f07731621fa6753c
2021-03-15 13:57:25 +08:00
Tai Kuo
23ac737b41 gs101: support touch sensitivity mode switching
Route a debug system property to a persist system property to control
the touch driver attribute file glove_mode.

0: default sensitivity mode (default)
1: high sensitivity mode

Bug: 173330977
Bug: 174189638
Bug: 174191024
Test: manual test
Signed-off-by: Tai Kuo <taikuo@google.com>
Change-Id: Ia54ea2b84340c34943809373b87c31604d2ae478
2021-03-12 16:38:23 +08:00
Jenny Ho
e852f75d49 init.gs101.rc: set system ownership for eeprom
Bug: 182531832
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I09e8e4f8ae9c8fbeea161c1b46f53a2b5996db35
2021-03-12 13:58:36 +08:00
Daeho Jeong
f02d0822ee bfq: turn off slice_idle during booting
Turned off slice_idling during booting to increase total throughput
for faster boot time.

Test: cat /sys/block/sda/queue/iosched/slice_idle
Bug: 171739280
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Change-Id: Id6bb4af2582f40557afaa69c72fdf20d036da4cd
2021-03-11 22:37:55 +09:00
Eddie Tashjian
30a9866b34 Set selinux label for modem partition mount
Bug: 178980032
Test: Check selinux denials
Change-Id: I4f31f7c0017b5b8268e2889a9dd5809e74d7e538
2021-03-11 10:16:05 +00:00
labib
8f28e8ff01 Sysfs node permission for modem
- write display MIPI frequency

Bug: 171729515
Change-Id: I0e2a6b22d9a77ae224660b64e0ff74b693c15dfd
2021-03-11 17:21:55 +08:00
TreeHugger Robot
6c30423a50 Merge "Don't create /data/camera on init." into sc-dev 2021-03-11 05:59:37 +00:00
TreeHugger Robot
cc1bc811ac Merge "display: set atc node permission" into sc-dev 2021-03-11 04:15:29 +00:00
Krzysztof Kosiński
a99bd1eecf Don't create /data/camera on init.
This path cannot be used by camera HAL because it would be a
Treble violation.

Bug: 181300165
Test: build, boot, camera preview on a gs101 device
Change-Id: I90f81b5c50e61c501c5f509814368189562a4256
2021-03-10 17:48:38 -08:00
SalmaxChang
31ab19d5e7 init: Remove unused log path
The path "/data/log/abox" violates Android treble rule. Pixel uses
google audio HAL but not vendor one. Remove the path.

Bug: 177186257
Change-Id: Ie53be71f31e0d673592457b88304136d4d616780
2021-03-10 06:41:31 +00:00
linpeter
728cda9ade display: set atc node permission
Give atc nodes sutiable permission to allow hwcomposer to set
atc config to display driver.

Bug: 168848203
test: check file node permission
Change-Id: I6b1b90d0951aa844d19bd68b9020e501d0e359de
2021-03-08 14:31:35 +08:00
Robin Peng
c2b5ca99e3 Move slider into gs101 and <device>
from: 026342771c6642980cb4653b1ec4d857a5d8be54

Bug: 167996145
Change-Id: I2ebf7f019afed1cbe9b60dcd82581bd3a52fe109
2021-03-06 16:31:12 +08:00