首页 > 安全资讯 >

ApplicationInfo 存储信息放上来是方便查看

17-08-26

ApplicationInfo 存储信息放上来是方便查看。

ApplicationInfo 存储信息放上来是方便查看。

    static public String getAppLocalPathInDataApp(Context ctx,String packname){
        PackageManager pm=ctx.getPackageManager();
        try {

            ApplicationInfo info = pm.getApplicationInfo(packname, 0);

            Log.i(TAG,"getCodePath"+info.sourceDir);///data/app/com.palmv.wechatAuto-2.apk

            Log.i(TAG,"sourceDir"+info.sourceDir); //Full path to the publicly available parts of sourceDir, including resources and manifest.





        } catch (PackageManager.NameNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();

        }
        return "";
    }




            
相关文章
最新文章
热点推荐