Commit Graph

253 Commits

Author SHA1 Message Date
Thierry Strudel
ab8d91f947 dumpstate: dump SRAM & power supply properties
Bug: 74954924
Change-Id: I4e2ba0efaf453d0f713d8859945e61e5f5d9ed8d
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-03-21 10:05:14 -07:00
Andrew Lehmer
5d2db97dd9 folio_daemon: start and stop with other services
If sensorservice goes down while folio_daemon is running, folio_daemon
will gracefully exit and restart. If sensorservice remains down while
folio_daemon is starting, it will eventually crash due to the way the
ASensorManager_getInstanceForPackage() API behaves (i.e., it will exit
with a SIGABRT after five minutes of waiting). We can reduce the
chance of this happening by ensuring folio_daemon is only started when
its dependent services are explicitly started as well.

Note that this cannot guarantee that folio_daemon will *never* crash due
to SIGABRT, since there is no variant of
ASensorManager_getInstanceForPackage() that allows for graceful handling
of the service timeout. Events that negatively affect the availability
of sensors are outside the control of folio_daemon.

Bug: 73555660
Test: loaded on walleye and tested with `stop` and `start` commands
Change-Id: I65e1b72745719f2540bff7cab8e556725486bcad
(cherry picked from commit 9ebb33ed13)
2018-03-19 20:43:54 +00:00
Jaegeuk Kim
d494591123 Remove hibern8 tweak
We disabled auto_hibern8 in kernel, so there's no sysfs entry for that.

Bug: 75004568
Bug: 66697973
Bug: 65535484
Change-Id: Iaa95c60435b74ffb97c103701515e9aa55946a91
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2018-03-17 18:07:19 +00:00
Marissa Wall
0db89e36a7 sepolicy: rename proc.uidcpupower to sys.uidcpupower am: 3f61aa4387 am: a85ffd0f36
am: f4cfd23dba

Change-Id: I1ce106bdb710822059c8029909994d774582e5d7
2018-02-22 23:13:59 +00:00
Marissa Wall
3f61aa4387 sepolicy: rename proc.uidcpupower to sys.uidcpupower
Rename proc.uidcpupower to sys.uidcpupower so system server can
read and set the property

Test: adb shell settings put global sys_uidcpupower 1
      verify via getprop sys.uidcpupower

Change-Id: I6b78e755a444f6dce048f06f053d3002aa060b64
2018-02-20 15:04:42 -08:00
Roshan Pius
c127f046f8 wpa_supplicant(hidl): Add support for starting HAL lazily
Bug: 72394251
Test: Able to start supplicant from framework using
ISupplicant.getService()
Change-Id: I19b8434e7241b9028e7dc86316ec9d5512affcca
2018-02-07 09:52:09 -08:00
Ecco Park
29ee545bed Adding the execute permission for /data/vendor/wifi
ag/3332074 broke the Pixel Logger funtionality for wifi.

The Logger needs the write permission for /data/vendor/wifi/cnss_diag.
so, parent directory needs to set the execute permission for other group.

Test: manual test with Pixel Logger
Bug: 70228425
Change-Id: I75819f0b0bf4ed376d5d87f33af2e1693c864db8
Signed-off-by: Ecco Park <eccopark@google.com>
2018-01-31 23:04:26 +00:00
Marissa Wall
2cdbc03bf1 STOPSHIP: proc.uidcpupower reflector for experiments am: 1437d38b52 am: 33c59636f6
am: 456690f063

Change-Id: I5fab6ed361c6e7bf3a7674565b3eb4d7adb83021
2018-01-25 03:37:23 +00:00
Jeff Vander Stoep
4c05539d6c wpa_supplicant: move control sockets to /data/vendor
Treble compliance.

Bug: 70228425
Bug: 70393317
Test: complete wifi test in b/70393317
Test: Test wifi on Taimen and Sailfish
Test: verify sockets exist in /data/vendor/wifi/wpa/sockets

Change-Id: I0bfc3a351419f0a03498e79664949f353369bf1b
2018-01-24 14:01:23 -08:00
Marissa Wall
1437d38b52 STOPSHIP: proc.uidcpupower reflector for experiments
Allow the concurrent_*_time to be enable and disabled
for performance experiments on the dogfood population.

This patch and the corresponding kernel patches should
be removed before launch.

proc.uidcpupower=*  -> concurrent_*_time enabled
proc.uidcpupower=1  -> concurrent_*_time enabled

