AndroLib: Third-Party Software Library Recommendation for Android Applications

  • Conference paper
  • First Online:
Reuse in Emerging Software Engineering Practices (ICSR 2020)

Abstract

Android mobile applications (apps) rely heavily on third-party libraries as a means to save time, reduce implementation costs, and increase software quality while offering rich, robust, and up-to-date features to end users. The selection of third-party libraries is an essential element in any software development project, and particularly, in Android apps given the fast-changing and evolving mobile app ecosystem. Indeed, deciding which libraries to choose is a challenging problem, especially with the exponentially increasing number of available libraries in the Android ecosystem. In this paper, we introduce, AndroLib, a novel approach to recommend third-party libraries for Android apps. In particular, we formulate the problem as a multi-objective combinatorial problem and use the non-dominated sorting genetic algorithm (NSGA-II) as a search method to find and recommend relevant libraries. We aim at guiding the search process towards the best trade-off three objectives to be optimized (i) maximize libraries historical co-usage, (ii) maximize libraries functional diversity, and (iii) maximize libraries reuse from highly rated apps. We conduct an empirical experiment to evaluate our approach on a benchmark of real-world Android apps libraries. Results show the effectiveness of AndroLib compared with three recent state-of-the-art library recommendation approaches.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
EUR 29.95
Price includes VAT (France)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
EUR 42.79
Price includes VAT (France)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 52.74
Price includes VAT (France)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://venturebeat.com/2019/05/07/android-passes-2-5-billion-monthly-active-devices.

  2. 2.

    https://android-arsenal.com.

  3. 3.

    https://github.com/facebook/facebook-android-sdk.

  4. 4.

    https://github.com/bumptech/glide.

  5. 5.

    https://github.com/square/picasso.

  6. 6.

    https://github.com/facebook/fresco.

  7. 7.

    https://doi.org/10.6084/m9.figshare.9366341.

References

  1. Almarimi, N., Ouni, A., Bouktif, S., Mkaouer, M.W., Kula, R.G., Saied, M.A.: Web service api recommendation for automated mashup creation using multi-objective evolutionary search. Appl. Soft Comput. 85, 105830 (2019)

    Article  Google Scholar 

  2. Arcuri, A., Briand, L.: A practical guide for using statistical tests to assess randomized algorithms in software engineering. In: International Conference on Software Engineering (ICSE), pp. 1–10 (2011)

    Google Scholar 

  3. Avazpour, I., Pitakrat, T., Grunske, L., Grundy, J.: Dimensions and metrics for evaluating recommendation systems. In: Recommendation Systems in Software Engineering, pp. 245–273 (2014)

    Google Scholar 

  4. Bland, J.M., Altman, D.G.: Multiple significance tests: the bonferroni method. BMJ 310(6973), 170 (1995)

    Article  Google Scholar 

  5. Chan, W.K., Cheng, H., Lo, D.: Searching connected API subgraph via text phrases. In: ACM SIGSOFT International Symposium on the Foundations of Software Engineering (FSE), p. 10 (2012)

    Google Scholar 

  6. Deb, K., Pratap, A., Agarwal, S., Meyarivan, T.: A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Trans. Evolutionary Comput. 6(2), 182–197 (2002)

    Article  Google Scholar 

  7. Di Noia, T., Mirizzi, R., Ostuni, V.C., Romito, D., Zanker, M.: Linked open data to support content-based recommender systems. In: International Conference on Semantic Systems, pp. 1–8 (2012)

    Google Scholar 

  8. Di Noia, T., Ostuni, V.C.: Recommender systems and linked open data. In: Reasoning Web International Summer School, pp. 88–113 (2015)

    Google Scholar 

  9. Harman, M., Jones, B.F.: Search-based software engineering. Inf. Softw. Technol. 43(14), 833–839 (2001)

    Article  Google Scholar 

  10. Harman, M., Mansouri, S.A., Zhang, Y.: Search-based software engineering: trends, techniques and applications. ACM Comput. Surv. 45(1), 11 (2012)

    Article  Google Scholar 

  11. He, Q., Li, B., Chen, F., Grundy, J., **a, X., Yang, Y.: Diversified third-party library prediction for mobile app development. IEEE Transactions on Software Engineering (2020)

    Google Scholar 

  12. Heinemann, L., Bauer, V., Herrmannsdoerfer, M., Hummel, B.: Identifier-based context-dependent api method recommendation. In: European Conference on Software Maintenance and Reengineering (CSMR), pp. 31–40 (2012)

    Google Scholar 

  13. Kula, R.G., German, D.M., Ouni, A., Ishio, T., Inoue, K.: Do developers update their library dependencies? Empirical Softw. Eng. 23(1), 384–417 (2017). https://doi.org/10.1007/s10664-017-9521-5

    Article  Google Scholar 

  14. Larios-Vargas, E., Aniche, M., Treude, C., Bruntink, M., Gousios, G.: Selecting third-party libraries: The practitioners’ perspective. In: European Software Engineering Conference and Symposium on the Foundations of Software Engineering (2020)

    Google Scholar 

  15. Mccarey, F., Cinnéide, M.Ó., Kushmerick, N.: Rascal: a recommender agent for agile reuse. Artif. Intell. Rev. 24(3–4), 253–276 (2005)

    Article  Google Scholar 

  16. McMillan, C., Grechanik, M., Poshyvanyk, D.: Detecting similar software applications. In: International Conference on Software Engineering, pp. 364–374 (2012)

    Google Scholar 

  17. Nguyen, P.T., Di Rocco, J., Di Ruscio, D., Di Penta, M.: Crossrec: supporting software developers by recommending third-party libraries. J. Syst. Softw. 161, 110460 (2020)

    Article  Google Scholar 

  18. Nguyen, P.T., Di Rocco, J., Di Ruscio, D., Ochoa, L., Degueule, T., Di Penta, M.: Focus: a recommender system for mining api function calls and usage patterns. In: International Conference on Software Engineering (ICSE), pp. 1050–1060 (2019)

    Google Scholar 

  19. Ouni, A.: Search based software engineering: challenges, opportunities and recent applications. In: Proceedings of the Genetic and Evolutionary Computation Conference, pp. 1114–1146 (2020)

    Google Scholar 

  20. Ouni, A., Kessentini, M., Inoue, K., Cinnéide, M.O.: Search-based web service antipatterns detection. IEEE Trans. Serv. Comput. 10(4), 603–617 (2017)

    Article  Google Scholar 

  21. Ouni, A., Kessentini, M., Sahraoui, H., Boukadoum, M.: Maintainability defects detection and correction: a multi-objective approach. Automated Softw. Eng. 20(1), 47–79 (2013)

    Article  Google Scholar 

  22. Ouni, A., Kessentini, M., Sahraoui, H., Inoue, K., Deb, K.: Multi-criteria code refactoring using search-based software engineering: an industrial case study. ACM Trans. Softw. Eng. Methodol. 25(3), 1–53 (2016)

    Article  Google Scholar 

  23. Ouni, A., Kula, R.G., Kessentini, M., Ishio, T., German, D.M., Inoue, K.: Search-based software library recommendation using multi-objective optimization. Inf. Softw. Technol. 83, 55–75 (2017)

    Article  Google Scholar 

  24. Research, I.D.C.I.: Android dominating mobile market. https://www.idc.com/promo/smartphone-market-share/os (2020)

  25. Robillard, M., Walker, R., Zimmermann, T.: Recommendation systems for software engineering. IEEE Software 27(4), 80–86 (2010)

    Article  Google Scholar 

  26. Saied, M.A., Ouni, A., Sahraoui, H., Kula, R.G., Inoue, K., Lo, D.: Improving reusability of software libraries through usage pattern mining. J. Syst. Softw. 145, 164–179 (2018)

    Article  Google Scholar 

  27. Salza, P., Palomba, F., Di Nucci, D., De Lucia, A., Ferrucci, F.: Third-party libraries in mobile apps: when, how, and why developers update them. Empirical Softw. Eng. 25(3), 2341–2377 (2020)

    Article  Google Scholar 

  28. Thung, F., Lo, D., Lawall, J.: Automated library recommendation. In: 20th Working Conference on Reverse Engineering (WCRE), pp. 182–191, October 2013

    Google Scholar 

  29. Thung, F., Wang, S., Lo, D., Lawall, J.: Automatic recommendation of api methods from feature requests. In: IEEE/ACM International Conference on Automated Software Engineering, pp. 290–300, November 2013

    Google Scholar 

  30. Tsunoda, M., Kakimoto, T., Ohsugi, N., Monden, A., Matsumoto, K.: Javawock: a java class recommender system based on collaborative filtering. In: International Conference on Software Engineering and Knowledge Engineering, pp. 491–497 (2005)

    Google Scholar 

  31. Wang, H., Guo, Y., Ma, Z., Chen, X.: Wukong: A scalable and accurate two-phase approach to android app clone detection. In: International Symposium on Software Testing and Analysis, pp. 71–82 (2015)

    Google Scholar 

  32. Zhang, Z., Cai, H.: A look into developer intentions for app compatibility in android. In: International Conference on Mobile Software Engineering and Systems. pp. 40–44 (2019)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ali Ouni .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Chouchen, M., Ouni, A., Mkaouer, M.W. (2020). AndroLib: Third-Party Software Library Recommendation for Android Applications. In: Ben Sassi, S., Ducasse, S., Mili, H. (eds) Reuse in Emerging Software Engineering Practices. ICSR 2020. Lecture Notes in Computer Science(), vol 12541. Springer, Cham. https://doi.org/10.1007/978-3-030-64694-3_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-64694-3_13

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-64693-6

  • Online ISBN: 978-3-030-64694-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics

Navigation