Skip to content
  • Sharaf Zaman's avatar
    Android: Make saving operation on exit more robust · f248c032
    Sharaf Zaman authored
    Sometimes if file operation took too long some devices (not all) would
    kill our saving thread after a while which would leave saving operation
    incomplete. In this change rather than relying on mercy of vendor we
    start a Foreground Service which will effectively stop vendor from
    killing the process! Once we're done saving we kill the process
    overselves.
    
    (cherry picked from commit cff205c2)
    
    # Conflicts:
    #	packaging/android/apk/AndroidManifest.xml
    f248c032