Commit Graph

77 Commits

Author SHA1 Message Date
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
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
Joel Fernandes
2d3fe995f5 Merge "init: Reserve CPUs for top-app correctly in EAS 1.2" 2017-04-15 02:51:53 +00:00
Roopesh Rajashekharaiah Nataraja
4505392eca ims: Uce Enabling Uce-HIDL-Service on init
Bug: 37262741
Test: Check capability in contacts for VT calling

Change-Id: If2ecb3280368c7ff7bf5d32937efd26a06b6ef24
2017-04-14 17:58:55 -07:00
Wei Wang
619eea54f9 init.hardware.rc: disable retention
Retention is leading to increased rendering time, and has not been
measured to provide any power benefit. This Cl is to remove that.

Bug: 37287554
Test: muskie boot and check retention disabled after boot
Change-Id: Id6162070220b792958dce91758660c0d2aed0195
2017-04-14 11:47:52 -07:00
Wei Wang
199b10e908 init.hardware.rc: remove cpuset
init.rc already set cpuset to all core during boot

Bug: 36576280
Test: marlin boot fast and checked cpuset during early boot
Change-Id: Ib91275361c8f8a1744f99b2da0b2f1769f31072c
2017-04-13 19:34:34 -07:00
Wei Wang
c522a2c012 init.hardware.rc: remove start servicemanager
servicemanager is now started in common init

Bug: 37306311
Test: muskie boot
Change-Id: I277a9c2fff67eafe483f7a0fd4a3e90d8e4a695a
2017-04-13 14:28:46 -07:00
Joel Fernandes
6f8a846e2a init: Reserve CPUs for top-app correctly in EAS 1.2
EAS v1.2 uses different search ordering in the wakeup-path.  Now cores 4
and 5 will be searched first for top-app, update the cpusets accordingly:

Littles   Bigs
0 1 2 3   4 5 6 7
T T T T   T T T T  (top-app)
F F F F       F F  (foreground)
S S S S            (system background)
B B                (background)

Bug: 36367381

Change-Id: I7f70493ff45779d1c17f19465bf3eeeb8905e05b
Signed-off-by: Joel Fernandes <joelaf@google.com>
2017-04-13 02:03:46 -07:00
Ecco Park
7249685ee4 Fix sepolicy issue for cnss-daemon
[   16.582894] type=1400 audit(1492027059.612:107): avc: denied {
net_admin } for pid=842 comm="cnss-daemon" capability=12
scontext=u:r:wcnss_service:s0 tcontext=u:r:wcnss_service:s0
tclass=capability permissive=1
[   16.655912] type=1400 audit(1492027059.612:107): avc: denied {
net_admin } for pid=842 comm="cnss-daemon" capability=12
scontext=u:r:wcnss_service:s0 tcontext=u:r:wcnss_service:s0
tclass=capability permissive=1

Bug: 37280481

Change-Id: I5b76247df26bf4ae1f17df1dbd6bc09eb6a743d6
Signed-off-by: Ecco Park <eccopark@google.com>
2017-04-12 14:05:31 -07:00
Ecco Park
687c471c17 Merge changes Ice91de09,I0d05425d
* changes:
  Pixel logger: fixed sepolicy issue for cnss_diag
  Enable local_buffer mode of cnss_diag
2017-04-12 17:34:44 +00:00
Shawn Yang
25eaf09f91 Enable port-bridge by default
Bug: 36580490

Test: Verify the port-bridge service is running by default
Change-Id: I5a5f4371f9a46b50d48b8a39299b4f9d9924ff8f
2017-04-11 23:23:19 +00:00