I want to prevent installing apps using third party app stores but except only one app store. This specific app store is in my control. I can change it's code to send a message to the mobile device that this store is special.
I can disable
Unknown sources setting in
security settings using android API according to this stack-overflow question. But if I do that, All the third party app stores will be blocked including my app store.
Any Idea to achieve this requirement using android API would be much appreciated.