|
5 | 5 | import android.os.Environment; |
6 | 6 |
|
7 | 7 | import com.lody.virtual.client.core.VirtualCore; |
| 8 | +import com.lody.virtual.helper.utils.EncodeUtils; |
8 | 9 | import com.lody.virtual.helper.utils.FileUtils; |
9 | 10 | import com.lody.virtual.helper.utils.VLog; |
10 | 11 |
|
@@ -67,7 +68,8 @@ public static File getDataUserPackageDirectory(int userId, |
67 | 68 | } |
68 | 69 |
|
69 | 70 | public static File getPackageResourcePath(String packgeName) { |
70 | | - return new File(getDataAppPackageDirectory(packgeName), "base.apk"); |
| 71 | + return new File(getDataAppPackageDirectory(packgeName), |
| 72 | + EncodeUtils.decode("YmFzZS5hcGs=")); // base.apk |
71 | 73 | } |
72 | 74 |
|
73 | 75 | public static File getDataAppDirectory() { |
@@ -123,9 +125,12 @@ public static File getOdexFile(String packageName) { |
123 | 125 | // in Android O, the oatfile is relate with classloader, we must ensure the correct location to avoid repeated load dex. |
124 | 126 | String instructionSet = VMRuntime.getCurrentInstructionSet.call(); |
125 | 127 | File oatDir = ensureCreated(new File(getDataAppPackageDirectory(packageName), "oat" + File.separator + instructionSet)); |
126 | | - return new File(oatDir, "base.odex"); |
| 128 | + return new File(oatDir, EncodeUtils.decode("YmFzZS5vZGV4")); // base.odex |
127 | 129 | } else { |
128 | | - return new File( DALVIK_CACHE_DIRECTORY, "data@app@" + packageName + "[email protected]@classes.dex"); |
| 130 | + // return new File(DALVIK_CACHE_DIRECTORY, "data@app@" + packageName + "[email protected]@classes.dex"); |
| 131 | + return new File(DALVIK_CACHE_DIRECTORY, EncodeUtils.decode("ZGF0YUBhcHBA") + |
| 132 | + packageName + |
| 133 | + EncodeUtils.decode("LTFAYmFzZS5hcGtAY2xhc3Nlcy5kZXg=")); |
129 | 134 | } |
130 | 135 | } |
131 | 136 |
|
@@ -174,7 +179,8 @@ public static File getVirtualStorageDir(String packageName, int userId) { |
174 | 179 | } |
175 | 180 |
|
176 | 181 | public static File getWifiMacFile(int userId) { |
177 | | - return new File(getUserSystemDirectory(userId), "wifiMacAddress"); |
| 182 | + // return new File(getUserSystemDirectory(userId), "wifiMacAddress"); |
| 183 | + return new File(getUserSystemDirectory(userId), EncodeUtils.decode("d2lmaU1hY0FkZHJlc3M=")); |
178 | 184 | } |
179 | 185 |
|
180 | 186 | public static File getDataDirectory() { |
|
0 commit comments