Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
191 commits
Select commit Hold shift + click to select a range
c100ef6
VolumeDialog: Display default row when active row is notification
jesec Jun 23, 2020
0596bb8
VolumeDialogImpl: Don't hide the default stream when adjusting the mu…
ArianK16a Jan 30, 2022
9c86e4c
VolumeDialogImpl: Don't vibrate when volume dialog is not visible
luk1337 Mar 22, 2021
9085593
VolumeDialogImpl: Fix cut layout when on setup or lock task mode
jhenrique09 Apr 7, 2022
b331998
VolumeDialogImpl: Drop unnecessary layout gravity defines and handle …
ArianK16a Nov 7, 2023
3545d2f
VolumeDialogImpl: Set touchable region properly for left gravity
ArianK16a Nov 7, 2023
f56b755
VolumeDialogImpl: Respect left gravity in ringer drawer
ArianK16a Nov 7, 2023
35e043d
VolumeDialogImpl: Handle the outmost row with respect to left gravity
ArianK16a Nov 7, 2023
610ade9
SystemUI: volume dialog: Align padding/margin for left and right
ArianK16a Nov 7, 2023
a0375d9
SystemUI: runtime configurable audio panel location
alexxxdev Dec 19, 2018
35ca401
SystemUI: Make the volume dialog expandable
ArianK16a Jan 30, 2022
233941f
VolumeDialogImpl: Add STREAM_NOTIFICATION row
luk1337 Aug 5, 2023
01243bb
VolumeDialogImpl: Ignore external layout direction changes
danielml3 Jan 27, 2024
5cf75ad
VolumeDialogImpl: Update rows when adding one while the panel is showing
ArianK16a Oct 5, 2024
57843c1
Revert "Remove Live Captions button from the Volume Dialog when the n…
Dhina17 Jan 3, 2025
6dff96d
SettingsLib: Always display mobile signal as 4/4 bars
Ghosuto Feb 8, 2026
37096af
fixup! webkit: SystemImpl: Filter out unavailable providers
luk1337 Jan 31, 2026
0fdddc7
SystemUI: Allow disable statusbar combined signal
Ghosuto Feb 8, 2026
dca28aa
SystemUI: Hide nowplaying view when bouncer is showing
Ghosuto Feb 8, 2026
703758c
SettingsLib: shrink 4g+ icon
shutter-cat Jan 23, 2026
966bced
fwb: stop performance hint spam
shutter-cat Jan 20, 2026
9b5e072
SystemUI: Fix roaming icon
shutter-cat Feb 4, 2026
3375669
SystemUI: Skipping screen off animation controller for fast animation…
rmp22 Jan 8, 2026
dab01dd
SystemUI: [SQUASHED] Ambient display show battery & cpu temperature […
Jan 19, 2019
b126ec0
SystemUI: Show username in ambient indicator [1/2]
Ghosuto Oct 8, 2025
2463ffe
SystemUI: Show Battery Defender indication only when battery level re…
rmp22 Feb 24, 2025
1ff228e
SystemUI: Allow disabling time to full on keyguard [1/2]
idoybh Sep 14, 2025
502e9f5
SystemUI: prevent crash on empty dozing indication
shutter-cat Nov 4, 2025
d3dbbef
core: Optimizing overscroller
rmp22 Dec 9, 2025
a2be107
core: Adding scroll optimizer port
rmp22 Sep 27, 2025
4f9f28c
core: Switch to automatic detection for scroll Optimizer
Ghosuto Feb 9, 2026
3a7e907
SystemUI: Fix clock plugin animations during keyguard transitions
NurKeinNeid Jul 17, 2025
c8562ba
AOD: Sleep when proximity is covered for 3 secs
PMS22 Nov 30, 2019
f2913e3
base: Use EFFECT_DOUBLE_CLICK for camera launch feedback
cjh1249131356 Nov 15, 2021
5b01d70
SystemUI: Show a popup dialog upon usb connection
adithya2306 Nov 4, 2024
bf2a320
core: Allow to override Mock Location restriction [1/2]
userariii Oct 16, 2025
5c6ec0b
AutoAODService: Do not bind observer on the main thread
minaripenguin Oct 27, 2024
e593f15
Dialer: Grant permissions
1582130940 Aug 27, 2022
cf43b4d
Hide hidden apps from all apps except system
Uldiniad Apr 10, 2023
b1df83d
base: Add support for hide applist [1/2]
someone5678 Dec 7, 2024
2fc615e
ComputerEngine: Don't hide hidden apps
someone5678 Jan 21, 2025
bb465d2
Hide App list: Improve hide app list feature
rmp22 Mar 3, 2025
1b59851
services: Introduce RisingServicesStarter
minaripenguin Mar 26, 2024
8b9933c
services: Introduce QuickSwitch feature [1/2]
minaripenguin Oct 30, 2024
4a15a8a
Utils: Add util to toggle overlays
AnierinBliss Feb 10, 2026
8cbd419
base: Add util function to restart any app
Blaster4385 Feb 10, 2026
a4814e2
SystemUI: Fix SystemUI crash due to null CPU temperature reading
Ghosuto Feb 10, 2026
183e2fc
core: Introduce SystemRestartUtils
minaripenguin Oct 11, 2024
560f8a1
SystemUI: Apply wifi and signal icon styles last
neobuddy89 Feb 11, 2026
49d020e
SystemUI: Add flashlight strength control
HELLBOY017 Sep 13, 2025
56711e3
SystemUI: Fix flashlight strength control detection
NurKeinNeid Sep 18, 2025
0a2da98
SystemUI: Extend flashlight strength logic to flashlight controller
HELLBOY017 Sep 19, 2025
46233c8
SystemUI: Allow long click on flashlight tile
HELLBOY017 Sep 19, 2025
f846363
SystemUI: Improve flashlight strength control UX
Ghosuto Dec 22, 2025
dc3a724
SystemUI: Fix redesigning media panel Play/Pause switch size
Ghosuto Feb 11, 2026
91ddd4b
AconfigFlags: silence missing packages spam
shutter-cat Jan 20, 2026
3f7c538
base: Migrate to MaterialExpressiveTheme
Rve27 Jan 19, 2026
16eb9e0
SystemUI: Use Surface Bright color for fallback tile also
Ghosuto Feb 11, 2026
63032da
base: Allow locking tasks to recents [1/2]
SagarMakhar Aug 28, 2021
d9be5aa
SystemUI: Fix edge light, media art, pulse, charging, now playing on…
neobuddy89 Feb 12, 2026
3044cb2
SystemUI: Disable notification translucency when blur off
Ghosuto Feb 12, 2026
08c1d27
core: Add perf activity anim override
rmp22 Aug 27, 2025
31df9fd
core: Preventing memory leaks from bloating os memory that leads to OOM
rmp22 Nov 21, 2025
169a0e7
media: disable noisy exifinterface logs
rmp22 Aug 23, 2025
e900a4a
core: add guard to null ResourcesImpl log spam
rmp22 Aug 23, 2025
5746207
Update CE storage handling in StorageManagerService
cevente Feb 12, 2026
d1524a9
SystemUI: Redesigned qs tile style [1/2]
Ghosuto Feb 13, 2026
c92f9f1
SystemUI: Redesigned brightness slider style [1/2]
rmp22 Feb 13, 2026
2b7e03c
Fix NavBar haptic feedback after Bluetooth device disconnect
Feb 5, 2026
62eace8
SystemUI: Simplify WiFi and Mobile Data tiles
Ghosuto Feb 13, 2026
92eeb37
SystemUI: Fade the clock insted of scale effect
Ghosuto Sep 29, 2025
4a8cfb5
SystemUI: Fix imageloader spam in BrightnessSliderViewModel
neobuddy89 Oct 22, 2025
5dfec63
services: Introduce Shake Gestures [1/2]
minaripenguin Oct 10, 2024
782cde8
fixup! SystemUI: Bring back good ol' circle battery style once again
luk1337 Feb 14, 2026
552d5c7
SystemUI: Start QS header animation only on expanding
neobuddy89 Feb 15, 2026
70783e1
SystemUI: Move right logo in statusbar to extreme right
neobuddy89 Feb 15, 2026
9bc7f19
SystemUI: Fix concurrent modification exception on config change
neobuddy89 Dec 9, 2025
4e8bccf
SystemUI: ConfigurationControllerImpl: Avoid NullPointerException
someone5678 Dec 15, 2024
1b24081
SystemUI: Fixing dynamic stream crashes
rmp22 Jan 10, 2026
fbc2b66
base: Migrate to MaterialExpressiveTheme to volume slider
Rve27 Jan 19, 2026
84d2464
SystemUI: Fixing ax volume dialog flags
rmp22 Jan 8, 2026
13840f6
SystemUI: Add charging bolt indicator for text-only battery style
Ghosuto Feb 16, 2026
17c36c9
SystemUI: Add VPNTethering tile
iKeramat Jun 16, 2022
07f811a
SystemUI: Use system_accent1_200 for monetized privacy indicators
someone5678 Aug 10, 2024
543ac9c
SystemUI: Use bit darker accent color for privacy indicators
Ghosuto Feb 17, 2026
ba68e4d
AbsListView: Improve scrolling cache
pawitp Nov 17, 2014
767849d
base: Add support for daily and weekly data usage cycles [1/2]
idoybh Aug 22, 2025
99d99a6
QS footer icon visibilities [1/2]
eyosen Apr 6, 2018
6a11f17
SystemUI: Fix static color in clock background chip styles
neobuddy89 Feb 19, 2026
da0013d
SystemUI: Fix neumorph color for clock background chip
neobuddy89 Feb 19, 2026
39a8f53
SystemUI: add FloatingRotationButton for hw-key devices
Spirtix Jan 9, 2020
716098d
SystemUI/AuthRippleView: Less Boring Dwell Ripple
RealJohnGalt Apr 13, 2023
e863d60
SystemUI: Show SSID as label when tile data usage on
Ghosuto Feb 20, 2026
474df26
Allow complex resource types to follow references
talle112 Feb 12, 2026
cc1f773
base: Fix crash caused by back gesture on popup view
Ruyue-Kinsenka Feb 11, 2026
93ca222
SystemUI: switch to mirror blur method
rmp22 Jun 30, 2025
0610716
SystemUI: Reduce default system blur
Ghosuto Feb 23, 2026
f9cb446
SystemUI: Adding system color hooks
rmp22 Oct 20, 2025
0f13e40
SystemUI: Hide mobile data tile when unsupported
neobuddy89 Feb 23, 2026
144b66c
SystemUI: Show lockscreen emergency button by default
Ghosuto Feb 25, 2026
a0e5b52
SystemUI: Introduce cutout progress ring [1/2]
Ghosuto Feb 25, 2026
51e24c4
SystemUI: Progress ring charging indicator [1/2]
Ghosuto Feb 26, 2026
f010159
SystemUI: Add progress ring color mode [1/2]
Ghosuto Feb 26, 2026
1b1da52
SystemUI: Implement Weather views
minaripenguin Feb 24, 2026
3213714
SystemUI: Introduce Clock face feature
minaripenguin Oct 14, 2024
2e670e3
SystemUI: Introduce Lockscreen Widgets feature
minaripenguin Nov 7, 2024
0699a0a
SystemUI: Introduce Lockscreen info widgets
minaripenguin Dec 5, 2024
822bd03
Lockscreen widget styles update
minaripenguin Jan 18, 2025
32b1121
SystemUI: Fixes, improvements to lockscreen widget and google wallet …
minaripenguin Jan 27, 2025
7e7a23f
SystemUI: Introduce MediaSessionManagerHelper
minaripenguin Jan 3, 2025
80f683c
SystemUI: Introduce AOD styles [1/2]
minaripenguin Oct 17, 2024
1fd7540
SystemUI: Adapt lockscreen features to the latest A16 keyguard changes
Arman-ATI Feb 24, 2026
92336f2
SystemUI: Added Label clock style
Ghosuto Nov 9, 2024
aa6e72a
SystemUI: Add ios like clock
Ghosuto Feb 25, 2026
e336edc
SystemUI: Add number clockface
Ghosuto Nov 10, 2024
61c1a51
SystemUI: Add 3 new clock face from iconify
Mahmud0808 Nov 10, 2024
044e4b0
SystemUI: Add NOS3 clock style
Ghosuto Nov 10, 2024
72813bc
SystemUI:: Added life clockface
Ghosuto Nov 19, 2024
9fc05dc
SystemUI: Add Android Q clock face
Ghosuto Nov 20, 2024
57516e0
SystemUI: Add Encode clock face
Ghosuto Nov 20, 2024
eab43f7
SystemUI: Simple analog clock
Ghosuto Nov 20, 2024
ed356af
SystemUI: Lock Screen Clock Accent Color Option
Ghosuto Apr 10, 2025
5820c82
SystemUI: Improve clock face color option
Ghosuto May 23, 2025
fe85ad5
SystemUI: Added android 9 style lockscreen clock
lixkote May 6, 2025
a13f9d6
SystemUI: allowlist ACCESS_NOTIFICATIONS privileged permission
Ghosuto Feb 25, 2026
dd7140d
SystemUI: Set life clock at middle
Ghosuto Feb 25, 2026
344af8d
SystemUI: Use small clock when setset clock style
tejas101k Feb 27, 2026
30a74fc
SystemUI: Hide clock properly when clock style set
tejas101k Feb 27, 2026
23bf7d6
SystemUI: Fix default clock omnijaw view
tejas101k Feb 27, 2026
c52b69b
SystemUI: Adapt weather view to updated omnijaw controller
Ghosuto Feb 27, 2026
85ac4a6
SystemUI: Refactor clock and widget implementation
Ghosuto Feb 27, 2026
e48fb6d
SystemUI: Allow adjust height of lockscreen clock styles [1/2]
tejas101k Feb 27, 2026
182a21d
SystemUI: Add support custom clock color [1/2]
Ghosuto Feb 27, 2026
0c4909e
SystemUI: Add QS tile gradient customization
neobuddy89 Feb 25, 2026
cd65fdd
SystemUI: Add volume slider gradient customization
neobuddy89 Feb 26, 2026
ab04f1f
SystemUI: Add custom gradient start/end color support
neobuddy89 Feb 26, 2026
1b2979f
SystemUI: Add QS brightness slider gradient customization
neobuddy89 Feb 28, 2026
c7819b3
Fix external storage access with system user locked
t-m-w Feb 8, 2026
22ac9d5
Fix secondary user crash with system user locked
Jan 25, 2023
7a75ebb
SystemUI: Use stroke-only widget backgrounds for aod
Ghosuto Feb 28, 2026
f5e7d55
SystemUI: Adapt gradient support to tiles style and ringer slider
Ghosuto Feb 28, 2026
c6a07f1
SystemUI: Fix opacity handling for all clock style components
Ghosuto Feb 28, 2026
1bb9e75
SystemUI: Apply clock opacity at 70% during AOD/dozing
Ghosuto Feb 28, 2026
a1ecc14
Reduce blocking operation on display thread
Aug 29, 2025
672cc48
services: Optimizing home to desktop transition
rmp22 Sep 1, 2025
4649f19
Optimize the response speed of recents animations
Aug 20, 2025
e5cbe8a
services: Launcher blast sync timeout opt
rmp22 Aug 18, 2025
225001a
services: Fixing powerhal soft reboot
rmp22 Nov 13, 2025
eff7024
services: Threads priority enhance
rmp22 Aug 1, 2025
08bfa70
SystemUI: Reduce media metadata bitmap size
Ghosuto Mar 1, 2026
c46a735
SystemUI: Ongoing action progressbar chip implementation
0xf104a Jan 6, 2025
009590b
SystemUI: Clean up legacy code in ongoing action progress chip
neobuddy89 Mar 1, 2026
eb26c8d
SystemUI: Refactor ongoing action progress chip
neobuddy89 Mar 2, 2026
b0af524
SystemUI: Use proper media buttons for ongoing action chip and theme it
neobuddy89 Mar 2, 2026
072e744
SettingsTheme: Correctly theming AlertDialog with M3 colors
someone5678 Oct 1, 2025
327aa17
SystemUI: Redesign ongoing music chip like oneui music chip
Ghosuto Mar 2, 2026
f55dd9a
SystemUI: Fix notification spacing when smartspace on
Ghosuto Mar 2, 2026
94984af
SystemUI: Optimize wallpaper effects
Ghosuto Mar 2, 2026
f9bff09
SystemUI: Add gradient for volume buttons along with slider
neobuddy89 Mar 3, 2026
dbb9911
SystemUI: Fix notification flicker with transluency enabled
neobuddy89 Mar 3, 2026
77e4149
core: Add Traditional Chinese translations
nnn950711 Mar 3, 2026
a7f4544
SettingsLib: Add Traditional Chinese translations
nnn950711 Mar 3, 2026
21dad1f
SystemUI: Improve Ongoing Chip interactions
neobuddy89 Mar 3, 2026
e095cd9
SystemUI: Redesign ongoing music chip popup
Ghosuto Mar 3, 2026
39eee29
SystemUI: Improve lockscreen widgets
Ghosuto Mar 4, 2026
cca044d
SystemUI: Restore AOD clock updates via Handler-based minute tick
Ghosuto Mar 4, 2026
71d07f5
[RESTRICT AUTOMERGE] Stay in app pinned mode upon SystemUI crash
Sep 4, 2025
9f281bd
Ensure sandboxed UIDs are treated as untrusted in Appops
Oct 7, 2025
8316988
Prohibit untrusted proxys from specifying proxied attribution tags
Oct 15, 2025
f0f6b12
Trim permission, permission group names
Nov 5, 2025
2cc0579
Sanitize a11y qs shortcut tile service name before using it
Nov 20, 2025
d857128
Fixed "Unlock your phone" unexpectedlly turned ON after OTA
Oct 15, 2025
c9ac991
Harden InputMethodInfo parsing against large metadata
tossy310 Oct 20, 2025
b001905
Introduce InputMethodSubtypeSafeList
tossy310 Nov 4, 2025
eb47282
Handle loadDescription OutOfMemoryError in DeviceAdminInfo
Nov 13, 2025
8c541f3
Prevent launchedFromPackage spoofing via FLAG_ACTIVITY_FORWARD_RESULT.
Dec 4, 2025
02edb0a
Explicitly unset INSTALL_FROM_MANAGED_USER_OR_PROFILE flag
SanjanaSunil Nov 26, 2025
374aece
Reapply "[PM] Check unknown sources user restriction for intent insta…
Oct 15, 2025
2486380
[PM] Check unknown sources for intent installation
Nov 18, 2025
5c30daa
Prevent long press on profile notifs when locked
Nov 11, 2025
897eef4
Be more strict about content types for message array
Nov 12, 2025
89486e1
MediaSession: Enforce max name length on broadcast receivers too
icbaker Dec 16, 2025
70d1121
Remove any revoked associations after reboot
Nov 18, 2025
86f6cba
Block overriding satellite carrier config keys on user builds
Oct 23, 2025
ecfc676
Limit the number of services (NLSes, etc) that can be approved per user
Aug 20, 2025
5874a7d
[UidMigration] fix update uninstallation with sharedUserMaxSdkVersion
schfan-1 Nov 11, 2025
8cba13d
KeyboxChainGenerator: Use real vbmeta digest
shutter-cat Dec 27, 2025
0cd041e
SystemUI: Fix NPE in affectedByWorkProfileLock when entry is null
Ghosuto Mar 4, 2026
278fc1e
SystemUI: Rewrite stale progress check
neobuddy89 Mar 4, 2026
39483fa
SystemUI: Retain compact mode for ongoing chip during visibility changes
neobuddy89 Mar 4, 2026
34bfc4b
Merge branch 'Lunaris-AOSP:16.2' into 16.2
nnn950711 Mar 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion core/java/android/app/ContextImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public SharedPreferences getSharedPreferences(File file, int mode) {
+ "if UserManager is not available. "
+ "(e.g. from inside an isolated process)");
}
if (!um.isUserUnlockingOrUnlocked(UserHandle.myUserId())) {
if (!um.isUserUnlockingOrUnlocked(getUserId())) {
throw new IllegalStateException("SharedPreferences in "
+ "credential encrypted storage are not available until after "
+ "user (id " + UserHandle.myUserId() + ") is unlocked");
Expand Down
1 change: 1 addition & 0 deletions core/java/android/app/IActivityTaskManager.aidl
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ interface IActivityTaskManager {
List<IBinder> getAppTasks(in String callingPackage);
void startSystemLockTaskMode(int taskId);
void stopSystemLockTaskMode();
void rebuildSystemLockTaskPinnedMode();
void finishVoiceTask(in IVoiceInteractionSession session);
int addAppTask(in IBinder activityToken, in Intent intent,
in ActivityManager.TaskDescription description, in Bitmap thumbnail);
Expand Down
18 changes: 9 additions & 9 deletions core/java/android/app/Notification.java
Original file line number Diff line number Diff line change
Expand Up @@ -3236,17 +3236,17 @@ public void visitUris(@NonNull Consumer<Uri> visitor) {
person.visitUris(visitor);
}

final Parcelable[] messages = extras.getParcelableArray(EXTRA_MESSAGES,
Parcelable.class);
final Bundle[] messages =
getParcelableArrayFromBundle(extras, EXTRA_MESSAGES, Bundle.class);
if (!ArrayUtils.isEmpty(messages)) {
for (MessagingStyle.Message message : MessagingStyle.Message
.getMessagesFromBundleArray(messages)) {
message.visitUris(visitor);
}
}

final Parcelable[] historic = extras.getParcelableArray(EXTRA_HISTORIC_MESSAGES,
Parcelable.class);
final Parcelable[] historic =
getParcelableArrayFromBundle(extras, EXTRA_HISTORIC_MESSAGES, Bundle.class);
if (!ArrayUtils.isEmpty(historic)) {
for (MessagingStyle.Message message : MessagingStyle.Message
.getMessagesFromBundleArray(historic)) {
Expand Down Expand Up @@ -8501,8 +8501,8 @@ public boolean showsChronometer() {
*/
public boolean hasImage() {
if (isStyle(MessagingStyle.class) && extras != null) {
final Parcelable[] messages = extras.getParcelableArray(EXTRA_MESSAGES,
Parcelable.class);
final Bundle[] messages =
getParcelableArrayFromBundle(extras, EXTRA_MESSAGES, Bundle.class);
if (!ArrayUtils.isEmpty(messages)) {
for (MessagingStyle.Message m : MessagingStyle.Message
.getMessagesFromBundleArray(messages)) {
Expand Down Expand Up @@ -9794,10 +9794,10 @@ protected void restoreFromExtras(Bundle extras) {
mUser = user;
}
mConversationTitle = extras.getCharSequence(EXTRA_CONVERSATION_TITLE);
Parcelable[] messages = extras.getParcelableArray(EXTRA_MESSAGES, Parcelable.class);
Bundle[] messages = getParcelableArrayFromBundle(extras, EXTRA_MESSAGES, Bundle.class);
mMessages = Message.getMessagesFromBundleArray(messages);
Parcelable[] histMessages = extras.getParcelableArray(EXTRA_HISTORIC_MESSAGES,
Parcelable.class);
Bundle[] histMessages = getParcelableArrayFromBundle(
extras, EXTRA_HISTORIC_MESSAGES, Bundle.class);
mHistoricMessages = Message.getMessagesFromBundleArray(histMessages);
mIsGroupConversation = extras.getBoolean(EXTRA_IS_GROUP_CONVERSATION);
mUnreadMessageCount = extras.getInt(EXTRA_CONVERSATION_UNREAD_MESSAGE_COUNT);
Expand Down
2 changes: 1 addition & 1 deletion core/java/android/app/ResourcesManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,7 @@ private void appendLibAssetsLocked(@NonNull SharedLibraryAssets libAssets) {
final WeakReference<ResourcesImpl> weakImplRef = mResourceImpls.valueAt(i);
final ResourcesImpl impl = weakImplRef != null ? weakImplRef.get() : null;
if (impl == null) {
Slog.w(TAG, "Found a null ResourcesImpl, skipped.");
if (DEBUG) Slog.w(TAG, "Found a null ResourcesImpl, skipped.");
continue;
}

Expand Down
6 changes: 5 additions & 1 deletion core/java/android/app/admin/DeviceAdminInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,12 @@ public CharSequence loadLabel(PackageManager pm) {
*/
public CharSequence loadDescription(PackageManager pm) throws NotFoundException {
if (mActivityInfo.descriptionRes != 0) {
return pm.getText(mActivityInfo.packageName,
try {
return pm.getText(mActivityInfo.packageName,
mActivityInfo.descriptionRes, mActivityInfo.applicationInfo);
} catch (OutOfMemoryError e) {
throw new NotFoundException();
}
}
throw new NotFoundException();
}
Expand Down
8 changes: 8 additions & 0 deletions core/java/android/location/Location.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import android.os.Parcel;
import android.os.Parcelable;
import android.os.SystemClock;
import android.os.SystemProperties;
import android.util.Printer;
import android.util.TimeUtils;

Expand Down Expand Up @@ -805,6 +806,13 @@ public void setIsFromMockProvider(boolean isFromMockProvider) {
* @see LocationManager#addTestProvider
*/
public boolean isMock() {
// Check if mock location override is enabled via Settings
boolean overrideMockDetection = SystemProperties.getBoolean(
"persist.sys.override_mock_location", false);

if (overrideMockDetection) {
return false;
}
return (mFieldsMask & HAS_MOCK_PROVIDER_MASK) != 0;
}

Expand Down
16 changes: 16 additions & 0 deletions core/java/android/net/NetworkPolicy.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,22 @@ public static RecurrenceRule buildRule(int cycleDay, ZoneId cycleTimezone) {
}
}

public static RecurrenceRule buildWeeklyRule(int cycleDay, ZoneId cycleTimezone) {
if (cycleDay != NetworkPolicy.CYCLE_NONE) {
return RecurrenceRule.buildRecurringWeekly(cycleDay, cycleTimezone);
} else {
return RecurrenceRule.buildNever();
}
}

public static RecurrenceRule buildDailyRule(int cycleDay, ZoneId cycleTimezone) {
if (cycleDay != NetworkPolicy.CYCLE_NONE) {
return RecurrenceRule.buildRecurringDaily(cycleDay, cycleTimezone);
} else {
return RecurrenceRule.buildNever();
}
}

@Deprecated
public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone,
long warningBytes, long limitBytes, boolean metered) {
Expand Down
6 changes: 5 additions & 1 deletion core/java/android/os/StrictMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -1559,6 +1559,8 @@ public static void initVmDefaults(ApplicationInfo ai) {
if (targetSdkVersion >= Build.VERSION_CODES.N) {
builder.detectFileUriExposure();
builder.penaltyDeathOnFileUriExposure();
builder.detectActivityLeaks();
builder.detectLeakedRegistrationObjects();
}

if (Build.IS_USER || Build.IS_USERDEBUG || DISABLE || SystemProperties.getBoolean(DISABLE_PROPERTY, false)) {
Expand Down Expand Up @@ -2655,7 +2657,9 @@ private static void clampViolationTimeMap(final @NonNull SparseLongArray violati

/** @hide */
public static void onVmPolicyViolation(Violation originStack) {
onVmPolicyViolation(originStack, false);
boolean forceDeath = originStack instanceof IntentReceiverLeakedViolation
|| originStack instanceof ServiceConnectionLeakedViolation;
onVmPolicyViolation(originStack, forceDeath);
}

/** @hide */
Expand Down
155 changes: 141 additions & 14 deletions core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -7120,6 +7120,13 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean
public static final String STATUSBAR_BATTERY_BAR_BLEND_COLOR_REVERSE =
"statusbar_battery_bar_blend_color_reverse";

/**
* Whether to show remaining charging time on the lockscreen while charging
* @hide
*/
@Readable
public static final String LOCKSCREEN_CHARGING_TIME = "lockscreen_charging_time";

/**
* Enable/disable Bluetooth Battery bar
* @hide
Expand Down Expand Up @@ -7170,6 +7177,11 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean
*/
public static final String SHOW_FOURG_ICON = "show_fourg_icon";

/**
* @hide
*/
public static final String DISABLE_STACKED_MOBILE_ICONS = "disable_stacked_mobile_icons";

/**
* @hide
*/
Expand Down Expand Up @@ -7324,6 +7336,11 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean
*/
public static final String FP_ERROR_VIBRATE = "fp_error_vibrate";

/**
* @hide
*/
public static final String RECENTS_LOCKED_TASKS = "recents_locked_tasks";

/**
* Whether to show the carrier name on the lockscreen
* @hide
Expand Down Expand Up @@ -7411,12 +7428,32 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean
*/
public static final String QS_TILE_SHAPE = "qs_tile_shape";

/**
* @hide
*/
public static final String QS_TILE_STYLE_MINIMAL = "qs_tile_style_minimal";

/**
* @hide
*/
public static final String QS_USE_MODIFIED_TILE_SPACING = "qs_use_modified_tile_spacing";

/**
* @hide
*/
public static final String QS_TILE_STYLE_MINIMAL_INVERT = "qs_tile_style_minimal_invert";

/**
* Customize Brightness slider shape.
* @hide
*/
public static final String QS_BRIGHTNESS_SLIDER_SHAPE = "qs_brightness_slider_shape";

/**
* @hide
*/
public static final String QS_BRIGHTNESS_SLIDER_STYLE = "qs_brightness_slider_style";

/**
* Haptic feedback on QS tiles
* @hide
Expand Down Expand Up @@ -7757,6 +7794,91 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean
@Readable
public static final String BLOCK_WALLPAPER_DIMMING = "block_wallpaper_dimming";

/**
* What to show at the bottom of the Ambient display
* 0: Nothing.
* 1: Battery Percentage.
* 2: Battery Temperature.
* 3: Battery Percentage & Temperature Together.
* @hide
*/
public static final String AMBIENT_SHOW_SETTINGS = "ambient_show_settings";

/**
* Ambient settings show icons
* @hide
*/
public static final String AMBIENT_SHOW_SETTINGS_ICONS = "ambient_show_settings_icons";

/**
* Show Settings icon in QS Footer
* @hide
*/
public static final String QS_FOOTER_SHOW_SETTINGS = "qs_footer_show_settings";

/**
* Show Edit icon in QS Footer.
* @hide
*/
public static final String QS_FOOTER_SHOW_EDIT = "qs_footer_show_edit";

/**
* Show power menu icon in QS Footer.
* @hide
*/
public static final String QS_FOOTER_SHOW_POWER_MENU = "qs_footer_show_power_menu";

/**
* Gradient on QS tiles
* @hide
*/
public static final String QS_TILE_GRADIENT = "qs_tile_gradient";

/**
* Gradient on QS brightness slider
* @hide
*/
public static final String QS_BRIGHTNESS_SLIDER_GRADIENT = "qs_brightness_slider_gradient";

/**
* Gradient on Volume slider
* @hide
*/
public static final String VOLUME_SLIDER_GRADIENT = "volume_slider_gradient";

/**
* Gradient color mode
* @hide
*/
public static final String CUSTOM_GRADIENT_COLOR_MODE = "custom_gradient_color_mode";

/**
* Gradient start color
* @hide
*/
public static final String CUSTOM_GRADIENT_START_COLOR = "custom_gradient_start_color";

/**
* Gradient end color
* @hide
*/
public static final String CUSTOM_GRADIENT_END_COLOR = "custom_gradient_end_color";

/**
* @hide
*/
public static final String ONGOING_ACTION_CHIP = "ongoing_action_chip";

/**
* @hide
*/
public static final String ONGOING_MEDIA_PROGRESS = "ongoing_media_progress";

/**
* @hide
*/
public static final String ONGOING_COMPACT_MODE = "ongoing_compact_mode";

/**
* Keys we no longer back up under the current schema, but want to continue to
* process when restoring historical backup datasets.
Expand Down Expand Up @@ -14451,20 +14573,6 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val
@Readable
public static final String KEYBOX_DATA = "keybox_data";

/**
* Store vboot key.
* @hide
*/
@Readable
public static final String VBOOT_KEY = "vboot_key";

/**
* Store vboot hash.
* @hide
*/
@Readable
public static final String VBOOT_HASH = "vboot_hash";

/**
* Whether to show privacy indicator for location
* @hide
Expand Down Expand Up @@ -14578,6 +14686,18 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val
*/
public static final String GAME_OVERLAY = "game_overlay";

/**
* Whether to use system accent color for lock screen clock text
* @hide
*/
public static final String CLOCK_TEXT_ACCENT_COLOR = "clock_text_accent_color";

/**
* Lock screen clock text opacity (0-100)
* @hide
*/
public static final String CLOCK_TEXT_OPACITY = "clock_text_opacity";

/**
* Whether to show an overlay in the bottom corner of the screen on copying stuff
* into the clipboard.
Expand Down Expand Up @@ -14690,6 +14810,13 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val
*/
public static final String NOTIFICATION_ROW_TRANSPARENCY_LOCKSCREEN = "notification_row_transparency_lockscreen";

/**
* Control which apps to hide from other user apps.
* @hide
*/
@Readable
public static final String HIDE_APPLIST = "hide_applist";

/**
* Keys we no longer back up under the current schema, but want to continue to
* process when restoring historical backup datasets.
Expand Down
Loading