{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,5]],"date-time":"2026-02-05T07:21:01Z","timestamp":1770276061633,"version":"3.49.0"},"reference-count":67,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2020,11,13]],"date-time":"2020-11-13T00:00:00Z","timestamp":1605225600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"National Science Foundation","award":["CCF-2007024, CNS-1617584"],"award-info":[{"award-number":["CCF-2007024, CNS-1617584"]}]},{"DOI":"10.13039\/100006785","name":"Google","doi-asserted-by":"publisher","award":["Google Research Award"],"award-info":[{"award-number":["Google Research Award"]}],"id":[{"id":"10.13039\/100006785","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,11,13]]},"abstract":"<jats:p>Mobile operating systems, especially Android, expose apps to a volatile runtime environment. The app state that reflects past user interaction and system environment updates (e.g., battery status changes) can be destroyed implicitly, in response to runtime configuration changes (e.g., screen rotations) or memory pressure. Developers are therefore responsible for identifying app state affected by volatility and preserving it across app lifecycles. When handled inappropriately, the app may lose state or end up in an inconsistent state after a runtime configuration change or when users return to the app.<\/jats:p>\n          <jats:p>\n            To free developers from this tedious and error-prone task, we propose a systematic solution, LiveDroid, which precisely identifies the\n            <jats:italic>necessary<\/jats:italic>\n            part of the app state that needs to be preserved across app lifecycles, and automatically saves and restores it. LiveDroid consists of: (i) a static analyzer that reasons about app source code and resource files to pinpoint the program variables and GUI properties that represent the necessary app state, and (ii) a runtime system that manages the state saving and recovering. We implemented LiveDroid as a plugin in Android Studio and a patching tool for APKs. Our evaluation shows that LiveDroid can be successfully applied to 966 Android apps. A focused study with 36 Android apps shows that LiveDroid identifies app state much more precisely than an existing solution that includes all mutable program variables but ignores GUI properties. As a result, on average, LiveDroid is able to reduce the costs of state saving and restoring by 16.6X (1.7X - 141.1X) and 9.5X (1.1X - 43.8X), respectively. Furthermore, compared with the manual state handling performed by developers, our analysis reveals a set of 46 issues due to incomplete state saving\/restoring, all of which can be successfully eliminated by LiveDroid.\n          <\/jats:p>","DOI":"10.1145\/3428228","type":"journal-article","created":{"date-parts":[[2020,11,24]],"date-time":"2020-11-24T23:40:14Z","timestamp":1606261214000},"page":"1-30","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":13,"title":["LiveDroid: identifying and preserving mobile app state in volatile runtime environments"],"prefix":"10.1145","volume":"4","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-7229-9847","authenticated-orcid":false,"given":"Umar","family":"Farooq","sequence":"first","affiliation":[{"name":"University of California at Riverside, USA"}]},{"given":"Zhijia","family":"Zhao","sequence":"additional","affiliation":[{"name":"University of California at Riverside, USA"}]},{"given":"Manu","family":"Sridharan","sequence":"additional","affiliation":[{"name":"University of California at Riverside, USA"}]},{"given":"Iulian","family":"Neamtiu","sequence":"additional","affiliation":[{"name":"New Jersey Institute of Technology, USA"}]}],"member":"320","published-online":{"date-parts":[[2020,11,13]]},"reference":[{"key":"e_1_2_2_1_1","unstructured":"2020. Glucosio for Android. https:\/\/github.com\/Glucosio\/glucosio-android. Accessed: 2020-07-22.  2020. Glucosio for Android. https:\/\/github.com\/Glucosio\/glucosio-android. Accessed: 2020-07-22."},{"key":"e_1_2_2_2_1","unstructured":"2020. K-9 Mail. https:\/\/github.com\/k9mail\/k-9. Accessed: 2020-07-22.  2020. K-9 Mail. https:\/\/github.com\/k9mail\/k-9. Accessed: 2020-07-22."},{"key":"e_1_2_2_3_1","unstructured":"2020. MapBox. https:\/\/github.com\/mapbox\/mapbox-gl-native. Accessed: 2020-09-08.  2020. MapBox. https:\/\/github.com\/mapbox\/mapbox-gl-native. Accessed: 2020-09-08."},{"key":"e_1_2_2_4_1","unstructured":"2020. Open MF. https:\/\/github.com\/openMF\/android-client. Accessed: 2020-09-08.  2020. Open MF. https:\/\/github.com\/openMF\/android-client. Accessed: 2020-09-08."},{"key":"e_1_2_2_5_1","unstructured":"2020. StackOveflow Question 456211. https:\/\/stackoverflow.com\/questions\/456211\/activity-restart-on-rotation-android. Accessed: 2020-09-08.  2020. StackOveflow Question 456211. https:\/\/stackoverflow.com\/questions\/456211\/activity-restart-on-rotation-android. Accessed: 2020-09-08."},{"key":"e_1_2_2_6_1","unstructured":"2020. TileView Library. https:\/\/github.com\/moagrius\/TileView. Accessed: 2020-09-08.  2020. TileView Library. https:\/\/github.com\/moagrius\/TileView. Accessed: 2020-09-08."},{"key":"e_1_2_2_7_1","unstructured":"2020. WordPress-Android. https:\/\/github.com\/wordpress-mobile\/WordPress-Android. Accessed: 2020-09-08.  2020. WordPress-Android. https:\/\/github.com\/wordpress-mobile\/WordPress-Android. Accessed: 2020-09-08."},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/2771783.2771786"},{"key":"e_1_2_2_9_1","volume-title":"Compilers: Principles Techniques and Tools.","author":"Aho Alfred V","year":"2006"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/1542431.1542450"},{"key":"e_1_2_2_11_1","unstructured":"alliedmarketresearch. 2020. Mobile Application Market by Marketplace. https:\/\/www.alliedmarketresearch.com\/mobileapplication-market. Accessed: 2020-04-30.  alliedmarketresearch. 2020. Mobile Application Market by Marketplace. https:\/\/www.alliedmarketresearch.com\/mobileapplication-market. Accessed: 2020-04-30."},{"key":"e_1_2_2_12_1","unstructured":"Apple. 2020a. About the Virtual Memory System. https:\/\/developer.apple.com\/library\/archive\/documentation\/Performance\/ Conceptual\/ManagingMemory\/Articles\/MemoryAlloc.html. Accessed: 2020-09-08.  Apple. 2020a. About the Virtual Memory System. https:\/\/developer.apple.com\/library\/archive\/documentation\/Performance\/ Conceptual\/ManagingMemory\/Articles\/MemoryAlloc.html. Accessed: 2020-09-08."},{"key":"e_1_2_2_13_1","unstructured":"Apple. 2020b. Preserving Your App's UI Across Launches. https:\/\/developer.apple.com\/documentation\/uikit\/view_controllers\/preserving_your_app_s_ui_across_launches. Accessed: 2020-10-06.  Apple. 2020b. Preserving Your App's UI Across Launches. https:\/\/developer.apple.com\/documentation\/uikit\/view_controllers\/preserving_your_app_s_ui_across_launches. Accessed: 2020-10-06."},{"key":"e_1_2_2_14_1","unstructured":"Apple. 2020c. Reducing Disk Writes. https:\/\/developer.apple.com\/documentation\/xcode\/improving_your_app_s_performance\/reducing_disk_writes. Accessed: 2020-09-08.  Apple. 2020c. Reducing Disk Writes. https:\/\/developer.apple.com\/documentation\/xcode\/improving_your_app_s_performance\/reducing_disk_writes. Accessed: 2020-09-08."},{"key":"e_1_2_2_15_1","unstructured":"Apple. 2020d. Reducing Your App's Memory Use. https:\/\/developer.apple.com\/documentation\/xcode\/improving_your_app_s_performance\/reducing_your_app_s_memory_use. Accessed: 2020-09-08.  Apple. 2020d. Reducing Your App's Memory Use. https:\/\/developer.apple.com\/documentation\/xcode\/improving_your_app_s_performance\/reducing_your_app_s_memory_use. Accessed: 2020-09-08."},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/1958746.1958793"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/2594291.2594299"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1109\/SCAM.2012.20"},{"key":"e_1_2_2_19_1","doi-asserted-by":"crossref","unstructured":"Luca Berardinelli Vittorio Cortellessa and Antinisca Di Marco. 2010. Performance modeling and analysis of context-aware mobile software systems. Fundamental Approaches to Software Engineering ( 2010 ) 353-367.  Luca Berardinelli Vittorio Cortellessa and Antinisca Di Marco. 2010. Performance modeling and analysis of context-aware mobile software systems. Fundamental Approaches to Software Engineering ( 2010 ) 353-367.","DOI":"10.1007\/978-3-642-12029-9_25"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276514"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/2259051.2259052"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31057-7_29"},{"key":"e_1_2_2_23_1","unstructured":"F-Droid. 2020. F-Droid. https:\/\/f-droid.org\/. Accessed: 2020-07-22.  F-Droid. 2020. F-Droid. https:\/\/f-droid.org\/. Accessed: 2020-07-22."},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/3210240.3210327"},{"key":"e_1_2_2_25_1","volume-title":"33rd European Conference on Object-Oriented Programming.","author":"Fourtounis George","year":"2019"},{"key":"e_1_2_2_26_1","unstructured":"Github. 2020. Github. https:\/\/github.com\/. Accessed: 2020-09-10.  Github. 2020. Github. https:\/\/github.com\/. Accessed: 2020-09-10."},{"key":"e_1_2_2_27_1","unstructured":"Google. 2020a. Android AsyncTask. https:\/\/developer.android.com\/reference\/android\/os\/AsyncTask. Accessed: 2020-08-30.  Google. 2020a. Android AsyncTask. https:\/\/developer.android.com\/reference\/android\/os\/AsyncTask. Accessed: 2020-08-30."},{"key":"e_1_2_2_28_1","unstructured":"Google. 2020b. Android Developer Guides: Handle Configuration Changes. https:\/\/developer.android.com\/guide\/topics\/ resources\/runtime-changes. Accessed: 2020-04-30.  Google. 2020b. Android Developer Guides: Handle Configuration Changes. https:\/\/developer.android.com\/guide\/topics\/ resources\/runtime-changes. Accessed: 2020-04-30."},{"key":"e_1_2_2_29_1","unstructured":"Google. 2020c. Android NativeActivity. https:\/\/developer.android.com\/reference\/android\/app\/NativeActivity. Accessed: 2020-08-30.  Google. 2020c. Android NativeActivity. https:\/\/developer.android.com\/reference\/android\/app\/NativeActivity. Accessed: 2020-08-30."},{"key":"e_1_2_2_30_1","unstructured":"Google. 2020d. Android Processes and Application Lifecycle. https:\/\/developer.android.com\/guide\/components\/activities\/ process-lifecycle. Accessed: 2020-04-30.  Google. 2020d. Android Processes and Application Lifecycle. https:\/\/developer.android.com\/guide\/components\/activities\/ process-lifecycle. Accessed: 2020-04-30."},{"key":"e_1_2_2_31_1","unstructured":"Google. 2020e. Android Saving UI States. https:\/\/developer.android.com\/topic\/libraries\/architecture\/saving-states. Accessed: 2020-04-30.  Google. 2020e. Android Saving UI States. https:\/\/developer.android.com\/topic\/libraries\/architecture\/saving-states. Accessed: 2020-04-30."},{"key":"e_1_2_2_32_1","unstructured":"Google. 2020f. IntentService. https:\/\/developer.android.com\/reference\/android\/app\/IntentService. Accessed: 2020-09-10.  Google. 2020f. IntentService. https:\/\/developer.android.com\/reference\/android\/app\/IntentService. Accessed: 2020-09-10."},{"key":"e_1_2_2_33_1","unstructured":"Google. 2020g. A Java serialization\/deserialization library to convert Java Objects into JSON and back. https:\/\/github.com\/ google\/gson. Accessed: 2020-4-30.  Google. 2020g. A Java serialization\/deserialization library to convert Java Objects into JSON and back. https:\/\/github.com\/ google\/gson. Accessed: 2020-4-30."},{"key":"e_1_2_2_34_1","unstructured":"Google. 2020h. Overview of memory management. https:\/\/developer.android.com\/topic\/performance\/memory-overview. Accessed: 2020-04-30.  Google. 2020h. Overview of memory management. https:\/\/developer.android.com\/topic\/performance\/memory-overview. Accessed: 2020-04-30."},{"key":"e_1_2_2_35_1","unstructured":"Google. 2020i. Services overview. https:\/\/developer.android.com\/guide\/components\/services. Accessed: 2020-09-10.  Google. 2020i. Services overview. https:\/\/developer.android.com\/guide\/components\/services. Accessed: 2020-09-10."},{"key":"e_1_2_2_36_1","unstructured":"Google. 2020j. ViewModel Overview. https:\/\/developer.android.com\/topic\/libraries\/architecture\/viewmodel. Accessed: 2020-09-08.  Google. 2020j. ViewModel Overview. https:\/\/developer.android.com\/topic\/libraries\/architecture\/viewmodel. Accessed: 2020-09-08."},{"key":"e_1_2_2_37_1","unstructured":"GooglePlay. 2020. Google Play. https:\/\/play.google.com\/. Accessed: 2020-07-22.  GooglePlay. 2020. Google Play. https:\/\/play.google.com\/. Accessed: 2020-07-22."},{"key":"e_1_2_2_38_1","doi-asserted-by":"crossref","unstructured":"Chun-Hung Hsiao Jie Yu Satish Narayanasamy Ziyun Kong Cristiano L Pereira Gilles A Pokam Peter M Chen and Jason Flinn. 2014. Race detection for event-driven mobile applications. ACM SIGPLAN Notices 49 6 ( 2014 ) 326-336.  Chun-Hung Hsiao Jie Yu Satish Narayanasamy Ziyun Kong Cristiano L Pereira Gilles A Pokam Peter M Chen and Jason Flinn. 2014. Race detection for event-driven mobile applications. ACM SIGPLAN Notices 49 6 ( 2014 ) 326-336.","DOI":"10.1145\/2666356.2594330"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/1982595.1982612"},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/2592798.2592813"},{"key":"e_1_2_2_41_1","first-page":"873","volume-title":"End the Senseless Killing: Improving Memory Management for Mobile Operating Systems. In 2020 USENIX Annual Technical Conference (USENIX ATC 20)","author":"Lebeck Niel","year":"2020"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-24851-4_22"},{"key":"e_1_2_2_43_1","first-page":"153","volume-title":"12th International Conference (LNCS), G. Hedin (Ed.)","volume":"2622","author":"Lhot\u00e1k Ond\u0159ej","year":"2003"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/2639108.2639131"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/2642937.2643001"},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/2635868.2635903"},{"key":"e_1_2_2_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/2568225.2568229"},{"key":"e_1_2_2_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/2594291.2594311"},{"key":"e_1_2_2_49_1","doi-asserted-by":"publisher","DOI":"10.1109\/IWAST.2012.6228987"},{"key":"e_1_2_2_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/2568225.2568309"},{"key":"e_1_2_2_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/199448.199462"},{"key":"e_1_2_2_52_1","doi-asserted-by":"publisher","DOI":"10.1145\/2652524.2652538"},{"key":"e_1_2_2_53_1","volume-title":"Murali Krishna Ramanathan, and Suresh Jagannathan","author":"Samak Malavika","year":"2015"},{"key":"e_1_2_2_54_1","doi-asserted-by":"publisher","DOI":"10.1145\/2983990.2984040"},{"key":"e_1_2_2_55_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-14107-2_11"},{"key":"e_1_2_2_56_1","doi-asserted-by":"publisher","DOI":"10.1145\/1985793.1985804"},{"key":"e_1_2_2_57_1","doi-asserted-by":"publisher","DOI":"10.1145\/2983990.2984011"},{"key":"e_1_2_2_58_1","unstructured":"Soot. 2020. Soot: a Java Optimization Framework. https:\/\/www.sable.mcgill.ca\/soot\/. Accessed: 2020-07-01.  Soot. 2020. Soot: a Java Optimization Framework. https:\/\/www.sable.mcgill.ca\/soot\/. Accessed: 2020-07-01."},{"key":"e_1_2_2_59_1","volume-title":"Aliasing in Object-Oriented Programming. Types, Analysis and Verification","author":"Sridharan Manu"},{"key":"e_1_2_2_60_1","doi-asserted-by":"publisher","DOI":"10.1145\/1103845.1094817"},{"key":"e_1_2_2_61_1","volume-title":"Mobile operating systems' market share worldwide from","year":"2012"},{"key":"e_1_2_2_62_1","unstructured":"statista. 2020. Number of smartphone users worldwide 2016-2021. https:\/\/www.statista.com\/statistics\/330695\/number-ofsmartphone-users-worldwide\/. Accessed: 2020-04-30.  statista. 2020. Number of smartphone users worldwide 2016-2021. https:\/\/www.statista.com\/statistics\/330695\/number-ofsmartphone-users-worldwide\/. Accessed: 2020-04-30."},{"key":"e_1_2_2_63_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-37057-1_15"},{"key":"e_1_2_2_64_1","volume-title":"European Conference on Object-Oriented Programming. Springer, 98-122","author":"Xu Guoqing","year":"2009"},{"key":"e_1_2_2_65_1","doi-asserted-by":"publisher","DOI":"10.1145\/2001420.2001440"},{"key":"e_1_2_2_66_1","doi-asserted-by":"publisher","DOI":"10.1109\/ISSRE.2013.6698894"},{"key":"e_1_2_2_67_1","volume-title":"Verification and Validation (ICST), 2014 IEEE Seventh International Conference on. IEEE, 183-192","author":"Zaeem Razieh Nokhbeh","year":"2014"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428228","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3428228","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3428228","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T22:02:57Z","timestamp":1750197777000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428228"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,11,13]]},"references-count":67,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2020,11,13]]}},"alternative-id":["10.1145\/3428228"],"URL":"https:\/\/doi.org\/10.1145\/3428228","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,11,13]]},"assertion":[{"value":"2020-11-13","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}