Merge "Revert "Enforce declared permissions on getCellularBatteryStats() and getWifiBatteryStats()"" into sc-dev am: b1a13a7371 am: f03c0de818

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14974993

Change-Id: I963dd0a85f7f181f643f5768c2f87b92896f8539
This commit is contained in:
Sorin Basca
2021-06-15 14:59:51 +00:00
committed by Automerger Merge Worker

View File

@@ -2524,7 +2524,6 @@ public final class BatteryStatsService extends IBatteryStats.Stub
* @hide
*/
public CellularBatteryStats getCellularBatteryStats() {
enforceCallingPermission();
// Wait for the completion of pending works if there is any
awaitCompletion();
synchronized (mStats) {
@@ -2537,7 +2536,6 @@ public final class BatteryStatsService extends IBatteryStats.Stub
* @hide
*/
public WifiBatteryStats getWifiBatteryStats() {
enforceCallingPermission();
// Wait for the completion of pending works if there is any
awaitCompletion();
synchronized (mStats) {