Commit Graph

124 Commits

Author SHA1 Message Date
cdf3116b12 mata: Add supplicant 1.2 to init.qcom.rc
Add missing supplicant 1.2

Change-Id: I34577cac4892563774f035d3a68ed17cc1edeeb9
2019-10-20 07:18:50 +02:00
4dfb59540e mata: Remove starting servicemanagers
All servicemanagers are started in rootdir/init.rc's `on init`
trigger, so there's no need to start them manually in device specific
rc files.

Test: boot
Change-Id: Ibdea8d5289322aae49af50e325beb793936ea525
2019-10-20 07:15:11 +02:00
d3cdb6765b mata: No more eng tags
Change-Id: I8e728c7f2910c3552052d232b65338b996d5a569
2019-10-14 03:10:07 +02:00
5d07b838ab mata: Add missing ownership/permission changes for
/sys/class/graphics/fb3

During the folding of init.mata.hdmi.sh into init.mata.rc, a few
ownership/permission changes were accidentally excluded, resulting in DP
Alt Mode breaking.

Add these changes back in to fix DP Alt Mode.

Change-Id: I48e265ab7b2f1ecd61a1d5c88e085e36dad34df1
2019-07-31 00:24:31 -07:00
4a5da4132b mata: Power: make powerhal starts handling powerhint after boot_complete
some sysfs node may not be ready before boot_complete:
e.g. we are delaying bw_hwmon in favor of boot time

Bug: 80321544
Bug: 79536745
Test: Boot and check powerhint handling
Change-Id: I8d2cfa332d9cf9fbafdfa3f48ffff4105c6bcaae
2019-04-07 12:38:52 -07:00
b1940c191e mata: Set up UFS powersaving
Change-Id: I9a4ce31654f5ecf03c26a2a2277828df18b5ad2f
2019-03-09 13:28:20 -08:00
1b85814053 mata: Remove some unused entries
Change-Id: I180c652c710712528e379bc16e4ed89999406b1f
2019-03-09 22:24:36 +01:00
585748e3c5 mata: Convert bluetooth@1.0-impl to read QC MAC address
* btaddr_extract cannot be used anymore since ro.boot.btmacaddr is not
  writable by vendor domains. bluetooth_prop is off-limits to vendor
  domains now.
* Have the Bluetooth HAL impl directly read
  /persist/bluetooth/.bt_nv.bin itself and pull the MAC address out.

Change-Id: If4b2b99345eb470c140523906a56299ec5decc9a
2019-03-03 02:37:53 +01:00
dc14ae6a2d mata: Fix /data/connectivity policy
* Get around the strict labeling of folder hierarchy under /data by
  creating a symlink from /data/connectivity to
  /data/vendor/connectivity, since cnd still requires use of the legacy
  path.

Change-Id: I1bac663c0b55f034fb297f6cb72e6593dec042c2
2019-03-02 17:22:35 -08:00
71585b2191 mata: Remove need for hbtp_cmd to have dac_override, dac_read_search
Change-Id: I364da2a45499d7bd3ba7bbce2983dede10e599ac
2019-03-01 22:52:12 -08:00
d4e0cd3267 mata: Fold init.qcom.power.sh into init.mata.rc
Change-Id: Iabfcae5eb8196ccc91319dab503dd746080212b8
2019-03-01 22:52:12 -08:00
649203b379 mata: Fold init.qcom.post_boot.sh into init.mata.rc
Change-Id: I7054d0cbaf6cec11e1f57243c0a70a3a7ff2390b
2019-03-01 22:51:51 -08:00
5e815af4bc mata: Fold init.mata.hdmi.sh into init.mata.rc
Change-Id: I93f45d56abd6708117d2410363d07166c5cdc4f9
2019-02-28 21:51:16 -08:00
64355afd58 mata: Remove unnecessary symlink
* /sdcard is symlinked to /storage/self/primary now.
* /mnt/sdcard is symlinked to /storage/self/primary now.

Change-Id: Iaaec22204d883dda9f0e255b2d529b5c1a7f81a9
2019-02-26 00:14:13 -08:00
92b4dc6a5b mata: Remove sys.slpi.firmware.version property
* Nothing reads this

Change-Id: Ieb2e87b369322836504da2b67ce030306f9ebf37
2019-02-26 05:20:26 +01:00
ac314b7abd mata: Rename device up property
* This doesn't need to be a public_vendor_system_prop.

Change-Id: I5cf9926895f300fa565804c204bbcd843b37b2ab
2019-02-25 20:09:01 -08:00
08320cc554 mata: Run sensors.qcom as system/system
* Avoid need for dac_override

Change-Id: I4752062848a83be42c501c440e223b288a4940bd
2019-01-01 18:23:47 -08:00
7c5101372a mata: Remove init.qcom.sh script
* The qcril database copy is already done unconditionally in the init
  script. The rest of this script is not useful.

Change-Id: I9ec776654d1b9999c297c642a827d31f32f39e12
2019-01-01 18:23:47 -08:00
11df6677c4 mata: Remove init.qcom.sensors script
Change-Id: I8e4a21dd3ff5bec755fec787f5661d8be43e20f0
2019-01-01 17:51:08 -08:00
517c0d9ede mata: Remove unused port-bridge entries
Change-Id: Id42c2d6acc8f5706c47ef479e818d8e37da66732
2019-01-01 17:51:08 -08:00
7bb871ccc8 mata: Make init.mata.hdmi.sh executable
Change-Id: Ib261d08a977eb8dd60402897131ba98dde059c95
2019-01-01 17:51:08 -08:00
a96a2df814 mata: Grant init.qcom.sh radio and system access
* Bypass need for dac_override

Change-Id: I31ed640f638e3b65ca0db7283559fec6418da6be
2019-01-02 02:23:07 +01:00
031db1fb30 Set VID/PID for diag functions
persist.vendor.usb.config stores the vendor specific functions that are
enabled in the target when ro.bootmode is set to usbradio through
the adb command. Since its a persistent property, the oem functions
are persisted once enabled. Alternatively, store the oem functions
in vendor.usb.config. vendor.usb.config is not persisted though.
vendor.usb.config will also reflect the enabled oem functions.

Configurations supported in this CL:
1. diag
2. diag,serial_cdev,rmnet_gsi

This would work irrespective of when ADB is not or not.

Bug: 74603740
Test: Made sure the QXDM recognized wahoo when adb is enabled/
disabled for diag and diag,serial_cdev,rmnet_gsi
Change-Id: Icbbe177e3f8958efc36f67692b9ec935b718fb03
2019-01-02 02:20:48 +01:00
841419065a Usb Gadget hal implementation for mata
(cherry-pick of commit: e9af4669659c306a9c9b1a1ae3a1313a7631357d)

Bug: 63669128
Test: Tested USB gadget configurations and verified
that they enumerated.
Change-Id: If0f98697488f6c7cfe335d4c292acebaaba6c20f
2019-01-02 02:20:02 +01:00
9c64d3606c Remove perfd
We have moved to new PowerHAL implementation.

Test: build and boot
Bug: 62041945
Change-Id: If8deaf131ccc829653932c8d3310b4c2ecd4a7ac
2019-01-01 01:24:27 -08:00
2bdbaeca31 mata: 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
2019-01-01 01:24:27 -08:00
2130a95aeb mata: power: switch to libperfmgr for powerhint
Test: boot and do powerhint
Bug: 62041945
Change-Id: I7de1d2bf377fb46162171a084fca3413b1067d3b
2019-01-01 01:24:27 -08:00
0e05d0c130 mata: Run sensors.qcom with system group
* Avoid the need to rely on dac_override

Change-Id: Ic00980c949fb1b6e6e68560b2961e02fcfbac3fa
2018-12-31 18:07:26 -08:00
9dfb27954f mata: Run tftp_server with system group
* Avoid the need to rely on dac_override

Change-Id: Id5b5bb0a747267672837ea030b246f8df3b944a3
2018-12-31 18:07:26 -08:00
80bac8398c mata: rootdir: Update persist mkdirs from stock
Change-Id: Ib95afefca6aa30881956f79fd714189864faa1be
2018-12-16 04:06:12 +01:00
a5f7523a96 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
2018-12-16 04:05:17 +01:00
01ac1d7676 mata: Clean data directory creation
Change-Id: I7b2b6aa7288cb0813f413ff2043914e3e7bbe415
2018-12-15 16:52:33 -08:00
f873f0263f mata: Remove unused properties
Change-Id: I5ad650387743e3ad8b282e87bbdb940767138359
2018-12-16 01:37:54 +01:00
be9f5e07f3 mata: Use prebuilt vibrator@1.2
Change-Id: I73e1e9eb1cf4759b9042ebf8e16ffd1a4866d9c7
2018-12-15 13:13:55 -08:00
264d368107 mata: Prepend vendor. to bluetooth properties
Change-Id: I81e78ee4161811cf24bd1f20899ccf795faa609d
2018-12-15 13:13:55 -08:00
59899d3e9d configstore: uprev configstore (1.0 -> 1.1)
Bug: 69691076
Test: Built and tested on walleye
Change-Id: I16f06827ef83711c9e29698540ffcec658081fda
2018-12-15 13:13:55 -08:00
2f8dee45c4 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
2018-12-15 13:13:55 -08:00
3a65be4bf2 mata: 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
2018-12-15 13:13:55 -08:00
0e667f309d mata: Add 'vendor.' prefix to vendor daemon names
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.

Change-Id: I519603b13978567b51dbb2bcb866aa088a1646e4
2018-12-15 13:13:55 -08:00
c04021abd3 mata: Remove nonfunctional root mkdir and symlinks
System as root already handles all of this

Change-Id: Icf6afd8e385b48aa280a702a3fc9472b8be1016d
2018-12-15 21:41:17 +01:00
a287e435b8 wpa_supplicant(hidl): Add support for starting HAL lazily
Bug: 72394251
Test: Compiles
Change-Id: I19b8434e7241b9028e7dc86316ec9d5512affcca
2018-12-11 21:06:46 -08:00
46703401c4 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-12-11 21:04:53 -08:00
d25689c752 mata: 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-12-11 21:04:53 -08:00
7173fcb71e 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
2018-12-11 20:58:23 -08:00
d6a2fc0b25 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-12-11 20:54:18 -08:00
3ee22fbd5c mata: Move grip and smoothing props to vendor.
Change-Id: If03fff1156e7a7fcb44ce9552138aa1db06d40eb
2018-12-12 05:39:45 +01:00
0bb018189e 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>
2018-12-12 05:35:56 +01:00
c6a4f85f2b mata: Remove superfluous sys.post_boot.parsed setting
Change-Id: I019e1dd7e0d6ecb059fb18bfb9c2084f93d6209b
2018-12-12 05:19:08 +01:00
943f6cfb28 mata: Wait for devices to be ready before continuing early-boot
Change-Id: Ib7133895f6adddc597efa9b0d8a9dc00e1bf7b77
2018-12-11 18:21:16 -08:00
4f4d883056 mata: Remove unused proprietary files
* Remove binaries that are obviously unused or deprecated

Change-Id: I3b5d171c0fa31db96655a1c67a6aea8149e96317
2018-08-06 00:16:41 -07:00