proc.uidcpupower=0  -> concurrent_*_time disabled

Test: Run "adb shell setprop proc.uidcpupower 0" and
      check that "adb shell cat /proc/uid_cpupower/enable"
      returns 0. Repeat the test with 1.

Change-Id: I818e110907b4d24d0d3c4b9ca92b6f2816ba3b1f
2018-01-24 11:58:36 -08:00
Tom Cherry
b037adf8aa Merge "Remove obsolete tcp buffer size system properties." am: 42921b4a54 am: f9b65c4009
am: aef645c5a9

Change-Id: Icf0f7cfb9ae60d160debfe13d2fd66a371bc7a69
2018-01-22 18:27:13 +00:00
Tom Cherry
2a34ca5412 Remove obsolete tcp buffer size system properties.
These were deprecated back in 2014.  It's time to remove them now.

Test: None
Change-Id: Iefeab3a93d848e2c420f34eb80e9395eec6a49ac
2018-01-19 11:19:04 -08:00
Roshan Pius
0cd6c2991d wahoo(init.rc): Don't start supplicant with interfaces
Framework will now add interface to supplicant (via HIDL) when it
needs to control an interface, so don't specify them in the startup
params.

Bug: 69426063
Test: Device boots up and able to connect to wifi.
Change-Id: I817d28093f8b982e3806c212babd888c0f5eb7c0
2018-01-18 14:47:44 -08:00
Mark Salyzyn
0d045dd2c4 STOPSHIP: move sys.vdso reflector to allow "user" builds
Modification of bb267fa16f to
remove restriction to userdebug and eng builds.  Rationalization
is the experiment will continue during public beta releases.

Test: manual, bionic-benchmarks --bionic_xml=vdso.xml
Bug: 70518189
Change-Id: I57e5cdc21569dd32377256d3962e1dc03385f7cb
2018-01-16 12:44:14 -08:00
Daniel Colascione
908a39eb89 Make zram swap mounting conditional on persist.sys.zram_enabled
Test: manual
Change-Id: Id0f73f9516e0b7858a96bd150a8474e51e0cf741
2018-01-08 20:46:39 -08:00
TreeHugger Robot
55ffbfec41 Merge "wahoo: power: change node owner early to reduce permission denial log spam" 2018-01-05 11:11:30 +00:00
Wei Wang
4a56f1b85a wahoo: power: change node owner early to reduce permission denial log spam
PowerHAL (started in class hal) will try to reset nodes to their initial values,
however the node permission is granted only upon boot_complete which leads some
permission log spam. This CL is to address the logspam.

Test: boot and do powerhint
Bug: 62041945
Change-Id: I35ad8dfe23f35c829f50479ca951445afeb46b87
2018-01-04 22:30:07 -08:00
Thierry Strudel
c4822cb332 Merge "wahoo: power: switch to libperfmgr for powerhint" 2018-01-05 06:18:34 +00:00
Wei Wang
d7f901b58d wahoo: power: switch to libperfmgr for powerhint
Test: boot and do powerhint
Bug: 62041945
Change-Id: I7de1d2bf377fb46162171a084fca3413b1067d3b
2018-01-04 13:51:18 -08:00
Sundong Ahn
6752f8c544 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 master will be down
revisioned to 1.0.

Bug: 71555815
Test: build & run
Change-Id: Ie441c505ccc17403e4e5450b3ac86a23f2272e8f
2018-01-04 15:43:33 +09:00
Todd Poynor
3134f29b6f thermal-engine: start as class hal
thermal-engine serves the IThermal 1.1 HAL.  Start as class "hal" to
re-register with hwservicemanager if hwservicemanager dies.

Bug: 69174182
Test: manual: kill hwservicemanager, check for Ithermal 1.1 in lshal
Change-Id: I8418a177eca992c20b86ed7ed53699d897c79cef
2017-12-04 19:41:43 -08:00
Jeff Vander Stoep
758c4e7b7c Merge "wifi_supplicant: deprecate entropy.bin" am: 5ded7d8a1c am: fb9dbfebcc
am: 3c58378dfc

Change-Id: Idf9a4fe1bb78ce13afeab7b0cc716aa38a8edbec
2017-12-01 06:50:35 +00:00
Jeff Vander Stoep
fb9dbfebcc Merge "wifi_supplicant: deprecate entropy.bin"
am: 5ded7d8a1c

Change-Id: Ifdcf8c25340608bf82f4699609dcebd12c7a9f47
2017-12-01 06:41:42 +00:00
Jeff Vander Stoep
0a81570cb9 wifi_supplicant: deprecate entropy.bin
Wpa_supplicant's random pool is not necessary on Android. Randomness
is already provided by the entropymixer service which ensures
sufficient entropy is maintained across reboots. Commit b410eb1913
'Initialize /dev/urandom earlier in boot' seeds /dev/urandom with
that entropy before either wpa_supplicant or hostapd are run.

Bug: 34980020
Test: Use wifi and wifi tethering on Taimen
Change-Id: Ib5caf362bc939911b357db186a274957d3fbf186
2017-11-30 12:57:55 -08:00
Tom Cherry
a4761a9f71 Merge "Move mkdir /data/nfc/... to rootdir init.rc" am: e3ffe7bffd am: 99955d9cdf
am: 2ed108ffe0

Change-Id: I7491d781311fcf2ac115dabe2005800db1fbc7cd
2017-11-22 20:12:43 +00:00
Tom Cherry
99955d9cdf Merge "Move mkdir /data/nfc/... to rootdir init.rc"
am: e3ffe7bffd

Change-Id: I7c32865226dad0393aea804533e8edf1b0fa8d94
2017-11-22 20:03:56 +00:00
Tom Cherry
707978a594 Move mkdir /data/nfc/... to rootdir init.rc
These are directories used by the system so they should be created by
the system.

Test: treehugger
Change-Id: Ie0473d53a3ffd476faeb2dcb08497c0554b3b172
2017-11-21 10:29:50 -08:00
Xin Li
9ba9e412f6 Merge commit '34f7f32ea4cca137547463132f06cb93dc8d04b3' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master

Change-Id: I1f549411c9b9219fae6e602569778ae36c511055
2017-11-14 11:49:25 -08:00
Lennart Wieboldt
d370ecafbb wohoo: remove cpuset foreground boost am: 150af4c811 am: 155dbc92ae
am: 25f89d640c

Change-Id: Iab7a217787b978a3cc8bb39e151563af12c7aae5
2017-11-14 05:41:37 +00:00
Lennart Wieboldt
25f89d640c wohoo: remove cpuset foreground boost am: 150af4c811
am: 155dbc92ae

Change-Id: Ib172d07c29fa2bed77afa7db3660f8bbdcd440c9
2017-11-14 05:39:07 +00:00
Lennart Wieboldt
150af4c811 wohoo: remove cpuset foreground boost
Cpuset foreground boost is departed since
https://android.googlesource.com/platform/frameworks/base/+/a712d4058f6f85268838

Change-Id: Iab1834dbb8cce15480b5e11968bcfff7cc80177e
Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
2017-11-14 05:33:39 +00:00
Mikhail Naganov
b74d70834b Use /data/vendor/audio for Audio HAL data am: 943161347d
am: a91b22865d

Change-Id: I4456b90619bc98a0f6e1f9af6eab5beafc66cb5e
2017-11-08 19:51:44 +00:00
Mikhail Naganov
943161347d Use /data/vendor/audio for Audio HAL data
This separates the data of audioserver from the data of the
hal_audio.

Bug: 35042759
Test: no SELinux denials for hal_audio
Change-Id: I2eafed4d8a620507e27cab3a9b84d829d003bcec
Merged-In: I1815c5debaa6d6d2076cebf8beb5acd36c6fe891
2017-11-08 10:31:55 -08:00
Mikhail Naganov
fb167a94c3 Use /data/vendor/audio for Audio HAL data
This separates the data of audioserver from the data of the
hal_audio.

Bug: 35042759
Change-Id: I1815c5debaa6d6d2076cebf8beb5acd36c6fe891
Test: no SELinux denials for hal_audio
2017-11-07 09:40:51 -08:00
Wei Wang
4fa2c7c8b8 Add UFS health information into board specific dumpstate
Test: Take bugreport
Bug: 66967195
Change-Id: Id635b64f77d4a6fdc1ace2290f89adfdf86514a7
Merged-In: Id635b64f77d4a6fdc1ace2290f89adfdf86514a7
(cherry picked from commit 0db0037ca1)
2017-10-03 10:21:32 -07:00
Wei Wang
0db0037ca1 Add UFS health information into board specific dumpstate
Test: Take bugreport
Bug: 66967195
Change-Id: Id635b64f77d4a6fdc1ace2290f89adfdf86514a7
2017-10-02 15:32:44 -07:00
Siqi Lin
e09eaf71e2 Merge "Allow system and log group to access /sys/fs/pstore" into oc-mr1-dev am: 56b533b096
am: 6d70adbf66

