SimpleMobileTools / Simple-File-Manager

Easy app for managing your files without ads, respecting your privacy & security
https://www.simplemobiletools.com
GNU General Public License v3.0
1.49k stars 378 forks source link

Issues while accessing some root files #392

Open mrbck opened 4 years ago

mrbck commented 4 years ago

Thanks for great simple manager.

Unfortunately I have continuous issues while accessing some root files. Eg. data/app/(any app)/oat/arm64 or mnt/user/0. The app does not respond while clicking on these folders and freezes. Also some files in root folders are reported as having 0 size despite that is not true, see screenshot below.

Screenshot_20200401-151533

Other file managers work fine in these regards. I am running latest crDroid on Android 10. I can provide logs or other information if needed.

TY for review of the mentioned issue!

tibbi commented 4 years ago

what app version is that?

mrbck commented 4 years ago

6.6.0 Pro. It was the same in previous version (but I don't know its number).

tusch001 commented 4 years ago

I also have issues with root access: I can't access anything within / (root directory). After toggling root access in settings and granting the app access in magisk I get a blank result for /.

In settings - choose favorites I get a list of top level directories in / but as soon I want to choose a sublevel directory as /data/app the top level folder (/data) is added to favorites. After restarting the app I can't switch to main (/) any more. The explorer stays on "intern".

I'm on Stock Android 6.0.1 rooted with magisk 19.3. Issue is not only with app version 6.6.0 it has been this with older versions too. In fact I think I have never been able to use root at all (I use a different file manager for that).

In logcat I can see no errors just 1 warning: "System: ClassLoader referenced unknown path: /data/app/com.simplemobiletools.filemanager.pro-1/lib/arm64"

I don't have any files in /data/app/com.simplemobiletools.filemanager.pro-1/lib/. Is there a library missing?

tusch001 commented 4 years ago

more info (maybe helpful?): LineageOS 16 / arm 32bit, rooted with magisk I can see the folder list in / (no subfolders). When I create a new subfolder (eg /data/temp) it is not shown in SimpleFileManager. But when I check with another file explorer it is there.

Logcat:

05-23 13:16:53.446   577   638 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.simplemobiletools.filemanager.pro/.activities.SplashActivity.Orange} from uid 10096

05-23 13:16:53.631   577   678 I ActivityManager: Start proc 6478:com.simplemobiletools.filemanager.pro/u0a188 for activity com.simplemobiletools.filemanager.pro/.activities.SplashActivity.Orange

05-23 13:16:54.202   577  1756 I ActivityManager: START u0 {cmp=com.simplemobiletools.filemanager.pro/.activities.MainActivity} from uid 10188

05-23 13:17:34.173   577  1758 W NotificationService: Toast already killed. pkg=com.simplemobiletools.filemanager.pro callback=android.app.ITransientNotification$Stub$Proxy@8ea4df

05-23 13:17:36.438   577   676 W ActivityManager: Activity pause timeout for ActivityRecord{d8d4824 u0 com.simplemobiletools.filemanager.pro/.activities.MainActivity t6271}

05-23 13:17:42.413   577   676 W ActivityManager: Activity pause timeout for ActivityRecord{d8d4824 u0 com.simplemobiletools.filemanager.pro/.activities.MainActivity t6271}

05-23 13:17:46.960   577   840 I InputDispatcher: Window 'Window{f12a67a u0 com.simplemobiletools.filemanager.pro/com.simplemobiletools.filemanager.pro.activities.MainActivity}' spent 10483.3ms processing the last input event: MotionEvent(deviceId=12, source=0x00001002, action=DOWN, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, edgeFlags=0x00000000, xPrecision=1.6, yPrecision=2.6, displayId=0, pointers=[0: (1770.8, 644.0)]), policyFlags=0x62000000

05-23 13:17:46.961   577   840 I InputDispatcher: Window 'Window{f12a67a u0 com.simplemobiletools.filemanager.pro/com.simplemobiletools.filemanager.pro.activities.MainActivity}' spent 10483.2ms processing the last input event: MotionEvent(deviceId=12, source=0x00001002, action=UP, actionButton=0x00000000, flags=0x00000000, metaState=0x00000000, buttonState=0x00000000, edgeFlags=0x00000000, xPrecision=1.6, yPrecision=2.6, displayId=0, pointers=[0: (1770.8, 644.0)]), policyFlags=0x62000000

