Commit Graph

12046 Commits

Author SHA1 Message Date
Jiyong Park
3b535c2d56 Introduce uses-native-library tag
This is a partial cherry-pick of
Iceb038aa86872d23e9faf582ae91b1fdcaf5c64c from the internal gerrit.
Cherry-picking to AOSP is needed to have other changes (art) in the
public repo.

The entire change will be merged along with the S release.

Bug: 142191088
Test: m

Change-Id: I13ccbe88be77258bcf1a71e33ab5560796fb605f
Merged-In: Iceb038aa86872d23e9faf582ae91b1fdcaf5c64c
2020-07-24 08:13:51 +09:00
Michael Wright
e1c169c983 Merge "Fix color mismatch of pointers" 2020-07-20 17:28:16 +00:00
Aaron Huang
d8b9f9fc07 Merge "Remove ProxyInfo(String) and update callers to use ProxyInfo(Uri)" 2020-07-17 05:40:31 +00:00
xuejianbao
cdff2db6be Fix color mismatch of pointers
When drawing a point, it should be used the same index for coordinates and state.

Test: make
Signed-off-by: xuejianbao <xuejianbao@xiaomi.com>
Change-Id: I6d66e52b029d7b08663f62ab46125230b7f9a7c5
2020-07-14 18:42:41 +08:00
Kalesh Singh
1371e73894 Merge "Don't cache suspend_control service" 2020-07-13 17:39:22 +00:00
Kalesh Singh
d781ff68f1 Don't cache suspend_control service
Caching a reference to the service can lead to a DeadObject if
if the service was restarted. Additially we attempt to wait for
the service if it is not immediately available.

Bug: 160741383
Test: atest FrameworksCoreTests:KernelWakelockReaderTest

Change-Id: If54d644a66bed8a0da6a2f5b34168cad8f954187
2020-07-13 14:58:00 +00:00
David Su
704f33f253 StateMachine: check for null curState in dump()
After the StateMachine has quit, getCurrentState()
returns null, which will throw an exception in dump().

Bug: 160283853
Test: atest StateMachineTest
Change-Id: I4f9906eef6210b037d2170904a7c3aa483f5b4e9
2020-07-10 12:09:33 -07:00
Aaron Huang
6cca3d719e Remove ProxyInfo(String) and update callers to use ProxyInfo(Uri)
Update all callers to use ProxyInfo(Uri) and remove ProxyInfo(String).

Bug: 160557668
Test: build pass
      atest FrameworksNetTests

Change-Id: I4c980764c8839c48acf03208bb68cd53eb910121
2020-07-06 11:59:27 +00:00
Nicolas Geoffray
6074d56d4f Remove references to Dalvik logger.
Test: m
Bug: 154796679
Change-Id: Id03d9be728c920616a7218fc5435640fc732c87e
2020-06-30 18:30:38 +01:00
Luke Huang
3cd122f485 Disable sockets and DNS if process lacks INTERNET permission.
This is a Client-only solution.
  - Add to NetdClient a per-process std::atomic_boolean
    similar to netIdForProcess and netIdForResolv.
  - The boolean says whether the process should be
    allowed Internet connectivity.
  - Add an @hide method to NetUtils.java to set the boolean;
    call it from the initialization code of the new
    process just after forking from zygote.
  - Make netdClientSocket and dnsOpenProxy check the
    boolean. If the boolean is false, return EPERM from
    socket calls.

Bug: 150028556
Test: atest NetworkUtilsTest
Test: atest CtsAppSecurityHostTestCases:UseProcessTest
(cherry-pick from internal branch, ag/11881939)
Merged-In: If002280fbad493dfc2db3d9d505c0257d49a9056
Change-Id: If002280fbad493dfc2db3d9d505c0257d49a9056
2020-06-24 11:58:57 +00:00
Treehugger Robot
ff22e5f83c Merge "Automatically add FEATURE_IPSEC_TUNNELS for Q+ devices." 2020-06-15 10:58:34 +00:00
Benedict Wong
531aa19991 Automatically add FEATURE_IPSEC_TUNNELS for Q+ devices.
This change automatically enables the IPSEC_TUNNELS mandatory feature
for devices launching with or above Q.

This is for OEM convenience to ensure that they do not have to add the
feature for each device that they ship.

