{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,13]],"date-time":"2026-01-13T21:19:48Z","timestamp":1768339188501,"version":"3.49.0"},"reference-count":54,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA2","license":[{"start":{"date-parts":[[2023,10,16]],"date-time":"2023-10-16T00:00:00Z","timestamp":1697414400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/100000001","name":"NSF","doi-asserted-by":"publisher","award":["CCF-2008369"],"award-info":[{"award-number":["CCF-2008369"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"name":"NSF","award":["CCF-1619282"],"award-info":[{"award-number":["CCF-1619282"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2023,10,16]]},"abstract":"<jats:p>This paper considers the callback reachability problem --- determining if a callback can be called by an event-driven framework in an unexpected state.  \nEvent-driven programming frameworks are pervasive for creating user-interactive applications (apps) on just about every modern platform.  \nControl flow between callbacks is determined by the framework and largely opaque to the programmer.  \nThis opacity of the callback control flow not only causes difficulty for the programmer but is also difficult for those developing static analysis.  \nPrevious static analysis techniques address this opacity either by assuming an arbitrary framework implementation or attempting to eagerly specify all possible callback control flow,  \nbut this is either too coarse to prove properties requiring callback-ordering constraints or too burdensome and tricky to get right.  \nInstead, we present a middle way where the callback control flow can be gradually refined in a targeted manner to prove assertions of interest.  \nThe key insight to get this middle way is by reasoning about the history of method invocations at the boundary between app and framework code --- enabling a decoupling of the specification of callback control flow from the analysis of app code.  \nWe call the sequence of such boundary-method invocations message histories and develop message-history logics to do this reasoning.  \nIn particular, we define the notion of an application-only transition system with boundary transitions, a message-history program logic for programs with such transitions, and a temporal specification logic for capturing callback control flow in a targeted and compositional manner.  \nThen to utilize the logics in a goal-directed verifier, we define a way to combine after-the-fact an assertion about message histories with a specification of callback control flow.  \nWe implemented a prototype message history-based verifier called Historia and provide evidence that our approach is uniquely capable of distinguishing between buggy and fixed versions on challenging examples drawn from real-world issues and that our targeted specification approach enables proving the absence of multi-callback bug patterns in real-world open-source Android apps.<\/jats:p>","DOI":"10.1145\/3622865","type":"journal-article","created":{"date-parts":[[2023,10,16]],"date-time":"2023-10-16T15:41:29Z","timestamp":1697470889000},"page":"1905-1934","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":1,"title":["Historia: Refuting Callback Reachability with Message-History Logics"],"prefix":"10.1145","volume":"7","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-1349-4316","authenticated-orcid":false,"given":"Shawn","family":"Meier","sequence":"first","affiliation":[{"name":"University of Colorado Boulder, Boulder, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1029-9547","authenticated-orcid":false,"given":"Sergio","family":"Mover","sequence":"additional","affiliation":[{"name":"\u00c9cole Polytechnique - CNRS - Institut Polytechnique de Paris, Palaiseau, France"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4189-3189","authenticated-orcid":false,"given":"Gowtham","family":"Kaki","sequence":"additional","affiliation":[{"name":"University of Colorado Boulder, Boulder, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1954-0774","authenticated-orcid":false,"given":"Bor-Yuh Evan","family":"Chang","sequence":"additional","affiliation":[{"name":"University of Colorado Boulder, Boulder, USA \/ Amazon, Boulder, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2023,10,16]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-31057-7_30"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-39038-8_16"},{"key":"e_1_2_1_3_1","unstructured":"Android Developers. 2022. The Activity Lifecycle. https:\/\/developer.android.com\/guide\/components\/activities\/activity-lifecycle \t\t\t\t  Android Developers. 2022. The Activity Lifecycle. https:\/\/developer.android.com\/guide\/components\/activities\/activity-lifecycle"},{"key":"e_1_2_1_4_1","unstructured":"Android Developers. 2022. Class Index (API level 32). https:\/\/developer.android.com\/reference\/classes \t\t\t\t  Android Developers. 2022. Class Index (API level 32). https:\/\/developer.android.com\/reference\/classes"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/2884781.2884816"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/2594291.2594299"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/2491956.2462186"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/2814270.2814293"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/2771284.2771288"},{"key":"e_1_2_1_10_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-20398-5_33"},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-17524-9_1"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","DOI":"10.1109\/EuroSP.2016.16"},{"key":"e_1_2_1_13_1","doi-asserted-by":"crossref","unstructured":"Yinzhi Cao Yanick Fratantonio Antonio Bianchi Manuel Egele Christopher Kruegel Giovanni Vigna and Yan Chen. 2015. EdgeMiner: Automatically Detecting Implicit Control Flow Transitions through the Android Framework. In Network and Distributed System Security (NDSS). \t\t\t\t  Yinzhi Cao Yanick Fratantonio Antonio Bianchi Manuel Egele Christopher Kruegel Giovanni Vigna and Yan Chen. 2015. EdgeMiner: Automatically Detecting Implicit Control Flow Transitions through the Android Framework. In Network and Distributed System Security (NDSS).","DOI":"10.14722\/ndss.2015.23140"},{"key":"e_1_2_1_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-78800-3_24"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3338112"},{"key":"e_1_2_1_16_1","unstructured":"F-Droid. 2023. F-Droid - Free and Open Source Android App repository. https:\/\/www.f-droid.org Accessed: 2023-01-30 \t\t\t\t  F-Droid. 2023. F-Droid - Free and Open Source Android App repository. https:\/\/www.f-droid.org Accessed: 2023-01-30"},{"key":"e_1_2_1_17_1","volume-title":"Feed Remover: Don\u2019t let the user cancel the ProgressDialog by mfietz - Pull Request #1306 - AntennaPod\/AntennaPod. https:\/\/github.com\/AntennaPod\/AntennaPod\/pull\/1306\/files","author":"Fietz Martin","year":"2015","unstructured":"Martin Fietz . 2015 . Feed Remover: Don\u2019t let the user cancel the ProgressDialog by mfietz - Pull Request #1306 - AntennaPod\/AntennaPod. https:\/\/github.com\/AntennaPod\/AntennaPod\/pull\/1306\/files Martin Fietz. 2015. Feed Remover: Don\u2019t let the user cancel the ProgressDialog by mfietz - Pull Request #1306 - AntennaPod\/AntennaPod. https:\/\/github.com\/AntennaPod\/AntennaPod\/pull\/1306\/files"},{"key":"e_1_2_1_18_1","unstructured":"Martin Fietz. 2016. Fix dismiss IllegalArgumentException. https:\/\/github.com\/AntennaPod\/AntennaPod\/issues\/2148 \t\t\t\t  Martin Fietz. 2016. Fix dismiss IllegalArgumentException. https:\/\/github.com\/AntennaPod\/AntennaPod\/issues\/2148"},{"key":"e_1_2_1_19_1","unstructured":"Martin Fietz. 2018. 2855 Cancel UI media info update when fragment is destroyed by mfietz - Pull Request #2856 - AntennaPod\/AntennaPod. https:\/\/github.com\/AntennaPod\/AntennaPod\/pull\/2856\/files \t\t\t\t  Martin Fietz. 2018. 2855 Cancel UI media info update when fragment is destroyed by mfietz - Pull Request #2856 - AntennaPod\/AntennaPod. https:\/\/github.com\/AntennaPod\/AntennaPod\/pull\/2856\/files"},{"key":"e_1_2_1_20_1","unstructured":"Martin Fietz. 2018. IllegalStateException after ExternalPlayerFragment was destroyed - Issue #2855 - AntennaPod\/AntennaPod. https:\/\/github.com\/AntennaPod\/AntennaPod\/issues\/2855 \t\t\t\t  Martin Fietz. 2018. IllegalStateException after ExternalPlayerFragment was destroyed - Issue #2855 - AntennaPod\/AntennaPod. https:\/\/github.com\/AntennaPod\/AntennaPod\/issues\/2855"},{"key":"e_1_2_1_21_1","volume-title":"Foster","author":"Fuchs Adam P.","year":"2009","unstructured":"Adam P. Fuchs , Avik Chaudhuri , and Jeffrey S . Foster . 2009 . SCanDroid: Automated Security Certification of Android Applications. University of Maryland, College Park . Adam P. Fuchs, Avik Chaudhuri, and Jeffrey S. Foster. 2009. SCanDroid: Automated Security Certification of Android Applications. University of Maryland, College Park."},{"key":"e_1_2_1_22_1","volume-title":"Linear Temporal Logic and Linear Dynamic Logic on Finite Traces. In International Joint Conference on Artificial Intelligence (IJCAI).","author":"Giacomo Giuseppe De","unstructured":"Giuseppe De Giacomo and Moshe Y. Vardi . 2013 . Linear Temporal Logic and Linear Dynamic Logic on Finite Traces. In International Joint Conference on Artificial Intelligence (IJCAI). Giuseppe De Giacomo and Moshe Y. Vardi. 2013. Linear Temporal Logic and Linear Dynamic Logic on Finite Traces. In International Joint Conference on Artificial Intelligence (IJCAI)."},{"key":"e_1_2_1_23_1","doi-asserted-by":"crossref","unstructured":"Michael I. Gordon Deokhwan Kim Jeff Perkins Limei Gilham Nguyen Nguyen and Martin Rinard. 2015. Information-Flow Analysis of Android Applications in DroidSafe. In Network and Distributed System Security (NDSS). \t\t\t\t  Michael I. Gordon Deokhwan Kim Jeff Perkins Limei Gilham Nguyen Nguyen and Martin Rinard. 2015. Information-Flow Analysis of Android Applications in DroidSafe. In Network and Distributed System Security (NDSS).","DOI":"10.14722\/ndss.2015.23089"},{"key":"e_1_2_1_24_1","unstructured":"Byte Hamster. 2020. Dispose loaders before setting controller to null. https:\/\/github.com\/AntennaPod\/AntennaPod\/pull\/4325 \t\t\t\t  Byte Hamster. 2020. Dispose loaders before setting controller to null. https:\/\/github.com\/AntennaPod\/AntennaPod\/pull\/4325"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3173162.3173173"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/3238147.3238181"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/360204.375719"},{"key":"e_1_2_1_28_1","unstructured":"Kate Keahey Jason Anderson Zhuo Zhen Pierre Riteau Paul Ruth Dan Stanzione Mert Cevik Jacob Colleran Haryadi S. Gunawi Cody Hammock Joe Mambretti Alexander Barnes Fran\u00e7ois Halbach Alex Rocha and Joe Stubbs. 2020. Lessons Learned from the Chameleon Testbed. In USENIX. \t\t\t\t  Kate Keahey Jason Anderson Zhuo Zhen Pierre Riteau Paul Ruth Dan Stanzione Mert Cevik Jacob Colleran Haryadi S. Gunawi Cody Hammock Joe Mambretti Alexander Barnes Fran\u00e7ois Halbach Alex Rocha and Joe Stubbs. 2020. Lessons Learned from the Chameleon Testbed. In USENIX."},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-40885-4_15"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/2516760.2516769"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-15648-8_16"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4612-0931-7"},{"key":"e_1_2_1_33_1","unstructured":"Mariana Trench. 2022. Mariana Trench. https:\/\/mariana-tren.ch\/ \t\t\t\t  Mariana Trench. 2022. Mariana Trench. https:\/\/mariana-tren.ch\/"},{"key":"e_1_2_1_34_1","unstructured":"Shawn Meier. 2021. Fix null pointer exception when exiting terminal. https:\/\/github.com\/connectbot\/connectbot\/pull\/1016 \t\t\t\t  Shawn Meier. 2021. Fix null pointer exception when exiting terminal. https:\/\/github.com\/connectbot\/connectbot\/pull\/1016"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2019.1"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.5281\/zenodo.8331516"},{"key":"e_1_2_1_37_1","volume-title":"Historia: Refuting Callback Reachability with Message-History Logics (Extended Version). arxiv:2309.04464","author":"Meier Shawn","year":"2023","unstructured":"Shawn Meier , Sergio Mover , Gowtham Kaki , and Bor-Yuh Evan Chang . 2023 . Historia: Refuting Callback Reachability with Message-History Logics (Extended Version). arxiv:2309.04464 Shawn Meier, Sergio Mover, Gowtham Kaki, and Bor-Yuh Evan Chang. 2023. Historia: Refuting Callback Reachability with Message-History Logics (Extended Version). arxiv:2309.04464"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/3140568"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/3368089.3409699"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/3293882.3339001"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/2543728.2543748"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2019.2893207"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-39799-8_54"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-48959-2_21"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","DOI":"10.1016\/S1571-0661(04)80088-4"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1016\/S0950-5849(98)00093-7"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1109\/LICS.2002.1029817"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/2544137.2544159"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.ic.2016.08.002"},{"key":"e_1_2_1_50_1","volume-title":"Proceedings of CASCON","author":"Vall\u00e9e-Rai Raja","year":"1999","unstructured":"Raja Vall\u00e9e-Rai , Laurie Hendren , Vijay Sundaresan , Patrick Lam , Etienne Gagnon , and Phong Co. 1999 . Soot - a Java Optimization Framework . In Proceedings of CASCON 1999. Raja Vall\u00e9e-Rai, Laurie Hendren, Vijay Sundaresan, Patrick Lam, Etienne Gagnon, and Phong Co. 1999. Soot - a Java Optimization Framework. In Proceedings of CASCON 1999."},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/2931021.2931026"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICST.2019.00035"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10515-018-0237-6"},{"key":"e_1_2_1_54_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2015.31"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3622865","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3622865","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,19]],"date-time":"2025-06-19T01:57:27Z","timestamp":1750298247000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3622865"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,10,16]]},"references-count":54,"journal-issue":{"issue":"OOPSLA2","published-print":{"date-parts":[[2023,10,16]]}},"alternative-id":["10.1145\/3622865"],"URL":"https:\/\/doi.org\/10.1145\/3622865","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,10,16]]},"assertion":[{"value":"2023-10-16","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}