3
0
Fork 0
android_frameworks_base/services
Adithya R 68d5cc3941 usb: Show charging notification only if power brick is disconnected
On USB HIDL devices (qcom) and barely-implemented AIDL (older Pixels)
the power brick connection status is always POWER_BRICK_STATUS_UNKNOWN,
leading to charging notification showing up even while charging with a
wall charger.

Properly implemented USB AIDL [1] should report
POWER_BRICK_STATUS_DISCONNECTED when charging with anything other than
a wall charger (i.e SDP/PD), hence use this as the check instead.

[1]: 94bc87a6f2/usb/usb/Usb.cpp (785)

Fixes a13e377.

Change-Id: I9e251211e5801b2c1766a12bab7d4787c445dc14
2024-12-06 12:53:54 +00:00
..
accessibility Prevent calls to StatusBarManagerInternal from visible background users 2024-10-11 01:01:15 +00:00
api
appfunctions Batch calls to the Metadata Syncer 2024-09-22 18:43:44 +00:00
appprediction
appwidget
autofill Disallow autofill session for visible background users 2024-10-31 19:24:47 +00:00
backup
cloudsearch
companion [CDM] Fix association persistence XML parser logic. 2024-09-20 21:08:01 +00:00
contentcapture
contentsuggestions
contextualsearch
core display: Handle zero auto brightness adjustment 2024-12-06 12:53:54 +00:00
coverage
credentials
devicepolicy
fakes
flags
foldables/devicestateprovider
incremental
java/com/android/server [SQUASH] Implement DeviceConfigUtils and service 2024-12-06 12:53:53 +00:00
midi
musicrecognition
net
people
permission
print
profcollect
restrictions
robotests
searchui
smartspace
startop
supervision
systemcaptions
tests Revert "Sanitize Bundle from AbstractAccountAuthenticator." 2024-10-25 23:01:47 +00:00
texttospeech
translation
usage
usb usb: Show charging notification only if power brick is disconnected 2024-12-06 12:53:54 +00:00
voiceinteraction
wallpapereffectsgeneration
wifi
Android.bp
OWNERS
art-profile
art-profile-boot
art-wear-profile
lint-baseline.xml
manifest_services.xml
manifest_services_android.frameworks.vibrator.xml
proguard.flags
proguard_permission.flags