Other [please test] RuntimePermissions.GetSafeDirDefaultExternal

Erel

B4X founder
Staff member
Licensed User
Longtime User
I'm seeing some unexpected crash reports that I'm trying to analyze. If you can, please run this code and see whether it prints "please post..." in the logs.
It depends on RuntimePermissions library.
Code: Copy
Sub Activity_Create(FirstTime As Boolean)
   Dim rp As RuntimePermissions
   If rp.GetSafeDirDefaultExternal("") <> File.DirDefaultExternal Then
     Log("Please post: " & rp.GetSafeDirDefaultExternal(""))
     Log(File.DirDefaultExternal)
   Else
     Log("Nothing interesting")
   End If
End Sub

The crashes were mainly with Lenovo and Moto G devices.
 
I think this won't help (?), cause i don't have an Android 6 device.
But when Erel is asking for help one time i wanted to participate and do my best ;)

I'm logging 'Nothing interesting' on my Samsung Galaxy S4 with 5.0.1
 
Upvote 0
I got 'nothing interesting' on all devices:

- Moto G
- Samsung Galaxy Tab A 6.0
- Samsung Galaxy S3

I'm using v6.30 of the software and have run the tests in both debug mode and release (obfuscated) mode.
 
Upvote 0
Got the following on a:
Huawei P8 Lite Android 6.0
Code: Copy
Please post: /storage/emulated/0/Android/data/b4a.example/files
/storage/9016-4EF8/Android/data/b4a.example/files
 
Upvote 0
"Nothing interesting" on both Samsung Galaxy Tab 3 (Android 4.4.2) and Nexus 5 (Cyanogenmod Android 6.0.1, last nightly).
 
Upvote 0
@Erel

Code: Copy
--------- beginning of main
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Internal: /data/user/0/b4a.example/files
/storage/emulated/0/Android/data/b4a.example/files
/storage/9016-4EF8/Android/data/b4a.example/files
** Activity (main) Resume **
 
Upvote 0
Reconfigured my phone, normally my SD-card is my primary storage, just switched that to internal storage.

Now on the first test: Nothing interesting
2nd test: same as my previouw post
 
Upvote 0
Back
Top