Commit Graph

41232 Commits

Author SHA1 Message Date
Josh Gao c97cea0d20 Merge "adb: add authorizing, connecting states to transport." 2018-05-09 20:43:31 +00:00
Steven Moreland 8af3dda509 Merge changes from topic "interface_builtins" am: 4880d44d2a
am: a2404d3029

Change-Id: I6550dc6ae6ec077b7879f1ba640c0f580fd65b63
2018-05-09 12:53:46 -07:00
Steven Moreland a2404d3029 Merge changes from topic "interface_builtins"
am: 4880d44d2a

Change-Id: I1968c2bbc2292e0d467246acc5aa17ca0c165b5f
2018-05-09 12:48:15 -07:00
Steven Moreland 4880d44d2a Merge changes from topic "interface_builtins"
* changes:
  init: ServiceList FindInterface
  builtins: interface_{start, stop, restart}
2018-05-09 19:34:22 +00:00
android-build-team Robot bf424dab31 Merge "Documented adb install --instant" into pi-dev
am: c8b1a2524e

Change-Id: I470e406adf09f32f9b2ea9babbdf61710adb373e
2018-05-09 12:15:38 -07:00
android-build-team Robot c8b1a2524e Merge "Documented adb install --instant" into pi-dev 2018-05-09 18:53:27 +00:00
android-build-team Robot c015800bd7 Merge "Move libstatssocket from frameworks/base to system/core/" into pi-dev
am: 289668011f

Change-Id: I80607452fe893cb2187af67a8e571628cb673a66
2018-05-09 11:42:09 -07:00
android-build-prod (mdb) 15d36ded11 Merge "Documented adb install --instant" am: 53248e47f4
am: 936a41acc8

Change-Id: I9769a391a7a2d4c5cd636db0529ca62d904e598c
2018-05-09 11:40:36 -07:00
android-build-prod (mdb) 936a41acc8 Merge "Documented adb install --instant"
am: 53248e47f4

Change-Id: I63f84176af98131059b569c69537a766949c591f
2018-05-09 11:35:36 -07:00
android-build-prod (mdb) 53248e47f4 Merge "Documented adb install --instant" 2018-05-09 18:23:11 +00:00
android-build-team Robot 289668011f Merge "Move libstatssocket from frameworks/base to system/core/" into pi-dev 2018-05-09 18:08:46 +00:00
Mark Salyzyn e074b8045b Merge changes from topic "b/64114943" am: 98caf20a65
am: 938291c770

Change-Id: I21639c2a682b3005961cba3e342e001ac841e0e5
2018-05-09 10:58:09 -07:00
Mark Salyzyn 938291c770 Merge changes from topic "b/64114943"
am: 98caf20a65

Change-Id: I7629aa02a6e2562b6ec1af6b1f76e6ef0118029a
2018-05-09 10:38:44 -07:00
Mark Salyzyn 98caf20a65 Merge changes from topic "b/64114943"
* changes:
  init: switch from /dev/keychord to /dev/input/
  init: use std::function for epoll handling
2018-05-09 16:49:57 +00:00
Felipe Leme 95c5b7f358 Documented adb install --instant
Test: m -j32 adb && ./out/host/linux-x86/bin/adb help 2>&1 | grep instant
Bug: 79422318

Change-Id: I2830a9e3cf81becac1a6334670d8dc487fe72322
    (cherry picked from commit 807be77c25)
2018-05-09 09:42:55 -07:00
Felipe Leme 807be77c25 Documented adb install --instant
Test: m -j32 adb && ./out/host/linux-x86/bin/adb help 2>&1 | grep instant
Bug: 79422318

Change-Id: I2830a9e3cf81becac1a6334670d8dc487fe72322
2018-05-09 09:33:38 -07:00
David Brazdil 96050e55f9 [automerger skipped] Merge changes from topic "hiddenapi-cherrypick" am: b5679cdace
am: 3065d671a9  -s ours

Change-Id: Ib0f04ac96cdbdb384d93120aa7d5d13fb90a77cc
2018-05-09 04:08:15 -07:00
Mathew Inwood a033020382 [automerger skipped] Add event log tag for hidden API access logging. am: e07d90dd9d
am: 4bf0454867  -s ours

Change-Id: I537efe44a37da62f135ab668839ec46e9b468888
2018-05-09 04:07:40 -07:00
David Brazdil 3065d671a9 Merge changes from topic "hiddenapi-cherrypick"
am: b5679cdace

Change-Id: I12370678db9c9ec7565cbd658ac2a0b5e9a530b3
2018-05-09 03:11:21 -07:00
Mathew Inwood 4bf0454867 Add event log tag for hidden API access logging.
am: e07d90dd9d

Change-Id: Id4f09140584b4cb5e0215238b383e168fc772a75
2018-05-09 03:10:29 -07:00
David Brazdil b5679cdace Merge changes from topic "hiddenapi-cherrypick"
* changes:
  Add support for logging complex events from C++.
  Add event log tag for hidden API access logging.
2018-05-09 08:10:19 +00:00
Dan Willemsen f943fa9f24 Merge "Remove unused `tags` property from Android.bp files" am: 0515943d7d
am: 2be702c71a

Change-Id: I0bbc69087c1ab1d01013b08fcc9423a510f4e130
2018-05-08 23:15:19 -07:00
Dan Willemsen 2be702c71a Merge "Remove unused `tags` property from Android.bp files"
am: 0515943d7d

Change-Id: Iaf77bf7fde68cef40d913558b190aae63db66c44
2018-05-08 23:06:33 -07:00
Dan Willemsen 0515943d7d Merge "Remove unused `tags` property from Android.bp files" 2018-05-09 05:59:03 +00:00
Logan Chien d6d4da8da2 Merge "libctuils: Exclude qtaguid.cpp from VNDK-SP variant" am: bb783998ce
am: 03633237ed

Change-Id: I8c76bc625a2e721d69eb6ce03343b2ac87613815
2018-05-08 20:37:19 -07:00
Logan Chien 03633237ed Merge "libctuils: Exclude qtaguid.cpp from VNDK-SP variant"
am: bb783998ce

Change-Id: I145bca1cfabefdbcd7f5355fbcabd06b7a027938
2018-05-08 20:24:10 -07:00
Logan Chien 94223374c8 libctuils: Exclude qtaguid.cpp from VNDK-SP variant
This commit excludes `qtaguid.cpp` from the VNDK-SP variant of
`libcutils.so` because the interface of `libnetd_client.so` may vary
between AOSP releases.

Besides, these functions don't work in vendor processes either because
VNDK-SP libraries are loaded in an isolated `vndk` linker namespace,
which cannot access `/system/lib[64]/libnetd_client.so` directly.  This
change makes it easier to spot the issue at build time and saves several
bytes.

Test: Build aosp_walleye-userdebug and
/system/lib[64]/vndk-sp-$VER/libctuils.so no longer exports qtaguid_*
functions.

Bug: 79329469
Change-Id: Idf6b60f6e58371ea320193641669d1e4412d62b8
Merged-In: Idf6b60f6e58371ea320193641669d1e4412d62b8
(cherry picked from commit 25b742c627)
2018-05-09 10:16:12 +08:00
Logan Chien bb783998ce Merge "libctuils: Exclude qtaguid.cpp from VNDK-SP variant" 2018-05-09 01:56:00 +00:00
Dan Willemsen 3e41f92cf5 Remove unused `tags` property from Android.bp files
The tags property is (and has always been) unused by Soong. The property has
been defined as a list of strings, and the `androidmk` converted any
LOCAL_MODULE_TAGS entries over to it, but we've never done anything with it.

In preparation for removing the definition from Soong, I'm removing it from all
Android.bp files in the tree.

Since this has never done anything, this is a no-op, but if you really did want
the Android.mk behavior, the proper way to define a module to be installed in
userdebug / eng builds is to use PRODUCT_PACKAGES_DEBUG or PRODUCT_PACKAGES_ENG
in the appropriate product makefile.

