rayshift / translatefgo

FGO Translation Project
MIT License
253 stars 14 forks source link

Use Shizuku to override new Android security patch #76

Closed neobenedict closed 7 months ago

neobenedict commented 10 months ago

Fix error "To protect your privacy, choose another folder." and related errors by using Shizuku

https://twitter.com/MishaalRahman/status/1719416906174681554

neobenedict commented 10 months ago

Well, strangely, I can't even reproduce the actual issue on an up-to-date pixel 5 running android 14, which makes it hard to fix it. :/

Perseo2499 commented 7 months ago

Hi, I've bee facing the same issue on my device with the latest update to A14. I'm a root user, so there is a solution that worked for me using a Lsposed module.

https://github.com/DanGLES3/NoStorageRestrict

Download the module, activate it on Lsposed app and reboot the device. The storage permission block will vanish :)

neobenedict commented 7 months ago

https://github.com/topjohnwu/libsu/issues/127#issuecomment-1180228500 + https://www.xda-developers.com/implementing-shizuku/ AIDL

lol @ getting this to work with xamarin...

neobenedict commented 7 months ago
02-18 01:46:49.351  6274  6274 I TranslateFGO: Starting NGFS service with context=android.app.ContextImpl@bf907b3
02-18 01:46:49.821  6181  6181 I TranslateFGO: Bound NGFS.
02-18 01:46:49.822  6274  6294 I TranslateFGO: pid=6274, uid=2000
02-18 01:46:49.822  6274  6294 I TranslateFGO: Listing files.
02-18 01:46:49.822  6274  6294 I TranslateFGO: file: 969b46577f365fadeb79ef14cf5d6370
02-18 01:46:49.822  6274  6294 I TranslateFGO: file: 54cc790bf952ea710ed7e8be08049531
02-18 01:46:49.822  6274  6294 I TranslateFGO: file: bfaa
02-18 01:46:49.822  6274  6294 I TranslateFGO: file: d713

Good news, we're getting somewhere. I'm probably the first person on the planet to use shizuku with xamarin lol.

Only caveat is this breaks android 7 support currently, might need to make 2 vers of the apps.

Perseo2499 commented 7 months ago

Very excited to hear this. Can't wait to see the results!!!

neobenedict commented 7 months ago

OK, here is a beta release: http://apk.rayshift.io/translatefgo/io.rayshift.translatefgo-22007_3.apk

Could you test it and let me know your feedback, if it works or not, if you get any errors please screenshot them and post here.

Perseo2499 commented 7 months ago

Worked for me.

I disable the modules that had it working and cleaned the data from the app.

As you can see, I had again the storage permission issue. I used the Shizuku method and it worked fine. It didn't ask me for the folder of the game, It went to the installation menu directly.

And as you can see in the picture of the game, the translations work :) Screenshot_20240219-090603_Files Screenshot_20240219-090629_Translate Fate_GO Screenshot_20240219-090634_Translate Fate_GO Screenshot_20240219-090749_Translate Fate_GO Screenshot_20240219-090756_Translate Fate_GO Screenshot_20240219-091111_Fate_GO

Perseo2499 commented 7 months ago

I forgot to mention it. I was running Shizuku with root, so I stopped it and enabled by wireless debugging. It also worked :)

neobenedict commented 7 months ago

Fixed with version 2.2.0.