(Context context)
| 684 | } |
| 685 | |
| 686 | static boolean hasPlayStore(Context context) { |
| 687 | if (hasPlayStore == null) |
| 688 | try { |
| 689 | PackageManager pm = context.getPackageManager(); |
| 690 | pm.getPackageInfo("com.android.vending", 0); |
| 691 | hasPlayStore = true; |
| 692 | } catch (PackageManager.NameNotFoundException ex) { |
| 693 | Log.i(ex); |
| 694 | hasPlayStore = false; |
| 695 | } catch (Throwable ex) { |
| 696 | Log.e(ex); |
| 697 | hasPlayStore = false; |
| 698 | } |
| 699 | return hasPlayStore; |
| 700 | } |
| 701 | |
| 702 | static boolean isSecure(Context context) { |
| 703 | try { |
no test coverage detected