Commit Graph

26901 Commits

Author SHA1 Message Date
Abhijeet Kaur
3e4c9c4661 Merge "Add a new persistent FUSE flag in Settings" 2019-12-02 15:48:27 +00:00
Chalard Jean
97ebd17170 Merge "Give apps access to the NAT64 prefix." am: ce149dba87 am: 7dfd758583
am: 36abe134c0

Change-Id: I759e5da8648fd10b26aa235410ee6e22e1976a9b
2019-12-01 18:33:11 -08:00
Chalard Jean
7dfd758583 Merge "Give apps access to the NAT64 prefix."
am: ce149dba87

Change-Id: I673a44f3f75a2395ae3d9d436c83708f20f414e6
2019-12-01 18:20:00 -08:00
Chalard Jean
f9e2215cc4 Give apps access to the NAT64 prefix.
Apps that do their own DNS queries need to know the NAT64 prefix
to resolve v4 addresses on v6-only networks.

Test: FrameworksNetTests NetworkStackTests
Bug: 144877069
Change-Id: I5a255b7afc2038646b93a0ab893f8ad62d0fb34f
2019-11-30 10:25:02 +00:00
Suprabh Shukla
040206bfcc Merge "Adding version code R for development"
am: b578bdbe43

Change-Id: I704d797eb4c3c0f2ffc449cb32681e68fcf7cc16
2019-11-29 09:18:22 -08:00
Abhijeet Kaur
b984771e99 Add a new persistent FUSE flag in Settings
New system property settings_fuse enables user to switch persist.sys.fuse
flag on/off from Settings UI. New system property is added as the
Settings UI sets system property with a fixed prefix
(persist.sys.fflag.override.) for persistent properties and for
consistency we do not want to rename persist.sys.fuse.

The user needs to restart the device after toggling the flag from
Settings UI. When the device restarts for the first time,
persist.sys.fuse is set from settings_fuse when the
StorageManagerService starts. If the value of persist.sys.fuse is
modified, then the device reboots for it to take effect.

The 2 reboots take almost the same time as 1 reboot and the difference is
not noticeable to the user as the lock screen does not show up in
between the 2 reboots.

This change would also mean that the newly added flag
(persist.sys.fflag.override.settings_fuse) will always override
persist.sys.fuse (as it is always checked on reboot), which implies that
`adb shell setprop persist.sys.fuse [true/false] && adb reboot` will
have no effect.

Bug:144419848
Test: * Enable developer options in Settings.
      * Go to Settings->System->Advanced->Developer Options->Feature Flags.
      * Turn on (off by default) settings_fuse toggle button and
        restart.
      * After reboot run `adb shell getprop persist.sys.fuse` shows
        true.
      * Turn off settings_fuse from Settings UI and reboot
      * After reboot run `adb shell getprop persist.sys.fuse` shows
        false.
Test: Using adb command to change the fuse system property.
      * `adb shell setprop persist.sys.fflag.override.settings_fuse
         true && adb reboot`
      * After reboot run `adb shell getprop persist.sys.fuse` shows true
      * Similarly for false case.
Change-Id: I0093d2b020a9d8ffeec7fca31a44ef2e65b4dfb4
2019-11-29 15:20:11 +00:00
David Su
2a095b1fdc Merge "Expose additional WifiScanner @SystemApis" 2019-11-29 03:27:22 +00:00
Ruslan Tkhakokhov
e794ceea61 Add a System API to block keys in KV restore
BackupManager#excludeKeysFromRestore can be used to pass a
list of keys that will be excluded from restore for the given package.
It is useful in situations when a key being restored can cause bad UX on
certain devices.

Bug: 145126096
Test: atest KeyValueRestoreExclusionHostSideTest
Change-Id: Ibbfd5e9196122c9bc3d31a3f0cc9430e433b9fd8
2019-11-28 20:33:42 +00:00
David Su
82c31f72b3 Merge "Expose WifiP2pDevice.update() as public API" 2019-11-28 18:03:16 +00:00
Suprabh Shukla
6a509cf4a5 Adding version code R for development
Test: Builds

