Commit Graph

89375 Commits

Author SHA1 Message Date
Salvador Martinez
6994848491 Merge "Create public intent for dpp configurator activity" 2019-01-28 17:35:41 +00:00
Philip P. Moltmann
87969723fc Merge "Reset per-pkg app-ops for runtime permissions" 2019-01-28 17:04:24 +00:00
David Brazdil
f7ad5af4a8 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981 am: fe642a81d9
am: 47b4ad2c13

Change-Id: I6a85a7960825a6f2471338b17f8b9cf8497b8e10
2019-01-28 08:33:18 -08:00
David Brazdil
47b4ad2c13 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" am: faedae5981
am: fe642a81d9

Change-Id: I927ed3371a0f6df6182999fb188d040af28289e6
2019-01-28 08:24:04 -08:00
David Brazdil
fe642a81d9 Merge "Add @UnsupportedAppUsage to methods known to be used by apps"
am: faedae5981

Change-Id: I5263e1aa1a3a14fab7feb15acd3295f11dee0b15
2019-01-28 08:10:41 -08:00
Sudheer Shanka
31f977a443 Merge "Update FileObserver to be able to watch multiple files." 2019-01-28 16:01:50 +00:00
Hongming Jin
175e2f24a2 Merge "Add API in SmsManager to return sms messages for financial app." 2019-01-28 15:57:32 +00:00
Junyu Lai
f75556a089 Merge "Hide Keepalive offload API in IpSec" 2019-01-28 15:18:29 +00:00
TreeHugger Robot
bf1d8ab140 Merge "Rename smart replies and actions adjustment keys" 2019-01-28 15:03:43 +00:00
TreeHugger Robot
196437d3cb Merge changes I315e75c3,I23d36950
* changes:
  Commit rollbacks by ID, not by RollbackInfo.
  Stub out API to support rollback of staged installs.
2019-01-28 14:42:18 +00:00
David Brazdil
faedae5981 Merge "Add @UnsupportedAppUsage to methods known to be used by apps" 2019-01-28 14:23:43 +00:00
Nandana Dutt
b8a51a3169 Merge "Expose bugreporting API as system API." 2019-01-28 14:21:57 +00:00
Mihai Popa
2444f5a510 Merge "[Magnifier-72] Rename Builder#setZoom" 2019-01-28 13:46:50 +00:00
TreeHugger Robot
92fd290867 Merge "Add threshold flag for foreign language detection." 2019-01-28 13:04:35 +00:00
David Brazdil
576da0582f Add @UnsupportedAppUsage to methods known to be used by apps
Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 123308819
Bug: 122291025
Test: m appcompat
Change-Id: Iafd62b8ece0d19268fad65086134a1e7369bc0bb
2019-01-28 12:46:33 +00:00
Richard Uhler
e87368e1fd Commit rollbacks by ID, not by RollbackInfo.
To make it clear that the system only pays attention to the provided
rollback ID when committing a rollback.

Also, rename executeRollback to commitRollback in IRollbackManager.aidl,
now that we are touching the code anyway.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I315e75c39019536fb2f090a0c84ed4cf7c03ce8c
2019-01-28 12:39:05 +00:00
Richard Uhler
e4e38d6631 Stub out API to support rollback of staged installs.
Adds isStaged and getSessionId methods to RollbackInfo.

Bug: 112431924
Test: atest RollbackTest
Change-Id: I23d3695021474d52cd39a90bcabdb278d95cd4cc
2019-01-28 12:37:23 +00:00
Abodunrinwa Toki
a77dba6a22 Add threshold flag for foreign language detection.
Required for feature tuning and experiments

Also
- Updates Javadoc as per API review request
- Updates TextClassificationConstants test

Bug: 120794314
Bug: 118296637
Bug: 34780395
Test: atest core/tests/coretests/src/android/view/textclassifier/TextClassificationConstantsTest.java
Test: (MANUAL)
      1. Install an app that handles Intent.ACTION_TRANSLATE
      2. Run adb shell settings put global text_classifier_constants system_textclassifier_enabled=false,lang_id_threshold_override=0
      3. Select foreign text
      4. Observe that a "Translate" option is shown in the selection toolbar

      1. Install an app that handles Intent.ACTION_TRANSLATE
      2. Run adb shell settings put global text_classifier_constants system_textclassifier_enabled=false,lang_id_threshold_override=2
      3. Select foreign text
      4. Observe that a "Translate" option is not shown in the selection toolbar

Change-Id: I02b6ca48669e66a24150b04bba2ebfcf9ebe6bfd
2019-01-28 11:27:01 +00:00
Mihai Popa
27cf08f9c8 [Magnifier-72] Rename Builder#setZoom
The CL renames the setZoom method for Magnifier.Builder to
setInitialZoom, since the zoom can be changed after the instance is
created using the Magnifier.setZoom method.

Bug: 120609112
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ide2508ab49e3f3660aa089876029e351b4cef603
2019-01-28 10:03:50 +00:00
Remi NGUYEN VAN
9a77141364 Merge "Move NetworkUtils used by NetworkStack" am: b8bbc48dee
am: 4c5b40e084

Change-Id: I0d6a40c79e92d1de18c41cc50b72fbe33db13bdc
2019-01-28 01:30:17 -08:00
Remi NGUYEN VAN
4c5b40e084 Merge "Move NetworkUtils used by NetworkStack"
am: b8bbc48dee

Change-Id: Ib83c3cb8ced0d226bd57375cd4600665d72fd962
2019-01-28 01:21:01 -08:00
Remi NGUYEN VAN
b8bbc48dee Merge "Move NetworkUtils used by NetworkStack" 2019-01-28 09:06:20 +00:00
Remi NGUYEN VAN
a6ee9704a3 Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c am: 9268c0be32
am: 50c95ba67c

Change-Id: I10cbfc198a0713dc53bfca611c082bbb387c1194
2019-01-28 00:59:28 -08:00
Remi NGUYEN VAN
50c95ba67c Merge "Add INetd to SystemServiceRegistry" am: e3f18bd77c
am: 9268c0be32

Change-Id: I92cd23a587ab0f7df2db92918011a9a488c31668
2019-01-28 00:47:45 -08:00
Remi NGUYEN VAN
9268c0be32 Merge "Add INetd to SystemServiceRegistry"
am: e3f18bd77c

Change-Id: I510c964ead030f3522c26c123e709117c7c14f6a
2019-01-28 00:38:38 -08:00
Remi NGUYEN VAN
f6a3b910bb Merge "Add NetworkStack networking deps to SystemApi" am: 9188b49259
am: bc7a8f14f4

Change-Id: I843cb189750666a2cb70b1960d49dfe797f3cf36
2019-01-28 00:35:46 -08:00
Remi NGUYEN VAN
e3f18bd77c Merge "Add INetd to SystemServiceRegistry" 2019-01-28 08:27:02 +00:00
Remi NGUYEN VAN
bc7a8f14f4 Merge "Add NetworkStack networking deps to SystemApi"
am: 9188b49259

Change-Id: Id8b31f100ab07ca9a38f4cff26c719dd9d74bc54
2019-01-28 00:26:39 -08:00
Remi NGUYEN VAN
9188b49259 Merge "Add NetworkStack networking deps to SystemApi" 2019-01-28 08:12:55 +00:00
Remi NGUYEN VAN
18f11cd4d7 Merge "Move NetworkUtils used by NetworkStack" 2019-01-28 06:57:25 +00:00
Philip P. Moltmann
dde0785228 Reset per-pkg app-ops for runtime permissions
... on every boot.

These should never have been set, but we allow settings them via the
shell.

- Also previously a bug set per-pkg app-ops.
- Also set the app-op correctly when a fg/bg permission looses it's bg
permission.

Test: Set per-pkg app-opp. Rebooted and saw log message.
      atest --test-mapping frameworks/base/services/core/java/com/android/server/pm/permission/:presubmit
Change-Id: If3b56fc08783ea99b4dba70c5fa275b94411ce94
Fixes: 123177944
2019-01-27 20:47:02 -08:00
Remi NGUYEN VAN
77dd54d3d4 Move NetworkUtils used by NetworkStack
Depending on usage move into NetworkStackUtils or shared
Inet4AddressUtils.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
(Cherry-pick of aosp/881952)
Change-Id: Ie20dcee375b377236004a7689890729493aca857
2019-01-28 13:45:46 +09:00
Sudheer Shanka
f7c79b4f06 Update FileObserver to be able to watch multiple files.
Bug: 120879205
Test: atest cts/tests/tests/os/src/android/os/cts/FileObserverTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/os/FileObserverTest.java
Change-Id: Ie1067c81dc502f2ad971e1f5d02be8baa319c3ad
2019-01-27 20:45:27 -08:00
Remi NGUYEN VAN
e88516f13b Move NetworkUtils used by NetworkStack
Depending on usage move into NetworkStackUtils or shared
Inet4AddressUtils.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Merged-In: Ie20dcee375b377236004a7689890729493aca857
Change-Id: Ib8d000529872796022706a35050fdc2c7141f2ab
2019-01-28 13:45:17 +09:00
Remi NGUYEN VAN
a4bcc86dbe Add NetworkStack networking deps to SystemApi
Cherry-pick with conflicts fixed in CaptivePortalLoginActivity imports.
Test: atest FrameworksNetTests
Bug: 112869080
Merged-In: Id59dc06fb85e4ac88098f56b621ec880610759ce
Change-Id: I3c05e8fdd70497426d4fa433295c4fbdad07d9c9
2019-01-28 13:28:35 +09:00
Remi NGUYEN VAN
3193598566 Add INetd to SystemServiceRegistry
Includes @SystemApi for Context.NETD_SERVICE so system apps (including
the network stack) can obtain the service.

Test: m
Bug: 112869080
Change-Id: Ida63747cd30abb7b3c19559803353eb0e42e6efa
2019-01-28 12:13:08 +09:00
Lorenzo Colitti
9b634f17a2 Merge "Add NetworkStack networking deps to SystemApi" 2019-01-28 02:58:01 +00:00
Lei Yu
d22cf2d3ab Merge "Turn on feature flag for slice injection." 2019-01-28 02:33:33 +00:00
Michael Wright
a6a4f9c0a9 Merge "Add new ExternalVibratorService." 2019-01-27 23:44:13 +00:00
Sudheer Shanka
b6c8094b45 Merge "Add Cursor.{set,get}NotificationUris." 2019-01-27 23:00:13 +00:00
Yohei Yukawa
fe32d1f8d1 Add SHOW_IME_WITH_HARD_KEYBOARD to CLONE_TO_MANAGED_PROFILE
With this CL, SHOW_IME_WITH_HARD_KEYBOARD will be shared within the
same profile group.

Since AccessibilityManagerService always reads
SHOW_IME_WITH_HARD_KEYBOARD from the profile parent user [1], in
practice sharing SHOW_IME_WITH_HARD_KEYBOARD within the same profile
group would be the easiest and safest way for now to avoid breaking
SHOW_IME_WITH_HARD_KEYBOARD.

Note that with my previous CL [2], InputMethodSettings already adjust
the target user ID by checking CLONE_TO_MANAGED_PROFILE when writing
secure settings.  Hence no change in the InputMethodManagerService
side is necessary.

When work profile is not enabled, there should be no behavior change.

 [1]: I530481e102ac376a4506b662862ee1ee74815b40
      03a65b04d8
 [2]: Ieefefb8630ddef3b247ebb865a604e5c72dfb49c
      15be5e6f1c

Fix: 123379418
Test: manually verified as follows.
  1. Build aosp_taimen-userdebug and flash it.
  2. adb root
  3. adb shell setprop persist.debug.per_profile_ime 1
  4. Install Test DPC.
  5. Enable managed profile with Test DPC.
  6. Attach a Bluetooth hardware keyboard.
  7. make -j EditTextVariations
  8. adb install -r \
     $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/EditTextVariations.apk
  9. adb shell am start --user 10 -n \
     com.android.inputmethod.tools.edittextvariations/.EditTextVariations
 10. Focus in the top edit field on the EditTextVariations.
 11. Tap the IME switcher icon on the navigation bar.
 12. adb shell settings get secure --user 0 show_ime_with_hard_keyboard
       -> 0
 13. adb shell settings get secure --user 10 show_ime_with_hard_keyboard
       -> 0
 14. Toggle "Show virtual keyboard" button to enable it.
 15. adb shell settings get secure --user 0 show_ime_with_hard_keyboard
       -> 1
 16. adb shell settings get secure --user 10 show_ime_with_hard_keyboard
       -> 1
Change-Id: Iacb79b24d6bd97495ac81a58c1df651cf594a8c2
2019-01-27 08:06:30 -08:00
Jeff Sharkey
8bcdea7182 Merge "Get CtsProviderTestCases building against API." 2019-01-27 03:03:48 +00:00
Jeff Sharkey
cb269aac7e Get CtsProviderTestCases building against API.
To help confirm that we're actually testing developer-visible
behaviors, we need to build against public APIs, since there have
been plenty of examples in this suite of "testing" hidden API
behaviors, which are then misleading to developers.

Bug: 120429729
Test: atest cts/tests/tests/provider/
Exempt-From-Owner-Approval: Trivial API annotations
Change-Id: I07fe33e54f611a6060217f0706fb99b809961f4d
2019-01-27 03:03:39 +00:00
Tej Singh
bd37b5f8b3 Merge "APIs for registering config activation broadcasts" 2019-01-27 02:32:37 +00:00
Nandana Dutt
0a18820a49 Expose bugreporting API as system API.
BUG: 111441001
Test: Builds
Change-Id: I1530f92971807b7e43c763a58dd1e18e793255da
(cherry picked from commit b3857c4f7301b0b9c80e6db3f27c8ebada82a60f)
2019-01-26 22:36:08 +00:00
Hongming Jin
08496b0e98 Add API in SmsManager to return sms messages for financial app.
Test: atest android.telephony.cts.SmsManagerTest
Bug: 111207447
Change-Id: I1571cb005f7c1374a9acbec27041bca291fa7153
2019-01-26 14:26:47 -08:00
Peiyong Lin
b20446f6bd Merge "Add Display.getPreferredWideGamutColorSpace()." 2019-01-26 22:10:16 +00:00
Sudheer Shanka
a07b052eb4 Add Cursor.{set,get}NotificationUris.
Bug: 120879205
Test: manual
Test: atest cts/tests/tests/database/src/android/database/cts/AbstractCursorTest.java
Change-Id: If3be228dc6b08ea58d24c9209822f9d8c2348082
2019-01-26 11:19:34 -08:00
Michael Wright
c390fbe928 Add new ExternalVibratorService.
This lets services outside of the vibrator service (and outside of
system_server) take control of the vibrator hardware. We still apply
policy in vibrator service, however, and can ask them to mute their
operations so we can give more critical haptic feedback when necessary.

Bug: 111457573
Test: manual
Change-Id: Ib7d06aa5940790cac627499acb23e4f0bda1b035
2019-01-26 16:40:54 +00:00
Richard Uhler
efb4132ba3 Merge changes Ic2bb4798,I2a409de2,I88a50a0e,Ia69342a4,Ia6548e4d, ...
* changes:
  Use "commit" instead of "execute" for rollbacks.
  Rename PACKAGE_ROLLBACK_EXECUTED to ROLLBACK_COMMITTED.
  Remove unused RollbackManager APIs.
  Use RollbackManager.getAvailableRollbacks in RollbackTest
  Use new RollbackManager API in RollbackPackageHealthObserver.
  Add RollbackManager.getAvailableRollbacks API.
  Include all relevant packages in RollbackInfo.
2019-01-26 07:31:28 +00:00