Commit Graph

118 Commits

Author SHA1 Message Date
TreeHugger Robot
e9ae784048 Merge "Revert "configstore: applied uprev of configstore"" into oc-dr1-dev 2017-07-12 02:18:15 +00:00
TreeHugger Robot
4dc9960c82 Merge "Fix DVR cpusets for wahoo" into oc-dr1-dev 2017-07-10 19:16:33 +00:00
Sundong Ahn
6f9719e2a4 Revert "configstore: applied uprev of configstore"
This reverts commit aee1b828f7.

Configstore was up-revisioned from 1.0 to 1.1. However no new
APIs were added to 1.1. Therefore configstore in dr1 will be down
revisioned to 1.0.

Bug: 63440035
Test: build & run
Change-Id: I5713c6f38a18b2669eb9514f7f7c84359e736e52
Merged-In: I64930ca7dfceb66a1cf7a52b43fd378810ff8dad
2017-07-10 15:36:42 +09:00
TreeHugger Robot
8014ac1c9a Merge changes from topic 'elabel' into oc-dr1-dev
* changes:
  Add copy from /persist/elabel to /data/misc/elabel
  Add permissions for elabel data access
2017-07-07 15:39:47 +00:00
Patrick Tjin
4402ccfb27 Add copy from /persist/elabel to /data/misc/elabel
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
2017-07-07 03:04:46 +00:00
Keun-young Park
fca9e0cc79 add rmt_storage to "shutdown critical"
- should be kept to write modem data befure shutdown.

bug: 37626581
Test: build only

Change-Id: I8ce1c590a84fb0ad04a93c135c1b1f86bc59a69f
2017-07-06 22:58:41 +00:00
Wei Wang
ac6bf2845b Merge "init.hardware.rc: shutdown ssr_setup early to avoid subsystem restart" into oc-dr1-dev 2017-07-06 22:36:46 +00:00
Sunny Kapdi
f128f5c538 Enable bt wcnss_filter to collect crash dumps
Bug: 37298084
Change-Id: Id67e4faf27ea6d59fdbcc2affcd1f2e6eb2ba3dd
2017-07-01 00:39:26 -07:00
TreeHugger Robot
867145cecc Merge "Don't create /data/misc/sensors" into oc-dr1-dev 2017-07-01 01:13:27 +00:00
Wei Wang
454fc3e786 wahoo: time_daemon: use /persist to store offset to RTC
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
2017-06-30 23:15:48 +00:00
Karthik Ravi Shankar
0a5b6c2310 Fix DVR cpusets for wahoo
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>
2017-06-30 16:02:59 -07:00
Brian Duddie
fba8eebc74 Don't create /data/misc/sensors
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
2017-06-29 16:36:38 -07:00
Brian Duddie
ee8cd6b127 Allow sensors daemon to create vendor data files
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
2017-06-29 16:36:38 -07:00
Thierry Strudel
777768fbf0 init.hardware.rc: enforce system UID/GID on tftp-server files
Enforce correct system as UID/GID on tftp-server used files

Bug: 62544362
Change-Id: I92a346576c4e0af2187317281acc7e53599787eb
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-06-28 21:36:21 -07:00
Wei Wang
778154e379 init.hardware.rc: shutdown ssr_setup early to avoid subsystem restart
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
2017-06-28 13:39:33 -07:00
Thierry Strudel
12fddd67f7 Merge "init.hardware.rc: fix permission for time_daemon" into oc-dr1-dev 2017-06-28 20:17:47 +00:00
Wei Wang
44356709c3 init.hardware.rc: fix permission for time_daemon
We moved time_daemon without setting its required permission. This CL is
to fix that.

Bug: 62184939
Test: walleye boots
Change-Id: I5e485a4e8a7c3eadde8d9a111c9e1bc33eee3f67
2017-06-28 10:41:21 -07:00
TreeHugger Robot
28ec2468b5 Merge "tftp_server: fix directory permissions" into oc-dr1-dev 2017-06-27 22:46:33 +00:00
TreeHugger Robot
8389d66ad9 Merge "Revert "init.hardware.rc: start CHRE earlier"" into oc-dr1-dev 2017-06-27 21:20:42 +00:00
Jeff Vander Stoep
5e99a317fd tftp_server: fix directory permissions
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
2017-06-27 12:55:29 -07:00
Wei Wang
9a7459bdd0 Revert "init.hardware.rc: start CHRE earlier"
CHRE depends on calibration data which is in persist partition.
This reverts commit 69b03ecd63.

Bug: 63066826
Change-Id: Ic7cf3daa227091c211902a945cd5fc4f7f11c814
2017-06-27 19:15:47 +00:00
Jie Song
cbaa3b6884 Add folder and SELinux rules for subsystem ramdump
1. Move subsystem ramdump to ssrdump
2. Fix denials on sysfs

