我试图理解从以下位置获得的某些信息的概念:
ApplicationInfo appinfo = context.getPackageManager().getApplicationInfo(context.getApplicationContext().getPackageName(), 0);
根据文档
/**
* Full path to the default directory assigned to the package for its
* persistent data.
*/
public String dataDir;
/**
* Full path to the device-protected directory assigned to the package for
* its persistent data.
*
* @see Context#createDeviceProtectedStorageContext()
*/
public String deviceProtectedDataDir;
有时值等于有时不等于...我想了解其背后的真正含义
据我所知,永久数据的默认目录始终受到保护(不受其他应用程序保护)