Commit Graph

61106 Commits

Author SHA1 Message Date
TreeHugger Robot
3d5d489e0d Merge "Remove target SDK check for adding REVOKED_COMPAT in setUidMode()." 2020-01-30 22:18:51 +00:00
TreeHugger Robot
1510c41e4a Merge "Pipe requestSetProviderAllowed through" 2020-01-30 22:16:28 +00:00
TreeHugger Robot
21969c344c Merge "Kill app when OP_MANAGE_EXTERNAL_STORAGE is denied." 2020-01-30 22:00:02 +00:00
TreeHugger Robot
dde20309d8 Merge "Notification instance ids in NMS for statsd logs." 2020-01-30 21:33:18 +00:00
TreeHugger Robot
ce096077f3 Merge "Removing Java Stream usages from install session." 2020-01-30 21:14:57 +00:00
Jorim Jaggi
1edbc80971 Merge "Adjust SysUI for new insets" 2020-01-30 21:09:23 +00:00
TreeHugger Robot
b069549342 Merge "Use FrameworkStatsLog instead of StatsLog" 2020-01-30 21:07:18 +00:00
TreeHugger Robot
349b587343 Merge "Automatically load ActivityManager DeviceConfig constants." 2020-01-30 20:39:31 +00:00
Makoto Onuki
dafca1e0da Merge "Make Log.wtf() safe to call from within the system server" 2020-01-30 18:50:29 +00:00
David Su
af50a69388 Merge changes from topic "api-review-removedoublequotes"
* changes:
  SettingsLib: Rename removeDoubleQuotes to sanitizeSsid
  Networking: Rename removeDoubleQuotes to sanitizeSsid
  Wifi: Rename removeDoubleQuotes to sanitizeSsid
2020-01-30 18:16:53 +00:00
Jorim Jaggi
026ed75dbd Adjust SysUI for new insets
- Layout of notif shade is no longer custom, so need to handle
insetsIgnoringVisibility on client.
- Do not special case Keyguard anymore. Just treat it as regular
control target.
- No more special sauce to hide navigation bar on Keyguard.
- Treat it as BEHAVIOR_SHOW_TRANSIENT_BARS_ON_SWIPE but don't
actually do that in DisplayPolicy

Test: InsetsPolicyTest
Test: Lockscreen with PIN
Bug: 118118435
Change-Id: I1edce4fdb792fd97a181165a03957ba5d6d3e551
2020-01-30 18:23:25 +01:00
Tom Taylor
8ed7418efc Merge "Add optional messageId methods for sending/receiving mms's" 2020-01-30 17:20:08 +00:00
Muhammad Qureshi
e718a1a8de Use FrameworkStatsLog instead of StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by
*StatsLog.java
that is autogenerated for each module.
This CL replaces some usages of StatsLog with
FrameworkStatsLog.

Bug: 145952197
Test: m
Change-Id: I7d92b833937037e075c7e53401367061901b3a6e
2020-01-30 08:54:58 -08:00
Muhammad Qureshi
c3f651addc Merge "Use FrameworkStatsLog instead of StatsLog" 2020-01-30 16:43:20 +00:00
Muhammad Qureshi
a6b9b0724c Merge "Use FrameworkStatsLog instead of StatsLog" 2020-01-30 16:40:28 +00:00
Will Brockman
cfd983061a Notification instance ids in NMS for statsd logs.
Notification instance IDs are generated by NotificationManagerService
when the notification is first posted, and stored in the
StatusBarNotification so that they can be passed to the SystemUI
process.

Bug: 144022566
Test: atest NotificationManagerService BuzzBeepBlinkTest RoleObserverTest
Test: statsd_testdrive 244
Change-Id: I804786dfa165864257d8801d7e96f2ac0ead960f
2020-01-30 11:35:10 -05:00
Kweku Adams
c85bbe003d Automatically load ActivityManager DeviceConfig constants.
The former method required us to load each individual DeviceConfig
constant at startup time. This could easily lead to an issue where
someone forgets to add that line in the startup path and the value
isn't loaded. Switching to have all DeviceConfig constants read and
processed by a generic loop so we don't run into this issue.

Bug: N/A
Test: flash device and confirm DeviceConfig constants are loaded
Change-Id: I981829722cf035e894415a11e214724b213c65fa
2020-01-30 07:38:53 -08:00
Alex Buynytskyy
c0c5a37a62 Removing Java Stream usages from install session.
Test: refactoring CL, presubmit passes.

Change-Id: I9d110e59bca6376feb68dc046a16b67be7f1e588
2020-01-30 07:14:23 -08:00
Zim
b0dffde3b7 Kill app when OP_MANAGE_EXTERNAL_STORAGE is denied.
When an app requests the special access permission to be able to manage
external storage, and it is denied, we need to kill the app, in order to
lose the external_storage gid it may have that allows it access to
unreliable USB OTG volumes.

