Skip to Main content Skip to Navigation
Conference papers

Automatic Android Deprecated-API Usage Update by Learning from Single Updated Example

Abstract : Due to the deprecation of APIs in the Android operating system, developers have to update usages of the APIs to ensure that their applications work for both the past and current versions of Android. Such updates may be widespread, non-trivial, and time-consuming. Therefore, automation of such updates will be of great benefit to developers. AppEvolve, which is the state-of-the-art tool for automating such updates, relies on having before-and after-update examples to learn from. In this work, we propose an approach named CocciEvolve that performs such updates using only a single after-update example. CocciEvolve learns edits by extracting the relevant update to a block of code from an after-update example. From preliminary experiments, we find that CocciEvolve can successfully perform 96 out of 112 updates, with a success rate of 85%.
Document type :
Conference papers
Complete list of metadata

Cited literature [24 references]  Display  Hide  Download
Contributor : Julia Lawall Connect in order to contact the contributor
Submitted on : Tuesday, July 28, 2020 - 9:02:29 PM
Last modification on : Thursday, June 9, 2022 - 3:41:04 AM
Long-term archiving on: : Friday, September 25, 2020 - 11:43:31 AM


Files produced by the author(s)



Stefanus A Haryono, Ferdian Thung, Hong Jin Kang, Lucas Serrano, Gilles Muller, et al.. Automatic Android Deprecated-API Usage Update by Learning from Single Updated Example. ICPC 2020 - 28th IEEE/ACM International Conference on Program Comprehension - ERA track, Jul 2020, Seoul / Virtual, South Korea. ⟨10.1145/3387904.3389285⟩. ⟨hal-02889835⟩



Record views


Files downloads