Skip to content

Commit

Permalink
更新工具版本至 v.1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
HChenX committed Nov 7, 2024
1 parent 1fac949 commit 9a87c88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/hchen/hooktool/tool/CoreTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static boolean existsMethod(String clazz, ClassLoader classLoader, String
}

public static boolean existsMethod(Class<?> clazz, ClassLoader classLoader, String name, Object... objs) {
return existsMethod(clazz, name, arrayToClass(objs, classLoader));
return existsMethod(clazz, name, arrayToClass(classLoader, objs));
}

public static boolean existsMethod(Class<?> clazz, String name, Class<?>... classes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static Context getContextNoLog(@Duration int flag) {
* handler = new Handler();
* ContextTool.getAsyncContext(new IContextGetter() {
* @Override
* public void tyrToFindContext(Context context) {
* public void tryToFindContext(Context context) {
* handler.post(new Runnable() {
* @Override
* public void run() {
Expand Down Expand Up @@ -159,12 +159,7 @@ private static Context android(Class<?> clz) {
}
return context;
}

/**
* 线程池
*
* @author 焕晨HChen
*/

private static class ThreadPool {
private static final int NUM_THREADS = 5; // 定义线程池中线程的数量
private static volatile ExecutorService executor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ public static List<AppData> getPackagesByCode(Context context, IPackageInfoGette
return appDataList;
}
PackageManager packageManager = context.getPackageManager();
List<Parcelable> packageCodeList = iCode.packageInfoGetter(packageManager);
if (packageCodeList != null) {
for (Parcelable get : packageCodeList) {
List<Parcelable> parcelables = iCode.packageInfoGetter(packageManager);
if (parcelables != null) {
for (Parcelable parcelable : parcelables) {
try {
appDataList.add(addAppData(get, packageManager));
appDataList.add(addAppData(parcelable, packageManager));
} catch (Throwable e) {
AndroidLog.logE(getTag(), e);
}
Expand Down

0 comments on commit 9a87c88

Please sign in to comment.