TeamAmaze / TeamAmaze/AmazeFileManager
Trying to connect to SMB fails
Open
Nobody has claimed this yet.
Issue-Bug
- Dominant language
- Kotlin
- Stars
- 6.4k
- Forks
- 1.7k
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 1
Description
AVD Pixel 2 with API 27. In commit 1d0f73ae (probably also master).
? E/TrustyKeymaster: calling trusty_keymaster_call insize 199 msg size 203
Received 4 byte response
Error: Response of size 4 contained error code -33
com.amaze.filemanager W/System.err: java.security.UnrecoverableKeyException: Failed to obtain information about key
com.amaze.filemanager W/System.err: at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStoreSecretKeyFromKeystore(AndroidKeyStoreProvider.java:282)
at android.security.keystore.AndroidKeyStoreSpi.engineGetKey(AndroidKeyStoreSpi.java:98)
at java.security.KeyStore.getKey(KeyStore.java:1062)
at com.amaze.filemanager.utils.files.CryptUtil.getSecretKey(CryptUtil.java:386)
at com.amaze.filemanager.utils.files.CryptUtil.aesEncryptPassword(CryptUtil.java:276)
at com.amaze.filemanager.utils.files.CryptUtil.encryptPassword(CryptUtil.java:478)
at com.amaze.filemanager.utils.SmbUtil.getSmbEncryptedPath(SmbUtil.java:56)
at com.amaze.filemanager.ui.dialogs.SmbConnectDialog.lambda$onCreateDialog$2$SmbConnectDialog(SmbConnectDialog.java:268)
at com.amaze.filemanager.ui.dialogs.SmbConnectDialog$$Lambda$2.onClick(Unknown Source:62)
at com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:410)
at android.view.View.performClick(View.java:6294)
at android.view.View$PerformClick.run(View.java:24770)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
com.amaze.filemanager W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
? W/audio_hw_generic: Not supplying enough data to HAL, expected position 5063939 , only wrote 5063760
com.amaze.filemanager W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
com.amaze.filemanager W/System.err: Caused by: android.security.KeyStoreException: Invalid key blob
at android.security.KeyStore.getKeyStoreException(KeyStore.java:697)
at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStoreSecretKeyFromKeystore(AndroidKeyStoreProvider.java:283)
... 18 more
? W/audio_hw_generic: Not supplying enough data to HAL, expected position 5370045 , only wrote 5217840
system_process W/WindowManager: removeWindowToken: Attempted to remove non-existing token: android.os.Binder@5bf9659
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 SmbConnectDialog.java:268 and follow the call through SmbUtil.java:56 and CryptUtil.java:276, 386, and 478. Reproduce the SMB connection on an API 27 Pixel 2 using commit 1d0f73ae, then determine what successful connection behavior should replace the Invalid key blob failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100