with android os 7.1.1 when "Background process limit - No background processes" is checked (in developer option settings), when minimized the app and re-open the app, all global data like val ViewModelDataMap = HashMap<String, Data>(), which is defined in file level - not inside any class are destroyed.
(also has the dont keep activity alive setting on)
but with api 28, when re-open the app the map is still have the old data in the map, seems the app has not been destroyed (although the trace shows the activity/fragment's onDestroy() are called).
why the behaviors are different? does with the api 28 that the os will not destroy the app process even if chosen "Background process limit - No background processes"?