├── .gitignore
├── .idea
├── .gitignore
├── compiler.xml
├── gradle.xml
├── jarRepositories.xml
├── misc.xml
├── render.experimental.xml
└── vcs.xml
├── README.md
├── app
├── .gitignore
├── build.gradle
├── libs
│ └── XposedBridge89api.jar
├── proguard-rules.pro
├── release
│ └── output-metadata.json
└── src
│ ├── androidTest
│ └── java
│ │ └── com
│ │ └── iyue
│ │ └── jxtrace
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── assets
│ │ └── xposed_init
│ ├── cpp
│ │ ├── CMakeLists.txt
│ │ └── native-lib.cpp
│ ├── icon-playstore.png
│ ├── java
│ │ └── com
│ │ │ └── iyue
│ │ │ └── jxtrace
│ │ │ ├── MainActivity.java
│ │ │ └── MainHook.java
│ └── res
│ │ ├── drawable-v24
│ │ └── ic_launcher_foreground.xml
│ │ ├── drawable
│ │ ├── ic_launcher_background.xml
│ │ ├── icon_background.xml
│ │ └── ison.png
│ │ ├── layout
│ │ └── activity_main.xml
│ │ ├── mipmap-anydpi-v26
│ │ ├── ic_launcher.xml
│ │ ├── ic_launcher_round.xml
│ │ ├── icon.xml
│ │ └── icon_round.xml
│ │ ├── mipmap-hdpi
│ │ ├── ic_launcher.webp
│ │ ├── ic_launcher_round.webp
│ │ ├── icon.png
│ │ ├── icon_foreground.png
│ │ └── icon_round.png
│ │ ├── mipmap-mdpi
│ │ ├── ic_launcher.webp
│ │ ├── ic_launcher_round.webp
│ │ ├── icon.png
│ │ ├── icon_foreground.png
│ │ └── icon_round.png
│ │ ├── mipmap-xhdpi
│ │ ├── ic_launcher.webp
│ │ ├── ic_launcher_round.webp
│ │ ├── icon.png
│ │ ├── icon_foreground.png
│ │ └── icon_round.png
│ │ ├── mipmap-xxhdpi
│ │ ├── ic_launcher.webp
│ │ ├── ic_launcher_round.webp
│ │ ├── icon.png
│ │ ├── icon_foreground.png
│ │ └── icon_round.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── ic_launcher.webp
│ │ ├── ic_launcher_round.webp
│ │ ├── icon.png
│ │ ├── icon_foreground.png
│ │ └── icon_round.png
│ │ ├── values-night
│ │ └── themes.xml
│ │ ├── values
│ │ ├── colors.xml
│ │ ├── strings.xml
│ │ └── themes.xml
│ │ └── xml
│ │ ├── backup_rules.xml
│ │ └── data_extraction_rules.xml
│ └── test
│ └── java
│ └── com
│ └── iyue
│ └── jxtrace
│ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 | local.properties
16 |
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
--------------------------------------------------------------------------------
/.idea/jarRepositories.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.idea/render.experimental.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # jxtrace
2 | 1. 对不加壳的app java所有Api进行hook 获取参数返回值等.
3 | 2. 部分加壳app hook不到 可针对性修改.
4 |
5 | # 使用方法
6 |
7 | 1. `adb logcat | grep iyue_HookMain`
8 | 2. 可在源码搜索 `android.os.Debug` 过滤不需要的类名 或执行下面的指令 添加只需要hook的类 比如com等前缀
9 | 3. `adb shell "echo classname > /data/local/tmp/hookPackage"`
10 | # 预计新增
11 | 1. 重新实现查找类或增加反射调用加载的类方法.
12 |
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | plugins {
2 | id 'com.android.application'
3 | }
4 |
5 | android {
6 | namespace 'com.iyue.jxtrace'
7 | compileSdk 32
8 |
9 | defaultConfig {
10 | applicationId "com.iyue.jxtrace"
11 | minSdk 21
12 | targetSdk 32
13 | versionCode 1
14 | versionName "1.0"
15 |
16 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17 | }
18 |
19 | buildTypes {
20 | release {
21 | minifyEnabled false
22 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23 | }
24 | }
25 | compileOptions {
26 | sourceCompatibility JavaVersion.VERSION_1_8
27 | targetCompatibility JavaVersion.VERSION_1_8
28 | }
29 | externalNativeBuild {
30 | cmake {
31 | path file('src/main/cpp/CMakeLists.txt')
32 | version '3.18.1'
33 | }
34 | }
35 | buildFeatures {
36 | viewBinding true
37 | }
38 | }
39 |
40 | dependencies {
41 | compileOnly files('libs/XposedBridge89api.jar')
42 | // compileOnly 'de.robv.android.xposed:api:82'
43 | // compileOnly 'de.robv.android.xposed:api:82:sources'
44 | implementation 'androidx.appcompat:appcompat:1.4.1'
45 | implementation 'com.google.android.material:material:1.5.0'
46 | implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
47 | testImplementation 'junit:junit:4.13.2'
48 | androidTestImplementation 'androidx.test.ext:junit:1.1.3'
49 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
50 | }
--------------------------------------------------------------------------------
/app/libs/XposedBridge89api.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/libs/XposedBridge89api.jar
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
--------------------------------------------------------------------------------
/app/release/output-metadata.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 3,
3 | "artifactType": {
4 | "type": "APK",
5 | "kind": "Directory"
6 | },
7 | "applicationId": "com.iyue.jxtrace",
8 | "variantName": "release",
9 | "elements": [
10 | {
11 | "type": "SINGLE",
12 | "filters": [],
13 | "attributes": [],
14 | "versionCode": 1,
15 | "versionName": "1.0",
16 | "outputFile": "app-release.apk"
17 | }
18 | ],
19 | "elementType": "File"
20 | }
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/iyue/jxtrace/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.iyue.jxtrace;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 | assertEquals("com.iyue.jxtrace", appContext.getPackageName());
25 | }
26 | }
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
15 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/app/src/main/assets/xposed_init:
--------------------------------------------------------------------------------
1 | com.iyue.jxtrace.MainHook
--------------------------------------------------------------------------------
/app/src/main/cpp/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # For more information about using CMake with Android Studio, read the
2 | # documentation: https://d.android.com/studio/projects/add-native-code.html
3 |
4 | # Sets the minimum version of CMake required to build the native library.
5 |
6 | cmake_minimum_required(VERSION 3.18.1)
7 |
8 | # Declares and names the project.
9 |
10 | project("jxtrace")
11 |
12 | # Creates and names a library, sets it as either STATIC
13 | # or SHARED, and provides the relative paths to its source code.
14 | # You can define multiple libraries, and CMake builds them for you.
15 | # Gradle automatically packages shared libraries with your APK.
16 |
17 | add_library( # Sets the name of the library.
18 | jxtrace
19 |
20 | # Sets the library as a shared library.
21 | SHARED
22 |
23 | # Provides a relative path to your source file(s).
24 | native-lib.cpp)
25 |
26 | # Searches for a specified prebuilt library and stores the path as a
27 | # variable. Because CMake includes system libraries in the search path by
28 | # default, you only need to specify the name of the public NDK library
29 | # you want to add. CMake verifies that the library exists before
30 | # completing its build.
31 |
32 | find_library( # Sets the name of the path variable.
33 | log-lib
34 |
35 | # Specifies the name of the NDK library that
36 | # you want CMake to locate.
37 | log)
38 |
39 | # Specifies libraries CMake should link to your target library. You
40 | # can link multiple libraries, such as libraries you define in this
41 | # build script, prebuilt third-party libraries, or system libraries.
42 |
43 | target_link_libraries( # Specifies the target library.
44 | jxtrace
45 |
46 | # Links the target library to the log library
47 | # included in the NDK.
48 | ${log-lib})
--------------------------------------------------------------------------------
/app/src/main/cpp/native-lib.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 |
4 | extern "C" JNIEXPORT jstring JNICALL
5 | Java_com_iyue_jxtrace_MainActivity_stringFromJNI(
6 | JNIEnv* env,
7 | jobject /* this */) {
8 | std::string hello = "Hello from C++";
9 | return env->NewStringUTF(hello.c_str());
10 | }
--------------------------------------------------------------------------------
/app/src/main/icon-playstore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/icon-playstore.png
--------------------------------------------------------------------------------
/app/src/main/java/com/iyue/jxtrace/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.iyue.jxtrace;
2 |
3 | import androidx.appcompat.app.AppCompatActivity;
4 | import android.os.Bundle;
5 |
6 |
7 | public class MainActivity extends AppCompatActivity {
8 |
9 | // Used to load the 'jxtrace' library on application startup.
10 | static {
11 | System.loadLibrary("jxtrace");
12 | }
13 |
14 | private String TAG = "iyue-> MainActivity: " ;
15 |
16 | @Override
17 | protected void onCreate(Bundle savedInstanceState) {
18 | super.onCreate(savedInstanceState);
19 | setContentView(R.layout.activity_main);
20 |
21 | }
22 |
23 |
24 |
25 | /**
26 | * A native method that is implemented by the 'jxtrace' native library,
27 | * which is packaged with this application. 未使用
28 | */
29 | public native String stringFromJNI();
30 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/iyue/jxtrace/MainHook.java:
--------------------------------------------------------------------------------
1 | package com.iyue.jxtrace;
2 |
3 | import android.app.Activity;
4 | import android.content.Context;
5 | import android.content.Intent;
6 |
7 | import java.io.BufferedReader;
8 | import java.io.FileInputStream;
9 | import java.io.FileNotFoundException;
10 | import java.io.IOException;
11 | import java.io.InputStreamReader;
12 | import java.lang.reflect.Method;
13 | import java.lang.reflect.Modifier;
14 | import java.util.HashSet;
15 | import java.util.Set;
16 | import de.robv.android.xposed.IXposedHookLoadPackage;
17 | import de.robv.android.xposed.XC_MethodHook;
18 | import de.robv.android.xposed.XposedBridge;
19 | import de.robv.android.xposed.XposedHelpers;
20 | import de.robv.android.xposed.callbacks.XC_LoadPackage;
21 | import de.robv.android.xposed.callbacks.XCallback;
22 |
23 | public class MainHook implements IXposedHookLoadPackage {
24 | private static String TAG = "iyue_HookMain-> ";
25 | private Context MainActivityContext;
26 | // 保存所有查找到的ClassLoader
27 | private Set classLoaders = new HashSet<>();
28 | private Set classNames = new HashSet<>();
29 | private String className = "";
30 |
31 | @Override
32 | public void handleLoadPackage(XC_LoadPackage.LoadPackageParam loadPackageParam) throws Throwable {
33 | if(loadPackageParam.packageName.equals("com.iyue.jxtrace")){
34 | return ;
35 | }
36 | XposedBridge.log(TAG + " hookPackageName==" + loadPackageParam.packageName);
37 | // if (loadPackageParam.packageName.equals(hookPackageName)) {
38 | //getMainActivityContext(loadPackageParam);
39 | className = getHookClassName();
40 | findClassLoader(loadPackageParam.classLoader);
41 | hookAll(loadPackageParam);
42 | // }
43 | }
44 |
45 | private void findClassLoader(ClassLoader loader) {
46 | XposedBridge.log(TAG+"start hook ActivityThread: performLaunchActivity");
47 | Class ActivityClientRecord = XposedHelpers.findClass("android.app.ActivityThread$ActivityClientRecord",loader);
48 | XposedHelpers.findAndHookMethod("android.app.ActivityThread", loader, "performLaunchActivity", ActivityClientRecord, Intent.class, new XC_MethodHook() {
49 | @Override
50 | public int compareTo(XCallback o) {
51 | return 0;
52 | }
53 |
54 | @Override
55 | protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
56 | super.beforeHookedMethod(param);
57 | XposedBridge.log(TAG+"ActivityThread: performLaunchActivity");
58 | }
59 | });
60 | }
61 |
62 | /**
63 | * 获取上下文 正常APP的上下文
64 | */
65 | private void getMainActivityContext(XC_LoadPackage.LoadPackageParam loadPackageParam) {
66 |
67 | XposedHelpers.findAndHookMethod("android.app.Instrumentation", loadPackageParam.classLoader, "prePerformCreate", Activity.class, new XC_MethodHook() {
68 | @Override
69 | public int compareTo(XCallback o) {
70 | return 0;
71 | }
72 |
73 | @Override
74 | protected void afterHookedMethod(MethodHookParam param) throws Throwable {
75 | super.afterHookedMethod(param);
76 | XposedBridge.log(TAG + " end hook MainActivity");
77 | MainActivityContext = (Context) param.args[0];
78 | XposedBridge.log(TAG +"MainActivityContext:"+MainActivityContext.getClassLoader().toString());
79 | // 加壳app 可分析获取壳初始化后的ClassLoader
80 | }
81 | });
82 | }
83 |
84 | /**
85 | * @return 获取 jtrace 需要过滤的类名信息
86 | */
87 | private static String getHookClassName(){
88 | try {
89 | FileInputStream fileInputStream = new FileInputStream("/data/local/tmp/hookPackage");
90 | BufferedReader bufferedReader =new BufferedReader(new InputStreamReader(fileInputStream));
91 | String s = bufferedReader.readLine();
92 | XposedBridge.log(TAG+"we need hook:"+s+"*");
93 | bufferedReader.close();
94 | fileInputStream.close();
95 | return s;
96 | } catch (FileNotFoundException e) {
97 | XposedBridge.log(TAG+"getHookCLassName fail:"+e.getMessage());
98 | XposedBridge.log(TAG+"echo \"class name\" > /data/local/tmp/hookPackage");
99 | } catch (IOException e) {
100 | e.printStackTrace();
101 | }
102 | return "";
103 | }
104 |
105 | /**
106 | * // 获取所有ClassLoader
107 | *
108 | * @param loadPackageParam
109 | */
110 | private void hookAll(XC_LoadPackage.LoadPackageParam loadPackageParam) {
111 | /**
112 | * dalvik.system.PathClassLoader
113 | * java.lang.BootClassLoader
114 | */
115 |
116 | try {
117 | ClassLoader classLoader = loadPackageParam.classLoader;
118 | classLoaders.add(classLoader);
119 | XposedBridge.log(TAG + classLoader.toString());
120 | ClassLoader parent = classLoader.getParent();
121 | while (parent != null) {
122 |
123 | if (parent.getClass().getName().contains("java.lang.BootClassLoader")) {
124 | XposedBridge.log(TAG + "hookAll: find ClassLoader break");
125 | break;
126 | }
127 | XposedBridge.log(TAG + parent.toString());
128 | classLoaders.add(parent);
129 | parent = parent.getParent();
130 | }
131 |
132 | for (ClassLoader loader : classLoaders) {
133 | hookALLClass(loader);
134 | }
135 | XposedBridge.log(TAG + "hookALLClass end!");
136 | } catch (Exception e) {
137 | e.printStackTrace();
138 | }
139 |
140 | }
141 |
142 | /**
143 | * @param classLoader 根据ClassLoader 查找所有类
144 | */
145 | private void hookALLClass(ClassLoader classLoader) {
146 | //XposedBridge.log(TAG + "hookALLClass():ClassLoader:"+classLoader.toString());
147 | XposedHelpers.findAndHookMethod("java.lang.ClassLoader", classLoader, "loadClass", String.class, new XC_MethodHook() {
148 | @Override
149 | public int compareTo(XCallback o) {
150 | return 0;
151 | }
152 |
153 | @Override
154 | protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
155 | super.beforeHookedMethod(param);
156 | XposedBridge.log(TAG + "-loadClass className:" + param.args[0]);
157 | }
158 |
159 | @Override
160 | protected void afterHookedMethod(MethodHookParam param) throws Throwable {
161 | super.afterHookedMethod(param);
162 | Class aClass = (Class) param.getResult();
163 | String strClassName;
164 | Method[] declaredMethods= null;
165 | try{
166 | strClassName= aClass.toString();
167 | if (classNames.contains(strClassName)){
168 | XposedBridge.log(TAG +"-class size:"+classNames.size());
169 | return ;
170 | }
171 | classNames.add(strClassName);
172 | }catch(Exception e){
173 | XposedBridge.log(TAG +"-Class.toString fail:"+aClass);
174 | return;
175 | }
176 | // if(strClassName.contains("android.os.Debug")){
177 | // // 过滤不需要hook的类名 或前缀
178 | // return ;
179 | // }
180 | // // 二选一即可
181 |
182 | if (!className.equals("")){
183 | // 过滤需要hook的类名 或前缀
184 | if(!strClassName.contains(className)){
185 | return ;
186 | }
187 | }
188 |
189 | XposedBridge.log(TAG+"hookALLClass : "+strClassName);
190 | try{
191 | declaredMethods= aClass.getDeclaredMethods();
192 | }catch (Exception e){
193 | XposedBridge.log(TAG + "Class:"+aClass+"getDeclaredMethods fail: "+e.getMessage());
194 | return ;
195 | }
196 | for (Method method : declaredMethods) {
197 | //XposedBridge.log(TAG + "hook method: "+ strClassName +" : "+ method.getName());
198 | int modifiers = method.getModifiers();
199 | if (!Modifier.isAbstract(modifiers) && !Modifier.isInterface(modifiers)) {
200 | String finalStrClassName = strClassName;
201 | XposedBridge.hookMethod(method, new XC_MethodHook() {
202 | @Override
203 | public int compareTo(XCallback o) {
204 | return 0;
205 | }
206 |
207 | @Override
208 | protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
209 | super.beforeHookedMethod(param);
210 | String str = new String();
211 | int length = param.args.length;
212 | Class>[] parameterTypes = method.getParameterTypes();
213 | for (int i = 0; i < length; ++i) {
214 | Object s;
215 | try {
216 | s = parameterTypes[i].cast(param.args[i]).toString();
217 | } catch (Exception e) {
218 | s = param.args[i];
219 | }
220 | str += " " + parameterTypes[i] + " " + s;
221 | }
222 | XposedBridge.log(TAG +" class: "+ finalStrClassName + " call " + method.getName() + "(" + str + ")");
223 | }
224 | @Override
225 | protected void afterHookedMethod(MethodHookParam param) throws Throwable {
226 | super.afterHookedMethod(param);
227 | XposedBridge.log(TAG + " call " + method.getName() + " --> result: "+ param.getResult());
228 | }
229 | });
230 | }
231 | }
232 | }
233 | });
234 | }
235 |
236 | }
237 |
238 |
239 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
15 |
18 |
21 |
22 |
23 |
24 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/icon_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
12 |
14 |
16 |
18 |
20 |
22 |
24 |
26 |
28 |
30 |
32 |
34 |
36 |
38 |
40 |
42 |
44 |
46 |
48 |
50 |
52 |
54 |
56 |
58 |
60 |
62 |
64 |
66 |
68 |
70 |
72 |
74 |
75 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ison.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/drawable/ison.png
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/icon_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-hdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-hdpi/icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/icon_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-hdpi/icon_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/icon_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-hdpi/icon_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-mdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-mdpi/icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/icon_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-mdpi/icon_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/icon_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-mdpi/icon_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xhdpi/icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/icon_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xhdpi/icon_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/icon_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xhdpi/icon_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxhdpi/icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/icon_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxhdpi/icon_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/icon_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxhdpi/icon_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/icon_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxxhdpi/icon_foreground.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/icon_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/app/src/main/res/mipmap-xxxhdpi/icon_round.png
--------------------------------------------------------------------------------
/app/src/main/res/values-night/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFBB86FC
4 | #FF6200EE
5 | #FF3700B3
6 | #FF03DAC5
7 | #FF018786
8 | #FF000000
9 | #FFFFFFFF
10 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | jxtrace
3 |
--------------------------------------------------------------------------------
/app/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
16 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/backup_rules.xml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
--------------------------------------------------------------------------------
/app/src/main/res/xml/data_extraction_rules.xml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |
16 |
--------------------------------------------------------------------------------
/app/src/test/java/com/iyue/jxtrace/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.iyue.jxtrace;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 | plugins {
3 | id 'com.android.application' version '7.3.1' apply false
4 | id 'com.android.library' version '7.3.1' apply false
5 | }
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Enables namespacing of each library's R class so that its R class includes only the
19 | # resources declared in the library itself and none from the library's dependencies,
20 | # thereby reducing the size of the R class for that library
21 | android.nonTransitiveRClass=true
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ys1231/jxtrace/e85d32a32a850cb7cb30fa51bb20c3a04893b567/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Sat Nov 26 21:01:04 CST 2022
2 | distributionBase=GRADLE_USER_HOME
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
4 | distributionPath=wrapper/dists
5 | zipStorePath=wrapper/dists
6 | zipStoreBase=GRADLE_USER_HOME
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 |
86 | # Determine the Java command to use to start the JVM.
87 | if [ -n "$JAVA_HOME" ] ; then
88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89 | # IBM's JDK on AIX uses strange locations for the executables
90 | JAVACMD="$JAVA_HOME/jre/sh/java"
91 | else
92 | JAVACMD="$JAVA_HOME/bin/java"
93 | fi
94 | if [ ! -x "$JAVACMD" ] ; then
95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96 |
97 | Please set the JAVA_HOME variable in your environment to match the
98 | location of your Java installation."
99 | fi
100 | else
101 | JAVACMD="java"
102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103 |
104 | Please set the JAVA_HOME variable in your environment to match the
105 | location of your Java installation."
106 | fi
107 |
108 | # Increase the maximum file descriptors if we can.
109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110 | MAX_FD_LIMIT=`ulimit -H -n`
111 | if [ $? -eq 0 ] ; then
112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113 | MAX_FD="$MAX_FD_LIMIT"
114 | fi
115 | ulimit -n $MAX_FD
116 | if [ $? -ne 0 ] ; then
117 | warn "Could not set maximum file descriptor limit: $MAX_FD"
118 | fi
119 | else
120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121 | fi
122 | fi
123 |
124 | # For Darwin, add options to specify how the application appears in the dock
125 | if $darwin; then
126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127 | fi
128 |
129 | # For Cygwin or MSYS, switch paths to Windows format before running java
130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133 |
134 | JAVACMD=`cygpath --unix "$JAVACMD"`
135 |
136 | # We build the pattern for arguments to be converted via cygpath
137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138 | SEP=""
139 | for dir in $ROOTDIRSRAW ; do
140 | ROOTDIRS="$ROOTDIRS$SEP$dir"
141 | SEP="|"
142 | done
143 | OURCYGPATTERN="(^($ROOTDIRS))"
144 | # Add a user-defined pattern to the cygpath arguments
145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147 | fi
148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
149 | i=0
150 | for arg in "$@" ; do
151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153 |
154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156 | else
157 | eval `echo args$i`="\"$arg\""
158 | fi
159 | i=`expr $i + 1`
160 | done
161 | case $i in
162 | 0) set -- ;;
163 | 1) set -- "$args0" ;;
164 | 2) set -- "$args0" "$args1" ;;
165 | 3) set -- "$args0" "$args1" "$args2" ;;
166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172 | esac
173 | fi
174 |
175 | # Escape application args
176 | save () {
177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178 | echo " "
179 | }
180 | APP_ARGS=`save "$@"`
181 |
182 | # Collect all arguments for the java command, following the shell quoting and substitution rules
183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184 |
185 | exec "$JAVACMD" "$@"
186 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem https://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto execute
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto execute
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | repositories {
3 | gradlePluginPortal()
4 | google()
5 | mavenCentral()
6 | }
7 | }
8 | dependencyResolutionManagement {
9 | repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
10 | repositories {
11 | google()
12 | mavenCentral()
13 | }
14 | }
15 | rootProject.name = "jxtrace"
16 | include ':app'
17 |
--------------------------------------------------------------------------------