194 Commits

Author SHA1 Message Date
Jeff Sharkey
52b9862f87 Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script that
identifies relevant "include" directives.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
Change-Id: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
2020-12-08 08:36:28 -07:00
Dorin Drimus
d3b9e120a1 Add QUERY_ALL_PACKAGES permission to VpnDialogs
This avoids NameNotFoundException when calling VpnConfig.getVpnLabel from Android 11+ (R+)

Bug: 172041314
Change-Id: I27bfa457803a6f974772dd2861c725ca6fa4f84f
Test: Manual. Connect to a VPN and trigger the vpn dialogs
2020-10-30 11:36:47 +00:00
Benedict Wong
418017e5f9 Add separate user consent for Platform VPNs
This change adds a new VPN user consent flow (using the same text) for
granting the lesser OP_ACTIVATE_PLATFORM_VPN. A new
PlatformVpnConfirmDialog is created as a subclass to preserve all logic,
but ensure the right appop is granted for the relevant dialog.

Intent extras were considered, but are inherently unsafe, since the
caller may add any extras that they would want.

Bug: 144246835
Test: FrameworksNetTests passing
Change-Id: Ia6f36207d43c3748f938430c2780dcf29e5623f3
2020-02-03 19:05:23 -08:00
Bill Yi
24e6c9e988 Import translations. DO NOT MERGE
Change-Id: I6ac5c07de195270ca97818e3fcdb265306344dea
Auto-generated-cl: translation import
2019-12-24 14:13:36 -08:00
paulhu
a6af6b6c2a Replace the permission of internal connectivity checks
A number of connectivity checks that protect system-only methods
check for CONNECTIVITY_INTERNAL, but CONNECTIVITY_INTERNAL is a
signature|privileged permission. We should audit the permission
checks, and convert checks that protect code that should not be
called outside the system to a signature permission. So replace
all CONNECTIVITY_INTERNAL to other proper permissions.

Bug: 32963470
Test: atest FrameworksNetTests NetworkPolicyManagerServiceTest
Change-Id: I8f2dd1cd0609056494eaf612d39820e273ae093f
2019-12-04 11:45:51 +08:00
Bill Yi
ed7dd76360 Import translations. DO NOT MERGE
Change-Id: Ic931f68838c8923f8636ddd98dee4b6596db7bd0
Auto-generated-cl: translation import
2019-08-09 14:56:34 -07:00
Bill Yi
06163cdc5c Import translations. DO NOT MERGE
Change-Id: I3517370be2c7846effe027bc7cf0832da7d02082
Auto-generated-cl: translation import
2019-06-07 20:59:32 -07:00
Bill Yi
657799ce40 Import translations. DO NOT MERGE
Change-Id: Id6795c744002b60342b90cac78959a76f7b8fcfb
Auto-generated-cl: translation import
2019-06-01 00:46:13 -07:00
Chalard Jean
f592232744 Merge "Protect VPN dialogs against overlay." into qt-dev am: e02360b53a am: aa57c60fca
am: f03e28b18b

Change-Id: If25794f4ac543deb68d6087854ae040b8205db9b
2019-05-27 11:10:51 -07:00
Chalard Jean
aa57c60fca Merge "Protect VPN dialogs against overlay." into qt-dev
am: e02360b53a

