Skip to content

Commit

Permalink
1. OAID/AAID
Browse files Browse the repository at this point in the history
2. add code obfuscation
3. fastjson -> gson
  • Loading branch information
1754048656 committed Apr 27, 2024
1 parent 3eed23d commit f047a5e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!-- 震动 -->
<!--<uses-permission android:name="android.permission.VIBRATE" />-->
<uses-permission android:name="android.permission.VIBRATE" />

<!-- 悬浮窗 -->
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public void onOAIDGetComplete(String result) {
Log.i(TAG, "guid: " + _guid);
Log.i(TAG, "supported: " + DeviceID.supportedOAID(context));
Log.i(TAG, "OAID/AAID: " + result);
FATJS_INFO += String.format("\n\npseudoID:\n%s\n\nguid:\n%s\n\nOAID/AAID:\n%s", pseudoID, guid, result);
}
@Override
public void onOAIDGetError(Exception error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public class GlobalVariableHolder {
public static boolean DEV_MODE = false; // FATJS 的开发者模式
public static V8Runtime v8Runtime;
public static final String PATH = "/FATJS_DIR/";
public static final String FATJS_INFO = "\n\n\n\n\n\n\n\n\n\nauthor: 林笙\n\nwx: FATJS_Lin\n\nGitHub: FATJS";
public static String FATJS_INFO = "author: 林笙\n\nwx: FATJS_Lin\n\nGitHub: FATJS";
public static String FATJS_INFO_HOME = "\n\n\n\n\n\n\n\n\n\nauthor: 林笙\n\nwx: FATJS_Lin\n\nGitHub: FATJS";
public static String ANDROID_ID = "";
public static String pseudoID = "";
public static String guid = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.provider.Settings;
Expand Down Expand Up @@ -210,7 +209,6 @@ public void onClick(View view) {
}
});
holder.run_script.setOnClickListener(new View.OnClickListener() {
@RequiresApi(api = Build.VERSION_CODES.O)
@Override
public void onClick(View view) {
if (!name.endsWith(".js")) {
Expand Down Expand Up @@ -318,7 +316,6 @@ private void deleteScript(String name) {
}

private List<Thread> threadList = new ArrayList<>();
@RequiresApi(api = Build.VERSION_CODES.O)
private void runScript(String name) {
String script_path = Environment.getExternalStorageDirectory() + PATH + name;
if (!isAccessibilityServiceOn()){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.linsheng.FATJS.ui.home;

import static com.linsheng.FATJS.config.GlobalVariableHolder.FATJS_INFO;
import static com.linsheng.FATJS.config.GlobalVariableHolder.FATJS_INFO_HOME;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
Expand All @@ -12,7 +12,7 @@ public class HomeViewModel extends ViewModel {

public HomeViewModel() {
mText = new MutableLiveData<>();
mText.setValue(FATJS_INFO);
mText.setValue(FATJS_INFO_HOME);
}

public LiveData<String> getText() {
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/linsheng/FATJS/utils/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class FileUtils {
* @param filePath 文件的路径
* @return
*/
@RequiresApi(api = Build.VERSION_CODES.O)
public static String readFile(String filePath) {
StringBuilder content = new StringBuilder();
try (BufferedReader reader = new BufferedReader(
Expand Down
7 changes: 0 additions & 7 deletions app/src/main/java/com/linsheng/FATJS/utils/VibratorUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
import android.content.Context;
import android.os.Vibrator;

/**
* <b>Package:</b> com.zh.touchassistant <br>
* <b>FileName:</b> VibratorHelper <br>
* <b>Create Date:</b> 2018/12/13 下午6:48 <br>
* <b>Author:</b> zihe <br>
* <b>Description:</b> <br>
*/
public class VibratorUtil {
private VibratorUtil() {
}
Expand Down

0 comments on commit f047a5e

Please sign in to comment.