Commit Graph

385 Commits

Author SHA1 Message Date
Alexander Dorokhine a8bae14fce Add framework-appsearch apex on the classpath.
Test: presubmit
Bug: 146218515
Change-Id: If511234a958661e71fcfb50c28679f6ff91f3ad8
2019-12-17 10:44:27 -08:00
Dario Freni 3e41a7f856 Move CtsShim and CtsPrivShim APKs out of system.
These packages are now available in the shim apex package, which is made
available in both flattened and unflattened apex configurations.

Bug: 138429615
Test: atest CtsPrivilegedUpdateTests CtsPermissionTestCases
CtsStagedInstallHostTestCases; (on both flattened and unflattened
configurations)
Exempt-From-Owner-Approval: approved in
https://android-review.googlesource.com/c/platform/build/+/1180943
Change-Id: I03939f6c3e711d5887da201e32173f86a6b0289e
2019-12-17 10:11:01 +00:00
David Su d880e49d44 Merge changes from topics "framework-wifi-apex", "split-framework-wifi"
* changes:
  Move framework-wifi into the Wifi APEX
  Add framework-wifi to bootclasspath
2019-12-17 07:35:27 +00:00
Muhammad Qureshi 6c351681a6 Merge "Add framework-statsd.jar to jars list" 2019-12-16 20:46:57 +00:00
Lalit Maganti ef70f3c92f Merge "build: enable Perfetto by default" 2019-12-16 16:41:49 +00:00
Automerger Merge Worker ef4640cb48 Merge "Add com.android.cronet APEX and org.chromium.net.cronet to base_system." am: ced27c4c60 am: 132c0346e2 am: 423d1b9d7d
Change-Id: I13729fd18ec271739377ab3796a5b0ec66ab9cd8
2019-12-16 15:18:44 +00:00
Lalit Maganti 37b5bf8aea build: enable Perfetto by default
Perfetto has been enabled by default on Pixel devices since P and has
proved to be stable and helped find performance issues on both P and Q.

On R+, iorapd has a dependency on Perfetto and thus we need to be enabled
by default.

Note that CTS tests have ensured that any downstream consumers of Android
have not accidentally broken Perfetto in old releases so this should be
safe to introduce and maintain going forward.

The two daemons of Perfetto (traced and traced_probes) are located on the
/system partition so for consistency, we have chosen to also enable the
build property on the system partition.

Googlers can see the below link for more context and detailed info.

Change-Id: I00fa7d4c97eda4d0ab83520d0f428bca83707d8a
Context (Googlers only): go/perfetto-by-default
Bug: 137963570
Test: checking product/build.prop in Treehugger builds
2019-12-16 15:15:29 +00:00
Luke Huang ced27c4c60 Merge "Add com.android.cronet APEX and org.chromium.net.cronet to base_system." 2019-12-16 14:39:02 +00:00
Luke Huang 723ff8274d Add com.android.cronet APEX and org.chromium.net.cronet to base_system.
com.android.cronet will be shipped as a mainline
module in APEX format.

org.chromium.net.cronet is a java_sdk_library used to provide
Cronet API to apps.

Bug: 139397529
Test: Built and installed apex on device
Change-Id: Icff7ded02e360f2df9dfe3ac7185cf7f0034d014
2019-12-16 20:57:05 +08:00
Sungsoo Lim 96504cfeb5 Remove media command
Use media-session shell command instead.

Bug: 144453231
Test: manually
Change-Id: I69e877d25621d4f77f40a676d1511cbb9e6af83d
2019-12-16 11:17:26 +09:00
Muhammad Qureshi 81be9fe8db Add framework-statsd.jar to jars list
Add framework-statsd.jar to product_boot_jars and product_updatable_boot_jars

Bug: 145923096
Test: m
Test: vendor/google/tools/flashall
Test: adb shell cmd stats print logs && adb logcat "*:S statsd:*"

Change-Id: I00e9cfa847554e745bd7c18dffda13e9f7ab4130
2019-12-13 16:02:49 -08:00
David Su b6d5b76624 Move framework-wifi into the Wifi APEX
Bug: 140299412
Test: device boots up and connects to Wifi
Change-Id: I0ae9ed5a21232385394f2e21b81671997ac86d23
2019-12-12 15:31:56 -08:00
Tej Singh e9403e4e79 Move service-statsd to updatable system server jar
This moves StatsCompanionService into the statsd apex.
service-statsd.jar is no longer installed to system/framework, and is
instead installed to
/apex/com.android.os.statsd/javalib/service-statsd.jar by moving it from
PRODUCT_SYSTEM_SERVER_JARS to PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS

Bug: 145923413
Test: make clean; make; vendor/google/tools/flashall and manual
inspection of jar locations
Test: made trivial update to SCS and bumped the version of the apex.
Then did: 1. make com.android.os.statsd 2. adb install
com.android.os.statsd 3. adb reboot. Verified that the change was
reflected via the apex update

Change-Id: Ia261ea79b2a46a4cc709e1b7dd072de15e17571e
2019-12-12 15:23:59 -08:00
David Su 3fd2c56e85 Add framework-wifi to bootclasspath
Now that framework-wifi is a separate jar from
framework-minus-apex, need to add it to the
bootclasspath separately.

Bug: 140299412
Test: devices boots up

Change-Id: I2929a133797b78f4546fbd1790e08d5019f73ee8
2019-12-12 14:03:01 -08:00
Howard Ro 756ba7dc52 Add statsd apex to base_system
Bug: 145960929
Test: atest statsd_e2e_tests --rebuild-module-info
Change-Id: I83476ea471abbf5803a1edc3cb717ee450e6e152
2019-12-10 19:06:45 -08:00
Automerger Merge Worker 2f69bc4605 Merge "Add telephony-common, ims-common to telephony apex." am: 52df8f5154 am: 5d2a05f5a1 am: b5144d4c59
Change-Id: Iadb4874a5a812fb214506325d797354ad99818af
2019-12-10 19:10:43 +00:00
Amit Mahajan 13bc18a3ec Add telephony-common, ims-common to telephony apex.
Test: basic telephony sanity
Test: m com.android.telephony && adb install com.android.telephony.apex
Bug: 145555313
Change-Id: I5588f7615c45aac00eb00f436e15e8a1746d9ac6
2019-12-09 14:07:05 -08:00
Amit Mahajan eebe2d7cab Merge "Create telephony apex." am: 1b9fd38513 am: c1ddc3adbc
am: 69a527d108

Change-Id: I5c28225d61996cb719ae384d7b0828776e84f8d5
2019-12-09 11:03:09 -08:00
Jeff Sharkey 139a0c6e3d Merge "Structure MediaProvider as an APEX." 2019-12-08 21:20:33 +00:00
Amit Mahajan 8c7ca1bc05 Create telephony apex.
Initial version includes StkLib. Other components will be added in
subsequent CLs.

Test: m com.android.telephony && adb install com.android.telephony.apex
Bug: 145555313
Change-Id: Ifa38d36ba36dbfa613bff9ac168af82b7d6886ee
2019-12-05 23:38:50 -08:00
Jeff Sharkey 5a4593c9d7 Structure MediaProvider as an APEX.
Based on guidance from the Mainline team, we're placing the
MediaProvider APK inside a new APEX, as this will allow us to
move MediaStore.java inside the module boundary in a future CL.

As part of this restructuring, we need the pre-Mainline APK to
remain intact to preserve the user's media database.  There is
already logic in place from previous CLs that will migrate data
from the pre-Mainline to the post-Mainline world, including tests
to verify that the migration works.

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I571eccbb2950a7c518a682eae3350ba7ef9bd804
2019-12-05 10:08:56 -07:00
Hangyu Kuang bb131ec4ff MediaTranscodingService: Bring up the services.
Bug: 145233472
Test: Build and flash the phone. dumpsys to show the service up and
running.

Change-Id: I179bf6b5048261a843a5058058102ca51f496e2b
2019-12-05 02:23:31 +00:00
TreeHugger Robot fa758bdc9f Merge "Add permission APEX to base_system." 2019-12-04 00:21:01 +00:00
Automerger Merge Worker 8db9ab21dc Merge "Add sdkext module" am: 5685159a7c am: 2e36b2a95d
Change-Id: Iedbe3897736a7e9c7b29a2ceb5ae3e7bc020f0b6
2019-12-03 17:08:46 +00:00
Anton Hansson c982aecdb1 Add sdkext module
Add the module to the build, and its jar to the bootclasspath.

Bug: 137191822
Test: m
Change-Id: I11700ac6da3fe031692b792d2975c5eec5414e09
2019-12-03 13:32:15 +00:00
Automerger Merge Worker 594da5d83a Merge "base_system.mk: Align formatting for updatable boot jar variable" am: 78560b2049 am: e2b081d273
Change-Id: Ieb877eb916152ce3df46ed7cca98af1c565ec899
2019-12-03 00:59:19 +00:00
Roshan Pius 78560b2049 Merge "base_system.mk: Align formatting for updatable boot jar variable" 2019-12-03 00:43:17 +00:00
Hai Zhang ec5ca71550 Add permission APEX to base_system.
Bug: 136503238
Test: atest --rebuild-module-info permission_e2e_tests
Change-Id: Id2a01c2c4660627380c6f2b39eef800683502837
2019-12-02 11:53:06 -08:00
markchien ef83b80ec3 [Tether08] build InProcessTethering package
Build tethering package which is running the same process as system
server.
Since tethering still have some dependency with system server which
need to run in system server process(e.g. use LocalService), we
need to use InProcessTethering for all first. After cutting off
the dependency, Go devices would keep use "InProcessTethering" and
other non-Go devices would be switched to use "Tethering" package.

Bug: 136040414
Test: -build, flash, boot
Change-Id: I680273a3ee8fed3af843a829da17ca84b130f475
Merged-In: I680273a3ee8fed3af843a829da17ca84b130f475
2019-11-29 13:50:54 +00:00
markchien 1542743b88 [Tether08] build InProcessTethering package
Build tethering package which is running the same process as system
server.
Since tethering still have some dependency with system server which
need to run in system server process(e.g. use LocalService), we
need to use InProcessTethering for all first. After cutting off
the dependency, Go devices would keep use "InProcessTethering" and
other non-Go devices would be switched to use "Tethering" package.

Bug: 136040414
Test: -build, flash, boot
Change-Id: I680273a3ee8fed3af843a829da17ca84b130f475
2019-11-29 21:43:19 +08:00
Roshan Pius 626f6371dc base_system.mk: Align formatting for updatable boot jar variable
Migrate PRODUCT_UPDATABLE_BOOT_MODULES &
PRODUCT_UPDATABLE_BOOT_LOCATIONS to a new PRODUCT_UPDATABLE_BOOT_JARS.
This new variable uses the same format as
PRODUCT_UPDATABLE_SYSTEM_SERVER_JARS, i.e <apex>:<jar> pair.

Test: Compiles & flashed device. Ensured that the bootclasspath & system_server class
paths remain the same.

Change-Id: I1cb26d5ec825cd1f5282a6e0255094ddf2fe046a
2019-11-28 12:59:08 +00:00
Roshan Pius 8086a123c3 base_system.mk: Switch to wifi mainline apex
Also, explicitly include the cacerts_wfa in builds. This used to be
included via the "required" tag in wifi-service build rule. We probably don't
want to deliver CA certificates to OEM devices via mainline updates. So,
leaving it out of the wifi mainline module & explicitly including it in
the base makefile.

Bug: 144722612
Test: Device boots up & connects to wifi networks.
Change-Id: I3e4487f9fad765e442bf8335ec1f21de3a47674d
2019-11-26 07:13:36 -08:00
Roshan Pius 2cea7f9417 base_system.mk: Switch back to wifi-service.jar
Reason for revert: Wifi services no longer plan to be a separate
APK/process for mainline. Will instead become a jar loaded from Apex.

Bug: 144722612
Test: Device boots up & connects to wifi networks.
Change-Id: I80dd27aae3bb8de372c210d6d16adfcdd9458017
2019-11-25 20:56:54 -08:00
Benedict Wong 1023921d76 Merge changes from topics "Create IPsec(IKE) APEX", "Expose IKE ID, TS & SaProposal" am: f81965bdc8 am: 97239f3c3e
am: 582fcc3ad2

Change-Id: Ifd4a1e7d3e387877cc81757417d6ef4154323bbf
2019-11-25 07:16:44 -08:00
Benedict Wong f81965bdc8 Merge changes from topics "Create IPsec(IKE) APEX", "Expose IKE ID, TS & SaProposal"
* changes:
  Add ike.jar to bootclasspath to expose IKE API
  Add com.android.ipsec APEX to base makefile
2019-11-23 03:45:53 +00:00
Anton Hansson a2b816616c Update references to service jars
These are being renamed to service-* instead of *-service.

