forked from LeddaZ/frameworks_base
68d5cc3941
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]: |
||
---|---|---|
.. | ||
java/com/android/server/usb | ||
Android.bp | ||
OWNERS | ||
lint-baseline.xml |