Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

privacy tweaks + cleanups #39

Open
wants to merge 647 commits into
base: 14
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
647 commits
Select commit Hold shift + click to select a range
00216f0
EnhancedEstimates: Get estimates from Device Health Services
mydongistiny Sep 26, 2022
ec26f52
telephony: SmsMessage: Bring newFromCDS method back
SamarV-121 Apr 8, 2022
596768c
Fix WifiInjector instance exception if WifiService disabled
Jun 20, 2020
c3b993a
Shell: Don't show bugreport on DocumentsUI
jhenrique09 Aug 13, 2018
7260eb0
Add additional work profile badge colors and labels
Mar 19, 2022
a6a8656
Allow profile owner to set user_setup_complete secure setting
Uldiniad Jan 6, 2023
0c283dd
display: Handle zero auto brightness adjustment
ghostrider-reborn Sep 7, 2023
3ac9f1a
SystemUI: Fix class cast exception when animating play/pause button
minaripenguin Aug 21, 2023
288d0c1
Optimize AbsListView to reduce click operation latency
May 19, 2023
e7e40cf
SystemUI: Add Weather tile based on OmniJaws client
neobuddy89 Oct 16, 2022
fe7e13e
SystemUI: Add refresh rate tile
jhonboy121 Sep 14, 2021
2ca269c
SystemUI: Add Screenshot tile
ShevT Dec 19, 2022
8f2999b
SystemUI: Add Sound search tile
ezio84 Feb 9, 2018
d6da533
SystemUI: Add Locale Tile
SpiritCroc Jan 22, 2023
bcc2548
SystemUI: Re-designed caffeine tile icon
Nov 9, 2022
fe7f4b9
SystemUI: CastTile: Open cast settings on long click
idoybh Jul 12, 2022
4049fb0
VolumePanel: Change bg tint for inactive rows
ArianK16a Jul 27, 2022
9e02ab8
SystemUI: Update charger plug-in statusbar chip color
ghostrider-reborn Jun 22, 2023
324b1b0
AudioService: focus listener: enable it when using external AudioFocus
Jul 2, 2021
598870c
Speed up Orientation Listener
Cl3Kener Oct 6, 2015
daf0943
AbsListView: Improve scrolling cache
pawitp Nov 17, 2014
4be09b1
base: set scrolling friction to 0.006f
xboxfanj Oct 14, 2016
144b965
ViewConfiguration: Set scroll friction to 0.009
TheCrazyLex Mar 16, 2017
dd7b219
SystemUI: Add charging icon to the charging animation
minaripenguin Nov 11, 2023
2ddd3da
SystemUI: Improve charging animation
minaripenguin Dec 25, 2022
b726c1e
BiometricScheduler: Cancel operation if not idle
SagarMakhar Aug 17, 2022
06d467f
PowerUI: Mute logcat spam.
spezi77 Aug 24, 2021
64a19bb
InputMethodManager: Prevent unnecessary invocation of IME
minaripenguin Nov 11, 2023
09aaaab
ViewGroup: Remove child parent when a new view is added
mydongistiny Sep 2, 2018
74e822a
Use synchronization to protect service list and service class name set
Oct 18, 2022
47c90ca
screencap: Add async option to media scanner broadcast
Oct 10, 2022
b26b2a8
Parcel: fix memory leak
Oct 4, 2022
b3b3be6
SystemUI: Align keyguard carrier text with status bar
AndyCGYan Apr 13, 2023
2e59d71
NotificationShade: Make blur crossfading more gradual
kdrag0n Jan 2, 2022
a25dfdd
LockPatternUtils: Decrease minimum pin length for auto confirmation
mickaelmendes50 Oct 18, 2023
1fcef3c
Remove unnecessary HashMap instantiation
Aug 24, 2022
2b95729
TelephonyManager: Gracefully handle null telephony service
minaripenguin Oct 30, 2023
4632085
audio: Don't play sound effects if stream is muted
ryzenforce990 Apr 3, 2016
362fdd3
AudioService: Register MASTER_BALANCE observer for all users
Nov 7, 2023
8c79ca6
Set FakeStore/PlayStore as Aurora Store installer package name
Uldiniad Jan 6, 2023
830fda7
Allow signature spoofing on user builds
neobuddy89 Mar 16, 2024
8a70fef
SQLiteDatabase: Catch corrupt exception during transaction
Nov 7, 2013
b156d33
VolumeDialog: Ensure proper resource release
minaripenguin Nov 8, 2023
9fe8304
VolumeDialogImpl: Dismiss dialog on config change
neobuddy89 Dec 29, 2023
4f6356c
Fix odm privapp permissions
Apr 14, 2022
23f715a
SystemUI: QSTileImpl: bail out early in handleLongClick if getLongCli…
jhonboy121 Feb 16, 2022
5672b26
development: Address NPE when removing preferences out of developer o…
Sep 23, 2018
fd9a264
SystemUI: Use secondary label for language QS tile
SKULSHADY May 13, 2021
ccad88b
Fix scrim issues regarding transparency
nift4 Apr 13, 2023
0be06ac
SystemUI: Align the QS carrier text to its gravity bias
minaripenguin Apr 15, 2023
70de5f9
SystemUI: Nuke oriented navbar handle
idoybh Mar 19, 2022
4860414
fwb: Fix navigation bar button hit testing
SahilSonar Jan 31, 2021
12ad1d6
ConfigurationController: Prevent app crash on orientation change
minaripenguin Mar 10, 2023
e16fce6
SystemUI: Follow Day/Night in statusbar avatar chip
StarkDroid Jan 17, 2023
7664bf3
SystemUI: Follow monet theme on privacy indicators
minaripenguin Mar 24, 2023
5c99302
SettingsLib: Migrate MainSwitchPreference to Material3
neobuddy89 Mar 25, 2024
64c5290
SystemUI: Tuner: Move to SwitchPreferenceCompat
someone5678 Mar 20, 2024
816bff2
base: Initial SenseProvider for FaceSense service
Sirhc95 Nov 25, 2023
b811217
SystemUI: Implement face unlock recognition animation and text
minaripenguin Nov 30, 2023
c4f41fe
SystemUI: Use proper tint for face unlock icon
neobuddy89 Dec 3, 2023
00fe58e
SystemUI: tuner: Migrate MainSwitchBar and Switch to Material3
bgcngm Mar 24, 2024
daa286a
services: Boost gesture flings
minaripenguin Nov 8, 2022
50b1e81
SystemUI: QS fling animation boost
minaripenguin Jul 4, 2023
0e027f5
services: Implement transition boosting
minaripenguin Nov 12, 2023
4a774ba
services: Implement activity boost optimization
minaripenguin Nov 12, 2023
9e381c8
Fix NPE in TextToSpeechManagerPerUserService
Jiangyou-li Dec 8, 2023
aee6326
Fix NPE in BootReceiver
Jiangyou-li Dec 8, 2023
495a916
Don't show app error dialog before system booted
Jiangyou-li Dec 8, 2023
ae164c0
Fix NPE in requestPowerState when displayPowerController is null
shawnlinboy Dec 8, 2023
740bb50
Fix potential NPE in isDefaultIme
shawnlinboy Dec 20, 2023
5234f0b
services: Implement exit app animation boost
minaripenguin Dec 27, 2023
1bdf38a
Boost process priority during fork.
Feb 7, 2024
1505076
Avoid device reboot caused by SecurityException.
Jan 29, 2024
3543c05
SystemUI: Properly set margins for QQS Brightness slider
neobuddy89 Apr 1, 2024
0563d19
services: Fix crash on callback remote animator
minaripenguin Jul 27, 2023
a82039a
services: WindowOrientationListener: bail out if rotation resolver se…
jhonboy121 Nov 10, 2021
17e5208
Fix freeform window resize not working on multiple displays
nift4 Aug 28, 2022
67d74f0
wm: rewrite/fix window change animation
nift4 May 17, 2023
dd82e17
wm: Fix menu only opening once on legacy apps
nift4 May 20, 2023
842e4b4
wm: Fix menu in legacy apps with multiple activities
nift4 May 22, 2023
96b600c
wm: block task transitions from displaying in freeform
nift4 May 21, 2023
4f06fa3
wm: block custom activity transit animations
nift4 May 21, 2023
3cbc82f
wm: never consume statusbar in freeform mode
nift4 May 21, 2023
3048ab0
wm: hacky fix for system_server crash
nift4 May 22, 2023
23e9ce0
wm: Optimize window/transition animation scaling
minaripenguin Jul 14, 2023
e4ebf51
wm: Fix rounded corners of freeform windows
neobuddy89 Nov 24, 2023
9a81710
WindowManager: finally proper desktop mode handling
nift4 Apr 29, 2023
d85d760
SystemUI: Apply rounded corners for QS footer
neobuddy89 Apr 4, 2024
93c13a4
Fix the memory leak caused by the accessibility menu in SystemUI
ryzenforce990 Mar 28, 2024
341da50
Avoid collectting certificates repeatedly in method ParsingPackageUti…
ganghuang4167 Mar 22, 2024
d1065ab
AudioService: Fix volume control during ringtone
Mar 20, 2024
178ac71
Fix font update failure
nona-google Apr 1, 2024
eb15434
Modify non updatable droidstubs dependency based on release flag
jihoonkang0829 Mar 21, 2024
f40d2e5
SettingsLib: Make IllustrationPreference bg protection transparent
minaripenguin Jan 11, 2023
b762a22
SettingsLib: InfoMediaManager: Assign mPackageName even if empty or null
danielml3 Mar 28, 2024
0a234b6
base: fixup after merges
LordShenron Apr 8, 2024
24e84c0
Base: revert all navigation related changes
ReveRTX Apr 10, 2024
ec65a65
Add 5G Ultra Wideband icon carrier config keys
May 18, 2022
ff667f5
Fix default values for 5G Ultra Wideband icon carrier config keys
Jun 22, 2022
7ad799f
Camera: Don't crash when trying to disable shutter sound
jhenrique09 Aug 20, 2018
8b374a0
Allow sending vendor- or device-specific commands to the camera HAL.
maniac103 Mar 3, 2015
c4f2ea6
Camera: Add feature extensions
Jul 9, 2015
ee93635
Camera: Don't throw exceptions when value pairs have spaces in them
rmcc Nov 8, 2014
2d70420
Guard in short-circuit evaluations for stringSplit methods.
mo3rfan Jul 21, 2015
67858c1
CameraManager: Fixup exposing aux camera to apps
idoybh Nov 12, 2020
b8fe7f1
CameraDeviceImpl: Don't crash when checking input configuration failed
XayahSuSuSu Oct 28, 2022
ad9c68e
camera: Allow selected camera apps to skip unconfigure
luk1337 Apr 29, 2021
8b9ab7b
Camera2: Notify fps as Session Based Parameter
May 17, 2018
9903e4e
Camera: Ignore torch status update for aux or composite camera
Apr 12, 2017
e248d34
Add config overlay to force enable multi resolution for camera
neobuddy89 Jan 9, 2022
dd6c053
Select the proper request list size
Aug 30, 2018
838576e
camera: Add backwards-compatible CaptureResultExtras constructor
ghostrider-reborn Dec 24, 2022
324b303
Camera: Allow setting fallback physical ID for logical camera [2/2]
ghostrider-reborn Sep 26, 2023
e1cae64
Remove one duplicate comparison from OutputConfiguration#equals
tonykwok Dec 14, 2023
7be0441
Automatic translation import
lineageos-gerrit Apr 15, 2024
5762b34
VolumeDialogImpl: Handle cases where media controller is not available
danielml3 Apr 7, 2024
4ca4917
fixup! frameworks: Add support for advanced restart options
Uldiniad Apr 29, 2024
4a5a4c1
fixup! Screenshot: Append app name to filename
Uldiniad Apr 29, 2024
283e9cc
fixup! SystemUI: Register content observer for clock position
Uldiniad Apr 29, 2024
bc80d2e
Automatic translation import
lineageos-gerrit May 1, 2024
ec00a5f
MediaSessionRecord: add synchronize control for modification of mCont…
Mar 26, 2024
1dff14b
SystemUI: Use color accent for charging animation
Genkzsz11 Apr 15, 2022
64328f4
PhantomProcessList: Fix comparison violation
minaripenguin Apr 9, 2024
d1a56be
SystemUI: Always allow plugins
nift4 Jun 24, 2022
73b4550
SystemUI: Add default path for FPS info service
neobuddy89 Apr 9, 2024
bc3b763
CompanionDeviceManager: This uses the MANAGE_COMPANION_DEVICES permis…
sourajitk Mar 28, 2023
04089d0
AudioDeviceBroker: reapply BT HAL state on native AS restart
Jan 23, 2024
92f4d9d
HwAudioSource: auto reconnect feature on AudioServer crash
Nov 8, 2021
c00296c
SystemUI: Filter out duplicate notification icons on statusbar
ghostrider-reborn Nov 21, 2023
104ebaf
SystemUI: Workaround for systemui crash caused by gboard
minaripenguin Oct 28, 2023
a62d834
libhwui: remove deprecated perf flags
mvaisakh Apr 19, 2023
1182e60
libhwui: enable O3 when compiling for perf
mvaisakh Apr 19, 2023
a57acbd
libhwui: compile for performance
mvaisakh Apr 19, 2023
144c8dd
config: set customizedMaxCachedProcesses to platform default
RealJohnGalt Dec 5, 2023
11244e7
CUR_MAX_CACHED_PROCESSES is not greater than the maximum value allowed
Oct 7, 2023
03b4275
OomAdjuster: B-service aging propagation on memory pressure
neobuddy89 Nov 21, 2023
8b025ff
CachedAppOptimizer: Set thread group to background
neobuddy89 Nov 21, 2023
9e8c550
CachedAppOptimizer: Fix persistent compact skipped
Apr 3, 2023
471dc3e
ActiveServices: Add delayed service restart (DSR) due to app launch
neobuddy89 Nov 21, 2023
d747cb1
DSR: Fix broken DSR
May 19, 2023
453ae1a
DSR: Fix DSR when we have toast window
Jun 8, 2023
c20e927
core: Catch OOB when returning pooled string
minaripenguin Jun 5, 2023
775d993
Fix possible NPE in StatusBarIconList causing bootloop
SpiritCroc Aug 4, 2023
f79f664
Fix sfps arrow color in overlay
jhenrique09 Apr 16, 2023
7a3e83b
SystemUI: enable fading squiggle animation of qs media player
nift4 Nov 2, 2023
0e9668f
SystemUI: Allow limiting AOD & ambient display refresh rate via overl…
raystef66 Feb 11, 2024
8b527a8
Increase Zenmode max hour limit from 12 to 24
Oct 4, 2017
43ab253
BrightnessUtils: Conditionally use low gamma implementation for brigh…
provasishh Feb 21, 2024
ef6a01a
WindowManagerService: Fix IndexOutOfBoundsException when traversing A…
minaripenguin Jun 17, 2023
4fceac9
ActivityThread: Resolve runtime exception when pausing an activity
minaripenguin Jun 16, 2023
51c5e91
ConfigurationController: Prevent app crash caused by null configuration
minaripenguin Mar 10, 2023
d6825a1
Check for Location Feature and GNSS HAL Support
Feb 13, 2024
45091c6
Fix uninstall for all users
t-m-w Feb 21, 2024
8bf445e
core: Gracefully handle unregistering of unregistered receivers/services
minaripenguin Feb 25, 2024
0838c89
Catch IllegalArgumentException as it might indicate corrupted package…
ganghuang4167 Mar 3, 2024
86ddb29
core: Allow vendor odm symlink in framework overlays paths
dereference23 Jan 20, 2024
32f844b
Use getPackagesForOps instead of iterating packages by checkOperation
Dec 22, 2022
88a9b38
SoundPool: Enable multithreaded track start
xt0032rus Jan 11, 2024
a012bad
SoundPool: Separate thread priority for SoundDecoder and StreamManager
xt0032rus Jan 27, 2024
24a6fc6
Enable FLAG_SECURE for userdebug builds as well on keyguard
danascape Feb 4, 2024
812a566
Fix memory leak on accessibility menu in SystemUI
ryzenforce990 Nov 16, 2023
5868358
Unregister broadcast receiver when user removed
Mar 1, 2024
6555c76
SystemUI: MediaHierarchyManager: Initiate allowMediaPlayerOnLockScreen
idoybh Apr 5, 2024
c835ad4
SystemUI: Fix RecodingController NPE with GameSpace
neobuddy89 Apr 11, 2024
90d4c83
SystemUI: Add null check for wakelock in KeyguardViewMediator
neobuddy89 Apr 11, 2024
d000a62
SystemUI: NotificationLockscreenUserManagerImpl: Avoid an NPE at boot
idoybh Apr 12, 2024
88442ea
SystemUI: biometrics: Follow user setting to confirm face unlock
neobuddy89 Jan 6, 2024
2bf747b
Add required priv-app permissions for SystemUIGoogle
neobuddy89 Nov 24, 2023
0a92c20
Restore getSimStateForSlotIndex in SubscriptionManager
AndyCGYan Aug 2, 2023
d537259
Remove usage of isSubscriptionVisible() in getSelectableSubscriptionI…
Dec 22, 2023
e3e88fa
Fix NPE in AnomalyReporter.initialize
Dec 18, 2023
3415b74
SystemUI: Show big keyguard clock when media controls are hidden
idoybh Apr 3, 2024
5371bfb
SystemUI: VolumeDialogImpl: Add content observer for panel timeout
neobuddy89 Apr 14, 2024
e6c22bc
Add some fwb stubs from Oplus
DennySPB Feb 9, 2024
d98674b
SystemUI: Remove notificationBackgroundTintOptimization flag
neobuddy89 Apr 22, 2024
910096b
Make all activities resizable
AndyCGYan Oct 7, 2023
af0c518
Don't update OverScroller fling state if improper time passed
Oct 29, 2020
b4fb457
Cache MemoryIntArray size
jdduke Feb 6, 2024
b671f48
SystemUI: Fetch bluetooth battery level from any device
jhonboy121 Mar 22, 2022
b3d3b5f
BluetoothControllerImpl: Optimize connected battery level scanning
minaripenguin Sep 3, 2023
a1ef4b9
Add DeskClock to hiddenapi whitelist
Jan 16, 2023
e2d59fc
SystemUI: Fix NPEs when posting notifications
minaripenguin Mar 28, 2024
6e462de
Enable reuse of LinearBlock for during secure playback
Apr 12, 2024
7145159
base: ViewConfiguration: synchronize access to sConfigurations array
idoybh Apr 15, 2024
4ebf3ba
BiometricService: put the mthod of resetLockoutFor into handler when …
Apr 12, 2024
a6d34e9
base: Allow turning on Bluetooth when pressing the tile [1/2]
idoybh Apr 22, 2024
089daf0
SettingsLib: Fix crash when checking emergency gesture state
minaripenguin Nov 15, 2023
72a0730
sounds: Implement new screenshot sound effect
minaripenguin Dec 26, 2022
da65a63
BroadcastReceiver: Gracefully handle redundant broadcasts
minaripenguin Oct 30, 2023
d7689e1
Textutils: Optimize writeToParcel performance
minaripenguin May 21, 2023
e22de1c
EventLog: Optimize writeEventArray for performance
minaripenguin May 19, 2023
d7e035c
Make empty modem activity info as valid
Apr 18, 2023
0f8fafb
SystemUI: Handle the SIM_STATE_NOT_READY state
Nov 12, 2023
fe52f5d
Fix incorrect text shown at PUK lock screen
Jan 17, 2023
8ce207c
Use encoder capabilities for determining screen recording size
Aug 21, 2023
45e8a3a
wm: Always account snapshot and IME surface when determining IME visb…
minaripenguin Dec 4, 2023
68d1c41
Fix unbind service error for MusicFxHelper
Apr 2, 2024
368ac6e
display: Don't animate screen brightness when turning the screen on
kerneltoast May 29, 2017
8ad375c
display: Don't reset brightness adjustment on clearUserDataPoints()
libxzr Jun 28, 2022
ab5235b
display: Allow HBM in manual brightness if no time limitation
ghostrider-reborn Oct 21, 2023
a87ce46
display: Consider peak refresh rate in BrightnessObserver
ghostrider-reborn Sep 5, 2023
9894cff
colors_device_defaults: Add chroma to light surface highlight color
kdrag0n Oct 13, 2022
a5c14fb
config_progress_background_tint: Use accent color for progress bar ba…
kdrag0n Oct 13, 2022
3b30a03
Fix NPE in SystemUI
5ec1cff Apr 11, 2024
e17c99f
Show hidden apps on secondary users' app lists
Uldiniad Oct 13, 2023
f9b7aeb
Prevent crashing with several child profiles
t-m-w Jan 22, 2024
3a30455
Update volume icons visibility after policy update
Dec 7, 2023
934acef
Unregister the existing RegisteredAttribution before adding new one.
Apr 24, 2024
5cd11a3
CameraManager: Prevent out of bounds when extracting camera IDs
minaripenguin Apr 24, 2024
5efff77
UserManagerService:getUserDataLU method should called by mUsersLock l…
Apr 16, 2024
aabec93
Check light sensor is null for biometric logging
Mar 5, 2024
6135784
Fixed ConcurrentModificationException in LockoutResetDispatcher
Oct 28, 2022
9ed22f2
Fix synchronous lock failures
Apr 22, 2024
97af9de
StringBlock: Prevent SystemUI crash when inflating QS
neobuddy89 May 1, 2024
ebf2de6
Mitigate LSKF leaks through the LockscreenCredential in KeyguardManager
Apr 23, 2024
af04a3a
RuntimeInit: Prevent bootloop trying to handle app crash of null service
neobuddy89 May 2, 2024
3028591
SystemUI: Adapt "Extend kill button to notification conversation guts…
someone5678 Mar 29, 2024
3d9c92c
CameraServiceProxy: fix exception
shutter-cat May 5, 2024
4c9f53a
Fix "Manage App & Content access" for profiles
t-m-w Jan 25, 2024
9a8e816
SystemUI: Fix the bluetooth icon cannot be toggled by status tuner
Apr 30, 2024
6c1ac4a
Disable freeze_exempt_inst_pkg by default
eggonlea Dec 18, 2023
658fcfc
Update VmaCallbacks to return bool
kevinjeon-g Feb 26, 2024
3928241
Call jobFinished after ProfcollectBGJobService processing completes
abhishekgadewar May 1, 2024
b85ceac
Fix SecondFingerMultiTap
Mar 25, 2024
8654569
Consume consecutive delimiters at beginning of refilled buffer
jyescas May 4, 2024
0f2a0d1
fix Sending non-protected broadcast android.bluetooth.device.action.K…
yuyangh May 2, 2024
de1f610
Obey AutoBrightnessStrategy's sensor decision in Controller
Snild-Sony Aug 31, 2023
90c05fd
usb: Bind to MtpService from UsbDeviceManager when using MTP/PTP
Oct 5, 2023
0568e1d
Save AutomaticBrightnessStrategy state before applying changes
Jul 13, 2023
ebc4d6e
Wakelock: Ensure `inner` wakelock is not null before releasing it
minaripenguin May 1, 2024
84dc4a9
usb: Use Get/SetByteArrayRegion in bulkTransfer
tcmulcahy Apr 19, 2024
3fefd42
Gnss:fix NPE due to the arraymap store the null key.
Apr 29, 2024
0c6d77a
FileRotator:fix NPE due to The File.list() method may be return null.
Apr 26, 2024
2a86e90
fix the uid is negative value in AppBatteryTracker
Apr 29, 2024
f54b088
Fix potential crash issue in NonRequiredPackageDeleteObserver
Apr 11, 2024
fc4932b
Inform Listeners when initializeDefaultsForSystemsApps() change idlen…
metamikexing Apr 12, 2024
6936ec5
Fix nullptr exception when using do-while
zning0128 Apr 22, 2024
1d981d3
Fix the restart problem caused by Table not executing resetTable
hupeng3 Apr 22, 2024
8f365b9
Fix display delay on desktop icons after app installed
Apr 9, 2024
1c1ab5b
WallpaperManagerService:fix NPE happen in onDisplayReadyInternal meth…
May 4, 2024
1937d0b
SystemUI: Fix thread safety issue when adding tunables
minaripenguin Apr 6, 2024
94d03c0
FingerprintAuthenticationClient:fix NPE problem due to getListener me…
May 6, 2024
85b47bd
SystemUI: Add support for GameSpace
nullxception Dec 27, 2021
7696bd5
GameManagerService: Set device_config property on behalf of GameSpace
Dhina17 Sep 15, 2023
de98f27
Merge pull request #38 from anoosragh69/14
ReveRTX May 13, 2024
78f77ad
base: Delete media tests
evan-a-a Nov 6, 2013
8c769af
base: Remove unnecessary videos
temasek Nov 29, 2014
2dfde54
Revert "Ignore the charging ripple flag."
jro1979oliver Jun 17, 2022
1a0d8fa
Disable/reduce functionality of various ad/analytics libraries
SkewedZeppelin May 21, 2018
235464f
stop auto-granting location to system browsers
thestinger Mar 17, 2019
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -5733,7 +5733,7 @@ private void decrementAlarmCount(int uid, int decrement) {
}
}
if (oldCount < decrement) {
Slog.wtf(TAG, "Attempt to decrement existing alarm count " + oldCount + " by "
Slog.w(TAG, "Attempt to decrement existing alarm count " + oldCount + " by "
+ decrement + " for uid " + uid);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2332,9 +2332,16 @@ public void initializeDefaultsForSystemApps(int userId) {
if (pi.applicationInfo != null && pi.applicationInfo.isSystemApp()) {
// Mark app as used for 2 hours. After that it can timeout to whatever the
// past usage pattern was.
mAppIdleHistory.reportUsage(packageName, userId, STANDBY_BUCKET_ACTIVE,
final AppUsageHistory appUsage = mAppIdleHistory.reportUsage(
packageName, userId, STANDBY_BUCKET_ACTIVE,
REASON_SUB_USAGE_SYSTEM_UPDATE, 0,
elapsedRealtime + mSystemUpdateUsageTimeoutMillis);
mHandler.sendMessageDelayed(
mHandler.obtainMessage(MSG_CHECK_PACKAGE_IDLE_STATE,
userId, -1, packageName),
mSystemUpdateUsageTimeoutMillis);
maybeInformListeners(packageName, userId, elapsedRealtime,
appUsage.currentBucket, REASON_SUB_USAGE_SYSTEM_UPDATE, false);
}
}
// Immediately persist defaults to disk
Expand Down
12 changes: 12 additions & 0 deletions api/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,18 @@ stubs_defaults {
visibility: ["//frameworks/base/api"],
}

soong_config_module_type {
name: "non_updatable_exportable_droidstubs",
module_type: "droidstubs",
config_namespace: "ANDROID",
bool_variables: [
"release_hidden_api_exportable_stubs",
],
properties: [
"dists",
],
}

// We resolve dependencies on APIs in modules by depending on a prebuilt of the whole
// platform (sdk_system_current_android). That prebuilt does not include module-lib APIs,
// so use the prebuilt module-lib stubs for modules that export module-lib stubs that the
Expand Down
123 changes: 109 additions & 14 deletions api/StubLibraries.bp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
// These modules provide source files for the stub libraries
/////////////////////////////////////////////////////////////////////

droidstubs {
soong_config_module_type_import {
from: "frameworks/base/api/Android.bp",
module_types: ["non_updatable_exportable_droidstubs"],
}

non_updatable_exportable_droidstubs {
name: "api-stubs-docs-non-updatable",
defaults: [
"android-non-updatable-stubs-defaults",
Expand All @@ -54,15 +59,35 @@ droidstubs {
targets: ["sdk"],
dir: "apistubs/android/public/api",
dest: "android-non-updatable.txt",
tag: ".api.txt",
},
{
targets: ["sdk"],
dir: "apistubs/android/public/api",
dest: "android-non-updatable-removed.txt",
tag: ".removed-api.txt",
},
],
soong_config_variables: {
release_hidden_api_exportable_stubs: {
dists: [
{
tag: ".exportable.api.txt",
},
{
tag: ".exportable.removed-api.txt",
},
],
conditions_default: {
dists: [
{
tag: ".api.txt",
},
{
tag: ".removed-api.txt",
},
],
},
},
},
api_surface: "public",
}

Expand All @@ -86,7 +111,7 @@ module_libs = [
"\\)",
]

droidstubs {
non_updatable_exportable_droidstubs {
name: "system-api-stubs-docs-non-updatable",
defaults: [
"android-non-updatable-stubs-defaults",
Expand Down Expand Up @@ -114,19 +139,39 @@ droidstubs {
targets: ["sdk"],
dir: "apistubs/android/system/api",
dest: "android-non-updatable.txt",
tag: ".api.txt",
},
{
targets: ["sdk"],
dir: "apistubs/android/system/api",
dest: "android-non-updatable-removed.txt",
tag: ".removed-api.txt",
},
],
soong_config_variables: {
release_hidden_api_exportable_stubs: {
dists: [
{
tag: ".exportable.api.txt",
},
{
tag: ".exportable.removed-api.txt",
},
],
conditions_default: {
dists: [
{
tag: ".api.txt",
},
{
tag: ".removed-api.txt",
},
],
},
},
},
api_surface: "system",
}

droidstubs {
non_updatable_exportable_droidstubs {
name: "test-api-stubs-docs-non-updatable",
defaults: [
"android-non-updatable-stubs-defaults",
Expand All @@ -149,31 +194,61 @@ droidstubs {
targets: ["sdk"],
dir: "apistubs/android/test/api",
dest: "android.txt",
tag: ".api.txt",
},
{
targets: ["sdk"],
dir: "apistubs/android/test/api",
dest: "removed.txt",
tag: ".removed-api.txt",
},
{
targets: ["sdk"],
dir: "apistubs/android/test/api",
dest: "android-non-updatable.txt",
tag: ".api.txt",
},
{
targets: ["sdk"],
dir: "apistubs/android/test/api",
dest: "android-non-updatable-removed.txt",
tag: ".removed-api.txt",
},
],
soong_config_variables: {
release_hidden_api_exportable_stubs: {
dists: [
{
tag: ".exportable.api.txt",
},
{
tag: ".exportable.removed-api.txt",
},
{
tag: ".exportable.api.txt",
},
{
tag: ".exportable.removed-api.txt",
},
],
conditions_default: {
dists: [
{
tag: ".api.txt",
},
{
tag: ".removed-api.txt",
},
{
tag: ".api.txt",
},
{
tag: ".removed-api.txt",
},
],
},
},
},
api_surface: "test",
}

droidstubs {
non_updatable_exportable_droidstubs {
name: "module-lib-api-stubs-docs-non-updatable",
defaults: [
"android-non-updatable-stubs-defaults",
Expand Down Expand Up @@ -201,15 +276,35 @@ droidstubs {
targets: ["sdk"],
dir: "apistubs/android/module-lib/api",
dest: "android-non-updatable.txt",
tag: ".api.txt",
},
{
targets: ["sdk"],
dir: "apistubs/android/module-lib/api",
dest: "android-non-updatable-removed.txt",
tag: ".removed-api.txt",
},
],
soong_config_variables: {
release_hidden_api_exportable_stubs: {
dists: [
{
tag: ".exportable.api.txt",
},
{
tag: ".exportable.removed-api.txt",
},
],
conditions_default: {
dists: [
{
tag: ".api.txt",
},
{
tag: ".removed-api.txt",
},
],
},
},
},
api_surface: "module-lib",
}

Expand Down
4 changes: 4 additions & 0 deletions boot/hiddenapi/hiddenapi-max-target-o.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77335,6 +77335,10 @@ Lcom/android/internal/R$drawable;->decor_close_button_dark:I
Lcom/android/internal/R$drawable;->decor_close_button_light:I
Lcom/android/internal/R$drawable;->decor_maximize_button_dark:I
Lcom/android/internal/R$drawable;->decor_maximize_button_light:I
Lcom/android/internal/R$drawable;->decor_minimize_button_dark:I
Lcom/android/internal/R$drawable;->decor_minimize_button_light:I
Lcom/android/internal/R$drawable;->decor_pip_button_dark:I
Lcom/android/internal/R$drawable;->decor_pip_button_light:I
Lcom/android/internal/R$drawable;->default_lock_wallpaper:I
Lcom/android/internal/R$drawable;->default_wallpaper:I
Lcom/android/internal/R$drawable;->dialog_frame:I
Expand Down
1 change: 1 addition & 0 deletions cmds/screencap/screencap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ static status_t notifyMediaScanner(const char* fileName) {
(char*) "android.intent.action.MEDIA_SCANNER_SCAN_FILE",
(char*) "-d",
&filePath[0],
(char*) "--async",
nullptr
};

Expand Down
20 changes: 19 additions & 1 deletion core/java/android/app/Activity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,15 @@ public void updateNavigationBarColor(int color) {
setTaskDescription(mTaskDescription);
}

@Override
public boolean moveTaskToBack(boolean nonRoot) {
return ActivityClient.getInstance().moveActivityTaskToBack(mToken, nonRoot);
}

@Override
public void onBackPressed() {
Activity.this.onBackPressed();
}
};

private static native String getDlWarning();
Expand Down Expand Up @@ -4147,6 +4156,15 @@ public boolean onKeyShortcut(int keyCode, KeyEvent event) {
return (actionBar != null && actionBar.onKeyShortcut(keyCode, event));
}

/**
* Check whether the activity supports pip.
* @see android.R.attr#supportsPictureInPicture
* @hide
*/
public boolean supportPictureInPictureMode() {
return mActivityInfo != null && mActivityInfo.supportsPictureInPicture();
}

/**
* Called when a touch screen event was not handled by any of the views
* inside of the activity. This is most useful to process touch events that happen
Expand Down Expand Up @@ -7424,7 +7442,7 @@ public boolean isTaskRoot() {
* back) true is returned, else false.
*/
public boolean moveTaskToBack(boolean nonRoot) {
return ActivityClient.getInstance().moveActivityTaskToBack(mToken, nonRoot);
return mWindowControllerCallback.moveTaskToBack(nonRoot);
}

/**
Expand Down
15 changes: 6 additions & 9 deletions core/java/android/app/ActivityThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -4885,7 +4885,7 @@ private void handleBindService(BindServiceData data) {
Service s = mServices.get(data.token);
if (DEBUG_SERVICE)
Slog.v(TAG, "handleBindService s=" + s + " rebind=" + data.rebind);
if (s != null) {
if (s != null && createData != null) {
try {
data.intent.setExtrasClassLoader(s.getClassLoader());
data.intent.prepareToEnterProcess(isProtectedComponent(createData.info),
Expand Down Expand Up @@ -4916,7 +4916,7 @@ private void handleBindService(BindServiceData data) {
private void handleUnbindService(BindServiceData data) {
CreateServiceData createData = mServicesData.get(data.token);
Service s = mServices.get(data.token);
if (s != null) {
if (s != null && createData != null) {
try {
data.intent.setExtrasClassLoader(s.getClassLoader());
data.intent.prepareToEnterProcess(isProtectedComponent(createData.info),
Expand Down Expand Up @@ -5023,7 +5023,7 @@ private void handleDumpProvider(DumpComponentInfo info) {
private void handleServiceArgs(ServiceArgsData data) {
CreateServiceData createData = mServicesData.get(data.token);
Service s = mServices.get(data.token);
if (s != null) {
if (s != null && createData != null) {
try {
if (data.args != null) {
data.args.setExtrasClassLoader(s.getClassLoader());
Expand Down Expand Up @@ -5376,7 +5376,9 @@ public void handlePauseActivity(ActivityClientRecord r, boolean finished, boolea
// {@link Activity#enterPictureInPictureMode(PictureInPictureParams)}.
r.activity.mIsInPictureInPictureMode = true;
}
performPauseActivity(r, finished, reason, pendingActions);
try {
performPauseActivity(r, finished, reason, pendingActions);
} catch (Exception e) {}

// Make sure any pending writes are now committed.
if (r.isPreHoneycomb()) {
Expand Down Expand Up @@ -7666,11 +7668,6 @@ public final IContentProvider acquireProvider(
}
}
if (holder == null) {
if (UserManager.get(c).isUserUnlocked(userId)) {
Slog.e(TAG, "Failed to find provider info for " + auth);
} else {
Slog.w(TAG, "Failed to find provider info for " + auth + " (user not unlocked)");
}
return null;
}

Expand Down
Loading