Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hugoduro opened this issue Nov 10, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@hugoduro
Copy link

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 <GTC_IP_ADDRESS>
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 <GTC_IP_ADDRESS>
adb root
adb shell
su
adb push dvb.db /data/data/com.amlogic.tvservice/databases/
adb disconnect <GTC_IP_ADDRESS>
I was doing a project in java programming language to do this, but I haven't had enough time...

Regards
Hugo Duro

@oscarsanchezdm oscarsanchezdm added the enhancement New feature or request label Nov 10, 2020
@hugoduro
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants