::
:: Xavierjohn22 của xdaAUTOAPKTOOL
:: File: AutoAPKToolMenu.bat
:: Mô tả: Công cụ để tự động hóa apk chỉnh sửa
:: Xem Lịch sử để thay đổi
::echo off java -version nếu errorlevel 1 goto errjava cls chế độ con: cols = 120 lines = 52 setlocal EnableDelayedExpansion thiết logMain = log_main.txt thiết loginfo = 2 if (1%) == (0) goto skipme vang ------------------------ -------------------------------------- >>% logMain% vang ^% ngày% - % thời gian% ^% >> logMain% vang ---------------------------------------- ---------------------- >>% logMain% AutoAPKToolMain_Colored 0 2 >>% logMain%: skipme thiết AppName = xdaAutoAPKTool thiết AppVersion = 4.0.2 bộ AppAuthor = xavierjohn22 thiết AppModifiers = Agat63, Peteragent5 thiết foundframework = 0 bộ foundapktoolversion = 0 bộ foundautoinstfrmwkfolder = 0 bộ foundcomplevel = 0 bộ foundcopydistapk = 0 bộ valuecopydistapk = MALI thiết foundgenzipaligncomp = 0 bộ valuegenzipaligncomp = MALI thiết foundsigngenzipalign = 0 bộ valuesigngenzipalign = MALI thiết foundautoinstfrmwkset = 0 set valueautoinstfrmwkset = MALI thiết foundbagongapktool = 0 bộ valuebagongapktool = MALI thiết foundoverwrite_arsc = 0 bộ valueoverwrite_arsc = MALI thiết foundoverwrite_dex = 0 bộ valueoverwrite_dex = MALI thiết foundoverwrite_custom = 0 bộ valueoverwrite_custom = MALI bộ foundcopy_other_res = 0 bộ valuecopy_other_res = MALI thiết foundgenzipalign = 0 bộ valuegenzipalign = MALI thiết foundforcedelstart = 0 bộ valueforcedelstart = MALI thiết foundforcedelend = 0 bộ valueforcedelend = MALI thiết foundoptimizepng = 0 bộ valueoptimizepng = MALI thiết foundoptimizeonly9png = 0 bộ valueoptimizeonly9png = MALI thiết foundzipalignthensign = 0 bộ valuezipalignthensign = MALI thiết foundmakethemezip = 0 bộ valuemakethemezip = Mali thiết adbsdroot = / sdcard / bộ adbsdfolder = xRoms thiết logR = log_recompile.txt thiết LoGD = log_decompile.txt nếu không tồn tại "_ADB" mkdir "_ADB" nếu không tồn tại "_MODS" mkdir "_MODS" nếu không tồn tại "_INPUT_APK" mkdir "_INPUT_APK" nếu không tồn tại "_JAR_FILES" mkdir "_JAR_FILES" nếu không tồn tại "_OUT_APK" mkdir "_OUT_APK" nếu không tồn tại "_OUT_DIST" mkdir "_OUT_DIST" nếu không tồn tại "_CUSTOM_RES" mkdir "_CUSTOM_RES" nếu không tồn tại "_OUT_APK_ZIPALIGN" mkdir "_OUT_APK_ZIPALIGN" nếu không tồn tại "_OUT_DIST_ZIPALIGN" mkdir "_OUT_DIST_ZIPALIGN" nếu không tồn tại "_THEMES" mkdir "_THEMES" nếu không tồn tại "_THEMES_INPUT_APK" mkdir "_THEMES_INPUT_APK" nếu không tồn tại "_THEMES_OUT_APK" mkdir "_THEMES_OUT_APK" nếu không tồn tại "_THEMES_OUT_APK_ZIPALIGN" mkdir "_THEMES_OUT_APK_ZIPALIGN" nếu không tồn tại "_OUT_DIST_ZIPALIGN_SIGNED" mkdir "_OUT_DIST_ZIPALIGN_SIGNED" nếu không tồn tại "Settings" mkdir "Settings" nếu không tồn tại "Settings / AutoAPKToolMain.ini" goto: oneiniisnotthere for / f "tokens = 1,2 delims =="% % một năm (Settings / AutoAPKToolMain.ini) làm (nếu %% một apktoolversion == nếu tồn tại %% b (bộ apktool = %% b tập foundapktoolversion = 1)): oneiniisnotthere nếu% foundapktoolversion% == 0 (đặt apktool = apktool_1.3.2.jar) nếu không tồn tại "Settings / AutoAPKToolCopyOutSettings.ini" goto: twoiniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolCopyOutSettings.ini) làm (nếu %% a = = copydistapksettings (tập valuecopydistapk = %% b đặt foundcopydistapk = 1)) nếu% valuecopydistapk% == TAMA (set copydistapk = 1) if% valuecopydistapk% == Mali (set copydistapk = 0): twoiniisnotthere nếu% foundcopydistapk% == 0 (set copydistapk = 0) nếu không tồn tại "Settings / AutoAPKToolGenZipAlSettings.ini" goto: threeiniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolGenZipAlSettings.ini) làm (nếu %% a = = genzipalignedsettings (tập valuegenzipaligncomp = %% b tập foundgenzipaligncomp = 1)) nếu% valuegenzipaligncomp% == TAMA (set genzipaligncomp = 1) if% valuegenzipaligncomp% == Mali (set genzipaligncomp = 0): threeiniisnotthere nếu% foundgenzipaligncomp% == 0 (set genzipaligncomp = 0) nếu không tồn tại "Settings / AutoAPKToolSignGenZipAlSettings.ini" goto: fouriniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolSignGenZipAlSettings.ini) làm (nếu %% a = = signgenzipalignedsettings (đặt valuesigngenzipalign = %% b đặt foundsigngenzipalign = 1)) nếu% valuesigngenzipalign% == TAMA (set signgenzipalign = 1) if% valuesigngenzipalign% == Mali (set signgenzipalign = 0): fouriniisnotthere nếu% foundsigngenzipalign% == 0 (thiết signgenzipalign = 0) nếu không tồn tại "Settings / AutoAPKToolCompLevelSettings.ini" goto: fiveiniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolCompLevelSettings.ini) làm (nếu %% a = = complevelsettings (tập complevel = %% b tập foundcomplevel = 1)): fiveiniisnotthere nếu% foundcomplevel% == 0 (set complevel = 9) nếu không tồn tại "Settings / AutoAPKToolInitialFramework.ini" goto: sixiniisnotthere for / f "tokens = 1 , 2 delims == "%% một trong (Settings / AutoAPKToolInitialFramework.ini) làm (nếu %% một apktoolframework == nếu tồn tại %% b (đặt FRMWRK = %% b tập foundframework = 1)): sixiniisnotthere nếu% foundframework% == 0 (đặt FRMWRK = _INPUT_APK framework-res.apk) nếu không tồn tại "Settings / AutoAPKToolAutoFrmwkFolder.ini" goto: seveniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolAutoFrmwkFolder. ini) làm (nếu %% a == frameworkfolder (tập autoinstfrmwkfolder = %% b foundautoinstfrmwkfolder set = 1)): seveniniisnotthere nếu% foundautoinstfrmwkfolder% == 0 (set autoinstfrmwkfolder = Android-4-2-2-Default) nếu không tồn tại "Settings / AutoAPKToolAutoFrmwkValue.ini" goto: eightiniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolAutoFrmwkValue.ini) làm (nếu %% một autoinstallframeworkset == (đặt valueautoinstfrmwkset = %% b thiết foundautoinstfrmwkset = 1)) nếu% valueautoinstfrmwkset% == TAMA (thiết lập autoinstfrmwkset = 1) if% valueautoinstfrmwkset% == Mali (thiết lập autoinstfrmwkset = 0): eightiniisnotthere nếu% foundautoinstfrmwkset% == 0 (đặt autoinstfrmwkset = 0) nếu không tồn tại "Settings / AutoAPKToolNewApkTool.ini" goto: nineiniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolNewApkTool.ini) làm (nếu %% a == usingnewapktool (tập valuebagongapktool = %% b thiết foundbagongapktool = 1)) nếu% valuebagongapktool% == TAMA (thiết lập bagongapktool = 1) if% valuebagongapktool% == Mali (thiết lập bagongapktool = 0): nineiniisnotthere nếu% foundbagongapktool% == 0 (đặt bagongapktool = 0) nếu không tồn tại "Settings / AutoAPKToolOverwrite_Arsc.ini" goto: teniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolOverwrite_Arsc.ini) làm (nếu %% một overwritearsc == (tập valueoverwrite_arsc = %% b thiết foundoverwrite_arsc = 1)) nếu% valueoverwrite_arsc% == TAMA (đặt overwrite_arsc = 1) if% valueoverwrite_arsc% == Mali (đặt overwrite_arsc = 0): teniniisnotthere nếu% foundoverwrite_arsc% == 0 (đặt overwrite_arsc = 0) nếu không tồn tại "Settings / AutoAPKToolOverwrite_Dex.ini" goto: eleveniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolOverwrite_Dex.ini) làm (nếu %% một overwritedex == (đặt valueoverwrite_dex = %% b thiết foundoverwrite_dex = 1)) nếu% valueoverwrite_dex% == TAMA (đặt overwrite_dex = 1) if% valueoverwrite_dex% == Mali (đặt overwrite_dex = 0): eleveniniisnotthere nếu% foundoverwrite_dex% == 0 (đặt overwrite_dex = 0) nếu không tồn tại "Settings / AutoAPKToolOverwrite_Custom.ini" goto: twelveiniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolOverwrite_Custom.ini) làm (nếu %% a == overwritecustom (đặt valueoverwrite_custom = %% b thiết foundoverwrite_custom = 1)) nếu% valueoverwrite_custom% == TAMA (thiết lập overwrite_custom = 1) if% valueoverwrite_custom% == Mali (thiết lập overwrite_custom = 0): twelveiniisnotthere nếu% foundoverwrite_custom% == 0 (đặt overwrite_custom = 0) nếu không tồn tại "Settings / AutoAPKToolCopy_Other_Res.ini" goto: thirteeniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolCopy_Other_Res.ini) làm (nếu %% một copyotherres == (tập valuecopy_other_res = %% b thiết foundcopy_other_res = 1)) nếu% valuecopy_other_res% == TAMA (set copy_other_res = 1) if% valuecopy_other_res% == Mali (set copy_other_res = 0): thirteeniniisnotthere nếu% foundcopy_other_res% == 0 (set copy_other_res = 0) nếu không tồn tại "Settings / AutoAPKToolZipal_Then_Sign.ini" goto: fourteeniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolZipal_Then_Sign.ini) làm (nếu %% a == zipalignthensign (đặt valuezipalignthensign = %% b thiết foundzipalignthensign = 1)) nếu% valuezipalignthensign% == TAMA (đặt zipalignthensign = 1) if% valuezipalignthensign% == Mali (thiết lập zipalignthensign = 0): fourteeniniisnotthere nếu% foundzipalignthensign% == 0 (đặt zipalignthensign = 0) nếu không tồn tại "Settings / AutoAPKToolMake_ThemeZip.ini" goto: fifteeniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolMake_ThemeZip.ini) làm (nếu %% a == makethemezip (đặt valuemakethemezip = %% b thiết foundmakethemezip = 1)) nếu% valuemakethemezip% == TAMA (thiết lập makethemezip = 1) if% valuemakethemezip% == Mali (thiết lập makethemezip = 0): fifteeniniisnotthere nếu% foundmakethemezip% == 0 (đặt makethemezip = 0) nếu không tồn tại "Settings / AutoAPKToolGen_ZipAlign.ini" goto: sixteeniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolGen_ZipAlign.ini) làm (nếu %% một genzipalign == (đặt valuegenzipalign = %% b thiết foundgenzipalign = 1)) nếu% valuegenzipalign% == TAMA (set genzipalign = 1) if% valuegenzipalign% == Mali (set genzipalign = 0): sixteeniniisnotthere nếu% foundgenzipalign% == 0 (set genzipalign = 0) nếu không tồn tại "Settings / AutoAPKToolForce_DelStart.ini" goto: seventeeniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolForce_DelStart.ini) làm (nếu %% a == forcedelstart (tập valueforcedelstart = %% b thiết foundforcedelstart = 1)) nếu% valueforcedelstart% == TAMA (set forcedelstart = 1) if% valueforcedelstart% == Mali (thiết lập forcedelstart = 0): seventeeniniisnotthere nếu% foundforcedelstart% == 0 (đặt forcedelstart = 0) nếu không tồn tại "Settings / AutoAPKToolForce_DelEnd.ini" goto: eightteeniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolForce_DelEnd.ini) làm (nếu %% a == forcedelend (tập valueforcedelend = %% b thiết foundforcedelend = 1)) nếu% valueforcedelend% == TAMA (set forcedelend = 1) if% valueforcedelend% == Mali (đặt forcedelend = 0): eightteeniniisnotthere nếu% foundforcedelend% == 0 (đặt forcedelend = 0) nếu không tồn tại "Settings / AutoAPKToolOptimize_Pngs.ini" goto: nineteeniniisnotthere for / f "tokens = 1,2 delims ==" %% một trong (Settings / AutoAPKToolOptimize_Pngs.ini) làm (nếu %% a == optimizepng (tập valueoptimizepng = %% b thiết foundoptimizepng = 1)) nếu% valueoptimizepng% == TAMA (đặt optimizepng =
đang được dịch, vui lòng đợi..
