Commit Graph

8029 Commits

Author SHA1 Message Date
Bradley Allen
9920ad38f6 Merge "docs: Added links to the Android 11 summary pages on developer.android.com." into rvc-dev am: 5d7be413bc am: 7fad6c94d6 am: 86b4867913
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12548368

Change-Id: I18cf6a43e0e89bc6d8a0833fa797f6f39fabc153
2020-09-10 16:23:56 +00:00
Bradley Allen
86b4867913 Merge "docs: Added links to the Android 11 summary pages on developer.android.com." into rvc-dev am: 5d7be413bc am: 7fad6c94d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12548368

Change-Id: I5c439afb2294cbae80660178dce46d4f2cd3300a
2020-09-10 16:02:36 +00:00
Bradley Allen
7fad6c94d6 Merge "docs: Added links to the Android 11 summary pages on developer.android.com." into rvc-dev am: 5d7be413bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12548368

Change-Id: Ib44d0aee6a87a79dcc668337c945d67678e4c43d
2020-09-10 15:51:51 +00:00
Bradley Allen
5d7be413bc Merge "docs: Added links to the Android 11 summary pages on developer.android.com." into rvc-dev 2020-09-10 15:23:01 +00:00
Martijn Coenen
cf38e32ef4 Merge "Don't kill for REQUEST_INSTALL_PACKAGES on default/error mode transition." into rvc-qpr-dev am: f902374308
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12419090

Change-Id: If07ef71f7c175c32096631eb9aea1f00636a1713
2020-09-10 10:49:11 +00:00
Martijn Coenen
f902374308 Merge "Don't kill for REQUEST_INSTALL_PACKAGES on default/error mode transition." into rvc-qpr-dev 2020-09-10 10:21:49 +00:00
Seigo Nonaka
f192ef78ae Accept repeated locale as an input of LocaleList construction. am: 41b1674f77 am: 8b4cd9aef3 am: c0b541b0ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12540040

Change-Id: I1d7f2cf3d005534c841e16d46fdd5096ef5047e0
2020-09-09 21:29:29 +00:00
Seigo Nonaka
c0b541b0ec Accept repeated locale as an input of LocaleList construction. am: 41b1674f77 am: 8b4cd9aef3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12540040

Change-Id: If6140b007349d0c4be79c98acc816c9de3c55e61
2020-09-09 20:57:20 +00:00
Seigo Nonaka
8b4cd9aef3 Accept repeated locale as an input of LocaleList construction. am: 41b1674f77
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12540040

Change-Id: I69509d7ddadb1787f56ce31f0ff2fb617537b2ce
2020-09-09 20:33:10 +00:00
TreeHugger Robot
6e480c0dde Merge "Accept repeated locale as an input of LocaleList construction." into rvc-qpr-dev am: b303b8eae1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12540550

Change-Id: I3283505c572d270a2a7b50e4fa83f747ab3d09cd
2020-09-09 20:19:08 +00:00
Bradley Allen
cefc89c911 docs: Added links to the Android 11 summary pages on developer.android.com.
Test: http://go/forrest-run/L06800000688439076
Bug: 163618180
Change-Id: Ibe136020df4ef60183f3726fc0f6336b58c37f99
2020-09-09 17:41:07 +00:00
Seigo Nonaka
373ac57b2d Accept repeated locale as an input of LocaleList construction.
Repeated locale has not been accepted and IllegalArgumentException
is thrown. Instead of throwing exception, dropping repeated locale
instead.

Bug: 152410253
Test: atest LocaleListTest
Change-Id: I80f243678ac3024eaeb0349f770cff897df7f332
2020-09-08 22:35:39 +00:00
Seigo Nonaka
41b1674f77 Accept repeated locale as an input of LocaleList construction.
Repeated locale has not been accepted and IllegalArgumentException
is thrown. Instead of throwing exception, dropping repeated locale
instead.

Bug: 152410253
Test: atest LocaleListTest
Change-Id: I80f243678ac3024eaeb0349f770cff897df7f332
2020-09-08 20:22:48 +00:00
Treehugger Robot
f5d56737ea Merge "android.os.Binder: remove unused getFinalizer" am: c59758ab41 am: e98c205ba8 am: 4d279afec1 am: 402ef20f46
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418956

