Commit graph

501 commits

Author SHA1 Message Date
Jaekyun Seok
35e312e135 wayne-common: rootdir: 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 go/treble-sysprop-compatibility documents.

Test: succeeded building and tested on a sailfish device.
Bug: 36796459
Change-Id: I48e6ee0ae3fe401e39efb273256d991fac676357
2019-07-01 14:15:04 +02:00
guaiyihu
d3ee69ea48 wayne-common: rootdir: Clean up init scripts
* Clean up unused and non-exsistent services
 * Clean up invalid commands

Change-Id: I5b991e8770b0ed9a7ba5af3a0fed612015e809a5
2019-07-01 14:15:04 +02:00
guaiyihu
578cbeb720 wayne-common: rootdir: Clean up unused init scripts
* init.qcom.class_core.sh
 * init.qcom.coex.sh
 * init.qcom.crashdata.sh
 * init.qcom.efs.sync.sh
 * init.qcom.sdio.sh
 * init.qcom.syspart_fixup.sh
 * init.qcom.wifi.sh
 * init.qti.ims.sh
 * qca6234-service.sh

Change-Id: Ib6ba59acb1f1d6b773aeca3c326944049784887c
2019-07-01 14:15:04 +02:00
Bruno Martins
5fd30f742d wayne-common: rootdir: Remove sensors init shell script
Change-Id: Ice50a9c83a708d7f8300978048cd00c71e88abc8
2019-07-01 14:15:04 +02:00
guaiyihu
f97c4e7742 wayne-common: rootdir: Remove insmod for non-existent module
Change-Id: I75afecc8909b55467dfde74d40e77007480fe31d
2019-07-01 14:15:04 +02:00
LuK1337
3cdc4e4581 wayne-common: Drop libbt-vendor
* With QTI bluetooth it's no longer needed.

Change-Id: Iba4b0b6ba24fe1b85e7175291ed84769615ffadd
2019-07-01 14:15:04 +02:00
Bruno Martins
6c9868e43a wayne-common: Remove no longer needed Android Blueprints
* Soong now finds all Android.bp and Blueprints files in the source tree

Change-Id: I2b7b22ecec7efb439d4c20c9d579ed9ceed5b20d
2019-07-01 14:15:04 +02:00
Purushottam Kushwaha
58ba31c6f6 wayne-common: overlay: Enable ACS and 11ac for softap operations
This sets below flag to true:
  config_wifi_softap_acs_supported
  config_wifi_softap_ieee80211ac_supported

Change-Id: Ie8192caaabfea2853f8f7e9a3644be836bba37ab
CRs-Fixed: 2244800
2019-07-01 14:15:04 +02:00
Lakshman Chaluvaraju
13b599f189 wayne-common: audio: Add dynamics processing support
(cherry-picked from c57b29cc104a7f4f1250cf67ce739795f6c2ecaf)

Change-Id: If22b1f2151cec52fa17cad7eecb981c3a591dc2e
2019-07-01 14:15:04 +02:00
LuK1337
b92b5cbf32 wayne-common: Convert audio_effects.conf to XML
* Converted using : https://github.com/luk1337/aeffects-conf2xml

Change-Id: Ida4dabb206f9c9767cc17f5d002d64bca092ed94
2019-07-01 14:15:04 +02:00
Tim Murray
325ccd28cc wayne-common: rootdir: Add restricted cpuset
bug: 78197570
Test: CTS

Change-Id: I6aaac2f3ce9ba886143e3667df2ca044c7f3d3f0
2019-07-01 14:15:04 +02:00
Steven Moreland
a2494961a5 wayne-common: light: Mark as shutdown critical
Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.

Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
    including when an artificial 5s delay is inserted when
    the phone normally fscks (which can also be quick)

Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
2019-07-01 14:15:04 +02:00
guaiyihu
c68ab555b9 wayne-common: manifest: Clean up non-exsistent hal
Change-Id: Ie45f56421df60311cf0fa5b881e3ef9f14a170fa
2019-07-01 14:15:04 +02:00
Steven Moreland
2b448d5e0c wayne-common: Only include bitness of hal impls that is used.
Bug: 73829928
Test: boot walleye, check directories, no errors during boot
Change-Id: Ia1272b2bcc5006fa75a50631861fbaccdeed7bee
2019-07-01 14:15:04 +02:00
Edwin Wong
52a6298670 wayne-common: Add SELinux policy for clearkey HIDL service.
Convert clearkey plugin to HIDL to support drm HAL v1.1.
Add SELinux policy for android.hardware.drm@1.1-service.clearkey.

Test: CTS test
  ANDROID_BUILD_TOP= ./android-ccts-tradefed run cts-dev
    --module CtsMediaTestCases
    -t android.media.cts.ClearKeySystemTest#testClearKeyPlaybackCenc