Bug: 129975435
Change-Id: I26ef76266b2f52746ca08a45f5013c580cecd4fb
Merged-In: I26ef76266b2f52746ca08a45f5013c580cecd4fb
(cherry picked from commit 1d081c503c)
2019-11-28 14:29:12 +00:00
Aaron Huang
43429e772d Merge "Add IpConfiguration parcelable interface implementation to system API" am: 76101baf9a am: 21d23db938
am: 3262be5183

Change-Id: I9add4992fbacca4668867abc7a218256805d1bfc
2019-11-28 02:19:08 -08:00
Aaron Huang
21d23db938 Merge "Add IpConfiguration parcelable interface implementation to system API"
am: 76101baf9a

Change-Id: I3ead12ee9162c16f8f5937cfc74f38071cef41c9
2019-11-28 02:09:43 -08:00
Aaron Huang
76101baf9a Merge "Add IpConfiguration parcelable interface implementation to system API" 2019-11-28 09:56:58 +00:00
Aaron Huang
42daacaea7 Add IpConfiguration parcelable interface implementation to system API
API lint robot warnings that parcelable requires writeToParcel
and describeContents.

Bug: 139268426
Bug: 135998869
Test: atest android.net.cts
      atest android.net.wifi.cts
      atest FrameworksNetTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: I7acf000c468788c3fdcb47f8601762e7804ab940
2019-11-28 07:25:40 +00:00
Peter Wang
80c5a22aa4 Merge "[Telephony Mainline] Exposed sendOrderedBroadcast" 2019-11-28 03:47:12 +00:00
Nate Jiang
8b5662b5f7 Merge "[NetworkSuggestion] add API to allow app share credential with user" 2019-11-28 01:15:22 +00:00
TreeHugger Robot
deaecab703 Merge "Add basebandCn0DbHz to GnssStatus" 2019-11-28 01:06:25 +00:00
Nate(Qiang) Jiang
f3b8e8e036 [NetworkSuggestion] add API to allow app share credential with user
When app shares credential with user that suggestion will show in the
WifiPicker. And user can click to connect to that network.

Bug: 142134651
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: I1d64abdd045734f4f79a4424f4f6199d7e6cd7d2
2019-11-27 15:38:08 -08:00
Peter Wang
7701f57250 [Telephony Mainline] Exposed sendOrderedBroadcast
with appOp as String and options as Bundle

Bug: 139077993
Test: Build, GsmInboundSmsHandlerTest, CdmaInboundSmsHandlerTest and WapPushOverSmsTest
Change-Id: I60e21c7202d1bc7c5d28dfad2e2edde902f28a15
2019-11-27 15:20:42 -08:00
Shuo Qian
0a1aca082c Merge "Introduce APIs for Emergency Number Database version"
am: 18fa446f44

Change-Id: I028be97dca40697f402431c42014028a07506068
2019-11-27 14:47:22 -08:00
Shuo Qian
18fa446f44 Merge "Introduce APIs for Emergency Number Database version" 2019-11-27 22:35:00 +00:00
David Su
f79678a66d Merge "Promote WifiConfiguration.configKey() to @SystemApi" 2019-11-27 20:24:34 +00:00
Jordan Liu
ea6874a856 Merge "Expose some SystemApis and edit framework-cellbroadcast-shared-srcs" 2019-11-27 19:43:24 +00:00
Jackal Guo
566121289c Publicize constructors of accessibility related infomational classes
This is the first step of eliminating SynchronizedPool for a11y ojbects.
The patch doesn't stop recycling, but allows service developers to
choose whether or not to.

Since recycling a11y node info is stopped in the cache, but the nodes
are still holding pooled collection/item/range info objects. Here it
goes away with public constructors except those refreshed one.

Bug: 117999988
Test: m update-api; m checkapi; m ds-docs
Test: atest --test-mapping $ANDROID_BUILD_TOP/frameworks/base/core/java/android/view/accessibility:postsubmit

Change-Id: I12304662f216b5e443785939f231893abdfa07d5
2019-11-27 13:50:56 +00:00
TreeHugger Robot
db0b8bfd09 Merge "Improves text of the negative button on the save UI" 2019-11-27 13:15:48 +00:00
Zoey Chen
13dc5222d1 Merge "Add SystemApi and NonNull annotation"
am: 79ca88e3b5

Change-Id: Id11ab9f5b4d0ad2623bfa09aea47c2628c133b03
2019-11-27 02:02:49 -08:00
TYM Tsai
67428261d2 Improves text of the negative button on the save UI
Adds new style "Never" for the service can never tirgger the save
UI.

Fixes: 144466480
Test: atest CtsAutoFillServiceTestCases
Change-Id: I31f3f806c794f46c8cb320345bacfc26885b4532
2019-11-27 17:50:05 +08:00
Zoey Chen
79ca88e3b5 Merge "Add SystemApi and NonNull annotation" 2019-11-27 08:41:32 +00:00
David Su
20ceb4c6ea Expose WifiP2pDevice.update() as public API
Bug: 143892817
Test: compiles
Change-Id: Ibab8b0e1ccd88993978549bd61be21c82e777f41
2019-11-26 18:45:10 -08:00
Shuo Qian
217a388aef Introduce APIs for Emergency Number Database version
1) Test API to override file partition for testing
2) System API to notify Telephony Emergency Number database installation
 complete
3) Remove broadcast mechanism

Test: gts
Bug: 136027884

Change-Id: Ie2b0c390948c82ccbb94187a6ded9affd162f5ab
Merged-In: Ie2b0c390948c82ccbb94187a6ded9affd162f5ab
(cherry picked from commit 1b28fdd6dd)
2019-11-26 15:51:15 -08:00
Jordan Liu
15a727439f Expose some SystemApis and edit framework-cellbroadcast-shared-srcs
The APIs are used in the CellBroadcastService, and the
framework-cellbroadcast-shared-srcs library is also linked there.

Bug: 135956699
Test: manual
Change-Id: I5e71ea1ee1a858c0520c241dc7365733441e0f50
2019-11-26 15:26:11 -08:00
Makoto Onuki
13cace2cbd Merge "Expose APIs to register service manager wrappers." 2019-11-26 22:10:33 +00:00
TreeHugger Robot
7761845259 Merge "Adding temp whitelist methods to PowerWhitelistManager interface." 2019-11-26 20:56:24 +00:00
TreeHugger Robot
ca4f0580fe Merge "Add public API and stub implementations for app integrity manager (service)." 2019-11-26 20:31:33 +00:00
Makoto Onuki
0ceb3e0394 Expose APIs to register service manager wrappers.
Bug: 143788029
Test: boot & tree hugger
Change-Id: I6a1ce9d9603ce79d2ddb14f2a946fb51be25a9e4
2019-11-26 12:11:55 -08:00
David Su
ace322e441 Expose additional WifiScanner @SystemApis
Exposed scan type, HiddenNetwork, and
register/unregisterScanListener().

Bug: 143614759
Test: atest FrameworkWifiApiTests
Change-Id: Ie926dc8d75266dad13e5d1589f8e14011a856a01
2019-11-26 11:55:30 -08:00
Roshan Pius
dc4c722068 Merge changes from topic "wifi_mainline_apex"
* changes:
  Revert "Add a new wifi protection level"
  Revert "Mainline wifi stack module"
  Revert "WifiManager: Retrieve IWifiManager service lazily"
  Revert "Sysui/WifiTracker: Changes to support late starting wifi service"
2019-11-26 19:22:17 +00:00
Kweku Adams
835283f000 Adding temp whitelist methods to PowerWhitelistManager interface.
Migrating temp whitelist APIs to PowerWhitelistManager to allow
telephony to add apps to the temp whitelist.

