UI透明欺诈

判断是否存在的代码:
  private static boolean c(Activity paramActivity)
  {
    List localList = ((ActivityManager)paramActivity.getSystemService("activity")).getRunningTasks(1);
    return (localList.size() > 0) &&              ("com.rytong.egbank".equals(((ActivityManager.RunningTaskInfo)localList.get(0)).topActivity.getPackageName()));
  }

需要增加权限:<uses-permission android:name="android.permission.GET_TASKS" />
posted @ 2014-08-30 10:52  徐小鱼  阅读(180)  评论(0编辑  收藏  举报