ApplicationInfoEx.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:XPrivacy 作者:
public long getInstallTime(Context context) {
    if (mInstallTime == -1) {
        long now = System.currentTimeMillis();
        mInstallTime = now;
        for (String packageName : this.getPackageName())
            try {
                getPackageInfo(context, packageName);
                long time = mMapPkgInfo.get(packageName).firstInstallTime;
                if (time < mInstallTime)
                    mInstallTime = time;
            } catch (NameNotFoundException ex) {
            }
        if (mInstallTime == now)
            // no install time, so assume it is old
            mInstallTime = 0;
    }
    return mInstallTime;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号