Change-Id: Ic4836367e0664c9dd0c8b1a35260b1332060674f
2019-05-26 22:37:14 -07:00
Chalard Jean
e02360b53a Merge "Protect VPN dialogs against overlay." into qt-dev 2019-05-27 05:28:27 +00:00
Bill Yi
371c1833b3 Import translations. DO NOT MERGE
Change-Id: Id0cf694accf1faa0b6217c8ea0c4111011b18419
Auto-generated-cl: translation import
2019-05-26 05:26:35 -07:00
Bill Yi
7f3d589432 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2330c413710dcbfc212b05f7463c71954c4a0552
2019-05-25 00:25:37 -07:00
Chalard Jean
a578b68968 Protect VPN dialogs against overlay.
Bug: 130568701
Test: manual. After this, can't display on top of it
Change-Id: Ib032f800edb0416cc15f01a34954340d0d0ffa78
(cherry picked from commit 4e80dc2861614d25a1f957f50040a8cf04812d11)
2019-05-20 15:53:31 +09:00
Bill Yi
1ac38ef77e Import translations. DO NOT MERGE
Change-Id: Ifa5ce2bfa9b0af41e6740c172a6cf0bf2c1cbdab
Auto-generated-cl: translation import
2019-05-09 08:16:53 -07:00
Bill Yi
c81afa6b69 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ida116558080776da1c61709d456639ecbbc0ff12
2019-05-04 11:08:13 -07:00
Bill Yi
400dc588d4 Import translations. DO NOT MERGE
Change-Id: I4481f3b0737f32e3d7962ec95e5c71b69f7f5dc7
Auto-generated-cl: translation import
2019-04-27 15:28:22 -07:00
Bill Yi
6a354f44c4 Import translations. DO NOT MERGE
Change-Id: I67e60312a980b86f4952d650ebacb061558859f2
Auto-generated-cl: translation import
2019-04-20 04:57:47 -07:00
Bill Yi
7e3b5255ef Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4210f70423d97a8a3d8749056c94234e6376690b
2019-04-17 16:19:49 -07:00
Pavel Grafov
79852c7483 Make VPN key icon visible in dark theme.
Bug: 129463858
Test: manual
Change-Id: I423aeaf5296f53e44817b1a92138c3ba3dff0786
2019-03-29 16:39:59 +00:00
Pavel Grafov
c45ca9f07a Make VPN dialogs respect dark theme.
Bug: 124441714
Test: manual
Change-Id: I0f2a7e94b2a8dec4b7f9ab747c3f19ab8f3e81c0
2019-03-26 13:35:09 +00:00
Sasha Smundak
df848ac224 Convert Android.mk file to Android.bp
See build/soong/README.md for more information.

Bug: 122332340
Test: treehugger
Change-Id: I4ccc0a2e13fc49a0109e9823fbcb4077e11455d5
2019-02-08 15:13:25 -08:00
Bill Yi
e07e435579 Import translations. DO NOT MERGE
Change-Id: I2af7b078ad48ac1f68aec26dd682ddcf04628673
Auto-generated-cl: translation import
2019-02-02 14:26:51 -08:00
Pavel Grafov
3f4d057858 Merge "VpnDialogs should be able to control always-on VPN." am: d5d7492040 am: 09aa059ec4
am: c97f2a7c71

Change-Id: Ib0d3fea2da62271ff7e9fc92738ae4b0a1270182
2019-01-30 12:28:07 -08:00
Pavel Grafov
c97f2a7c71 Merge "VpnDialogs should be able to control always-on VPN." am: d5d7492040
am: 09aa059ec4

Change-Id: I3d2f5c5a7bc199551aad1ddb656dc076e3121fb3
2019-01-30 12:13:46 -08:00
Pavel Grafov
446a678adb VpnDialogs should be able to control always-on VPN.
Bug: 77468593
Test: atest HostsideVpnTests#testIsAlwaysOnIsLockdown
Change-Id: I0a0c6b138c748a6cb8681c20c137f70ee1fc6cf9
2019-01-30 17:11:33 +00:00
Bill Yi
425708bc4d Import translations. DO NOT MERGE
Change-Id: I0402d2a75550dce8af5c79d7e2de42d69e69fb16
Auto-generated-cl: translation import
2019-01-12 02:27:03 -08:00
Bill Yi
043f12a26e Import translations. DO NOT MERGE
Change-Id: I595712a2684b7896a933e2dbe20b6d48c06e7efb
Auto-generated-cl: translation import
2018-12-06 03:51:44 -08:00
Bill Yi
6fd78c345e Import translations. DO NOT MERGE
Change-Id: I9369d6182cc78aff0534c22c06180b1d417668a3
Auto-generated-cl: translation import
2018-10-31 11:44:08 -07:00
Bill Yi
1839e0b194 Import translations. DO NOT MERGE
Change-Id: Ic1867505743cad61f0d2c7722dbfe59efe97d0d3
Auto-generated-cl: translation import
2018-10-14 22:34:46 -07:00
Bill Yi
490e7a01cf Import translations. DO NOT MERGE
Change-Id: Iab3c347f57aea747e2f06c612065cb618a497daa
Auto-generated-cl: translation import
2018-09-12 06:04:12 -07:00
Bill Yi
e1f02ade01 Import translations. DO NOT MERGE
Change-Id: I21a3dc1ce72cb2060074404a23ed69f0994174cd
Auto-generated-cl: translation import
2018-09-08 11:52:12 -07:00
Bill Yi
e3a5269174 Import translations. DO NOT MERGE
Change-Id: I6037cb4eb2b330656f5ca8cb70a873996c1a351b
Auto-generated-cl: translation import
2018-08-14 02:47:01 -07:00
Bill Yi
51ce02c675 Import translations. DO NOT MERGE
Change-Id: I061fbc31456d7c98f10a93405f27db3be22f7c9c
Auto-generated-cl: translation import
2018-08-08 09:44:12 -07:00
Evan Laird
c5f3e24f15 Use framework VPN icon in VpnDialogs package
The old png doesn't match the new hotness

