Commit Graph

43967 Commits

Author SHA1 Message Date
Alan Viverette
1efaf37cb7 Always statically include Support Libraries, move SDK definitions up a dir
Bug: 73250914
Bug: 74248169
Test: make && make cts
Change-Id: Id7198997ac5cacf76fd8ab155a60026d65e420ec
2018-03-23 16:27:29 +00:00
Bjoern Johansson
7ee78863b3 Merge changes from topic "emu_wifi_fixes" into pi-dev am: c6bd5fc81a
am: 5d145d5e58

Change-Id: I58b57847568fadb6fe4a611e55d41ecc097b1de8
2018-03-23 16:11:36 +00:00
Bjoern Johansson
f83b43e66c Build emulator images with emulator WiFi HAL am: 275bdb08cd
am: 71145103ff

Change-Id: I80f23361133d07c3b11e22d4536eec86a7b602e4
2018-03-23 16:11:13 +00:00
Bjoern Johansson
49fb8ba87c Update makefiles for WiFi in Treble am: 54fbcaca21
am: 2308a600b0

Change-Id: I34363dc7f2a0075e84ecb04c599a9aa34a7fab70
2018-03-23 16:10:55 +00:00
Bjoern Johansson
caf94b47d6 Fix SELinux settings for WiFi in Treble am: 760871c753
am: 1b6dde54a0

Change-Id: I6f989d45aeccf82cfc50238ba03fec0781c198bf
2018-03-23 16:10:38 +00:00
Bjoern Johansson
19d4f25791 Add SELinux configuration for new DHCP programs am: 3c4b342323
am: 3aa1249132

Change-Id: Ib4558bb2bec89e21261f7fc903c25ef3e3264ccf
2018-03-23 16:10:20 +00:00
Bjoern Johansson
06ebe2f5c7 Enable WiFi for arm, arm64 and x86_64 am: 12fd2d8824
am: 6764c91986

Change-Id: I8576eaed99b255ba7af0ba47e134e62c2b635e9a
2018-03-23 16:10:02 +00:00
Bjoern Johansson
0d7be6ee4f Add support for WiFi in emulator am: 127395fc8f
am: ee21ef387d

Change-Id: I9c4bfe42369c72f44446fc09d93dd1f0671ecb1c
2018-03-23 16:09:44 +00:00
Bjoern Johansson
5d145d5e58 Merge changes from topic "emu_wifi_fixes" into pi-dev
am: c6bd5fc81a

Change-Id: Ida600686727bb9f672150a710bbf59a0ed637f2f
2018-03-23 16:01:10 +00:00
Bjoern Johansson
71145103ff Build emulator images with emulator WiFi HAL
am: 275bdb08cd

Change-Id: I95c832768a63b911c4de8c3654372c4227ac9531
2018-03-23 16:00:42 +00:00
Bjoern Johansson
2308a600b0 Update makefiles for WiFi in Treble
am: 54fbcaca21

Change-Id: Iaf49033b8143f44e1f84f59b970ebfb03562cda1
2018-03-23 16:00:03 +00:00
Bjoern Johansson
1b6dde54a0 Fix SELinux settings for WiFi in Treble
am: 760871c753

Change-Id: I7865e2c9edf9f3148e5728f8a1a8492730743183
2018-03-23 15:58:55 +00:00
Bjoern Johansson
3aa1249132 Add SELinux configuration for new DHCP programs
am: 3c4b342323

Change-Id: Iab97f3cd28c9499587124a8512809f6deffbcf37
2018-03-23 15:57:47 +00:00
Bjoern Johansson
6764c91986 Enable WiFi for arm, arm64 and x86_64
am: 12fd2d8824

Change-Id: I8ff7d4c2c31db5e2339a3cff767889b57695e81d
2018-03-23 15:56:57 +00:00
Bjoern Johansson
ee21ef387d Add support for WiFi in emulator
am: 127395fc8f

