On Thu, Nov 7, 2013 at 10:07 PM, Oyin Oluwatimi
<
david.e...@gmail.com> wrote:
> The app can run on both stock Android OS and my custom OS. I do not want the
> application to run on anyone else's custom ROM.
Every Android device runs a "custom ROM", whether made by the device
manufacturer or somebody else. Hence, if your app is running, it is
running on a custom ROM.
> Does anyone have an idea to ensuring an app is not running on a custom
> build?
Every Android device runs a "custom build", whether made by the device
manufacturer or somebody else. Hence, if your app is running, it is
running on a custom build.
> ROMs have to be signed, so is it possible to verify the signature of the
> currently running ROM?
For your own ROM, you could add a custom signature-level permission,
request that in the app via <uses-permission>, and sign both with the
same signing key. If you got the signature-level permission, then you
are running on your own custom ROM, or somebody stole your signing
key.
--
Mark Murphy (a Commons Guy)
http://commonsware.com |
http://github.com/commonsguy
http://commonsware.com/blog |
http://twitter.com/commonsguy
_The Busy Coder's Guide to Android Development_: 2,500+ Pages, Updated
Frequently!