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

Unverified Commit 627ab099 authored by DaVinci9196's avatar DaVinci9196 Committed by GitHub
Browse files

Measurement: Make stub app instance id 16 byte hex string (#2900)

parent 0b36c833
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ class AppMeasurementDynamiteService : IAppMeasurementDynamiteService.Stub() {
        Log.d(TAG, "Not yet implemented: getAppInstanceId")
        // Generate a random ID -> equivalent to ephemeral app instance id
        // Correct behavior would be to generate appropriate AppMetadata and call IMeasurementService.getAppInstanceId
        val ephemeralAppInstanceId = Random.nextBytes(32).toHexString("")
        val ephemeralAppInstanceId = Random.nextBytes(16).toHexString("")
        returnResult(receiver, ephemeralAppInstanceId)
    }