In a Spring Boot project, importing and using Android-specific libraries like the Android Package Manager (which is part of the Android framework) is not feasible. But you will be able to solve this using APKParser. Please see this library https://github.com/hsiafan/apk-parser