From 865e3222e66c592a8dafe1a5164a3437890cea99 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Sat, 29 Mar 2025 05:41:10 +0800 Subject: [PATCH] Remove spoofVendingSdk from webui 18e65b59173d81f0d407fe3f8c65c48863be2ed5 --- module/webroot/index.html | 7 ------- module/webroot/scripts.js | 42 --------------------------------------- 2 files changed, 49 deletions(-) diff --git a/module/webroot/index.html b/module/webroot/index.html index d34f309..7931e0a 100644 --- a/module/webroot/index.html +++ b/module/webroot/index.html @@ -27,13 +27,6 @@ -
- Spoof sdk version to Play Store - -
diff --git a/module/webroot/scripts.js b/module/webroot/scripts.js index f47c8df..47f17c2 100644 --- a/module/webroot/scripts.js +++ b/module/webroot/scripts.js @@ -19,35 +19,10 @@ async function execCommand(command) { // Apply button event listeners function applyButtonEventListeners() { const fetchButton = document.getElementById('fetch'); - const sdkVendingToggle = document.getElementById('sdk-vending-toggle-container'); const previewFpToggle = document.getElementById('preview-fp-toggle-container'); const clearButton = document.querySelector('.clear-terminal'); fetchButton.addEventListener('click', runAction); - sdkVendingToggle.addEventListener('click', async () => { - try { - const pifPath = await execCommand(` - [ ! -f /data/adb/modules/playintegrityfix/pif.json ] || echo /data/adb/modules/playintegrityfix/pif.json - [ ! -f /data/adb/pif.json ] || echo /data/adb/pif.json - `); - if (pifPath.trim() === "") { - appendToOutput("[!] No pif.json found"); - return; - } - const isChecked = document.getElementById('toggle-sdk-vending').checked; - const paths = pifPath.trim().split('\n'); - for (const path of paths) { - if (path) { - await execCommand(`sed -i 's/"spoofVendingSdk": [01]/"spoofVendingSdk": ${isChecked ? 0 : 1}/' ${path}`); - } - } - appendToOutput(`[+] Successfully changed spoofVendingSdk to ${isChecked ? 0 : 1}`); - document.getElementById('toggle-sdk-vending').checked = !isChecked; - } catch (error) { - appendToOutput("[!] Failed to change spoofVendingSdk"); - console.error('Failed to toggle sdk vending:', error); - } - }); previewFpToggle.addEventListener('click', async () => { try { const isChecked = document.getElementById('toggle-preview-fp').checked; @@ -109,22 +84,6 @@ async function loadVersionFromModuleProp() { } } -// Function to load spoofVendingSdk config -async function loadSpoofVendingSdkConfig() { - try { - const sdkVendingToggle = document.getElementById('toggle-sdk-vending'); - const isChecked = await execCommand(`grep -o '"spoofVendingSdk": [01]' /data/adb/modules/playintegrityfix/pif.json | cut -d' ' -f2`); - if (isChecked === '0') { - sdkVendingToggle.checked = false; - } else { - sdkVendingToggle.checked = true; - } - } catch (error) { - appendToOutput("[!] Failed to load spoofVendingSdk config"); - console.error("Failed to load spoofVendingSdk config:", error); - } -} - // Function to load preview fingerprint config async function loadPreviewFingerprintConfig() { try { @@ -294,7 +253,6 @@ function updateFontSize(newSize) { document.addEventListener('DOMContentLoaded', async () => { checkMMRL(); loadVersionFromModuleProp(); - loadSpoofVendingSdkConfig(); loadPreviewFingerprintConfig(); applyButtonEventListeners(); applyRippleEffect();