Merge "Revert "Enforce declared permissions on getCellularBatteryStats() and getWifiBatteryStats()"" into sc-dev am: b1a13a7371 am: c752c7cbe1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14974993 Change-Id: Ic556a0499f014fbd795f234771d138d538b8560e
This commit is contained in:
@@ -2499,7 +2499,6 @@ public final class BatteryStatsService extends IBatteryStats.Stub
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public CellularBatteryStats getCellularBatteryStats() {
|
public CellularBatteryStats getCellularBatteryStats() {
|
||||||
enforceCallingPermission();
|
|
||||||
// Wait for the completion of pending works if there is any
|
// Wait for the completion of pending works if there is any
|
||||||
awaitCompletion();
|
awaitCompletion();
|
||||||
synchronized (mStats) {
|
synchronized (mStats) {
|
||||||
@@ -2512,7 +2511,6 @@ public final class BatteryStatsService extends IBatteryStats.Stub
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public WifiBatteryStats getWifiBatteryStats() {
|
public WifiBatteryStats getWifiBatteryStats() {
|
||||||
enforceCallingPermission();
|
|
||||||
// Wait for the completion of pending works if there is any
|
// Wait for the completion of pending works if there is any
|
||||||
awaitCompletion();
|
awaitCompletion();
|
||||||
synchronized (mStats) {
|
synchronized (mStats) {
|
||||||
|
|||||||
Reference in New Issue
Block a user