bug: 69635855
Change-Id: I61e9c272c2a2788fd07d5c12921d28c785661b77
2019-07-01 14:15:04 +02:00
Steven Moreland
84e5153cd7 wayne-common: DRM: Specify exact interfaces used.
Leaving 1.0 in the old format and 1.1 in the new format
since this is agaisnt FCM 2 which requires 1.0 (this makes
sure that OTAs work).

Bug: 73556059
Test: vts_treble_vintf_test (DRM served in 'HalsAreServed')
Test: ota 3/15/2018 build -> ToT + this
Change-Id: I82e6f9fe0b29b15c2e79e92eb9b2abdbab615a71
2019-07-01 14:15:04 +02:00
Kevin Rocard
4d48412ae9 wayne-common: Migrate to audio V4
Test: regression test on the board
Bug: 38184704
Change-Id: Ife559125850277865451f92ea862e7ec47fc9da7
Merged-In: Ife559125850277865451f92ea862e7ec47fc9da7
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-07-01 14:15:04 +02:00
Yifan Hong
2113026525 wayne-common: Uprev to health@2.0 hal.
Test: adb logcat -e health
Test: lshal --debug

Change-Id: I3b14f087d95578d034898600592cb6fb357a9958
2019-07-01 14:14:56 +02:00
Bharat Pawar
389f89ae12 wayne-common: Remove improveTouch HAL Entry from manifest
* Also drop improveTouch blobs

Change-Id: I28d9a9a586239f776528e9b63de85efef8ffa021
2018-12-15 10:11:33 +00:00
Jesse Hall
696255e59c wayne-common: Advertise Vulkan 1.1 system feature
Bug: 66875961
Test: atest VulkanFeaturesTest
Change-Id: I58f904984320dee174637ba0ddfecdd343fab7e6
2018-12-08 09:39:02 +00:00
Bruno Martins
7fcc708c1d wayne-common: Switch to common basic USB HAL
Change-Id: I0e0809a2338f006063c5160bb7aec36a555cebab
2018-12-08 09:37:59 +00:00
Kshitij Gupta
48cd52cfd9 wayne-common: overlay: Enable Swipe Up gesture navigation
Change-Id: I6ee5f42748cac1414e5c7f1327fe0f42bf6d863a
Signed-off-by: Kshitij Gupta <kshitijgm@gmail.com>
2018-12-08 09:34:24 +00:00
Roshan Pius
fd6afc24e3 wayne-common: Add hostapd HIDL interface
Bug: 36646171
Test: Manual softap toggle
Change-Id: Ia7ef8bf3da8adc3491c4dac4096e4297cbd5bf5b
2018-12-08 05:26:09 +00:00
Isaac Chen
53a86fcdf1 wayne-common: Set TARGET_2ND_ARCH_VARIANT to armv8-a
Nile targets are armv8 devices. Setting TARGET_2ND_ARCH_VARIANT
to armv8-a, instead of armv7-a-neon, can silence the related warning
during build.

Bug: 68012286
Change-Id: I18ae3aa985fd6bff11f043a155f3685d9f6644b8
2018-12-08 05:25:45 +00:00
Mathieu Chartier
9407e427e7 wayne-common: Fix shared vdex name
The files in arm/arm64 are symlinks and pinning symlinks is not
supported. Pin the target vdex file intead.

Bug: 73990433
Test: manual
Change-Id: I313e1f53487c0a21b615f65dc64c21a1ecb4b7d5
2018-12-08 05:25:20 +00:00
LuK1337
ff7e8a2b70 wayne-common: Add vendor_ prefix for our custom AIDs
Change-Id: Ie1dd9c1f6a79d04b42e12e0fd9dabdc22b2f6927
2018-12-08 05:24:54 +00:00
Yifan Hong
ba3140167a wayne-common Remove PRODUCT_COMPATIBILITY_MATRIX_LEVEL_OVERRIDE
Replace it with FCM Version = 1, specified explicitly
in device manifest.

Test: builds
Bug: 69636193

Change-Id: I0f5689344bb7b10b2b5db2549e95c940c4812f9d
Merged-In: I0f5689344bb7b10b2b5db2549e95c940c4812f9d
2018-12-08 05:24:18 +00:00
Jeff Vander Stoep
6f0c86315b wayne-common: 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 8996 targets
Change-Id: Ib5caf362bc939911b357db186a274957d3fbf186
(cherry picked from commit 1f2b2f3a780bb7a6ed489bf86e18e77382f37514)
2018-12-08 05:23:02 +00:00
Roshan Pius
6defd41082 wayne-common: 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-08 05:21:42 +00:00
Roshan Pius
74d02acc90 wayne-common: 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-12-08 05:19:42 +00:00
Roshan Pius
67f99c62ba wayne-common: Uprev to supplicant 1.1
Bug: 65673412
Test: Device boots up and connects to wifi networks.
Change-Id: I2e51291b30fd242edbeae2c69ef9545383895bb3
2018-12-08 05:18:57 +00:00
Jeff Vander Stoep
0bb856ea89 wayne-common: 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-08 05:18:15 +00:00
Etan Cohen
9a27764b7b wayne-common: Uprev Wi-Fi HAL to 1.2
New HAL APIs are planned. This requires a HAL uprev.