Bug: 62257616
Test: Modem ramdump in new folder
Change-Id: I5c77ec42a0967140d04b616ede9b02e6272f3442
2017-06-26 21:27:54 -07:00
TreeHugger Robot
a94ca87f01 Merge "init.hardware.rc: enable zram on boot_complete" into oc-dr1-dev 2017-06-24 05:53:39 +00:00
Wei Wang
06b4b0ce13 init.hardware.rc: enable zram on boot_complete
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
2017-06-23 14:48:37 -07:00
Wei Wang
69b03ecd63 init.hardware.rc: start CHRE earlier
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
2017-06-23 12:12:50 -07:00
TreeHugger Robot
30038f8184 Merge "Narrow down tftp_server's access to /persist" into oc-dr1-dev 2017-06-23 00:43:08 +00:00
Jeff Vander Stoep
24c1a1f556 Narrow down tftp_server's access to /persist
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
2017-06-22 12:44:40 -07:00
TreeHugger Robot
d5c6e693b9 Merge "power: remove interaction lock when idle" into oc-dr1-dev 2017-06-22 01:37:42 +00:00
Jayachandran Chinnakkannu
cdab57f6b0 Merge "Use /data/vendor/radio for radio data folder" into oc-dr1-dev 2017-06-21 23:57:02 +00:00
Adrian Salido
668cac2f4c power: remove interaction lock when idle
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
2017-06-21 16:13:24 -07:00
Naina Nalluri
a654a7207b Use /data/vendor/radio for radio data folder
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
2017-06-21 14:14:53 -07:00
Jeff Vander Stoep
d60c59ea43 Move folio_daemon to system in sepolicy
Remove Treble violations.

Bug: 36867326
Bug: 62387246
Test: loaded on taimen, checked dmesg, and tested daemon with magnet
Change-Id: I4662b41206b94cae6ac9843b5dc7e1452003c63c
2017-06-21 11:02:30 -07:00
Roopesh Rajashekharaiah Nataraja
69bdf39fd5 Ensure treble compliance for time-service
- 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
2017-06-19 10:55:43 -07:00
Thierry Strudel
46898311ec init.hardware.rc: keep bootloader brightness at boot
Bug: 37424532
Change-Id: I83e59c2907df317ce375e80e29e75c3c9f414d38
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-06-19 10:55:15 -07:00
TreeHugger Robot
4aa311afe0 Merge "Set system time early to get more accurate timezones" into oc-dr1-dev 2017-06-17 04:19:22 +00:00
David Lin
47b8ccab8b init: remove persist partition mount
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>
2017-06-16 10:10:09 -07:00
Naveen Kalla
2284c8495a Set system time early to get more accurate timezones
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
2017-06-16 01:01:00 +00:00
Pankaj Kanwar
b9bf282710 Merge "move ipacm to vendor and sepolicy definitions" into oc-dr1-dev 2017-06-13 15:58:05 +00:00
Thierry Strudel
d083d94b56 Merge "init.hardware.rc: set ro.boot.hardware.revision as ro.revision" into oc-dr1-dev 2017-06-13 05:27:03 +00:00
Thierry Strudel
fa36ca91a9 init.hardware.rc: set ro.boot.hardware.revision as ro.revision
Bug: 62350763
Change-Id: I224a81e4e364a6a8a73980f7d7bbeebafdb2a6de
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-06-12 22:25:10 -07:00
Niranjan Pendharkar
253cdd58b5 move ipacm to vendor and sepolicy definitions
add ipacm/offload related definitions to init and sepolicies

CP from Partner.

Bug: 34361337
Test: manual
Change-Id: I7264a500b4c0db82dad4d8b6c3768787693106f9
2017-06-13 02:29:24 +00:00
Jayachandran C
7723ec091e Move netmgr logging path to /data/vendor as per treble rules
Netmgr logging path changed from /data/misc to /data/vendor

Test: Verified bugreport collecting netmgr logs

Bug: 62504502
Change-Id: Iba7f585597e30d8dfedae5bb2a73a759aeb0c737
2017-06-13 01:30:42 +00:00
Naseer Ahmed
1b59b229c5 wahoo: Add support for display debug data
* 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
2017-06-07 10:59:14 -07:00
Thierry Strudel
af1273f82a Merge "wifi: set default country code" 2017-06-07 04:53:53 +00:00
Dante Russo
4179f3921c Move location files from /data/ to /data/vendor/
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
2017-06-06 14:46:16 -07:00
Jayachandran C
401c1f30b1 Remove net_raw and net_admin group access for imsdatadaemon
Test: VoLTE/VT and verified no ims denials
Bug: 37652052
Change-Id: Ia552f0a3adf8878f36cf2aec148470e6041164ca
2017-06-05 16:54:16 +00:00
Ecco Park
631a5a35c9 wifi: set default country code
It should be world mode for global SKU.
Bug: 38429299

Change-Id: I503a5a004c7ba455bbb4d3239f22d6b17b96aa37
Signed-off-by: Ecco Park <eccopark@google.com>
2017-06-04 11:55:34 -07:00
Sanjeev Mittal
66d8c4acd4 Enabling VT Sepolicy changes
RTP daemon policy for HIDL

Test: Verified that VT works end to end

Change-Id: I1d911c7678707cd23c2362b97f7dbc5193c8e58d
2017-05-23 15:38:35 -07:00
TreeHugger Robot
e57a86cce7 Merge "vibrator: add calibration data loading support" 2017-05-22 21:27:43 +00:00
Max Bires
c63b6fd359 Merge "Fixing a dac_override for perfd" 2017-05-22 17:19:36 +00:00