[mythtv] Installing gdbserver on android

Peter Bennett pb.mythtv at gmail.com
Sat Jun 30 20:48:30 UTC 2018


searching the web I found a page that says the recommended method of 
getting files into your app data directory is via the temp directory

 > adb push data.db /data/tmp/data.db
 > adb shell
# su # or run-as com.me.app
# cp /data/tmp/data.db /data/data/com.me.app/databases/data.db

On the shield, however, the temp directory is actually /data/local/tmp

So something like this should work:

 > adb push 
/home/peter/android/android-ndk/prebuilt/android-arm64/gdbserver/gdbserver 
/data/local/tmp/gdbserver
 > adb shell
# run-as org.mythtv.mythfrontend
# cp /data/local/tmp/gdbserver /data/data/org.mythtv.mythfrontend/gdbserver

This works on my shield with the android 7 version, hopefully it will 
also work with Oreo

The permissions of /data/local/tmp allow adb to write to it and other 
applications to login to it. Files that are pushed there get rwxrwxrwx 
permission so they can be copied using the mythfrontend user

Peter


More information about the mythtv-dev mailing list