TeamAmaze / TeamAmaze/AmazeFileManager
Crash when trying to decrypt file using fingerprint auth
Open
Nobody has claimed this yet.
From-Email
- Dominant language
- Kotlin
- Stars
- 6.4k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
Issue explanation
When I am trying to decrypt the folder (after encryption within the file
share app itself) it is showing the error as below
Exception
- App Name: Amaze File Manager
- Package: com.amaze.filemanager
- Version: 3.6.7
- User Action: UI Error
- Request: Application crash
- OS: Linux Android 12 - 31
- Device: 2011
- Model: I2011
- Product: 2011i
Crash log
android.view.InflateException: Binary XML file line #21 in
com.amaze.filemanager:layout/dialog_decrypt_fingerprint_authentication:
Binary XML file line #21 in
com.amaze.filemanager:layout/dialog_decrypt_fingerprint_authentication:
Error inflating class <unknown>
Caused by: android.view.InflateException: Binary XML file line #21 in
com.amaze.filemanager:layout/dialog_decrypt_fingerprint_authentication:
Error inflating class <unknown>
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:876)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1064)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1019)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1181)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1142)
at android.view.LayoutInflater.inflate(LayoutInflater.java:701)
at android.view.LayoutInflater.inflate(LayoutInflater.java:553)
at android.view.LayoutInflater.inflate(LayoutInflater.java:500)
at android.view.View.inflate(View.java:27378)
at
com.amaze.filemanager.ui.dialogs.GeneralDialogCreation.showDecryptFingerprintDialog(GeneralDialogCreation.java:960)
at
com.amaze.filemanager.filesystem.files.EncryptDecryptUtils.decryptFile(EncryptDecryptUtils.java:146)
at
com.amaze.filemanager.ui.ItemPopupMenu.onMenuItemClick(ItemPopupMenu.java:262)
at android.widget.PopupMenu$1.onMenuItemSelected(PopupMenu.java:109)
at
com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:788)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:935)
at
com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:925)
at com.android.internal.view.menu.MenuPopup.onItemClick(MenuPopup.java:128)
at android.widget.AdapterView.performItemClick(AdapterView.java:330)
at android.widget.AbsListView.performItemClick(AbsListView.java:1382)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3442)
at android.widget.AbsListView$3.run(AbsListView.java:4505)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:334)
at android.app.ActivityThread.main(ActivityThread.java:8278)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
Caused by: java.lang.ClassCastException:
androidx.appcompat.view.ContextThemeWrapper cannot be cast to
com.amaze.filemanager.ui.activities.MainActivity
at
com.amaze.filemanager.ui.views.ThemedTextView.setTextViewColor(ThemedTextView.java:50)
at
com.amaze.filemanager.ui.views.ThemedTextView.<init>(ThemedTextView.java:46)
... 32 more
Contributor guide
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 ui/views/ThemedTextView.java at setTextViewColor and its constructor, then inspect GeneralDialogCreation.java around showDecryptFingerprintDialog and the dialog_decrypt_fingerprint_authentication layout at line 21. Reproduce decryption with fingerprint authentication and trace the context used during layout inflation; done means the dialog opens without the reported ClassCastException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100