Latest SQLite binary for January 2015

Well I went through quite a few threads to find an updated, decent sqlite binary. Didn't find any that met that criteria.

So I compiled one.

Here's SQLite 3.8.7.4 combined into a single source file (the amalgamation) for ARM v6 and v7.

These binaries are built with optimized armv6 and armv7 flags.

Should work on Android 2.x and up.

I have attached 2 versions to this thread, compressed and uncompressed. I had to change the extension to apk otherwise I can't upload it. Just remove the extension.

Just download and run the uncompressed file, whereas compressed you have to uncompress it first.

Here's 2 alternative download links:

Compressed:

armv6
http://d-h.st/CNlY
armv7
http://d-h.st/Tlg

Uncompressed:

armv6
http://d-h.st/6lCg
armv7
http://d-h.st/dpIw

* Update *
E:V:A alerted me to a problem with certain versions of android didn't like the dynamic linking. So now it is statically linked.

I now run 4 tests on the built binary.
1. I import the chinook test database using -init and dump it.
2. I open the already created sqlite database and dump it.
3. I vacuum the chinook database.
4. I reindex the chinook database.

Added 64bit file support, but it has not been fully tested.

Hopefully someone can do some tests with large five gigabyte data bases,
otherwise I'll get to it eventually.

Also, since I've actually made changes to the sqlite code since the update in January, I've created a github.
http://github.com/tech128/sqlite3

Attached Files

  sqlite3.armv6.apk (874.0 KB, 1014 views)
  sqlite3.armv6.7z (375.2 KB, 252 views)
  sqlite3.armv7.apk (878.0 KB, 2038 views)
  sqlite3.armv7.7z (376.9 KB, 880 views)

Q: Is this will work on other device ? my device is sony xperia C JB 4.2.2

A: Yes this will work on any android device that has android 2.0 or higher. 
So it will work fine on your sony xperia C JB 4.2.2

Q: Did someone test this on a Samsung?

I'm asking because this binary is dynamically linked and thus dependent on libraries not being non-standard... 
If you want your sqlite3 to be device independent you have to make it statically linked.
You current version does not work on my 4.2.2.
(It runs, but crashes as soon as you specify a db file, because of unmatched .so files.)

It is a honor to have you post in my thread. Thank you for letting me know it does not work on your system.
I have read many of your threads, extremely informative. One day I hope to memorize all of what you have written.
I compiled sqlite3 dynamically because it is a little easier on the memory subsystem and has a smaller output filesize.
I tested it on several android 2.3 / 4.3 / 4.4 systems and they all seemed to work fine so I thought it would be ok.
Especially since all that is dynamically referenced is libc and libdl.
I have just compiled a static version but I need to test it before posting it.
I will update the op soon.

your sqlite3 can reindex, but it can not vaccum. u can re-check it

Thank you for letting me know about this issue.
I test sqlite before I release it, but there are no test suites for it, barring one which requires tcl,
which I have no desire to compile since there's no other use for it.
The current sqlite can probably only reliably work with databases up to 2 or 4 GB
Which usually isn't a problem since most sqlite databases are well under that amount.
I've been trying to compile an updated sqlite with proper 64 bit file support.
Since 64 bit file support is a bit wonky on android, this has been a bit tough.
Also, I've been rather busy since I last released the binary, so I haven't had much time to think about compiling in general.
I'll do my best to get a new binary out soon-ish.

Armv6 flags? So it's useless on Nexus 4/5 etc with armv7 CPUs? Can we find one which is optimised for high end devices?

No not useless, just less than optimal. Not really sure of the speedup, since I don't do benchmarks.
I try to optimize it as much as possible without breaking it x_X
I was initially planning to put out both armv6 and armv7 ports at the same time,
but then I realized most android utilities aren't compiled with proper 64bit file support.
So I've been trying to figure that out first.
And also, most people don't use sqlite for anything earth-shattering anyway, mostly vacuum, reindex,
create database from sql statements, etc.

Oooooo just saw this while searching for sqlite performance enhancements. 
https://sqlite.org/src4/doc/trunk/www/design.wiki
Very nice.

I'd also like to try to switch to musl as the standard library since alireza7991 has said it makes things smaller and faster.
Not sure how feasible that will end up for me though...
It doesn't look like sqlite can parallelized at all though. See here: 
http://blogs.perl.org/users/timm_mur...nd-writes.html
There is a fork/variant of sqlite called paralite that uses threading,
but I don't think it retains the same file format compatibility and it looks like it introduces some bugs.
Unfortunately real life stuff takes precedence so things will progress slower than I would like.
But at least I know there's lots to look forward to even just for sqlite lol.

It works: for user of my app in android 5.0 but for me too with android 4.4.4 OnePlus one and cyanogen.
I test to put your binaries in /system/xbin in my phone and it works.
One question: i believe your binaries works too to phones that have an android version
but have a version of sqlite3 that no correspond with android isn't it?

Again thanks for this fresh binary.

I have some issues with converting UNIX-time compared to built-in binary.
At example command:

Code:
  1. sqlite3 <here_file> "select datetime('now','localtime');"

– Built-in: returns correct time with timezone offset (preferred, data ready for use).
– Your: returns UTC time without using phone's offset.

This causes problems with my use-case.
Same version (3.8.7.4) Windows EXE from official site returns correct time with timezone offset.

Please, can you comment this?
Maybe this is due wrong linked libs or something else?

UPD: ok, took binary from WhatsTasker

APK (nevermind), it have 3.8.8 version.
And it returns correct local time!
So something wrong in this compiled version.

If some one will have those issues, I attached that binary, it's Lollipop-compatible too.

sqlite3.zip (288.9 KB, 236 views)

Here's SQLite 3.8.7.4 combined into a single source file

Huge thanks for sharing!
This is only binary I found that include all needed for me:

1. Fresh – contains required new features
2. Standalone – not depends from system libsqlite.so
3. Lollipop compatible – no "PIE problem"

Latest SQLite binary for January 2015的更多相关文章

  1. matrix_2015_1 138 - ZOJ Monthly, January 2015

    http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3844 第一个,n个数,每次操作最大数和最小数都变成他们的差值,最后n个数相 ...

  2. Probabilistic locking in SQLite

    In SQLite, a reader/writer lock mechanism is required to control the multi-process concurrent access ...

  3. Oracle Recommended Patches -- "Oracle JavaVM Component Database PSU" (OJVM PSU) Patches (文档 ID 1929745.1)

    From: https://support.oracle.com What is "Oracle JavaVM Component Database PSU" ? Oracle J ...

  4. Deep Learning in R

    Introduction Deep learning is a recent trend in machine learning that models highly non-linear repre ...

  5. .NET 框架(转自wiki)

    .NET Framework (pronounced dot net) is a software framework developed by Microsoft that runs primari ...

  6. (转)The Road to TensorFlow

    Stephen Smith's Blog All things Sage 300… The Road to TensorFlow – Part 7: Finally Some Code leave a ...

  7. gnu-software

    gnu coreutils https://www.gnu.org/software/coreutils/manual/coreutils.html#toc_Printing-text 目录列表 ht ...

  8. kbmmw 5.05.00 发布

    新年前最后几天,kbmmw 发布了新版本,增加一大波功能.we are happy to announce v5.05.50 of our popular middleware for Delphi ...

  9. [From WIKI] IBM Z

    IBM zEnterprise System From Wikipedia, the free encyclopedia     Jump to navigationJump to search Hi ...

随机推荐

  1. Nginx - 压缩模块

    1. 前言 在 Nginx 中与网页压缩相关的模块有两个:一个是 HttpGzipModule,另一个是 HttpGzipStaticModule.前者用于启用在文件传输过程中使用 gzip 压缩,而 ...

  2. OR 连接查询注意

    用or 查询时, 取得是 每个or中条件的 查询的结果集union. select * from categorysecond t where ISNULL(null); ort.csid in (' ...

  3. Codeforces 429B Working out(递推DP)

    题目链接:http://codeforces.com/problemset/problem/429/B 题目大意:两个人(假设为A,B),打算健身,有N行M列个房间,每个房间能消耗Map[i][j]的 ...

  4. python图片处理(三)

    ji那天用到了python图片处理中的二值图像的骨架提取,在matlab中通过输入图像的二值,来处理得到图像的骨架, skelimage = bwmorph(im, 'skel', inf); 在ma ...

  5. Centos之目录处理命令

    linux中 关于目录 有几个重要概念 一个是 / 根目录  还有一个当前用户的家目录 比如 root用户的家目录是 /root  普通用户的家目录是/home/xxx 下 root登录 默认家目录 ...

  6. 如何把自己的wordpress网站移到本地修改

    有时候wordpress更换模板时,需要修改的地方很多,而且在线修改不是很好.只能把它移动到电脑本地进行修改了.这样修改好就可以直接套用到网站上了. 1.通过服务器控制面板或FTP整站打包,发送到你已 ...

  7. 反向投影(BackProjection)

    如果一幅图像的区域中显示的是一种结构纹理或者一个独特的物体,那么这个区域的直方图可以看作一个概率函数,他给的是某个像素属于该纹理或物体的概率. 所谓反向投影就是首先计算某一特征的直方图模型,然后使用模 ...

  8. 【LOJ】#2205. 「HNOI2014」画框

    题解 我原来根本不会KM 更新每个节点增加的最小值的时候,要忽略那个方访问过的右节点!!! 然后就和最小乘积生成树一样了 代码 #include <iostream> #include & ...

  9. 极简操作无需root隐藏S8导航栏和状态栏

    距离三星Galaxy S8国行发布快一个礼拜了,相信论坛不少小同伴已经拿到手,许多人和我一样被那块全视曲面屏给诱惑剁手的,当拿到手把玩一段时间后却發现这么美的一块屏幕居然大部分应用上下都有一行碍眼的状 ...

  10. 常用的PHP排序算法以及应用场景

    更多php排序算法应用常景:http://www.bf361.com/algorithm/algorithm-php 1.冒泡排序  冒泡排序:冒泡排序(Bubble Sort),是一种计算机科学领域 ...