SupportSQLiteStatement
7 views
6a7cd4cc...
Description
SupportSQLiteStatement logger
How to Use
Download the script and run it with Frida CLI:
Download ScriptThen run with Frida:
frida -U -f YOUR_PACKAGE_NAME -l supportsqlitestatement.js
Replace YOUR_PACKAGE_NAME with the target app's package name.
Source Code
JavaScript
let SupportSQLiteDatabase = Java.use("androidx.sqlite.db.SupportSQLiteDatabase");
SupportSQLiteDatabase["delete"].implementation = function (str, str2, objArr) {
console.log(`SupportSQLiteDatabase.delete is called: str=${str}, str2=${str2}, objArr=${objArr}`);
let result = this["delete"](str, str2, objArr);
console.log(`SupportSQLiteDatabase.delete result=${result}`);
return result;
};
SupportSQLiteDatabase["execSQL"].overload('java.lang.String').implementation = function (str) {
console.log(`SupportSQLiteDatabase.execSQL is called: str=${str}`);
this["execSQL"](str);
};
SupportSQLiteDatabase["execSQL"].overload('java.lang.String', '[Ljava.lang.Object;').implementation = function (str, objArr) {
console.log(`SupportSQLiteDatabase.execSQL is called: str=${str}, objArr=${objArr}`);
this["execSQL"](str, objArr);
};
Comments