Skip to content

Commit f6d2b03

Browse files
committed
mod:设置外置存储目录
1 parent f384e46 commit f6d2b03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/java/com/bomber/strace/LancerApp.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ class LancerApp : Application() {
2121

2222

2323
private fun installLancer() {
24+
val traceDir = externalCacheDir?.absolutePath + File.separator + "trace"
2425
val r = Lancer.getInstance().initialize(
2526
Build.VERSION.SDK_INT,
26-
filesDir.absolutePath + File.separator + "trace",
27-
true
27+
traceDir,
28+
BuildConfig.DEBUG
2829
)
2930
Log.d("TraceApp", "r = $r")
3031
Lancer.getInstance().start()

0 commit comments

Comments
 (0)