Change-Id: If247aae8c28671f63f0101cc96f1443b56173dee
2020-09-08 17:06:18 +00:00
Treehugger Robot
402ef20f46 Merge "android.os.Binder: remove unused getFinalizer" am: c59758ab41 am: e98c205ba8 am: 4d279afec1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418956

Change-Id: I1ea049a26712a8db06dd3f3c9bbaee7884ec5c30
2020-09-08 16:48:11 +00:00
Treehugger Robot
4d279afec1 Merge "android.os.Binder: remove unused getFinalizer" am: c59758ab41 am: e98c205ba8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418956

Change-Id: Ia3996b2e60afdb8944b431501ee90e3c1997b8c2
2020-09-08 16:22:14 +00:00
Treehugger Robot
e98c205ba8 Merge "android.os.Binder: remove unused getFinalizer" am: c59758ab41
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1418956

Change-Id: Ia8f7da7e819eaa5080412efe86b7c9d96bb7b971
2020-09-08 15:45:15 +00:00
Treehugger Robot
c59758ab41 Merge "android.os.Binder: remove unused getFinalizer" 2020-09-08 15:26:56 +00:00
Martijn Coenen
27c52fcaa8 Don't kill for REQUEST_INSTALL_PACKAGES on default/error mode
transition.

When handling unknown sources, PackageManager transitions from
MODE_DEFAULT to MODE_ERRORED, causing us to kill the app before the user
has even decided whether to allow external sources or not.

Since MODE_DEFAULT and MODE_ERRORED are the same from a storage point of
view, ignore transitions between the two.

This required some AppOps changes to store the previous mode and pass it
in.

Bug: 162849988
Test: run Epic installer
Change-Id: Ic866216f877e9b727fe70556f66dd998966fe0a2
Merged-In: Ic866216f877e9b727fe70556f66dd998966fe0a2
2020-09-08 14:23:31 +00:00
Steven Moreland
2e4e636f87 android.os.Binder: remove unused getFinalizer
This native method is unimplemented, and it is never called.

Bug: N/A
Test: N/A
Change-Id: I6da9da9dc47051bd7d1591a8e88272739e06cf4c
2020-09-04 00:30:55 +00:00
Xin Li
c8c8e8e8be Merge RP1A.200720.011
Bug: 167588565
Merged-In: Iec7a26ecd68aca9c7a38cc8f441197a8237b0c8c
Change-Id: Ia8f5f008bc1f77115b644ab996aedc892fab68e7
2020-09-02 12:34:37 -07:00
Yo Chiang
52a88df94a Merge "Check error status after installing each DSU partition" am: fbd85db85d am: 73d5afb2cb am: dbe6d55157 am: 9b2f226473
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1404669

Change-Id: I43354358dacaf1b5f39cffab1717cef9774e7d18
2020-09-02 06:16:09 +00:00
Yo Chiang
9b2f226473 Merge "Check error status after installing each DSU partition" am: fbd85db85d am: 73d5afb2cb am: dbe6d55157
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1404669

Change-Id: I06c9dc97b6cf55884718357cdf3b0e03af583ba6
2020-09-02 05:59:24 +00:00
Yo Chiang
dbe6d55157 Merge "Check error status after installing each DSU partition" am: fbd85db85d am: 73d5afb2cb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1404669

Change-Id: Ife736c00f9491d3d4768a8d36833b7e6d34ab63f
2020-09-02 05:40:55 +00:00
Yo Chiang
73d5afb2cb Merge "Check error status after installing each DSU partition" am: fbd85db85d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1404669

Change-Id: I1ebc08ebf05815ea17c8bbdca5cb745fa3aca40f
2020-09-02 04:10:14 +00:00
Xin Li
628590d7ec Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27
Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-31 21:21:38 -07:00
Marco Ballesio
bf61b8c858 Merge changes from topic "cgroup v2 freezer frameworks" into rvc-qpr-dev am: 7176835583
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12392113

Change-Id: I2f87b8c3fb60848bf8e9266116ddccbf0eb68f30
2020-08-28 18:16:01 +00:00
Marco Ballesio
b3cd567ab3 freezer: switch to cgroup v2 freezer am: 6ca459dc17
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12392112

Change-Id: Ic980cd9dd6dbaf94b69c428615cccd58dc9c6885
2020-08-28 18:15:52 +00:00
Marco Ballesio
12f3e8d6d4 freezer: reentrant enable/disable method
the app freezer state can be toggled in multiple situations when a
debugging tool like heapdump is invoked, or when system_server dumps its
binder connections. All these uses are potentially concurrent and a
robust method to handle reentrancy is necessary to avoid leaving the
freezer in a state incompatible with a specific operation.

This patch moves freezer enable and disable operations from Process to
CachedAppOptimizer (ActivityManager), introduces a new ActivityManager API
to centralize all freezer state changes to ActivityManager and modifies
client code accordingly.

Bug: 151225245
Test: manually verified that no regression are introduced on freezer
behavior, verified that concurrent behavior is handled properly

Change-Id: I7d588cc6e0499012dce64ed4e42ff2adb336062d
Merged-In: I7d588cc6e0499012dce64ed4e42ff2adb336062d
2020-08-27 16:05:57 -07:00
Marco Ballesio
6ca459dc17 freezer: switch to cgroup v2 freezer
cgroup v2 freezer has a single hierarchy and is mounted under
/sys/fs/cgroup. Proper v2 freezer support in a system can be checked by
verifying that the file "cgroup.freeze" is present in a freezer subgroup.

Bug: 154548692
Test: manually verified that processes are frozen and unfrozen

Change-Id: Ib966a957490ec986eb14aba6492832c96e147896
Merged-In: Ib966a957490ec986eb14aba6492832c96e147896
2020-08-27 16:05:41 -07:00
Yo Chiang
55668c1a49 Check error status after installing each DSU partition
Add DynamicSystemManager.closePartition() that closes a partition
installation and returns its error status.
InstallationAsyncTask may call this method to do error checking.

Bug: 165471299
Test: Observe the logcat of a failed DSU installation
Change-Id: I9d155c70c6e490899a4acfd35c8096549af005d4
2020-08-25 07:48:16 +00:00
TreeHugger Robot
21e0928368 Merge "Add systrace tag for system property" into rvc-dev-plus-aosp am: baaf7f8540
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12406766

Change-Id: I51d7b18e3dd4c2ab5f8686189feaf4b30fab7b2f
2020-08-20 07:46:27 +00:00
Bowgo Tsai
7dc8bf4acf Add systrace tag for system property
Introduce a new systrace tag, TRACE_TAG_SYSPROP, for use with
system property.

Bug: 147275573
Test: build
Change-Id: Id78992d238a73257bb9b80bfaa6bbfeb16f477d8
Merged-In: Id78992d238a73257bb9b80bfaa6bbfeb16f477d8
(cherry picked from commit 98d0d4ba03)
2020-08-19 06:51:36 +00:00
Bowgo Tsai
34750c7c5a Add systrace tag for system property
Introduce a new systrace tag, TRACE_TAG_SYSPROP, for use with
system property.

Bug: 147275573
Test: build
Change-Id: Id78992d238a73257bb9b80bfaa6bbfeb16f477d8
Merged-In: Id78992d238a73257bb9b80bfaa6bbfeb16f477d8
(cherry picked from commit 98d0d4ba03)
2020-08-19 13:10:36 +08:00
TreeHugger Robot
5d8f13267b Merge "Rename driver build time manifest flag." into rvc-dev-plus-aosp am: f2502dcd60
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12404439

Change-Id: I96b6bdef10b75b466fe3d654d44dc21e4399b06a
2020-08-19 04:36:18 +00:00
Peiyong Lin
b0ce703e9a Rename driver build time manifest flag.
The driver apk is an implication of updatable, hence the word updatable
is redundant.

Bug: b/164449016
Test: build
Change-Id: Ia9477ed9277e20540f79e94e7229dc3760025eb8
2020-08-18 19:25:15 -07:00
TreeHugger Robot
f6d2c0abc5 Merge "Rename game driver to updatable driver." into rvc-dev-plus-aosp am: 377b7f318d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12375470

Change-Id: Ief345ee98cd8758baa1adde984abe01a753dce5c
2020-08-17 20:25:52 +00:00
Peiyong Lin
b18a2fccc3 Rename game driver to updatable driver.
Game driver is considered a production name. We should use the term
updatable driver instead of the production name.