Bug: 138239060
Bug: 140141678
Bug: 141155196
Bug: 142420609
Bug: 144864180
Test: atest PowerWhitelistTest
Change-Id: Iefd6ecf89aad46de042ef3a1ec0c20d6c35da5a6
2019-11-26 11:07:29 -08:00
TreeHugger Robot
d6b38783fd Merge "Rename PO Device IDs access -> Org Owned device" 2019-11-26 18:59:48 +00:00
Song Pan
75147d5967 Add public API and stub implementations for app integrity manager (service).
App integrity manager will accept rules from verifier and evaluate these rules
during install (and accept/reject the install accordingly). For more
information, see the linked bug (and the blocked bug).

Design doc: go/integrity-component-android-infra

Bug: 143689885
Change-Id: Ie965c6cc77987e06e9dea4be8fb49785a7bd08c4
Test: moving only
2019-11-26 18:38:17 +00:00
Xiangyu/Malcolm Chen
a452be9d6f Merge "Add System API to indicate whether physical SIM can be disabled." 2019-11-26 18:37:41 +00:00
Jiashen Wang
c478e51e9b Merge "Change KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL to public"
am: 936fd348f7

Change-Id: I5e915d62c31a05a4b6d6a1e61df814444e68fb37
2019-11-26 10:06:08 -08:00
Jiashen Wang
936fd348f7 Merge "Change KEY_CARRIER_APP_REQUIRED_DURING_SIM_SETUP_BOOL to public" 2019-11-26 17:56:55 +00:00
TreeHugger Robot
4da9fbe356 Merge "Secure FRP : Add a secure bit to know when the device is in secure FRP mode." 2019-11-26 17:56:45 +00:00
Yu-Han Yang
15e4303a5b Add basebandCn0DbHz to GnssStatus
The new basebandCn0DbHz is the carrier-to-noise density measured at the
baseband. The old Cn0DbHz is measured at the attenna port. Adding
the new field so that ecosystem will report both and avoid reporting
inconsistent signal strengths in one field. See go/r-gnss-hal for
detailed design.

Bug: 136136192

Test: atest GnssStatusTest
Change-Id: Idbfb611c6cb1c8d00c1f3bb719e422177a5ff7f2
2019-11-26 16:37:16 +00:00
Eran Messeri
18d21312ca Rename PO Device IDs access -> Org Owned device
Repurpose the "Profile Owner was granted access to device identifiers"
to "Profile Owner of an Organization-owned device".

The old method now throws an exception, as it should not be called by
anything other than ManagedProvisioning (which is changed in this topic).

The new method now provides the functionality the old method provided,
and there's a new permission associated with it.

No functionality has been added or removed in this CL beyond that.

Bug: 138709470
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testDeviceIdAttestationForProfileOwner
Change-Id: I9914e8220213898d0c6b3499af8897e3a6f23819
2019-11-26 14:57:30 +00:00
Simranjit Singh Kohli
2cebd529f3 Secure FRP : Add a secure bit to know when the device is in secure FRP mode.
Bug: 141262900
Test: atest SettingsProviderTest
Change-Id: Iabc1f699d6afd6a1524b37f992314b9b20463bc2
2019-11-26 06:34:12 -08:00
Roshan Pius
f7ea8f9d32 Revert "Add a new wifi protection level"
This reverts commit 73266f2f64.

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: I234510b96ddd39f64f74eb0573963365f9ff5556
2019-11-25 21:00:00 -08:00
zoey chen
cb52ec37c8 Add SystemApi and NonNull annotation
Bug: 143738957
Test: make
Change-Id: I0e5c0e57c14dd18ab51d33a9552dba86ef4e6000
Merged-In: I0e5c0e57c14dd18ab51d33a9552dba86ef4e6000
2019-11-26 11:47:57 +08:00
David Su
ff488b0709 Promote WifiConfiguration.configKey() to @SystemApi
Bug: 143614759
Test: atest FrameworksWifiApiTests
Change-Id: I08c201add76545d64a75b16375afcb072367c7aa
2019-11-25 18:54:24 -08:00