the app currently uses SharedPreferences to store auditee pairings, with one file for one paired auditee.
moving the paired auditee data to a sqlite database makes a lot of sense:
- it becomes possible to enumerate all the devices in a consistent ordering without having to do sorting
- the web app already uses sqlite, so this can help unify the two apps.
- using many SharedPreferences files significantly increases memory usage as iiuc each SharedPreference file gets loaded & cached in memory
- the graphene os development guidelines explicit call out sqlite as a trusted library
the app currently uses
SharedPreferencesto store auditee pairings, with one file for one paired auditee.moving the paired auditee data to a sqlite database makes a lot of sense: