Commit Graph

468813 Commits

Author SHA1 Message Date
Ricky Wai
e5088d92df Bind mount obb directory in emulated storage.
- Create obb directories for packages when zygote starts.

- During zygote fork, bind all visible obb package directories
for an app.

- If app data isolation is not enabled for that process, bind
mount the whole obb directory instead.

Bug: 148049767
Bug: 137890172
Test: atest android.appsecurity.cts.AdoptableHostTest
Change-Id: I841e98c120d447b148c22cfd809d738427b04f2e
2020-02-19 12:37:23 +00:00
Chalard Jean
ea0cf5084c [NS D05] Rework how to tear down networks
Networks are torn down if they don't satisfy requests but only if
they are found unable to ever do so. This is important because
general-purpose networks typically turn up unvalidated, which
means they would get torn down immediately in the presence of
some worse network that is already validated.

Note that functionally it's the same as before for the existing
scores, except that
• An exiting network that doesn't satisfy any request is always
  torn down immediately – this is WAI
• An unmetered network is never torn down when compared to a
  metered network – this is a bugfix (previously the platform
  would tear down an unmetered cellular on grounds that it
  could not beat the performance of a metered Ethernet, but
  that's wrong ; the bug was never realized because Android
  always thinks Ethernet is unmetered)
• An unvalidated network will not be torn down if the current
  satisfier is also unvalidated, even if the satisfier is much
  faster. This is the reason for the change in the test. It's
  wrong to tear down in this case because even if much slower
  the slower network should win if it validates and the other
  doesn't.

Test: ConnectivityServiceTest
Change-Id: Ic9a3d336306a25d1272976ce467aa7c908af7bef
2020-02-19 21:27:22 +09:00
Julia Reynolds
042ebb1dc8 Merge changes from topics "jr-all-convo", "jr-default-vic"
* changes:
  Optionally make VICs bubble
  Add method to retrieve all conversations
2020-02-19 12:24:56 +00:00
TreeHugger Robot
724502fdaa Merge "Fix CutoutSpecification logic bug" 2020-02-19 12:18:51 +00:00
Alex Kershaw
028d090598 Log more cross-profile metrics
Log metrics for the new app-op permission INTERACT_ACROSS_PROFILES and
each of the new app-facing and DPC-facing APIs where possible.

This is the second CL which adds server-side metrics that were
previously attempted client-side.

Bug: 136249261
Bug: 149370554
Bug: 149318411
Bug: 149370875
Bug: 149370515
Test: atest
com.android.cts.devicepolicy.CrossProfileAppsPermissionHostSideTest#testCreateRequestInteractAcrossProfilesIntent_canRequestInteraction_returnsIntent_isLogged
Change-Id: Ib1064ad793f6e93bc1fea665991011de7ffd8675
2020-02-19 12:11:47 +00:00
Anton Hansson
daa9d88444 Enable compat checking & lint for system_services api
These were previously turned off as there were no previous
releases to compare it to. Check in empty files as comparison.

Whitelist current lint problems for now (filed bugs to follow-up).

Bug: 149818061
Bug: 149818284
Bug: 147559833
Test: m checkapi
Change-Id: Ib4cbc84ac9a826f7b947c951c94f8f5578f4554d
2020-02-19 12:03:04 +00:00
shawnlin
e9e801efd2 Fixed DisplayPolicyLayoutTests fails
add setFitInsetsTypes

Fixes: 149760800
Test: atest DisplayPolicyLayoutTests
Change-Id: Ib8cb9dec2ab0b6e6d45267de0d943aca475c93c2
2020-02-19 19:53:48 +08:00
Automerger Merge Worker
f0fff78d9d Merge "Reduce advertised ipv6 mtu by 16 to fit ethernet header" am: b1ad41b62e am: 376e086fef
Change-Id: I2feadb839300ff7d95fd125cda3ae2899c58f163
2020-02-19 11:51:02 +00:00
Lorenzo Colitti
fb19f4953a Tethering offload: add/remove IPv6 forwarding rules on ND events.
Use IpNeighborMonitor to listen for ND cache events on the
downstream interface, and push downstream IPv6 fowarding rules
to netd.

Rules are pushed when:
- IPv6 neighbours appear/disappear on the downstream interface.
- The upstream changes.

Test: new unit test
Change-Id: I7b01ba179a4d6bb248fd6c4994e48800613a4efa
2020-02-19 20:50:43 +09:00
Automerger Merge Worker
376e086fef Merge "Reduce advertised ipv6 mtu by 16 to fit ethernet header" am: b1ad41b62e
Change-Id: Iceff50ab7118e13ce1669ec3890e71c9d29cb019
2020-02-19 11:34:52 +00:00
Sungsoo Lim
0e809640a8 Fix NPE happened in the constructor of SystemMediaRoute2Provider
Bug: 149751047
Test: build
Change-Id: I7ce7bb3aa6f82aec8ca3cbd0b04cd68c3f88ea1f
2020-02-19 20:31:51 +09:00
Automerger Merge Worker
e6a75b64f4 Merge "Check DSU public key with key revocation list" am: 3bdf29c1f6 am: 55e1510484
Change-Id: I775193981379471b43c213b479f1b1a8429c72ab
2020-02-19 11:31:18 +00:00
Automerger Merge Worker
3883a5ce7b Merge "Add tethering client callbacks" am: 195fc89155 am: 6b281c9304
Change-Id: I98aa24d6bce451c5f80de7a6507659aaf066902d
2020-02-19 11:30:30 +00:00
Tiger Huang
dd6db47950 Bring ImmersiveModeConfirmation to the new insets mode
We still need the hint in the new insets mode.

Bug: 118118435
Test: Manual
Change-Id: I7af0787db86429f7865b858c885148547dece668
2020-02-19 19:22:40 +08:00
Treehugger Robot
b1ad41b62e Merge "Reduce advertised ipv6 mtu by 16 to fit ethernet header" 2020-02-19 11:20:29 +00:00
arangelov
8aa7f03a6b Enable ViewPager swiping for intent resolver.
Fixes: 149730561
Test: manual
Change-Id: I8652177e6dcd78a7e4b2f713e6f0a020bf30c63e
2020-02-19 11:15:55 +00:00
Automerger Merge Worker
55e1510484 Merge "Check DSU public key with key revocation list" am: 3bdf29c1f6
Change-Id: I84f160a92e456e3bb70833ef8a484b73628523f8
2020-02-19 11:15:15 +00:00
Automerger Merge Worker
6b281c9304 Merge "Add tethering client callbacks" am: 195fc89155
Change-Id: I6df28cdb0ec69b3356d2fcf7681ca90c736efe29
2020-02-19 11:14:42 +00:00
Bill Lin
3bf9ca2727 Add DEBUG flag for rounded corner and display cutout path
There wasn't a good approach for engineers to distignlish bounds between
H/W display component and S/W anti-aliasing.

Allow enable color to review the anti-aliasing effect.

Test: adb root; adb shell setprop debug.screenshot_rounded_corners true;
Test: adb shell pidof com.android.systemui|xargs -i adb shell kill -9 {}
Test: check visual following above steps
Test: atest SystemUITests
Test: atest ScreenDecorationsTest
Bug: 149721168

Change-Id: I87f04b50945e1500babdf9fa7ba9cdb37010fde8
2020-02-19 19:14:38 +08:00
TreeHugger Robot
139ad8f13d Merge "Revert "Add feature ids to system server services that requset location."" 2020-02-19 11:14:34 +00:00
Yo Chiang
be20495f0b Key revocation check is permissive when device is unlocked
imageValidationThrowOrWarning() logs the error as a warning if device
bootloader is unlocked, else re-throw the error.
Device lock state is queried via PersistentDataBlockManager service.

Bug: 128892201
Test: adb shell am start-activity \
    -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
    -a android.os.image.action.START_INSTALL \
    --el KEY_USERDATA_SIZE 8192 \
    -d file:///storage/emulated/0/Download/aosp_arm64-dsu_test.zip \
    --es ${IMAGE_KEY}
Test: Observe the logcat
Change-Id: I895e70d90624afda2bf7cd3b34ea8d21a1702163
2020-02-19 11:11:29 +00:00
Treehugger Robot
3bdf29c1f6 Merge "Check DSU public key with key revocation list" 2020-02-19 11:04:29 +00:00
TreeHugger Robot
dc77c5e198 Merge "Add setShadowRadius for StubTransaction" 2020-02-19 10:57:50 +00:00
Antoan Angelov
5562c7e87f Merge "Add metrics for work tab in intent resolver and share sheet." 2020-02-19 10:48:11 +00:00
Maciej Żenczykowski
34d4361604 Reduce advertised ipv6 mtu by 16 to fit ethernet header
This is a temporary hack to workaround the inability of current
kernel's ebpf bpf_skb_change_mode() function to prefix a 14-byte
ethernet header on to a packet without going over the upstream
(source, rawip) interface's mtu *before* we bpf_redirect() to
the downstream (destination, ethernet) interface.

Test: build, atest, atest TetheringTests
Bug: 149816401
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I646148ebfd978a2489c0cd065e4b671b01150add
2020-02-19 10:44:54 +00:00
Matt Pietal
d0553b04ee Controls API - Publisher change - Phase 1
Migrate to use publishers apis and deprecate consumer apis that are in
use, remove consumer api not in use. Default apis to provide a smooth
transition. Defaulting will be removed, as well as all consumer code
in the next CL

Bug: 149398610
Test: atest ControlsBindingControllerImplTest ServiceWrapperTest
ControlsProviderLifecycleManagerTest
Test: ControlProviderServiceTest

Change-Id: I014f2b083edc00825e08c82463ec39c148ad9b28
2020-02-19 05:44:26 -05:00
Lorenzo Colitti
c77639ef54 Minimal support for IPv6 upstreams in IpServer tests.
This makes the IpServer tests a bit more realistic. It is needed
by an upcoming change that adds new functionality, and is in its
own commit because it modifies the behaviour of all the existing
tests.

Test: atest TetheringTests
Change-Id: I8c3267bea983d1453c010b7b6b85548b9481a153
2020-02-19 19:43:23 +09:00
Mark Chien
195fc89155 Merge "Add tethering client callbacks" 2020-02-19 10:41:30 +00:00
arangelov
934c64ca39 Show a line below the tabs in tabbed view to align with UX mocks.
When tabs are disabled, the lines are still shown to be consistent
with Q.

Fixes: 149574743
Test: manual

Change-Id: I2307230e86da72a3f7c7d90d1454859490def679
2020-02-19 10:41:30 +00:00
Antoan Angelov
1c2e160fe9 Merge "Disable tabbed view support for UsbResolverActivity." 2020-02-19 10:41:03 +00:00
Rubin Xu
e4b77b8bf2 Rename ro.device_owner system property
Bug: 148437300
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Change-Id: I3986de71c3f0f737419702799099ac08bfc48139
2020-02-19 10:40:07 +00:00
TreeHugger Robot
ef342cf392 Merge "Implement StatusBar notification panel APIs for TV" 2020-02-19 10:26:25 +00:00
Hugh Chen
f786c7fa6c Merge "Add Settings.Global.ADVANCED_BATTERY_USAGE_AMOUNT" 2020-02-19 10:20:28 +00:00
Rubin Xu
2108f19b49 Disable Settings toggle if admin has set always-on VPN
If the admin has turned on always-on VPN, do not allow the user
to modify it. In order to distinguish between a user-initiated
always-on request and an admin-initiated one, DevicePolicyManager
needs to track what the admin has set, and provide getter to be
consumed by Settings code.

Bug: 137938969
Test: manually set always-on VPN and check Settings is disabled
Change-Id: Ief7454a2b66c487c23d06c2b4486a7107f8a385a
2020-02-19 10:11:23 +00:00
Vadim Caen
a0fa966a37 Fixed rotation: home and recents animation
Add support for home and recents animations using the fixed
orientation transform.

When the recent animation is started, the target ActivityRecord is
rotated before being displayed.

Bug: 143053092, 146416687, 147469164
Test: atest WmTests:RecentsAnimationControllerTest
                #testRecentViewInFixedPortraitWhenTopAppInLandscape