Change-Id: I05bff54a221536812e757c09a156c8b3be8f3af4
2018-03-23 15:56:01 +00:00
Bjoern Johansson
c6bd5fc81a Merge changes from topic "emu_wifi_fixes" into pi-dev
* changes:
  Update SELinux rules to support emulator WiFi
  Build emulator images with emulator WiFi HAL
  Update makefiles for WiFi in Treble
  Fix SELinux settings for WiFi in Treble
  Add SELinux configuration for new DHCP programs
  Enable WiFi for arm, arm64 and x86_64
  Add support for WiFi in emulator
2018-03-23 15:40:55 +00:00
Tao Bao
ae999c7bd9 Merge "releasetools: Capture and dump stdout/stderr outputs on errors." am: f3e39e5878 am: 49df32de92
am: e0bbacf193

Change-Id: If7576c15fcc947c43dd123549457f295f42a2fbc
2018-03-23 01:58:07 +00:00
Colin Cross
48f3081ebb [automerger skipped]Merge "Silence more duplicate path warnings" into pi-dev am: e57c1d03e0 -s ours
am: 3f4aa1b9aa  -s ours

Change-Id: I028031cad53855f8453514e8539f0ee89abe8950
2018-03-23 01:40:46 +00:00
Tao Bao
e0bbacf193 Merge "releasetools: Capture and dump stdout/stderr outputs on errors." am: f3e39e5878
am: 49df32de92

Change-Id: I14cd733bfd0bb6bf2ec23b3834e33c1ba41bcc1f
2018-03-23 01:23:44 +00:00
Tao Bao
49df32de92 Merge "releasetools: Capture and dump stdout/stderr outputs on errors."
am: f3e39e5878

Change-Id: I5b63680a176f465c3dbbc0d80e6000e7b415f96a
2018-03-23 01:18:09 +00:00
Treehugger Robot
f3e39e5878 Merge "releasetools: Capture and dump stdout/stderr outputs on errors." 2018-03-23 01:05:27 +00:00
Colin Cross
3f4aa1b9aa [automerger skipped]Merge "Silence more duplicate path warnings" into pi-dev
am: e57c1d03e0  -s ours

Change-Id: If070b2ea9dc93ca401cf211bf9696b66616e09a4
2018-03-23 00:44:04 +00:00
Colin Cross
e57c1d03e0 Merge "Silence more duplicate path warnings" into pi-dev 2018-03-22 23:51:58 +00:00
Martijn Coenen
f089a30854 [automerger skipped]Merge "Products launching with API 28 need 64-bit binder interface." am: c0811e291c am: f12ffc445f -s ours
am: 75399e50d3  -s ours

Change-Id: I120103a6b56fe00392d23ceb39aebdef6d9e1fc5
2018-03-22 22:49:31 +00:00
Martijn Coenen
75399e50d3 [automerger skipped]Merge "Products launching with API 28 need 64-bit binder interface." am: c0811e291c
am: f12ffc445f  -s ours

Change-Id: Ifb59b3d162704b763c911ef6aeea438400226658
2018-03-22 22:21:19 +00:00
Martijn Coenen
f12ffc445f Merge "Products launching with API 28 need 64-bit binder interface."
am: c0811e291c

Change-Id: I58419bfd193f098273e2bdea35c3bc82dd12817c
2018-03-22 22:15:42 +00:00
Colin Cross
a5b6b5021c Silence more duplicate path warnings
Silence warnings when merging header jars that were missed by
Ifb67dbf7734b5f53941d110f578c4fe642e36005.

Bug: 69316739
Test: m checkbuild
Change-Id: I5cfea62e46d99f9b315a589d8915bf62307220aa
Merged-In: I5cfea62e46d99f9b315a589d8915bf62307220aa
(cherry picked from commit f6799e859a)
2018-03-22 15:06:49 -07:00
Treehugger Robot
c0811e291c Merge "Products launching with API 28 need 64-bit binder interface." 2018-03-22 21:52:26 +00:00
Android Build Merger (Role)
e9f2fa935f Merge "[automerger skipped]Merge "Add minimal-runtime support for integer overflows." into pi-dev am: d86c6190a7 -s ours am: 62099422a4 -s ours" 2018-03-22 20:46:40 +00:00
Ivan Lozano
247c82c862 [automerger skipped]Merge "Add minimal-runtime support for integer overflows." into pi-dev am: d86c6190a7 -s ours
am: 62099422a4  -s ours

