-
Notifications
You must be signed in to change notification settings - Fork 107
[Android] SD Card permissions. #332
Comments
It does not work for native code and it is very slow. Yes, we may wrap filesystem to java, but it is hard task, it will not be compatible with mods, it will be slow and increase memory usage. 0.5s hanging on save,download,changelevel,graph write, reducing connection time 2-3 times because of demoheader. And it may crash/hang because of buggy implementations. |
P.S you yell about file picker method which does not work, but android 6.0 method with /mnt/runtime may work. I do not have android 6.0+ devices to check if it useful. |
I can test that for you if you want. I can also point to some apps that uses that method that you may be able to take a look at and idk, make sense out of something there, idk jack about that. |
It does not depends, request you SD card privileges or not, it will not available from native code. Rodir is seems to be best solution here. |
Solid Explorer is one of the apps that Uses that. I made a video showing how that happens. |
BTW whats Rodir? And how to get it? |
Also, how ironic is that, Solid Explorer, a file explorer that relies on android's own file explorer to work. lol; |
Does Solid Explorer performing file operations in native code? |
Here's the correct Link: |
No I belive it's not native, at least if I understood what native is. |
I mean, I have no idea. |
Use /sdcard/xash as game folder, but leave it empty and place game data to /storage/sdcard1/xash and add -rodir /storage/sdcard1/xash to command-line arguments. |
Documents API is only availiable in java code. It is different from classic filesystem. It is similar to downloafing files from network Instead of reading. |
File managers "uploads" files to sdcard, and does nlt write it directly. |
So "Path to game resources" I set what? |
To /sdcard/xash which should be empty. Xash3D will write all changed files there. It will be used as overlay to read-only /storage/sdcard1/xash |
could not found directory valve. |
like, my sdcard path is /storage/F2ED-255F/ |
so my Advanced Tab should be: Command line ar(...) Path to game resources: Pixel format (...) Keyboard does not resizes Check updates Tick Update to unstable Untick enable immersive mode (...) Tick |
Forgot to say, it works only on test versions.
|
Oh. Where do I get this version? |
Sorry, its probably like, "bitting me at the ankle" but I can't find it. can you please point the link to the apk file? |
Read READMR.md file. Use "travis-latest" branch. |
Yes.
2 янв. 2018 г. 9:50 ПП пользователь "Lion de Oliveira Lorena" <
notifications@github.com> написал:
… This?
https://github.com/FWGS/xash3d-deploy/blob/travis-0.
19.x/xash3d-generic.apk?raw=true
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#332 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADEJgadbkrY6SDS3iyBXEB_kD2jeICLUks5tGnpwgaJpZM4RP714>
.
|
thanks, gonna copy the files one more time, as google play music keeps playing the media files on the game folder. |
works nicely. thanks. |
@a1batross |
Nope. It's a bug. I don't even think it exist on modern Android. (Yes, I
think 4.x branch isn't a modern).
3 янв. 2018 г. 3:27 ПП пользователь "mittorn" <notifications@github.com>
написал:
… @a1batross <https://github.com/a1batross>
No, just add .nomedia after mediascanner adds files to database
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#332 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADEJgS7QlzIDC8E72lkajI_DAkyj3i3Xks5tG3JKgaJpZM4RP714>
.
|
I do not know if ti is bug or feature, but i do not recommend to use it as Samsung devices may have it enabled. |
im using androis 7.1.1, waiting motorola release oreo. |
but yeah the .nomedia file worked like a charm. not only stopped music but also pictures. |
for the mods. lets say i wanna use Crack-Life. r/n i'm using: advanced: cmd args Path: should I add cracklife to both lines? |
You must place cracklife folder to xash folder. |
yeah, it is. all my mods are there cracklife |
Would be this one the native thing you were talking about? |
It asks directly to the folder and not the whole card. |
rewrite xash3d to java and it will work |
When you mean rewrite, isn't it already in Java? |
Xash3d was written on pure C(menu and game libraries on C++). |
I see, I guess I should had payed more attention to college lol |
Well, about the other mods, I still can't get them to work, how should I fill both lines, like, for example for CrackLife. cmd args Path: Should I use "-game cracklife" on both of them? |
Everything is just like Half-Life, except you need to pass -game cracklife
to command line arguments. And also you may have "cracklife" on your "
/storage/F2ED-255F/xash"
|
but the -game comes after or before -rodir? or it doesn't matter? I've used exactly like this: cmd args Path: |
It doesn't matter at all.
|
hm, yeah, it does not work at all. |
BS Launcher doesn't work either. |
Both CrackLife and BlueShift reaches main menu, but does not load any maps. you keep clicking the example "hazard course" and doesn't do anything. In BS Launcher I used the line -dev 3 -log -rodir /storage/F2ED-255F/xash and it did load the main menu blue background. but still not loading any maps. |
No log, no honey.
7 янв. 2018 г. 12:40 ДП пользователь "Lion de Oliveira Lorena" <
notifications@github.com> написал:
… Both CrackLife and BlueShift reaches main menu, but does not load any
maps. you keep clicking the example "hazard course" and doesn't do anything.
In BS Launcher I used the line -dev 3 -log -rodir /storage/F2ED-255F/xash
and it did load the main menu blue background. but still not loading any
maps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#332 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADEJgd5BZ55XKypAIYWSRWD8JTl-V21Vks5tH-hegaJpZM4RP714>
.
|
I didn't knew log as necessary, where is the log? |
Is this the log? |
Re-run engine with -dev 5 -log, it will print more info to the engine.log.
7 янв. 2018 г. 10:50 ДП пользователь "Lion de Oliveira Lorena" <
notifications@github.com> написал:
… Is this the log?
https://pastebin.com/QGabXNPW
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#332 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADEJgT8pex0jBUqS-b0R5n-V70lfbiXOks5tIHdhgaJpZM4RP714>
.
|
dev 5 log |
Thanks, it seems bug of RoDir. It doesn't adds basedir from rodir before
everything.
|
glad i could help somehow. |
Was fixed in dd3580d. |
Hi, as I believe you devs already know, theres a issue with the SD Storage access on Kit Kat or later android versions.
However I'm here to present a possible solution.
I've seen some apps bypassing this, by using android's internal file picker, and some others have implemented something that makes the app asks the system for SD Card privileges, which in its turn asks the user about it.
This may provide some help.
https://source.android.com/devices/storage/
Again, I'm not a developer, I have little to no knowledge on android developing, the most I know is to use ADB / Fastboot to custom rom procedures, and logcats.
I'm just trying to be helpful.
Happy new year!!
The text was updated successfully, but these errors were encountered: