Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Xiaomi HyperOS 3 or 4 将是本项目的一个终点,就目前来说,小米
| 小米相册-编辑 | com.miui.mediaeditor |
| 小米云服务 | com.miui.cloudservice |
| 小米智能卡 | com.miui.tsmclient |
| 小米钱包 | com.mipay.wallet |
| 讯飞输入法小米版 | com.iflytek.inputmethod.miui |
| 应用包管理组件 | com.miui.packageinstaller |
| 应用商店 | com.xiaomi.market |
Expand Down
1 change: 1 addition & 0 deletions README_en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ In the future, this module will be extensively adapted to Xiaomi HyperOS 3.0 and
| Gallery Editor | com.miui.mediaeditor |
| Xiaomi Cloud | com.miui.cloudservice |
| Smart cards | com.miui.tsmclient |
| Mi Wallet | com.mipay.wallet |
| iFlytek IME for MIUI | com.iflytek.inputmethod.miui |
| Package installer | com.miui.packageinstaller |
| GetApps | com.xiaomi.market |
Expand Down
1 change: 1 addition & 0 deletions README_zh-HK.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Xiaomi HyperOS 3 或 4 將會是本項目的終點,就目前來說,小米官
| 小米相簿-編輯 | com.miui.mediaeditor |
| 小米雲服務 | com.miui.cloudservice |
| 小米智慧卡 | com.miui.tsmclient |
| 小米錢包 | com.mipay.wallet |
| 訊飛輸入法小米版 | com.iflytek.inputmethod.miui |
| 應用程式檔案管理元件 | com.miui.packageinstaller |
| 應用商店 | com.xiaomi.market |
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/res/xml/prefs_about_contributor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,13 @@
android:action="android.intent.action.VIEW"
android:data="https://github.com/pzcn" />
</Preference>
<Preference
android:summary="GitHub@uarix"
android:title="Quarix">
<intent
android:action="android.intent.action.VIEW"
android:data="https://github.com/uarix" />
</Preference>
<Preference
android:summary="GitHub@qdsp6sw"
android:title="qdsp6sw">
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/res/xml/settings_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,13 @@
android:title="@string/tsmclient"
app:inflatedXml="@xml/tsmclient"/>

<header
android:icon="@drawable/ic_default"
android:id="@+id/wallet"
android:summary="com.mipay.wallet"
android:title="@string/wallet"
app:inflatedXml="@xml/wallet"/>

<header
android:icon="@drawable/ic_default"
android:id="@+id/voicetrigger"
Expand Down
29 changes: 29 additions & 0 deletions library/core/src/main/res/xml/wallet.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ 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 <https://www.gnu.org/licenses/>.
~
~ Copyright (C) 2023-2026 HyperCeiler Contributions
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:myLocation="@string/wallet"
app:quick_restart="com.mipay.wallet">
<SwitchPreference
android:title="@string/wallet_disable_splash_ad"
android:summary="@string/wallet_disable_splash_ad_desc"
android:key="prefs_key_wallet_disable_splash_ad"
android:defaultValue="false" />

</PreferenceScreen>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* 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 <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2023-2026 HyperCeiler Contributions
*/

package com.sevtinge.hyperceiler.libhook.app;

import com.hchen.database.HookBase;
import com.sevtinge.hyperceiler.common.utils.PrefsBridge;
import com.sevtinge.hyperceiler.libhook.base.BaseLoad;
import com.sevtinge.hyperceiler.libhook.rules.wallet.DisableSplashAd;

