From e01bdddb7ad6c9b7b3402d8611ff33ec8d856242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=93=83=E6=9F=92=E6=9F=92?= Date: Sat, 25 Jan 2025 13:25:22 +0800 Subject: [PATCH] =?UTF-8?q?[skp]=20adj:=20=E7=A7=BB=E9=99=A4=20=E7=9B=B8?= =?UTF-8?q?=E5=86=8C-=E8=A7=A3=E9=94=81=20AI=20=E5=86=99=E7=9C=9F=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hyperceiler/module/app/Gallery.java | 2 - .../module/hook/gallery/UnlockAIGallery.kt | 41 ------------------- app/src/main/res/values-ar-rSA/strings.xml | 1 - app/src/main/res/values-es-rES/strings.xml | 1 - app/src/main/res/values-in-rID/strings.xml | 1 - app/src/main/res/values-it-rIT/strings.xml | 1 - app/src/main/res/values-ja-rJP/strings.xml | 1 - app/src/main/res/values-pl-rPL/strings.xml | 1 - app/src/main/res/values-pt-rBR/strings.xml | 1 - app/src/main/res/values-ru-rRU/strings.xml | 1 - app/src/main/res/values-tr-rTR/strings.xml | 1 - app/src/main/res/values-vi-rVN/strings.xml | 1 - app/src/main/res/values-zh-rCN/strings.xml | 1 - app/src/main/res/values-zh-rHK/strings.xml | 1 - app/src/main/res/values-zh-rME/strings.xml | 1 - app/src/main/res/values-zh-rTW/strings.xml | 1 - app/src/main/res/values/strings.xml | 1 - app/src/main/res/xml/gallery.xml | 5 --- 18 files changed, 63 deletions(-) delete mode 100644 app/src/main/java/com/sevtinge/hyperceiler/module/hook/gallery/UnlockAIGallery.kt diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/app/Gallery.java b/app/src/main/java/com/sevtinge/hyperceiler/module/app/Gallery.java index 78cf60862..4c367922c 100644 --- a/app/src/main/java/com/sevtinge/hyperceiler/module/app/Gallery.java +++ b/app/src/main/java/com/sevtinge/hyperceiler/module/app/Gallery.java @@ -32,7 +32,6 @@ import com.sevtinge.hyperceiler.module.hook.gallery.EnableTextYanhua; import com.sevtinge.hyperceiler.module.hook.gallery.EnableVideoPost; import com.sevtinge.hyperceiler.module.hook.gallery.UnPrivacyWatermark; -import com.sevtinge.hyperceiler.module.hook.gallery.UnlockAIGallery; import com.sevtinge.hyperceiler.module.hook.various.UnlockSuperClipboard; @HookBase(targetPackage = "com.miui.gallery") @@ -54,7 +53,6 @@ public void handleLoadPackage() { initHook(new EnableOcr(), mPrefsMap.getBoolean("gallery_enable_ocr")); initHook(new EnableOcrForm(), mPrefsMap.getBoolean("gallery_enable_ocr_form")); initHook(new ChangeBackupServer(), mPrefsMap.getStringAsInt("gallery_backup_server", 0) != 0); - initHook(UnlockAIGallery.INSTANCE, mPrefsMap.getBoolean("gallery_enable_ai_gallery")); initHook(UnlockSuperClipboard.INSTANCE, mPrefsMap.getStringAsInt("various_super_clipboard_e", 0) != 0); } } diff --git a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/gallery/UnlockAIGallery.kt b/app/src/main/java/com/sevtinge/hyperceiler/module/hook/gallery/UnlockAIGallery.kt deleted file mode 100644 index 5ee111b1c..000000000 --- a/app/src/main/java/com/sevtinge/hyperceiler/module/hook/gallery/UnlockAIGallery.kt +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This file is part of HyperCeiler. - - * HyperCeiler 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 . - - * Copyright (C) 2023-2025 HyperCeiler Contributions -*/ -package com.sevtinge.hyperceiler.module.hook.gallery - -import com.github.kyuubiran.ezxhelper.ClassUtils.loadClass -import com.github.kyuubiran.ezxhelper.HookFactory.`-Static`.createHook -import com.github.kyuubiran.ezxhelper.finders.MethodFinder.`-Static`.methodFinder -import com.sevtinge.hyperceiler.module.base.* - -object UnlockAIGallery : BaseHook() { - override fun init() { - // by 聖小熊 - loadClass("com.miui.gallery.ai.utils.AiGalleryUtil\$Companion").methodFinder() - .filterByName("hasUseAccess") - .first().createHook { - returnConstant(true) - } - - loadClass("com.miui.gallery.ai.widget.AiEntranceView").methodFinder() - .filterByName("setVisibility") - .first().createHook { - returnConstant(null) - } - } -} \ No newline at end of file diff --git a/app/src/main/res/values-ar-rSA/strings.xml b/app/src/main/res/values-ar-rSA/strings.xml index 79d60bf74..fd5ac5071 100644 --- a/app/src/main/res/values-ar-rSA/strings.xml +++ b/app/src/main/res/values-ar-rSA/strings.xml @@ -1069,7 +1069,6 @@ فتح إنشاء PDF فتح OCR فتح مسح الجدول - فتح المعرض الذكي فتح صورة الهوية فتح مقطع الفيديو فتح تأثيرات الفيديو diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml index e03f6201f..dca18f8da 100644 --- a/app/src/main/res/values-es-rES/strings.xml +++ b/app/src/main/res/values-es-rES/strings.xml @@ -937,7 +937,6 @@ aplicaciones del sistema Desbloquear la generación de PDF Desbloquear OCR Desbloquear el escaneo de tabla - Desbloquear IA de foto Desbloquear fotos de ID Desbloquear película fotográfica Desbloquear efectos cinematográficos diff --git a/app/src/main/res/values-in-rID/strings.xml b/app/src/main/res/values-in-rID/strings.xml index 091db70e5..b0b7db639 100644 --- a/app/src/main/res/values-in-rID/strings.xml +++ b/app/src/main/res/values-in-rID/strings.xml @@ -863,7 +863,6 @@ Buka kunci menghasilkan PDF Buka kunci OCR Buka kunci tabel pemindaian - Buka kunci foto AI Buka kunci ID Buka Kunci Klip Buka kunci efek Video diff --git a/app/src/main/res/values-it-rIT/strings.xml b/app/src/main/res/values-it-rIT/strings.xml index 53e0f9d6b..7b8d7a61d 100644 --- a/app/src/main/res/values-it-rIT/strings.xml +++ b/app/src/main/res/values-it-rIT/strings.xml @@ -841,7 +841,6 @@ Sblocca genera PDF Sblocca OCR Sblocca tabella di scansione - Sblocca foto AI Sblocca ID Sblocca clip Sblocca effetti video diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index 8318616d6..a0881e332 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -1015,7 +1015,6 @@ PDF の生成をアンロック OCR をアンロック 表のスキャンをアンロック - AI 写真をアンロック ID をアンロック クリップ機能をアンロック ビデオエフェクトをアンロック diff --git a/app/src/main/res/values-pl-rPL/strings.xml b/app/src/main/res/values-pl-rPL/strings.xml index 937b5b206..067fbc45b 100644 --- a/app/src/main/res/values-pl-rPL/strings.xml +++ b/app/src/main/res/values-pl-rPL/strings.xml @@ -1069,7 +1069,6 @@ Odblokuj tworzenie PDF Odblokuj OCR Odblokuj skanowanie tabeli - Odblokuj zdjęcia SI Odblokuj ID Odblokuj klip Odblokuj efekty wideo diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index fadc57d9a..e23c242f5 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -1063,7 +1063,6 @@ Desbloquear Criar PDF Desbloquear Reconhecer texto Desbloquear tabela de digitalização - Desbloquear foto IA Desbloquear Identificação Desbloquear Clipe Desbloquear Efeitos de vídeo diff --git a/app/src/main/res/values-ru-rRU/strings.xml b/app/src/main/res/values-ru-rRU/strings.xml index d904d6203..33328dbc8 100644 --- a/app/src/main/res/values-ru-rRU/strings.xml +++ b/app/src/main/res/values-ru-rRU/strings.xml @@ -1069,7 +1069,6 @@ Создать PDF Распознавание текста Распознавание таблиц - Разблокировать AI-фото Фото ID Ролик из фото Видеоэффекты diff --git a/app/src/main/res/values-tr-rTR/strings.xml b/app/src/main/res/values-tr-rTR/strings.xml index 3e4ab6f3a..ec9ec7d33 100644 --- a/app/src/main/res/values-tr-rTR/strings.xml +++ b/app/src/main/res/values-tr-rTR/strings.xml @@ -868,7 +868,6 @@ PDF oluşturmanın kilidini aç OCR\'nin kilidini aç Tarama tablosunun kilidini aç - AI fotoğraf kilidini aç Kimliğin kilidini aç Klibin kilidini aç Video efektlerinin kilidini aç diff --git a/app/src/main/res/values-vi-rVN/strings.xml b/app/src/main/res/values-vi-rVN/strings.xml index a1e81de45..f7e1cadb9 100644 --- a/app/src/main/res/values-vi-rVN/strings.xml +++ b/app/src/main/res/values-vi-rVN/strings.xml @@ -1075,7 +1075,6 @@ Chức năng này là chức năng thử nghiệm có độ ổn định caoMở khóa tạo PDF Mở khóa OCR Mở khóa quét biểu mẫu - Mở khóa ảnh AI Mở khóa ID Mở khóa Clip Mở khóa Hiệu ứng video diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 10d6635ce..ddf03096c 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -1136,7 +1136,6 @@ 解锁生成 PDF 解锁提取文字 解锁提取表格 - 解锁 AI 写真 解锁证件照 解锁照片电影 解锁视频特效 diff --git a/app/src/main/res/values-zh-rHK/strings.xml b/app/src/main/res/values-zh-rHK/strings.xml index 6d24fcee5..78bc48504 100644 --- a/app/src/main/res/values-zh-rHK/strings.xml +++ b/app/src/main/res/values-zh-rHK/strings.xml @@ -924,7 +924,6 @@ 解鎖生成 PDF 解鎖提取文字 解鎖提取表格 - 解鎖 AI 寫真 解鎖證件照 解鎖照片電影 解鎖影片特效 diff --git a/app/src/main/res/values-zh-rME/strings.xml b/app/src/main/res/values-zh-rME/strings.xml index a31d06a3c..3ee645fcd 100644 --- a/app/src/main/res/values-zh-rME/strings.xml +++ b/app/src/main/res/values-zh-rME/strings.xml @@ -647,7 +647,6 @@ Apiano 店 - AI高清写真 能... 能不能... 再快一点... diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index c600f1110..17a289638 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -1048,7 +1048,6 @@ 解鎖生成 PDF 解鎖提取文字 解鎖提取表格 - 解鎖 AI 寫真 解鎖證件照 解鎖照片電影 解鎖影片特效 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 8596a5575..c90f759f7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1135,7 +1135,6 @@ Unlock Create PDF Unlock OCR Unlock scan table - Unlock AI photo Unlock ID Unlock Clip Unlock Video effects diff --git a/app/src/main/res/xml/gallery.xml b/app/src/main/res/xml/gallery.xml index ad2a6a757..104ea093c 100644 --- a/app/src/main/res/xml/gallery.xml +++ b/app/src/main/res/xml/gallery.xml @@ -53,11 +53,6 @@ - -