Bug: 156711979
Test: Removed feature from device, CTS tested
Change-Id: I9d1a0e9616cdc7089a9bef7c96ff3780de36ed8d
Merged-In: I9d1a0e9616cdc7089a9bef7c96ff3780de36ed8d
2020-06-15 09:07:06 +00:00
Alessio Balsini
861bdbfb56 KernelCpuUidBpfMapReader: Verify presence of Uids before deleting
Make sure the first and last Uids are valid exist in the sparse array
before removing the array range of which they are the boundaries.
If they are valid, but not exist, create fake elements to make sure all
the elemens in the range are deleted.

Bug: 157887803
Test: build
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3b5ddc499178163cb9b0e9cabbe4f3457ae34dad
2020-06-05 10:38:32 +01:00
Paul Duffin
0c57079427 Preload android.test.base to improve startup performance
Bug: 73711752
Test: make droid && flashall
Change-Id: I28ac1544c20bc3e8abb4341aa331c212f16301f0
2020-05-27 09:38:02 +01:00
Benedict Wong
f44b90fdc4 Merge "Add methods for IKEv2/IPsec test mode profiles" 2020-05-15 02:18:02 +00:00
Benedict Wong
63d2bfd257 Add methods for IKEv2/IPsec test mode profiles
This change adds the ability for IKEv2/IPsec VPN profiles to run on Test
Networks. If enabled, the IKEv2/IPsec VPN profiles will request ONLY
test networks.

Bug: 148582947
Test: FrameworksNetTests passing
Test: Added for testing
Change-Id: I2511b39b27a1e29ae97907cdb12728d13fb1628f
2020-05-12 22:55:55 -07:00
atrost
9cd0ba571c Remove atrost (and dbrazdil) from OWNERS files.
Test: none
Change-Id: If82422229d1b4cbed5e72d1c9042bd6a38be54e5
2020-05-12 12:36:02 +01:00
Tarundeep Singh
36b8f991e1 RESTRICT AUTOMERGE Use HdmiProperties class for all properties that start with ro.hdmi
RESTRICT AUTOMERGE so this does not go to RVC-DEV,  it is already in master.

Bug: 141581191
Test: m services.core
Change-Id: Ieb32135d30b60ad04d5f3e673391e469c83b7f84
Merged-In: Ieb32135d30b60ad04d5f3e673391e469c83b7f84
2020-05-04 20:59:07 +00:00
Treehugger Robot
5a0d2aa4ba Merge "Make me an owner of accessibility frameworks" 2020-04-29 03:37:54 +00:00
Isaac Chen
c27232bf33 Merge "Enable System User Home for CSI" 2020-04-29 02:19:12 +00:00
Qasid Ahmad Sadiq
dbcc760b00 Make me an owner of accessibility frameworks
Test: Relying on treehugger. No functional changes.
Change-Id: Idbe16f9e2443ab897c7a0c5583d6088d16c4f0fd
2020-04-28 14:42:00 -07:00
Jack Yu
ecfb37b868 Renamed DisplayInfo to TelephonyDisplayInfo
To reduce ambiguity with android.view.DisplayInfo.

Test: Telephony sanity tests + unit tests
Bug: 151101989
Merged-In: Ic507b6bf082ca5510ff6d1dcde501f5be9ef074f
Change-Id: Ic507b6bf082ca5510ff6d1dcde501f5be9ef074f
(cherry picked from commit ac3ca33567)
2020-04-20 09:22:33 -07:00
Isaac Chen
ae70354d1f Enable System User Home for CSI
Core system image (CSI) doesn't have Launcher or Settings so no home
activity, but still needs to boot properly. This change enables the
fallback home activity, SystemUserHome, in the framework for CSI.

Bug: 149307007
Bug: 149780604
Test: $ lunch csi_arm64-userdebug; m
      # flash the system.img built to crosshatch
      $ atest DeviceHealthTests
Change-Id: I0f999f76e23c6316f6d5d0741a1116028e34a0ab
Merged-In: I0f999f76e23c6316f6d5d0741a1116028e34a0ab
2020-04-15 16:26:51 +08:00
Mitch Phillips
41cd04b822 Don't ask libc for PT feature w/o kernel support.
Check that the kernel supports the Tagged Pointers feature before asking
libc to disable/enable pointer tagging.

Bug: 153114333
Test: Build coral, note no messages from SetHeapTaggingLevel.
Test: atest CtsTaggingHostTestCases

Change-Id: Id5fbd731aa70f7b0a75525387479f6123628a012
Merged-In: Id5fbd731aa70f7b0a75525387479f6123628a012
2020-04-09 15:35:05 -07:00
Peter Collingbourne
6e478ee41d Merge "Implement initial policy for memory tag checks." 2020-04-08 18:32:33 +00:00
Peter Collingbourne
f78e085068 Implement initial policy for memory tag checks.
System apps and the system_server receive async tag checks, while all other
app processes have it disabled. Developers may enable async tag checks
per application with:

$ adb shell am compat 135772972 <app.name>

Bug: 135772972
Change-Id: I154623941eec8e79af347453fbca1b062346c85b
Merged-In: I154623941eec8e79af347453fbca1b062346c85b
2020-04-03 11:04:51 -07:00
Benedict Wong
d0a44f49df Make VpnProfile.maxMtu default value match Ikev2VpnProfile
This change corrects the VpnProfile's maxMtu defaults to match that of
the Ikev2VpnProfile. 1400 is too high as a default, and Settings will
run into an issue here quite often.

Bug: 152573931
Test: FrameworksNetTests passing
Change-Id: I97ba5903b3cc1ed6a21c706ed3d78bd8ecbeee0c
2020-03-27 11:52:40 -07:00
Brad Ebinger
1dc6188494 Merge "Add back ImsUceManager status definitions" 2020-03-19 18:40:35 +00:00
atrost
a5363153f3 Introduce listUIChanges API for developer UI
Filter out changes that are: logging only, older then enabled after P,
newer then enabled after Q.
Added missing @Test that broke builds.

Test: atest com.android.server.compat.PlatformCompatTest
Bug: 151299145
Change-Id: Ic4c12ceec3f4018a1f206b8498e8216466ecf960
Merged-In: Ic4c12ceec3f4018a1f206b8498e8216466ecf960
2020-03-19 15:57:46 +00:00
Nathan Harold
61b5d6741b Add Callback to notify changes of barring status
-Create a BarringInfo class to pass Barring information
 from HAL to PhoneStateListener.
-Add a multi-callback registrant so that ServiceStateTracker
 and potentially DcTracker can also listen to barring info in
 the future.

Bug: 143226991
Test: make update-api && make && atest BarringInfoTest
Merged-In: I08240259f3142beeca991238bf705236f0303954
Change-Id: I08240259f3142beeca991238bf705236f0303954
2020-03-18 09:52:10 -07:00
wangqiuling
03aaa9625e [BugFix][Batterystats] bugfix for noteResetVideoLocked
Bug: 151532393

Test: review code

Change-Id: Ifcd88b03a713f7759494ec46096459733e8789eb
Signed-off-by: wangqiuling <wangqiuling@xiaomi.com>
2020-03-17 10:28:18 +08:00
Treehugger Robot
80e92b670d Merge "Added OWNERS file for inputmethod" 2020-03-14 04:22:17 +00:00
Nicolas Geoffray
8f2ce6f24a Merge "Revert "Zygote: Load system server code early"" 2020-03-13 13:57:07 +00:00
Nicolas Geoffray
6be3b0e117 Revert "Zygote: Load system server code early"
This reverts commit 76b4b2c366.

Bug: 128688902
Bug: 150032912
Test: boots

(cherry-picked from commit 1b14f2cc51)

Merged-In: I0ae248ac2a3fe4002466cae33b231234ddaa69f2
Change-Id: I0ae248ac2a3fe4002466cae33b231234ddaa69f2
2020-03-13 12:07:04 +00:00
Wale Ogunwale
15ef780c0d Added OWNERS file for inputmethod
Bug: N/A
Test: N/A
Merged-In: I0dd7bad55dec4f2332d7819d4ccb1e0da7a2d9b7
Change-Id: I0dd7bad55dec4f2332d7819d4ccb1e0da7a2d9b7
(cherry picked from commit ecf66058ea)
2020-03-13 03:06:12 -07:00
Brad Ebinger
0de754f37e Add back ImsUceManager status definitions
Fixes: 150239187
Test: manual
Merged-In: Ia1c04b8c42c9a62fa4ea4a70405e6f6ccda8b67c
Change-Id: Ia1c04b8c42c9a62fa4ea4a70405e6f6ccda8b67c
2020-03-12 17:33:39 -07:00
Lucas Lin
1e5c2626b8 Merge "Make NETWORK_STATUS notification to be blockable" 2020-03-11 01:22:23 +00:00
Anna Trostanetski
43fe983a6b Merge "Allow overriding disabled changes in final release." 2020-03-10 13:11:41 +00:00
Andrei-Valentin Onea
77d832b12d Merge "Add option to toggle all changes" 2020-03-10 12:12:45 +00:00
lucaslin
749db81a73 Make NETWORK_STATUS notification to be blockable
Bug: 149749735
Test: Build pass
Change-Id: I272f1a13f09f9cfcf5f9c3c33618c20d1d7bdfcd
2020-03-10 11:38:25 +08:00
Treehugger Robot
8629072a6f Merge "SystemConfig: Allow runtime differentiation of vendor configurations" 2020-03-09 20:08:55 +00:00
atrost
6edc7c37ec Allow overriding disabled changes in final release.
Since disabled changes are disabled by default, our policy should allow
opting in to them in the final release.
Add toString to OverrideAllowedState for easier test debugging.

