前两天调试机器时使用sqlite3报错:
/system/bin/sh: sqlite3: inaccessible or not found
从Sqlite官网下载sqlite3,push到/system/xbin后又报错
adb push sqlite3 /system/xbin/sqlite3
/system/bin/sh: ./sqlite3: not executable: 64-bit ELF fil
当前sqlite3与机器架构不同导致,从sqlite下载源码,交叉编译后重新push
android:/ sqlite3
SQLite version 3.22.0 2018-01-22 18:45:57
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite>
问题解决。
我的sqlite3下载地址:https://download.csdn.net/download/weixin_44025467/86407427