Change-Id: I194673d621e8c0e8222306915a60f69e4de53b75
2020-02-19 11:11:13 +01:00
Automerger Merge Worker
3cea47c781 Merge "Fix usage of annotations in TetheringLib" am: 91bb789c20 am: a4dbd9a897
Change-Id: I79463f501e21d2e757956a13ded7432ff45b72bc
2020-02-19 10:10:30 +00:00
Automerger Merge Worker
42dbff65d6 Merge "Use framework-tethering-stub instead of framework-tethering" am: 3e4ab5c2b5 am: 101b4e2bb5
Change-Id: I42e51c703c47bdb5e589747047b5a4ef77a9ed82
2020-02-19 10:10:15 +00:00
Automerger Merge Worker
b9a8a92364 Merge "Add TetheringTests to postsubmit" am: a0c1281870 am: 2d89fa53d3
Change-Id: I6a13be525fbe95485d1b49043ad3fd769d5d79d1
2020-02-19 10:09:43 +00:00
TreeHugger Robot
1ad9e57d97 Merge "Import translations. DO NOT MERGE" 2020-02-19 10:07:22 +00:00
Automerger Merge Worker
a4dbd9a897 Merge "Fix usage of annotations in TetheringLib" am: 91bb789c20
Change-Id: Ic033a5f93c5483eedbbaff6051a8b68a1c8b67db
2020-02-19 09:55:15 +00:00
Automerger Merge Worker
101b4e2bb5 Merge "Use framework-tethering-stub instead of framework-tethering" am: 3e4ab5c2b5
Change-Id: I2caaa5f804a510bcc18822b784c129e9b058ea03
2020-02-19 09:54:51 +00:00
Automerger Merge Worker
2d89fa53d3 Merge "Add TetheringTests to postsubmit" am: a0c1281870
Change-Id: I67c2de8d2af1f08459646c2857c8669cec01de80
2020-02-19 09:54:16 +00:00
Mark Chien
91bb789c20 Merge "Fix usage of annotations in TetheringLib" 2020-02-19 09:54:13 +00:00
Felka Chang
15322da9dc Fix CutoutSpecification logic bug
if the specification contains all of left, top, right, and bottom bind
cutout, the bottom cutout rect return null. But, it should be non-null.

The specification that contains bottom right corner cutout assigned to long
edge in phone like device can't be achieved. But, it should be achieved.

Test:  atest \
    FrameworksCoreTests:android.view.DisplayCutoutTest \
    FrameworksCoreTests:android.view.CutoutSpecificationTest \
    SystemUITests:com.android.systemui.ScreenDecorationsTest \
    CorePerfTests:android.view.CutoutSpecificationBenchmark

Fixes: 149675352

Change-Id: I6c742f93e72627f1d58b8ce971a4b1cc9792d5cf
2020-02-19 17:53:52 +08:00
Mark Chien
3e4ab5c2b5 Merge "Use framework-tethering-stub instead of framework-tethering" 2020-02-19 09:46:24 +00:00
TreeHugger Robot
fd33a24650 Merge "Fix failure in postsubmit" 2020-02-19 09:45:20 +00:00
Ryan Lin
687fb4bcc1 Merge "Don't notify display removed if it's a private virtual display" 2020-02-19 09:42:56 +00:00
Mark Chien
a0c1281870 Merge "Add TetheringTests to postsubmit" 2020-02-19 09:42:55 +00:00
Yo Chiang
a86e1ab30a Check DSU public key with key revocation list
Throw RevocationListFetchException if failed to fetch key revocation
list.
Throw KeyRevokedException if DSU intent or image public key is revoked.
Throw PublicKeyException if getAvbPublicKey() failed.

Bug: 128892201
Test: adb shell am start-activity \
    -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
    -a android.os.image.action.START_INSTALL \
    --el KEY_USERDATA_SIZE 8192 \
    -d file:///storage/emulated/0/Download/aosp_arm64-dsu_test.zip \
    --es KEY_PUBKEY ${IMAGE_KEY}
Test: edit the code so that imageValidationThrowOrWarning() always
Test: throw and observe the logcat and device notification
Change-Id: I33733c019b305c45e7d2511c44ef1d9b446ea52e
2020-02-19 09:32:36 +00:00
Marvin Ramin
6439fa9978 Add HDMI hotplug events to dumpsys hdmi_control
To help with debugging wake-up and HDMI CEC address allocation issues.
Hotplug events and CEC messages will be interleaved in dumpsys
hdmi_control.

This information will be captured in bugreports.

Test: adb shell dumpsys hdmi_control
BUG=149679124

Change-Id: Ic918155b00e242b40c88d72089479127ba095b37
2020-02-19 10:10:46 +01:00