To provide their functionality, mobile apps interact extensively with the application programming interface (API) of the underlying operating system. Given that this API evolves frequently, app developers are periodically required to migrate API usages in their apps to ensure that the apps behave as expected when running on the new API. To help developers with this tedious, error-prone, and time-consuming task, we defined a technique for automated API migration and implemented it in a tool called APIMigrator that supports Android apps. APIMigrator (1) automatically migrates API usages within an app by leveraging how developers of other apps migrated corresponding API usages and (2) validates the migrations through differential testing. We evaluated APIMigrator on a benchmark of 15 real-world apps and obtained promising results. Overall, our tool was able to migrate 85% of the API usages considered and validate 68% of these migrations. We provide a demo video of the tool at https://youtu.be/v0VfpKi_IDc.
|Original language||English (US)|
|Title of host publication||Proceedings - 2020 IEEE/ACM 7th International Conference on Mobile Software Engineering and Systems, MOBILESoft 2020|
|Publisher||Association for Computing Machinery, Inc|
|Number of pages||4|
|State||Published - Jul 13 2020|
|Event||7th IEEE/ACM International Conference on Mobile Software Engineering and Systems, MOBILESoft 2020 - Virtual, Online, Korea, Republic of|
Duration: Jul 13 2020 → …
|Name||Proceedings - 2020 IEEE/ACM 7th International Conference on Mobile Software Engineering and Systems, MOBILESoft 2020|
|Conference||7th IEEE/ACM International Conference on Mobile Software Engineering and Systems, MOBILESoft 2020|
|Country||Korea, Republic of|
|Period||7/13/20 → …|
Bibliographical noteFunding Information:
This work was partially supported by NSF, under grants CCF-1161821 and CCF-1563991, DARPA, under contracts FA8650-15-C-7556 and FA8650-16-C-7620, ONR, under contract N00014-17-1-2895, and gifts from Facebook, Google, IBM Research, and Microsoft Research.
© 2020 ACM.
Copyright 2021 Elsevier B.V., All rights reserved.
- API analysis
- API-usage migration
- mobile apps