Commit Graph

86 Commits

Author SHA1 Message Date
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
David Lin
0f959efa6c vibrator: add calibration data loading support
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>
2017-05-22 16:36:47 +00:00
TreeHugger Robot
c4f618ff35 Merge "Move sec_config to vendor" 2017-05-22 03:51:21 +00:00
Max Bires
fd351dd0e2 Fixing a dac_override for perfd
Bug: 38182328
Bug: 34784662
Test: perfd no longer requests dac_override privileges
Change-Id: Idc6f2ff2c476327bb4a261b20413e688562ce049
2017-05-20 14:56:11 -07:00
Thierry Strudel
970e5b7dce Merge "Ensure usb related .rc is parsed in a defined order" 2017-05-19 20:01:27 +00:00
Yueyao Zhu
9c902b351f Ensure usb related .rc is parsed in a defined order
Loading process:
- rootdir/init.rc
    |- /vendor/etc/init/hw/init.${ro.hardware}.rc
        |- /vendor/etc/init/hw/init.${ro.hardware}.usb.rc
            |- /vendor/etc/init/hw/init.wahoo.usb.rc

This CL moves init.hardware.rc, init.wahoo.usb.rc to /vendor/
etc/init/hw/, and import /vendor/etc/init/hw/init.${ro.hardware}
.usb.rc from init.hardware.rc.

Test: Build with related CLs and USB File Transfer works
Bug: 38301110
Change-Id: I4808a117994374bceac324c60cc47225a8df5970
Signed-off-by: Yueyao Zhu <yueyao@google.com>
2017-05-19 12:01:14 -07:00
Joel Fernandes
8fa14d1102 init: Change default governor to schedutil and set ratelimits
Use rate-limit values: 500us for up, 20ms for down.

Change-Id: Ifc3ebb8e63078ab402080b50b800b6fffb326f97
Signed-off-by: Joel Fernandes <joelaf@google.com>
2017-05-19 18:26:01 +00:00
SzuWei Lin
b4e345f78c Move sec_config to vendor
Bug: 37927875
Test: check the files in folder /vendor/etc
Change-Id: I7cd478315961e00f88c99cae309d51ca7b1daeb7
2017-05-19 15:54:28 +08:00
Jaesoo Lee
da9eee4c13 Merge "configstore: applied uprev of configstore (1.0 -> 1.1)" 2017-05-18 13:05:41 +00:00
Wei Wang
88f424e979 wahoo: tune zram performance
-Switch to LZ4 for better overall performance
-Set max_comp_streams to num of cores since upstream also moves this to
percpu.
-Set page-cluster to 0 as the incremental cost of reading 1 page at a
time is negligible for zram

Bug: 38249616
Test: boot and run zram-perf showing better performance
Change-Id: I0b92b246d773db85aa03d033b2cecee54347cbd1
2017-05-17 16:19:32 -07:00
Jaesoo Lee
aee1b828f7 configstore: applied uprev of configstore (1.0 -> 1.1)
This change applies uprev of configstore to init.hardware.rc and
manifest.xml

Bug: 37727469
Test: Built and tested on sailfish
Change-Id: I64930ca7dfceb66a1cf7a52b43fd378810ff8dad
2017-05-17 15:33:25 +09:00
SzuWei Lin
1956321915 Move etc/wifi/* to vendor for build split
Bug: 37927875
Test: check these files in folder vendor/etc/wifi
Test: check wifi trun on/off
Change-Id: I6765befe6333aa7c15d91a2086e4eb96aee7071e
2017-05-15 17:12:15 +08:00
Isaac Chen
b635787205 Move configuration files to vendor for build split
The following configuration files need to reside in vendor
partition to work with generic AOSP system image.

Move uevent.*.rc to /vendor
Move fstab.* to /vendor/etc
Move init.*.rc and init.wahoo.usb.rc to /vendor/etc/init.

Also the following two make file variables need to be set:
  - BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
  - PRODUCT_ENFORCE_RRO_TARGETS := framework-res

Change path (to /vendor/bin) for init.*.sh, and add
path (to /vendor/etc) for fstab.* in init.hardware.rc.

Bug: 37927875
Test: These files are under /vendor instead of / or /system,
paths (in rc files) are changed to vendor accordingly,
and the resulted system/vendor images work on the device.

Change-Id: I64c8a899ab1c6837d51853e289160e35910b5b9a
2017-05-12 11:16:45 +08:00
Thierry Strudel
a36f7d963e Merge changes from topic 'fstab-wahoo'
* changes:
  fstab.hardware: disable metadata encryption
  move fstab and BOARD_AVB_ENABLE to wahoo
2017-05-09 22:02:53 +00:00
Thierry Strudel
36d09bf13f move fstab and BOARD_AVB_ENABLE to wahoo
Change-Id: I057403bb22241cc756f714019f4c2d2efeb4cd3e
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-05-09 12:20:01 -07:00
Wei Wang
42fd4ba288 whaoo: enable low persist_mode for VR
Access to /sys/class/graphics/fb0/msm_fb_persist_mode is needed for light HAL.

Bug: 36660424
Test: display is going into low persistence mode in daydream
Change-Id: Ie54120ee70b2b3e4acb4d9d5f1ec1c0d75d93a81
2017-05-09 16:14:08 +00:00
Chia-Kai Liang
1461f0e029 Create debug folder for camera.
Bug: 38048356
Test: Build/run locally.

Change-Id: Ic89464492e54f91925fabebeaf3458c259e9d957
2017-05-08 14:22:55 -07:00
Max Bires
c7e3c64341 Merge "Fixing folio_daemon's dac_override request." 2017-05-08 18:10:02 +00:00
Max Bires
ee5998fbad Fixing folio_daemon's dac_override request.
Moving folio_daemon out of group/user of root and into group/user of
system to fix the dac_override selinux denial it was generating when
trying to access /dev/uinput

Bug: 38031432
Test: The phone boots and folio daemon encounters no denials
Change-Id: I48feab07eeffc90b73fabce46394c53a2278e5ca
2017-05-08 08:41:43 -07:00
Thierry Strudel
fad17c05c2 Merge "init: move some of the permission settings to early-boot" 2017-05-06 02:41:47 +00:00
David Lin
515ec3f053 init: move some of the permission settings to early-boot
Permission settings that are required by HAL services need to be moved
to early-boot to avoid race.

Bug: 38043660
Bug: 36571736
Change-Id: I1397816a162e8ef4ed557e6eea3539201dc57e3b
Signed-off-by: David Lin <dtwlin@google.com>
2017-05-05 17:01:13 -07:00
Paul Lawrence
ee620e7882 Enable metadata encryption
Bug: 26778031
Test: Boots, reboots, sector 0 of userdata encrypted
Change-Id: I741f177056e1493fa5bf3e37353ca177e91d6b54
2017-05-02 08:18:49 -07:00
Daniel Nicoara
2fc983c8e0 Remove vr_wm from late-fs startup
surfaceflinger no longer depends on vr_wm starting early, so remove it
from here.

Bug: 36051907
Test: Compiled
Change-Id: I12e5d32a7a4525da67b06d59d239cdd0948f7ec7
2017-04-28 15:40:53 -04:00
Bowgo Tsai
3357f4242c wahoo: enable verity_update_state
Bug: 36900078
Test: boot device, checks property [partition.system.verified] exists.

Change-Id: I5c719c4e191e80e80ec9d6f00eefe84551bd67c2
2017-04-28 04:20:33 +00:00
Thierry Strudel
134f509da1 init: restart qseecomd once /data is mounted
Bug: 37589340
Change-Id: I76b5e41e1f1636aa00e31e26f2bc3920e579aac1
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-04-27 08:38:40 -07:00
TreeHugger Robot
9652dceb85 Merge "wahoo: enable suspend clock reporting" 2017-04-26 04:38:57 +00:00
Patrick Tjin
dcff546049 wahoo: enable suspend clock reporting
Test: Build
Bug: 37682684
Change-Id: I44623a0e1e7d7d15a6cad82a472f1d5d33908e51
2017-04-25 19:57:35 -07:00
Thierry Strudel
40b2ed1938 init.power: remove duplicate operations
This change disabled ability of msm_thermal driver to hot-plug CPUs

Change-Id: I37b1edb8ee9b5de02d55b595a4a710b513dd07e8
2017-04-26 02:00:43 +00:00
Thierry Strudel
0b19015b63 Merge changes from topic 'avb'
* changes:
  init.hardware.rc: start qseecomd on fs
  manifest.xml: add gatekeeper and keymaster definitions
  Add sepolicies for binderized QCOM KM 3.0 and GK 1.0 HAL
  device: don't use generic GK and KM HALs
  device: add frp prop
2017-04-22 01:34:07 +00:00
Thierry Strudel
7cb682c819 init.hardware.rc: start qseecomd on fs
qseecomd needs /dev/block/bootdevice
vold needs keymaster that needs qseecomd


Change-Id: I2080d711ea9c1427f30a4a457a95fa356b026278
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-04-21 16:37:22 -07:00
Wei Wang
6fc920280b VR hal to choose thermal config
Test: thermal config changed enter/exit VR mode in muskie
Bug: 36514493
Change-Id: I3711f94e667684710afcf812dcb316a9a2ba86ef
2017-04-21 11:21:57 -07:00
Naseer Ahmed
d5c89d423f wahoo: Add support for display calibration data
Bug: 37429752
Change-Id: I580288d081a8e64e80a8f2031c0e9a4eda6e1f51
2017-04-17 14:28:13 -07:00
Wei Wang
fbb24f4a95 Merge "init.hardware.rc: remove cpuset" 2017-04-17 20:03:03 +00:00