@HookBase(targetPackage = "com.mipay.wallet")
public class Wallet extends BaseLoad {
@Override
public void onPackageLoaded() {
initHook(new DisableSplashAd(), PrefsBridge.getBoolean("wallet_disable_splash_ad"));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* 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 <https://www.gnu.org/licenses/>.
*
* Copyright (C) 2023-2026 HyperCeiler Contributions
*/

package com.sevtinge.hyperceiler.libhook.rules.wallet;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.View;

import com.sevtinge.hyperceiler.libhook.base.BaseHook;
import com.sevtinge.hyperceiler.libhook.callback.IMethodHook;

import java.lang.reflect.Method;

import io.github.kyuubiran.ezxhelper.xposed.common.HookParam;

public class DisableSplashAd extends BaseHook {
@Override
public void init() {
findAndHookMethod("com.xiaomi.jr.app.MiFinanceActivity", "onCreate", Bundle.class, new IMethodHook() {
@Override
public void after(HookParam param) {
Activity activity = (Activity) param.getThisObject();
int resId = activity.getResources().getIdentifier("splash_container", "id", activity.getPackageName());
if (resId > 0) {
View splashContainer = activity.findViewById(resId);
if (splashContainer != null) {
splashContainer.setVisibility(View.GONE);
}
}
}
});

Class<?> adManagerClass = findClassIfExists("com.xiaomi.jr.ad.AdManager");
if (adManagerClass != null) {
for (Method m : adManagerClass.getDeclaredMethods()) {
if (m.getParameterTypes().length == 2
&& m.getParameterTypes()[0] == Context.class
&& m.getParameterTypes()[1].getName().contains("OnGetAdDataListener")) {

hookMethod(m, new IMethodHook() {
@Override
public void before(HookParam param) {
Object listener = param.getArgs()[1];
if (listener != null) {
callMethod(listener, "onGetAdData", new Object[]{null});
}
param.setResult(null);
}
});
}
}
}

findAndHookMethod("com.xiaomi.jr.app.splash.SplashFragment", "onResume", new IMethodHook() {
@Override
public void after(HookParam param) {
Object activity = callMethod(param.getThisObject(), "getActivity");
if (activity != null) {
try {
callMethod(activity, "finishSplash", false);
} catch (Throwable ignored) {}
}
}
});
}
}
5 changes: 5 additions & 0 deletions library/libhook/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
<string name="tsmclient_nfc_turning_on">正在自动开启 NFC …</string>
<string name="tsmclient_nfc_turn_on_manually">手动开启 NFC</string>
<string name="tsmclient_nfc_turn_on_failed">自动开启 NFC 失败</string>

<!--小米钱包-->
<string name="wallet">小米钱包</string>
<string name="wallet_disable_splash_ad">移除开屏广告</string>
<string name="wallet_disable_splash_ad_desc">跳过启动页,拦截广告请求</string>
<!--AICR-->
<string name="aicr">小米澎湃 AI 引擎</string>
<string name="aicr_modify_browser_copy">修改复制直达使用的浏览器</string>
Expand Down
5 changes: 5 additions & 0 deletions library/libhook/src/main/res/values-zh-rHK/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
<string name="tsmclient_nfc_turning_on">正在自動開啟 NFC …</string>
<string name="tsmclient_nfc_turn_on_manually">手動開啟 NFC</string>
<string name="tsmclient_nfc_turn_on_failed">自動開啟 NFC 失敗</string>

<!--小米錢包-->
<string name="wallet">小米錢包</string>
<string name="wallet_disable_splash_ad">移除開屏廣告</string>
<string name="wallet_disable_splash_ad_desc">跳過啟動頁,攔截廣告請求</string>
<!--Other-->
<string name="share_center">小米妙享中心</string>
<string name="new_task">多開</string>
Expand Down
5 changes: 5 additions & 0 deletions library/libhook/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
<string name="tsmclient_nfc_turning_on">Turning on NFC automatically…</string>
<string name="tsmclient_nfc_turn_on_manually">Turn on NFC manually</string>
<string name="tsmclient_nfc_turn_on_failed">Failed to enable NFC automatically</string>

<!--Mi Wallet-->
<string name="wallet">Mi Wallet</string>
<string name="wallet_disable_splash_ad">Remove splash ads</string>
<string name="wallet_disable_splash_ad_desc">Skip splash screen and block ad requests</string>
<!--AICR-->
<string name="aicr">Xiaomi AI Engine</string>
<string name="aicr_modify_browser_copy">Change the browser used for direct copy</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ com.android.updater
com.duokan.phone.remotecontroller
com.lbe.security.miui
com.mi.health
com.mipay.wallet
com.milink.service
com.miui.analytics
com.miui.aod
Expand Down
Loading