When the app op is granted, we don't kill the app to pickup the new
gid because it may result in bad UX especially since that gid is only
useful to access unreliable USB OTGs that are rarely present.
The next time the app is restarted, it will get the external_storage
gid and will be able to access any mounted USB OTG volumes.

Bug: 144914977
Test: Copy paste of I73c5ce56ee24e5c864d7c9280b83fc3854701a97
Change-Id: I5cb13dc9c51cb8b4e942e529b4a1c7dac180cace
2020-01-30 14:27:13 +00:00
Jorim Jaggi
8a269993ce Merge "Dispatch separate navigation bar frame to IME" 2020-01-30 11:33:39 +00:00
Oli Lan
f6e58c9f53 Merge changes from topic "apexcerollback"
* changes:
  Add tests for DE_sys and CE apex data rollback.
  Snapshot and restore CE apex data directories.
2020-01-30 10:49:47 +00:00
TreeHugger Robot
55b30b35dd Merge "Fix missing setAtomId" 2020-01-30 06:58:10 +00:00
Howard Ro
7316004f7b Merge "Use FrameworkStatsLog instead of StatsLog" 2020-01-30 06:49:00 +00:00
Alex Buynytskyy
60c9fe14b0 Merge "Session states refactor." 2020-01-30 04:58:06 +00:00
Tej Singh
5dd1dc991a Fix missing setAtomId
Test: adb shell cmd stats print-source 10028
Change-Id: I941af775f9f8e7b4050ef9bf639e0b6d3beb79e1
2020-01-29 20:52:28 -08:00
TreeHugger Robot
6173503605 Merge "Simplify feature enablement to a single constant" 2020-01-30 03:48:43 +00:00
TreeHugger Robot
7be4820419 Merge "Use FrameworkStatsLog in StatsPullAtomService" 2020-01-30 03:05:42 +00:00
Howard Ro
a13e2bc32e Merge "Use FrameworkStatsLog instead of StatsLog" 2020-01-30 02:08:22 +00:00
Alex Buynytskyy
133a628a2a Session states refactor.
1. Moving Seal (back) to commit call as we no longer need it to be async.

2. Current states:
     Stream/Validate/Commit - for Streaming installation might be entered multiple times while waiting for DataLoader to finish.
     Install - renamed from Commit to avoid confusion with mCommitted.

3. Install still has to be a separate state to allow
setPermissionsResult.

Test: atest PackageManagerShellCommandTest
Bug: b/136132412 b/133435829
Change-Id: I6afcfeafabbf7e26906fcf5697c44c5617c9c1b5
2020-01-30 02:07:50 +00:00
Soonil Nagarkar
17d8c83865 Pipe requestSetProviderAllowed through
Add piping to connect requestSetProviderAllowed through
MockableLocatioProvider.

Test: presubmits
Change-Id: I323d7540a0af4d0d12b26ee1a37cb247a90d7141
2020-01-29 18:02:53 -08:00
TreeHugger Robot
59f31d5e3c Merge "Create AppForegroundHelper" 2020-01-30 01:22:36 +00:00
Muhammad Qureshi
759f92f34e Use FrameworkStatsLog instead of StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by
*StatsLog.java
that is autogenerated for each module.
This CL replaces some usages of StatsLog with
FrameworkStatsLog.

Bug: 145952197
Test: m
Change-Id: Ib36d010ca962904bbc905be7e832346d2c08cb2e
2020-01-29 17:22:12 -08:00
Muhammad Qureshi
6f20710503 Use FrameworkStatsLog instead of StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by
*StatsLog.java
that is autogenerated for each module.
This CL replaces some usages of StatsLog with
FrameworkStatsLog.

Bug: 145952197
Test: m
Change-Id: I74f9614fc8866dd1c5875ee1b240c808613b8625
2020-01-29 17:14:03 -08:00
TreeHugger Robot
7c0436c1a6 Merge "Enforcing Background Check on RESTRICTED apps." 2020-01-30 01:08:58 +00:00
Muhammad Qureshi
73107044ce Use FrameworkStatsLog instead of StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by *StatsLog.java
that is autogenerated for each module.
This CL replaces some usages of StatsLog with FrameworkStatsLog.

Bug: 145952197
Test: m
Change-Id: Id3e0900a050441b9aef3ee6244759f5098afdfb1
2020-01-29 17:03:56 -08:00
Muhammad Qureshi
d5449fd56b Use FrameworkStatsLog instead of StatsLog
As part of statsd becoming a Mainline module in R, autogenerated
StatsLog.write() calls are going away and replaced by
*StatsLog.java
that is autogenerated for each module.
This CL replaces some usages of StatsLog with
FrameworkStatsLog.

