Here you don’t even know where to start listing all mistakes.
You should first learn a few basics before you ask any questions here.
TaifunTools.PathToAssetsonly works in connection with aWebView.
(But it is no longer needed, because you can also use this: http://localhost/test.html)- Assets are read-only.
- Storage permissions are only required to be able to access the external storage. Saving / writing to an arbitrary folder of the external storage is no longer possible on Android 11+.
See also here: