├── app ├── .gitignore ├── release │ ├── app-release.apk │ └── output.json ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── back.png │ │ │ │ ├── logo.png │ │ │ │ ├── start.png │ │ │ │ ├── stop.png │ │ │ │ ├── setting.png │ │ │ │ ├── user_set.png │ │ │ │ ├── activated.png │ │ │ │ └── not_active.png │ │ │ ├── xml │ │ │ │ └── accessibility_service_config.xml │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── strings.xml │ │ │ │ └── colors.xml │ │ │ ├── layout │ │ │ │ ├── float_static.xml │ │ │ │ ├── activity_user_setting.xml │ │ │ │ └── activity_main.xml │ │ │ └── drawable-xxhdpi │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── nice │ │ │ │ ├── service │ │ │ │ ├── MyService.java │ │ │ │ └── TikTokAccessibilityService.java │ │ │ │ ├── tiktoktool │ │ │ │ ├── FloatingManager.java │ │ │ │ ├── NativeDataManager.java │ │ │ │ ├── FloatingView.java │ │ │ │ ├── UserSettingActivity.java │ │ │ │ └── MainActivity.java │ │ │ │ ├── utils │ │ │ │ ├── ApplicationUtil.java │ │ │ │ ├── JumpPermissionManagement.java │ │ │ │ ├── PerformClickUtils.java │ │ │ │ └── AESUtils.java │ │ │ │ ├── entity │ │ │ │ ├── ActivationCode.java │ │ │ │ └── ViewId.java │ │ │ │ └── config │ │ │ │ └── Config.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── nice │ │ │ └── tiktoktool │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── nice │ │ └── tiktoktool │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── .idea ├── misc.xml ├── gradle.xml └── assetWizardSettings.xml ├── gradle.properties ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /app/release/app-release.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/app/release/app-release.apk -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/app/src/main/res/mipmap-xxhdpi/back.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/app/src/main/res/mipmap-xxhdpi/logo.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/app/src/main/res/mipmap-xxhdpi/start.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/stop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/app/src/main/res/mipmap-xxhdpi/stop.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/app/src/main/res/mipmap-xxhdpi/setting.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/user_set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/app/src/main/res/mipmap-xxhdpi/user_set.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/activated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/app/src/main/res/mipmap-xxhdpi/activated.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/not_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zys58/TikTokTool/HEAD/app/src/main/res/mipmap-xxhdpi/not_active.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches/build_file_checksums.ser 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | .DS_Store 9 | /build 10 | /captures 11 | .externalNativeBuild 12 | -------------------------------------------------------------------------------- /app/release/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sat Nov 24 15:58:26 CST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/xml/accessibility_service_config.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/test/java/com/nice/tiktoktool/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.nice.tiktoktool; 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 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/float_static.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 17 | -------------------------------------------------------------------------------- /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=-Xmx1536m 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 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/nice/tiktoktool/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.nice.tiktoktool; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumented test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.nice.tiktoktool", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /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 22 | #-dontwarn okio.** 23 | #-keep class okio.** { *; } 24 | #-dontwarn com.alibaba.** 25 | #-keep com.alibaba.** { *; } -------------------------------------------------------------------------------- /app/src/main/java/com/nice/service/MyService.java: -------------------------------------------------------------------------------- 1 | package com.nice.service; 2 | 3 | import android.app.Service; 4 | import android.content.Intent; 5 | import android.os.IBinder; 6 | 7 | import com.nice.tiktoktool.FloatingView; 8 | 9 | public class MyService extends Service { 10 | public static final String ACTION = "action"; 11 | public static final String SHOW = "show"; 12 | public static final String HIDE = "hide"; 13 | private FloatingView mFloatingView; 14 | 15 | @Override 16 | public void onCreate() { 17 | super.onCreate(); 18 | mFloatingView = new FloatingView(this); 19 | } 20 | 21 | @Override 22 | public IBinder onBind(Intent intent) { 23 | return null; 24 | } 25 | 26 | @Override 27 | public int onStartCommand(Intent intent, int flags, int startId) { 28 | if (intent != null) { 29 | String action = intent.getStringExtra(ACTION); 30 | if (SHOW.equals(action)) { 31 | mFloatingView.show(); 32 | } else if (HIDE.equals(action)) { 33 | mFloatingView.hide(); 34 | } 35 | } 36 | return super.onStartCommand(intent, flags, startId); 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 日天小坦克 3 | 抖音引流脚本 4 | 开始执行 5 | 打开悬浮窗权限 6 | 打开服务 7 | 服务状态: 8 | 悬浮窗权限状态: 9 | 打开抖音 10 | 关注 11 | 私信 12 | 选择功能: 13 | 私信内容(多条话术用|分开,程序会随机发送): 14 | 取消/关注速度: 15 | 用户设置 16 | 私信速度: 17 | 激活码: 18 | 激活 19 | 返回 20 | 唯一官方群:489611929 21 | 取消关注 22 | 检查更新 23 | http://tt.update.yl888.site 24 | 抖音版本 25 | 26 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 26 5 | defaultConfig { 6 | applicationId "com.nice.tiktoktool" 7 | minSdkVersion 18 8 | targetSdkVersion 26 9 | versionCode 1 10 | versionName "1.0" 11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | implementation fileTree(include: ['*.jar'], dir: 'libs') 23 | implementation 'com.android.support:appcompat-v7:26.1.0' 24 | implementation 'com.android.support.constraint:constraint-layout:1.0.2' 25 | testImplementation 'junit:junit:4.12' 26 | androidTestImplementation 'com.android.support.test:runner:1.0.1' 27 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' 28 | implementation 'com.squareup.okhttp3:okhttp:3.6.0' 29 | implementation 'com.squareup.okio:okio:1.11.0' 30 | implementation 'com.alibaba:fastjson:1.2.53' 31 | implementation 'com.android.support:design:26.1.0' 32 | implementation 'com.android.support:cardview-v7:26.0.0-alpha1' 33 | } 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 6 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 28 | 29 | 30 | 31 | 32 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /app/src/main/java/com/nice/tiktoktool/FloatingManager.java: -------------------------------------------------------------------------------- 1 | package com.nice.tiktoktool; 2 | 3 | import android.content.Context; 4 | import android.view.View; 5 | import android.view.WindowManager; 6 | 7 | /** 8 | * 悬浮窗管理类 9 | */ 10 | public class FloatingManager { 11 | 12 | private WindowManager mWindowManager; 13 | private static FloatingManager mInstance; 14 | private Context mContext; 15 | 16 | public static FloatingManager getInstance(Context context) { 17 | if (mInstance == null) { 18 | mInstance = new FloatingManager(context); 19 | } 20 | return mInstance; 21 | } 22 | 23 | private FloatingManager(Context context) { 24 | mContext = context; 25 | mWindowManager = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE);//获得WindowManager对象 26 | } 27 | 28 | /** 29 | * 添加悬浮窗 30 | * 31 | * @param view 32 | * @param params 33 | * @return 34 | */ 35 | protected boolean addView(View view, WindowManager.LayoutParams params) { 36 | try { 37 | mWindowManager.addView(view, params); 38 | return true; 39 | } catch (Exception e) { 40 | } 41 | return false; 42 | } 43 | 44 | /** 45 | * 移除悬浮窗 46 | * 47 | * @param view 48 | * @return 49 | */ 50 | protected boolean removeView(View view) { 51 | try { 52 | mWindowManager.removeView(view); 53 | return true; 54 | } catch (Exception e) { 55 | } 56 | return false; 57 | } 58 | 59 | /** 60 | * 更新悬浮窗参数 61 | * 62 | * @param view 63 | * @param params 64 | * @return 65 | */ 66 | protected boolean updateView(View view, WindowManager.LayoutParams params) { 67 | try { 68 | mWindowManager.updateViewLayout(view, params); 69 | return true; 70 | } catch (Exception e) { 71 | e.printStackTrace(); 72 | } 73 | return false; 74 | } 75 | } -------------------------------------------------------------------------------- /app/src/main/java/com/nice/tiktoktool/NativeDataManager.java: -------------------------------------------------------------------------------- 1 | package com.nice.tiktoktool; 2 | 3 | import android.content.Context; 4 | import android.content.SharedPreferences; 5 | 6 | 7 | public class NativeDataManager { 8 | 9 | private SharedPreferences mPreference; 10 | 11 | public NativeDataManager(Context context) { 12 | mPreference = context.getSharedPreferences("setting", Context.MODE_PRIVATE); 13 | } 14 | 15 | public Long getAttentionSpeed() { 16 | return mPreference.getLong("attentionSpeed", 8000); 17 | } 18 | 19 | public void setAttentionSpeed(Long speed) { 20 | mPreference.edit().putLong("attentionSpeed", speed).apply(); 21 | } 22 | 23 | public Long getPrivatelySpeed() { 24 | return mPreference.getLong("privatelySpeed", 8000); 25 | } 26 | 27 | public void setPrivatelySpeed(Long privatelySpeed) { 28 | mPreference.edit().putLong("privatelySpeed", privatelySpeed).apply(); 29 | } 30 | 31 | public String getPrivatelyContent() { 32 | return mPreference.getString("privatelyContent", "测试"); 33 | } 34 | 35 | public void setPrivatelyContent(String privatelyContent) { 36 | mPreference.edit().putString("privatelyContent", privatelyContent).apply(); 37 | } 38 | 39 | public String getActivationCode() { 40 | return mPreference.getString("activationCode", ""); 41 | } 42 | 43 | public void setActivationCode(String activationCode) { 44 | mPreference.edit().putString("activationCode", activationCode).apply(); 45 | } 46 | 47 | public String getEndTime() { 48 | return mPreference.getString("endTime", ""); 49 | } 50 | 51 | public void setEndTime(String activationCode) { 52 | mPreference.edit().putString("endTime", activationCode).apply(); 53 | } 54 | 55 | public String getTikTokVersion() { 56 | return mPreference.getString("tikTokVersion", "3.4.0"); 57 | } 58 | 59 | public void setTikTokVersion(String tikTokVersion) { 60 | mPreference.edit().putString("tikTokVersion", tikTokVersion).apply(); 61 | } 62 | } -------------------------------------------------------------------------------- /app/src/main/java/com/nice/utils/ApplicationUtil.java: -------------------------------------------------------------------------------- 1 | package com.nice.utils; 2 | 3 | import android.content.Context; 4 | import android.content.pm.PackageInfo; 5 | import android.content.pm.PackageManager; 6 | 7 | import java.io.File; 8 | import java.io.FileOutputStream; 9 | import java.io.IOException; 10 | import java.io.RandomAccessFile; 11 | import java.util.UUID; 12 | 13 | public class ApplicationUtil { 14 | 15 | private static String sID = null; 16 | private static final String INSTALLATION = "INSTALLATION"; 17 | 18 | public synchronized static String id(Context context) { 19 | if (sID == null) { 20 | File installation = new File(context.getFilesDir(), INSTALLATION); 21 | try { 22 | if (!installation.exists()) 23 | writeInstallationFile(installation); 24 | sID = readInstallationFile(installation); 25 | } catch (Exception e) { 26 | throw new RuntimeException(e); 27 | } 28 | } 29 | return sID; 30 | } 31 | 32 | private static String readInstallationFile(File installation) throws IOException { 33 | RandomAccessFile f = new RandomAccessFile(installation, "r"); 34 | byte[] bytes = new byte[(int) f.length()]; 35 | f.readFully(bytes); 36 | f.close(); 37 | return new String(bytes); 38 | } 39 | 40 | private static void writeInstallationFile(File installation) throws IOException { 41 | FileOutputStream out = new FileOutputStream(installation); 42 | String id = UUID.randomUUID().toString(); 43 | out.write(id.getBytes()); 44 | out.close(); 45 | } 46 | 47 | public static String getVersionName(Context context) { 48 | PackageManager manager = context.getPackageManager(); 49 | PackageInfo info = null; 50 | try { 51 | info = manager.getPackageInfo(context.getPackageName(), 0); 52 | } catch (PackageManager.NameNotFoundException e) { 53 | e.printStackTrace(); 54 | } 55 | return info.versionName; 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /app/src/main/java/com/nice/entity/ActivationCode.java: -------------------------------------------------------------------------------- 1 | package com.nice.entity; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | 6 | /** 7 | * This class was generated by MyBatis Generator. 8 | * This class corresponds to the database table activation_code 9 | * 10 | * @mbg.generated do_not_delete_during_merge 11 | */ 12 | public class ActivationCode implements Serializable { 13 | private Long id; 14 | 15 | private String activationCode; 16 | 17 | private Integer state; 18 | 19 | private Date startTime; 20 | 21 | private Date endTime; 22 | 23 | private String installationCode; 24 | 25 | private String deviceInfo; 26 | 27 | private Integer type; 28 | 29 | private Integer sold; 30 | 31 | private Date soldTime; 32 | 33 | private static final long serialVersionUID = 1L; 34 | 35 | public Long getId() { 36 | return id; 37 | } 38 | 39 | public void setId(Long id) { 40 | this.id = id; 41 | } 42 | 43 | public String getActivationCode() { 44 | return activationCode; 45 | } 46 | 47 | public void setActivationCode(String activationCode) { 48 | this.activationCode = activationCode; 49 | } 50 | 51 | public Integer getState() { 52 | return state; 53 | } 54 | 55 | public void setState(Integer state) { 56 | this.state = state; 57 | } 58 | 59 | public Date getStartTime() { 60 | return startTime; 61 | } 62 | 63 | public void setStartTime(Date startTime) { 64 | this.startTime = startTime; 65 | } 66 | 67 | public Date getEndTime() { 68 | return endTime; 69 | } 70 | 71 | public void setEndTime(Date endTime) { 72 | this.endTime = endTime; 73 | } 74 | 75 | public String getInstallationCode() { 76 | return installationCode; 77 | } 78 | 79 | public void setInstallationCode(String installationCode) { 80 | this.installationCode = installationCode; 81 | } 82 | 83 | public String getDeviceInfo() { 84 | return deviceInfo; 85 | } 86 | 87 | public void setDeviceInfo(String deviceInfo) { 88 | this.deviceInfo = deviceInfo; 89 | } 90 | 91 | public Integer getType() { 92 | return type; 93 | } 94 | 95 | public void setType(Integer type) { 96 | this.type = type; 97 | } 98 | 99 | public Integer getSold() { 100 | return sold; 101 | } 102 | 103 | public void setSold(Integer sold) { 104 | this.sold = sold; 105 | } 106 | 107 | public Date getSoldTime() { 108 | return soldTime; 109 | } 110 | 111 | public void setSoldTime(Date soldTime) { 112 | this.soldTime = soldTime; 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /.idea/assetWizardSettings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 66 | 67 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_user_setting.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 12 | 13 | 14 | 20 | 21 | 29 | 30 | 38 | 39 | 40 | 41 | 46 | 47 | 50 | 51 | 57 | 58 | 59 | 60 |