Commit Graph

929 Commits

Author SHA1 Message Date
Brad Ebinger
55f7a2c065 Merge "Make RcsMessageStore a top level API" am: bac258f22e am: 53f6c34039 am: 36cc070c24
am: 545a4c369e

Change-Id: I8588b6035f16ed52da6b5e61675a266998e748a1
2019-07-12 15:33:27 -07:00
Brad Ebinger
53f6c34039 Merge "Make RcsMessageStore a top level API"
am: bac258f22e

Change-Id: If235ead8a75dc080e1e129d83bf7f24c3c996d8c
2019-07-12 14:53:26 -07:00
Brad Ebinger
bac258f22e Merge "Make RcsMessageStore a top level API" 2019-07-12 21:40:40 +00:00
Todd Kennedy
7e3dd3afe2 Move whitelist permissions to permission manager
Also while doing this, it made sense to move the permission change
listener to the permission manager [it resulted in fewer hacks to
get the two sides to talk to one another].

Bug: 135279435
Test: atest PermissionUpdateListenerTest
Test: android.content.pm.cts.PackageManagerTest
Test: android.permission2.cts.RestrictedPermissionsTest
Change-Id: Ie08701dfe999cd435335103f4b4daeaa0b31ef10
2019-07-11 14:14:02 -07:00
Todd Kennedy
8f135982a8 Create permission manager AIDL
Today, the package manager largely routes any permission related
method to the PermissionManagerService. But, PermissionManagerService
is a service in name only. Instead, we will make the
PermissionManagerService a real service and direct API calls directly
to it.

We will likely need to maintain all of the public permission APIs
that already exist on PackageManager. However, the public -> private
implementation will go directly to PermissionManagerService.

Bug: 135279435
Test: Manual. Device boots
Change-Id: Ia4992ba6d1f4b9050db98c7d7647d51a5d45fcbe
2019-07-02 13:17:05 -07:00
Anna Trostanetski
2ea518daa8 Merge "Make unsupportedappusage_index.csv a build artifact." am: 19cb14b3be am: 2e43120685 am: edf0d51c84
am: 5f6dd02dbc

Change-Id: Ied2e85c856f3bee9a2c29f53b20a78a2feb6c817
2019-06-28 10:14:28 -07:00
Anna Trostanetski
edf0d51c84 Merge "Make unsupportedappusage_index.csv a build artifact." am: 19cb14b3be
am: 2e43120685

Change-Id: Ife8c17d76c3fb9ae53a789ef98c58c66c0a084d5
2019-06-28 09:12:47 -07:00
Anna Trostanetski
19cb14b3be Merge "Make unsupportedappusage_index.csv a build artifact." 2019-06-28 10:46:22 +00:00
Anna Trostanetski
97088e9909 Make unsupportedappusage_index.csv a build artifact.
Add the output of unsupportedappusage-annotation-processor as a build artifact to make it available for the hiddenapi ayeaye analyzer.

Test: build artifact appears in treehuger, found by ayeaye.
Bug: 135601059
Change-Id: If3ef7bde96e008127694a8b0aa25bf19767faf1c
2019-06-28 10:33:04 +01:00
Janis Danisevskis
ecf4d59309 Merge "Gatekeeper generated aidl cpp bindings" 2019-06-28 00:43:10 +00:00
Kalesh Singh
147706daf1 Merge "Route KernelWakelockReader's userspace native wakelock stats collection to SystemSuspend (ISuspendControl::getWakeLockStats())" am: a1cae83560 am: 05b194e058 am: c26cc3d35a
am: 5e4d3e4e40

Change-Id: Ibf684d7b8a4b0ef17dab7afb2c64922c64051c27
2019-06-27 11:52:42 -07:00
Janis Danisevskis
e7a87a9b06 Gatekeeper generated aidl cpp bindings
Moved Gatekeeper aidl definitions to system/core/gatekeeperd.

Test: Manually tested setting PIN.
      android.keystore.cts.CipherTest#testCanCreateAuthBoundKeyWhenScreenLocked
      android.keystore.cts.CipherTest#testKeyguardLockAndUnlock
Change-Id: Ie3583f5682727b1f9a82d270764c94fce33388ec
Merged-In: Ie3583f5682727b1f9a82d270764c94fce33388ec
2019-06-27 11:32:57 -07:00
Kalesh Singh
c26cc3d35a Merge "Route KernelWakelockReader's userspace native wakelock stats collection to SystemSuspend (ISuspendControl::getWakeLockStats())" am: a1cae83560
am: 05b194e058

Change-Id: If9203ea35fec2469561e623da907b8db922f34eb
2019-06-26 12:40:23 -07:00
Treehugger Robot
a1cae83560 Merge "Route KernelWakelockReader's userspace native wakelock stats collection to SystemSuspend (ISuspendControl::getWakeLockStats())" 2019-06-26 18:16:34 +00:00
Kalesh Singh
759af3274d Route KernelWakelockReader's userspace native wakelock stats
collection to SystemSuspend (ISuspendControl::getWakeLockStats())

Native wakelocks obatined via SystemSuspend when useSuspendCounter is
enabled, will not be reflected in the information available from
/d/wakeup_sources or proc/wakelocks. This information has been
made available via the ISuspendControl AIDL interface of SystemSuspend.
Kernelwakelock stats however are still being collected in the
/d/wakeup_sources.

Change-Id: I208d004aa0fabcf367016faae77ad51388cdf0ea
Bug: 135680393
Test: Observe SystemSuspend service wakelocks in dumpsys batterystats (for
instance, "PowerManager.SuspendLockout"):
`dumpsys batterystats --checkin | grep wl | grep PowerManager.SuspendLockout`
2019-06-25 16:31:38 -07:00
Janis Danisevskis
9aa7223119 Gatekeeper generated aidl cpp bindings
Moved Gatekeeper aidl definitions to system/core/gatekeeperd.

Test: Manually tested setting PIN.
      android.keystore.cts.CipherTest#testCanCreateAuthBoundKeyWhenScreenLocked
      android.keystore.cts.CipherTest#testKeyguardLockAndUnlock
Change-Id: Ie3583f5682727b1f9a82d270764c94fce33388ec
Merged-In: Ie3583f5682727b1f9a82d270764c94fce33388ec
2019-06-23 11:19:58 -07:00
Brad Ebinger
d1cb346d4f Make RcsMessageStore a top level API
RcsManager was handling both DB APIs and RcsFeature logic, which
made it confusing. Instead, make RcsMessageStore->RcsMessageManager,
which is a top level API.

Test: Manual
Change-Id: I9b9f96154d0705797cedade3d6cee27719897164
2019-06-20 23:28:43 +00:00
Paul Duffin
fc85dca16e Merge "Replace no_framework_libs: true with sdk_version: "core_platform"" into qt-dev-plus-aosp am: 23b3ebfd24
am: 4575c69608

Change-Id: I01c64024c8d59a607a2a8c6d41aec852b41d4445
2019-06-19 05:57:37 -07:00
Paul Duffin
56a34d9f9c Replace no_framework_libs: true with sdk_version: "core_platform"
Bug: 134566750
Test: m
Change-Id: Idb8e6c497b6caf972bec9cfdd23055730325a33c
Merged-In: I0260942108a13cc5e9bed1d6005abfb8daffe0ac
Exempt-From-Owner-Approval: minor build change
2019-06-19 13:49:08 +01:00
Paul Duffin
8fcace4404 Replace no_framework_libs: true with sdk_version: "core_platform"
(cherry picked from commit 7954524e3cc618830f0bf7b23687bf222ecd285b)

Bug: 134566750
Test: m
Change-Id: I0260942108a13cc5e9bed1d6005abfb8daffe0ac
Exempt-From-Owner-Approval: minor build change
2019-06-19 10:48:09 +01:00
TreeHugger Robot
673d6eddf5 Merge "Gatekeeper generated aidl cpp bindings" 2019-06-14 16:29:53 +00:00
Brad Ebinger
05f4ff0a95 Trampoline SMS disambig dialog to Telephony
SmsManager used to display a "select default SMS
subscription" dialog every time SmsManager was used
and no default SMS subscription was set. This change
fixes the following issues:
1_ getSubscriptionId no longer pops up a disambig
dialog.
2) The disambig dialog no longer sets the
default, rather it waits for the response from the
user and performs the operation when it receives
a response.
2a) Dialogs can no longer be created from background
services, so we now have a restriction that if
the disambig dialog is shown via a background service,
we will use phone 0 as default (backwards compat for
apps targeting <Q) or fail (on apps targeting Q+).
3) If there is only one active subscription, use that
to perform the operation on MSIM devices instead of
asking and only displaying the one active subscription.
4) Certain non "user-facing" APIs that are used by
carrier apps no longer will pop up a UI.

Bug: 131713446
Bug: 130853716
Bug: 129141025

Test: run SmsManagerTestApp; atest TelephonyFrameworksTests

Merged-In: Ibbc07c961f1bdc19e1015885487e9f7b6a14fa83
Change-Id: I6be1c6d7bf6b6ee614b6a7d0369147e3b1890588
2019-06-13 18:30:14 +00:00
Dan Willemsen
7c7e6ac200 Merge "Match src paths with aidl package name" into qt-dev-plus-aosp am: 04d70c0d4b
am: 284842e915

Change-Id: Iea6615e165e91c93347cce0c8cee0268615f91b9
2019-06-11 12:33:37 -07:00
Dan Willemsen
a38ff9f1bd Match src paths with aidl package name
In order for the build system to track updates to the header files
during incremental builds, always specify the src files using the same
path as the package for C++ compilations.

Bug: 112114177
Test: treehugger
Change-Id: Id548ddd598cac18886da42f06c07540942a306ed
2019-06-11 10:58:04 -07:00
Janis Danisevskis
037a63fb02 Gatekeeper generated aidl cpp bindings
Moved Gatekeeper aidl definitions to system/core/gatekeeperd.

Test: Manually tested setting PIN.
      android.keystore.cts.CipherTest#testCanCreateAuthBoundKeyWhenScreenLocked
      android.keystore.cts.CipherTest#testKeyguardLockAndUnlock
Change-Id: Ie3583f5682727b1f9a82d270764c94fce33388ec
2019-06-07 08:37:37 -07:00
Paul Duffin
14e018a2f2 Merge "Allow the unsupportedappusage-annotation to be used for device variants" am: a1df2cb009 am: e6970c06d7 am: 2a1d151097
am: a477f1ba01

Change-Id: Ibc7b687b904092af051f25f89ff76bcf820cbdc8
2019-06-06 09:07:37 -07:00
Paul Duffin
2a1d151097 Merge "Allow the unsupportedappusage-annotation to be used for device variants" am: a1df2cb009
am: e6970c06d7

Change-Id: Ibf6f3c3895602d332b2a021bccbdab1846ec73b4
2019-06-06 08:50:58 -07:00
Paul Duffin
5219758043 Allow the unsupportedappusage-annotation to be used for device variants
Some modules, e.g. libphonenumber-platform, depend on core platform API
solely for accessing the dalvik.annotation.compat.UnsupportedAppUsage
annotation. Building device variants of unsupportedappusage-annotation
will allow those modules to switch to core_current.

Bug: 134379140
Test: m droid
Change-Id: I1634b8ffd2a28c2663defd2a4a4e40d78b174d91
2019-06-06 13:28:23 +01:00
Dan Willemsen
badb5a3b9b Merge "Merge "Match src paths with aidl package name" am: fe283df7ab am: 705e339d6b am: d6efcba587" into qt-r1-dev-plus-aosp
am: 058da7ffb2

Change-Id: If73f4aa6947936cf7896b0618d30145dbcc5020e
2019-06-05 21:58:04 -07:00
Dan Willemsen
d6efcba587 Merge "Match src paths with aidl package name" am: fe283df7ab
am: 705e339d6b

Change-Id: I5145212534289111205d913d9a66b3208e9f3272
2019-06-05 20:52:48 -07:00
Dan Willemsen
4a49850930 Match src paths with aidl package name
In order for the build system to track updates to the header files
during incremental builds, always specify the src files using the same
path as the package for C++ compilations.

Bug: 112114177
Test: treehugger
Change-Id: I97493c90c888678ce6c5fb56c9c83516b7e2fb2f
2019-06-05 15:51:24 -07:00
Paul Duffin
52093f7160 Merge "Export some api files for use by cts/tests/signature tests" am: 0a45ac2928 am: b5d6cc540c am: 48cce27632
am: 939bfe7a0b

Change-Id: If88994d789e3ae18c67a1a91a65953386c11d488
2019-06-03 08:25:49 -07:00
Paul Duffin
48cce27632 Merge "Export some api files for use by cts/tests/signature tests" am: 0a45ac2928
am: b5d6cc540c

Change-Id: If5179d1403e99ac2008cfeb89046eb486263817c
2019-06-03 08:15:50 -07:00
Paul Duffin
cd35de3507 Export some api files for use by cts/tests/signature tests
Creates a filegroup for each of these files:
* api/current.txt
* api/system-current.txt
* api/system-removed.txt
* test-base/api/current.txt
* test-mock/api/current.txt
* test-runner/api/current.txt

Bug: 122332514
Test: atest -p cts/tests/signature
Change-Id: Ib031dcc39d3c1cca6dcdf977c0277d5e4875591e
2019-06-03 11:56:35 +01:00
Tobias Thierer
de282f23d6 Merge "bpfmt -w Android.bp" am: c51996859d am: 829f3f0e14 am: 7e1f1e7654
am: ad7a895458

Change-Id: I6bd3b091008cf94e49caf56dd82d6a81a762392d
2019-05-29 15:42:49 -07:00
Tobias Thierer
7e1f1e7654 Merge "bpfmt -w Android.bp" am: c51996859d
am: 829f3f0e14

Change-Id: Iac27f88555798aea4d20477710aa5109fa6ef4eb
2019-05-29 15:17:40 -07:00
Tobias Thierer
3bcc5b5af1 Merge "Merge "Refactoring: Rewrite links in Metalava instead of carrying patches." am: 21558d758d am: 02a8e8c7e3 am: 7e61c246f3" into qt-r1-dev-plus-aosp
am: f353c4ec8f

Change-Id: I2a6a84fdde128b727886697352535b4312dcf511
2019-05-29 14:52:31 -07:00
Tobias Thierer
7e61c246f3 Merge "Refactoring: Rewrite links in Metalava instead of carrying patches." am: 21558d758d
am: 02a8e8c7e3

Change-Id: I859390a539fa34091739538602679edc9dfaf36a
2019-05-29 14:31:22 -07:00
Tobias Thierer
bc05034a26 bpfmt -w Android.bp
This CL reformats Android.bp via the above command line.
Before running it, I first had to "make bpfmt".

Test: Visual inspection / self-review only.

Change-Id: I00857646720198e13f875056793802b2e4350264
2019-05-29 12:26:03 +01:00
Tobias Thierer
8f55941ebc Refactoring: Rewrite links in Metalava instead of carrying patches.
Another CL in this topic introduces the metalava feature flag
--replace-documentation <ancestor java packages> <regex> <replacement>
to perform regex replacements in the documentation of some elements.

This CL uses that feature to re-write links in libcore/ojluni/
documentation that previously carried patches.

Since .bp files don't appear to support String literals that are not
(un)escaped, \ and $ occurring in the regexp/replacement parameters
need to be escaped in the .bp file.

Bug: 129765390
Test: Manually checked that this CL topic does not affect the result of
      "make ds-docs offline-sdk-docs"

Change-Id: Idb7366530c4ab255c1348cf48881cf2bde31be1e
2019-05-29 12:26:03 +01:00
Kyunglyul Hyun
c9b19fcaf9 Merge "Media: Introduce MediaRouter2" 2019-05-24 06:00:13 +00:00
Eugene Susla
8261031007 Merge "[fixed] Replace RemoteCallback with AndroidFuture in PermControler" 2019-05-23 19:40:46 +00:00
Kyunglyul Hyun
caae8dc81f Media: Introduce MediaRouter2
Instead of extending MediaRouter, this CL introduce MediaRouter2 class.
This will prevent regression from chaing MediaRouter and we can easily
modify and test `new' features.
For MediaRouter2, IMediaRouter2Client is also added to differentiate the
previous router and the new one in MediaRouterService.

This CL also contains MediaRouter2.sendControlRequest which can be used
to manipulate media routes.
(It is temporarily being used to test MediaRouter2Manager callbacks.)

Bug: 132138073
Test: atest mediaroutertest (w/ mediarouteprovider installed)

Change-Id: I895fe456e38d437cec8e3ca9501cd7f105c5f4d6
2019-05-23 16:48:46 +09:00
Eugene Susla
53f4df30f0 [fixed] Replace RemoteCallback with AndroidFuture in PermControler
This is ag/7529281 + fix ag/7572218

Test: atest AddConfigWidgetTest#testConfigCancelled
atest android.permission.cts.PermissionControllerTest
Change-Id: I9d8f28c0665a7ae4040ea471ed6a0187628a0306
2019-05-17 13:25:53 -07:00
Eugene Susla
8feb3a1df1 Revert "Replace RemoteCallback with AndroidFuture in PermControler"
This reverts commit e7daff9fa3.

Reason for revert: Broke some tests: b/132981879

Change-Id: I3a707c0a67316246532437718132717f0c601255
2019-05-17 20:11:31 +00:00
Aurimas Liutikas
5410807f40 Remove unused support libraries.
Test: none
Change-Id: I0d89c12c07891bff5050c3fc940eb63a16481989
2019-05-16 17:28:35 -07:00
Eugene Susla
e7daff9fa3 Replace RemoteCallback with AndroidFuture in PermControler
- saves ~3 allocation per ipc
- no longer need to [un]bundleize result
- will become typesafe down the road (b/132732312)

Test: atest android.permission.cts.PermissionControllerTest
Change-Id: I6cd9ec5ae31179474536f22f557afb0d9db6a4b9
2019-05-16 12:46:09 -07:00
Brad Ebinger
04eed40880 Merge changes from topic "sms_trampoline_intent-qt-dev" into qt-dev am: 8b2d80c768
am: 42ce8673bb

Change-Id: I321e452b670f9a79c4629f11d272d59d51c21192
2019-05-10 22:19:58 -07:00
Brad Ebinger
42ce8673bb Merge changes from topic "sms_trampoline_intent-qt-dev" into qt-dev
am: 8b2d80c768

Change-Id: Ibbc07c961f1bdc19e1015885487e9f7b6a14fa83
2019-05-10 13:11:08 -07:00
Brad Ebinger
360415aa13 Trampoline SMS disambig dialog to Telephony
SmsManager used to display a "select default SMS
subscription" dialog every time SmsManager was used
and no default SMS subscription was set. This change
fixes the following issues:
1_ getSubscriptionId no longer pops up a disambig
dialog.
2) The disambig dialog no longer sets the
default, rather it waits for the response from the
user and performs the operation when it receives
a response.
2a) Dialogs can no longer be created from background
services, so we now have a restriction that if
the disambig dialog is shown via a background service,
we will use phone 0 as default (backwards compat for
apps targeting <Q) or fail (on apps targeting Q+).
3) If there is only one active subscription, use that
to perform the operation on MSIM devices instead of
asking and only displaying the one active subscription.
4) Certain non "user-facing" APIs that are used by
carrier apps no longer will pop up a UI.

Bug: 131713446
Bug: 130853716
Bug: 129141025

Test: run SmsManagerTestApp; atest TelephonyFrameworksTests

Change-Id: I6be1c6d7bf6b6ee614b6a7d0369147e3b1890588
2019-05-10 00:14:23 +00:00