Skip to Main content Skip to Navigation
Conference papers

Automated Deprecated-API Usage Update for Android Apps: How Far Are We?

Abstract : As the Android API evolves, some API methods may be deprecated, to be eventually removed. App developers face the challenge of keeping their apps up-to-date, to ensure that the apps work in both older and newer Android versions. Currently, AppEvolve is the state-of-the-art approach to automate such updates, and it has been shown to be quite effective. Still, the number of experiments reported is moderate, involving only API usage updates in 41 usage locations. In this work, we replicate the evaluation of AppEvolve and assess whether its effectiveness is generalizable. Given the set of APIs on which AppEvolve has been evaluated, we test AppEvolve on other mobile apps that use the same APIs. Our experiments show that AppEvolve fails to generate applicable updates for 81% of our dataset, even though the relevant knowledge for correct API updates is available in the examples. We first categorize the limitations of AppEvolve that lead to these failures. We then propose a mitigation strategy that solves 86% of these failures by a simple refactoring of the app code to better resemble the code in the examples. The refactoring usually involves assigning the target API method invocation and the arguments of the target API method into variables. Indeed, we have also seen such transformations in the dataset distributed with the AppEvolve replication package, as compared to the original source code from which this dataset is derived. Based on these findings, we propose some promising future directions.
Document type :
Conference papers
Complete list of metadata

Cited literature [33 references]  Display  Hide  Download

https://hal.inria.fr/hal-02889832
Contributor : Julia Lawall <>
Submitted on : Sunday, July 5, 2020 - 4:13:19 PM
Last modification on : Tuesday, March 23, 2021 - 9:28:03 AM
Long-term archiving on: : Friday, September 25, 2020 - 11:43:12 AM

File

SANER20Paper.pdf
Files produced by the author(s)

Identifiers

Citation

Ferdian Thung, Stefanus Haryono, Lucas Serrano, Gilles Muller, Julia Lawall, et al.. Automated Deprecated-API Usage Update for Android Apps: How Far Are We?. SANER 2020 - 27th IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER, RENE track), Feb 2020, London, Ontario, Canada. pp.602-611, ⟨10.1109/SANER48275.2020.9054860⟩. ⟨hal-02889832⟩

Share

Metrics

Record views

78

Files downloads

447