Commit Graph

62 Commits

Author SHA1 Message Date
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
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
Ecco Park
9570fb16c7 Enable local_buffer mode of cnss_diag
Bug: 32248316

Change-Id: I0d05425d234d397a3c1fb1c65ba741259d5fb407
Signed-off-by: Ecco Park <eccopark@google.com>
2017-04-11 15:54:14 -07:00
Jie Song
33e42325ff Move logging folder from data to data/vendor
diag_logs
cnss_diag
ramdump

Bug: 36734870
Test: Capture logs and check no SELinux denial
Change-Id: Iff035c2074d54a454ddd1b9e3c025ddbcf7ae40d
2017-04-10 17:25:14 -07:00
John Dias
ce2a1baf2a thermal: specify location to load thermal config
Bug: 35700896
Test: boot, check for thermal-engine messages
Change-Id: I48c296f2751b8a5150dd7d37f89f29a688a6f949
2017-04-06 13:45:21 -07:00
TreeHugger Robot
4de588158d Merge "wahoo: Create PDX socket dirs and cpusets for VR services" 2017-04-05 21:27:01 +00:00
Alex Vakulenko
4633df33ed wahoo: Create PDX socket dirs and cpusets for VR services
Recent CL make VR services hard-fail (crash) on failed attempt to
create PDX sockets. Wahoo-based devices don't have socket directories
under /dev/socket/pdx/... to create those sockets, so they now crash
at boot (which includes surfaceflinger). This prevents the device from
even booting. Add init script to create those socket directories.

Also, create necessary cpusets used by VR services, similar to what
was done for marlin/sailfish (see this commit in device/google/marlin:
1cc612c4ee646e8fc6ae69e8837b9b0d0b2119ce).

Bug: 36977281
Test: `lunch walleye-eng && m -j32 && flash` - build succeeds, device boots
Change-Id: Ic458ceabb16917bcf574f6d8e2de864d41a44d96
2017-04-05 14:23:04 -07:00
David Lin
971ea5d074 vibrator hal: add support for drv2624 haptics driver on wahoo
This adds the vibrator HAL that implements the new setAmplitude and
perform(Effect) API.

Test done: vibrator_hidl_hal_test
Bug: 36782452

Change-Id: If9988434277790becb469d4dd928e75f7e6af41a
Signed-off-by: David Lin <dtwlin@google.com>
2017-04-05 12:44:20 -07:00
Wei Wang
e0fc600245 wahoo: improve boot time and pull in bootanim display time
1) separate fstab mount
2) launch bootanim early
3) boottime cpuset/io tune
4) parallel slow init operations: write sysfs and insmod

After CL:
Boot time saved 330ms, bootanim triggered early before data/ mounted

Bug: 36780513
Test: walleye boots
Change-Id: I02803179746710413f4b1e2372f3550cd95d1581
2017-04-04 19:11:21 -07:00
matt_huang
2f747de0cd Change permissions of led driver
Change-Id: Ia9a8dd8d401d274a37820bdb30727eec8b1f54b3
Signed-off-by: matt_huang <matt_huang@htc.com>
2017-04-03 10:00:43 -07:00
TreeHugger Robot
9614e64032 Merge "Start CHRE daemon on boot" 2017-04-01 01:41:26 +00:00
TreeHugger Robot
dab7846483 Merge "Add support for folio cases" 2017-03-31 23:40:38 +00:00
Andrew Lehmer
99cbc8d596 Add support for folio cases
Bug: 35243564
Test: Used magnet to wake and lock device. Also tested during suspend.
Change-Id: I4b819e12cc23a3d7a8ce048e208c15eac4f8d6c5
2017-03-31 13:08:45 -07:00
Brian Duddie
f2f151eebe Start CHRE daemon on boot
Test: flash build, confirm CHRE daemon starts, SLPI does not crash, no
      SELinux denials, and context hub HAL connects to it and works
      normally
Change-Id: I7af26548ed6e5b0544db621468a8cb8839f878ed
2017-03-31 13:07:50 -07:00
Ruchi Kandoi
da8f1b44eb nfc: sepolicy: creates data/vendor/nfc/ for HAL specific data
Test: NFC powers up without any denials
Bug: 36686703
Change-Id: Ib33a0042c5d03d2b9ee8a02dac143da9c8c216a9
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2017-03-31 12:02:03 -07:00
Thierry Strudel
d5dfd2260c init.hardware.rc: move out non common part
Change-Id: If2a580c53da0554748c22afded341c3ea98c6288
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-27 23:07:24 +00:00
Andres Oportus
cb3ed63677 Add SchedTune configuration
Bug: 36367381
Test: Boot and check stune configuration effect on sysfs

Change-Id: I838c31d164684a5d88550c92284b65bb50f2ed56
Signed-off-by: Andres Oportus <andresoportus@google.com>
2017-03-24 17:46:33 -07:00