Page 2 of 2

Re: SQLite for Automagic

Posted: 31 Jan 2020 18:54
by VitPMir
fagci wrote:
31 Jan 2020 18:40
Sorry, but in every Android phone sqlite3 console utility exists. So, no need to write more code instead of SQL
Not all phones have sqlite3. I do not have (Mi Max 2). And to install this utility you need root.

Re: SQLite for Automagic

Posted: 31 Jan 2020 23:33
by anuraag
VitPMir's method is better. I have been playing with the code and it's going well. I am using query instead of rawQuery in my flow.

This code can be used to close database.

Code: Select all

callJavaMethod(objDb, "android.database.sqlite.SQLiteDatabase", "close()");

Re: SQLite for Automagic

Posted: 01 Feb 2020 04:57
by VitPMir
anuraag wrote:
31 Jan 2020 23:33

This code can be used to close database.
Thanks.

Re: SQLite for Automagic

Posted: 01 Feb 2020 21:41
by fagci
VitPMir wrote:
31 Jan 2020 18:54
Not all phones have sqlite3.
Maybe that is without custom ROM. I always flash new smartphone, coz stock is bad for me. ㄟ(ツ)ㄏ

Re: SQLite for Automagic

Posted: 05 Feb 2020 18:31
by Desmanto
Mine is RN5 with AEX 6.7 Pie 9.0 ROM, and I have sqlite3 binary here. I just found out that adb shell also have the sqlite3 binary baked in. But of course it is useless as we need PC to work with.