Test: visual
Bug: 109754687
Change-Id: Ifee64136d32b8d7e9547709de9d276c077f2f19e
2018-06-18 18:26:41 -04:00
Bill Yi
874c6096a4 Import translations. DO NOT MERGE
Change-Id: Ida58a92a8e6f2f11b93ce9cf16d6990298c63c4c
Auto-generated-cl: translation import
2018-06-01 11:35:45 -07:00
Bill Yi
e981fa6e6b Import translations. DO NOT MERGE
Change-Id: I15039089deb0217ba3e96fa97007293972c42b8d
Auto-generated-cl: translation import
2018-04-21 02:25:08 -07:00
Bill Yi
6d6f8af829 Import translations. DO NOT MERGE
Change-Id: I1e4d08d73838ab003c1c6a0ff9582c3b90dc2f89
Auto-generated-cl: translation import
2018-04-12 05:55:22 -07:00
Bill Yi
afdde515c6 Import translations. DO NOT MERGE
Change-Id: I37b146bec45bab3440b338fd1d745a843eb37437
Auto-generated-cl: translation import
2018-04-04 10:40:11 -07:00
Bill Yi
d1e2b86b42 Import translations. DO NOT MERGE
Change-Id: I1080b93e000391203bb900a6f0ca509faf6e9acb
Auto-generated-cl: translation import
2018-03-23 13:50:19 -07:00
Bill Yi
561f820e6a Import translations. DO NOT MERGE
Change-Id: I0301eb0adc05a04ed8e1716f5f176be445e525c6
Auto-generated-cl: translation import
2018-03-19 02:52:15 -07:00
Anton Hansson
ab6ec61251 frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 15:13:23 +00:00
Bill Yi
e999aa16f3 Import translations. DO NOT MERGE
Change-Id: Ieff91a5d73b90c2c07fa7ced06178ab4c74e723e
Auto-generated-cl: translation import
2018-02-26 15:11:54 -08:00
Bill Yi
9e9753cc0c Import translations. DO NOT MERGE
Change-Id: If342c295e2b514414c1540673c7ffcf85d60b83e
Auto-generated-cl: translation import
2018-02-22 04:29:54 -08:00
Bill Yi
71e118d4e3 Import translations. DO NOT MERGE
Change-Id: If8ac5eb5604380c537ddfa2ae118b7fc3f873211
Auto-generated-cl: translation import
2018-01-18 22:34:01 -08:00
Bill Yi
6fc1571f58 Import translations. DO NOT MERGE
Change-Id: I187ddfcd5388173662e45da5ef3f19a1d17be32c
Auto-generated-cl: translation import
2018-01-17 23:23:21 -08:00
Bill Yi
443ada4588 Import translations. DO NOT MERGE
Change-Id: I28c45387fb290bfaa89b9cded4b213dc28261f16
Auto-generated-cl: translation import
2018-01-10 17:45:11 -08:00
Bill Yi
0a3839238d Import translations. DO NOT MERGE
Change-Id: Ida521b3c315a394d047b4b6a74f1dd621990475a
Auto-generated-cl: translation import
2017-12-18 18:13:26 -08:00
Bill Yi
2e9422b497 Import translations. DO NOT MERGE
Change-Id: I341283c0e4a42a3a61f771a0c3a7e81e3e53b0c5
Auto-generated-cl: translation import
2017-12-07 18:43:32 -08:00
Bill Yi
7c1755a3ff Import translations. DO NOT MERGE
Change-Id: I4818a2fc0bad121ca9bde83c9478a8734dd20c44
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-11-06 22:55:05 -08:00