Skip to content

Commit

Permalink
✒️适配钱迹
Browse files Browse the repository at this point in the history
✒️修复一木记帐
✒️适配nfc tool
✒️适配滴答清单
✒️写了一个半成品ui
✒️开始支持kotlin
”
  • Loading branch information
bingqiu456 committed Nov 16, 2024
1 parent ef8ed2f commit 929cde6
Show file tree
Hide file tree
Showing 26 changed files with 418 additions and 769 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

704 changes: 25 additions & 679 deletions README.md

Large diffs are not rendered by default.

45 changes: 40 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdkVersion 30
buildToolsVersion "30.0.0"

compileSdkVersion 33
buildToolsVersion "33.0.0"
namespace 'me.bingyue.IceCore'

defaultConfig {
applicationId "me.bingyue.IceCore"
minSdkVersion 27
targetSdkVersion 30
targetSdkVersion 33
versionCode 1
versionName "1.2.1"
versionName "1.2.2"
// ndk {
// abiFilters "x86_64","x86","armeabi-v7a","arm64-v8a"
// }
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}

// externalNativeBuild {
Expand All @@ -35,10 +39,37 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.3.2'
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
// ndkVersion '21.1.6352462'
}

dependencies {
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
implementation 'androidx.activity:activity-compose:1.5.1'
implementation platform('androidx.compose:compose-bom:2022.10.00')
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.compose.material3:material3'
implementation platform('androidx.compose:compose-bom:2022.10.00')
implementation platform('androidx.compose:compose-bom:2022.10.00')
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
compileOnly files('libs/XposedBridgeApi-82.jar')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
Expand All @@ -47,4 +78,8 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
compileOnly 'de.robv.android.xposed:api:82'
implementation "androidx.navigation:navigation-fragment-ktx:2.0.0"
implementation "androidx.navigation:navigation-ui-ktx:2.0.0"
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
}
Binary file modified app/release/app-release.apk
Binary file not shown.
10 changes: 6 additions & 4 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"version": 2,
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "me.bingyue.IceCore",
"variantName": "processReleaseResources",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.2.1",
"versionName": "1.2.2",
"outputFile": "app-release.apk"
}
]
],
"elementType": "File"
}
16 changes: 10 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.bingyue.IceCore">

<application
android:allowBackup="true"
android:extractNativeLibs="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:multiArch="true"
android:extractNativeLibs="false"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.冰社">
<activity
android:name=".SettingsActivity"
android:label="@string/app_name">
android:name=".MainActivity"
android:exported="true"
android:label="@string/title_activity_main"
android:theme="@style/Theme.冰社">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<meta-data
android:name="xposedmodule"
android:value="true"/>
android:value="true" />
<meta-data
android:name="xposeddescription"
android:value="一个集成了各种好玩功能的模块,支持获取vip,去除广告,等功能\nAnother: bingyue" />
<meta-data
android:name="xposedminversion"
android:value="54"/>
android:value="54" />
<meta-data
android:name="xposedscope"
android:resource="@array/xposedscope"/>
android:resource="@array/xposedscope" />
</application>

</manifest>
45 changes: 45 additions & 0 deletions app/src/main/java/me/bingyue/IceCore/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package me.bingyue.IceCore

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import me.bingyue.IceCore.ui.theme.冰社Theme

class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
冰社Theme {
// A surface container using the 'background' color from the theme
Surface(color = Color(0x98F5FF00),modifier = Modifier.fillMaxSize()) {
Greeting("")
}
}
}
}
}

@Composable
fun Greeting(name: String, modifier: Modifier = Modifier) {
Text(
text = "本模块ui页面还没写好,勾选app重启后就有vip了",
modifier = modifier
)
}

@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
冰社Theme {
Greeting("Android")
}
}
12 changes: 9 additions & 3 deletions app/src/main/java/me/bingyue/IceCore/MainHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ public class MainHook implements IXposedHookLoadPackage {
"com.dragon.read",
"com.duitang.main",
"com.duapps.recorder",
"com.wangc.bill"
"com.wangc.bill",
"cn.ticktick.task",
"com.geektoy.nfctool",
"com.mutangtech.qianji"
};

public static final String[] app_PackName_Native = {
Expand All @@ -40,17 +43,20 @@ public class MainHook implements IXposedHookLoadPackage {
hook_method_app.put("com.duitang.main", "g");
hook_method_app.put("com.duapps.recorder", "h");
hook_method_app.put("com.wangc.bill", "k");
hook_method_app.put("cn.ticktick.task", "l");
hook_method_app.put("com.geektoy.nfctool", "n");
hook_method_app.put("com.mutangtech.qianji", "m");
}

@Override
public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lpparam) throws Throwable {
if (check_app_package_name(lpparam.packageName)){
hook_core hookInstance = new hook_core();
Class<?> clazz = hookInstance.getClass();
try {
try{
Method method = clazz.getMethod(hook_method_app.get(lpparam.packageName), XC_LoadPackage.LoadPackageParam.class);
method.invoke(hookInstance, lpparam);
} catch (Exception e){
}catch (Exception e4){

}
}
Expand Down
33 changes: 0 additions & 33 deletions app/src/main/java/me/bingyue/IceCore/SettingsActivity.java

This file was deleted.

11 changes: 10 additions & 1 deletion app/src/main/java/me/bingyue/IceCore/hook_core.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import me.bingyue.IceCore.hook_vip.duitang_vip;
import me.bingyue.IceCore.hook_vip.xiaoxiong_vip;
import me.bingyue.IceCore.hook_vip.com_wangc_bill_vip;
import me.bingyue.IceCore.hook_vip.cn_ticktick_task_vip;
import me.bingyue.IceCore.hook_vip.com_geektoy_nfctool_vip;
import me.bingyue.IceCore.hook_vip.qianji_vip;


public class hook_core{
Expand All @@ -35,6 +38,12 @@ public void g(XC_LoadPackage.LoadPackageParam lpparam){

public void h(XC_LoadPackage.LoadPackageParam lpparam) { xiaoxiong_vip.hook_init(lpparam); }

public void k(XC_LoadPackage.LoadPackageParam lpparam) { com_wangc_bill_vip.hook_init(lpparam);}
public void k(XC_LoadPackage.LoadPackageParam lpparam) throws ClassNotFoundException, IllegalAccessException, InstantiationException { com_wangc_bill_vip.hook_init(lpparam); com_wangc_bill_vip.hook_viptype(lpparam);}

public void l(XC_LoadPackage.LoadPackageParam lpparam) {cn_ticktick_task_vip.hook_init(lpparam);}

public void n(XC_LoadPackage.LoadPackageParam lpparam) throws ClassNotFoundException { com_geektoy_nfctool_vip.hook_init(lpparam);}

public void m(XC_LoadPackage.LoadPackageParam lpparam) {qianji_vip.hook_init(lpparam); qianji_vip.hook_account_check_vip(lpparam);}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package me.bingyue.IceCore.hook_vip;

import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedHelpers;
import de.robv.android.xposed.callbacks.XC_LoadPackage;

public class cn_ticktick_task_vip {
public static void hook_init(XC_LoadPackage.LoadPackageParam lpparam){
XposedHelpers.findAndHookMethod(
"com.ticktick.task.data.User",
lpparam.classLoader,
"isPro",
new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
super.beforeHookedMethod(param);
}

@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
super.afterHookedMethod(param);
param.setResult(true);
}
}
);
}
}
Loading

0 comments on commit 929cde6

Please sign in to comment.