Change-Id: I1a462b8ac8f36b5ad798d1ff2868f9f303f9e901
2018-03-22 20:46:32 +00:00
Ivan Lozano
2a104b2eeb [automerger skipped]Merge "Add minimal-runtime support for integer overflows." into pi-dev am: d86c6190a7 -s ours
am: 62099422a4  -s ours

Change-Id: I8e27858136981a46deadc88e653b3d3538414063
2018-03-22 20:44:50 +00:00
Ivan Lozano
62099422a4 [automerger skipped]Merge "Add minimal-runtime support for integer overflows." into pi-dev
am: d86c6190a7  -s ours

Change-Id: I777184085ce610e1327875239b89408c4e4562ce
2018-03-22 20:38:01 +00:00
TreeHugger Robot
6728fb975d Merge "Set Use_lmkd_stats_log if TARGET_LMKD_STATS_LOG is true" 2018-03-22 20:20:20 +00:00
Ivan Lozano
d86c6190a7 Merge "Add minimal-runtime support for integer overflows." into pi-dev 2018-03-22 20:17:38 +00:00
Bjoern Johansson
ca5bfb1ca7 Update SELinux rules to support emulator WiFi
SELinux policies have become stricter, this updates the emulator SELinux
rules to accomodate these changes. It also adds rules for the new
createns command with the accompanying execns changes that are needed
to work with an updated filesystem layout.

BUG: 74514143
Test: Compile emulator images and verify that WiFi works
Change-Id: I4b58cea681a1e41b0cb7368e1c696f74ce28f871
2018-03-22 12:59:49 -07:00
Bjoern Johansson
275bdb08cd Build emulator images with emulator WiFi HAL
Use the new emulator WiFi HAL. This is specified by the
BOARD_WLAN_DEVICE setting. This also requires that the wifi HAL service
is included.

BUG: 74514143
Bug: 68338427
Test: run cts -m CtsIncidentHostTestCases -t
com.android.server.cts.BatteryStatsValidationTest#testWifiDownload
Change-Id: Ib59550b6cfba1e2e8686a5c805cd6b3913e8508e
(cherry picked from commit 23073c6ee33eca56f1ae0c45615b87ec9aec712e)
(cherry picked from commit 2d51c9b2bf0774ac46837a93181c83329e6fc662)
2018-03-22 12:59:20 -07:00
Bjoern Johansson
54fbcaca21 Update makefiles for WiFi in Treble
Make sure files go in the right location on the vendor partition instead
of system or data. Also add the wificond package which is now needed for
WiFi to work.

BUG: 74514143
Test: Compile and manually test that WiFi is working
Change-Id: I7ea376bb1a23bb830f1ab3e4912799ec5e82e9bd
(cherry picked from commit 82dbefe40b9110b8171ff978d65f0caf0b395da7)
(cherry picked from commit ee5b4a90c41aec32d578f0fe6a3d323306cef796)
2018-03-22 12:59:19 -07:00
Bjoern Johansson
760871c753 Fix SELinux settings for WiFi in Treble
Update SELinux permissions to work with Treble and the much stricter
SELinux rules.

BUG: 74514143
Test: Compile and manually test that WiFi is working
Change-Id: Ic0a6417fb4fed1597fee70367924e5d59f37e725
(cherry picked from commit 37d7bc2adcc4bfd4c0f03dcddf1c7fbd31e87a4f)
(cherry picked from commit 1b0158a4ab6ca4f05b4b186ec3a080c689492b58)
2018-03-22 12:58:32 -07:00
Bjoern Johansson
3c4b342323 Add SELinux configuration for new DHCP programs
Add the dhcpclient and dhcpserver binary files to the makefile and
file_contexts and give them the appropriate SELinux permissions to run.

BUG: 74514143
Test: Build emulator image and manually verify WiFi functionality
Change-Id: Ia472ef4c86c9b6ba967c0fc7443db607aed1e485
(cherry picked from commit 917bda2587d219e35404a298c05a7179519815c1)
(cherry picked from commit 87b9f937113801b50612863cb13e6391cc1f3105)
(cherry picked from commit 760a19890ac99144f6b143015c36e7aaa3797c73)
2018-03-22 12:58:29 -07:00
Bjoern Johansson
12fd2d8824 Enable WiFi for arm, arm64 and x86_64
Set the required parameters in BoardConfigs to allow WiFi to work on
remaining architectures. Also update SELinux policy needed to make WiFi
work on arm and arm64. This was not required on x86 but refused to work
on arm without these changes.