Test: atest com.android.server.compat.OverrideValidatorImplTest
Bug: 144552011
Change-Id: Iff01ee44d30d3e5703a980cddaf1b38435756c3c
Merged-In: Iff01ee44d30d3e5703a980cddaf1b38435756c3c
2020-03-09 20:00:29 +00:00
Hugo Benichi
ea11eb2a5d Merge "vpn: Fix NPE in VpnConfig#toString when no ProxyInfo is set" 2020-03-09 14:12:06 +00:00
Anna Trostanetski
33e09a3630 Merge "Add support for LoggingOnly changes" 2020-03-09 10:53:02 +00:00
Hugo Benichi
980693da91 vpn: Fix NPE in VpnConfig#toString when no ProxyInfo is set
Bug: 150910582
Test: Compiled bertha_x86_64-userdebug (Chrome OS ARCVM image) for
rvc-dev, flashed eve-arcvm (Pixelbook), connected TouchVpn App, observed
that ARC's VpnTracker does not crash the system server when printing
VpnConfig objects with no ProxyInfo.

Merged-In: I3f8dd1d232e2b18dae9e99eb05c92a797a2358b9
Change-Id: I3f8dd1d232e2b18dae9e99eb05c92a797a2358b9
(cherry picked from commit c8922177c8)
2020-03-09 10:07:17 +09:00
Christian Wailes
3bc5168281 Merge "Teaches the ProcessCpuTracker about USAPs." 2020-03-06 18:11:53 +00:00
Automerger Merge Worker
627bfca085 Merge "Start process of next activity with top priority in advance" am: efbcd6752d
Change-Id: I8e8dd0f20cd3a783e49468a7657e571812bca3eb
2020-03-04 23:54:10 +00:00
Treehugger Robot
efbcd6752d Merge "Start process of next activity with top priority in advance" 2020-03-04 23:41:40 +00:00
Chris Wailes
03c842dd30 Teaches the ProcessCpuTracker about USAPs.
This CL updates the ProcessCpuTracer.getName method to force a refresh
of the process name when the current state indicates that it was named
either 'usap32' or 'usap64'.  This will prevent false attribution of
process statistics to system service processes.

Bug: 146614089
Test: Treehugger
Change-Id: Ieca4715b7aeb44ef7d1ec98773b25bdfa0a9fc6b
2020-03-04 13:40:28 -08:00
Riddle Hsu
364f2500e5 Start process of next activity with top priority in advance
In common cases, to resume the next activity we need to wait for the
current one to be paused. Since starting a process for activity is
asynchronous, if we already know the process of next activity has not
started yet, we can start the process earlier so the time waiting for
the pause to complete can be saved.

Also if the launching activity is going to be the top app, we can set
the top schedule group right after its process is started so the start
time before actually launching the activity can be improved.

Although before the current activity is paused, the next top activity
may still change and results some empty processes. That should not be
a common case and the process is still useful when going back the stack,
and the empty background processes are easier to be reclaimed.

Bug: 123043091
Test: AppLaunchTest
Test: Launch calculator from launcher, the event log am_proc_start will
      show "pre-top-activity".
Test: Cold launch a top activity, the system log should not show
      "not expected top priority".
Test: Use startActivities to start serveral activities in a sequence.
      Check "adb shell cat /proc/$pid/task/$pid/cgroup" for each process.
      Only the last one has top-app, others are background.

Change-Id: I9601b66e7cc0855fd7c2b573ded31fcf8d0711ae
Merged-In: I9601b66e7cc0855fd7c2b573ded31fcf8d0711ae
2020-03-03 16:36:46 -08:00