-2

I want to know if this is possible in android. I want the application to tell me if it was sideloaded via ADB, since I know adb can be used to bypass the package installer name. Is there any method for detection on whether an application was loaded through adb.

Sad.coder
  • 21
  • 10

1 Answers1

1

No, there's is no reliable method to tell what is the origin of given application installed on the device.

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141
  • Ok in which case, would you be able to suggest me (if you can) a method in which I can disable in-app purchases if it has been sideloaded. – Sad.coder Oct 09 '20 at 14:15
  • Hm, since you cannot tell you are sideloaded or not, how would you like this to work? – Marcin Orlowski Oct 09 '20 at 14:36
  • Isn't there some kind of API with the play store server or something to say that this app has been loaded from this store. I mean it doesn't have to be that it detects sideloading but rather it detects that it hasn't been loaded from unapproved stores or anywhere else. – Sad.coder Oct 12 '20 at 13:52
  • The key in my answer is the word **reliable**. Not sure what you want to achieve by attempting to detect that - maybe there's much better and more reliable approach for that anyway – Marcin Orlowski Oct 12 '20 at 14:27