How to execute binary file in flutter? I have put the binary into assets and added to my code function to 'unpack' it (How do I get the Asset's file path in flutter?).
The file is in the app data folder:
generic_x86:/data/data/com.example.hidden/app_flutter # ls
binaryfile flutter_assets
generic_x86:/data/data/com.example.hidden/app_flutter #
However when I try executing it using the Process.run
it says Permission denied
. When I chmod +x
or chmod 777
it using root shell, it says No such file or directory
. However I would prefer some no root method to do this.
How can I properly execute prebuilt binaries in Flutter? Thanks