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

Commit 9763cd3a authored by Willy Hu's avatar Willy Hu
Browse files

[DSRM] Shift the phone id value due to proto limitations

Symptom: If we use the values 0 and 1 for the phone ID,
         when the device uploads the metrics with the old ROM,
	 they will be mixed up(default value is 0).

- To avoid this problem, we shift the value and it can filter out the old and new data.

Bug: 260166714
Test: Manual test passed
      Telephony sanity test passed. Result: b/269436482.

Change-Id: I111ea39a6bfae1588973a478c0afc93c25d8dc91
Merged-In: I111ea39a6bfae1588973a478c0afc93c25d8dc91
(cherry picked from commit 71808a8f)
parent d5db19f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -144,7 +144,8 @@ public class DataStallRecoveryStats {
            phoneNetworkRegState = phoneRegInfo.getRegistrationState();
        }

        int phoneId = phone.getPhoneId();
        // reserve 0 for default value
        int phoneId = phone.getPhoneId() + 1;

        TelephonyStatsLog.write(
                TelephonyStatsLog.DATA_STALL_RECOVERY_REPORTED,