OSDN Git Service
Brad Ebinger [Fri, 29 Mar 2019 18:23:35 +0000 (18:23 +0000)]
Merge "Change ProvisioningManager API as per review"
Treehugger Robot [Fri, 29 Mar 2019 18:22:12 +0000 (18:22 +0000)]
Merge "Minor change for async DNS API"
Shuo Qian [Fri, 29 Mar 2019 18:11:26 +0000 (18:11 +0000)]
Merge "Emergency Number format"
Sooraj Sasindran [Fri, 29 Mar 2019 17:21:54 +0000 (17:21 +0000)]
Merge "Update documentation for updateAvailableNetworks"
Lorenzo Colitti [Fri, 29 Mar 2019 14:46:11 +0000 (14:46 +0000)]
Merge "Unremove DnsResolver#query method used by external developers"
Treehugger Robot [Fri, 29 Mar 2019 14:04:27 +0000 (14:04 +0000)]
Merge "Fixed NPE in RankingHelper.writeXml. Make sure that mRecords is operated with the object lock."
Ethan_Hu [Tue, 5 Mar 2019 06:58:32 +0000 (14:58 +0800)]
Fixed NPE in RankingHelper.writeXml.
Make sure that mRecords is operated with the object lock.
Bug:
127290258
Test: Repeat to upgrade the App targetversion from less than O to a later version
Change-Id: I70e61c0fcd3071f32a430d45441ffe1376147a5d
Signed-off-by: Ethan_Hu <huyuxin3818@gmail.com>
Merged-In: Ic7f676499425fe54453384d7c03de5d95c03a713
Aaron Huang [Fri, 29 Mar 2019 13:03:20 +0000 (13:03 +0000)]
Merge "apf: Documentation improvements and code optimizations for keepalive filters"
Luke Huang [Fri, 29 Mar 2019 10:01:11 +0000 (18:01 +0800)]
Minor change for async DNS API
do the minor changes to address comments before
Bug:
129395490
Test: atest DnsResolverTest
Change-Id: I56e2e5bc4352ff5c979579247a333a41950079da
Luke Huang [Thu, 28 Mar 2019 05:56:31 +0000 (13:56 +0800)]
Unremove DnsResolver#query method used by external developers
This method was removed as part of addressing API council feedback in b/
129261432
Add back previous DnsResolver#query which is already being used by developers.
Bug:
129395490
Test: atest DnsResolverTest
Change-Id: Ic956db204f3940d39d42e1b11dda39e57d356fad
Treehugger Robot [Fri, 29 Mar 2019 09:18:31 +0000 (09:18 +0000)]
Merge "Add version attribute"
Treehugger Robot [Fri, 29 Mar 2019 09:18:13 +0000 (09:18 +0000)]
Merge changes from topic "default_permissions"
* changes:
Change the package name
Add maxOccurs
Luke Huang [Fri, 29 Mar 2019 08:45:19 +0000 (08:45 +0000)]
Merge "Use IDnsResolver instead of INetd for resolver related binder commands"
Mark Chien [Fri, 29 Mar 2019 06:15:11 +0000 (06:15 +0000)]
Merge "[KA09] add keepalive offload permission to shell"
Luke Huang [Fri, 29 Mar 2019 03:15:32 +0000 (03:15 +0000)]
Merge "Fix cancellation race problem for aysnc DNS API"
sqian [Fri, 15 Mar 2019 02:42:38 +0000 (19:42 -0700)]
Emergency Number format
Use PhoneNumberUtils#isDialable to check each character.
Bug:
123241078
Test: Treehugger
Change-Id: Icc9083ed4d6cdae22c3ede9433433ac8eeec4918
Merged-In: Icc9083ed4d6cdae22c3ede9433433ac8eeec4918
(cherry picked from commit
0197a96e8add2658d424d5d318b383281d702add)
Varun Anand [Fri, 29 Mar 2019 00:40:53 +0000 (00:40 +0000)]
Merge changes from topic "vpn_data_accounting"
* changes:
Move BatteryStats and StatsCompanionService to use NetworkStatsService.
NetworkStatsService: Fix getDetailedUidStats to take VPNs into account.
Take all VPN underlying networks into account when migrating traffic for VPN uid.
Sooraj Sasindran [Fri, 22 Mar 2019 22:14:12 +0000 (15:14 -0700)]
Update documentation for updateAvailableNetworks
Update documentation for updateAvailableNetworks
Bug:
128902411
Test: make
Change-Id: Ib6b6d72db3320e6c95f74b9371483f57bc90fee1
Treehugger Robot [Thu, 28 Mar 2019 23:34:34 +0000 (23:34 +0000)]
Merge "Close tethering when UI entitlement fails"
Hans Boehm [Thu, 28 Mar 2019 22:21:00 +0000 (22:21 +0000)]
Merge "Clarify hasSelection description"
Sooraj Sasindran [Thu, 28 Mar 2019 22:13:37 +0000 (22:13 +0000)]
Merge "Change Values for Opportunistic Entry & Exit Thresholds"
Brad Ebinger [Wed, 27 Mar 2019 23:51:59 +0000 (16:51 -0700)]
Change ProvisioningManager API as per review
Bug:
129344996
Test: Manual
Change-Id: I1c41cf1ae622ee24b4bed91c15d194518f91dac7
Evan Tyra [Wed, 27 Mar 2019 22:11:15 +0000 (15:11 -0700)]
Change Values for Opportunistic Entry & Exit Thresholds
Due to the generally higher quality of these networks, we expanded the
entry and exit criteria of opportunistic networks.
Test: Make
Change-Id: Iaac1641db1d6a07bcce6dd194765c79c83a92070
Merged-In: Iaac1641db1d6a07bcce6dd194765c79c83a92070
Treehugger Robot [Thu, 28 Mar 2019 19:56:53 +0000 (19:56 +0000)]
Merge "Migrate frameworks/base/packages/Shell to androidx.test"
Treehugger Robot [Thu, 28 Mar 2019 18:34:28 +0000 (18:34 +0000)]
Merge "Shutdown device gracefully when net discharging"
Jayachandran Chinnakkannu [Thu, 28 Mar 2019 18:05:53 +0000 (18:05 +0000)]
Merge "Revert "improve mism support for phonestatelistner""
Xiangyu/Malcolm Chen [Thu, 28 Mar 2019 17:54:14 +0000 (17:54 +0000)]
Merge changes from topic "
126637721"
* changes:
Show signal strength of current active subscription
Update document of setSubscriptionEnabled public API.
Clean up shouldHideSubscription API
Varun Anand [Fri, 25 Jan 2019 02:03:00 +0000 (18:03 -0800)]
Move BatteryStats and StatsCompanionService to use NetworkStatsService.
This CL is a manual merge of http://ag/c/
6015966/3.
Bug:
113122541
Bug:
120145746
Test: atest FrameworksNetTests
Test: manual test: verified that BatteryStats are correctly accounting
for VPN traffic.
Change-Id: I5b07ce70ac58bdcbebc3114bfe9fd411469d57af
Merged-In: I230c1edbf64cfeb3dbb560db368b5e420f7b79a4
Varun Anand [Sat, 19 Jan 2019 03:22:48 +0000 (19:22 -0800)]
NetworkStatsService: Fix getDetailedUidStats to take VPNs into account.
This API is similar to one provided by NetworkStatsFactory with the
difference that NSS also migrates traffic from VPN UID to other apps.
Since traffic can only be migrated over NetworkStats delta, NSS
therefore maintains NetworkStats snapshot across all UIDs/ifaces/tags.
This snapshot gets updated whenever NSS records a new snapshot
(based on various hooks such as VPN updating its underlying networks,
network getting lost, etc.), or getDetailedUidStats API is invoked by
one of its callers.
Bug:
113122541
Bug:
120145746
Test: atest FrameworksNetTests
Test: manually verified that battery stats are migrating traffic off of
TUN (after patching above CL where we point BatteryStats to use this
API).
Change-Id: Ib0f0c2d4d41ee1d7a027ea9da457baaf198d649e
Varun Anand [Mon, 18 Feb 2019 07:43:25 +0000 (23:43 -0800)]
Take all VPN underlying networks into account when migrating traffic for
VPN uid.
Bug:
113122541
Bug:
120145746
Test: atest FrameworksNetTests
Test: Manually verified on device that stats from VPN UID are moved
appropriately based on its declared underlying network set.
Test: vogar --mode app_process --benchmark NetworkStatsBenchmark.java
Change-Id: I9d8d0cc58d18002c1c96f8ddff780ef8dc452d21
Treehugger Robot [Thu, 28 Mar 2019 17:31:14 +0000 (17:31 +0000)]
Merge "To add the Android.bp of ExternalStorageProvider"
Jayachandran Chinnakkannu [Thu, 28 Mar 2019 16:31:19 +0000 (16:31 +0000)]
Revert "improve mism support for phonestatelistner"
This reverts commit
2506ceb71e1535af49fd3495f8eae0bbdfe36c5b.
Reason for revert: DSDS system UI issues (b/
129426477)
Change-Id: Ic0fde0d3bd412868917cdbe74504c3f9cebdc712
Luke Huang [Tue, 26 Mar 2019 07:50:10 +0000 (15:50 +0800)]
Fix cancellation race problem for aysnc DNS API
This problem might cause double-close fd and result in app crash
or unexpected behaviour
Bug:
129317069
Test: atest DnsResolverTest
manual test with delaying response callback/cancel
Change-Id: I223234f527edafc51d34fa6be390419c05def8d8
Mark Chien [Thu, 28 Mar 2019 09:52:52 +0000 (09:52 +0000)]
Merge "Only apply entitlement check to cellular upstream"
Nicolas Geoffray [Thu, 28 Mar 2019 09:27:05 +0000 (09:27 +0000)]
Merge "Revert "Preload non-bootclasspath Java lib ClassLoaders.""
Nicolas Geoffray [Thu, 28 Mar 2019 09:25:11 +0000 (09:25 +0000)]
Revert "Preload non-bootclasspath Java lib ClassLoaders."
This reverts commit
1b11aaaf9ba824dc5df363736d54601e908efec6.
Bug:
128529256
Bug:
127406460
Reason for revert: Breaks FSI
Change-Id: Ie9775779cda7b376c36493f3ce3246eafc672c59
Treehugger Robot [Thu, 28 Mar 2019 07:48:59 +0000 (07:48 +0000)]
Merge "Move the attribute tags"
Chiachang Wang [Thu, 28 Mar 2019 05:37:21 +0000 (05:37 +0000)]
Merge "Align proto naming with server configuration"
markchien [Wed, 23 Jan 2019 09:24:10 +0000 (17:24 +0800)]
[KA09] add keepalive offload permission to shell
This change adds PACKET_KEEPALIVE_OFFLOAD to shell, which allows
shell or code with shell permission identity to use privileged
tcp keepalive offload API.
Bug:
114151147
Test: -atest ConnectivityManagerTest#testCreateTcpKeepalive
-build, flash, boot
Change-Id: Ib6660a5eaa72f83042596481452be4d415383f02
Merged-in: Ib6660a5eaa72f83042596481452be4d415383f02
markchien [Tue, 26 Mar 2019 13:41:59 +0000 (21:41 +0800)]
Close tethering when UI entitlement fails
This is a alternative way for moving TetherService logic
into EntitlementManager[1]. Settings would close tethering
when silent entitlement check fail. To be consistent,
tethering should also be closed if UI entitlement check
fails.
[1] https://android-review.googlesource.com/c/platform/frameworks/base/+/928136
bug:
129330738
Test: -build, flash, boot,
-atest EntitlementManagerTest
-manual test with carrier SIM
Change-Id: Idfc35461b6359f3a624e78d49b6f73812db6d8ab
Treehugger Robot [Thu, 28 Mar 2019 03:28:19 +0000 (03:28 +0000)]
Merge "support msim for captiveportal notification"
markchien [Fri, 7 Sep 2018 08:19:12 +0000 (16:19 +0800)]
Only apply entitlement check to cellular upstream
Instead of doing a tethering entitlement check whenever we turn
on tethering, provisioning result should only affect mobile
upstream. List behavior changes below:
1. Change tether entitlement check from pre-flight check to
run-time check.
2. Only run entitlement check when upstream is mobile.
3. Move schedule entitlement re-check logic from Settings to
framework.
4. Run all entitlement thing in TetherMaster thread to avoid
multi-thread problem.
Test: -atest FrameworksNetTests
-build, flash, booted
bug:
111490073
Change-Id: Ic2980b4d6864d6f7287816c43eb6cf7a5cdec541
Merged-in: Ic2980b4d6864d6f7287816c43eb6cf7a5cdec541
felkachang [Tue, 16 Oct 2018 12:46:26 +0000 (20:46 +0800)]
To add the Android.bp of ExternalStorageProvider
ExternalStorageProvider doesn't have any tests yet.
1. Convert Android.mk to Android.bp
2. Add init testcase
3. formatted by bpfmt -s -w Android.bp
Fixes:
117812397
Bug:
122332340
Test: atest ExternalStorageProviderTests
Change-Id: I74235832f453110742de0b15cb14fac7514ecf0e
Merged-In: I74235832f453110742de0b15cb14fac7514ecf0e
Treehugger Robot [Thu, 28 Mar 2019 01:33:58 +0000 (01:33 +0000)]
Merge "Update Android Beam deprecated API description"
Junyu Lai [Thu, 28 Mar 2019 00:53:20 +0000 (00:53 +0000)]
Merge changes I0baf582f,I4bba01ba
* changes:
Block unpriviledged apps which create keepalives with null fd
Fix keepalive don't get removed when lower layer error
Treehugger Robot [Thu, 28 Mar 2019 00:35:27 +0000 (00:35 +0000)]
Merge "Fix glob syntax"
Remi NGUYEN VAN [Thu, 28 Mar 2019 00:14:31 +0000 (00:14 +0000)]
Merge "Fix message names in dumpsys network_stack"
Steven Moreland [Wed, 27 Mar 2019 22:59:49 +0000 (22:59 +0000)]
Merge "Preload non-bootclasspath Java lib ClassLoaders."
Yifan Hong [Thu, 14 Feb 2019 00:00:43 +0000 (16:00 -0800)]
Shutdown device gracefully when net discharging
Instead of checking the presence of power supplies, check
battery status to determine whether it should
shutdown. In detail, shutdown if
battery level == 0 && status != charging
Change-Id: Ie3d93d305e40f2f45d60538e7831f00be0380544
Fixes:
115715604
Test: boots
Malcolm Chen [Wed, 27 Feb 2019 00:49:56 +0000 (16:49 -0800)]
Show signal strength of current active subscription
For grouped primary and opportunistic use-case, if both are active,
mobile signal bar should by default show which one is currently
used for Internet data. Unless carrier set it otherwise -- if they
want to always show signal bar of primary subscription.
Bug:
123780907
Test: manual
Change-Id: I62e298e7b9bdc82dd44f0c8ae783c623e101b0ef
Merged-In: I62e298e7b9bdc82dd44f0c8ae783c623e101b0ef
Malcolm Chen [Fri, 8 Mar 2019 23:27:38 +0000 (15:27 -0800)]
Update document of setSubscriptionEnabled public API.
Bug:
126391008
Test: build
Change-Id: Iffb7895f94f8d0b2d071edb1e06c8e99be14be4f
Merged-In: Iffb7895f94f8d0b2d071edb1e06c8e99be14be4f
Malcolm Chen [Thu, 28 Feb 2019 22:07:59 +0000 (14:07 -0800)]
Clean up shouldHideSubscription API
Combine shouldHideSubscription and isInvisibleSubscription
for better readability.
Bug:
126637721
Test: manual - use test app to call SubscriptionManager APIs to make
sure they return correct values.
Change-Id: I0deb463430a6825db40ec00abac49cb662e79437
Merged-In: I0deb463430a6825db40ec00abac49cb662e79437
Youming Ye [Wed, 27 Mar 2019 21:12:58 +0000 (21:12 +0000)]
Merge "Enable Telecom to bind third party InCallServices."
Xiangyu/Malcolm Chen [Wed, 27 Mar 2019 19:06:12 +0000 (19:06 +0000)]
Merge changes I592d3538,I791fd630
* changes:
Add @Nullable on SubscriptionInfo#getGroupUuid
Adding nullability annotation.
Hayden Gomes [Wed, 27 Mar 2019 19:01:48 +0000 (19:01 +0000)]
Merge "Moving BT SMS logic to internal telephony"
Colin Cross [Tue, 26 Mar 2019 18:03:05 +0000 (11:03 -0700)]
Fix glob syntax
Globs are only intended to support ** as a directory, i.e. **/*.java
not **.java.
Bug:
129411151
Test: m nothing
Change-Id: I0f6cb7c7ce8cd1ef8c09364c0946ac7157285a4d
Jack Yu [Wed, 27 Mar 2019 16:39:46 +0000 (16:39 +0000)]
Merge "Renamed DataSpecificRegistrationState"
Youming Ye [Tue, 2 Oct 2018 20:24:43 +0000 (13:24 -0700)]
Enable Telecom to bind third party InCallServices.
Changes for Telecom to bind third party companion apps or
automotive ui installed from Play Store. Add new permissions and
settings for the third party InCallService APIs.
Bug:
78174835
Test: Manual
Change-Id: I1b4eff28b9dfd61f1c951d14b6c82395b51fe769
Merged-In: I1b4eff28b9dfd61f1c951d14b6c82395b51fe769
Treehugger Robot [Wed, 27 Mar 2019 14:41:12 +0000 (14:41 +0000)]
Merge "Move tag definitions into policy"
Andrei-Valentin Onea [Wed, 27 Mar 2019 13:40:15 +0000 (13:40 +0000)]
Merge changes from topic "unsupported-internal"
* changes:
Add @UnsupportedAppUsage annotations
Add android internal dirs to hiddenapi-mappings
junyulai [Wed, 27 Mar 2019 03:00:37 +0000 (11:00 +0800)]
Block unpriviledged apps which create keepalives with null fd
Currently, socketKeepalive implementation is accepting null fd
due to backward compatibility with legacy packet keepalive API.
However, due to lack of the fd, the service cannot guarantee the
port is not reused by another app if the caller release the port
for any reason.
Thus, grant the null fd access only for priviledged apps.
This commit also address some comments from aosp/918533.
Bug:
126699232
Test: atest FrameworksNetTests
Change-Id: I0baf582ff4ca8af6082c3754e8dfbcd867f39792
Andrei Onea [Wed, 27 Mar 2019 10:32:55 +0000 (10:32 +0000)]
Add @UnsupportedAppUsage annotations
For packages:
com.android.internal.app
com.android.internal.database
com.android.internal.http
com.android.internal.os
com.android.internal.policy
com.android.internal.util
com.android.internal.view
com.android.internal.view.menu
com.android.internal.widget
com.android.server.net
com.android.server
com.google.android.collect
com.google.android.util
This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.
Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@
Bug:
110868826
Test: m
Merged-In: Ia5306f4713298b46ae3aba6fc9d87fae41f8a593
Change-Id: Ie26033d486033289ad3e010a534a921d29c3b2ca
Andrei Onea [Fri, 22 Mar 2019 14:56:51 +0000 (14:56 +0000)]
Add android internal dirs to hiddenapi-mappings
Bug:
110868826
Test: m hiddenapi-mappings
(cherry picked from commit
77b22e33b6f9f85567bddd420488f0e88fe27bff)
Merged-In: Ie13962cc6a58af88e63a95c7f0d846aceda11f53
Change-Id: Ic6d0f663f79466d0d8692a3ebfe4a9792cd7ca07
Chiachang Wang [Wed, 27 Mar 2019 09:33:52 +0000 (17:33 +0800)]
Align proto naming with server configuration
Update naming as server requirement.
Bug:
128887306
Test: build
Change-Id: Iae46b1e41a66b1ad7d0c166ac52d5442b0c4070d
Luke Huang [Fri, 15 Mar 2019 16:31:46 +0000 (00:31 +0800)]
Use IDnsResolver instead of INetd for resolver related binder commands
migrate resolver related commands from INetd to IDnsResolver
Bug:
126141549
Test: atest FrameworksNetTests ConnectivityServiceTest Nat464XlatTest
atest DnsManagerTest
Change-Id: I559c0c1304d53dde408c062e1a52e742595e7cbe
Steven Moreland [Tue, 19 Mar 2019 03:15:28 +0000 (20:15 -0700)]
Preload non-bootclasspath Java lib ClassLoaders.
This is specifically for HIDL but is applicable to other libs.
Classes on the bootclasspath are implicitly used by apps. For this
reason, many classes should not go there. However, there are some
libraries which are used by many apps/processes which are still
nice to preload the ClassLoaders of.
Now, cacheNonBootclasspathSystemLibs in ApplciationLoaders keeps
a map of jar -> ClassLoader in zygote to be retrieved by child
processes.
Bug:
128529256
Bug:
127406460
Test: boot Pixel 2, verify libs are preloaded and used, try apps that
use these libraries.
Test: grep for ClassLoaderContext errors, for instance:
- ClassLoaderContext shared library size mismatch
- ClassLoaderContext classpath element mismatch
Test: showmap on various processes which use the preloaded libs.
Change-Id: I351bf1679e9a928c10dca860b6cd6cb414c3bb8e
Lorenzo Colitti [Wed, 27 Mar 2019 07:55:35 +0000 (07:55 +0000)]
Merge "Enable more logs for networking"
chen xu [Wed, 27 Mar 2019 01:24:43 +0000 (18:24 -0700)]
support msim for captiveportal notification
Bug:
123025093
Test: Manual
Change-Id: Ie04f3ae9a825ab75077a94b108ac92075b6d4753
Sundong Ahn [Tue, 26 Mar 2019 02:35:27 +0000 (11:35 +0900)]
Change the package name
The "configfile" is added to package name to distinguish classes defined
in java code from classes auto-generated.
Bug:
127435354
Test: make -j && make -j checkapi
Change-Id: I8d6e5c80a3e6eb103ebf1fe7b55a2a13d1629a37
Sundong Ahn [Wed, 27 Mar 2019 06:27:37 +0000 (15:27 +0900)]
Add maxOccurs
The maxOccurs is added to permission element, because the maximum number
of thimes this element can occurs is unbounded
Bug:
127435354
Test: m -j && make -j checkapi
Change-Id: I979f8020634c14c2dcb0e785713da74ce19f0245
Sundong Ahn [Wed, 27 Mar 2019 06:23:25 +0000 (15:23 +0900)]
Move the attribute tags
The attribute tags are moved to below the sequence tag, becuase the
"attribute" must be after "sequence" for complexType.
Bug:
127435354
Test: m -j
Change-Id: Ib1fb7fa516d379ef480e2bd18edee2a910b44ea7
Sundong Ahn [Wed, 27 Mar 2019 06:14:34 +0000 (15:14 +0900)]
Add version attribute
The version attribute is added.
Bug:
127435354
Test: m -j && make checkapi
Change-Id: I5168a807a71defe6c1e7ceee65a4dc0540d3f2c2
Treehugger Robot [Wed, 27 Mar 2019 05:21:29 +0000 (05:21 +0000)]
Merge "Get the permission information for native services"
Jack Yu [Thu, 21 Mar 2019 23:33:15 +0000 (16:33 -0700)]
Renamed DataSpecificRegistrationState
Renamed DataSpecificRegistrationState to
DataSpecificRegistrationInfo. And added some
APIs to test API so they can be accessed by
CTS.
Test: Manual
Bug:
127657991
Merged-In: I1a623c18f02cfd19ca1af9df912d859b363f42d1
Change-Id: I1a623c18f02cfd19ca1af9df912d859b363f42d1
(cherry picked from commit
dba103204cf09187dbb0147dac39457f5993769f)
Remi NGUYEN VAN [Tue, 26 Mar 2019 05:58:08 +0000 (14:58 +0900)]
Fix message names in dumpsys network_stack
Constants were stripped out by ProGuard, so
MessageUtils.findMessageNames would fail to find them.
Test: flashed, dumpsys network_stack shows message names
Fixes:
124619824
Change-Id: I285ce2ab52cdff48f17b422285a635bd34243498
junyulai [Wed, 27 Mar 2019 02:31:11 +0000 (10:31 +0800)]
Fix keepalive don't get removed when lower layer error
Currently, if the lower layer, e.g. wifi, didn't successfully
start keepalive by any reason. Due to the startedState changed
to NOT_STARTED first, the logic inside stop() will skip the
removing process and cause leak.
Thus, moving the changing of startedState to proper place first
to unblock subsequent changes first.
Bug:
123988249
Bug:
129371366
Test: atest FrameworksNetTests
Change-Id: I4bba01bacc80e1dac2023ef831b5ade5501894e4
Treehugger Robot [Wed, 27 Mar 2019 02:55:15 +0000 (02:55 +0000)]
Merge "Use SystemApi framework parcelables directly"
Chenbo Feng [Tue, 26 Mar 2019 21:36:34 +0000 (14:36 -0700)]
Get the permission information for native services
For native services such as mediaserver and audioserver, the permission
information cannot be retrieved from getInstalledPackages. Instead, the
high level permission information is avalaible in systemConfigs. With
those permission information, netd can store the complete list of uids
that have UPDATE_DEVICE_STATS permission.
Bug:
128944261
Test: dumpsys netd trafficcontroller
Change-Id: I0331d5a3a5b927a351fcfe6689ef1ba2b993db0c
Treehugger Robot [Wed, 27 Mar 2019 02:35:35 +0000 (02:35 +0000)]
Merge "Fix the INTERNET related permissions"
Lucas Lin [Wed, 27 Mar 2019 01:29:51 +0000 (01:29 +0000)]
Merge "Fix flaky test for ConnectivityServiceTest#testPartialConnectivity"
Treehugger Robot [Wed, 27 Mar 2019 00:34:25 +0000 (00:34 +0000)]
Merge "Fix missing combination check SINK/DEVICE"
Badhri Jagan Sridharan [Mon, 25 Mar 2019 18:02:44 +0000 (11:02 -0700)]
Fix missing combination check SINK/DEVICE
While checking for possible role combinations, the SINK/HOST combination
seems to be mistakenly checked twice intead of SINK/DEVICE.
This CL fixes this. The code now checks for:
1. source & host
2. sink & host
3. source & device
4. sink & device
Bug:
119142682
Change-Id: I5e652fbf9313bd2c122fe728d58e577085632253
Merged-In: I5e652fbf9313bd2c122fe728d58e577085632253
Chenbo Feng [Fri, 8 Mar 2019 19:55:12 +0000 (11:55 -0800)]
Fix the INTERNET related permissions
Change the INTERNET permission implementation so it only block socket
creation when non of the packages under the same uid have internet
permission. Fix the UPDATE_DEVICE_STATS permission so only the uid that
own the permission can change it.
Bug:
111560570
Test: CtsNetTestCasesUpdateStatsPermission
CtsNetTestCasesInternetPermission
Change-Id: I42385526c191d4429f486cde01293b27fcc1374b
Treehugger Robot [Tue, 26 Mar 2019 22:10:58 +0000 (22:10 +0000)]
Merge "Hide blocking pay phone option use carrier config"
Amit Mahajan [Tue, 26 Mar 2019 21:18:23 +0000 (21:18 +0000)]
Merge "Device could not use wifi hotspot when data card switch to sim2"
Siarhei Vishniakou [Mon, 25 Mar 2019 22:38:11 +0000 (15:38 -0700)]
Move tag definitions into policy
Currently, the tags are defined in system/core.
Instead, reserve a range in system/core and define the tags in policy.
Next, we add a flag for interceptKeyBeforeQueueing.
Bug:
128933363
Test: adb logcat -b events, turn on screen, then press power button and
observe the logs.
Change-Id: I1fde2a2e7451ec67987ad3b09abc28be64410427
Merged-In: I1fde2a2e7451ec67987ad3b09abc28be64410427
Treehugger Robot [Tue, 26 Mar 2019 18:30:30 +0000 (18:30 +0000)]
Merge "Add bluetooth icon."
Treehugger Robot [Tue, 26 Mar 2019 17:32:22 +0000 (17:32 +0000)]
Merge "Rename WM test filter to FrameworksTestsFilter"
Tadashi G. Takaoka [Tue, 26 Mar 2019 10:19:01 +0000 (19:19 +0900)]
Rename WM test filter to FrameworksTestsFilter
This CL adds Window Manager related tests of FrameworksServicesTests
to the test filter, and adds a comment to each tests mentioning about
FrameworksTestsFilter.
Test: Pass all 85 non-flaky presubmit tests of FrameworksCoreTests specified
in FrameworksTestsFilter.
$ tradefed.sh run commandAndExit FrameworksCoreTests \
--instrumentation-arg filter=com.android.server.wm.test.filters.FrameworksTestsFilter
--include-annotation android.platform.test.annotations.Presubmit \
--exclude-annotation androidx.test.filters.FlakyTest
Test: Pass all 133 non-flaky presubmit tests of FrameworksServicesTests
specified in FrameworksTestsFilter.
$ tradefed.sh run commandAndExit FrameworksServicesTests \
--instrumentation-arg filter=com.android.server.wm.test.filters.FrameworksTestsFilter
--include-annotation android.platform.test.annotations.Presubmit \
--exclude-annotation androidx.test.filters.FlakyTest
Test: Pass all 162 non-flaky presubmit tests of FrameworksServicesTests
specified as under package com.android.server.wm.
$ tradefed.sh run commandAndExit FrameworksServicesTests \
--instrumentation-arg selectTest=com.android.server.wm. \
--instrumentation-arg filter=com.android.server.wm.test.filters.FrameworksTestsFilter
--include-annotation android.platform.test.annotations.Presubmit \
--exclude-annotation androidx.test.filters.FlakyTest
Bug:
122451194
Change-Id: I9592ff01158eec1b4ef4d0dd22be243e10bd198e
Merged-In: I9592ff01158eec1b4ef4d0dd22be243e10bd198e
Amin Shaikh [Thu, 14 Mar 2019 16:33:19 +0000 (16:33 +0000)]
Add bluetooth icon.
Add accent_device_default that uses the light/dark variant based on
light/dark ui mode.
Bug:
126425594
Change-Id: I08640cc161b6d63da42c3f03df7cf41b182b005e
Test: make
Anton Hansson [Tue, 26 Mar 2019 12:39:09 +0000 (12:39 +0000)]
Merge "Move EmergencyInfo perm whitelist to /product"
lucaslin [Tue, 26 Mar 2019 09:49:49 +0000 (17:49 +0800)]
Fix flaky test for ConnectivityServiceTest#testPartialConnectivity
There are 2 problems will make testPartialConnectivity flaky:
1. If we call setNetworkValid() before expectCapabilitiesWith(),
there may be a timing issue that network will become VALID before
NetworkMonitor send PARTIAL_CONNECTIVITY to ConnectivityService.
Solution:
We should set network to valid after ConnectivityService received
NETWORK_TEST_RESULT_PARTIAL_CONNECTIVITY to ensure NetworkMonitor
will send PARTIAL_CONNECTIVITY to ConnectivityService first then
send VALID.
2. When test case call explicitlySelected(true) first then call
connect(true), NetworkMonitor will report the network validation
test result twice because ConnectivityServiceTest() will trigger
notifyNetworkTested() when setAcceptPartialConnectivity() is
called, it may cause a timing that before the second test result
send to ConnectivityService, connect() already called
setNetworkInvalid. So, NET_CAPABILITY_VALIDATED will be removed
and ConnectivityService will trigger onCapabilitiesChanged()
unexpectedly.
Solution:
Don't trigger notifyNetworkTested() when
setAcceptPartialConnectivity() is called. If there is needed,
use mCm.reportNetworkConnectivity() to report the test result
instead.
Bug:
128426024
Test: 1. atest FrameworksNetTests: \
ConnectivityServiceTest#testPartialConnectivity \
--generate-new-metrics 1000
Change-Id: I7200528378201a3c7c09a78ff827b41f2741dfa1
Treehugger Robot [Tue, 26 Mar 2019 09:28:08 +0000 (09:28 +0000)]
Merge "DO NOT MERGE Fix CtsActivityManagerDeviceTestCases fails"
Junyu Lai [Tue, 26 Mar 2019 06:38:39 +0000 (06:38 +0000)]
Merge "Reveal the call trace of failed test cases which run in executors"
Ruoyao Liu [Mon, 21 Jan 2019 03:36:18 +0000 (11:36 +0800)]
Enable more logs for networking
Sometimes we would encounter problems that happen by chance and
hard to reproduce. So we recommend to enable more logs in ENG and
UESRDEBUG load by default.
Bug:
123256412
Test: android.net.ip.IpClientTest can pass
Change-Id: Ia3363de96966a4e86ab550c768fb70317da005ed
Remi NGUYEN VAN [Tue, 26 Mar 2019 02:40:34 +0000 (11:40 +0900)]
Use SystemApi framework parcelables directly
Remove StaticIpConfigurationParcelable and ApfCapabilitiesParcelable and
use StaticIpConfiguration and ApfCapabilities directly.
These two classes are SystemApi and defined in framework.jar, so no
stability guarantee is needed: the parceled and unparceled class will
always be the framework.jar version.
Bug:
126477266
Fixes:
126477266
Test: atest FrameworksNetTests NetworkStackTests
Test: flashed, booted, WiFi and captive portal works.
Change-Id: Iaf80ae23e003752cc6d2300700021931923b6533
Treehugger Robot [Mon, 25 Mar 2019 21:00:07 +0000 (21:00 +0000)]
Merge "Fix potential NPE in telephony registry dumpsys."
Anton Hansson [Mon, 25 Mar 2019 19:41:53 +0000 (19:41 +0000)]
Move EmergencyInfo perm whitelist to /product
The app is moving to /product, to separate out its permission
grants to a separate file and move that file to /product as well.
Bug:
122353713
Test: boot aosp_arm64 emulator
Change-Id: Ic165aae180a002c3566e3c1b1495a1d50dfd0e4a
Treehugger Robot [Mon, 25 Mar 2019 16:38:20 +0000 (16:38 +0000)]
Merge "Make SelectTest append selectTest argument from extended class"
Aaron Huang [Wed, 20 Feb 2019 09:14:02 +0000 (17:14 +0800)]
apf: Documentation improvements and code optimizations for keepalive filters
Optimizing instruction to reduce code size of keepalive filters.
Bug:
123992088
Test: atest NetworkStackTests
Change-Id: I9ae55977c6d6740277ba55603ee957f33a97ecaa