Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d761b54e authored by Chenjie Yu's avatar Chenjie Yu
Browse files

fix uid for ActivityForegroundStateChanged atom

+ was using userId. should use app.uid

Test: manual test. will add cts test
Change-Id: I905cbcb719ae0a0f160c55fc391eec180906723d
Fix: 73067495
parent 049ecedd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4371,7 +4371,7 @@ public class ActivityManagerService extends IActivityManager.Stub
                "updateUsageStats: comp=" + component + "res=" + resumed);
        final BatteryStatsImpl stats = mBatteryStatsService.getActiveStatistics();
        StatsLog.write(StatsLog.ACTIVITY_FOREGROUND_STATE_CHANGED,
            component.userId, component.realActivity.getPackageName(),
            component.app.uid, component.realActivity.getPackageName(),
            component.realActivity.getShortClassName(), resumed ?
                        StatsLog.ACTIVITY_FOREGROUND_STATE_CHANGED__ACTIVITY__MOVE_TO_FOREGROUND :
                        StatsLog.ACTIVITY_FOREGROUND_STATE_CHANGED__ACTIVITY__MOVE_TO_BACKGROUND);