-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
王元_Trump
committed
Sep 18, 2023
1 parent
a6e6d94
commit f2d4d33
Showing
13 changed files
with
311 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,17 @@ | |
|
||
## todo | ||
|
||
* ... | ||
* ... | ||
|
||
|
||
|
||
### 更新历史 | ||
|
||
#### 微博版本 | ||
|
||
v1.1 | ||
新增兼容-微博轻享版6.2.6 | ||
|
||
v1.0 | ||
支持-微博轻享版6.1.7 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,13 @@ | |
import android.os.Looper; | ||
import android.util.Log; | ||
import android.widget.Toast; | ||
|
||
import com.trump.myxposed.util.Utils; | ||
|
||
import java.util.Map; | ||
|
||
import de.robv.android.xposed.XC_MethodHook; | ||
import de.robv.android.xposed.XposedHelpers; | ||
import de.robv.android.xposed.callbacks.XC_LoadPackage; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* @author: wangpan | ||
* @emial: [email protected] | ||
|
@@ -39,17 +37,19 @@ protected void beforeHookedMethod(MethodHookParam param) { | |
if (Utils.getProcessName(application).equals(packageName)) { | ||
onMainApplicationCreate(application, classLoader); | ||
} | ||
onHandleLoadPackage(classLoader, lpparam); | ||
String verionName = Utils.getPackageVersionNameInXp(packageName); | ||
onHandleLoadPackage(verionName, classLoader, lpparam); | ||
} | ||
} | ||
); | ||
} catch (Throwable t) { | ||
} | ||
catch (Throwable t) { | ||
t.printStackTrace(); | ||
log("callApplicationCreate e " + t.getMessage()); | ||
} | ||
} | ||
|
||
abstract void onHandleLoadPackage(ClassLoader classLoader, XC_LoadPackage.LoadPackageParam lpparam); | ||
abstract void onHandleLoadPackage(String versionName, ClassLoader classLoader, XC_LoadPackage.LoadPackageParam lpparam); | ||
|
||
protected void onApplicationCreate(Application application, ClassLoader classLoader) { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
app/src/main/java/com/trump/myxposed/hook/MiuiPersonalAssistantHook.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.trump.myxposed.hook; | ||
|
||
import de.robv.android.xposed.callbacks.XC_LoadPackage; | ||
|
||
public class MiuiPersonalAssistantHook extends AbsHook { | ||
|
||
@Override | ||
void onHandleLoadPackage(String versionName, ClassLoader classLoader, XC_LoadPackage.LoadPackageParam lpparam) { | ||
log("MiuiPersonalAssistantHook hook start"); | ||
|
||
// final Class<?> clazz = XposedHelpers.findClass("c.h.d.p.s", classLoader); | ||
// XposedHelpers.setStaticBooleanField(clazz, "h", true); | ||
|
||
// XposedHelpers.findAndHookMethod("c.h.d.f.g.b", classLoader, "b", new XC_MethodHook() { | ||
// @Override | ||
// protected void beforeHookedMethod(MethodHookParam param) throws Throwable { | ||
// super.beforeHookedMethod(param); | ||
// param.setResult(true); | ||
// } | ||
// }); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.