oscarsanchezdm / channellistmaker

GNU General Public License v3.0
1 stars 0 forks source link

Possibility to write directly to GTMedia GTC database over adb commands #3

Open hugoduro opened 3 years ago

hugoduro commented 3 years ago

Hi, In GTMedia GTC there is a possibility to write directly do channel database, with no need to export/import xml files. This could be done with Android ADB commands over wifi connection. GTMedia GTC have a SQLite database with the channel list.

This could be accessed with this ADB commands:

adb connect adb root adb shell su cd /data/data/com.amlogic.tvservice/databases/ adb shell su 0 chmod 666 /data/data/com.amlogic.tvservice/databases/dvb.db adb pull /data/data/com.amlogic.tvservice/databases/dvb.db .

-- Then you could read/write dvb.db with an ODBC connection (or mannually with SQLite DB Browser)

-- After edit dvb.db, you could push the file directly to GTC

adb connect adb root adb shell su adb push dvb.db /data/data/com.amlogic.tvservice/databases/ adb disconnect I was doing a project in java programming language to do this, but I haven't had enough time...

Regards Hugo Duro

hugoduro commented 3 years ago

ADB tools for windows can be downloaded here: https://drive.google.com/file/d/1HM-qwHKQDJWMLNxNOuKrvMR-a_tHmxDz/view?usp=sharing