简体   繁体   English

Android TV中缺少sqlite3?

[英]sqlite3 missing in Android TV?

I've been trying to run some sqlite3 commands once shelled into a Nexus Player via adb and it can't find the sqlite3 command. 我曾经尝试过通过adb插入Nexus Player后运行一些sqlite3命令,但找不到sqlite3命令。

Is this not available on Android TV builds? 这在Android TV版本上不可用吗? Is there a location to pull this from that would work on it? 是否有一个位置可以解决此问题?

I've worked around this by pushing a sqlite3 binary to the nexus player. 我已经通过将sqlite3二进制文件推送到关系播放器来解决此问题。 Keep in mind: the Nexus Player by ASUS is a x86 device, so you should get a x86 binary. 请注意:ASUS的Nexus Player是x86设备,因此您应该获得x86二进制文件。

Push by

adb push X:\\sqlite3 /data/local/tmp

After pushing, navigate to the path you've pushed the binary to 推送后,导航到将二进制文件推送到的路径

adb shell cd /data/tmp/local

When in the appropiate directory, set the permissions 在适当的目录中时,设置权限

chmod +x ./sqlite3

Then you can run it by 然后你可以运行它

./sqlite3 <path-to-your-sqlite-db>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM