Skip to content

Commit 7935f7f

Browse files
committed
use canonical file to the application dir
This will follow any soft links to the files and expand them the the real path
1 parent 3f727e7 commit 7935f7f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

build/project-template-gradle/src/main/java/com/tns/RuntimeHelper.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ public void initRuntime()
8484
String appName = app.getPackageName();
8585
File rootDir = new File(app.getApplicationInfo().dataDir);
8686
File appDir = app.getFilesDir();
87+
88+
try
89+
{
90+
appDir = appDir.getCanonicalFile();
91+
}
92+
catch (IOException e1)
93+
{
94+
}
8795

8896
ClassLoader classLoader = app.getClassLoader();
8997
File dexDir = new File(rootDir, "code_cache/secondary-dexes");

0 commit comments

Comments
 (0)