Change-Id: I2313413387a9e1887a74da7b50efe3ba9b12efd5
2017-09-29 23:29:19 +00:00
Siqi Lin
b973bb5109 Allow system and log group to access /sys/fs/pstore
Bug: 64503253
Bug: 67020313
Test: Verify last_kmsg contents in dropbox and in bugreport
Change-Id: I6f0b4f9109bcd1e4f4023ce9a01a42f01a9ee9dd
2017-09-29 13:13:46 -07:00
Petri Gynther
c29a09d441 resolve merge conflicts of b8bc815 to master
Change-Id: Ia152696bc3028aa711cb579af96b4fae6e194101
2017-09-19 16:23:19 -07:00
Petri Gynther
50ecd957e6 Bluetooth sepolicy: Move BT dumps to /data/vendor/ssrdump
1. Move BT dumps to /data/vendor/ssrdump
2. Don't allow wcnss_filter to read /data/vendor/ssrdump
3. Allow wcnss_filter to set SSR properties

Bug: 37298084
Bug: 65402355

Change-Id: I39afdd00df86957dcec77b905344f9d131b1a44a
2017-09-18 22:37:34 -07:00
Jaekyun Seok
491d56144b Add 'vendor.' prefix to a vendor daemon name
To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.

Test: succeeded building and tested on a walleye device
Bug: 36796459
Change-Id: I519603b13978567b51dbb2bcb866aa088a1646e4
2017-09-14 18:25:52 +09:00
TreeHugger Robot
bb69407f19 Merge "Add 'vendor.' prefix to a vendor HAL service name" 2017-09-12 06:34:56 +00:00
Jayachandran Chinnakkannu
c8182addb8 Merge "Change user of cnd from system to radio" 2017-09-12 01:22:44 +00:00
Sunmeet Gill
34acc4a2bc Change user of cnd from system to radio
CRs-Fixed: 2103363

Bug: 62571088

Change-Id: Idca207b8229fad807cb2466ca01991b0ac19f13b
2017-09-11 10:12:26 -07:00
Jaekyun Seok
cc0d522669 Add 'vendor.' prefix to a vendor HAL service name
To prevent property name collisions between properties of system and
vendor, 'vendor.' prefix must be added to a vendor HAL service name.
You can see the details in http://go/treble-sysprop-compatibility.

Test: succeeded building and tested on a walleye device
Bug: 36796459
Change-Id: Idc995c550657feca5e0f934444a31805bc3538f9
2017-08-31 12:51:25 +09:00
Sundong Ahn
abcd27e3e8 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 mr1 will be down
revisioned to 1.0.

Bug: 64999074
Test: build & run
Change-Id: I5713c6f38a18b2669eb9514f7f7c84359e736e52
2017-08-25 16:59:52 +00:00
Wei Wang
2fe99a43f1 init.hardware.rc: wait for bootdevice symbolic creation
Bug: 64925999
Test: reboot with UART on for 20+ iterations
Change-Id: I7b574b166a6c2d2c7989e0b7c048fcb764b3983a
2017-08-22 12:10:46 -07:00
Wei Wang
4341d45908 init.hardware.rc: optimize boottime
start qseecomd early
start insmod on early-init in parallel to coldboot

Bug: 64810143
Test: reboot test and fingerprint enrollment
Change-Id: I2249f93071db36eb03ebe4e3ca0ac63aaaad80f8
2017-08-17 15:39:24 -07:00
Thierry Strudel
1ce944b718 Merge "init.hardware.rc: androidboot.hardware.revision set by bootloader on walleye" into oc-dr1-dev
am: 922d5ec3de

Change-Id: Idb758096366386973b844d3d49ff6e9d74fb460b
2017-08-09 04:35:49 +00:00
Thierry Strudel
71932cb147 Merge "init.hardware.rc: androidboot.hardware.revision set by bootloader on walleye" into oc-dr1-dev
am: 922d5ec3de

Change-Id: I7ff096152e9f173ce3aaf742a4180ec308fc699a
2017-08-09 04:35:49 +00:00