Merhaba arkadaşlar;
Google play harici trafiği önlemek istiyoruz. Google play dışında uygulama yüklendiginde uyugulamayı çalıştırmak istemiyoruz bu konuda ne yapabiliriz. Ücretli destek verebilecek bir arkladaşta olur yeterki sorunumuzu çözelim.
Soru android google play harici yüklemeyi önleme
3
●174
- 12-11-2019, 20:31:28
String installer = getPackageManager().getInstallerPackageName( "com.example.myapp");if (installer == null) { // app was illegally downloaded from unknown source. } else { // app was probably installed legally. Hooray!}Bu belki işine yarar Hocam
Kaynak : https://stackoverflow.com/questions/...de-google-play - 12-11-2019, 22:09:05Buyur hocam
boolean verifyInstallerId(Context context) { // A list with valid installers package name List<String> validInstallers = new ArrayList<>(Arrays.asList("com.android.vending", "com.google.android.feedback")); // The package name of the app that has installed your app final String installer = context.getPackageManager().getInstallerPackageName(context.getPackageName()); // true if your app has been downloaded from Play Store return installer != null && validInstallers.contains(installer);}