From 4ef74712b279830c9e5dd9087b525279a62a7599 Mon Sep 17 00:00:00 2001 From: Kavish Devar Date: Fri, 10 Jan 2025 10:59:39 +0530 Subject: [PATCH] remove hook file --- android-hooking/hook.js | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 android-hooking/hook.js diff --git a/android-hooking/hook.js b/android-hooking/hook.js deleted file mode 100644 index 1fccc03..0000000 --- a/android-hooking/hook.js +++ /dev/null @@ -1,38 +0,0 @@ -// AirPods like Normal (ALN) - Bringing Apple-only features to Linux and Android for seamless AirPods functionality! -// -// Copyright (C) 2024 Kavish Devar -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU Affero General Public License as published -// by the Free Software Foundation, either version 3 of the License. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU Affero General Public License for more details. -// -// You should have received a copy of the GNU Affero General Public License -// along with this program. If not, see . - -Java.perform(function () { - // Locate the native library - var libbluetooth = Module.findExportByName("libbluetooth_jni.so", "l2c_fcr_chk_chan_modes"); - - if (libbluetooth) { - console.log("Found l2c_fcr_chk_chan_modes at: " + libbluetooth); - - // Hook the function - Interceptor.attach(libbluetooth, { - onEnter: function (args) { - console.log("l2c_fcr_chk_chan_modes called"); - }, - onLeave: function (retval) { - console.log("Original return value: " + retval.toInt32()); - retval.replace(1); // Force return value to true (non-zero) - console.log("Modified return value to: " + retval.toInt32()); - } - }); - } else { - console.log("l2c_fcr_chk_chan_modes not found!"); - } -});