Environment.getDataDirectory().getPath() : /data -- 返回 File ,获取 Android 数据目录
Environment.getDownloadCacheDirectory().getPath() : /cache -- 返回 File ,获取 Android 下载/缓存内容目录
Environment.getExternalStorageDirectory().getPath(): /mnt/sdcard -- 返回 File ,获取外部存储目录即 SDCard
Environment.getRootDirectory().getPath() : /system -- 返回 File ,获取 Android 的根目录
Environment.getExternalStoragePublicDirectory(String type): -- 返回 File ,取一个高端的公用的外部存储器目录来摆放某些类型的文件
Environment.getExternalStorageState(): -- 返回 File ,获取外部存储设备的当前状态
Context.getCacheDir().getPath() : /data/data/com.zhd/cache
Context.getExternalCacheDir().getPath() : /mnt/sdcard/Android/data/com.zhd/cache
Context.getFilesDir().getPath() : /data/data/com.zhd/files
Context.getObbDir().getPath() : /mnt/sdcard/Android/obb/com.zhd
Context.getPackageName() : com.zhd
Context.getPackageCodePath() : /data/app/com.zhd-1.apk
Context.getPackageResourcePath() : /data/app/com.zhd-1.apk