# sqlite3 /data/data/com.moodme.android/databases/moodme
sqlite3 /data/data/com.moodme.android/databases/moodme
sqlite3: not found
相关问题
- How can I create this custom Bottom Navigation on
- How to get the return code of a shell script in lu
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
As an alternative (may not be secure or even good idea though) you can always upload the
sqlite3
binary to/system/bin
this worked for me:First lets mount
/system/
to allow read/write (rw)in another terminal change directory (cd) to where
sqlite3
is and lets push itNow back to the other shell lets copy and change permissions of the binary
Now lets mount back
/system/
as read only (ro)And now we can use sqlite3 from shell:
Note:
I'm using the sqlite3 binary that comes with "SuperOneClickv1.6.5-ShortFuse"You can always pull
sqlite3
binary from emulator:Start an emulator and then from a terminal
If you are lazy like me you can download one right here for ICS or before or for Jelly Bean and later here
Make sure to use the proper one for your Android version as you may get
eloc_library[1306]: 14446 cannot locate 'sqlite3_enable_load_extension'...
or similar errors on executeFrom the answer of evelio, I had problem to push the sqlite3 file to /system/bin. So, instead, I have pushed it to the /sdcard.
In this thread I found the right Solution (answer of Kila): How can I install sqlite3 on rooted NexusOne runs Gingerbread
It works on my Samsung Galaxy S II with 2.3.3.
On the Nexus 4 do the following :
Notice the folder is /system/xbin and the chmod is 777
On the Android emulator,
sqlite3
is in/system/xbin
. There is no/system/xbin
on a Nexus One (Android 2.2). Hence, I suspect thatsqlite3
is not installed on the Nexus One.To install sqlite3 on NON-ROOTED devices, here is a way that has been proved working on my Galaxy S3, FYR.
Some more information that may help someone about this issue
For the people who wonder where to get a working sqilte3 file binary to copy:
You can use the emulator to get a working binary. You must before check if your build is based on _86, _64, or ARM and replicate this image or you may get an incompatible version that will cause an err.
Checking which version is your android device
https://www.quora.com/How-can-I-check-whether-my-Android-phone-is-32-bit-or-64-bit
Building ARM in android studio
Android Studio - How Can I Make an AVD With ARM Instead of HAXM?
Then, use the notes below to move files between your machine and back to the android device.
Making adb writable
Android Emulator sdcard push error: Read-only file system
Copying files from adb to local device machine
How to copy selected files from Android with adb pull
On a rooted device nexus 4 these links with the instruction on this page worked. Hope it helps someone. The key is you need to mount to get writing permission in the device via adb.