Bug: b/164449016
Test: build
Change-Id: I787f97b4801dcc7b5ec2acd569a7ce284c9a1f18
2020-08-14 10:44:59 -07:00
Sudheer Shanka
bdfb45d841 Merge "Update language to comply with Android’s inclusive language guidance." 2020-08-13 19:46:49 +00:00
Sudheer Shanka
e64b3e7ba8 Merge "Update language to comply with Android’s inclusive language guidance." into rvc-dev-plus-aosp am: 7f61eb2622
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12347904

Change-Id: I5b9a25710e5088c525fde0416b770d25017c70b2
2020-08-13 07:14:54 +00:00
Sudheer Shanka
7f61eb2622 Merge "Update language to comply with Android’s inclusive language guidance." into rvc-dev-plus-aosp 2020-08-13 07:01:06 +00:00
Sudheer Shanka
759c96a3d4 Update language to comply with Android’s inclusive language guidance.
See https://source.android.com/setup/contribute/respectful-code for reference

Leaving the power save whitelists as is for now. These will be handled
in a follow-up cl.

Bug: 161896447
Test: atest ./hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Test: atest ./services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java
Change-Id: I5059d8362a02a7b4622c71fdf15297af87c5a3dd
Merged-In: I5059d8362a02a7b4622c71fdf15297af87c5a3dd
Exempt-From-Owner-Approval: clean cherrypick
(cherry picked from commit 76e523aa00)
2020-08-13 06:59:40 +00:00
Bradley Allen
94d6fae288 Merge "docs: Removed Q preview language and added a link to the Android 10 page on developer.android.com." into rvc-dev am: 6dfedd05a7 am: d015d7299a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12347462

Change-Id: Idfa103d97b06b8cee627909e5de387acd82f0173
2020-08-12 16:57:07 +00:00
Bradley Allen
53cb3689e3 Merge "docs: Removed Q preview language and added a link to the Android 10 page on developer.android.com." into rvc-dev am: 6dfedd05a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12347462

Change-Id: I7745361a5d9fcda8359b8245a72d2f75e59f30c4
2020-08-12 16:46:33 +00:00
Bradley Allen
d015d7299a Merge "docs: Removed Q preview language and added a link to the Android 10 page on developer.android.com." into rvc-dev am: 6dfedd05a7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12347462

Change-Id: I7bd9a90e3b66e4a842bdcaa33f62328fd9928af7
2020-08-12 16:46:29 +00:00
Bradley Allen
462481663c docs: Removed Q preview language and added a link to the Android 10 page on developer.android.com.
Test: http://go/forrest-run/L62500000661914456
Bug: 149267624
Change-Id: I73b92cf0af8f78117448db9a89d7685f45bc512d
2020-08-11 18:56:15 +00:00
Treehugger Robot
6a6e0c282d Merge "Parcelable getStability SystemApi MODULE_LIBRARIES" am: e3b0b6d007 am: 1e16995094 am: 2b97b69661
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392003

Change-Id: Ib21378fd78ad3f69c7dc9c4270b35e94b6bd64b2
2020-08-10 21:06:59 +00:00
Treehugger Robot
2b97b69661 Merge "Parcelable getStability SystemApi MODULE_LIBRARIES" am: e3b0b6d007 am: 1e16995094
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1392003

Change-Id: Ibd396e7b4d12e1765f71413d730d51997c5b4306
2020-08-10 20:47:00 +00:00
Treehugger Robot
e3b0b6d007 Merge "Parcelable getStability SystemApi MODULE_LIBRARIES" 2020-08-10 20:22:05 +00:00
Sudheer Shanka
d7be375cf1 Update language to comply with Android’s inclusive language guidance.
See https://source.android.com/setup/contribute/respectful-code for reference

Leaving the power save whitelists as is for now. These will be handled
in a follow-up cl.

Bug: 161896447
Test: atest ./hostsidetests/net/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Test: atest ./services/tests/servicestests/src/com/android/server/net/NetworkPolicyManagerServiceTest.java
Change-Id: I5059d8362a02a7b4622c71fdf15297af87c5a3dd
Merged-In: I5059d8362a02a7b4622c71fdf15297af87c5a3dd
2020-08-10 04:13:11 +00:00