Bug: 62837579
Test: place test files in /persist/elabel, check that they are copied to /data/misc/elabel on boot
Change-Id: Id29e7c7c01ed54bf4d2f488cfa6dba51046bc5bf
Merged-In: Id29e7c7c01ed54bf4d2f488cfa6dba51046bc5bf
Also cleanup sepolicy files that was using /data/vendor as they are not
needed and /data is not ready by the time we start time_daemon
Bug: 62184939
Test: walleye boot with correct time in airplane mode
Change-Id: Ic7b025a8c795092a1dd4b1ab1d7497d1440c0a4b
The DVR cpusets was not updated for Wahoo. Update it based on the
configuration from Polaris device.
Bug: 37752074
Test: Flashed and tested a Taimen to observe that the changes are in
place -
$ adb shell cat /dev/cpuset/application/performance/effective_cpus
4-5
Change-Id: I47158ac2e75bbb713a651fd36927031b72296277
Signed-off-by: Karthik Ravi Shankar <karthikrs@google.com>
This folder is used for storing QC slang scripts, which are not used on
this device.
Bug: 38425697
Test: load, sanity check sensors
Change-Id: Ie40e356c57e98355117833df05f59e26c4754e74
Add an entry to init.hardware.rc to create /data/vendor/sensors at
startup, and sepolicy entries that allow the sensors daemon to create
files in that directory. These will be used to persist runtime
calibration across reboot, but not across factory reset.
denied { getattr } for pid=14080 comm="sensors.qcom"
path="/data/vendor/sensors/cal.txt" dev="sda45" ino=2179116
scontext=u:r:sensors:s0 tcontext=u:object_r:system_data_file:s0
tclass=file permissive=1
denied { write } for pid=14113 comm="sensors.qcom" name="vendor"
dev="sda45" ino=2179073 scontext=u:r:sensors:s0
tcontext=u:object_r:system_data_file:s0 tclass=dir permissive=1
denied { add_name } for pid=14113 comm="sensors.qcom" name="sensors"
scontext=u:r:sensors:s0 tcontext=u:object_r:system_data_file:s0
tclass=dir permissive=1
denied { create } for pid=14113 comm="sensors.qcom" name="sensors"
scontext=u:r:sensors:s0 tcontext=u:object_r:system_data_file:s0
tclass=dir permissive=1
denied { create } for pid=14113 comm="sensors.qcom" name="cal.bin"
scontext=u:r:sensors:s0 tcontext=u:object_r:system_data_file:s0
tclass=file permissive=1
denied { write open } for pid=14113 comm="sensors.qcom"
path="/data/vendor/sensors/cal.bin" dev="sda45" ino=2179115
scontext=u:r:sensors:s0 tcontext=u:object_r:system_data_file:s0
tclass=file permissive=1
denied { read } for pid=14113 comm="sensors.qcom"
path="/data/vendor/sensors/cal.txt" dev="sda45" ino=2179116
scontext=u:r:sensors:s0 tcontext=u:object_r:system_data_file:s0
tclass=file permissive=1
denied { getattr } for pid=14113 comm="sensors.qcom"
path="/data/vendor/sensors/cal.txt" dev="sda45" ino=2179116
scontext=u:r:sensors:s0 tcontext=u:object_r:system_data_file:s0
tclass=file permissive=1
Bug: 38425697
Test: confirm folder is created on boot, and calibration files are
created, updated, and read successfully by sensors daemon
Change-Id: Ie23cafe4f43b3335e07cf0d13dde0c5d06b69f80
Enforce correct system as UID/GID on tftp-server used files
Bug: 62544362
Change-Id: I92a346576c4e0af2187317281acc7e53599787eb
Signed-off-by: Thierry Strudel <tstrudel@google.com>
We see subsystem restarts happens during shutdown, this leads to
unnecessary FW loading and sometimes kernel panic.
This CL is to stop ssr_setup when framework sets
"sys.shutdown.requested" to avoid subsystem restart.
Bug: 38203024
Test: Walleye shutdown/reboot
Change-Id: I379504029f0a988a072a5ea6b8b29baa2721112b
We moved time_daemon without setting its required permission. This CL is
to fix that.
Bug: 62184939
Test: walleye boots
Change-Id: I5e485a4e8a7c3eadde8d9a111c9e1bc33eee3f67
Devices with an existing /persist/rfs directory need all the subdirs
permissions fixed up to avoid an selinux denial. On new devices
this will already be fixed.
avc: denied { dac_override } scontext=u:r:rfs_access:s0
tcontext=u:r:rfs_access:s0 tclass=capability permissive=0
avc: denied { dac_read_search } scontext=u:r:rfs_access:s0
tcontext=u:r:rfs_access:s0 tclass=capability permissive=0
Bug: 38214174
Test: Device boots with no selinux denials for rfs_access
Change-Id: I4be2c578eecca4f199a0773cfded589f09eb0bd4
CHRE depends on calibration data which is in persist partition.
This reverts commit 69b03ecd63.
Bug: 63066826
Change-Id: Ic7cf3daa227091c211902a945cd5fc4f7f11c814
This help to save ~50ms in boot time and bootanim shown time
Bug: 62957152
Test: Taimen boot and swap look normal after boot
Change-Id: Idda2cc2aafca2f98f3c1faf4d1a08c7ae3203483
CHRE init takes time and cause SystemServer/ContextHubService stuck.
Start it earlier to avoid the delay.
Test: rebooted and verified that CHRE starts without error
Bug: 62667292
Change-Id: I555dab7a467b50e51372991e203131bf1ce6b365
avc: denied { dac_override } scontext=u:r:rfs_access:s0
econtext=u:r:rfs_access:s0 tclass=capability
Bug: 62074287
Bug: 38214174
Test: build and boot device. No denials in the logs related to
/persist/rfs or /persist/hlos_rfs. All files have correct label.
Change-Id: Ic63d1684af2d2b3a1ea75a3aacf2ab2a5ebe36a2
Allows earlier interaction lock release by polling on display updates to
stop happening (becomes idle) for a programmable amount of time.
Bug: 62110101
Test: Ran UiBench, didn't see regressions
susbset of tests - avg-jank:
testInflatingListViewFling: 0.09
testTrivialListViewFling: 0.15
Change-Id: I83c0fc75a3d7ca5bf76910ebbaeddb69343a7ee2
Use /data/vendor partition to hold vendor radio data.
Modify radio related init rc and scripts.
Test: Basic telephony sanity with radio enforce mode
Bug: 36736902
Bug: 36717606
Bug: 62871452
Change-Id: I6518e276f68d405151b1b124de6a0ca1b759d951
- Use /data/vendor/time instead of /data/time
- Use /persist/time instead of /persist
- Allow vendor to vendor socket communication
Bug: 62184939
Bug: 62256376
Change-Id: Ia1c27cf3dfa393abcbf860249da8e7669c359ad9
This patch removes the /persist partition mount since it's been moved to
early-mount.
Bug: 62683712
Test: boot & audio sanity test
Change-Id: Ifff57f23db3aa221885331eaccc532d753e7e730
Signed-off-by: David Lin <dtwlin@google.com>
Zygote reads the system time and caches the timezone information.
So start time_daemon early so that it can set the time before
zygote starts up and reads the time.
Bug: 62473512
Test: Manual: Check adb logs to ensure Zygote starts after system
time is set.
Change-Id: I98fca37928e1822614f9fcb39869e664453a2c3e
add ipacm/offload related definitions to init and sepolicies
CP from Partner.
Bug: 34361337
Test: manual
Change-Id: I7264a500b4c0db82dad4d8b6c3768787693106f9
* Saves display debugfs data in /data/vendor/display
* Update the dumpstate xlog to print the saved data
Bug: 38496103
Change-Id: Ibc3bd97657b9faa74894ad50b01f373403871c94
Author: Naseer Ahmed <naseer@codeaurora.org>
Date: Tue May 30 17:51:24 2017 -0400
Runtime files and sockets used by location modules
are moved to vendor partiion from /data/misc/location
to /data/vendor/location
And additional SE policy
CRs-fixed: 2046657
Bug: 38137902
Test: Build, boot, GPS works, XTRA works, no new avc denials
Change-Id: If56a053ff3c478473c08aeef079d119b5b8847d7
It should be world mode for global SKU.
Bug: 38429299
Change-Id: I503a5a004c7ba455bbb4d3239f22d6b17b96aa37
Signed-off-by: Ecco Park <eccopark@google.com>
This patch adds the support of loading a calibration file and write it
back to the drv2624 kernel driver. The calibration file contains the
BEMF, GAIN and COMP numbers generated using the auto-calibration feature
of the drv2624 driver IC. The file also contains the per-device resonant
frequency number.
Test: calibrate the device and read back the values from kernel
Change-Id: Ieafe5b317c7544bd8d657168250fb41e2ee0d8fc
Signed-off-by: David Lin <dtwlin@google.com>