Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
723 commits
Select commit Hold shift + click to select a range
eca8fea
KeyguardBouncer: Don't delay showing if face auth running
jhenrique09 Feb 12, 2022
81711c3
base: do not use new lockscreen layout for bypass
ethan-halsall Apr 9, 2020
45f6f26
SystemUI: Do not show camera indicator for Face Unlock service
libxzr Mar 6, 2022
abff38d
WalletActivity: Don't explicity request face auth
jhenrique09 Oct 27, 2022
7a9df80
SystemUI: Reset face auth on occluding app when authenticated
jhenrique09 Feb 20, 2022
6ef3517
face: Pass requestId on our authentication client
jhenrique09 Oct 27, 2022
4402175
SystemUI: use simple check for isFaceDisabled
eyosen Jan 15, 2021
edb655b
base: Allow changing face unlock method when locked [1/2]
jhenrique09 Mar 28, 2020
a0b3119
SystemUI: Tell user when face unlock detection is running
jhenrique09 Feb 12, 2022
a21db07
SystemUI: Hide face recognizing message on bouncer when authenticated
jhenrique09 Nov 8, 2022
ff3aa1f
base: Allow to skip confirmation in biometric auth dialog [1/2]
cjh1249131356 Mar 1, 2022
e2bef8b
fw/b: enable nfc tile
ouroboros420 Jan 16, 2023
d7426b1
Youtube application when moving to PIP animation was very bad
Jan 2, 2023
6704e4e
NotificationPlayer: use AUDIOFOCUS_GAIN_TRANSIENT instead of AUDIOFOC…
Jun 28, 2022
b1a4c26
SystemUI: Fix QS mobile icon disappearing on theme switch
adithya2306 Jun 30, 2022
48bd7ac
SystemUI: QSCustomizer: Fix QS tile reset text color
althafvly Sep 28, 2022
79d9c21
SystemUI: Fix QS header clock color
maniac103 Jul 20, 2022
9061ae7
charging: Allow using vibration without sounds
xyyx Sep 16, 2022
d24ddcf
SystemUI: Add statusbar NFC icon
xyyx Oct 4, 2020
7c14c13
SystemUI: Bringup statusbar icons tuner [1/2]
Rashed97 Oct 19, 2017
7806c77
SystemUI: Adapt tuner prefs to S settings style
SagarMakhar Oct 21, 2021
c0fc254
SystemUI: Add VPN to the icon blacklist in tuner
maxwen Dec 12, 2017
4a59228
SystemUI: Add roaming indicator to statusbar tuner
adithya2306 Mar 7, 2022
c70a048
SystemUI: Add statusbar switch for data saver icon
xyyx Mar 26, 2022
e5010c5
SystemUI: Bring in drawables for statusbar icon toggles
althafvly Apr 21, 2022
98f1bd7
Add back button to demo mode fragment
Dec 20, 2019
f3a240b
Allow using 4G icon instead LTE [1/2]
neobuddy89 Mar 15, 2017
8cd38d0
SystemUI: old style mobile data indicators [1/2]
maxwen Nov 27, 2019
485b998
SystemUI: improve mobile data style switch logic
jhonboy121 Mar 2, 2022
c61cdc0
AlertSlider: Allow UI to work with multiple resolutions
AnierinBliss Sep 18, 2022
cf72a35
SystemUI: Use proper Resolver background color
elluzion Dec 7, 2020
1fb5ec2
colors_device_defaults: Add chroma to light surface highlight color
kdrag0n Oct 13, 2022
a7d7553
suppress SystemUI ANRs
kdrag0n Oct 14, 2022
2136612
Screenshot: Unregister task listener on destroy
OnlyTomInSecond Dec 14, 2022
ec48b16
DisplayUtils: Introduce getScaleFactor
AnierinBliss Nov 22, 2022
dd1b5ea
SidefpsController: Apply ScaleFactor to sensorLocationY
hellobbn Dec 15, 2022
e05dd77
SystemUI: Remove existing icon group if its overriding
adithya2306 Dec 23, 2022
d331f9e
base: get the most of the media artwork colors
eldainosor Jul 21, 2021
9f3f570
base: support per-app volume [2/3]
cjybyjk Feb 2, 2022
fe307a4
SystemUI: New per-app volume icon
ReallySnow May 7, 2022
363face
SystemUI: Use App icon for per-app volume
timjosten Jun 5, 2022
09dca5d
base: make per-app work with multi audio focus
eldainosor Aug 3, 2022
9bb7681
SystemUI: Adapt screenshot sound to ringer modes
Ashwin4RC May 27, 2020
99b121b
base: allow disable of screenshot shutter sound [1/2]
maxwen Mar 29, 2015
9cfd188
SystemUI: Screenshots: Refactor shutter sound logic
BadDaemon Feb 4, 2021
c6bc884
SystemUI: Fix shutter sound
BadDaemon Feb 5, 2020
1d9bd6d
Camera: Don't crash when trying to disable shutter sound
jhenrique09 Aug 20, 2018
4eaee20
SystemUI: Introduce Adaptive Playback [1/2]
imjyotiraditya Oct 30, 2020
f92894c
BootlegUtils: Method to detect a notch'd device
Jan 13, 2019
361bc76
BootlegUtils: Update notch check logic
SKULSHADY Nov 30, 2019
e1c837a
BootlegUitls: Add a sendKeycode api
ezio84 Sep 9, 2017
21bec3f
BootlegUtils: Add api to switch device screen off
ezio84 Jul 25, 2022
1371451
Allow to suppress notifications sound/vibration if screen is ON [1/2]
ezio84 Jan 4, 2018
276e6cb
Less boring heads up option [1/2]
ezio84 Nov 15, 2020
f626db4
Less boring heads up option: always show alarm clock headsup
neobuddy89 Jul 26, 2019
4b56641
incall vibration options [1/3]
Beanstown Sep 5, 2017
e0ea1ce
SystemUI: Double tap to sleep on lockscreen [1/2]
ezio84 Sep 1, 2017
36f901b
base: Double tap to sleep on statusbar [1/2]
maxwen Oct 24, 2021
8b74cf4
SystemUI: Make qs_footer_actions more modern
XayahSuSuSu Aug 19, 2022
ae6f95c
base: Long press power button to toggle torch [1/2]
ezio84 Oct 21, 2021
eb0201e
base: allow hiding navbar [1/3]
jhonboy121 Nov 25, 2021
8a6786c
SystemUI: allow changing the length of gesture navbar [1/2]
jhonboy121 Oct 4, 2020
a8a3c19
add permissions for Launcher3
tribual Jan 21, 2023
fa9e295
base: correct strings for advanced reboot
maxwen Jan 28, 2023
91f513e
base: Add Touch HIDL support
SKULSHADY Jan 2, 2020
2d9f04f
Add api to force show led lights
ezio84 Feb 1, 2018
0a19b5d
Add interface for battery stats reset
neobuddy89 Oct 12, 2022
224c8fd
frameworks: Reset battery stats [1/2]
jruesga Nov 24, 2015
e8e718d
PowerManagerService: Wake on plug (1/2)
craftyjon Dec 1, 2014
16e396f
base: Bluetooth timeout feature (1/2)
Uldiniad Oct 2, 2020
ad9b990
base: Wi-Fi timeout feature (1/2)
Uldiniad Feb 25, 2021
e006f85
[SQUASH] SystemUI: Show daily data usage in QS footer
adithya2306 Sep 10, 2021
c6879df
SystemUI: Show QS data usage suffix only when necessary
adithya2306 Oct 23, 2022
8cc6ce0
SystemUI: Allow hiding QS footer data usage [1/2]
adithya2306 Nov 9, 2022
c9ea998
SystemUI: Add caffeine QS tile
Nov 10, 2020
3ded0f9
Biometrics: Allow disabling of fingerprint cleanups
Quallenauge Feb 19, 2022
8e4ddfb
Biometrics: Load fingerprint cleanup overlay from framework-res
me-cafebabe Aug 20, 2022
805ba5e
base: Add three-fingers-swipe to screenshot [1/2]
ghbhaha Aug 8, 2015
98be425
base: Allow toggling screen off UDFPS [1/2]
jhonboy121 Aug 26, 2022
ece3799
PixelPropsUtils: Allow disabling netflix spoofing [1/2]
adithya2306 Nov 18, 2022
d55cbac
PixelPropsUtils: Use spoofBuildGms for FP and model alteration
kdrag0n Jan 23, 2023
32d7ff8
PixelPropsUtils: Use actual device model name
Dyneteve Dec 6, 2022
a1ffbd0
PixelPropsUtils: Set shipping level to 32 for devices >=33
anirudhgupta109 Jan 4, 2023
fd3274b
PixelPropsUtils: Update game props
joeyhuab Jan 24, 2023
b5b2c72
PixelPropsUtils: Make CTS/Play Integrity pass again
Dyneteve Feb 8, 2023
8833b08
Merge tag 'android-13.0.0_r30' into HEAD
eldainosor Feb 10, 2023
608b2a7
SystemUI: Implement lockscreen quick unlock [1/2]
mdmower Oct 13, 2021
e6bb48e
disable bluetooth by default
thestinger Dec 4, 2018
b942874
android.view: Speed things up!!
Nov 16, 2014
70df904
SystemUI: More rounded corners
Lucchetto Aug 29, 2018
5fcbe3e
Screenrecord: add blinking stop dot and low quality options
ezio84 Nov 14, 2020
d909e19
Screenrecord: Make low quality bitrate scalable per device
idoybh Apr 26, 2021
bc6ca5d
Screenrecord: Save and load set preferences
idoybh Apr 26, 2021
513981d
Screenrecord: Add an option to record for longer
idoybh May 13, 2021
d426a6b
Screenrecord: Update custom settings dialog drawables
idoybh Nov 20, 2021
fd059f4
Screenrecord: Update layout to the new spec
nullxception Nov 21, 2021
3e42898
Screenrecord: Allow to reduce 3 second screen record timer
Maitreya29 Feb 9, 2022
3644f41
Screenrecord: Allow to select AVC codec profile level
iusmac Aug 9, 2022
632a728
Screenrecord: Drop low quality switch
NurKeinNeid Sep 10, 2022
dba47aa
SystemUI: screen-dimmer-pixel-filter
pelya Apr 9, 2018
148416a
SystemUI: Smart Pixels [1/2]
Jan 4, 2018
8826b36
Smart Pixels: Switch to registered receiver
adindotdev Apr 18, 2018
cd36396
Smart Pixels: Dynamically register receiver
adindotdev Apr 21, 2018
8970fc4
SystemUI: Add Smart Pixels tile
adindotdev Apr 8, 2018
f04f354
SystemUI: mark smartpixels as a trusted overlay
anayw2001 Mar 1, 2022
0970d0d
Fix long click intent for Smart Pixels tile [1/2]
neobuddy89 Jul 7, 2019
c047e31
fwb: Allow disable Smart Pixels on UDFPS
ShevT Dec 15, 2022
206da02
fwb: Smart Pixels on UDFPS - drop disable_smart_pixels_on_udfps flag
ShevT Dec 18, 2022
aa56754
SmartPixels: Fix BatteryController dependency crash
neobuddy89 Dec 14, 2022
2748736
SystemUI: Optional haptic feedback on back gesture [1/2]
DennySPB Oct 5, 2020
b99df89
frameworks: Add unlinked ringtone and notification volumes
Nov 4, 2013
8f884f6
overlays: Add unlinked ringtone and notification volume icons
Nov 4, 2013
32d6795
Call log limit 500=>5000
psyafter Sep 8, 2016
b8cb470
base: Delete media tests
evan-a-a Nov 6, 2013
b4a0db7
base: Remove unnecessary videos
temasek Nov 29, 2014
6babeef
KernelCpuUidTimeReader: Decrease log level on non-eng builds
aviraxp Sep 13, 2019
09d8ff5
webkit: SystemImpl: Make systemIsDebuggable() check IS_ENG as well
luk1337 Jun 28, 2020
d97ad49
Updates to various icons:
dsandler Sep 13, 2019
5308aa7
Add support to manually pause/resume downloads [1/2]
Dec 17, 2013
031a343
fw/b: Squash import NetworkTraffic
Haus1 Jan 4, 2017
f88a7d0
NetworkTraffic: General improvements
libxzr Jun 13, 2022
6e31242
NetworkTraffic: Fix excessively high reading on screen wakeup
libxzr Jun 18, 2022
c5eabd3
NetworkTraffic: Make sure tint is updated on decor color change
libxzr Jun 19, 2022
f8e091f
NetworkTraffic: Follow status bar texts' text appearance
ReallySnow Jun 15, 2022
1976b42
SystemUI: NetworkTraffic: Minor refinements
adithya2306 Feb 13, 2021
6bbfded
Avoid casting network traffic to StatusBarIconView to prevent crash
SpiritCroc Nov 10, 2019
11e8c2d
base: Add support for window ignore secure [1/2]
libxzr Mar 18, 2022
6235c93
aapt: Default to 0 compression ratio
arter97 Apr 7, 2015
b309f35
KernelCpuUidActiveTimeReader: Do not spam log with negative active time
cjh1249131356 Apr 15, 2022
78d4ad6
Add kill button to notification guts [1/2]
dankoman30 Nov 27, 2018
204c55a
Feature: reticker [1/2]
Dil3mm4 Nov 12, 2020
10faca4
Properly update view for reTicker
neobuddy89 Apr 5, 2022
328c83c
reTicker: Allow to only show in Landscape mode [1/2]
cjh1249131356 May 7, 2022
367434e
reTicker: Do not show when content/icon is null
cjh1249131356 May 17, 2022
669a599
reTicker: Cleanup
cjh1249131356 May 21, 2022
184bc8c
Add Flashlight blink on incoming calls [1/3]
PMS22 Dec 16, 2019
08d5cd3
base: Allow to flash on call only when entirely silent [1/3]
idoybh Jun 10, 2020
b873ad7
base: Add DND & Rate settings to flash on call [1/3]
idoybh Jun 13, 2020
de59421
KeyguardIndication: Fix glitchy charging info on lockscreen
neobuddy89 Jan 30, 2022
101bafd
SystemUI: Unblock alarm and vibrate status bar icons
AndyCGYan Nov 24, 2022
7020f50
SystemUI: Introduce dynamic VoLTE & VoWiFi icons
SagarMakhar Jul 19, 2017
a98538c
Improvements for dynamic VoLTE & VoWiFi icons
neobuddy89 Dec 27, 2022
342012e
fixup! Improvements for dynamic VoLTE & VoWiFi icons
alex9yust Jan 1, 2023
a579454
fixup! fixup! Improvements for dynamic VoLTE & VoWiFi icons
alex9yust Jan 5, 2023
39a580e
base: Import Wi-Fi standard icon [1/2]
ReallySnow Jul 8, 2022
4a8570c
base: Hide power menu on secure lockscreen [1/2]
Altaf-Mahdi Oct 24, 2015
e8f220b
Hide status bar on lock screen [1/2]
maxwen Jul 7, 2021
91dcfae
Brightness slider [1/2]
Alberto97 Oct 14, 2017
13f0dff
SystemUI: Adjust brightness slider margins
Linux4 Feb 18, 2023
9c9c872
SystemUI: Change brightness slider position defaults
Linux4 Sep 24, 2022
4fbf53b
SystemUI: Re-evaluate system theme on QS brightness slider
SamarV-121 Jan 11, 2023
0e353c7
TunerService: Add parseInteger failsafe method
neobuddy89 Sep 11, 2019
2026a1d
ViewConfiguration: Set scroll friction to 0.012
TheCrazyLex Mar 16, 2017
0b691d5
KeyguardIndication: Fix glitchy charging info on AOD
neobuddy89 Dec 29, 2022
20255a7
SystemUI: Speed up actions expansion animation
kdrag0n Oct 6, 2021
8865440
SystemUI: Skip screen-on animation in all scenarios
kdrag0n Dec 16, 2020
b2916e3
SystemUI: Hide wifi standard icon if not connected to wifi
minaripenguin Feb 20, 2023
006268a
SystemUI: Blur the power menu
elluzion Sep 7, 2022
598ed48
SystemUI: Also blur power sub-menus
neobuddy89 Jan 31, 2023
683b15d
SystemUI: Increase blur radius to 65px
travarilo Dec 6, 2022
c47adfd
NotificationShade: Make blur crossfading more gradual
kdrag0n Jan 2, 2022
ff202ac
SystemUI: Blurs: allow blur even when GFX acceleration is disabled
Pulkit077 Jan 1, 2022
f1e0f7b
Show hidden apps on secondary users' app lists
Uldiniad Apr 13, 2022
729aca6
Hidden Apps filter for use in the Settings app
Jul 12, 2022
42c2158
AppLock: Allow locking all apps visible in launcher
neobuddy89 Feb 26, 2023
f293fef
Fix errorprone warnings that should be errors
Colecf Oct 16, 2022
b33a14b
Revert "AppLock: Allow locking all apps visible in launcher"
tribual Feb 27, 2023
00c6891
base: Add support for parallel space
libxzr Aug 20, 2022
f671950
base: Add support for managing files across parallel spaces
libxzr Sep 17, 2022
1199a53
SystemUI: Fix privacy indicator not showing for apps in parallel spaces
libxzr Sep 23, 2022
1d94f9c
data: Add missing priv-app permissions for parallel space
minaripenguin Nov 29, 2022
7427a3a
Whitelist some Packages for Parallel space
spkal01 Sep 18, 2022
9fa8030
services: Fix parallel space crash with third party launcher
neobuddy89 Dec 8, 2022
105bae3
services: Suppress double upgrade notification for parallel space
neobuddy89 Dec 8, 2022
13327d7
services: Do not turn on multi user switch for new parallel space
neobuddy89 Dec 8, 2022
8f079be
ActivityStarter: Resolve launcher intent to parallel owner user
libxzr Sep 25, 2022
0d98bc4
base: Expose parallel space owner to api
libxzr Sep 17, 2022
8d4e114
services: camera: Whitelist parallel space users
libxzr Sep 23, 2022
70d5416
services: location: Whitelist parallel space users
libxzr Sep 23, 2022
5af6fa5
base: Whitelist DocumentsUIGoogle for Parallel space
joeyhuab Jul 11, 2016
500cc75
base: Blacklist OPlusExtras for Parallel space
AnierinBliss Dec 25, 2022
e60ac33
fix some derps
tribual Feb 28, 2023
50340bc
ParallelSpace: Allow devices to overlay whitelist/blocklist apps
neobuddy89 Dec 30, 2022
1bfeecd
Add support for GMS switch
libxzr Feb 9, 2022
fb8a04f
ParallelSpace: Allow/block essential apps without overlay
neobuddy89 Jan 14, 2023
60b0cd9
ParallelSpace: Add Android Auto to block list
neobuddy89 Jan 19, 2023
c5917a3
ParallelSpace: Blocklist FM Radio apps
joeyhuab Jan 25, 2023
d600580
ParallelSpace: Switch to our setup wizard
joeyhuab Jan 25, 2023
ad87bab
fixup! udfps: Add support for udfps on aod without dedicated sensor
TheScarastic Sep 14, 2022
5254f1c
UdfpsController: make sure to continue with onAcquired even when pulsing
jhonboy121 Mar 4, 2022
9e89f1b
udfps: Implement framework dimming support
cjybyjk Apr 13, 2022
e7dc017
base: Introduce app lock [1/3]
jhonboy121 Feb 1, 2022
d6a0d97
base: Allow disabling color inversion support [1/2]
idoybh Jan 19, 2023
7c5fedd
PowerManager: Add proximity check on wake
bgcngm Dec 1, 2017
e4867d1
[SQUASH] pocket: Introduce pocket judge
kaluoshi Oct 29, 2019
17b27cd
PocketLock: Make using light sensor optional
Laker87 Feb 5, 2021
8f025e4
fw_base: Pocket Mode: Don't enable by default
semdoc Nov 16, 2022
7d9e803
Revert "Remove fixed grant of READ_PHONE_STATE and cleanup"
micky387 Apr 16, 2022
499d97c
SystemUI: Introduce camera & flashlight keyguard affordance
adithya2306 Jan 3, 2023
348f103
base: Allow setting bottom keyguard shortcuts [1/2]
idoybh Jan 14, 2023
3e0efa8
SystemUI: Redesign lockscreen bottom buttons
adithya2306 Jan 7, 2023
f606182
base: add CPU info overlay
maxwen Sep 27, 2019
72db659
QS: Add CPUInfo toggle tile
mydongistiny Dec 24, 2017
7f3acb4
SystemUI: Add Compass tile
romanbb Sep 27, 2017
bfbc898
SystemUI: Fix QS compass tile spam & instability
timjosten Aug 18, 2022
1dba5ec
SystemUI: Introduce DataSwitchTile
Myself5 Nov 26, 2019
cbe2017
DataSwitchTile: Fix issue when subId is non-binary
neobuddy89 Feb 7, 2022
9234804
DataSwitchTile: Resolve initial tile state
ShevT Feb 11, 2022
1fa6dbb
DataSwitchTile: Update SIMs QS icons
Herna1994 Jun 4, 2020
3fa47af
Tuner: Don't clear out prefs, it's not disabled
Oct 19, 2021
ac8f859
TunerService: Prevent NPE with tunable
neobuddy89 Jan 19, 2018
b5f0f54
SystemUI: tuner: Allow Tuner API for System settings
zwliew Oct 13, 2016
931ab10
SystemUI: Allow using tuner API for Global settings
neobuddy89 Dec 24, 2017
cfe3e6a
TunerServiceImpl: Blacklist Settings.System from tuner reset
moetayuko Nov 15, 2018
c5db567
base: bootleggers: import some utils
Martinusbe Dec 17, 2017
b0bc6bf
Add some static custom utilities
ezio84 Aug 31, 2017
a1dbc6c
base: add back weather parts [1/3]
maxwen Aug 30, 2018
c6952f5
base: SystemUI: keyguard weather view [1/3]
maxwen Aug 30, 2018
0305a86
base: SystemUI: keyguard weather view - fix initial kick off after boot
maxwen Sep 7, 2018
a498d0e
base: SystemUI: fix keyguard weather color update
maxwen Sep 27, 2018
2c25369
base: SystemUI: make keyguard weather icon smaller
eyosen Dec 15, 2018
14c6c98
base: add weather to keyguardSlice
eyosen Dec 21, 2018
a55de6e
base: SystemUI: add keyguard weather style (1/2)
eyosen Dec 22, 2018
a832402
SystemUI: keyguardslice code cleanup
eyosen Dec 28, 2018
a44f5b9
WeatherTile: Do not show if not installed
neobuddy89 May 10, 2020
817b6b1
SystemUI: make qs weather page follow system font setting
maxwen Jan 15, 2020
77e5a89
core: move OmniJaws client to its new home
eyosen Jun 13, 2019
62c226e
SystemUI: Uncouple the temperature from the image
GeoZac Nov 14, 2020
084e44d
base: weather panel improvements
GeoZac Nov 15, 2020
458b225
base: add missing device config permissions for settings
eyosen Apr 25, 2021
1f427ce
SystemUI: LS Weather improvements
eyosen Mar 4, 2022
6a00e28
Keyguard: increase statusview-notifications margin
eyosen Mar 2, 2022
90eef1e
base: WeatherTile: remove till it's fixed
semdoc Sep 15, 2022
3d861b5
SystemUI: Force weather container to be aligned with the small clock
GeoZac May 29, 2022
6e977ac
Revert "base: WeatherTile: remove till it's fixed"
eldainosor Mar 5, 2023
7a42448
WeatherTile: Remove detailed view from QS
eldainosor Feb 9, 2023
67bdcfd
WeatherTile: Send weather info to a Secondary Label
eldainosor Jan 18, 2020
151d20f
WeatherTile: Start Google Weather on Click
LorDClockaN Mar 6, 2017
8a08f6b
Weather tile click: alternative weather apps when google weather not …
SpiritCroc Mar 8, 2017
b09de10
Weather tile: Use the alternate apps first
eldainosor Mar 22, 2018
ebcd784
Weather: Add switches to show city/temp on lockscreen [1/2]
mydongistiny Dec 21, 2020
00746de
base: app widgets fix update check from Build.FINGERPRINT to Build.TIME
maxwen Dec 25, 2022
52c2116
base: bring back all changes from Build.FINGERPRINT to Build.TIME
maxwen Oct 5, 2020
f8842ae
base: fix pm cache directory invalidate on new builds
maxwen Sep 1, 2022
840e4d6
base: remove useless pm cache hack
maxwen Sep 1, 2022
b95ec78
core: Port CLO's Framework Boost
markakash Oct 25, 2022
bd0d240
perf: Add lock protection for initialization in ScrollOptimizer
Nov 22, 2022
562979e
Filter multi-layer cases for pre-rendering
Nov 10, 2022
da87d34
OverScroller: Import BoostFramework.ScrollOptimizer
CHRISL7 Jan 12, 2023
a807260
BoostFramework: Guard it with overlay
jhenrique09 Feb 12, 2023
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 Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ java_library {
"android.se.omapi-V1-java",
"android.system.suspend.control.internal-java",
"devicepolicyprotosnano",

"com.android.sysprop.apex",
"com.android.sysprop.init",
"com.android.sysprop.localization",
"PlatformProperties",
"vendor.lineage.touch-V1.0-java",
],
sdk_version: "core_platform",
installable: false,
Expand Down
1 change: 1 addition & 0 deletions CleanSpec.mk
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/symbols/system/lib/libhwui.so)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/libhwui.so)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/os/storage/*)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/content/IClipboard.P)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/pocket/*)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/telephony/java/com/android/internal/telephony/ITelephonyRegistry.P)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates)
$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/docs/api-stubs*)
Expand Down
6 changes: 6 additions & 0 deletions apct-tests/perftests/core/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,10 @@ android_test {

test_suites: ["device-tests"],
certificate: "platform",

errorprone: {
javacflags: [
"-Xep:ReturnValueIgnored:WARN",
],
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void timeFinalization() {
int got = count.get();
if (n != got) {
throw new IllegalStateException(
String.format("Only %i of %i objects finalized?", got, n));
String.format("Only %d of %d objects finalized?", got, n));
}
}
}
1 change: 1 addition & 0 deletions cmds/screencap/screencap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,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
2 changes: 2 additions & 0 deletions core/api/current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ package android {
field public static final String DUMP = "android.permission.DUMP";
field public static final String EXPAND_STATUS_BAR = "android.permission.EXPAND_STATUS_BAR";
field public static final String FACTORY_TEST = "android.permission.FACTORY_TEST";
field public static final String FAKE_PACKAGE_SIGNATURE = "android.permission.FAKE_PACKAGE_SIGNATURE";
field public static final String FOREGROUND_SERVICE = "android.permission.FOREGROUND_SERVICE";
field public static final String GET_ACCOUNTS = "android.permission.GET_ACCOUNTS";
field public static final String GET_ACCOUNTS_PRIVILEGED = "android.permission.GET_ACCOUNTS_PRIVILEGED";
Expand Down Expand Up @@ -222,6 +223,7 @@ package android {
field public static final String CALL_LOG = "android.permission-group.CALL_LOG";
field public static final String CAMERA = "android.permission-group.CAMERA";
field public static final String CONTACTS = "android.permission-group.CONTACTS";
field public static final String FAKE_PACKAGE = "android.permission-group.FAKE_PACKAGE";
field public static final String LOCATION = "android.permission-group.LOCATION";
field public static final String MICROPHONE = "android.permission-group.MICROPHONE";
field public static final String NEARBY_DEVICES = "android.permission-group.NEARBY_DEVICES";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public void run(final AccountManagerFuture<Bundle> accountManagerFuture) {
mExistingAccounts = AccountManager.get(this).getAccountsForPackage(mCallingPackage,
mCallingUid);
intent.setFlags(intent.getFlags() & ~Intent.FLAG_ACTIVITY_NEW_TASK);
startActivityForResult(intent, REQUEST_ADD_ACCOUNT);
startActivityForResult(new Intent(intent), REQUEST_ADD_ACCOUNT);
return;
}
} catch (OperationCanceledException e) {
Expand Down
3 changes: 3 additions & 0 deletions core/java/android/app/ActivityManagerInternal.java
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,9 @@ public abstract PendingIntent getPendingIntentActivityAsApp(
*/
public abstract @TempAllowListType int getPushMessagingOverQuotaBehavior();

// Starts a process as empty.
public abstract int startActivityAsUserEmpty(Bundle options);

/**
* Return the startForeground() grace period after calling startForegroundService().
*/
Expand Down
52 changes: 49 additions & 3 deletions core/java/android/app/ActivityThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
import android.telephony.TelephonyFrameworkInitializer;
import android.util.AndroidRuntimeException;
import android.util.ArrayMap;
import android.util.BoostFramework;
import android.util.DisplayMetrics;
import android.util.EventLog;
import android.util.Log;
Expand Down Expand Up @@ -6448,6 +6449,8 @@ private String getInstrumentationLibrary(ApplicationInfo appInfo, Instrumentatio

@UnsupportedAppUsage
private void handleBindApplication(AppBindData data) {
long st_bindApp = SystemClock.uptimeMillis();
BoostFramework ux_perf = null;
// Register the UI Thread as a sensitive thread to the runtime.
VMRuntime.registerSensitiveThread();
// In the case the stack depth property exists, pass it down to the runtime.
Expand Down Expand Up @@ -6566,10 +6569,17 @@ private void handleBindApplication(AppBindData data) {
/**
* Switch this process to density compatibility mode if needed.
*/
if ((data.appInfo.flags&ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES)
if ((data.appInfo.flags & ApplicationInfo.FLAG_SUPPORTS_SCREEN_DENSITIES)
== 0) {
mDensityCompatMode = true;
Bitmap.setDefaultDensity(DisplayMetrics.DENSITY_DEFAULT);
} else {
int overrideDensity = data.appInfo.getOverrideDensity();
if(overrideDensity != 0) {
Log.d(TAG, "override app density from " + DisplayMetrics.DENSITY_DEVICE + " to " + overrideDensity);
mDensityCompatMode = true;
Bitmap.setDefaultDensity(overrideDensity);
}
}
mConfigurationController.updateDefaultDensity(data.config.densityDpi);

Expand Down Expand Up @@ -6667,6 +6677,15 @@ private void handleBindApplication(AppBindData data) {
Trace.traceEnd(Trace.TRACE_TAG_ACTIVITY_MANAGER);
}

if (!Process.isIsolated()) {
final int old_mask = StrictMode.allowThreadDiskWritesMask();
try {
ux_perf = new BoostFramework(appContext);
} finally {
StrictMode.setThreadPolicyMask(old_mask);
}
}

if (!Process.isIsolated()) {
final int oldMask = StrictMode.allowThreadDiskWritesMask();
try {
Expand Down Expand Up @@ -6793,6 +6812,33 @@ private void handleBindApplication(AppBindData data) {
throw e.rethrowFromSystemServer();
}
}
long end_bindApp = SystemClock.uptimeMillis();
int bindApp_dur = (int) (end_bindApp - st_bindApp);
String pkg_name = null;
if (appContext != null) {
pkg_name = appContext.getPackageName();
}
if (ux_perf != null && !Process.isIsolated() && pkg_name != null) {
String pkgDir = null;
try
{
String codePath = appContext.getPackageCodePath();
pkgDir = codePath.substring(0, codePath.lastIndexOf('/'));
}
catch(Exception e)
{
Slog.e(TAG, "HeavyGameThread () : Exception_1 = " + e);
}
if (ux_perf.board_first_api_lvl < BoostFramework.VENDOR_T_API_LEVEL &&
ux_perf.board_api_lvl < BoostFramework.VENDOR_T_API_LEVEL) {
ux_perf.perfUXEngine_events(BoostFramework.UXE_EVENT_BINDAPP, 0,
pkg_name,
bindApp_dur,
pkgDir);
} else {
ux_perf.perfEvent(BoostFramework.VENDOR_HINT_BINDAPP, pkg_name, 2, bindApp_dur, 0);
}
}
}

private void handleSetContentCaptureOptionsCallback(String packageName) {
Expand Down Expand Up @@ -7037,9 +7083,9 @@ public final IContentProvider acquireProvider(
}
if (holder == null) {
if (UserManager.get(c).isUserUnlocked(userId)) {
Slog.e(TAG, "Failed to find provider info for " + auth);
if (DEBUG_MESSAGES) Slog.e(TAG, "Failed to find provider info for " + auth);
} else {
Slog.w(TAG, "Failed to find provider info for " + auth + " (user not unlocked)");
if (DEBUG_MESSAGES) Slog.w(TAG, "Failed to find provider info for " + auth + " (user not unlocked)");
}
return null;
}
Expand Down
19 changes: 19 additions & 0 deletions core/java/android/app/AppLockData.aidl
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (C) 2022 FlamingoOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package android.app;

parcelable AppLockData;
89 changes: 89 additions & 0 deletions core/java/android/app/AppLockData.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* Copyright (C) 2022 FlamingoOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package android.app;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.os.Parcel;
import android.os.Parcelable;

/**
* Class to hold package level information about an
* application protected with app lock.
*
* @hide
*/
public final class AppLockData implements Parcelable {

public static final Parcelable.Creator<AppLockData> CREATOR =
new Parcelable.Creator<AppLockData>() {

@Override
public AppLockData createFromParcel(Parcel in) {
return new AppLockData(in);
}

@Override
public AppLockData[] newArray(int size) {
return new AppLockData[size];
}
};

private final String mPackageName;
private final boolean mShouldRedactNotification;

/** @hide */
public AppLockData(
@NonNull final String packageName,
final boolean shouldRedactNotification
) {
mPackageName = packageName;
mShouldRedactNotification = shouldRedactNotification;
}

private AppLockData(final Parcel in) {
mPackageName = in.readString();
mShouldRedactNotification = in.readBoolean();
}

@NonNull
public String getPackageName() {
return mPackageName;
}

public boolean getShouldRedactNotification() {
return mShouldRedactNotification;
}

@Override
public int describeContents() {
return 0;
}

@Override
public void writeToParcel(final Parcel parcel, final int flags) {
parcel.writeString(mPackageName);
parcel.writeBoolean(mShouldRedactNotification);
}

@Override
@NonNull
public String toString() {
return "AppLockData[ packageName = " + mPackageName +
", shouldRedactNotification = " + mShouldRedactNotification + " ]";
}
}
Loading