Change-Id: Id519b2c0ec352e45c470a1734dfc633bbe39937e
Exempt-From-Owner-Approval: global no-op build change
Test: remove `tags` from Soong, see errors go away.
2018-05-08 17:15:23 -07:00
Gwendal Grignou 8526413941 allow config/sdcardfs directory to be seen for ARC++
Normally, the whole configfs is mounted on /config and /config will be
word readable:

sailfish:/ $ ls -ld /config/*
drwxrwx--- 258 system package_info 0 2018-05-08 16:08 /config/sdcardfs
sailfish:/ $ ls -ld /config/
drwxr-xr-x 3 root root 0 1969-12-31 16:00 /config/

On ARC++, we only mount-bind config/sdcardfs, so it is important that
/config is set properly.

It is actually 0500, so system could not see /config/sdcardfs, even if
/config/sdcardfs is set properly:
Although root can, as system uid, we can not reach /config/sdcardfs:
:/ $ ls -ld /config
dr-x------ 3 root root 31 2018-05-02 21:56 /config
:/ $ ls -ld /config/sdcardfs
ls: /config/sdcardfs: Permission denied

With this change, system (and systemservice) is able to reach
/config/sdcardfs:
:/ $ ls -ld /config
dr-xr-xr-x 3 root root 31 2018-05-02 21:56 /config
:/ $ ls -ld /config/sdcardfs
drwxrwx--- 109 system package_info 0 2018-05-08 15:29 /config/sdcardfs

Bug: 63876697
Test: After change, package service is able to create the bindings in
/config/sdcardfs.

Change-Id: I7e9b99d7af2ad001fbb1b95bee35d494e861be78
Signed-off-by: Gwendal Grignou <gwendal@google.com>
2018-05-08 16:18:48 -07:00
android-build-prod (mdb) a2e98bdf92 Merge "Remove more bogus <stdbool.h> #includes from C++." am: e7020dc8e4
am: c104e3abaf

Change-Id: I483f576fe82057fc66d7bbc8e4fdde4c4e206127
2018-05-08 14:42:57 -07:00
android-build-prod (mdb) c104e3abaf Merge "Remove more bogus <stdbool.h> #includes from C++."
am: e7020dc8e4

Change-Id: I5d9302227fc3a83f5a11522971396a69cdbe14a2
2018-05-08 14:38:59 -07:00
android-build-prod (mdb) e7020dc8e4 Merge "Remove more bogus <stdbool.h> #includes from C++." 2018-05-08 21:33:10 +00:00
Steven Moreland 6227e345e7 init: ServiceList FindInterface
FindService can't be used w/ interfaces due
to the fact that multiple interfaces can be
added to any given interface.

Bug: 79418581
Test: boot device, manually use ctl commands
Change-Id: I7c152630462c9b7509473bc190f5b30460fcc2bc
2018-05-08 14:26:44 -07:00
Steven Moreland 612d7a47bd builtins: interface_{start, stop, restart}
e.x.:
interface_start android.hardware.nfc@1.0/default
onrestart interface_restart android.hardware.nfc@1.0/default

Fixes: 79418581
Test: add this to a service, and killing that service, light is restarted
    onrestart interface_restart android.hardware.light@2.0::ILight/default
Change-Id: Ia7ac9380f01038752325cfbe030df1dd4a5665e2
2018-05-08 14:26:22 -07:00
Mark Salyzyn 353bf1f945 init: switch from /dev/keychord to /dev/input/
Replace deprecated /dev/keychord driver with /dev/input/ interface.
Will restrict which nodes are active and relevant, and try to mask
out any unreferenced inputs with EVIOCSMASK if available.

Test: manual, boot, check registered chord works
Bug: 64114943
Change-Id: I2bbf84a6e472d720f02282e10d56795b75ac62d1
2018-05-08 13:19:12 -07:00
Tom Cherry 8ae7375f02 init: use std::function for epoll handling
Also allow unregistering of epoll handlers.

Bug: 64114943
Test: boot
Change-Id: I2abe6a56fd451839931d607dddb91669a7d02ff1
2018-05-08 13:19:12 -07:00
android-build-prod (mdb) a1ece0bf7f Merge "Make fastboot host builds match adb." am: b004620f80
am: f270f31d72

Change-Id: I9f9d619bf4328db2bab978e457c019b2753ac421
2018-05-08 13:19:11 -07:00
android-build-prod (mdb) f270f31d72 Merge "Make fastboot host builds match adb."
am: b004620f80

Change-Id: Ie2d3fabc665b8cbba78b2382a8a77f92932f5be7
2018-05-08 13:16:11 -07:00
android-build-prod (mdb) b004620f80 Merge "Make fastboot host builds match adb." 2018-05-08 20:06:18 +00:00
Elliott Hughes 23b98f492b Remove more bogus <stdbool.h> #includes from C++.
Bug: N/A
Test: builds
Change-Id: I794cd28667c6c65b38940d8f443315ad116b7ac3
2018-05-08 13:00:06 -07:00
Elliott Hughes 645b50e75d Make fastboot host builds match adb.
Bug: http://b/79131183
Test: builds
Change-Id: I572362e8d1c52ebbfb78f84fd2af5428711317d7
2018-05-08 11:30:07 -07:00
Logan Chien 25b742c627 libctuils: Exclude qtaguid.cpp from VNDK-SP variant
This commit excludes `qtaguid.cpp` from the VNDK-SP variant of
`libcutils.so` because the interface of `libnetd_client.so` may vary
between AOSP releases.

Besides, these functions don't work in vendor processes either because
VNDK-SP libraries are loaded in an isolated `vndk` linker namespace,
which cannot access `/system/lib[64]/libnetd_client.so` directly.  This
change makes it easier to spot the issue at build time and saves several
bytes.

Test: Build aosp_walleye-userdebug and
/system/lib[64]/vndk-sp-$VER/libctuils.so no longer exports qtaguid_*
functions.

Bug: 79329469
Change-Id: Idf6b60f6e58371ea320193641669d1e4412d62b8
2018-05-08 17:41:21 +08:00
Mathew Inwood 07787e6059 Add support for logging complex events from C++.
Also include relevant new metric_logger.proto values.

Test: m
Test: Exercised by ag/3890335 in art
Bug: 77517571
Merged-In: Ia527f2b94c7a6147ad9d537376266e5ffc597b04
Change-Id: Ia527f2b94c7a6147ad9d537376266e5ffc597b04
(cherry picked from commit d0613ac54a)
2018-05-08 10:27:09 +01:00
Mathew Inwood e07d90dd9d Add event log tag for hidden API access logging.
This new event is logged by ART when hidden API accesses are detected.

Test: m
Test: $ adb lolcat -b events
Bug: 64382372
Bug: 77517571
Merged-In: I5ebb1424d83686dade0d34b118944b0c4c0c7bb1
Change-Id: I5ebb1424d83686dade0d34b118944b0c4c0c7bb1
(cherry picked from commit 8ec1c7ea7c)
2018-05-08 10:26:36 +01:00
Logan Chien fd4b734602 [automerger skipped] Merge "init: Use sepolicy version instead" into pi-dev
am: 88f5b6aa5d  -s ours

Change-Id: Ie4c5cffbac184f52281d9c3d2c46814cb6656e61
2018-05-07 20:51:32 -07:00
Logan Chien 88f5b6aa5d Merge "init: Use sepolicy version instead" into pi-dev 2018-05-08 03:42:15 +00:00
Logan Chien 847ffd6d23 Merge "init: Use sepolicy version instead" am: 751f2fa535
am: 82103ab7d9

Change-Id: I2cf978f20587b7875994777c9154017bf5a3d4aa
2018-05-07 18:57:00 -07:00
Logan Chien 82103ab7d9 Merge "init: Use sepolicy version instead"
am: 751f2fa535

Change-Id: I378b8211c38510d8880abefc4a56857b4a562e10
2018-05-07 18:52:08 -07:00
Logan Chien 751f2fa535 Merge "init: Use sepolicy version instead" 2018-05-08 01:43:07 +00:00