......For the second , you can edit the var SLEEP (in run.py and run_nostart.py), in order to add a delay between launching the activity and attaching gdbserver.
Hi Hamlatzis,For the first case you might need to add a delay before launching the Java native libraries (or inside your native library).