Merge changes from topics "presubmit-am-125395c1a55c4e859af27656b2c26312", "presubmit-am-b14104e5e9774385913debfdc01994b2" into sc-v2-dev-plus-aosp

* changes:
  [automerge] fix potential use-after-frees of stack memory 2p: 3f467bd10f
  fix potential use-after-frees of stack memory
  Refactor and reuse some read device file logic Add skeleton on HAL for Gnss raw measurement injection