odrefresh: add test for samegrade ART APEX install

Adds a test that a samegrade ART APEX installation triggers
recompilation of AOT artifacts.

The test exposed situation where the first log entry is incorrectly
logged as zero which is also fixed here.

Bug: 192647837
Test: atest odsign_e2e_tests
Test: atest art_odrefresh_tests
Change-Id: Iefb0fbbca119ed3e47bc17caa2ef8467b241b26c
2 files changed