Commit Graph

38 Commits

Author SHA1 Message Date
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
Patrick Tjin
1b7c5dd537 wahoo: rename laser node to wahoo_laser
Test: check that permission is correctly applied
Change-Id: I8bed24ca1a2279d984e94c88f6210f02eaa4a106
2017-03-20 22:52:36 -07:00
Shawn Yang
ca7f6512a6 Merge "Set device spefific logging.rc file" 2017-03-20 16:28:55 +00:00
Shawn Yang
2dee01248f Set device spefific logging.rc file
Bug: 35647551

Test: Build on target hardware
Change-Id: I8a1d119f3cedab5f3bf2f2067680721cb2d49702
2017-03-17 23:12:20 +00:00
TreeHugger Robot
fc502754f1 Merge "Add cpusets initial configuration" 2017-03-17 20:42:50 +00:00
Andres Oportus
f5185dbdbd Add cpusets initial configuration
Bug: 36367381
Test: Boot
Change-Id: Ieffce3e87662e88e828bd259d336c0af11c48586
Signed-off-by: Andres Oportus <andresoportus@google.com>
2017-03-17 08:51:28 -07:00
Shawn Yang
70caec45b2 Merge "dumpstate clean up" 2017-03-15 21:46:18 +00:00
Shawn Yang
136ac6be8d dumpstate clean up
Change-Id: I9983b3ddcca6c6ee954620aefe1358ba1a540b2e
2017-03-14 16:58:38 -07:00
Ruchi Kandoi
e5bf808287 Add nfc conf files and policy files
Test: Read Nfc tag
Change-Id: Ifd6e5d26184dc36387be3092d8dac87994d7dcda
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2017-03-14 16:44:37 -07:00
Yueyao Zhu
a18de9021d Enable charger mode
1) device.mk: add charger_res_images to PRODUCT_PACKAGES
to use the default charger mode images
2) init.hardware.rc: configure charger service class
3) BoardConfig.mk: enable suspend in charger mode

Bug: 36046603
Change-Id: I3652a69784b8ecd4e670f26fdd66b7c68d578f9f
Signed-off-by: Yueyao Zhu <yueyao@google.com>
2017-03-14 16:44:37 -07:00
Vineeta Srivastava
409a5d3943 Remove unnecessary cache mount
Cache is not used on the device using AB update. In that case, init just
waits
for timeout 5s.

[   18.904216] init: Command 'mount_all fstab.${ro.hardware}' action=fs
(/init.taimen.rc:33) returned 1 took 767.808ms.
[   23.911072] init: Command 'wait /dev/block/bootdevice/by-name/cache'
action=fs (/init.taimen.rc:40) returned -1 took 5006.36ms.

Test: Build and tested on a device
Change-Id: Iaee76961c98b7b7873e532a7003d560ebf6c4752
2017-03-13 15:04:49 -07:00
Shawn Yang
de4541524a IMS config
Change-Id: Ic8587247eb105b2f479c124f9f01a7812b22cc3d
2017-03-10 01:00:18 -08:00
Thierry Strudel
4e18dc435b Import common file from device specific directory
Test: boot, basic functionality
Change-Id: I9c07718b481730c3388f99c5e1eff17c9fd75a7b
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-04 23:34:45 -08:00