Test: treehugger
Change-Id: Ib8af8ca8eafee7d466d2d3873461bbd9c91a686d
2019-11-22 12:15:32 +00:00
evitayan 8ac6463155 Add ike.jar to bootclasspath to expose IKE API
IKE will be a mainline module. This commit adds ike.jar to
bootpathclass so that IKE API is accessible to apps.

Bug: 143983419
Test: make update-api && make
Change-Id: I1dbb249f3109f45ce32c34bcb398108d61bc06cc
2019-11-21 16:21:14 -08:00
Terry Wang 05b1ea74e7 Merge "Add a new system service for app search management." 2019-11-21 22:43:07 +00:00
Martin Stjernholm 7dd62a4e2c Merge "Reland "Add libdl_android as a bootstrap library"." am: 675aa4b093 am: 7bf7a0cec2
am: 951411d9e9

Change-Id: I3623c986cf68a1442a23825eab033524c43292a5
2019-11-21 08:40:52 -08:00
evitayan 5bc08b7bdd Add com.android.ipsec APEX to base makefile
com.android.ipsec will be shipped as a mainline
module in APEX format

Bug: 143905344
Test: Built and installed apex on device
Change-Id: I70da069146e8d9a7be38ab603c6bdaa9d6d9ba84
2019-11-21 08:25:01 -08:00
TreeHugger Robot f796bed1a1 Merge "Remove legacy idmap binary" 2019-11-20 16:41:38 +00:00
Terry Wang 05f2c27dec Add a new system service for app search management.
This change adds appsearch-service to base system and media system.

Bug: 142567528
Test: atest cts/tests/appsearch/src/com/android/cts/appsearch/AppSearchManagerTest.java
Change-Id: I4c7b2a2fb7e58b6796a4e5f2034f70d0dc706e0f
2019-11-19 10:42:46 -08:00
Martin Stjernholm 15ca2ffbb2 Reland "Add libdl_android as a bootstrap library".
Necessary after moving it into the Runtime APEX, as several framework
libraries loaded during early boot depends on it, e.g. libvndksupport.so,
libvulkan.so, and libgraphicsenv.so.

Test: build & boot
Bug: 135753770
Bug: 144343305
Change-Id: Ia95349e377605d709fae74d966bd4f2324eaf604
2019-11-19 16:35:47 +00:00
Robert Shih b459e1656c base_system: remove mediadrmserver
Bug: 134787536
Test: vendor/google/build/build_test.bash
Change-Id: I743dfa8f1c17b80a8a859d94e8ffc5f38c21eeac
2019-11-16 13:46:41 -08:00
Mårten Kongstad b893bbf0ae Remove legacy idmap binary
The idmap tool has been replaced by idmap2. Remove now obsolete code
related to the old binary.

Bug: 118711077
Test: atest OverlayDeviceTests OverlayHostTests
Change-Id: Ie1b8fe6f53ce5308b3a1ee6b9f4719cd830a2ecf
2019-11-15 07:29:18 -08:00
Tom Cherry 4f51fba546 Merge "Move init and ueventd scripts from / to /system/etc" 2019-11-13 14:36:47 +00:00
Tom Cherry 24ede38d8d Merge "Move init and ueventd scripts from / to /system/etc" into qt-qpr1-dev-plus-aosp
am: 246dbc1b0b

Change-Id: Ia35a4586889e4c3059674b138135c854939c0a82
2019-11-12 07:57:14 -08:00
Tom Cherry 246dbc1b0b Merge "Move init and ueventd scripts from / to /system/etc" into qt-qpr1-dev-plus-aosp 2019-11-12 15:46:21 +00:00
Remi NGUYEN VAN 674f1708ee Merge "Revert "Revert "Use NetworkStackNext as preinstalled network stack""" am: 6cbbac5cec am: f82fd89eb8
am: afb0ff8fea

Change-Id: I456ccb82deaab2a8fd610cd9a4e26f17783e6d69
2019-11-11 10:25:30 -08:00
Remi NGUYEN VAN 60bb223f41 Merge "Revert "Use NetworkStackNext as preinstalled network stack"" am: 7017d37675 am: af94c1ea25
am: 86783d4e33

Change-Id: I58511fa2ea4f4c71af0ce6c56416e74628292ea5
2019-11-11 10:09:07 -08:00