zhanghai / zhanghai/MaterialFiles
crash on havoc
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 9k
- Forks
- 736
- PR merge metrics
- No merged PRs in 30d
Description
Android 10
time: 1614579414173
msg: java.lang.IllegalArgumentException: Invalid URI: content://com.android.externalstorage.documents/root/
stacktrace: java.lang.ExceptionInInitializerError
at me.zhanghai.android.files.navigation.L.N(Unknown Source:0)
at me.zhanghai.android.files.navigation.L.<clinit>(Unknown Source:7)
at me.zhanghai.android.files.filelist.p.<init>(Unknown Source:19)
at me.zhanghai.android.files.filelist.q0.<init>(Unknown Source:66)
at me.zhanghai.android.files.filelist.i0.a(:1)
at me.zhanghai.android.files.util.t.a(Unknown Source:7)
at androidx.lifecycle.d0.a(:1)
at androidx.lifecycle.Y.getValue(:1)
at me.zhanghai.android.files.filelist.l0.H2(Unknown Source:2)
at me.zhanghai.android.files.filelist.l0.U0(:2)
at androidx.fragment.app.j.y1(Unknown Source:11)
at androidx.fragment.app.S.a(Unknown Source:31)
at androidx.fragment.app.I.m0(Unknown Source:234)
at androidx.fragment.app.I.k0(:1)
at androidx.fragment.app.I.l0(Unknown Source:47)
at androidx.fragment.app.a.q(Unknown Source:182)
at androidx.fragment.app.I.O(:7)
at androidx.fragment.app.I.u0(Unknown Source:84)
at androidx.fragment.app.I.M(:2)
at androidx.fragment.app.I.F(Unknown Source:14)
at androidx.fragment.app.I.n(Unknown Source:6)
at androidx.fragment.app.u.c(Unknown Source:4)
at androidx.fragment.app.l.onStart(Unknown Source:15)
at androidx.appcompat.app.r.onStart(Unknown Source:0)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1433)
at android.app.Activity.performStart(Activity.java:7847)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3294)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:925)
Caused by: java.lang.IllegalArgumentException: Invalid URI: content://com.android.externalstorage.documents/root/
at android.provider.DocumentsContract.getRootId(DocumentsContract.java:1208)
at me.zhanghai.android.files.navigation.D.N(:11)
at me.zhanghai.android.files.navigation.D.<clinit>(Unknown Source:7)
... 38 more
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Android 10 stack trace and inspect the navigation.D.N entry point that calls DocumentsContract.getRootId for content://com.android.externalstorage.documents/root/. Reproduce the crash in the reported Android 10 scenario and trace the initialization path through navigation.L.N. Done means the application no longer crashes when opening this URI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100