TeamAmaze / TeamAmaze/AmazeFileManager

App crash when viewing .7z archive from SMB connection

Open
#3,775 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-SMB Issue-Bug
Dominant language
Kotlin
Stars
6.4k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
1

Description

Issue explanation (write below this line)

I attempted to open a .7z archive (not encrypted) from a Windows 11 smb share

Exception

  • App Name: Amaze File Manager
  • Package: com.amaze.filemanager
  • Version: 3.8.5
  • User Action: UI Error
  • Request: Application crash
  • OS: Linux Android 12 - 31
  • Device: gta4l
  • Model: SM-T505
  • Product: gta4leea
Crash log

java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.VIEW dat=http://127.0.0.1:7871/... typ=application/x-7z-compressed cmp=pl.solidexplorer2/pl.solidexplorer.WebActivity } from ProcessRecord{47550da 1925:com.amaze.filemanager/u0a16} (pid=1925, uid=10016) not exported from uid 10238
	at android.os.Parcel.createExceptionOrNull(Parcel.java:2437)
	at android.os.Parcel.createException(Parcel.java:2421)
	at android.os.Parcel.readException(Parcel.java:2404)
	at android.os.Parcel.readException(Parcel.java:2346)
	at android.app.IActivityTaskManager$Stub$Proxy.startActivity(IActivityTaskManager.java:2897)
	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1743)
	at android.app.Activity.startActivityForResult(Activity.java:5473)
	at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:597)
	at android.app.Activity.startActivityForResult(Activity.java:5431)
	at androidx.activity.ComponentActivity.startActivityForResult(ComponentActivity.java:583)
	at android.app.Activity.startActivity(Activity.java:5817)
	at android.app.Activity.startActivity(Activity.java:5770)
	at com.amaze.filemanager.filesystem.files.FileUtils$5.lambda$run$0(FileUtils.java:841)
	at com.amaze.filemanager.filesystem.files.FileUtils$5.$r8$lambda$V5PxxJdTLahRVRJARJkneRy7Zng(Unknown Source:0)
	at com.amaze.filemanager.filesystem.files.FileUtils$5$$ExternalSyntheticLambda0.run(Unknown Source:4)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:226)
	at android.os.Looper.loop(Looper.java:313)
	at android.app.ActivityThread.main(ActivityThread.java:8669)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: android.os.RemoteException: Remote stack trace:
	at com.android.server.wm.ActivityTaskSupervisor.checkStartAnyActivityPermission(ActivityTaskSupervisor.java:1334)
	at com.android.server.wm.ActivityStarter.executeRequest(ActivityStarter.java:1262)
	at com.android.server.wm.ActivityStarter.execute(ActivityStarter.java:893)
	at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1873)
	at com.android.server.wm.ActivityTaskManagerService.startActivityAsUser(ActivityTaskManagerService.java:1744)



Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce opening a non-encrypted .7z archive from an SMB share on Android 12, then inspect FileUtils.java at line 841 where the external VIEW activity is started. Trace the intent handling and verify the app no longer crashes when viewing this archive.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.