I have an android application which has a few hundreds of thousands of users. This application is a retail application and hence deals with a fair amount of customer data, shopping history and payment information, built on web views.
My company now has a tie up with another services startup which vends its own mobile SDK for a certain set of functionalities. This is a closed library to no access to source code(baked in the legal contract).
Are there ways for me to ensure the following -
- Ensure that the external mobile library does not access any resource or data that I don't want it to, either via javascript injection or otherwise, given both the library and the app share the same process space in memory.
- Insulate my application from any security vulnerabilities in the mobile library.
Are there any 'best practices' one can follow from a security perspective while integrating with a mobile library that you can not completely trust or have visibility into ?