Bug: 65647646
Test: builds and Wi-Fi runs
Change-Id: Ib7efd3d5263e73d1ad40e1a5a687bdb6c133c812
2018-12-08 05:16:17 +00:00
Isaac Chen
5f26bcf562 wayne-common: Apply jasmine rebrand
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-12-07 23:37:06 +08:00
oshmoun
c858ca4529 wayne-common: Add public.libraries.txt
Android needs this text file to know what libraries are allowed to be loaded by apps directly.
For now, add:
libOpenCL.so to the list, in order to get OpenCL to function properly.
adsprpc related libraries, since they were also declared public in stock.

Change-Id: I15ef7a7ab7d1f1a0cc6b484cd2ca9993f40de23b
2018-12-05 00:36:35 +08:00
Michael Bestas
cc472568e1 wayne-common: Adapt libinit for wayne
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-12-02 11:02:30 +08:00
Isaac Chen
2664a20ce7 wayne-common: biometric: Run goodix script in condition 2018-12-02 11:02:30 +08:00
Isaac Chen
f89bf07b99 wayne-common: biometric: Detect fingerprint from cmdline
* Cleanup fingerprint logic
2018-12-02 11:02:30 +08:00
Isaac Chen
1f768a77be wayne-common: Remove unused partition defines
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-12-02 11:02:30 +08:00
Isaac Chen
48f31a3614 wayne-common: init: Remove non-common model detection
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-12-02 11:02:30 +08:00
Isaac Chen
445a16da35 wayne-common: Decommonize vendor security patch level
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-12-02 11:02:30 +08:00
Isaac Chen
d64ff20f0d wayne-common: Support jasmine
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-12-02 11:02:30 +08:00
Isaac Chen
dc59590a23 wayne-common: rootdir: Support A/B fstab
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-12-02 11:02:30 +08:00
Isaac Chen
7a59c64c44 wayne-common: Convert into common tree
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-12-02 11:02:30 +08:00
Isaac Chen
77e80990b2 wayne: proprietary-files: Add aptX DSP
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-09-16 00:00:15 +08:00
Michael Bestas
92cea1314c wayne: Build with VNDK=current
Change-Id: I4f142432924dc7b396094593e454a5162b09948e
2018-09-05 00:00:08 +00:00
Isaac Chen
f40c0a7d0f Revert "wayne: Update vndk-sp build mechanism and library set."
This reverts commit 62ca3a07ab.
2018-09-05 00:00:08 +00:00
Thierry Strudel
5776399bf3 wayne: Fix android.hardware.gnss@1.0-service-qti
Make service part of 'hal' class.
Install files in vendor partition.
Register instance as 'default' as expected by framework.

Change-Id: I487fad4df872397ab76cea377e5304c956a756da
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-09-05 00:00:08 +00:00
Vishwath Mohan
d9152046fa wayne: Remove hardcoded LOCAL_MODULE_PATHS from vendor components
This CL replaces all LOCAL_MODULE_PATH_* definitions for vendor shared
libraries with LOCAL_VENDOR_MODULE := true instead. This appropriately
generates sanitized versions of these libraries to /data/asan/* while
generating the stock versions in /vendor/lib* as desired.

Needed for ASAN builds to work correctly.

Bug: 37740897
Test: m -j40 && SANITIZE_TARGET="address" m -j40 # shared libs in
$ANDROID_PRODUCT_OUT/vendor/lib* do not contain asan symbols, while
the ones in $ANDROID_PRODUCT_OUT/data/asan/vendor/lib* do.

Change-Id: If6a495dd153c47f929de047fd48039b990348720
(cherry picked from commit e872612127cfbf55ceba01e9860e0acc47d64447)
2018-09-05 00:00:08 +00:00
Jiyong Park
5a86a2763f wayne: Don't rely on transitively included headers
One must explicitly include what it need.
time.h for struct tm.
sys/time.h for gettimeofday, etc.

Bug: 37629934
Test: build

Merged-In: Iacd5317d958f61df062fca40fbf2e8992c7fbb44
Change-Id: I19e1043f23dbe85836b73714a4f1440159ebe419
2018-09-05 00:00:08 +00:00