BUG: 74514143
Test: Build emulator image and manually verify WiFi functionality
Change-Id: Ic645ccf7249f84ae0320770b0ef7b1b6102b7b14
(cherry picked from commit 6d28bfbeefea8fe1919ff0987ae3d935d974dc6d)
(cherry picked from commit 023a7ba64bd3b189a148ad388606ca5747ea20b1)
(cherry picked from commit 9c9cefdafbae50c0e371c30bcccb98a8b7697e98)
2018-03-22 12:57:41 -07:00
Bjoern Johansson
127395fc8f Add support for WiFi in emulator
Add required SELinux permissions to run services required for WiFi and
network namespaces. Add required executables and files required to run
WiFi services such as hostapd to create an access point and
wpa_supplicant to connect to it.

BUG: 74514143
Test: Build emulator image and manually verify WiFi functionality
Change-Id: I38461b878abcaae842b4656dea82792e23100174
(cherry picked from commit 21c5c3dcf91b1be71abe8618e2eb31529438e325)
(cherry picked from commit 68a36140f7a3a766b8adc16cd85c2f0c81bfb44b)
(cherry picked from commit e6dab593b8eebccb1e6311e626c8aca943ba6933)
2018-03-22 12:57:36 -07:00
Tao Bao
0a3143511e Merge "Remove the hard-coded path of build_verity_metadata.py." am: 0793683e86 am: 2a8e13f75d
am: 701d830acb

Change-Id: I7dc96de4aa30f2675992acddf2d834a9073142f0
2018-03-22 19:08:28 +00:00
Tao Bao
701d830acb Merge "Remove the hard-coded path of build_verity_metadata.py." am: 0793683e86
am: 2a8e13f75d

Change-Id: Ifb02ec1a445595f3858cbbbc96155fbe6b6b7e4b
2018-03-22 19:01:44 +00:00
Tao Bao
2a8e13f75d Merge "Remove the hard-coded path of build_verity_metadata.py."
am: 0793683e86

Change-Id: I5e181e5473e1727b5dec5951bdcfe12af701ec33
2018-03-22 18:55:12 +00:00
Tao Bao
0793683e86 Merge "Remove the hard-coded path of build_verity_metadata.py." 2018-03-22 18:41:06 +00:00
Rajeev Kumar
a331864e72 Set Use_lmkd_stats_log if TARGET_LMKD_STATS_LOG is true
Bug: 74443701
Test: Tested manually
Change-Id: I409e8b5be05b3cf060069fe0063ea9a60ef6bf27
2018-03-22 10:55:35 -07:00
Søren Gjesse
c08440bc59 Merge "Revert "Revert "Enable R8 by default (second attempt for Q)""" 2018-03-22 09:28:11 +00:00
Tao Bao
80921986d1 releasetools: Capture and dump stdout/stderr outputs on errors.
For the functions in common.py, capture the stdout/stderr outputs when
shelling out to external tools. Dump the outputs on errors.

Bug: 76123422
Test: Inject errors to signapk.jar / brotli / unzip. Check the outputs.
Change-Id: Ib2d4272528b83a50bb727788cf8a5211e2ddade8
2018-03-22 00:09:33 -07:00
Bo Hu
149d4733bb Merge "emulator: allows drm hal vendor access" into pi-dev am: 3972c88026
am: 2edc945376

Change-Id: Iec51bdd81f327513e43264f27a9545cebe2ef0ea
2018-03-21 22:51:31 +00:00
Tao Bao
beda677777 Merge "releasetools: Handle two edge cases in FinalizeMetadata()." am: 2ebcf419e4 am: 1824427572
am: 9123d812e0

Change-Id: I7ce37f84b693aefd4b0094f79fe05a3b1ff5a5b4
2018-03-21 22:19:50 +00:00