love2d / love-android

Android build setup for LÖVE.
https://love2d.org
Other
200 stars 70 forks source link

Savedata is inaccessable without SD card #275

Closed polypoyo closed 2 months ago

polypoyo commented 2 months ago

/data/data requires root to access. Some games, such as those with modloaders rely on the user being able to access savedata. This is impossible without root or an ADB shell.

Particularly impactful on GrapheneOS, where rooting defeats the point of the project.

Possibility related to #269, although this one is more severe.

MikuAuahDark commented 2 months ago

LOVE uses /data/data if you don't specify t.externalstorage = true in the conf.lua. If t.externalstorage = true is specified, it will use /sdcard/Android/data. Please ask the respective developers to have t.externalstorage = true in their conf.lua.

polypoyo commented 2 months ago

@MikuAuahDark After editing the file as suggested, the folder is accessible but shows up empty. Clearing app data and manually creating directory structure works around this. Should this be a separate issue?

MikuAuahDark commented 2 months ago

No. That's tracked on #269.

Pada Sab, 6 Jul 2024, 23.47, polypoyo @.***> menulis:

@MikuAuahDark https://github.com/MikuAuahDark After editing the file as suggested, the folder is accessible but shows up empty. Clearing app data and manually creating directory structure works around this. Should this be a separate issue?

— Reply to this email directly, view it on GitHub https://github.com/love2d/love-android/issues/275#issuecomment-2211802087, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZHFFRZVKD2LUU76Z4QEW3ZLAGRTAVCNFSM6AAAAABKOEII4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRHAYDEMBYG4 . You are receiving this because you were mentioned.Message ID: @.***>