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

Commit b173a95a authored by Muhammad Qureshi's avatar Muhammad Qureshi
Browse files

Fix native stats_event logging

pass the byte array pointer; not the reference to the pointer.

Also turn on new socket protocol.

Bug: 148909969
Bug: 143979391
Test: m
Test: fastboot flashall
Test: atest android.cts.statsd.atom.UidAtomTests#testLmkKillOccurred
Test: atest LibStatsPullTests
Test: atest GtsStatsdHostTestCases
Change-Id: If7abae5cadb036555540d1b9b5e7f2cabe99beb8
parent f49c38be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -324,5 +324,5 @@ void AStatsEvent_build(AStatsEvent* event) {

int AStatsEvent_write(AStatsEvent* event) {
    AStatsEvent_build(event);
    return write_buffer_to_statsd(&event->buf, event->size, event->atomId);
    return write_buffer_to_statsd(event->buf, event->size, event->atomId);
}