Bug: 145952197
Test: m
Change-Id: Ied4cad6550c99697003948a2639c74fba31f1fde
2020-01-29 17:03:01 -08:00
Muhammad Qureshi
4e4c44f964 Use FrameworkStatsLog in StatsPullAtomService
Bug: 145952197
Test: m
Change-Id: I9ac1779a78091631d041e04c110b870beb3df4ae
2020-01-29 16:48:42 -08:00
Yuichiro Hanada
58145925a8 Merge "Add InputMethodListListener interface." 2020-01-30 00:45:58 +00:00
Zimuzo Ezeozue
5fb485b20d Merge "Grant apps with WRITE_MEDIA_STORAGE legacy storage appop" 2020-01-30 00:16:22 +00:00
Jay Aliomer
0373c4e613 Merge "Activity Record Splash Screen" 2020-01-29 23:39:45 +00:00
Soonil Nagarkar
b6375a4f7f Create AppForegroundHelper
Create a new helper to deal with application foreground state changes.

1) Rename various Helpers.
2) Move GnssManagerService into location dir.
3) Use new AppForegroundHelper everywhere.
4) Move sendNiRequest to internal API
5) Some refactoring of NetInitiatedActivity

Test: atest AppForegroundHelperTest
Change-Id: Ifffe0e6a34452a18d017c6b190547b904d77b430
2020-01-29 15:23:06 -08:00
Dianne Hackborn
628aeec354 Merge "Fix issue #148487136: Add a little more debug output to devicestoragemonitor" 2020-01-29 23:19:10 +00:00
Makoto Onuki
83679a6c5c Make Log.wtf() safe to call from within the system server
Make sure to use the handler if the caller is the system server

Test: Build / treehugger / manual code inspection
Change-Id: I0c9998511280193d785ebcf7aa501ee02c0a8548
Fix: 148230239
2020-01-29 14:39:53 -08:00
Hai Zhang
4ddd54a056 Remove target SDK check for adding REVOKED_COMPAT in setUidMode().
Previously this could work regardless of target SDK version, so for
compatibility it should still work that way.

Bug: 146386279
Bug: 136503238
Test: presubmit
Change-Id: I57729f0d35679afaf3a43dfac5cd42f488d78baf
2020-01-29 22:38:49 +00:00
Mehdi Alizadeh
505fb76065 Adds CACHED shortcuts and methods to retrieve and remove
Adds a new flag to ShortcutInfo to mark it as cached. Also adds new
APIs in ShortcutManager to remove or retrieve a cached shortcut.

Bug: 148084870
Test: atest com.android.server.pm.ShortcutManagerTest1 \
            com.android.server.pm.ShortcutManagerTest2 \
            com.android.server.pm.ShortcutManagerTest3 \
            com.android.server.pm.ShortcutManagerTest4 \
            com.android.server.pm.ShortcutManagerTest5 \
            com.android.server.pm.ShortcutManagerTest6 \
            com.android.server.pm.ShortcutManagerTest7 \
            com.android.server.pm.ShortcutManagerTest8 \
            com.android.server.pm.ShortcutManagerTest9 \
            com.android.server.pm.ShortcutManagerTest10
Change-Id: I859b416ccd4228eec10a436550ff98866a62af66
2020-01-29 22:06:40 +00:00
Rambo Wang
879bc4ae15 Merge "Clear up permission READ_PRIVILEGED_PHONE_STATE." 2020-01-29 22:06:11 +00:00
Zim
87eacab57a Grant apps with WRITE_MEDIA_STORAGE legacy storage appop
An app can now have legacy storage access in 3 mutually exclusive
ways:
1. Targeting < Q
2. Targeting <=Q and explicitly requesting legacy access
3. Targeting <=Q and having the WRITE_MEDIA_STORAGE permission

In other words an app targeting R has no way to have legacy storage
access. Its only option is to request MANAGE_EXTERNAL_STORAGE access

Test: Verify via dumpsys the conditions above
Bug: 144914977
Change-Id: I3c868cd9b4da4083517dd64b3a3888aea4060f18
2020-01-29 21:50:47 +00:00
TreeHugger Robot
bf43d48025 Merge "Call getPackageUidAsUser instead of getPackageUid" 2020-01-29 21:34:14 +00:00
Jorim Jaggi
ac3a47c767 Merge "Temporary bubble hack for new insets" 2020-01-29 21:32:48 +00:00
Makoto Onuki
4d95751e7a Merge "Fix LauncherApps.isActivityEnabled()" 2020-01-29 20:55:52 +00:00