05-23 13:17:47.967   577  1323 I ActivityManager: Activity reported stop, but no longer stopping: ActivityRecord{d8d4824 u0 com.simplemobiletools.filemanager.pro/.activities.MainActivity t6271}

05-23 13:17:48.044   577   807 W NotificationService: Toast already killed. pkg=com.simplemobiletools.filemanager.pro callback=android.app.ITransientNotification$Stub$Proxy@230a02

05-23 13:17:51.502   577  1756 W NotificationService: Toast already killed. pkg=com.simplemobiletools.filemanager.pro callback=android.app.ITransientNotification$Stub$Proxy@5705561

05-23 13:18:22.616   338   338 W auditd  : type=1327 audit(0.0:1563): proctitle="com.simplemobiletools.filemanager.pro"

05-23 13:18:25.820   319  1228 W SurfaceFlinger: Attempting to set client state on removed layer: com.simplemobiletools.filemanager.pro/com.simplemobiletools.filemanager.pro.activities.MainActivity#1

05-23 13:18:25.820   319  1228 W SurfaceFlinger: Attempting to destroy on removed layer: com.simplemobiletools.filemanager.pro/com.simplemobiletools.filemanager.pro.activities.MainActivity#1

05-23 13:18:30.042   338   338 W auditd  : type=1327 audit(0.0:1719): proctitle="com.simplemobiletools.filemanager.pro"

05-23 13:18:32.037   577  1218 W NotificationService: Toast already killed. pkg=com.simplemobiletools.filemanager.pro callback=android.app.ITransientNotification$Stub$Proxy@56320a5

05-23 13:18:32.506   319  1228 W SurfaceFlinger: Attempting to set client state on removed layer: com.simplemobiletools.filemanager.pro/com.simplemobiletools.filemanager.pro.activities.MainActivity#1

05-23 13:18:32.506   319  1228 W SurfaceFlinger: Attempting to destroy on removed layer: com.simplemobiletools.filemanager.pro/com.simplemobiletools.filemanager.pro.activities.MainActivity#1

05-23 13:18:39.504   319   347 W SurfaceFlinger: Attempting to set client state on removed layer: com.simplemobiletools.filemanager.pro/com.simplemobiletools.filemanager.pro.activities.MainActivity#1

05-23 13:18:39.504   319   347 W SurfaceFlinger: Attempting to destroy on removed layer: com.simplemobiletools.filemanager.pro/com.simplemobiletools.filemanager.pro.activities.MainActivity#1
tusch001 commented 4 years ago

report from another phone: root access is not granted

this is on an older phone with stock android 6.0.1 but minus google apps plus microG

I use magisk 20 for root access. After reinstalling the app and asking for root access in settings this doesn't provoke magisk for asking about the root priviledge. There is only a short toast about root access not granted. I can manually toggle the root access in magisk for the app (still off but changes to on). When I then ask again in file manager settings for root the toast says something like:

Error:
com.stericson.RootShell.exceptions.RootDeniedException: Root Access Denied

I have more than a dozen apps on different phones that work all well with magisk so I think the problem is on this side.

I'm posting this only in the hope that it helps you to find a solution. Thanks for all your apps.

tusch001 commented 3 years ago

FYI: The File Manager Amaze had the same root problems as this app. The developers changed something in their latest release (Version 3.5.0-beta2, https://github.com/TeamAmaze/AmazeFileManager) and now I have write and read access to all root files. (Although the first time when Amaze asks for general file access or root permission it crashes). This is the only open source file manager with root access (I tested all of them) that works on my phone (Stock Android 6.0.1).

Maybe you want to have a look how they handled the root permission?

edit: Version 3.5.0-beta3 doesn't crash when it asks for root permission: https://github.com/TeamAmaze/AmazeFileManager/releases/tag/v.3.5.0-beta3