162 Commits

Author SHA1 Message Date
AndnixSH 10a1dfed68 Fix keyboard shortcut 2026-06-01 20:16:26 +02:00
AndnixSH 2687452ee7 Remove "full info" string 2026-05-31 20:35:18 +02:00
AndnixSH 5a8e485923 [Vibe coding] Improve icon parsing
No longer connect to web to fetch icon
Parse icon directly from APK without extracting
2026-05-31 20:03:00 +02:00
AndnixSH 5d9d4e21d0 Fixing flags & refactor
Replaced -m with --match-original
Replaced -nc with --no-crunch (#52)
Replaced -k with --keep-broken-res
Replaced -c with --copy-original

All flags are backward compatible
2026-05-31 17:42:29 +02:00
AndnixSH fd7398667e Reduce margin 2026-05-31 16:34:17 +02:00
AndnixSH 59ef98b315 Removed --enable-native-access=ALL-UNNAMED
It's not available on Java 1.8
2026-05-31 16:24:46 +02:00
AndnixSH 351c7887c4 Update README.md 2026-05-31 15:46:50 +02:00
AndnixSH 183c0e584c Move hardcoded string to Language 2026-05-31 15:41:36 +02:00
AndnixSH 725197f615 [Vibe coding] Ported WinForm to WPF
WPF has better theming and performance.
Removed DarkNet package
Merged languages from WinForm to resx
I used AI to port faster.
2026-05-31 12:01:46 +02:00
AndnixSH cc27270d98 Bump version to 3.3.2.3 2026-05-17 22:18:46 +02:00
AndnixSH 3e5a81dabf Update Apktool to 3.0.2 2026-05-17 21:31:21 +02:00
AndnixSH 197379e3cf Merge branch 'pr/47' 2026-05-04 14:59:09 +02:00
AndnixSH 2b6502a5f7 Fix broken design 2026-05-04 13:31:24 +02:00
AndnixSH 8f72cf9dee Merge branch 'pr/48' 2026-05-03 13:17:37 +02:00
AndnixSH 79e8cd2ef9 Refactor + Add Apktool version checks 2026-05-03 11:56:56 +02:00
AndnixSH 5be8c9623a Merge branch 'pr/49' 2026-04-28 17:56:14 +02:00
backryun 08fb90285c ci: package artifact with exe/resources/changelog only 2026-03-05 20:56:43 +09:00
backryun e0e99c862f fix: correct signing/build option handling and drag-drop stability
Use Sign_UseOutputDir in signing flows instead of Zipalign_UseOutputDir
Fix apktool arg composition so -api and -j are both preserved
Fix JarProcess JVM arg order and default java executable handling
Replace non-functional splitTypes string replacement with Regex.Replace in ApkFixer
Remove duplicate private-key click handler registration
Fix APK info drag-drop target textbox and guard drag-drop helpers against empty drops
Keep DEBUG/RELEASE catch split to avoid CS0168 in Release
2026-03-05 20:37:17 +09:00
backryun cfb094a275 Update ADB, apktool, APKEditor 2026-03-05 20:11:35 +09:00
Aleksandr ca58db1975 Update Russian localization 2026-02-16 10:39:19 +03:00
vicky-dx afe2b917f9 Add separate key password field for APK signing
- Added Sign_KeyPassword setting for private key password
- Updated Signapk.cs to use separate keystore and key passwords
- Added textBox4 and label23 for Private key password field in UI
- Fixed password verification issue when signing APKs with keystore

Previously, the same password was used for both keystore and key access,
causing 'Password verification failed' errors when they were different.
This update allows users to specify different passwords for keystore
and private key, resolving java.security.UnrecoverableKeyException.
2026-01-25 14:25:02 +05:30
AndnixSH 5e6eee2f5e Update README.md 2026-01-20 21:41:23 +01:00
AndnixSH eb39b5bf69 Update README.md 2026-01-20 21:23:08 +01:00
AndnixSH 8230d8239d Auto remove remaining split elements 2026-01-20 20:59:43 +01:00
AndnixSH 824aadbce1 Update changelog.txt 2025-11-26 17:39:45 +01:00
AndnixSH e12fc939b9 Change version to 3.3.2.1 2025-11-26 17:37:03 +01:00
AndnixSH 0b043a4a3b Merged some changes from #45
- Refactor language selection
- Export image when clicking on icon box in APK Info
- Build overflow
2025-11-25 21:48:22 +01:00
AndnixSH f974e198d5 Refactor 2025-11-17 19:52:36 +01:00
AndnixSH 8c43f59bd1 Fix *.zip and *.apkm not selectable for merging #43 2025-11-15 11:37:57 +01:00
backryun bd1dcf6f64 Refactoring Code(Last) 2025-11-05 01:01:37 +09:00
backryun e0018909dc Refactoring Code(Part 2) 2025-11-05 00:38:36 +09:00
backryun 580c49b59c Refactoring Code(Part 1) 2025-10-20 06:58:03 +09:00
backryun 328736bbab Add Android 36 string 2025-10-20 04:22:55 +09:00
backryun a294aa5a40 Update aapt, zipalign 2025-10-20 04:15:36 +09:00
backryun 17289ff3f3 Update APKEditor & apktool 2025-10-20 04:11:53 +09:00
backryun 4471de12d5 Update Dependencys 2025-10-20 04:08:35 +09:00
backryun 469ccb6c9c Fix build warning 2025-10-20 04:04:41 +09:00
AndnixSH bfd2f41c88 Update changelog.txt 2025-08-02 17:18:03 +02:00
AndnixSH 6cda22c47e Update AssemblyInfo.cs 2025-08-02 17:18:01 +02:00
AndnixSH 73dbd422a8 UI changes 2025-08-02 14:18:24 +02:00
AndnixSH 6411889613 Use aapt2 is false by default 2025-08-02 13:40:07 +02:00
AndnixSH 210390718c Update FormMain.resx 2025-08-02 12:18:17 +02:00
AndnixSH 5704df951e Update config.yml 2025-08-02 12:12:19 +02:00
AndnixSH 9e73936f6d Update config.yml 2025-08-02 12:09:58 +02:00
AndnixSH ddd24ecbd6 Update issue template 2025-08-02 12:06:51 +02:00
AndnixSH e50b8a8658 Fixed issue #40 2025-08-02 11:59:15 +02:00
AndnixSH 5f242bca2f Fixed apktool version output 2025-08-02 10:30:43 +02:00
AndnixSH e2784ce65e Updated tools 2025-08-02 10:29:56 +02:00
AndnixSH 93fc85fc33 Include Language.tr.resx in project 2025-07-30 19:12:09 +02:00
AndnixSH 4c389d58fb Merge branch 'pr/37' 2025-07-30 19:10:04 +02:00
AndnixSH 63e08f4f77 Remove invalid Turkish resx files 2025-07-30 19:09:43 +02:00
AndnixSH 556d01ed74 Remove flickering fix due to tabs flickering #38 2025-07-29 21:54:38 +02:00
AndnixSH eb670e7cd5 Merge branch 'pr/33' 2025-07-29 20:19:35 +02:00
AndnixSH 584df30992 Include Japanese in project 2025-07-29 20:19:14 +02:00
AndnixSH e89522cfcb Merge branch 'pr/36' 2025-07-29 19:31:13 +02:00
AndnixSH 9ffedd3cbf Merge branch 'pr/39' 2025-07-29 18:31:20 +02:00
AndnixSH 7228e182cc Update changelog.txt 2025-07-29 18:28:37 +02:00
Renji Yuusei ecce2c8e18 Update FormSettings.vi-VN.resx 2025-06-16 00:33:12 +07:00
Renji Yuusei 5f83b05335 Update FormMain.vi-VN.resx 2025-06-16 00:31:14 +07:00
Renji Yuusei aa0f62bd58 Update FormAboutBox.vi-VN.resx 2025-06-16 00:26:38 +07:00
Renji Yuusei 13420455c7 Update Language.vi-VN.resx 2025-06-15 21:15:18 +07:00
𝗛𝗼𝗹𝗶 3b90881083 Add Turkish 2025-03-27 17:01:03 +03:00
Hen_Ry be7ed3a533 Update FormMain.de.resx 2025-03-22 18:31:59 +01:00
AndnixSH 4ed20cf3de Revert back to DotNetZip but using ProDotNetZip for fixed vulnerability 2025-03-19 17:14:12 +01:00
AndnixSH aca3de41b7 Update AssemblyInfo.cs 2025-03-18 19:35:39 +01:00
AndnixSH a5497c56da Update packages 2025-03-18 19:35:17 +01:00
AndnixSH 4d2a745b11 Reduced UI flickering 2025-03-18 19:17:07 +01:00
AndnixSH b25fd6451b Fixes
- Removed APK links that are no longer available
- Fixed icon not displaying. It will load icon from Play Store as a last resort
- Faster apk parsing
2025-03-17 17:33:47 +01:00
Re*Index. (ot_inc) 19bd457b65 Merge branch 'master' of https://github.com/reindex-ot/APKToolGUI 2025-02-17 07:41:11 +09:00
Re*Index. (ot_inc) 3e1fc75808 Update Language.ja.resx 2025-02-17 07:40:53 +09:00
Re*Index. (ot_inc) 846ef4f5f1 Update Language.ja.resx 2025-02-17 07:35:47 +09:00
Re*Index. (ot_inc) d87d8af361 Delete APKToolGUI/Languages/Language.ja-JP.resx 2025-02-17 07:28:56 +09:00
Re*Index. (ot_inc) 9d31e8c2c8 Add files via upload 2025-02-17 07:28:23 +09:00
Re*Index. (ot_inc) ecd8b45846 Add files via upload 2025-02-17 07:27:28 +09:00
AndnixSH 8834cbcec2 Update changelog.txt 2025-01-30 12:08:17 +01:00
AndnixSH 1ecbb13692 3.3.1.5 2025-01-30 12:08:05 +01:00
AndnixSH 8084d5288b Update deps 2025-01-30 11:43:30 +01:00
AndnixSH 41f3663d4a Added check if stamp-cert-sha256 exists 2025-01-30 11:37:40 +01:00
AndnixSH add093dd6e Updated Apktool and Apkeditor to latest version 2025-01-30 11:25:03 +01:00
AndnixSH cb69d6b541 #32 2025-01-30 10:40:06 +01:00
AndnixSH e4a8886af6 Update AssemblyInfo.cs 2024-12-01 17:46:04 +01:00
AndnixSH 7b32dade20 Changes with unsigned APK
No longer need to extract signatures, the apktool.jar already does it on its own. And fixed issues adding original signature back to unsigned APK
2024-12-01 17:43:04 +01:00
AndnixSH 3401402bd6 Transition to System.IO.Compression 2024-11-30 22:33:55 +01:00
AndnixSH a7480e5bdf Added option to set threads 2024-11-19 09:12:15 +01:00
AndnixSH 95a69334c3 Merge pull request #29 from VeroZ1/master
Update Chinese Simplified translation
2024-11-18 14:17:53 +01:00
AndnixSH 82bee17ca7 Fixed UI for Viet 2024-11-18 14:14:18 +01:00
Renji Yuusei 61aee3cdcf Update APKToolGUI.csproj 2024-11-13 13:05:48 +07:00
Renji Yuusei 282a6ba6c0 Add Vietnamese language 2024-11-12 18:13:34 +07:00
Renji Yuusei 9ab8ad0013 Create Language.vi-VN.resx 2024-11-12 18:00:11 +07:00
VeroZ1 5953e2feef Update Chinese Simplified translation 2024-11-04 21:40:07 +08:00
AndnixSH 0f7caefaab Update changelog.txt 2024-09-30 15:52:45 +02:00
AndnixSH 48b6736ccf Fixed issue decompiling split apk using Apkeditor 2024-09-30 15:41:38 +02:00
AndnixSH f2329a4b57 Update AssemblyInfo.cs 2024-09-29 20:25:50 +02:00
AndnixSH 456b971183 Update DragDropHandlers.cs 2024-09-29 16:11:46 +02:00
AndnixSH 3417aedbe0 Update APKEditor.jar 2024-09-29 16:11:42 +02:00
AndnixSH 6e3bb9a6dd ? 2024-09-29 11:36:07 +02:00
AndnixSH 26763b0cfa Support window resizing #26 2024-09-27 21:47:04 +02:00
AndnixSH ca05365c16 Update tools 2024-09-27 18:52:15 +02:00
AndnixSH 7581a5c45c Print signature in apk info 2024-04-11 22:52:20 +02:00
AndnixSH 7e7de5f653 Update changelog.txt 2024-03-30 19:14:07 +01:00
AndnixSH 7ccbac83b2 Merge pull request #25 from YorkWaugh/master
Update Chinese Simplified translation
2024-03-29 13:11:31 +01:00
York Waugh af96daca95 Update Chinese Simplified translation 2024-03-24 16:26:31 +08:00
AndnixSH 208d14cb9b Update AssemblyInfo.cs 2024-03-03 16:52:25 +01:00
AndnixSH d4fcd90024 Option to override abi for ADB 2024-03-03 16:18:56 +01:00
AndnixSH bcc597ac0a Fix issue #22 and add up to SDK 35/Android 15 2024-03-03 13:36:04 +01:00
AndnixSH 674fc210f5 3.3.1.1 2024-02-26 12:52:52 +01:00
AndnixSH aa5d017c74 Fix ADB not ungraying the buttons after installation 2024-02-20 21:18:20 +01:00
AndnixSH 012b6f3c07 Add mergeApkBtn to ActionButtonsEnabled 2024-02-18 17:50:27 +01:00
AndnixSH c8bfc38fac Merge pull request #20 from Henry2o1o/patch-5
Update FormMain.de.resx
2024-02-09 15:09:42 +01:00
AndnixSH 6a0e01937a Merge pull request #21 from Henry2o1o/patch-6
Update Language.de.resx
2024-02-09 15:09:12 +01:00
Hen_Ry 542bc64b80 Update Language.de.resx 2024-01-28 17:06:24 +01:00
Hen_Ry e47ce35b5c Update FormMain.de.resx 2024-01-28 16:52:34 +01:00
Hen_Ry 7c3280a2ad Update FormMain.de.resx 2024-01-28 16:50:53 +01:00
AndnixSH d32a068e9a Update issues 2024-01-28 11:31:45 +01:00
AndnixSH 90f8ba18f3 Update FormMain.de.resx 2024-01-28 11:16:00 +01:00
AndnixSH 39219eaf65 Update changelog.txt 2024-01-27 15:18:36 +01:00
AndnixSH 9675fa6d85 Update README.md 2024-01-27 14:07:48 +01:00
AndnixSH 67a0bb877d Update changelog.txt 2024-01-27 14:02:35 +01:00
AndnixSH d8d1c50f00 no idea why VS changes this 2024-01-27 14:01:48 +01:00
AndnixSH 608dd37522 Print APKEditor version 2024-01-27 14:01:17 +01:00
AndnixSH d2f8e42664 Update AssemblyInfo.cs 2024-01-27 13:33:28 +01:00
AndnixSH 6cf1931bbc Temp logic
Fix freezing when clearing temp folder
Standard temp location will be ...\AppData\Local\APKToolGUI\Temp\XXXXX
2024-01-26 22:43:08 +01:00
AndnixSH 67667784fd Updated tools 2024-01-26 22:30:45 +01:00
AndnixSH 0df16541d4 Adjust settings saving
Don't require restart if language has not been changed
2024-01-26 22:25:44 +01:00
AndnixSH e141b886ef Support decompiling/compiling using ApkEditor 2024-01-26 22:14:16 +01:00
AndnixSH 9e00fd2d75 Print exceptions 2024-01-26 19:53:51 +01:00
AndnixSH a841fe0ce5 Update dependencies 2024-01-13 22:55:39 +01:00
AndnixSH d7edc9ced2 Fixed UI for German 2023-11-06 20:38:24 +01:00
AndnixSH f9cad819b6 Rename de-DE to de to avoid duplication 2023-11-06 20:26:01 +01:00
AndnixSH 02a48151c2 Included German and adjusted UI to fit for all languages 2023-11-06 17:54:05 +01:00
AndnixSH 8fddb8d760 Merge branch 'pr/18' 2023-11-06 17:34:20 +01:00
AndnixSH 0e18c8194c Merge branch 'pr/17' 2023-11-06 17:34:17 +01:00
AndnixSH aa1078660a Merge branch 'pr/16' 2023-11-06 17:34:11 +01:00
AndnixSH 33749af569 Merge branch 'pr/15' 2023-11-06 17:34:00 +01:00
AndnixSH c431d2e90c Fix language selection 2023-11-06 17:30:29 +01:00
AndnixSH 2dfac5d667 Update Log.cs 2023-11-06 17:07:56 +01:00
AndnixSH de6588a148 Fixed text align 2023-11-06 17:05:06 +01:00
AndnixSH 05cbb3cb4b Merge branch 'pr/14' 2023-11-06 17:03:44 +01:00
AndnixSH de415e8232 Included zh-CN in csproj 2023-11-06 17:02:10 +01:00
AndnixSH cfec6c9a81 Update apktool to 2.9.0 2023-11-06 16:56:06 +01:00
AndnixSH 28f15a41ac Update adb 2023-11-06 16:54:10 +01:00
AndnixSH 8513ab4788 Update Log.cs 2023-11-06 16:50:19 +01:00
Hen_Ry e4f9e5da21 Fix 2023-10-29 21:41:17 +01:00
Hen_Ry b191d547d0 Fix 2023-10-29 21:31:14 +01:00
Hen_Ry 1d764709f2 Fix 2023-10-29 21:28:47 +01:00
Hen_Ry 7ccf7da0f3 Fix 2023-10-29 21:24:22 +01:00
Hen_Ry 2bed8a468b Fix 2023-10-29 21:22:44 +01:00
Hen_Ry 6d4dc8396d Fix 2023-10-27 14:52:33 +02:00
Hen_Ry 67672a8871 Fix 2023-10-27 14:50:15 +02:00
Hen_Ry e7b942f09b Fix 2023-10-27 13:40:27 +02:00
Hen_Ry f71bd165a8 Create FormSettings.de.resx
for german
2023-10-27 11:44:44 +02:00
Hen_Ry 984735d9a2 Create FormMain.de.resx
for german
2023-10-27 11:43:40 +02:00
Hen_Ry 3e7ebe157e Create FormAboutBox.de.resx
for german
2023-10-27 11:41:57 +02:00
Hen_Ry e42e2f3897 Rename Language.de.resx to Language.de-DE.resx 2023-10-27 10:30:00 +02:00
Hen_Ry ae8106d967 Fix 2023-10-27 09:15:05 +02:00
Hen_Ry 462447de6c Update Language.de.resx
part 2/2
2023-10-26 20:36:42 +02:00
Hen_Ry 67a4b79efc Update Language.de.resx 2023-10-26 19:52:03 +02:00
Hen_Ry ba418f7427 Create Language.de.resx
for german
2023-10-26 15:33:38 +02:00
TuziChan f28fa25001 Update Simplified Chinese translation
translated all Forms,
but the Target SDK and Architetures text boxes in the apk info have alignment issues
2023-10-09 01:13:11 +08:00
AndnixSH db8be4b428 Update README.md 2023-10-07 17:49:50 +02:00
AndnixSH 7cea4c2959 APKSMerger source removed 2023-10-07 17:43:15 +02:00
AndnixSH 7def211556 Merge split APK to single APK 2023-10-07 17:39:57 +02:00
112 changed files with 12772 additions and 18679 deletions
+3 -8
View File
@@ -11,16 +11,10 @@ body:
required: true
- label: I performed a cursory search of the issue tracker on [APK Tool GUI](https://github.com/AndnixSH/APKToolGUI/issues?q=is%3Aissue) to avoid opening a duplicate issue
required: true
- label: I performed a cursory search of the issue tracker on [Apktool] (https://github.com/iBotPeaches/Apktool/issues?q=is%3Aissue) and [Baksmali](https://github.com/JesusFreke/smali/issues?q=is%3Aissue) but did not found an answer
required: true
- label: I am running the latest version of [APK Tool GUI](https://github.com/AndnixSH/APKToolGUI/releases) and [Apktool.jar](https://github.com/iBotPeaches/Apktool/releases).
required: true
- label: I have tried to decompile and compile without changing anything.
- label: I am running the latest version of [APK Tool GUI](https://github.com/AndnixSH/APKToolGUI/releases).
required: true
- label: I have read the [FAQ](https://github.com/AndnixSH/APKToolGUI#faq)
required: true
- label: I have checked using [APKiD](https://github.com/rednaga/APKiD) and verified that the app does not have protection(s) like packer, obfuscation, anti-tamper, anti-cheats etc
required: false
- type: textarea
attributes:
@@ -92,6 +86,7 @@ body:
- type: input
attributes:
label: Operating system and version
placeholder: (Example: Windows 11 2h22)
placeholder: |
(Example: Windows 11 2h22)
validations:
required: true
+7 -13
View File
@@ -3,21 +3,15 @@ contact_links:
- name: Apktool Issues List
url: https://github.com/iBotPeaches/Apktool/issues?q=is%3Aissue
about: Check Apktool issues before reporting issue here. Your issue might already exists
- name: Baksmali Issues List
url: https://github.com/JesusFreke/smali/issues?q=is%3Aissue
about: Check Baksmali issues before reporting issue here. Your issue might already exists
- name: System apps modding support forum
url: https://forum.xda-developers.com/all-forums-by-manufacturer
about: For support, questions or help with modding system apps.
- name: Apktool forum
url: https://github.com/iBotPeaches/Apktool/discussions
about: For support, questions or help with Apktool, development and modding
- name: Smali Issues List
url: https://github.com/JesusFreke/smali/issues?q=is%3Aissue
about: Check Baksmali issues before reporting issue here. Your issue might already exists
- name: Smali Issues List 2
url: https://github.com/google/smali/issues?q=is%3Aissue
about: Check Baksmali issues before reporting issue here. Your issue might already exists
- name: Android development and modding support forum
url: https://forum.xda-developers.com/c/android-development-and-hacking.564/
about: For support, questions or help with development and modding
- name: Android development and modding support forum 2
url: https://androidforums.com/forums/android-development.28/
about: For support, questions or help with development and modding
- name: Android development and modding support forum 3
url: https://platinmods.com/forums/modding-questions-discussions.11/
about: For support, questions or help with development and modding
about: For support, questions or help with development and modding'
+16
View File
@@ -0,0 +1,16 @@
name: Language suggestion/error
description: Suggest a change or report an error of language. Use this form if you can't pull request
labels: language
body:
- type: input
attributes:
label: Language
validations:
required: true
- type: textarea
attributes:
label: Description
description: A clear and concise description of what you want to be changed. You can upload/paste screenshots here. For full translation, please upload zip file of translated files or full project
validations:
required: true
+47
View File
@@ -0,0 +1,47 @@
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
name: Checkout Code
- name: Setup MSBuild Path
uses: microsoft/setup-msbuild@v1.3.1
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
- name: Restore NuGet Packages
run: nuget restore APKToolGUI.sln
- name: Build Application
run: msbuild APKToolGUI.sln /p:Configuration=Release
- name: Create package directory
run: mkdir package
- name: Copy essential files to package
shell: pwsh
run: |
Copy-Item APKToolGUI/bin/Release/APKToolGUI.exe package/
Copy-Item changelog.txt package/Changelog.txt
if (Test-Path APKToolGUI/bin/Release/Resources) {
Copy-Item APKToolGUI/bin/Release/Resources package/ -Recurse
}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: APKToolGUI
path: package/
+96 -102
View File
@@ -1,13 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Costura.Fody.6.0.0\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.6.0.0\build\Costura.Fody.props')" />
<Import Project="..\packages\Resource.Embedder.2.2.0\build\Resource.Embedder.props" Condition="Exists('..\packages\Resource.Embedder.2.2.0\build\Resource.Embedder.props')" />
<Import Project="..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{AA2C8BC1-ED99-463A-9363-F6A87FB2CF38}</ProjectGuid>
<!-- WPF project type GUID first, then C#. Enables XAML markup compilation
(via Microsoft.WinFX.targets) alongside the existing WinForms UI during
the staged WinForms->WPF conversion. -->
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>APKToolGUI</RootNamespace>
@@ -77,15 +81,12 @@
<PropertyGroup />
<PropertyGroup />
<ItemGroup>
<Reference Include="Costura, Version=5.7.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.5.7.0\lib\netstandard1.0\Costura.dll</HintPath>
<Reference Include="Costura, Version=6.0.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.6.0.0\lib\netstandard2.0\Costura.dll</HintPath>
</Reference>
<Reference Include="CustomMarshalers" />
<Reference Include="DarkNet, Version=2.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\DarkNet.2.3.0\lib\net452\DarkNet.dll</HintPath>
</Reference>
<Reference Include="DotNetZip, Version=1.16.0.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
<HintPath>..\packages\DotNetZip.1.16.0\lib\net40\DotNetZip.dll</HintPath>
<Reference Include="Microsoft.Bcl.HashCode, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Bcl.HashCode.6.0.0\lib\net462\Microsoft.Bcl.HashCode.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.Build.Utilities.v4.0" />
@@ -112,8 +113,11 @@
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="ResourceLoader, Version=3.2.4.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\ResourceLoader.3.2.4\lib\netstandard2.0\ResourceLoader.dll</HintPath>
<Reference Include="ProDotNetZip, Version=1.20.0.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
<HintPath>..\packages\ProDotNetZip.1.20.0\lib\netstandard2.0\ProDotNetZip.dll</HintPath>
</Reference>
<Reference Include="ResourceLoader, Version=3.3.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\ResourceLoader.3.3.1\lib\netstandard2.0\ResourceLoader.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.AppContext, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
@@ -121,8 +125,11 @@
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
<Reference Include="System.Buffers, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Buffers.4.6.1\lib\net462\System.Buffers.dll</HintPath>
</Reference>
<Reference Include="System.Collections.Immutable, Version=9.0.0.10, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Collections.Immutable.9.0.10\lib\net462\System.Collections.Immutable.dll</HintPath>
</Reference>
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.configuration" />
@@ -132,15 +139,20 @@
<Private>True</Private>
</Reference>
<Reference Include="System.Core" />
<Reference Include="System.Data.OracleClient" />
<Reference Include="System.Design" />
<Reference Include="System.Diagnostics.DiagnosticSource, Version=7.0.0.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.7.0.2\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath>
<Reference Include="System.Diagnostics.DiagnosticSource, Version=9.0.0.10, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.DiagnosticSource.9.0.10\lib\net462\System.Diagnostics.DiagnosticSource.dll</HintPath>
</Reference>
<Reference Include="System.Diagnostics.Tracing, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Diagnostics.Tracing.4.3.0\lib\net462\System.Diagnostics.Tracing.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Formats.Nrbf, Version=9.0.0.10, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Formats.Nrbf.9.0.10\lib\net462\System.Formats.Nrbf.dll</HintPath>
</Reference>
<Reference Include="System.Globalization.Calendars, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Globalization.Calendars.4.3.0\lib\net46\System.Globalization.Calendars.dll</HintPath>
<Private>True</Private>
@@ -151,17 +163,7 @@
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.IO.Compression, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\packages\System.IO.Compression.4.3.0\lib\net46\System.IO.Compression.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.IO.Compression.ZipFile, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\packages\System.IO.Compression.ZipFile.4.3.0\lib\net46\System.IO.Compression.ZipFile.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.IO.FileSystem, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.IO.FileSystem.4.3.0\lib\net46\System.IO.FileSystem.dll</HintPath>
<Private>True</Private>
@@ -183,9 +185,10 @@
<Private>True</Private>
</Reference>
<Reference Include="System.Management" />
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
<Reference Include="System.Memory, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.6.3\lib\net462\System.Memory.dll</HintPath>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Net.Http, Version=4.1.1.3, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Net.Http.4.3.4\lib\net46\System.Net.Http.dll</HintPath>
<Private>True</Private>
@@ -197,24 +200,27 @@
<Private>True</Private>
</Reference>
<Reference Include="System.Numerics" />
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
<Reference Include="System.Numerics.Vectors, Version=4.1.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Numerics.Vectors.4.6.1\lib\net462\System.Numerics.Vectors.dll</HintPath>
</Reference>
<Reference Include="System.Reflection, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Reflection.4.3.0\lib\net462\System.Reflection.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.Resources.Extensions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Resources.Extensions.7.0.0\lib\net462\System.Resources.Extensions.dll</HintPath>
<Reference Include="System.Reflection.Metadata, Version=9.0.0.10, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Reflection.Metadata.9.0.10\lib\net462\System.Reflection.Metadata.dll</HintPath>
</Reference>
<Reference Include="System.Resources.Extensions, Version=9.0.0.10, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Resources.Extensions.9.0.10\lib\net462\System.Resources.Extensions.dll</HintPath>
</Reference>
<Reference Include="System.Runtime, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.4.3.1\lib\net462\System.Runtime.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.1.2\lib\net462\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Extensions, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Runtime.Extensions.4.3.1\lib\net462\System.Runtime.Extensions.dll</HintPath>
@@ -232,6 +238,9 @@
<Private>True</Private>
</Reference>
<Reference Include="System.Security" />
<Reference Include="System.Security.AccessControl, Version=6.0.0.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.AccessControl.6.0.1\lib\net461\System.Security.AccessControl.dll</HintPath>
</Reference>
<Reference Include="System.Security.Cryptography.Algorithms, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Cryptography.Algorithms.4.3.1\lib\net463\System.Security.Cryptography.Algorithms.dll</HintPath>
<Private>True</Private>
@@ -252,11 +261,22 @@
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.Security.Permissions, Version=9.0.0.10, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Permissions.9.0.10\lib\net462\System.Security.Permissions.dll</HintPath>
</Reference>
<Reference Include="System.Security.Principal.Windows, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Security.Principal.Windows.5.0.0\lib\net461\System.Security.Principal.Windows.dll</HintPath>
</Reference>
<Reference Include="System.ServiceProcess" />
<Reference Include="System.Text.Encoding.CodePages, Version=9.0.0.10, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Text.Encoding.CodePages.9.0.10\lib\net462\System.Text.Encoding.CodePages.dll</HintPath>
</Reference>
<Reference Include="System.Text.RegularExpressions, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Text.RegularExpressions.4.3.1\lib\net463\System.Text.RegularExpressions.dll</HintPath>
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="System.Transactions" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
@@ -274,23 +294,6 @@
<Reference Include="WindowsFormsIntegration" />
</ItemGroup>
<ItemGroup>
<Compile Include="AndroidRes\AndroidResourceMerger.cs" />
<Compile Include="AndroidRes\AndroidResources.cs" />
<Compile Include="AndroidRes\Model\AndroidAttribute.cs" />
<Compile Include="AndroidRes\Model\AndroidBool.cs" />
<Compile Include="AndroidRes\Model\AndroidInteger.cs" />
<Compile Include="AndroidRes\Model\AndroidPlural.cs" />
<Compile Include="AndroidRes\Model\AndroidPublic.cs" />
<Compile Include="AndroidRes\Model\AndroidString.cs" />
<Compile Include="AndroidRes\Model\AndroidStyle.cs" />
<Compile Include="AndroidRes\Model\AndroidStyleable.cs" />
<Compile Include="AndroidRes\Model\AndroidTypedItem.cs" />
<Compile Include="AndroidRes\Model\GenericArrayTypes.cs" />
<Compile Include="AndroidRes\Model\GenericTypes.cs" />
<Compile Include="AndroidRes\Model\Generic\AndroidGeneric.cs" />
<Compile Include="AndroidRes\Model\Generic\AndroidGenericArray.cs" />
<Compile Include="AndroidRes\Model\Generic\AndroidResource.cs" />
<Compile Include="AndroidRes\Util\ClassExtensions.cs" />
<Compile Include="TaskBar\TaskBarJumpList.cs" />
<Compile Include="Utils\Log.cs" />
<Compile Include="ApkTool\AaptParser.cs" />
@@ -312,44 +315,45 @@
</Compile>
<Compile Include="ApkTool\Adb.cs" />
<Compile Include="ApkTool\Zipalign.cs" />
<Compile Include="Handlers\AdbControlEventHandlers.cs" />
<Compile Include="Handlers\ApkinfoControlEventHandlers.cs" />
<Compile Include="Handlers\BaksmaliControlEventHandlers.cs" />
<Compile Include="Handlers\BuildControlEventHandlers.cs" />
<Compile Include="Handlers\DecodeControlEventHandlers.cs" />
<Compile Include="Handlers\DragDropHandlers.cs" />
<Compile Include="Handlers\FrameworkControlEventHandlers.cs" />
<Compile Include="Handlers\MainWindowEventHandlers.cs" />
<Compile Include="Handlers\MenuItemHandlers.cs" />
<Compile Include="Handlers\SignControlEventHandlers.cs" />
<Compile Include="Handlers\SmaliControlEventHandlers.cs" />
<Compile Include="Handlers\ZipalignControlEventHandlers.cs" />
<Compile Include="Controls\DarkTheme.cs" />
<Compile Include="Controls\NativeDarkMode.cs" />
<Compile Include="Controls\WpfTheme.cs" />
<Compile Include="Controls\NumericUpDown.cs" />
<Compile Include="Controls\LogView.cs" />
<Compile Include="Utils\AdminUtils.cs" />
<Compile Include="Utils\ApkIconExtractor.cs" />
<Compile Include="Utils\BitmapUtils.cs" />
<Compile Include="Utils\CMD.cs" />
<Compile Include="Utils\CommonUtils.cs" />
<Compile Include="Utils\DirectoryUtils.cs" />
<Compile Include="Utils\DragDropUtils.cs" />
<Compile Include="Utils\ExplorerContextMenu.cs" />
<Compile Include="Forms\FormAboutBox.cs">
<SubType>Form</SubType>
<Page Include="Forms\AboutWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="Forms\AboutWindow.xaml.cs">
<DependentUpon>AboutWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Forms\FormAboutBox.Designer.cs">
<DependentUpon>FormAboutBox.cs</DependentUpon>
<Page Include="Forms\SettingsWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="Forms\SettingsWindow.xaml.cs">
<DependentUpon>SettingsWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Forms\FormMain.cs">
<SubType>Form</SubType>
<Page Include="Forms\MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="Forms\MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Forms\FormMain.Designer.cs">
<DependentUpon>FormMain.cs</DependentUpon>
</Compile>
<Compile Include="Forms\FormSettings.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\FormSettings.Designer.cs">
<DependentUpon>FormSettings.cs</DependentUpon>
<Compile Include="Forms\MainWindow.Logic.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
</Compile>
<Page Include="Themes\Controls.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="Java\JarProcess.cs">
<SubType>Component</SubType>
</Compile>
@@ -370,28 +374,13 @@
<Compile Include="Web\WebDownload.cs">
<SubType>Component</SubType>
</Compile>
<EmbeddedResource Include="Forms\FormAboutBox.resx">
<DependentUpon>FormAboutBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\FormAboutBox.ru.resx">
<DependentUpon>FormAboutBox.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\FormMain.resx">
<DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\FormMain.ru.resx">
<DependentUpon>FormMain.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\FormSettings.resx">
<DependentUpon>FormSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\FormSettings.ru.resx">
<DependentUpon>FormSettings.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Languages\Language.de.resx" />
<EmbeddedResource Include="Languages\Language.hu.resx" />
<EmbeddedResource Include="Languages\Language.pt-BR.resx" />
<EmbeddedResource Include="Languages\Language.ru.resx" />
<EmbeddedResource Include="Languages\Language.tr.resx" />
<EmbeddedResource Include="Languages\Language.zh-CN.resx" />
<EmbeddedResource Include="Languages\Language.vi-VN.resx" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
@@ -427,7 +416,7 @@
<None Include="Resources\Error.png" />
<None Include="Resources\android-thin.ico" />
<None Include="Resources\Done.png" />
<None Include="Resources\android.png" />
<Resource Include="Resources\android.png" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client">
@@ -453,6 +442,9 @@
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- NOTE: WPF XAML markup compilation (Microsoft.WinFX.targets, for Page / Resource
items) is pulled in automatically because ProjectTypeGuids includes the WPF GUID. -->
<PropertyGroup>
<PreBuildEvent>if not exist "$(ProjectDir)\$(OutDir)\Resources" xcopy "$(SolutionDir)\Tools" "$(ProjectDir)\$(OutDir)\Resources" /Y /I /S</PreBuildEvent>
</PropertyGroup>
@@ -460,19 +452,19 @@
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.5.7.0\build\Costura.Fody.props'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets'))" />
<Error Condition="!Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets'))" />
<Error Condition="!Exists('..\packages\Resource.Embedder.2.2.0\build\Resource.Embedder.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Resource.Embedder.2.2.0\build\Resource.Embedder.props'))" />
<Error Condition="!Exists('..\packages\Fody.6.8.0\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.8.0\build\Fody.targets'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.6.0.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.6.0.0\build\Costura.Fody.props'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.6.0.0\build\Costura.Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.6.0.0\build\Costura.Fody.targets'))" />
<Error Condition="!Exists('..\packages\Fody.6.9.3\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.9.3\build\Fody.targets'))" />
<Error Condition="!Exists('..\packages\System.ValueTuple.4.6.1\build\net471\System.ValueTuple.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\System.ValueTuple.4.6.1\build\net471\System.ValueTuple.targets'))" />
</Target>
<Import Project="..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.5.7.0\build\Costura.Fody.targets')" />
<Import Project="..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="..\packages\Fody.6.8.0\build\Fody.targets" Condition="Exists('..\packages\Fody.6.8.0\build\Fody.targets')" />
<Import Project="..\packages\Costura.Fody.6.0.0\build\Costura.Fody.targets" Condition="Exists('..\packages\Costura.Fody.6.0.0\build\Costura.Fody.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
@@ -480,4 +472,6 @@
<Target Name="AfterBuild">
</Target>
-->
<Import Project="..\packages\Fody.6.9.3\build\Fody.targets" Condition="Exists('..\packages\Fody.6.9.3\build\Fody.targets')" />
<Import Project="..\packages\System.ValueTuple.4.6.1\build\net471\System.ValueTuple.targets" Condition="Exists('..\packages\System.ValueTuple.4.6.1\build\net471\System.ValueTuple.targets')" />
</Project>
+2 -1
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishUrlHistory>publish\</PublishUrlHistory>
@@ -9,6 +9,7 @@
<ErrorReportUrlHistory />
<FallbackCulture>ru-RU</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
<ProjectView>ShowAllFiles</ProjectView>
</PropertyGroup>
<PropertyGroup>
<EnableSecurityDebugging>false</EnableSecurityDebugging>
@@ -1,562 +0,0 @@
//https://github.com/shadow578/ApksMerger
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
using APKSMerger.AndroidRes.Model;
using APKSMerger.AndroidRes.Model.Generic;
using APKSMerger.Util;
using APKToolGUI.Utils;
namespace APKSMerger.AndroidRes
{
/// <summary>
/// merges android resource files
/// </summary>
public sealed class AndroidMerger
{
/// <summary>
/// check capabilities of the base and splits, warn if (common) libs are missing
/// </summary>
/// <param name="locales">list of supported locales; key is locale, value is name of dir that first included it</param>
/// <param name="abis">list of supported abis; key is abi, value is name of dir that first included it</param>
/// <param name="baseDir">base project dir</param>
/// <param name="splits">split dirs</param>
public void CollectCapabilities(out Dictionary<string, string> locales, out Dictionary<string, string> abis,
DirectoryInfo baseDir, params DirectoryInfo[] splits)
{
//init dicts
Log.i("collecting info about splits...");
locales = new Dictionary<string, string>();
abis = new Dictionary<string, string>();
//combine base and splits into one list
List<DirectoryInfo> allDir = new List<DirectoryInfo>();
allDir.Add(baseDir);
allDir.AddRange(splits);
//check all dirs, collect infos about them
foreach (DirectoryInfo d in allDir)
{
//check exists
if (!d.Exists)
{
Directory.CreateDirectory(baseDir.FullName);
Log.w($"Create baseDir {baseDir.FullName}");
continue;
}
//get all library archs included in this dir
//a decompiled apk dir may have a lib directory that contains native libraries for all archs supported by that apk (or split)
//the archs are splitted into their own directories, depending on the arch they're for
string libsDir = Path.Combine(d.FullName, "lib");
if (Directory.Exists(libsDir))
{
foreach (string arch in Directory.EnumerateDirectories(libsDir))
{
//get name of arch
string archName = Path.GetFileName(arch);
//add arch to lists of abis
if (!abis.ContainsKey(archName))
{
Log.v($"{d.Name} includes abi {archName}");
abis.Add(archName, d.Name);
}
else
{
//double arch?
Log.w($"arch {archName} already included by {abis[archName]} - in {d.Name}");
}
}
}
else
{
Log.v($"{d.Name} does not include abis");
}
//get all locales included in this dir
//extra locales are defined in strings.xml files in directories named values-<LOCALE_NAME>
//locale name seems to be formatted as ISO 639, but with an extra r (so en-GB == en-rGB)
string resDir = Path.Combine(d.FullName, "res");
if (Directory.Exists(resDir))
{
//add all dirs matching pattern (like values-en-rGB)
foreach (string lang in Directory.EnumerateDirectories(resDir, @"values-*"))
{
//check directory contains a strings.xml
if (!File.Exists(Path.Combine(lang, "strings.xml")))
continue;
//get name of lang
string langName = Path.GetFileName(lang).ReplaceFirst("values-", "");
//add lang to list of locales
if (!locales.ContainsKey(langName))
{
Log.v($"{d.Name} included locale {langName}");
locales.Add(langName, d.Name);
}
else
{
//double lang?
Log.w($"locale {langName} already included by {locales[langName]} - in {d.Name}");
}
}
}
else
{
Log.v($"{d.Name} does not include locales");
}
}
}
/// <summary>
/// merge all splits into the base project dir
/// </summary>
/// <param name="baseDir">base project dir</param>
/// <param name="splits">split dirs to merge</param>
public void MergeSplits(DirectoryInfo baseDir, params DirectoryInfo[] splits)
{
//Log.v($"Base dir: {baseDir.FullName}");
//check all dirs exists
if (!baseDir.Exists)
{
Directory.CreateDirectory(baseDir.FullName);
Log.w($"Create baseDir {baseDir.FullName}");
//return;
}
foreach (DirectoryInfo dir in splits)
{
//Debug.WriteLine(dir);
if (!dir.Exists)
{
Log.e($"split dir {dir.FullName} dos not exist!");
return;
}
}
List<string> assetPacks = new List<string>();
//enumarate all splitted files
Dictionary</*original*/string, /*replacement*/string> globalNameReplacements = new Dictionary<string, string>();
foreach (DirectoryInfo split in splits)
{
//Log.v($"Split dir: {split.FullName}");
split.EnumerateAllFiles("*.*", true, (FileInfo splittedFile) =>
{
if (splittedFile.FullName.Contains("AndroidManifest.xml"))
{
string manifest = File.ReadAllText(splittedFile.FullName);
string splitModule = StringExt.Regex(@"(?<= split=\"")(.*?)(?=\"")", manifest);
if (!String.IsNullOrEmpty(splitModule) && manifest.Contains("dist:type=\"asset-pack\""))
{
Log.v($"Add module: {splitModule}");
assetPacks.Add(splitModule);
}
}
//Debug.WriteLine($"Splited file: {splittedFile.FullName}");
//check if should process
string splitRel = PathUtils.GetRelativePath(split.FullName, splittedFile.FullName);
if (!ShouldProcess(splittedFile, split))
{
//Log.v($"skip excluded split file {splitRel}");
return;
}
//Debug.WriteLine($"Split rel dir: {splitRel}");
//Debug.WriteLine($"base Dir: {baseDir.FullName}");
List<string> splitList = splitRel.Split('\\').ToList();
splitList.RemoveAt(0);
string outputString = string.Join("\\", splitList);
//get file path for base dir
FileInfo baseFile = new FileInfo(Path.Combine(baseDir.FullName, outputString));
//Debug.WriteLine($"Base file: {baseFile}");
//Log.v($"Base file: {baseFile}");
//create target dir in base if needed
string baseFileDir = Path.GetDirectoryName(baseFile.FullName);
//Log.v($"Base file´dir: {baseFileDir}");
//Debug.WriteLine($"Base file dir: {baseFileDir}");
if (!Directory.Exists(baseFileDir))
{
Directory.CreateDirectory(baseFileDir);
}
//check file exists in base and is resource xml
if (!IsResourceXml(baseFile))
{
//nothing to merge, just copy
Log.v($"Move split file {splitRel} to {baseFile}");
if (File.Exists(baseFile.FullName))
File.Delete(baseFile.FullName);
splittedFile.MoveTo(baseFile.FullName);
}
else
{
//already exists, merge
//Debug.WriteLine($"Merge split file {splitRel} with {baseFile}");
//skip if files are equal
if (baseFile.HasSameHash(splittedFile))
{
Log.vv($"base and split of {splitRel} have same hash, skipping...");
return;
}
//check base and split are both resource xmls, if not skip
if (/*!IsResourceXml(baseFile) ||*/ !IsResourceXml(splittedFile))
{
Log.vv($"split of {splitRel} is not resource xml, skipping...");
return;
}
if (splittedFile.FullName.Contains("styles.xml"))
{
Debug.WriteLine("Break");
}
//merge
MergeResourceXML(baseFile, splittedFile, globalNameReplacements);
}
});
}
//skip replacement if no global name replacements are available
if (globalNameReplacements.Count <= 0)
{
Log.d("skip global name replacements: count is 0");
}
//replace names globally (in xml only)
Log.d($"process {globalNameReplacements.Count} global name replacements...");
foreach (string org in globalNameReplacements.Keys)
{
Log.v($"Replace {org} with {globalNameReplacements[org]}");
//Debug.Write($"replace {org} with {globalNameReplacements[org]}");
}
baseDir.EnumerateAllFiles("*.xml", true, (FileInfo file) =>
{
//Debug.WriteLine($"Name replace in {file.FullName}");
//create temp file
FileInfo temp = new FileInfo(Path.GetTempFileName());
//copy from input to temp, replace everything on replace list
using (StreamReader inp = file.OpenText())
using (StreamWriter oup = temp.CreateText())
{
string ln;
while ((ln = inp.ReadLine()) != null)
{
//replace all
foreach (string org in globalNameReplacements.Keys)
{
string dummy = StringExt.Regex(@"APKTOOL_DUMMY_([A-Za-z0-9])\w", ln);
if (ln.Contains(dummy))
{
//To avoid replacing wrong dummies. Don't know if there is better way
ln = ln.Replace(org + "<", globalNameReplacements[org] + "<");
ln = ln.Replace(org + "\"", globalNameReplacements[org] + "\"");
//Debug.WriteLine($"Replaced {org} with {globalNameReplacements[org]} in {file.FullName}");
}
//if (ln.Contains(org))
// ln = Regex.Replace(ln, @"APKTOOL_DUMMY_([A-Za-z0-9])\w", globalNameReplacements[org]);
}
//write back
oup.WriteLine(ln);
}
}
//move temp to input and delete temp if still exists
string tempPath = temp.FullName;
if (File.Exists(file.FullName))
{
File.Delete(file.FullName);
}
temp.MoveTo(file.FullName);
if (File.Exists(tempPath))
{
File.Delete(tempPath);
}
});
//remove splits from android manifest
FileInfo baseManifest = new FileInfo(Path.Combine(baseDir.FullName, "AndroidManifest.xml"));
PatchManifest(baseManifest, assetPacks);
FileInfo baseYml = new FileInfo(Path.Combine(baseDir.FullName, "apktool.yml"));
PatchYml(baseYml, assetPacks);
}
/// <summary>
/// Patch the AndroidManifest.xml to not use splits
/// </summary>
/// <param name="manifest">the manifest xml to patch</param>
void PatchManifest(FileInfo manifest, List<string> assetPacks)
{
Log.d($"patching manifest {manifest.FullName}...");
//check the file exists
if (!manifest.Exists)
{
Log.e("manifest to patch does not exist!");
return;
}
string modules = null;
if (assetPacks.Count != 0)
{
foreach (string asset in assetPacks)
{
modules += "," + asset;
}
}
//prepare targets to remove
string[] replaceTargets = { @"android:isSplitRequired=""true""" };
List<string> removeTargets = new List<string> { @"meta-data android:name=""com.android.stamp.source""",
@"meta-data android:name=""com.android.vending.derived.apk.id""",
@"meta-data android:name=""com.android.vending.splits.required""",
@"meta-data android:name=""com.android.vending.splits"""};
//create temp file
FileInfo temp = new FileInfo(Path.GetTempFileName());
//copy from input to temp, replace everything on replace list
using (StreamReader inp = manifest.OpenText())
using (StreamWriter oup = temp.CreateText())
{
string ln;
while ((ln = inp.ReadLine()) != null)
{
//remove all
foreach (string target in replaceTargets)
{
ln = ln.Replace(target, "");
}
if (removeTargets.Any(w => ln.Contains(w)))
continue;
if (ln.Contains("STAMP_TYPE_DISTRIBUTION_APK"))
ln = ln.Replace("STAMP_TYPE_DISTRIBUTION_APK", "STAMP_TYPE_STANDALONE_APK");
if (ln.Contains("</application>") && !String.IsNullOrEmpty(modules))
{
oup.WriteLine(@" <meta-data android:name=""com.android.dynamic.apk.fused.modules"" android:value=""base" + modules + @"""/>");
}
//write back
oup.WriteLine(ln);
}
}
//move temp to input and delete temp if still exists
string tempPath = temp.FullName;
if (File.Exists(manifest.FullName))
{
File.Delete(manifest.FullName);
}
temp.MoveTo(manifest.FullName);
if (File.Exists(tempPath))
{
File.Delete(tempPath);
}
}
void PatchYml(FileInfo yml, List<string> assetPacks)
{
Log.d($"patching apktool.yml {yml.FullName}...");
//check the file exists
if (!yml.Exists)
{
Log.e("manifest to patch does not exist!");
return;
}
//create temp file
FileInfo temp = new FileInfo(Path.GetTempFileName());
//copy from input to temp, replace everything on replace list
using (StreamReader inp = yml.OpenText())
using (StreamWriter oup = temp.CreateText())
{
string ln;
while ((ln = inp.ReadLine()) != null)
{
if (ln.Contains("doNotCompress:") && assetPacks.Count != 0)
{
oup.WriteLine(ln);
foreach (string asset in assetPacks)
{
oup.WriteLine("- assets/assetpack/" + asset);
}
continue;
}
//write back
oup.WriteLine(ln);
}
}
//move temp to input and delete temp if still exists
string tempPath = temp.FullName;
if (File.Exists(yml.FullName))
{
File.Delete(yml.FullName);
}
temp.MoveTo(yml.FullName);
if (File.Exists(tempPath))
{
File.Delete(tempPath);
}
}
/// <summary>
/// merge two splitted resource xmls, overwrite a with merged
/// </summary>
/// <param name="a">file a to merge</param>
/// <param name="b">file b to merge</param>
/// <param name="globalNameReplacements">dictionary that can be used to replace names of resources globally</param>
void MergeResourceXML(FileInfo a, FileInfo b, Dictionary</*original*/string, /*replacement*/string> globalNameReplacements)
{
//deserialize both
AndroidResources resBase = AndroidResources.FromFile(a.FullName);
AndroidResources resSplit = AndroidResources.FromFile(b.FullName);
//merge resources to resA
foreach (AndroidResource res in resSplit.Values)
{
if (res is AndroidPublic splitP)
{
//entry of public.xml, special merge (Id has to be unique)
//try to find public with same id in base apk
AndroidPublic baseP = resBase.FindPublicWithId(splitP.Id);
if (baseP == null || !baseP.Type.Equals(splitP.Type))
{
//id not found or wrong type, add from split
resBase.Values.Add(splitP);
}
else
{
//id with correct type found in base,
//check if name of base is apktool dummy and name of split is not
if (baseP.Name.StartsWith("APKTOOL_DUMMY") && !splitP.Name.StartsWith("APKTOOL_DUMMY"))
{
try
{
Log.v($"Replace {baseP.Name} with {splitP.Name}...");
globalNameReplacements.Add(baseP.Name, splitP.Name);
baseP.Name = splitP.Name;
}
catch (Exception ex)
{
Log.v($"Error replacing {baseP.Name} with {splitP.Name}...");
Debug.WriteLine(ex.Message);
}
}
}
}
else
{
//normal resource entry (string / color / ...)
if (!resBase.Values.Contains(res))
{
resBase.Values.Add(res);
}
}
}
//serialize back to a
resBase.ToFile(a.FullName);
}
/// <summary>
/// check if the xml file contains the resources xml tag
/// </summary>
/// <param name="xml">the xml to check</param>
/// <returns>does the xml contain the tag?</returns>
bool IsResourceXml(FileInfo f)
{
//check file exists
if (!f.Exists) return false;
try
{
//Net reactor cause error
//check xml root
XmlDocument xml = new XmlDocument();
xml.Load(f.FullName);
//Log.v($"IsResourceXml 5");
return xml.DocumentElement.Name.Equals("resources", StringComparison.OrdinalIgnoreCase);
}
catch
{
//probably bad xml
return false;
}
}
/// <summary>
/// should the file be processed?
/// Example for files to exclude from processing are AndroidManifest.xml, apktool.yml, and META-INF/*
/// </summary>
/// <param name="file">the file to check</param>
/// <param name="projDir">the project dir the file is in</param>
/// <returns>process the file?</returns>
bool ShouldProcess(FileInfo file, DirectoryInfo projDir)
{
//get relative path
string filePathRel = PathUtils.GetRelativePath(projDir.FullName, file.FullName).TrimStart('/').TrimStart('\\');
//check if in META-INF (exclude all)
//if (filePathRel.StartsWith("META-INF", StringComparison.OrdinalIgnoreCase))
// return false;
//check if in original (exlude all)
if (filePathRel.StartsWith("original", StringComparison.OrdinalIgnoreCase))
return false;
//check if AndroidManifest.xml OR apktool.yml
if (file.Name.Equals("androidmanifest.xml", StringComparison.OrdinalIgnoreCase)
|| file.Name.Equals("apktool.yml", StringComparison.OrdinalIgnoreCase))
return false;
//check if AndroidManifest.xml OR apktool.yml
if (file.Name.Equals("resources.arsc", StringComparison.OrdinalIgnoreCase))
return false;
//check if drawables.yml
//if (file.Name.Equals("drawables.xml", StringComparison.OrdinalIgnoreCase))
// return false;
//all ok, include
return true;
}
}
}
-103
View File
@@ -1,103 +0,0 @@
//https://github.com/shadow578/ApksMerger
using APKSMerger.AndroidRes.Model;
using APKSMerger.AndroidRes.Model.Generic;
using System;
using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes
{
[XmlRoot("resources")]
public sealed class AndroidResources
{
//basic
[XmlElement("bool", Type = typeof(AndroidBool))]
[XmlElement("integer", Type = typeof(AndroidInteger))]
[XmlElement("dimen", Type = typeof(AndroidDimension))]
[XmlElement("drawable", Type = typeof(AndroidDrawable))]
[XmlElement("color", Type = typeof(AndroidColor))]
[XmlElement("fraction", Type = typeof(AndroidFraction))]
//extended
[XmlElement("attr", Type = typeof(AndroidAttribute))]
[XmlElement("string", Type = typeof(AndroidString))]
[XmlElement("item", Type = typeof(AndroidTypedItem))]
[XmlElement("public", Type = typeof(AndroidPublic))]
//complex
[XmlElement("style", Type = typeof(AndroidStyle))]
[XmlElement("plurals", Type = typeof(AndroidPlural))]
[XmlElement("string-array", Type = typeof(AndroidStringArray))]
[XmlElement("integer-array", Type = typeof(AndroidIntegerArray))]
[XmlElement("array", Type = typeof(AndroidGenericArray))]
[XmlElement("declare-styleable", Type = typeof(AndroidStyleable))]
public List<AndroidResource> Values { get; set; } = new List<AndroidResource>();
/// <summary>
/// Find a AndroidPublic with matching id
/// </summary>
/// <param name="id">the id to find</param>
/// <returns>matching public, or null if not found</returns>
public AndroidPublic FindPublicWithId(string id)
{
foreach(AndroidResource res in Values)
{
if((res is AndroidPublic pub) && pub.Id.Equals(id))
{
return pub;
}
}
return null;
}
/// <summary>
/// Deserialize a file into a object
/// </summary>
/// <param name="file">the file to deserialize</param>
/// <returns>the object</returns>
public static AndroidResources FromFile(string file)
{
//check file
if (!File.Exists(file)) return null;
//deserialize
try
{
XmlSerializer ser = new XmlSerializer(typeof(AndroidResources));
using (StreamReader reader = File.OpenText(file))
{
return ser.Deserialize(reader) as AndroidResources;
}
}
catch
{
return null;
}
}
/// <summary>
/// serialize into a file
/// </summary>
/// <param name="file">the file to serialize to, will be overwritten if exists</param>
/// <returns>write file ok?</returns>
public bool ToFile(string file)
{
try
{
XmlSerializer ser = new XmlSerializer(typeof(AndroidResources));
using (StreamWriter writer = File.CreateText(file))
{
ser.Serialize(writer, this, new XmlSerializerNamespaces());
return true;
}
}
catch
{
return false;
}
}
}
}
@@ -1,15 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidAttribute : AndroidResource
{
[XmlAttribute("format")]
public string Format { get; set; }
//[XmlText]
//[XmlAttribute("value")]
public string Value { get; set; }
}
}
@@ -1,12 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidBool : AndroidResource
{
//[XmlText]
//[XmlAttribute("value")]
public bool Value { get; set; }
}
}
@@ -1,12 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidInteger : AndroidResource
{
//[XmlText]
//[XmlAttribute("value")]
public int Value { get; set; }
}
}
@@ -1,21 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidPlural : AndroidResource
{
public sealed class Plural
{
[XmlAttribute("quantitiy")]
public string Quantity { get; set; }
[XmlText]
public string Value { get; set; }
}
[XmlElement("item", Type = typeof(Plural))]
public List<Plural> Values { get; set; } = new List<Plural>();
}
}
@@ -1,14 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidPublic : AndroidResource
{
[XmlAttribute("type")]
public string Type { get; set; }
[XmlAttribute("id")]
public string Id { get; set; }
}
}
@@ -1,18 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidString : AndroidResource
{
//[XmlAttribute("formatted")]
//public bool Formatted { get; set; }
//[XmlAttribute("translatable")]
//public bool Translateable { get; set; }
// [XmlText]
//[XmlAttribute("value")]
public string Value { get; set; }
}
}
@@ -1,15 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidStyle : AndroidResource
{
[XmlAttribute("parent")]
public string Parent { get; set; }
[XmlElement("item", Type = typeof(AndroidGeneric))]
public List<AndroidGeneric> Items { get; set; } = new List<AndroidGeneric>();
}
}
@@ -1,12 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidStyleable : AndroidResource
{
[XmlElement("attr", Type = typeof(AndroidAttribute))]
public List<AndroidAttribute> Values { get; set; } = new List<AndroidAttribute>();
}
}
@@ -1,15 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidTypedItem : AndroidResource
{
[XmlAttribute("type")]
public string Type { get; set; }
//[XmlText]
//[XmlAttribute("value")]
public string Value { get; set; }
}
}
@@ -1,11 +0,0 @@
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model.Generic
{
public class AndroidGeneric : AndroidResource
{
[XmlText]
//[XmlAttribute("value")]
public string Value { get; set; }
}
}
@@ -1,18 +0,0 @@
using System.Collections.Generic;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model.Generic
{
public class AndroidGenericArray : AndroidResource
{
public sealed class Item
{
// [XmlText]
//[XmlAttribute("value")]
public string Value { get; set; }
}
[XmlElement("item", Type = typeof(Item))]
public List<Item> Values { get; set; } = new List<Item>();
}
}
@@ -1,22 +0,0 @@
using System;
using System.Diagnostics;
using System.Xml.Serialization;
namespace APKSMerger.AndroidRes.Model.Generic
{
public class AndroidResource
{
[XmlAttribute(AttributeName = "name")]
public string Name { get; set; }
public override bool Equals(object obj)
{
//check other object is of correct type, otherwise not equal
if (!(obj is AndroidResource other)) return false;
//check if name is equal
//Debug.WriteLine("Xml name: " + other.Name);
return Name.Equals(other.Name, StringComparison.OrdinalIgnoreCase);
}
}
}
@@ -1,8 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidStringArray : AndroidGenericArray { }
public sealed class AndroidIntegerArray : AndroidGenericArray { }
}
@@ -1,12 +0,0 @@
using APKSMerger.AndroidRes.Model.Generic;
namespace APKSMerger.AndroidRes.Model
{
public sealed class AndroidDimension : AndroidGeneric { }
public sealed class AndroidDrawable : AndroidGeneric { }
public sealed class AndroidColor : AndroidGeneric { }
public sealed class AndroidFraction : AndroidGeneric { }
}
@@ -1,115 +0,0 @@
using System;
using System.IO;
using System.Security.Cryptography;
using System.Threading.Tasks;
namespace APKSMerger.Util
{
/// <summary>
/// extension methods
/// </summary>
public static class ClassExtensions
{
/// <summary>
/// replaces the first occurance of the pattern with the replacement
/// </summary>
/// <param name="s">the string to replace in</param>
/// <param name="pattern">the pattern to replace</param>
/// <param name="replacement">the replacement for the pattern</param>
/// <returns>a string in wich the first occurance of the pattern was replaced</returns>
public static string ReplaceFirst(this string s, string pattern, string replacement)
{
int pos = s.IndexOf(pattern);
if (pos < 0)
{
return s;
}
return s.Substring(0, pos) + replacement + s.Substring(pos + pattern.Length);
}
/// <summary>
/// does the array contain the string a, ignoring case?
/// </summary>
/// <param name="s">the array to check</param>
/// <param name="a">the string to check for</param>
/// <returns>contains it?</returns>
public static bool ContainsIgnoreCase(this string[] s, string a)
{
foreach (string sa in s)
{
if (sa.Equals(a, StringComparison.OrdinalIgnoreCase))
{
return true;
}
}
return false;
}
/// <summary>
/// enumerates all files in the directory (and subdirs if enabled)
/// </summary>
/// <param name="dir">the directory to enumerate in</param>
/// <param name="pattern">the pattern to filter with, eg. *.* or *.txt</param>
/// <param name="includeSubDirs">should files in subdirs be included?</param>
/// <param name="action">the action to execute for all files</param>
public static void EnumerateAllFiles(this DirectoryInfo dir, string pattern, bool includeSubDirs, Action<FileInfo> action)
{
foreach (FileInfo file in dir.EnumerateFiles(pattern, includeSubDirs ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly))
{
action.Invoke(file);
}
}
/// <summary>
/// enumerates all files in the directory (and subdirs if enabled) in parallel
/// </summary>
/// <param name="dir">the directory to enumerate in</param>
/// <param name="pattern">the pattern to filter with, eg. *.* or *.txt</param>
/// <param name="includeSubDirs">should files in subdirs be included?</param>
/// <param name="action">the action to execute for all files</param>
public static void EnumerateAllFilesParallel(this DirectoryInfo dir, string pattern, bool includeSubDirs, Action<FileInfo> action)
{
Parallel.ForEach(dir.EnumerateFiles(pattern, includeSubDirs ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly), action);
}
/// <summary>
/// checks if the two files have the same hash (MD5)
/// </summary>
/// <param name="a">the first file</param>
/// <param name="b">the file to compare</param>
/// <returns>do they have the same hash?</returns>
public static bool HasSameHash(this FileInfo a, FileInfo b)
{
return a.GetMD5().Equals(b.GetMD5());
}
/// <summary>
/// Get the md5 of the file
/// </summary>
/// <param name="f">the file to get md5 of</param>
/// <returns>md5 string of the file</returns>
public static string GetMD5(this FileInfo f)
{
using (MD5 md5 = MD5.Create())
using (FileStream stream = f.OpenRead())
{
return BitConverter.ToString(md5.ComputeHash(stream)).Replace("-", "").ToLowerInvariant();
}
}
/// <summary>
/// repeat the char n times
/// </summary>
/// <param name="c">char to repeat</param>
/// <param name="n">how often to repeat</param>
/// <returns>string with n time c</returns>
public static string Repeat(this char c, int n)
{
string s = "";
for (int i = 0; i < n; i++)
s += c;
return s;
}
}
}
+203 -65
View File
@@ -1,8 +1,11 @@
using System;
using APKToolGUI.Web;
using Ionic.Zip;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
@@ -66,10 +69,23 @@ namespace APKToolGUI.Utils
public string ApkDlLink;
public string AppIcon;
public string FullInfo;
internal string AppIcon = null;
internal string AppIcon120 = null;
internal string AppIcon160 = null;
internal string AppIcon240 = null;
internal string AppIcon320 = null;
internal string AppIcon480 = null;
internal string AppIcon640 = null;
internal string AppIcon65534 = null;
public bool Parse(string file)
{
@@ -87,34 +103,32 @@ namespace APKToolGUI.Utils
List<string> nativecode = new List<string> { };
List<string> nativecode2 = new List<string> { };
StringBuilder permissionsBuilder = new StringBuilder();
foreach (string line in lines)
{
switch (line.Split(':')[0])
{
case "package":
PackageName = StringExt.Regex(@"(?<=package: name=\')(.*?)(?=\')", line);
VersionName = StringExt.Regex(@"(?<=versionName=\')(.*?)(?=\')", line);
VersionCode = StringExt.Regex(@"(?<=versionCode=\')(.*?)(?=\')", line);
PackageName = StringExt.RegexExtract(@"(?<=package: name=\')(.*?)(?=\')", line);
VersionName = StringExt.RegexExtract(@"(?<=versionName=\')(.*?)(?=\')", line);
VersionCode = StringExt.RegexExtract(@"(?<=versionCode=\')(.*?)(?=\')", line);
break;
case "uses-permission":
Permissions += StringExt.Regex(@"(?<=name=\')(.*?)(?=\')", line) + "\n";
permissionsBuilder.AppendLine(StringExt.RegexExtract(@"(?<=name=\')(.*?)(?=\')", line));
break;
case "sdkVersion":
MinSdkVersionDetailed = SdkToAndroidVer(StringExt.Regex(@"(?<=sdkVersion:\')(.*?)(?=\')", line));
MinSdkVersion = StringExt.Regex(@"(?<=sdkVersion:\')(.*?)(?=\')", line);
MinSdkVersionDetailed = SdkToAndroidVer(StringExt.RegexExtract(@"(?<=sdkVersion:\')(.*?)(?=\')", line));
MinSdkVersion = StringExt.RegexExtract(@"(?<=sdkVersion:\')(.*?)(?=\')", line);
break;
case "targetSdkVersion":
TargetSdkVersionDetailed = SdkToAndroidVer(StringExt.Regex(@"(?<=targetSdkVersion:\')(.*?)(?=\')", line));
TargetSdkVersion = StringExt.Regex(@"(?<=targetSdkVersion:\')(.*?)(?=\')", line);
TargetSdkVersionDetailed = SdkToAndroidVer(StringExt.RegexExtract(@"(?<=targetSdkVersion:\')(.*?)(?=\')", line));
TargetSdkVersion = StringExt.RegexExtract(@"(?<=targetSdkVersion:\')(.*?)(?=\')", line);
break;
case "application-label":
AppName = StringExt.Regex(@"(?<=application-label:\')(.*?)(?=\')", line);
break;
case "application":
AppIcon = GetIcon(file, StringExt.Regex(@"(?<=icon=\')(.*?)(?=\')", line));
AppName = StringExt.RegexExtract(@"(?<=application-label:\')(.*?)(?=\')", line);
break;
case "launchable-activity":
LaunchableActivity = StringExt.Regex(@"(?<=name=\')(.*?)(?=\')", line);
LaunchableActivity = StringExt.RegexExtract(@"(?<=name=\')(.*?)(?=\')", line);
break;
case "supports-screens":
var screens = Regex.Matches(line.Split(':')[1], @"(?<= \')(.*?)(?=\')").Cast<Match>().Select(m => m.Value).ToList();
@@ -136,13 +150,25 @@ namespace APKToolGUI.Utils
break;
}
}
Permissions = permissionsBuilder.ToString();
List<string> combinedList = nativecode2.Concat(nativecode).ToList();
NativeCode += string.Join(", ", combinedList);
ApkFile = file;
PlayStoreLink = "https://play.google.com/store/apps/details?id=" + PackageName;
ApkComboLink = "https://apkcombo.com/a/" + PackageName;
ApkPureLink = "https://apkpure.com/a/" + PackageName;
ApkAioLink = "https://apkaio.com/app/" + PackageName;
ApkSupportLink = "https://apk.support/app/" + PackageName;
ApkMirrorLink = "https://www.apkmirror.com/?post_type=app_release&searchtype=apk&s=" + PackageName;
ApkGkLink = "https://apkgk.com/" + PackageName + "/download";
AppIcon120 = StringExt.RegexExtract(@"(?<=application-icon-120:\')(.*?)(?=\')", FullInfo);
AppIcon160 = StringExt.RegexExtract(@"(?<=application-icon-160:\')(.*?)(?=\')", FullInfo);
AppIcon240 = StringExt.RegexExtract(@"(?<=application-icon-240:\')(.*?)(?=\')", FullInfo);
AppIcon320 = StringExt.RegexExtract(@"(?<=application-icon-320:\')(.*?)(?=\')", FullInfo);
AppIcon480 = StringExt.RegexExtract(@"(?<=application-icon-480:\')(.*?)(?=\')", FullInfo);
AppIcon640 = StringExt.RegexExtract(@"(?<=application-icon-640:\')(.*?)(?=\')", FullInfo);
AppIcon65534 = StringExt.RegexExtract(@"(?<=application-icon-65534:\')(.*?)(?=\')", FullInfo);
result = true;
}
@@ -170,103 +196,215 @@ namespace APKToolGUI.Utils
return apkinfo;
}
string[] iconFolder = { "mipmap-xxxhdpi-v4", "mipmap-xxhdpi-v4", "mipmap-xhdpi-v4", "mipmap-hdpi-v4", "mipmap-mdpi-v4", "mipmap-xhdpi", "mipmap-hdpi", "drawable-xxxhdpi-v4", "drawable-xxhdpi-v4", "drawable-xhdpi-v4", "drawable-hdpi-v4", "drawable-mdpi-v4" };
private string GetIcon(string apkPath, string iconPath)
// mipmap/drawable density folders to probe when the manifest points at an adaptive XML icon.
private static readonly string[] IconPngFolders =
{
iconPath = iconPath.Replace(".xml", ".png");
"mipmap-xxxhdpi-v4", "mipmap-xxhdpi-v4", "mipmap-xhdpi-v4", "mipmap-hdpi-v4", "mipmap-mdpi-v4",
"mipmap-xhdpi", "mipmap-hdpi",
"drawable-xxxhdpi-v4", "drawable-xxhdpi-v4", "drawable-xhdpi-v4", "drawable-hdpi-v4", "drawable-mdpi-v4"
};
if (iconPath.Contains("anydpi-v26"))
// Resolves the launcher icon to raw image bytes in memory — nothing is written to disk.
// Resolution order:
// 1) Direct raster lookup inside the (base) APK using the aapt-reported icon path.
// 2) resources.arsc parse — handles optimized/obfuscated resource names and adaptive
// icons (falls back to the foreground-layer raster).
// 3) Split-APK fallback — density resources (incl. the launcher icon) usually live in
// the config.*dpi.apk splits, not base.apk. When a split folder is supplied, scan it.
// Returns the PNG/WebP bytes, or null when no icon could be found.
public byte[] GetIconBytes(string apkPath, string splitSearchFolder = null)
{
try
{
foreach (string folder in iconFolder)
{
string icon = iconPath.Replace("mipmap-anydpi-v26", folder).Replace("drawable-anydpi-v26", folder);
// Pick the largest-density icon aapt reported (precedence: 65534 → 120).
string icon = PickPreferredIcon();
if (ZipUtils.Exists(apkPath, icon))
// Adaptive icons are declared as XML; the real raster lives next to it as a PNG.
if (Path.GetExtension(icon).Equals(".xml", StringComparison.OrdinalIgnoreCase))
icon = icon.Replace(".xml", ".png");
Debug.WriteLine("Icon: " + icon);
string[] candidates = BuildIconCandidates(icon);
// 1) Direct raster lookup inside the (base) APK.
byte[] iconBytes = ReadIconFromApk(apkPath, candidates);
// 2) resources.arsc fallback.
if (iconBytes == null)
{
Debug.WriteLine("Falling back to resources.arsc extraction method");
iconBytes = ApkIconExtractor.ExtractIcon(apkPath);
}
// 3) Split-APK fallback: density resources (incl. the launcher icon) usually live
// in config.*dpi.apk splits, not base.apk. Scan the extracted splits.
if (iconBytes == null && !String.IsNullOrEmpty(splitSearchFolder) && Directory.Exists(splitSearchFolder))
{
foreach (string split in Directory.GetFiles(splitSearchFolder, "*.apk", SearchOption.AllDirectories))
{
Debug.WriteLine("Icon path " + icon);
return icon;
if (String.Equals(split, apkPath, StringComparison.OrdinalIgnoreCase))
continue; // base.apk already tried above
iconBytes = ReadIconFromApk(split, candidates) ?? ApkIconExtractor.ExtractIcon(split);
if (iconBytes != null)
{
Debug.WriteLine("Icon resolved from split: " + Path.GetFileName(split));
break;
}
}
}
return iconPath.Replace("mipmap-anydpi-v26", "mipmap-xhdpi").Replace(".xml", ".png");
if (iconBytes == null)
Debug.WriteLine("Icon not found in " + Path.GetFileName(apkPath));
return iconBytes;
}
else
catch (Exception ex)
{
Debug.WriteLine("Icon path " + iconPath);
return iconPath;
Debug.WriteLine("GetIconBytes failed: " + ex.Message);
return null;
}
}
// Highest-density icon wins; fall back through the precedence chain.
private string PickPreferredIcon()
{
foreach (var candidate in new[] { AppIcon65534, AppIcon640, AppIcon480, AppIcon320, AppIcon240, AppIcon160, AppIcon120 })
{
if (!String.IsNullOrEmpty(candidate))
return candidate;
}
return "";
}
// Expand the chosen icon path into the set of ZIP entries to probe, resolving
// adaptive (v26) icons to their density-specific PNG forms.
private static string[] BuildIconCandidates(string icon)
{
if (String.IsNullOrEmpty(icon))
return new string[0];
if (icon.Contains("anydpi-v26"))
return IconPngFolders
.Select(p => icon.Replace("mipmap-anydpi-v26", p).Replace("drawable-anydpi-v26", p))
.ToArray();
if (icon.Contains("v26"))
return new[] { icon.Replace("v26", "v4"), icon.Replace("-v26", "") };
return new[] { icon };
}
// Reads the first matching candidate entry from an APK/ZIP into a byte[], or null if none.
private static byte[] ReadIconFromApk(string apkFile, string[] candidates)
{
if (String.IsNullOrEmpty(apkFile) || candidates == null || candidates.Length == 0 || !File.Exists(apkFile))
return null;
try
{
using (ZipFile zip = ZipFile.Read(apkFile))
{
foreach (var candidate in candidates)
{
if (String.IsNullOrEmpty(candidate)) continue;
var entry = zip[candidate.Replace('\\', '/')];
if (entry == null) continue;
Debug.WriteLine("Icon stream: " + candidate + " from " + Path.GetFileName(apkFile));
using (var ms = new MemoryStream())
{
entry.Extract(ms);
return ms.ToArray();
}
}
}
}
catch (Exception ex)
{
Debug.WriteLine("Icon read failed from " + apkFile + ": " + ex.Message);
}
return null;
}
//https://apilevels.com/
public string SdkToAndroidVer(string sdk)
{
switch (sdk)
{
case "36":
return sdk + ": Android 16";
case "35":
return sdk + ": Android 15";
case "34":
return sdk + ": Android 14";
case "33":
return "31: Android 13";
return sdk + ": Android 13";
case "32":
return "31: Android 12.0L";
return sdk + ": Android 12.0L";
case "31":
return "31: Android 12";
return sdk + ": Android 12";
case "30":
return "30: Android 11";
return sdk + ": Android 11";
case "29":
return "29: Android 10";
return sdk + ": Android 10";
case "28":
return "28: Android 9 (Pie)";
return sdk + ": Android 9 (Pie)";
case "27":
return "27: Android 8.1 (Oreo MR1)";
return sdk + ": Android 8.1 (Oreo)";
case "26":
return "26: Android 8.0 (Oreo)";
return sdk + ": Android 8.0 (Oreo)";
case "25":
return "25: Android 7.1 (Nougat MR1)";
return sdk + ": Android 7.1 (Nougat)";
case "24":
return "24: Android 7.0 (Nougat)";
return sdk + ": Android 7.0 (Nougat)";
case "23":
return "23: Android 6 (Marshmallow)";
return sdk + ": Android 6 (Marshmallow)";
case "22":
return "22: Android 5.1 (Lollipop MR1)";
return sdk + ": Android 5.1 (Lollipop)";
case "21":
return "21: Android 5.0 (Lollipop)";
return sdk + ": Android 5.0 (Lollipop)";
case "20":
return "20: Android 4.4W (KitKat Watch)";
return sdk + ": Android 4.4W (KitKat Watch)";
case "19":
return "19: Android 4.4 (KitKat)";
return sdk + ": Android 4.4 (KitKat)";
case "18":
return "18: Android 4.3 (Jelly Bean MR2)";
return sdk + ": Android 4.3 (Jelly Bean)";
case "17":
return "17: Android 4.2 (Jelly Bean MR1)";
return sdk + ": Android 4.2 (Jelly Bean)";
case "16":
return "16: Android 4.1 (Jelly Bean)";
return sdk + ": Android 4.1 (Jelly Bean)";
case "15":
return "15: Android 4.0.3 (Ice Cream Sandwich MR1)";
return sdk + ": Android 4.0.3 (Ice Cream Sandwich)";
case "14":
return "14: Android 4.0 (Ice Cream Sandwich)";
return sdk + ": Android 4.0 (Ice Cream Sandwich)";
case "13":
return "13: Android 3.2 (Honeycomb MR2)";
return sdk + ": Android 3.2 (Honeycomb)";
case "12":
return "12: Android 3.1 (Honeycomb MR1)";
return sdk + ": Android 3.1 (Honeycomb)";
case "11":
return "11: Android 3.0 (Honeycomb)";
return sdk + ": Android 3.0 (Honeycomb)";
case "10":
return "10: Android 2.3.3 Gingerbread MR1";
return sdk + ": Android 2.3.3 Gingerbread";
case "9":
return "9: Android 2.3 (Gingerbread)";
return sdk + ": Android 2.3 (Gingerbread)";
case "8":
return "8: Android 2.2 (Froyo)";
return sdk + ": Android 2.2 (Froyo)";
case "7":
return "7: Android 2.1 (Eclair MR1)";
return sdk + ": Android 2.1 (Eclair)";
case "6":
return "6: Android 2.0.1 (Eclair 0.1)";
return sdk + ": Android 2.0.1 (Eclair)";
case "5":
return "5: Android 2.0 (Eclair)";
return sdk + ": Android 2.0 (Eclair)";
case "4":
return "4: Android 1.6 (Donut)";
return sdk + ": Android 1.6 (Donut)";
case "3":
return "3: Android 1.5 (Cupcake)";
return sdk + ": Android 1.5 (Cupcake)";
case "2":
return "2: Android 1.1 (Base 1.1)";
return sdk + ": Android 1.1 (Base 1.1)";
case "1":
return "1: Android 1.0 (Base)";
return sdk + ": Android 1.0 (Base)";
default:
return sdk;
}
+99 -26
View File
@@ -10,16 +10,18 @@ using System.Windows.Shapes;
namespace APKToolGUI
{
public class Adb
public class Adb : IDisposable
{
Process processAdb;
private bool disposed = false;
static class Keys
{
public const string Devices = " devices -l"; //list connected devices (-l for long output)
public const string Serial = " -s"; // use device with given serial (overrides $ANDROID_SERIAL)
public const string Vendor = " -i"; //Vendor
public const string ApkPath = " -r";
public const string Abi = " --abi armeabi-v7a";
public const string Abi = " --abi"; //override platform's default ABI
}
public event DataReceivedEventHandler OutputDataReceived
@@ -43,10 +45,10 @@ namespace APKToolGUI
processAdb = new Process();
processAdb.EnableRaisingEvents = true;
processAdb.StartInfo.FileName = AdbFileName;
processAdb.StartInfo.UseShellExecute = false; //отключаем использование оболочки, чтобы можно было читать данные вывода
processAdb.StartInfo.RedirectStandardOutput = true; // разрешаем перенаправление данных вывода
processAdb.StartInfo.RedirectStandardError = true; // разрешаем перенаправление данных вывода
processAdb.StartInfo.CreateNoWindow = true; //запрещаем создавать окно для запускаемой программы
processAdb.StartInfo.UseShellExecute = false; // Disable shell execution to read output data
processAdb.StartInfo.RedirectStandardOutput = true; // Allow output redirection
processAdb.StartInfo.RedirectStandardError = true; // Allow error redirection
processAdb.StartInfo.CreateNoWindow = true; // Do not create window for the launched program
processAdb.Exited += processAdb_Exited;
}
@@ -64,14 +66,62 @@ namespace APKToolGUI
{
foreach (var process in Process.GetProcessesByName("adb"))
{
if (process.Id == processAdb.Id)
using (process)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)processAdb.Id);
process.Kill();
if (process.Id == processAdb.Id)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)processAdb.Id);
process.Kill();
}
}
}
}
catch { }
catch (Exception ex)
{
Debug.WriteLine($"[Adb] Cancel failed: {ex.Message}");
// Process termination failure is not critical, so continue
}
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if (!disposed)
{
if (disposing)
{
if (processAdb != null)
{
try
{
if (!processAdb.HasExited)
{
processAdb.Kill();
}
}
catch (Exception ex)
{
Debug.WriteLine($"[Adb] Error disposing process: {ex.Message}");
}
finally
{
processAdb.Dispose();
processAdb = null;
}
}
}
disposed = true;
}
}
~Adb()
{
Dispose(false);
}
public int Install(string device, string inputApk)
@@ -79,11 +129,29 @@ namespace APKToolGUI
Regex regex = new Regex(@"^(\S+)\s+.*model:(\w+).*");
Match mdevice = regex.Match(device);
string setVendor = null;
string setVendor = null, abi = null;
if (Settings.Default.Adb_SetVendor)
setVendor = $"{Keys.Vendor} com.android.vending {Keys.ApkPath}";
if (Settings.Default.Adb_SetOverrideAbi)
{
switch (Settings.Default.Adb_OverrideAbi)
{
case 0:
abi = Keys.Abi + " arm64-v8a";
break;
case 1:
abi = Keys.Abi + " armeabi-v7a";
break;
case 2:
abi = Keys.Abi + " x86";
break;
case 3:
abi = Keys.Abi + " x86_64";
break;
}
}
string args = String.Format($"{Keys.Serial} {mdevice.Groups[1].Value} install {setVendor} \"{inputApk}\"");
string args = String.Format($"{Keys.Serial} {mdevice.Groups[1].Value} install {setVendor} {abi} \"{inputApk}\"");
Log.d("ADB: " + adbFileName + " " + args);
Debug.WriteLine("Adb: " + args);
@@ -102,26 +170,31 @@ namespace APKToolGUI
{
Log.d("ADB: " + adbFileName + " " + Keys.Devices);
Process process = new Process();
process.EnableRaisingEvents = true;
process.StartInfo.FileName = adbFileName;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.CreateNoWindow = true;
process.EnableRaisingEvents = false;
process.StartInfo.Arguments = Keys.Devices;
process.Start();
string devices = process.StandardOutput.ReadToEnd();
process.WaitForExit();
return devices;
using (Process process = new Process())
{
process.EnableRaisingEvents = true;
process.StartInfo.FileName = adbFileName;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.RedirectStandardError = true;
process.StartInfo.CreateNoWindow = true;
process.EnableRaisingEvents = false;
process.StartInfo.Arguments = Keys.Devices;
process.Start();
string devices = process.StandardOutput.ReadToEnd();
process.WaitForExit();
return devices;
}
}
public void KillProcess()
{
foreach (var process in Process.GetProcessesByName("adb"))
{
process.Kill();
using (process)
{
process.Kill();
}
}
}
}
+111 -5
View File
@@ -8,8 +8,10 @@ using System.Windows.Forms;
namespace APKToolGUI
{
public class ApkEditor : JarProcess
public class ApkEditor : JarProcess, IDisposable
{
private bool disposed = false;
public new event ApkEditorExitedEventHandler Exited;
string _jarPath;
@@ -72,14 +74,28 @@ namespace APKToolGUI
{
foreach (var process in Process.GetProcessesByName("java"))
{
if (process.Id == Id)
using (process)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
if (process.Id == Id)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
}
}
}
}
catch { }
catch (InvalidOperationException ex)
{
Debug.WriteLine($"[ApkEditor] Process already exited: {ex.Message}");
}
catch (System.ComponentModel.Win32Exception ex)
{
Debug.WriteLine($"[ApkEditor] Failed to access process: {ex.Message}");
}
catch (Exception ex)
{
Debug.WriteLine($"[ApkEditor] Failed to cancel process: {ex.Message}");
}
}
public int Merge(string input, string output)
@@ -102,6 +118,96 @@ namespace APKToolGUI
CancelErrorRead();
return ExitCode;
}
public int Decompile(string input, string output)
{
string inputFile = String.Format("-i \"{0}\"", input);
string keyOutputDir = String.Format("-o \"{0}\"", output);
string args = String.Format("d {0} {1} -f", inputFile, keyOutputDir);
Log.d("ApkEditor CMD: " + _jarPath + " " + args);
Start(args);
BeginOutputReadLine();
BeginErrorReadLine();
WaitForExit();
CancelOutputRead();
CancelErrorRead();
return ExitCode;
}
public int Build(string input, string output)
{
string inputFile = String.Format("-i \"{0}\"", input);
string keyOutputDir = String.Format("-o \"{0}\"", output);
string args = String.Format("b {0} {1} -f", inputFile, keyOutputDir);
Log.d("ApkEditor CMD: " + _jarPath + " " + args);
Start(args);
BeginOutputReadLine();
BeginErrorReadLine();
WaitForExit();
CancelOutputRead();
CancelErrorRead();
return ExitCode;
}
public string GetVersion()
{
using (JarProcess jar = new JarProcess(JavaPath, JarPath))
{
jar.EnableRaisingEvents = false;
jar.Start("-version");
//APKEditor always print as errors as usual :)
string version = jar.StandardOutput.ReadToEnd();
version += jar.StandardError.ReadToEnd();
jar.WaitForExit(3000);
return version.Replace("\r\n", "");
}
}
public new void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected new virtual void Dispose(bool disposing)
{
if (!disposed)
{
if (disposing)
{
try
{
Cancel();
}
catch (Exception ex)
{
Debug.WriteLine($"[ApkEditor] Error during disposal: {ex.Message}");
}
finally
{
base.Dispose();
}
}
disposed = true;
}
}
~ApkEditor()
{
Dispose(false);
}
}
public class ApkEditorExitedEventArgs : EventArgs
+70 -16
View File
@@ -1,7 +1,9 @@
using APKToolGUI.Utils;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
@@ -15,28 +17,49 @@ namespace APKToolGUI.ApkTool
public static bool FixAndroidManifest(string decompilePath)
{
string manifestPath = Path.Combine(decompilePath, "AndroidManifest.xml");
if (File.Exists(manifestPath))
if (!File.Exists(manifestPath))
return false;
try
{
string maniFestText = File.ReadAllText(manifestPath);
maniFestText = maniFestText.Replace("\\ ", "\\u003");
maniFestText = maniFestText.Replace("android:isSplitRequired=\"true\"", "");
maniFestText = maniFestText.Replace("android:extractNativeLibs=\"false\"", "");
maniFestText = maniFestText.Replace("android:useEmbeddedDex=\"true\"", "");
maniFestText = maniFestText.Replace("android:manageSpace=\"true\"", "");
maniFestText = maniFestText.Replace("android:localeConfig=\"@xml/locales_config\"", "");
maniFestText = maniFestText.Replace("STAMP_TYPE_DISTRIBUTION_APK", "STAMP_TYPE_STANDALONE_APK");
File.WriteAllText(manifestPath, maniFestText);
string manifestText = File.ReadAllText(manifestPath);
manifestText = manifestText.Replace("\\ ", "\\u003");
manifestText = manifestText.Replace("android:isSplitRequired=\"true\"", "");
manifestText = manifestText.Replace("android:extractNativeLibs=\"false\"", "");
manifestText = manifestText.Replace("android:useEmbeddedDex=\"true\"", "");
manifestText = manifestText.Replace("android:manageSpace=\"true\"", "");
manifestText = manifestText.Replace("android:localeConfig=\"@xml/locales_config\"", "");
manifestText = manifestText.Replace("STAMP_TYPE_DISTRIBUTION_APK", "STAMP_TYPE_STANDALONE_APK");
manifestText = Regex.Replace(manifestText, @"\s*android:requiredSplitTypes=""[^""]*""", "");
manifestText = Regex.Replace(manifestText, @"\s*android:splitTypes=""[^""]*""", "");
File.WriteAllText(manifestPath, manifestText);
return true;
}
return false;
catch (IOException ex)
{
System.Diagnostics.Debug.WriteLine($"[ApkFixer] Failed to fix AndroidManifest.xml: {ex.Message}");
return false;
}
catch (UnauthorizedAccessException ex)
{
System.Diagnostics.Debug.WriteLine($"[ApkFixer] Access denied to AndroidManifest.xml: {ex.Message}");
return false;
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine($"[ApkFixer] Unexpected error fixing AndroidManifest.xml: {ex.Message}");
return false;
}
}
public static bool FixApktoolYml(string decompilePath)
{
string ymlPath = Path.Combine(decompilePath, "apktool.yml");
if (File.Exists(ymlPath))
if (!File.Exists(ymlPath))
return false;
try
{
string yml = File.ReadAllText(ymlPath);
yml = yml.Replace("sparseResources: true", "sparseResources: false");
@@ -44,18 +67,49 @@ namespace APKToolGUI.ApkTool
File.WriteAllText(ymlPath, yml);
return true;
}
return false;
catch (IOException ex)
{
System.Diagnostics.Debug.WriteLine($"[ApkFixer] Failed to fix apktool.yml: {ex.Message}");
return false;
}
catch (UnauthorizedAccessException ex)
{
System.Diagnostics.Debug.WriteLine($"[ApkFixer] Access denied to apktool.yml: {ex.Message}");
return false;
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine($"[ApkFixer] Unexpected error fixing apktool.yml: {ex.Message}");
return false;
}
}
public static bool RemoveApkToolDummies(string path)
{
string resPath = Path.Combine(path, "res", "values");
if (Directory.Exists(resPath))
if (!Directory.Exists(resPath))
return false;
try
{
DirectoryUtils.ReplaceinFilesRegex(resPath, "(.*(?:APKTOOL_DUMMY).*)", "");
return true;
}
return false;
catch (IOException ex)
{
System.Diagnostics.Debug.WriteLine($"[ApkFixer] Failed to remove APKTOOL_DUMMY: {ex.Message}");
return false;
}
catch (UnauthorizedAccessException ex)
{
System.Diagnostics.Debug.WriteLine($"[ApkFixer] Access denied while removing APKTOOL_DUMMY: {ex.Message}");
return false;
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine($"[ApkFixer] Unexpected error removing APKTOOL_DUMMY: {ex.Message}");
return false;
}
}
}
}
+235 -70
View File
@@ -11,54 +11,121 @@ using Java;
namespace APKToolGUI
{
public class Apktool : JarProcess
public class Apktool : JarProcess, IDisposable
{
enum ApktoolActionType
private bool disposed = false;
private static readonly Regex ApktoolVersionRegex = new Regex(@"v?(?<version>\d+\.\d+\.\d+)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public Version ParsedVersion { get; private set; }
public string Version { get; private set; }
public Apktool(string javaPath, string jarPath) : base(javaPath, jarPath)
{
Decompile,
Build,
InstallFramework,
ClearFramework,
Null
Exited += Apktool_Exited;
OutputDataReceived += Apktool_OutputDataReceived;
ErrorDataReceived += Apktool_ErrorDataReceived;
string apktoolVersion = GetVersion();
string apktoolVersionOld = GetVersionOld();
if (!String.IsNullOrWhiteSpace(apktoolVersion) && !Regex.IsMatch(apktoolVersion, @"\r\n?|\n"))
Version = apktoolVersion;
else if (!String.IsNullOrWhiteSpace(apktoolVersionOld) && !Regex.IsMatch(apktoolVersionOld, @"\r\n?|\n"))
Version = apktoolVersionOld;
ParsedVersion = ParseVersion(Version);
Debug.WriteLine($"[Apktool] Parsed version: {ParsedVersion}");
}
static class DecompileKeys
{
public const string NoSource = " -s"; //Do not decode sources.
public const string NoResource = " -r"; //Do not decode resources.
public const string NoDebugInfo = " -b"; //don't write out debug info (.local, .param, .line, etc.)
public const string Force = " -f"; //Skip changes detection and build all files.
public const string FrameworkPath = " -p"; //Uses framework files located in <dir>.
public const string KeepBrokenResource = " -k"; //Use if there was an error and some resources were dropped
public const string MatchOriginal = " -m"; //Keeps files to closest to original as possible. Prevents rebuild.
public const string OutputDir = " -o"; //The name of folder that gets written. Default is apk.out
public const string OnlyMainClasses = " -only-main-classes"; //Only disassemble the main dex classes (classes[0-9]*.dex) in the root.
public const string ApiLevel = " -api"; //The numeric api-level of the file to generate, e.g. 14 for ICS.
//Do not decode sources.
public const string NoSource = "-s";
//Do not decode resources.
public const string NoResource = "-r";
//don't write out debug info (.local, .param, .line, etc.)
//The -b flag has been removed from APKtool 3.0.1 and later versions,
//but the --no-debug-info flag is supported in all versions.
public const string NoDebugInfo = "--no-debug-info";
//Skip changes detection and build all files.
public const string Force = "-f";
//Uses framework files located in <dir>.
public const string FrameworkPath = "-p";
//Use if there was an error and some resources were dropped
public const string KeepBrokenResource = "--keep-broken-res";
//Keeps files to closest to original as possible. Prevents rebuild.
public const string MatchOriginal = "--match-original";
//The name of folder that gets written. Default is apk.out
public const string OutputDir = "-o";
//Only disassemble the main dex classes (classes[0-9]*.dex) in the root.
public const string OnlyMainClasses = "--only-main-classes";
//The numeric api-level of the file to generate, e.g. 14 for ICS.
public const string ApiLevel = "-api";
// Sets the number of threads to use.
public const string Jobs = "-j";
}
static class BuildKeys
{
public const string ForceAll = " -f"; //Skip changes detection and build all files.
public const string CopyOriginal = " -c"; //opies original AndroidManifest.xml and META-INF. See project page for more info.
public const string Aapt = " -a"; //Loads aapt from specified location.
public const string FrameworkPath = " -p"; //Uses framework files located in <dir>.
public const string OutputAppPath = " -o"; // The name of apk that gets written. Default is dist/name.apk
public const string NoCrunch = " -nc"; // Disable crunching of resource files during the build step.
public const string ApiLevel = " -api"; //The numeric api-level of the file to generate, e.g. 14 for ICS.
public const string UseAapt2 = " --use-aapt2"; //Upgrades apktool to use experimental aapt2 binary.
public const string NetSecConf = " --net-sec-conf"; //Add a generic Network Security Configuration file in the output APK
//Skip changes detection and build all files.
public const string ForceAll = "-f";
//opies original AndroidManifest.xml and META-INF. See project page for more info.
public const string CopyOriginal = "--copy-original";
//Loads aapt from specified location.
public const string Aapt = "-a";
//Uses framework files located in <dir>.
public const string FrameworkPath = "-p";
// The name of apk that gets written. Default is dist/name.apk
public const string OutputAppPath = "-o";
// Disable crunching of resource files during the build step.
public const string NoCrunch = "--no-crunch";
//The numeric api-level of the file to generate, e.g. 14 for ICS.
public const string ApiLevel = "-api";
//Upgrades apktool to use experimental aapt2 binary.
public const string UseAapt2 = "--use-aapt2";
//Add a generic Network Security Configuration file in the output APK
public const string NetSecConf = "--net-sec-conf";
// Sets the number of threads to use.
public const string Jobs = "-j";
}
static class InstallFrameworkKeys
{
public const string FrameDir = " -p"; //Stores framework files into <dir>.
public const string Tag = " -t"; //Tag frameworks using <tag>.
//Stores framework files into <dir>.
public const string FrameDir = "-p";
//Tag frameworks using <tag>.
public const string Tag = "-t";
}
static class EmptyFrameworkKeys
{
public const string FrameDir = " -p"; //Stores framework files into <dir>.
public const string ForceDelete = " -f"; //Force delete destination directory.
//Stores framework files into <dir>.
public const string FrameDir = "-p";
//Force delete destination directory.
public const string ForceDelete = "-f";
//Include all framework files regardless of tag. (3.0.1+)
public const string All = "-a";
}
ApktoolDataReceivedEventHandler onApktoolOutputDataRecieved;
@@ -87,15 +154,6 @@ namespace APKToolGUI
}
}
string _jarPath;
public Apktool(string javaPath, string jarPath) : base(javaPath, jarPath)
{
_jarPath = jarPath;
Exited += Apktool_Exited;
OutputDataReceived += Apktool_OutputDataReceived;
ErrorDataReceived += Apktool_ErrorDataReceived;
}
private void Apktool_ErrorDataReceived(object sender, DataReceivedEventArgs e)
{
if (onApktoolErrorDataRecieved != null && e.Data != null)
@@ -116,7 +174,7 @@ namespace APKToolGUI
public int Decompile(string inputPath, string outputDir)
{
string keyNoSrc = null, keyNoRes = null, keyForce = null, keyFramePath = null, keyMatchOriginal = null, keyOutputDir = null, onlyMainClasses = null, noDebugInfo = null, keyKeepBrokenRes = null, apiLevel = null;
string keyNoSrc = null, keyNoRes = null, keyForce = null, keyFramePath = null, keyMatchOriginal = null, keyOutputDir = null, onlyMainClasses = null, noDebugInfo = null, keyKeepBrokenRes = null, apiLevel = null, jobs = null;
if (Settings.Default.Decode_NoSrc)
keyNoSrc = DecompileKeys.NoSource;
@@ -128,7 +186,7 @@ namespace APKToolGUI
keyKeepBrokenRes = DecompileKeys.KeepBrokenResource;
if (Settings.Default.Decode_MatchOriginal)
keyMatchOriginal = DecompileKeys.MatchOriginal;
if (Settings.Default.Decode_OnlyMainClasses && !Settings.Default.Decode_NoSrc)
if (Settings.Default.Decode_OnlyMainClasses && !Settings.Default.Decode_NoSrc && IsVersionAtMost("2.12.1"))
onlyMainClasses = DecompileKeys.OnlyMainClasses;
if (Settings.Default.Decode_NoDebugInfo)
noDebugInfo = DecompileKeys.NoDebugInfo;
@@ -138,11 +196,13 @@ namespace APKToolGUI
keyFramePath = String.Format("{0} \"{1}\"", DecompileKeys.FrameworkPath, Program.STANDALONE_FRAMEWORK_DIR);
if (Settings.Default.Decode_SetApiLevel)
apiLevel = String.Format("{0} {1}", DecompileKeys.ApiLevel, Settings.Default.Decode_ApiLevel);
if (Settings.Default.Decode_SetJobs)
jobs = String.Format("{0} {1}", DecompileKeys.Jobs, Settings.Default.Decode_Jobs);
keyOutputDir = String.Format("{0} \"{1}\"", DecompileKeys.OutputDir, outputDir);
string args = String.Format($"d{keyNoSrc}{keyNoRes}{keyForce}{onlyMainClasses}{noDebugInfo}{keyMatchOriginal}{keyFramePath}{keyKeepBrokenRes}{apiLevel}{keyOutputDir} \"{inputPath}\"");
string args = String.Format($"d {keyNoSrc} {keyNoRes} {keyForce} {onlyMainClasses} {noDebugInfo} {keyMatchOriginal} {keyFramePath} {keyKeepBrokenRes} {apiLevel} {jobs} {keyOutputDir} \"{inputPath}\"");
Log.d("Apktool CMD: " + _jarPath + " " + args);
Log.d("Apktool CMD: " + JarPath + " " + args);
Start(args);
BeginOutputReadLine();
@@ -151,28 +211,9 @@ namespace APKToolGUI
return ExitCode;
}
public void Cancel()
{
try
{
foreach (var process in Process.GetProcessesByName("java"))
{
if (process.Id == Id)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
}
}
}
catch (Exception ex)
{
Debug.WriteLine(ex);
}
}
public int Build(string inputFolder, string outputFile)
{
string keyForceAll = null, keyAapt = null, keyCopyOriginal = null, noCrunch = null, keyFramePath = null, keyOutputAppPath = null, apiLevel = null, useAapt2 = null, netSecConf = null;
string keyForceAll = null, keyAapt = null, keyCopyOriginal = null, noCrunch = null, keyFramePath = null, keyOutputAppPath = null, apiLevel = null, jobs = null, useAapt2 = null, netSecConf = null;
if (Settings.Default.Build_ForceAll)
keyForceAll = BuildKeys.ForceAll;
@@ -185,18 +226,20 @@ namespace APKToolGUI
if (Settings.Default.Build_UseFramework)
keyFramePath = String.Format("{0} \"{1}\"", BuildKeys.FrameworkPath, Settings.Default.Framework_FrameDir);
else
keyFramePath = String.Format("{0} \"{1}\"", DecompileKeys.FrameworkPath, Program.STANDALONE_FRAMEWORK_DIR);
keyFramePath = String.Format("{0} \"{1}\"", BuildKeys.FrameworkPath, Program.STANDALONE_FRAMEWORK_DIR);
if (Settings.Default.Build_SetApiLevel)
apiLevel = String.Format("{0} {1}", DecompileKeys.ApiLevel, Settings.Default.Build_ApiLevel);
apiLevel = String.Format("{0} {1}", BuildKeys.ApiLevel, Settings.Default.Build_ApiLevel);
if (Settings.Default.Build_SetJobs)
jobs = String.Format("{0} {1}", BuildKeys.Jobs, Settings.Default.Build_Jobs);
if (Settings.Default.Build_UseAapt2)
useAapt2 = BuildKeys.UseAapt2;
if (Settings.Default.Build_NetSecConf)
netSecConf = BuildKeys.NetSecConf;
keyOutputAppPath = String.Format("{0} \"{1}\"", BuildKeys.OutputAppPath, outputFile);
string args = String.Format($"b{keyForceAll}{keyAapt}{keyCopyOriginal}{noCrunch}{keyFramePath}{apiLevel}{useAapt2}{netSecConf}{keyOutputAppPath} \"{inputFolder}\"");
string args = String.Format($"b {keyForceAll} {keyAapt} {keyCopyOriginal} {noCrunch} {keyFramePath} {apiLevel} {jobs} {useAapt2} {netSecConf} {keyOutputAppPath} \"{inputFolder}\"");
Log.d("Apktool CMD: " + _jarPath + " " + args);
Log.d("Apktool CMD: " + JarPath + " " + args);
Start(args);
BeginOutputReadLine();
@@ -215,9 +258,9 @@ namespace APKToolGUI
if (Settings.Default.InstallFramework_UseTag)
keyTag = String.Format("{0} \"{1}\"", InstallFrameworkKeys.Tag, Settings.Default.InstallFramework_Tag);
string args = String.Format($"if{keyFrameDir}{keyTag} \"{inputPath}\"");
string args = String.Format($"if {keyFrameDir} {keyTag} \"{inputPath}\"");
Log.d("Apktool CMD: " + _jarPath + " " + args);
Log.d("Apktool CMD: " + JarPath + " " + args);
Start(args);
BeginOutputReadLine();
@@ -235,8 +278,10 @@ namespace APKToolGUI
keyFramePath = String.Format("{0} \"{1}\"", DecompileKeys.FrameworkPath, Program.STANDALONE_FRAMEWORK_DIR);
string args = String.Format($"empty-framework-dir {EmptyFrameworkKeys.ForceDelete} {keyFramePath}");
if (IsVersionAtLeast("3.0.1"))
args = String.Format($"clean-frameworks {EmptyFrameworkKeys.All} {keyFramePath}");
Log.d("Apktool CMD: " + _jarPath + " " + args);
Log.d("Apktool CMD: " + JarPath + " " + args);
Start(args);
BeginOutputReadLine();
@@ -245,7 +290,54 @@ namespace APKToolGUI
return ExitCode;
}
public bool IsVersionAtLeast(string minimumVersion)
{
if (String.IsNullOrWhiteSpace(minimumVersion))
throw new ArgumentException("Minimum version cannot be null or empty.", nameof(minimumVersion));
return ParsedVersion.CompareTo(new Version(minimumVersion)) >= 0;
}
public bool IsVersionAtMost(string maximumVersion)
{
if (String.IsNullOrWhiteSpace(maximumVersion))
throw new ArgumentException("Maximum version cannot be null or empty.", nameof(maximumVersion));
return ParsedVersion.CompareTo(new Version(maximumVersion)) <= 0;
}
private static Version ParseVersion(string rawVersion)
{
if (String.IsNullOrWhiteSpace(rawVersion))
return null;
Match match = ApktoolVersionRegex.Match(rawVersion.Trim());
if (!match.Success)
return null;
try
{
return new Version(match.Groups["version"].Value);
}
catch (Exception)
{
return null;
}
}
public string GetVersion()
{
using (JarProcess apktoolJar = new JarProcess(JavaPath, JarPath))
{
apktoolJar.EnableRaisingEvents = false;
apktoolJar.Start("version");
string version = apktoolJar.StandardOutput.ReadToEnd();
apktoolJar.WaitForExit(3000);
return version.Replace("\r\n", "");
}
}
public string GetVersionOld()
{
using (JarProcess apktoolJar = new JarProcess(JavaPath, JarPath))
{
@@ -256,6 +348,70 @@ namespace APKToolGUI
return version.Replace("\r\n", "");
}
}
public void Cancel()
{
try
{
foreach (var process in Process.GetProcessesByName("java"))
{
using (process)
{
if (process.Id == Id)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
}
}
}
}
catch (InvalidOperationException ex)
{
Debug.WriteLine($"[Apktool] Process already exited: {ex.Message}");
}
catch (System.ComponentModel.Win32Exception ex)
{
Debug.WriteLine($"[Apktool] Failed to access process: {ex.Message}");
}
catch (Exception ex)
{
Debug.WriteLine($"[Apktool] Failed to cancel process: {ex.Message}");
}
}
public new void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected new virtual void Dispose(bool disposing)
{
if (!disposed)
{
if (disposing)
{
try
{
Cancel();
}
catch (Exception ex)
{
Debug.WriteLine($"[Apktool] Error during disposal: {ex.Message}");
}
finally
{
base.Dispose();
}
}
disposed = true;
}
}
~Apktool()
{
Dispose(false);
}
}
public delegate void ApktoolDataReceivedEventHandler(Object sender, ApktoolDataReceivedEventArgs e);
@@ -336,4 +492,13 @@ namespace APKToolGUI
Error,
Unknown
}
enum ApktoolActionType
{
Decompile,
Build,
InstallFramework,
ClearFramework,
Null
}
}
+55 -5
View File
@@ -7,8 +7,10 @@ using APKToolGUI.Utils;
namespace APKToolGUI
{
public class Baksmali : JarProcess
public class Baksmali : JarProcess, IDisposable
{
private bool disposed = false;
public new event BaksmaliExitedEventHandler Exited;
string _jarPath;
@@ -72,14 +74,28 @@ namespace APKToolGUI
{
foreach (var process in Process.GetProcessesByName("java"))
{
if (process.Id == Id)
using (process)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
if (process.Id == Id)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
}
}
}
}
catch { }
catch (InvalidOperationException ex)
{
Debug.WriteLine($"[Baksmali] Process already exited: {ex.Message}");
}
catch (System.ComponentModel.Win32Exception ex)
{
Debug.WriteLine($"[Baksmali] Failed to access process: {ex.Message}");
}
catch (Exception ex)
{
Debug.WriteLine($"[Baksmali] Failed to cancel process: {ex.Message}");
}
}
public int Disassemble(string input, string output)
@@ -99,6 +115,40 @@ namespace APKToolGUI
CancelErrorRead();
return ExitCode;
}
public new void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected new virtual void Dispose(bool disposing)
{
if (!disposed)
{
if (disposing)
{
try
{
Cancel();
}
catch (Exception ex)
{
Debug.WriteLine($"[Baksmali] Error during disposal: {ex.Message}");
}
finally
{
base.Dispose();
}
}
disposed = true;
}
}
~Baksmali()
{
Dispose(false);
}
}
public class BaksmaliExitedEventArgs : EventArgs
+73 -6
View File
@@ -3,11 +3,14 @@ using Java;
using System.Diagnostics;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using System.IO.Packaging;
namespace APKToolGUI
{
public class Signapk : JarProcess
public class Signapk : JarProcess, IDisposable
{
private bool disposed = false;
public new event SignapkExitedEventHandler Exited;
private string lastSourceApk;
@@ -74,14 +77,28 @@ namespace APKToolGUI
{
foreach (var process in Process.GetProcessesByName("java"))
{
if (process.Id == Id)
using (process)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
if (process.Id == Id)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
}
}
}
}
catch { }
catch (InvalidOperationException ex)
{
Debug.WriteLine($"[Signapk] Process already exited: {ex.Message}");
}
catch (System.ComponentModel.Win32Exception ex)
{
Debug.WriteLine($"[Signapk] Failed to access process: {ex.Message}");
}
catch (Exception ex)
{
Debug.WriteLine($"[Signapk] Failed to cancel process: {ex.Message}");
}
}
public int Sign(string input, string output)
@@ -92,7 +109,10 @@ namespace APKToolGUI
//--key : pk file | --cert : pem
string key = String.Format("--key \"{0}\" --cert \"{1}\"", Settings.Default.Sign_PrivateKey, Settings.Default.Sign_PublicKey);
if (Settings.Default.Sign_UseKeystoreFile)
key = String.Format("--ks \"{0}\" --ks-pass pass:{1}", Settings.Default.Sign_KeystoreFilePath, Settings.Default.Sign_KeystorePassword);
{
string keyPassword = String.IsNullOrEmpty(Settings.Default.Sign_KeyPassword) ? Settings.Default.Sign_KeystorePassword : Settings.Default.Sign_KeyPassword;
key = String.Format("--ks \"{0}\" --ks-pass pass:{1} --key-pass pass:{2}", Settings.Default.Sign_KeystoreFilePath, Settings.Default.Sign_KeystorePassword, keyPassword);
}
string alias = String.Format("--ks-key-alias CERT");
if (Settings.Default.Sign_SetAlias)
@@ -138,6 +158,53 @@ namespace APKToolGUI
CancelErrorRead();
return ExitCode;
}
public string GetSignature(string apkFile)
{
using (JarProcess apktoolJar = new JarProcess(JavaPath, JarPath))
{
apktoolJar.EnableRaisingEvents = false;
apktoolJar.Start($"verify --print-certs \"{apkFile}\"");
string version = apktoolJar.StandardOutput.ReadToEnd();
version += apktoolJar.StandardError.ReadToEnd();
apktoolJar.WaitForExit();
return version;
}
}
public new void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected new virtual void Dispose(bool disposing)
{
if (!disposed)
{
if (disposing)
{
try
{
Cancel();
}
catch (Exception ex)
{
Debug.WriteLine($"[Signapk] Error during disposal: {ex.Message}");
}
finally
{
base.Dispose();
}
}
disposed = true;
}
}
~Signapk()
{
Dispose(false);
}
}
public delegate void SignapkExitedEventHandler(object sender, SignapkExitedEventArgs e);
+55 -5
View File
@@ -7,8 +7,10 @@ using APKToolGUI.Utils;
namespace APKToolGUI
{
public class Smali : JarProcess
public class Smali : JarProcess, IDisposable
{
private bool disposed = false;
public new event SmaliExitedEventHandler Exited;
string _jarPath;
@@ -69,14 +71,28 @@ namespace APKToolGUI
{
foreach (var process in Process.GetProcessesByName("java"))
{
if (process.Id == Id)
using (process)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
if (process.Id == Id)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)Id);
process.Kill();
}
}
}
}
catch { }
catch (InvalidOperationException ex)
{
Debug.WriteLine($"[Smali] Process already exited: {ex.Message}");
}
catch (System.ComponentModel.Win32Exception ex)
{
Debug.WriteLine($"[Smali] Failed to access process: {ex.Message}");
}
catch (Exception ex)
{
Debug.WriteLine($"[Smali] Failed to cancel process: {ex.Message}");
}
}
public int Assemble(string input, string output)
@@ -96,6 +112,40 @@ namespace APKToolGUI
CancelErrorRead();
return ExitCode;
}
public new void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected new virtual void Dispose(bool disposing)
{
if (!disposed)
{
if (disposing)
{
try
{
Cancel();
}
catch (Exception ex)
{
Debug.WriteLine($"[Smali] Error during disposal: {ex.Message}");
}
finally
{
base.Dispose();
}
}
disposed = true;
}
}
~Smali()
{
Dispose(false);
}
}
public class SmaliExitedEventArgs : EventArgs
+116 -14
View File
@@ -6,9 +6,11 @@ using System.IO;
namespace APKToolGUI
{
public class Zipalign
public class Zipalign : IDisposable
{
Process processZipalign;
private bool disposed = false;
static class Keys
{
public const string CheckOnly = " -c";
@@ -37,10 +39,10 @@ namespace APKToolGUI
processZipalign = new Process();
processZipalign.EnableRaisingEvents = true;
processZipalign.StartInfo.FileName = zipalignFileName;
processZipalign.StartInfo.UseShellExecute = false; //отключаем использование оболочки, чтобы можно было читать данные вывода
processZipalign.StartInfo.RedirectStandardOutput = true; // разрешаем перенаправление данных вывода
processZipalign.StartInfo.RedirectStandardError = true; // разрешаем перенаправление данных вывода
processZipalign.StartInfo.CreateNoWindow = true; //запрещаем создавать окно для запускаемой программы
processZipalign.StartInfo.UseShellExecute = false; // Disable shell execution to read output data
processZipalign.StartInfo.RedirectStandardOutput = true; // Allow output redirection
processZipalign.StartInfo.RedirectStandardError = true; // Allow error redirection
processZipalign.StartInfo.CreateNoWindow = true; // Do not create window for the launched program
processZipalign.Exited += processZipalign_Exited;
}
@@ -58,14 +60,62 @@ namespace APKToolGUI
{
foreach (var process in Process.GetProcessesByName("zipalign"))
{
if (process.Id == processZipalign.Id)
using (process)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)processZipalign.Id);
process.Kill();
if (process.Id == processZipalign.Id)
{
ProcessUtils.KillAllProcessesSpawnedBy((uint)processZipalign.Id);
process.Kill();
}
}
}
}
catch { }
catch (Exception ex)
{
Debug.WriteLine($"[Zipalign] Cancel failed: {ex.Message}");
// Process termination failure is not critical, so continue
}
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if (!disposed)
{
if (disposing)
{
if (processZipalign != null)
{
try
{
if (!processZipalign.HasExited)
{
processZipalign.Kill();
}
}
catch (Exception ex)
{
Debug.WriteLine($"[Zipalign] Error disposing process: {ex.Message}");
}
finally
{
processZipalign.Dispose();
processZipalign = null;
}
}
}
disposed = true;
}
}
~Zipalign()
{
Dispose(false);
}
public int Align(string input, string output)
@@ -102,11 +152,63 @@ namespace APKToolGUI
processZipalign.BeginErrorReadLine();
processZipalign.WaitForExit();
//if (!Settings.Default.Zipalign_CheckOnly && Settings.Default.Zipalign_OverwriteOutputFile)
//{
File.Delete(output);
File.Move(PathUtils.GetDirectoryNameWithoutExtension(output) + "_align_temp.apk", output);
//}
// Handle temp file (only when not in CheckOnly mode)
if (!Settings.Default.Zipalign_CheckOnly)
{
string tempFile = PathUtils.GetDirectoryNameWithoutExtension(output) + "_align_temp.apk";
try
{
// 1. Delete output file
if (File.Exists(output))
{
File.Delete(output);
Debug.WriteLine($"[Zipalign] Deleted existing output: {output}");
}
// 2. Check temp file existence and move
if (File.Exists(tempFile))
{
File.Move(tempFile, output);
Debug.WriteLine($"[Zipalign] Moved temp file to output: {tempFile} -> {output}");
}
else
{
Debug.WriteLine($"[Zipalign] Warning: Temp file not found: {tempFile}");
return 1; // Return failure code
}
}
catch (IOException ex)
{
Debug.WriteLine($"[Zipalign] Failed to process output file: {ex.Message}");
// Attempt to cleanup temp file
try
{
if (File.Exists(tempFile))
{
File.Delete(tempFile);
Debug.WriteLine($"[Zipalign] Cleaned up temp file: {tempFile}");
}
}
catch (Exception cleanupEx)
{
Debug.WriteLine($"[Zipalign] Failed to cleanup temp file: {cleanupEx.Message}");
}
return 1;
}
catch (UnauthorizedAccessException ex)
{
Debug.WriteLine($"[Zipalign] Access denied: {ex.Message}");
return 1;
}
catch (Exception ex)
{
Debug.WriteLine($"[Zipalign] Unexpected error processing output: {ex.Message}");
return 1;
}
}
return ExitCode;
}
-250
View File
@@ -1,250 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls.Primitives;
using System.Windows.Forms;
namespace APKToolGUI.Controls
{
internal class DarkTheme
{
public static Color bgColor = Color.FromArgb(32, 32, 32);
public static Color txtBoxColor = Color.FromArgb(64, 64, 64);
public static Color btnColor = Color.FromArgb(51, 51, 51);
public static Color btnBorderColor = Color.FromArgb(155, 155, 155);
public static Color tabBorderColor = Color.FromArgb(45, 45, 45);
public static Color menuItemHoverColor = Color.FromArgb(51, 51, 51);
public static Color menuItemSelectedColor = Color.FromArgb(41, 41, 41);
public static Color separatorColor = Color.FromArgb(62, 62, 62);
public static void SetTheme(Control.ControlCollection container, Form form)
{
form.BackColor = bgColor;
form.ForeColor = Color.White;
foreach (Control component in container)
{
Debug.WriteLine(component.GetType());
component.BackColor = bgColor;
component.ForeColor = Color.White;
SetThemeTabControl(component, container);
}
}
public static void SetThemeTabControl(Control component, Control.ControlCollection container)
{
if (component is TabControl)
{
((TabControl)component).DrawMode = TabDrawMode.OwnerDrawFixed;
foreach (Control tabControl in component.Controls)
{
SetThemeTabControl(tabControl, container);
//Debug.WriteLine("tabPage " + tabControl.GetType());
((TabControl)component).DrawItem += (sender, e) =>
{
// Set Border header
e.Graphics.FillRectangle(new SolidBrush(tabBorderColor), e.Bounds);
Rectangle paddedBounds = e.Bounds;
paddedBounds.Inflate(0, 0);
// Set the rectangle for the tab button
Rectangle tabRect = ((TabControl)component).GetTabRect(e.Index);
// Draw the border color
using (Pen borderPen = new Pen(tabBorderColor, 7))
{
e.Graphics.DrawRectangle(borderPen, tabRect);
}
StringFormat stringFlags = new StringFormat();
stringFlags.Alignment = StringAlignment.Center;
stringFlags.LineAlignment = StringAlignment.Center;
e.Graphics.DrawString(((TabControl)component).TabPages[e.Index].Text, FormMain.Instance.Font, SystemBrushes.HighlightText, tabRect, stringFlags);
//set Tabcontrol border
Graphics g = e.Graphics;
Pen p = new Pen(tabBorderColor, 8);
g.DrawRectangle(p, tabControl.Bounds.X, tabControl.Bounds.Y, tabControl.Bounds.Width, tabControl.Bounds.Height);
SolidBrush fillbrush = new SolidBrush(bgColor);
//draw rectangle behind the tabs
Rectangle lasttabrect = ((TabControl)component).GetTabRect(((TabControl)component).TabPages.Count - 1);
Rectangle background = new Rectangle();
background.Location = new Point(lasttabrect.Right, 0);
//pad the rectangle to cover the 1 pixel line between the top of the tabpage and the start of the tabs
background.Size = new Size(((TabControl)component).Right - background.Left, lasttabrect.Height + 1);
e.Graphics.FillRectangle(fillbrush, background);
};
foreach (Control tabPage in tabControl.Controls)
{
SetThemeTabControl(tabPage, container);
}
}
}
else if (component is Panel)
{
foreach (Control control in component.Controls)
{
SetThemeTabControl(control, container);
}
component.BackColor = bgColor;
component.ForeColor = Color.White;
}
if (component is MenuStrip menuStrip)
{
((MenuStrip)component).Renderer = new ToolStripProfessionalRenderer(new MenuItemColorTable());
foreach (ToolStripItem item in menuStrip.Items)
{
if (item is ToolStripMenuItem toolStripMenuItem)
{
foreach (ToolStripMenuItem dditem in toolStripMenuItem.DropDownItems.OfType<ToolStripMenuItem>())
{
dditem.BackColor = bgColor;
dditem.ForeColor = Color.White;
//Debug.WriteLine(dditem.Text);
}
foreach (ToolStripSeparator toolStripSeparator in toolStripMenuItem.DropDownItems.OfType<ToolStripSeparator>())
{
toolStripSeparator.BackColor = Color.Blue;
toolStripSeparator.ForeColor = Color.Blue;
Debug.WriteLine(toolStripSeparator.Name);
}
toolStripMenuItem.BackColor = bgColor;
toolStripMenuItem.ForeColor = Color.White;
}
}
}
else if (component is GroupBox)
{
foreach (Control control in component.Controls)
{
SetThemeTabControl(control, container);
}
component.BackColor = bgColor;
component.ForeColor = Color.White;
}
else if (component is ComboBox)
{
component.BackColor = bgColor;
component.ForeColor = Color.White;
((ComboBox)component).FlatStyle = FlatStyle.Flat;
}
else if (component is Button)
{
component.BackColor = btnColor;
component.ForeColor = Color.White;
((Button)component).FlatStyle = FlatStyle.Flat;
((Button)component).FlatAppearance.BorderColor = btnBorderColor;
}
else if (component is TextBox)
{
component.BackColor = txtBoxColor;
component.ForeColor = Color.White;
((TextBox)component).BorderStyle = BorderStyle.FixedSingle;
}
else if (component is RichTextBox)
{
if (component.Name == "logTxtBox")
((RichTextBox)component).BorderStyle = BorderStyle.None;
component.BackColor = bgColor;
component.ForeColor = Color.White;
}
else
{
component.BackColor = bgColor;
component.ForeColor = Color.White;
}
}
public class MenuItemColorTable : ProfessionalColorTable
{
/// <summary>
/// Gets the starting color of the gradient used when
/// a top-level System.Windows.Forms.ToolStripMenuItem is pressed.
/// </summary>
public override Color MenuItemPressedGradientBegin => menuItemSelectedColor;
/// <summary>
/// Gets the end color of the gradient used when a top-level
/// System.Windows.Forms.ToolStripMenuItem is pressed.
/// </summary>
public override Color MenuItemPressedGradientEnd => menuItemSelectedColor;
/// <summary>
/// Gets the border color to use with a
/// System.Windows.Forms.ToolStripMenuItem.
/// </summary>
public override Color MenuItemBorder => menuItemSelectedColor;
/// <summary>
/// Gets the starting color of the gradient used when the
/// System.Windows.Forms.ToolStripMenuItem is selected.
/// </summary>
public override Color MenuItemSelectedGradientBegin => menuItemSelectedColor;
/// <summary>
/// Gets the end color of the gradient used when the
/// System.Windows.Forms.ToolStripMenuItem is selected.
/// </summary>
public override Color MenuItemSelectedGradientEnd => menuItemSelectedColor;
/// <summary>
/// Gets the border color to use with a
/// System.Windows.Forms.ToolStripMenuItem.
/// </summary>
public override Color MenuItemSelected => menuItemHoverColor;
/// <summary>
/// Gets the solid background color of the
/// System.Windows.Forms.ToolStripDropDown.
/// </summary>
public override Color ToolStripDropDownBackground => bgColor;
/// <summary>
/// Gets the starting color of the gradient used in the image
/// margin of a System.Windows.Forms.ToolStripDropDownMenu.
/// </summary>
public override Color ImageMarginGradientBegin => bgColor;
/// <summary>
/// Gets the middle color of the gradient used in the image
/// margin of a System.Windows.Forms.ToolStripDropDownMenu.
/// </summary>
public override Color ImageMarginGradientMiddle => bgColor;
/// <summary>
/// Gets the end color of the gradient used in the image
/// margin of a System.Windows.Forms.ToolStripDropDownMenu.
/// </summary>
public override Color ImageMarginGradientEnd => bgColor;
/// <summary>
/// Gets the color to use to for shadow effects on
/// the System.Windows.Forms.ToolStripSeparator.
/// </summary>
public override Color SeparatorDark => separatorColor;
/// <summary>
/// Gets the color that is the border color to use
/// on a System.Windows.Forms.MenuStrip.
/// </summary>
public override Color MenuBorder => menuItemHoverColor;
}
}
}
+989
View File
@@ -0,0 +1,989 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using System.Windows.Media;
namespace APKToolGUI.Controls
{
/// <summary>
/// A virtualized, monospace, console-style log view that replaces the old <see cref="RichTextBox"/>.
///
/// Why it exists: RichTextBox renders a FlowDocument, which is NOT UI-virtualized — every line is a live
/// layout element and any change re-measures the whole document on the UI thread (O(total lines)), which
/// froze the GUI once the log held thousands of lines. This control keeps lines in a ring buffer and only
/// draws the visual rows currently on screen (OnRender + FormattedText), so cost is O(visible).
///
/// Monospace (Consolas) makes the geometry trivial: column = (x - padding) / charWidth, and the word-wrap
/// column is just viewportWidth / charWidth. Word wrap turns one logical line into several "visual rows";
/// selection is stored in logical (line, column) coordinates so it survives re-wrapping on resize.
///
/// It implements <see cref="IScrollInfo"/> so a host <see cref="ScrollViewer"/> (CanContentScroll=True)
/// drives scrolling and the scrollbars.
/// </summary>
public sealed class LogView : FrameworkElement, IScrollInfo
{
/// <summary>One coloured (optionally clickable) run of text within a line.</summary>
public sealed class Segment
{
public string Text;
public Brush Foreground;
public bool Bold;
public Action OnClick; // null => plain text; non-null => hyperlink
public Segment(string text, Brush foreground = null, bool bold = false, Action onClick = null)
{
Text = text ?? string.Empty;
Foreground = foreground;
Bold = bold;
OnClick = onClick;
}
}
private sealed class Line
{
public readonly Segment[] Segments;
public readonly int Length; // total character count across segments
// Wrap cache: start column of each visual row, for the wrap width it was computed at.
public int[] RowStarts;
public int WrapCols = int.MinValue;
public Line(Segment[] segments)
{
Segments = segments;
int len = 0;
for (int i = 0; i < segments.Length; i++)
len += segments[i].Text.Length;
Length = len;
}
public string GetText()
{
if (Segments.Length == 1)
return Segments[0].Text;
StringBuilder sb = new StringBuilder(Length);
for (int i = 0; i < Segments.Length; i++)
sb.Append(Segments[i].Text);
return sb.ToString();
}
}
// Bounded scrollback. Lines are trimmed from the front once the buffer grows past MaxLines + TrimSlack,
// in one bulk RemoveRange so trimming is amortised O(1) per line.
public const int MaxLines = 32767;
private const int TrimSlack = 4096;
// Tab stop width in characters. Tabs are expanded to spaces on input so the buffer is truly fixed-width
// (a raw '\t' renders as a wide gap that desyncs the charWidth-based geometry). 8 matches the tab stops
// the existing log strings were authored for (e.g. AaptParser's "App name:\t\t" → column 24).
private const int TabSize = 8;
private const double LeftPadding = 3.0;
private static readonly int[] SingleRow = new int[] { 0 };
private readonly List<Line> _lines = new List<Line>();
// Wrap/visual-row layout (rebuilt lazily; kept live incrementally on append).
private bool _wrapText = true;
private readonly List<int> _rowOffsets = new List<int>(); // _rowOffsets[i] = visual rows before line i
private int _totalRows;
private int _maxLineLen;
private bool _layoutBuilt;
private bool _layoutDirty;
private int _layoutWrapCols = int.MinValue;
private readonly List<int> _wrapScratch = new List<int>();
// Cached font metrics (recomputed when font/dpi changes). Monospace => one char width fits all.
private Typeface _typeface;
private Typeface _boldTypeface;
private double _charWidth;
private double _lineHeight;
private double _pixelsPerDip = 1.0;
private bool _metricsValid;
// Selection, expressed as (line, column) caret positions. Anchor is where the drag began.
private struct Pos
{
public int Line;
public int Col;
public Pos(int line, int col) { Line = line; Col = col; }
public int CompareTo(Pos o)
{
if (Line != o.Line) return Line < o.Line ? -1 : 1;
if (Col != o.Col) return Col < o.Col ? -1 : 1;
return 0;
}
}
private Pos _selAnchor;
private Pos _selCaret;
private bool _hasSelection;
private bool _selecting; // mouse drag in progress
private Point _mouseDownPoint; // to distinguish click from drag (hyperlinks)
// One active search highlight (logical line/col/length), or _searchLine < 0 for none.
private int _searchLine = -1;
private int _searchCol;
private int _searchLen;
// Auto-scroll: stay pinned to the bottom unless the user scrolls up.
private bool _stickToBottom = true;
private static readonly Brush SelectionBrush = new SolidColorBrush(Color.FromArgb(120, 51, 153, 255));
private static readonly Brush SearchBrush = new SolidColorBrush(Color.FromRgb(38, 79, 120));
private static readonly Brush LinkBrush = new SolidColorBrush(Color.FromRgb(60, 166, 255)); // old #FF3CA6FF
static LogView()
{
SelectionBrush.Freeze();
SearchBrush.Freeze();
LinkBrush.Freeze();
}
public LogView()
{
Focusable = true;
ClipToBounds = true;
Cursor = Cursors.IBeam;
TextOptions.SetTextFormattingMode(this, TextFormattingMode.Display);
SnapsToDevicePixels = true;
FocusVisualStyle = null;
// Routed commands so Ctrl+C / Ctrl+A work via the command system (in addition to OnKeyDown),
// and so the context menu items can bind to them and show their gestures.
CommandBindings.Add(new CommandBinding(ApplicationCommands.Copy,
(s, e) => { CopySelection(); e.Handled = true; },
(s, e) => { e.CanExecute = HasSelection; }));
CommandBindings.Add(new CommandBinding(ApplicationCommands.SelectAll,
(s, e) => { SelectAll(); e.Handled = true; },
(s, e) => { e.CanExecute = _lines.Count > 0; }));
BuildContextMenu();
}
private void BuildContextMenu()
{
ContextMenu menu = new ContextMenu();
MenuItem copy = new MenuItem { Header = "Copy", Command = ApplicationCommands.Copy, CommandTarget = this };
MenuItem copyAll = new MenuItem { Header = "Copy all" };
copyAll.Click += (s, e) => CopyAll();
MenuItem selectAll = new MenuItem { Header = "Select all", Command = ApplicationCommands.SelectAll, CommandTarget = this };
menu.Items.Add(copy);
menu.Items.Add(copyAll);
menu.Items.Add(new Separator());
menu.Items.Add(selectAll);
ContextMenu = menu;
}
/// <summary>When true (default), long lines wrap to the viewport width; when false they're one row each.</summary>
public bool WrapText
{
get { return _wrapText; }
set
{
if (_wrapText == value) return;
_wrapText = value;
_canHScroll = !value;
_layoutDirty = true;
InvalidateMeasure();
InvalidateVisual();
}
}
#region Appearance dependency properties
public static readonly DependencyProperty FontFamilyProperty = DependencyProperty.Register(
nameof(FontFamily), typeof(FontFamily), typeof(LogView),
new FrameworkPropertyMetadata(new FontFamily("Consolas"),
FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender,
OnFontChanged));
public static readonly DependencyProperty FontSizeProperty = DependencyProperty.Register(
nameof(FontSize), typeof(double), typeof(LogView),
new FrameworkPropertyMetadata(13.0,
FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender,
OnFontChanged));
public static readonly DependencyProperty ForegroundProperty = DependencyProperty.Register(
nameof(Foreground), typeof(Brush), typeof(LogView),
new FrameworkPropertyMetadata(Brushes.White, FrameworkPropertyMetadataOptions.AffectsRender));
public static readonly DependencyProperty BackgroundProperty = DependencyProperty.Register(
nameof(Background), typeof(Brush), typeof(LogView),
new FrameworkPropertyMetadata(Brushes.Transparent, FrameworkPropertyMetadataOptions.AffectsRender));
public FontFamily FontFamily { get { return (FontFamily)GetValue(FontFamilyProperty); } set { SetValue(FontFamilyProperty, value); } }
public double FontSize { get { return (double)GetValue(FontSizeProperty); } set { SetValue(FontSizeProperty, value); } }
public Brush Foreground { get { return (Brush)GetValue(ForegroundProperty); } set { SetValue(ForegroundProperty, value); } }
public Brush Background { get { return (Brush)GetValue(BackgroundProperty); } set { SetValue(BackgroundProperty, value); } }
private static void OnFontChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
LogView v = (LogView)d;
v._metricsValid = false;
v._layoutDirty = true;
}
#endregion
#region Metrics
private void EnsureMetrics()
{
if (_metricsValid)
return;
FontFamily family = FontFamily ?? new FontFamily("Consolas");
_typeface = new Typeface(family, FontStyles.Normal, FontWeights.Normal, FontStretches.Normal);
_boldTypeface = new Typeface(family, FontStyles.Normal, FontWeights.Bold, FontStretches.Normal);
try { _pixelsPerDip = VisualTreeHelper.GetDpi(this).PixelsPerDip; }
catch { _pixelsPerDip = 1.0; }
FormattedText probe = MakeText("0", _typeface, Brushes.White);
_charWidth = probe.WidthIncludingTrailingWhitespace;
if (_charWidth <= 0) _charWidth = FontSize * 0.6;
_lineHeight = Math.Ceiling(probe.Height);
if (_lineHeight <= 0) _lineHeight = Math.Ceiling(FontSize * 1.4);
_metricsValid = true;
}
private FormattedText MakeText(string text, Typeface tf, Brush brush)
{
return new FormattedText(text, CultureInfo.CurrentUICulture, FlowDirection.LeftToRight,
tf, FontSize, brush ?? Foreground ?? Brushes.White, _pixelsPerDip);
}
#endregion
#region Wrap / visual-row layout
private int ComputeWrapCols()
{
if (!_wrapText || _charWidth <= 0)
return int.MaxValue; // one row per line
double avail = _viewport.Width - LeftPadding * 2;
if (avail < _charWidth)
return _viewport.Width <= 0 ? int.MaxValue : 1;
return Math.Max(1, (int)Math.Floor(avail / _charWidth));
}
private int[] WrapLine(Line line, int wrapCols)
{
if (wrapCols <= 0 || line.Length <= wrapCols)
return SingleRow;
string t = line.GetText();
int n = t.Length;
List<int> rows = _wrapScratch;
rows.Clear();
rows.Add(0);
int pos = 0;
while (pos + wrapCols < n)
{
int limit = pos + wrapCols;
int br = -1;
for (int k = limit; k > pos; k--)
if (t[k] == ' ') { br = k; break; }
int next = (br > pos) ? br + 1 : limit; // break after the space, else hard break
if (next <= pos) next = pos + 1;
rows.Add(next);
pos = next;
}
return rows.ToArray();
}
private void EnsureWrapped(Line line, int wrapCols)
{
if (line.RowStarts != null && line.WrapCols == wrapCols)
return;
line.RowStarts = WrapLine(line, wrapCols);
line.WrapCols = wrapCols;
}
private void EnsureLayout()
{
EnsureMetrics();
int wrapCols = ComputeWrapCols();
if (_layoutBuilt && !_layoutDirty && wrapCols == _layoutWrapCols)
return;
_rowOffsets.Clear();
int total = 0;
int maxLen = 0;
for (int i = 0; i < _lines.Count; i++)
{
_rowOffsets.Add(total);
Line ln = _lines[i];
EnsureWrapped(ln, wrapCols);
total += ln.RowStarts.Length;
if (ln.Length > maxLen) maxLen = ln.Length;
}
_totalRows = total;
_maxLineLen = maxLen;
_layoutWrapCols = wrapCols;
_layoutDirty = false;
_layoutBuilt = true;
}
private void RowToLine(int visualRow, out int line, out int rowInLine)
{
int count = _lines.Count;
int lo = 0, hi = count - 1, ans = 0;
while (lo <= hi)
{
int mid = (lo + hi) >> 1;
if (_rowOffsets[mid] <= visualRow) { ans = mid; lo = mid + 1; }
else hi = mid - 1;
}
line = ans;
rowInLine = visualRow - _rowOffsets[ans];
}
private static void RowRange(Line line, int rowInLine, out int start, out int end)
{
start = line.RowStarts[rowInLine];
end = (rowInLine + 1 < line.RowStarts.Length) ? line.RowStarts[rowInLine + 1] : line.Length;
}
private double ExtentWidthValue
{
get { return _wrapText ? _viewport.Width : (LeftPadding * 2 + _maxLineLen * _charWidth); }
}
#endregion
#region Public log API
public void AppendLine(string text, Brush color = null, bool bold = false)
{
AddSegments(new[] { new Segment(text ?? string.Empty, color, bold) });
}
public void AppendSegments(IList<Segment> segments)
{
if (segments == null || segments.Count == 0) { AddSegments(new[] { new Segment(string.Empty) }); return; }
Segment[] arr = new Segment[segments.Count];
for (int i = 0; i < segments.Count; i++) arr[i] = segments[i];
AddSegments(arr);
}
public void SetText(string text)
{
Clear();
AppendLine(text);
}
public void Clear()
{
_lines.Clear();
_rowOffsets.Clear();
_totalRows = 0;
_maxLineLen = 0;
_layoutBuilt = false;
_layoutDirty = true;
_hasSelection = false;
_selecting = false;
_searchLine = -1;
_stickToBottom = true;
_offset = new Vector(0, 0);
InvalidateMeasure();
InvalidateVisual();
if (ScrollOwner != null) ScrollOwner.InvalidateScrollInfo();
}
public string GetText()
{
StringBuilder sb = new StringBuilder();
for (int i = 0; i < _lines.Count; i++)
{
if (i > 0) sb.Append("\r\n");
sb.Append(_lines[i].GetText());
}
return sb.ToString();
}
public int LineCount { get { return _lines.Count; } }
public string GetLineText(int index)
{
return (index >= 0 && index < _lines.Count) ? _lines[index].GetText() : string.Empty;
}
private static string StripCr(string s)
{
return s.IndexOf('\r') >= 0 ? s.Replace("\r", string.Empty) : s;
}
// Single normalization point for ALL appends (plain text, bold, and hyperlink lines, whether they
// arrive via the batched RichBox pipeline or directly). Splits embedded '\n' into separate visual
// lines (otherwise FormattedText would draw several lines stacked inside one row's height — the
// "overlapping text" bug), strips '\r', and expands tabs.
private void AddSegments(Segment[] segments)
{
bool hasNl = false;
for (int i = 0; i < segments.Length; i++)
if (segments[i].Text.IndexOf('\n') >= 0) { hasNl = true; break; }
if (!hasNl)
{
AddLine(new Line(ExpandTabs(StripCrSegments(segments))));
return;
}
List<Segment> cur = new List<Segment>();
for (int i = 0; i < segments.Length; i++)
{
Segment s = segments[i];
string[] parts = s.Text.Split('\n');
for (int p = 0; p < parts.Length; p++)
{
if (p > 0)
{
AddLine(new Line(ExpandTabs(cur.ToArray())));
cur.Clear();
}
string piece = StripCr(parts[p]);
if (piece.Length > 0)
cur.Add(new Segment(piece, s.Foreground, s.Bold, s.OnClick));
}
}
AddLine(new Line(ExpandTabs(cur.ToArray())));
}
private static Segment[] StripCrSegments(Segment[] segments)
{
bool hasCr = false;
for (int i = 0; i < segments.Length; i++)
if (segments[i].Text.IndexOf('\r') >= 0) { hasCr = true; break; }
if (!hasCr) return segments;
Segment[] result = new Segment[segments.Length];
for (int i = 0; i < segments.Length; i++)
{
Segment s = segments[i];
result[i] = s.Text.IndexOf('\r') >= 0
? new Segment(StripCr(s.Text), s.Foreground, s.Bold, s.OnClick)
: s;
}
return result;
}
private static Segment[] ExpandTabs(Segment[] segments)
{
bool hasTab = false;
for (int i = 0; i < segments.Length; i++)
if (segments[i].Text.IndexOf('\t') >= 0) { hasTab = true; break; }
if (!hasTab) return segments;
Segment[] result = new Segment[segments.Length];
int col = 0;
for (int i = 0; i < segments.Length; i++)
{
Segment s = segments[i];
if (s.Text.IndexOf('\t') < 0) { result[i] = s; col += s.Text.Length; continue; }
StringBuilder sb = new StringBuilder(s.Text.Length + 8);
for (int c = 0; c < s.Text.Length; c++)
{
char ch = s.Text[c];
if (ch == '\t')
{
int spaces = TabSize - (col % TabSize);
sb.Append(' ', spaces);
col += spaces;
}
else { sb.Append(ch); col++; }
}
result[i] = new Segment(sb.ToString(), s.Foreground, s.Bold, s.OnClick);
}
return result;
}
private void AddLine(Line line)
{
_lines.Add(line);
if (_lines.Count > MaxLines + TrimSlack)
{
int remove = _lines.Count - MaxLines;
_lines.RemoveRange(0, remove);
ShiftAfterTrim(remove);
_layoutDirty = true; // front removed: rebuild prefix table
}
if (line.Length > _maxLineLen) _maxLineLen = line.Length;
// Keep the visual-row layout live incrementally when it's valid, so autoscroll and the scrollbar
// stay correct without an O(n) rebuild per line. Otherwise mark it for a lazy rebuild.
if (_layoutBuilt && !_layoutDirty)
{
_rowOffsets.Add(_totalRows);
EnsureWrapped(line, _layoutWrapCols);
_totalRows += line.RowStarts.Length;
}
else
{
_layoutDirty = true;
}
InvalidateMeasure();
InvalidateVisual();
if (ScrollOwner != null) ScrollOwner.InvalidateScrollInfo();
// Pin to the bottom immediately using the live row count.
if (_stickToBottom && !HasSelection && _viewport.Height > 0 && _lineHeight > 0)
{
EnsureLayout();
double maxY = Math.Max(0, _totalRows * _lineHeight - _viewport.Height);
if (Math.Abs(maxY - _offset.Y) > 0.001)
{
_offset.Y = maxY;
if (ScrollOwner != null) ScrollOwner.InvalidateScrollInfo();
InvalidateVisual();
}
}
}
private void ShiftAfterTrim(int removedLines)
{
if (_searchLine >= 0)
{
_searchLine -= removedLines;
if (_searchLine < 0) _searchLine = -1;
}
if (_hasSelection)
{
_selAnchor.Line -= removedLines;
_selCaret.Line -= removedLines;
if (_selAnchor.Line < 0 || _selCaret.Line < 0)
_hasSelection = false;
}
}
#endregion
#region Search support
public void SetSearchHighlight(int line, int col, int length)
{
_searchLine = line;
_searchCol = col;
_searchLen = length;
InvalidateVisual();
}
public void ClearSearchHighlight()
{
_searchLine = -1;
InvalidateVisual();
}
/// <summary>Scroll so the given logical line sits roughly in the middle of the viewport.</summary>
public void ScrollLineIntoView(int line)
{
if (line < 0) return;
EnsureLayout();
if (line >= _rowOffsets.Count) return;
double target = _rowOffsets[line] * _lineHeight - _viewport.Height / 2;
SetVerticalOffset(target);
}
#endregion
#region Rendering
protected override void OnRender(DrawingContext dc)
{
EnsureLayout();
double w = RenderSize.Width, h = RenderSize.Height;
dc.DrawRectangle(Background ?? Brushes.Transparent, null, new Rect(0, 0, w, h));
if (_lines.Count == 0 || _lineHeight <= 0 || _totalRows == 0)
return;
int firstRow = (int)Math.Floor(_offset.Y / _lineHeight);
int lastRow = (int)Math.Ceiling((_offset.Y + h) / _lineHeight);
if (firstRow < 0) firstRow = 0;
if (lastRow > _totalRows) lastRow = _totalRows;
Pos selLo = default(Pos), selHi = default(Pos);
bool hasSel = _hasSelection && _selAnchor.CompareTo(_selCaret) != 0;
if (hasSel)
{
if (_selAnchor.CompareTo(_selCaret) <= 0) { selLo = _selAnchor; selHi = _selCaret; }
else { selLo = _selCaret; selHi = _selAnchor; }
}
double baseX = LeftPadding - _offset.X;
int line, rowInLine;
RowToLine(firstRow, out line, out rowInLine);
for (int vr = firstRow; vr < lastRow; vr++)
{
// Advance to the line owning this visual row.
while (line < _lines.Count - 1 && vr >= _rowOffsets[line] + _lines[line].RowStarts.Length)
{
line++;
rowInLine = 0;
}
rowInLine = vr - _rowOffsets[line];
Line ln = _lines[line];
int rs, re;
RowRange(ln, rowInLine, out rs, out re);
double y = vr * _lineHeight - _offset.Y;
// Selection highlight (logical columns intersected with this row).
if (hasSel && line >= selLo.Line && line <= selHi.Line)
{
int from = (line == selLo.Line) ? selLo.Col : 0;
int to = (line == selHi.Line) ? selHi.Col : ln.Length;
int a = Math.Max(from, rs), b = Math.Min(to, re);
if (b > a)
dc.DrawRectangle(SelectionBrush, null,
new Rect(baseX + (a - rs) * _charWidth, y, (b - a) * _charWidth, _lineHeight));
}
// Search highlight.
if (_searchLine == line && _searchLen > 0)
{
int a = Math.Max(_searchCol, rs), b = Math.Min(_searchCol + _searchLen, re);
if (b > a)
dc.DrawRectangle(SearchBrush, null,
new Rect(baseX + (a - rs) * _charWidth, y, (b - a) * _charWidth, _lineHeight));
}
// Text: draw each segment piece that overlaps this row's [rs, re).
Segment[] segs = ln.Segments;
int segCol = 0;
for (int s = 0; s < segs.Length; s++)
{
Segment seg = segs[s];
int segStart = segCol;
int segEnd = segCol + seg.Text.Length;
segCol = segEnd;
int a = Math.Max(segStart, rs), b = Math.Min(segEnd, re);
if (b <= a) continue;
string sub = seg.Text.Substring(a - segStart, b - a);
bool isLink = seg.OnClick != null;
Brush brush = isLink ? LinkBrush : (seg.Foreground ?? Foreground ?? Brushes.White);
Typeface tf = seg.Bold ? _boldTypeface : _typeface;
double x = baseX + (a - rs) * _charWidth;
dc.DrawText(MakeText(sub, tf, brush), new Point(x, y));
if (isLink)
{
double uy = y + _lineHeight - 1.5;
dc.DrawLine(new Pen(brush, 1.0), new Point(x, uy), new Point(x + (b - a) * _charWidth, uy));
}
}
}
}
protected override Size MeasureOverride(Size availableSize)
{
EnsureMetrics();
double vw = double.IsInfinity(availableSize.Width) ? 0 : availableSize.Width;
double vh = double.IsInfinity(availableSize.Height) ? 0 : availableSize.Height;
_viewport = new Size(vw, vh);
EnsureLayout();
VerifyScrollData(_viewport, new Size(ExtentWidthValue, _totalRows * _lineHeight));
return new Size(vw, vh);
}
protected override Size ArrangeOverride(Size finalSize)
{
EnsureMetrics();
_viewport = finalSize;
EnsureLayout();
VerifyScrollData(finalSize, new Size(ExtentWidthValue, _totalRows * _lineHeight));
return finalSize;
}
#endregion
#region Mouse / keyboard interaction
private bool PointToLineCol(Point p, out int line, out int col)
{
line = 0; col = 0;
EnsureLayout();
if (_lines.Count == 0 || _lineHeight <= 0 || _totalRows == 0)
return false;
int vr = (int)Math.Floor((p.Y + _offset.Y) / _lineHeight);
if (vr < 0) vr = 0;
if (vr >= _totalRows) vr = _totalRows - 1;
int rowInLine;
RowToLine(vr, out line, out rowInLine);
int rs, re;
RowRange(_lines[line], rowInLine, out rs, out re);
int colInRow = (int)Math.Round((p.X - LeftPadding + _offset.X) / _charWidth);
if (colInRow < 0) colInRow = 0;
col = rs + colInRow;
if (col > re) col = re;
if (col > _lines[line].Length) col = _lines[line].Length;
return true;
}
private Pos PointToPos(Point p)
{
int line, col;
PointToLineCol(p, out line, out col);
return new Pos(line, col);
}
private Action HitTestLink(Point p)
{
EnsureLayout();
if (_lines.Count == 0 || _lineHeight <= 0 || _totalRows == 0)
return null;
int vr = (int)Math.Floor((p.Y + _offset.Y) / _lineHeight);
if (vr < 0 || vr >= _totalRows) return null;
int line, rowInLine;
RowToLine(vr, out line, out rowInLine);
int rs, re;
RowRange(_lines[line], rowInLine, out rs, out re);
int colInRow = (int)Math.Floor((p.X - LeftPadding + _offset.X) / _charWidth);
if (colInRow < 0) return null;
int col = rs + colInRow;
if (col >= re || col >= _lines[line].Length) return null;
int segCol = 0;
Segment[] segs = _lines[line].Segments;
for (int s = 0; s < segs.Length; s++)
{
int len = segs[s].Text.Length;
if (col >= segCol && col < segCol + len)
return segs[s].OnClick;
segCol += len;
}
return null;
}
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
Point p = e.GetPosition(this);
if (_selecting && e.LeftButton == MouseButtonState.Pressed)
{
_selCaret = PointToPos(p);
_hasSelection = true;
if (p.Y < 0) SetVerticalOffset(_offset.Y - _lineHeight);
else if (p.Y > RenderSize.Height) SetVerticalOffset(_offset.Y + _lineHeight);
InvalidateVisual();
return;
}
Cursor = HitTestLink(p) != null ? Cursors.Hand : Cursors.IBeam;
}
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
{
base.OnMouseLeftButtonDown(e);
Keyboard.Focus(this);
_mouseDownPoint = e.GetPosition(this);
_selAnchor = _selCaret = PointToPos(_mouseDownPoint);
_hasSelection = false;
_selecting = true;
CaptureMouse();
InvalidateVisual();
}
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
{
base.OnMouseLeftButtonUp(e);
_selecting = false;
ReleaseMouseCapture();
Point p = e.GetPosition(this);
double moved = Math.Abs(p.X - _mouseDownPoint.X) + Math.Abs(p.Y - _mouseDownPoint.Y);
if (moved < 3)
{
Action onClick = HitTestLink(p);
if (onClick != null)
{
try { onClick(); }
catch (Exception ex) { Debug.WriteLine("LogView link click error: " + ex); }
}
}
}
protected override void OnMouseWheel(MouseWheelEventArgs e)
{
base.OnMouseWheel(e);
double lines = e.Delta / 120.0 * 3.0;
SetVerticalOffset(_offset.Y - lines * _lineHeight);
e.Handled = true;
}
protected override void OnKeyDown(KeyEventArgs e)
{
base.OnKeyDown(e);
bool ctrl = (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control;
if (ctrl && e.Key == Key.C) { CopySelection(); e.Handled = true; }
else if (ctrl && e.Key == Key.A) { SelectAll(); e.Handled = true; }
else if (e.Key == Key.PageDown) { PageDown(); e.Handled = true; }
else if (e.Key == Key.PageUp) { PageUp(); e.Handled = true; }
else if (e.Key == Key.Home && ctrl) { ScrollToHome(); e.Handled = true; }
else if (e.Key == Key.End && ctrl) { ScrollToEnd(); e.Handled = true; }
}
public void SelectAll()
{
if (_lines.Count == 0) return;
_selAnchor = new Pos(0, 0);
_selCaret = new Pos(_lines.Count - 1, _lines[_lines.Count - 1].Length);
_hasSelection = true;
InvalidateVisual();
}
public bool HasSelection { get { return _hasSelection && _selAnchor.CompareTo(_selCaret) != 0; } }
public void CopySelection()
{
string text = GetSelectedText();
if (string.IsNullOrEmpty(text)) return;
try { Clipboard.SetText(text); }
catch (Exception ex) { Debug.WriteLine("LogView copy error: " + ex); }
}
/// <summary>Copy the entire log to the clipboard (regardless of selection).</summary>
public void CopyAll()
{
string text = GetText();
if (string.IsNullOrEmpty(text)) return;
try { Clipboard.SetText(text); }
catch (Exception ex) { Debug.WriteLine("LogView copy-all error: " + ex); }
}
private string GetSelectedText()
{
if (!HasSelection) return string.Empty;
Pos lo, hi;
if (_selAnchor.CompareTo(_selCaret) <= 0) { lo = _selAnchor; hi = _selCaret; }
else { lo = _selCaret; hi = _selAnchor; }
StringBuilder sb = new StringBuilder();
for (int i = lo.Line; i <= hi.Line && i < _lines.Count; i++)
{
string t = _lines[i].GetText();
int from = (i == lo.Line) ? Math.Min(lo.Col, t.Length) : 0;
int to = (i == hi.Line) ? Math.Min(hi.Col, t.Length) : t.Length;
if (to > from) sb.Append(t.Substring(from, to - from));
if (i != hi.Line) sb.Append("\r\n");
}
return sb.ToString();
}
#endregion
#region IScrollInfo
private Vector _offset;
private Size _viewport;
private Size _extent;
private bool _canHScroll;
private bool _canVScroll = true;
public bool CanVerticallyScroll { get { return _canVScroll; } set { _canVScroll = value; } }
public bool CanHorizontallyScroll { get { return _canHScroll; } set { _canHScroll = value; } }
public double ExtentWidth { get { return _extent.Width; } }
public double ExtentHeight { get { return _extent.Height; } }
public double ViewportWidth { get { return _viewport.Width; } }
public double ViewportHeight { get { return _viewport.Height; } }
public double HorizontalOffset { get { return _offset.X; } }
public double VerticalOffset { get { return _offset.Y; } }
public ScrollViewer ScrollOwner { get; set; }
private void VerifyScrollData(Size viewport, Size extent)
{
bool changed = viewport != _viewport || extent != _extent;
_viewport = viewport;
_extent = extent;
double maxY = Math.Max(0, _extent.Height - _viewport.Height);
double maxX = Math.Max(0, _extent.Width - _viewport.Width);
// Stay pinned to the bottom as new rows extend the document — unless the user scrolled up or is
// holding a selection (don't yank content out from under a drag-select).
bool pin = _stickToBottom && !HasSelection;
double cy = pin ? maxY : Math.Min(Math.Max(0, _offset.Y), maxY);
double cx = Math.Min(Math.Max(0, _offset.X), maxX);
if (cy != _offset.Y || cx != _offset.X) { _offset.X = cx; _offset.Y = cy; changed = true; }
if (changed && ScrollOwner != null)
ScrollOwner.InvalidateScrollInfo();
}
public void SetVerticalOffset(double offset)
{
double maxY = Math.Max(0, _extent.Height - _viewport.Height);
if (offset > maxY) offset = maxY;
if (offset < 0) offset = 0;
_stickToBottom = offset >= maxY - 0.5;
if (Math.Abs(offset - _offset.Y) < 0.001) return;
_offset.Y = offset;
if (ScrollOwner != null) ScrollOwner.InvalidateScrollInfo();
InvalidateVisual();
}
public void SetHorizontalOffset(double offset)
{
double maxX = Math.Max(0, _extent.Width - _viewport.Width);
if (offset > maxX) offset = maxX;
if (offset < 0) offset = 0;
if (Math.Abs(offset - _offset.X) < 0.001) return;
_offset.X = offset;
if (ScrollOwner != null) ScrollOwner.InvalidateScrollInfo();
InvalidateVisual();
}
public void LineUp() { SetVerticalOffset(_offset.Y - _lineHeight); }
public void LineDown() { SetVerticalOffset(_offset.Y + _lineHeight); }
public void LineLeft() { SetHorizontalOffset(_offset.X - _charWidth); }
public void LineRight() { SetHorizontalOffset(_offset.X + _charWidth); }
public void PageUp() { SetVerticalOffset(_offset.Y - _viewport.Height); }
public void PageDown() { SetVerticalOffset(_offset.Y + _viewport.Height); }
public void PageLeft() { SetHorizontalOffset(_offset.X - _viewport.Width); }
public void PageRight() { SetHorizontalOffset(_offset.X + _viewport.Width); }
public void MouseWheelUp() { SetVerticalOffset(_offset.Y - 3 * _lineHeight); }
public void MouseWheelDown() { SetVerticalOffset(_offset.Y + 3 * _lineHeight); }
public void MouseWheelLeft() { SetHorizontalOffset(_offset.X - 3 * _charWidth); }
public void MouseWheelRight() { SetHorizontalOffset(_offset.X + 3 * _charWidth); }
public Rect MakeVisible(Visual visual, Rect rectangle) { return rectangle; }
#endregion
#region Scroll helpers (RichTextBox-compatible names)
public void ScrollToEnd() { SetVerticalOffset(double.MaxValue); }
public void ScrollToHome() { SetVerticalOffset(0); }
public void ScrollToVerticalOffset(double offset) { SetVerticalOffset(offset); }
#endregion
}
}
+278
View File
@@ -0,0 +1,278 @@
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using Microsoft.Win32;
namespace APKToolGUI.Controls
{
/// <summary>
/// Application theme selection.
/// <para>
/// The integer values intentionally match the stored <c>Settings.Default.Theme</c>
/// values and the order of the theme combo box (0 = Auto, 1 = Light, 2 = Dark),
/// so existing config files keep working. This is a drop-in replacement for the
/// former <c>Dark.Net.Theme</c> enum.
/// </para>
/// </summary>
public enum Theme
{
Auto = 0,
Light = 1,
Dark = 2
}
/// <summary>
/// Self-contained dark mode support for Windows 10 (1809 / build 17763 and newer)
/// and Windows 11, written from scratch to replace the external <c>DarkNet</c> package.
///
/// <list type="bullet">
/// <item>Immersive dark title bars via <c>DwmSetWindowAttribute</c>.</item>
/// <item>Dark Win32 popup/menu rendering via the undocumented uxtheme app-mode ordinals.</item>
/// <item>Dark scroll bars and combo box drop-downs via <c>SetWindowTheme</c>.</item>
/// </list>
///
/// All methods are safe no-ops on operating systems that do not support these APIs,
/// so callers do not need to guard them with an OS-version check.
/// </summary>
public static class NativeDarkMode
{
#region Native interop
[DllImport("dwmapi.dll")]
private static extern int DwmSetWindowAttribute(IntPtr hwnd, int attribute, ref int pvAttribute, int cbAttribute);
[DllImport("uxtheme.dll", CharSet = CharSet.Unicode)]
private static extern int SetWindowTheme(IntPtr hWnd, string pszSubAppName, string pszSubIdList);
// uxtheme.dll ordinal #135:
// Windows 10 1809 -> AllowDarkModeForApp(bool)
// Windows 10 1903+ -> SetPreferredAppMode(PreferredAppMode)
[DllImport("uxtheme.dll", EntryPoint = "#135")]
private static extern int SetPreferredAppMode(int preferredAppMode);
[DllImport("uxtheme.dll", EntryPoint = "#135")]
private static extern bool AllowDarkModeForApp(bool allow);
// uxtheme.dll ordinal #136: FlushMenuThemes()
[DllImport("uxtheme.dll", EntryPoint = "#136")]
private static extern void FlushMenuThemes();
// RtlGetVersion always returns the true OS version, unlike Environment.OSVersion
// / GetVersionEx which "lie" (report Windows 8 / 6.2) when the app has no manifest
// declaring Windows 10 compatibility - which is exactly this project's case.
[DllImport("ntdll.dll")]
private static extern int RtlGetVersion(ref RTL_OSVERSIONINFOEX versionInfo);
[StructLayout(LayoutKind.Sequential)]
private struct RTL_OSVERSIONINFOEX
{
internal uint dwOSVersionInfoSize;
internal uint dwMajorVersion;
internal uint dwMinorVersion;
internal uint dwBuildNumber;
internal uint dwPlatformId;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
internal string szCSDVersion;
}
// DwmSetWindowAttribute "use immersive dark mode" attribute id.
// It moved from 19 to 20 in Windows 10 build 19041 (20H1); we try the new
// one first and fall back to the old one for 1809 / 1903 / 1909.
private const int DWMWA_USE_IMMERSIVE_DARK_MODE_BEFORE_20H1 = 19;
private const int DWMWA_USE_IMMERSIVE_DARK_MODE = 20;
private enum PreferredAppMode
{
Default = 0,
AllowDark = 1,
ForceDark = 2,
ForceLight = 3
}
private const int BUILD_1809 = 17763; // earliest build exposing the dark mode ordinals
private const int BUILD_1903 = 18362; // ordinal #135 becomes SetPreferredAppMode(int)
private const int BUILD_20H1 = 19041; // DWM immersive dark mode attribute becomes 20
#endregion
/// <summary>
/// The true OS version, queried once via <c>RtlGetVersion</c> so it is correct
/// even though this app has no Windows 10 compatibility manifest embedded.
/// </summary>
private static readonly Version _osVersion = GetRealOSVersion();
private static Version GetRealOSVersion()
{
try
{
var info = new RTL_OSVERSIONINFOEX
{
dwOSVersionInfoSize = (uint)Marshal.SizeOf(typeof(RTL_OSVERSIONINFOEX))
};
if (RtlGetVersion(ref info) == 0) // STATUS_SUCCESS
return new Version((int)info.dwMajorVersion, (int)info.dwMinorVersion, (int)info.dwBuildNumber);
}
catch
{
// ntdll unavailable - fall back to the (possibly lying) framework value.
}
return Environment.OSVersion.Version;
}
private static int WindowsBuild => _osVersion.Build;
/// <summary>
/// True when the running OS is Windows 10 1809 or newer, where the dark mode
/// APIs used here exist.
/// </summary>
public static bool IsSupported =>
_osVersion.Major >= 10 &&
WindowsBuild >= BUILD_1809;
/// <summary>
/// Sets the process-wide app mode so that Win32 popup menus, context menus and
/// common controls render dark. Call this once, before any window is created.
/// Mirrors <c>DarkNet.SetCurrentProcessTheme</c>.
/// </summary>
public static void SetProcessTheme(Theme theme)
{
if (!IsSupported)
return;
try
{
bool dark = EffectiveIsDark(theme);
if (WindowsBuild >= BUILD_1903)
SetPreferredAppMode((int)(dark ? PreferredAppMode.ForceDark : PreferredAppMode.ForceLight));
else
AllowDarkModeForApp(dark);
FlushMenuThemes();
}
catch
{
// These ordinals are undocumented; ignore failures on unexpected builds.
}
}
/// <summary>
/// Applies (or removes) the immersive dark title bar on a form. Safe to call
/// before the window handle exists - it is applied as soon as the handle is
/// created and re-applied once the window is shown. Mirrors
/// <c>DarkNet.SetWindowThemeForms</c>.
/// </summary>
public static void ApplyTheme(Form form, Theme theme)
{
if (form == null || !IsSupported)
return;
bool dark = EffectiveIsDark(theme);
if (form.IsHandleCreated)
UseImmersiveDarkTitleBar(form.Handle, dark);
else
form.HandleCreated += (s, e) => UseImmersiveDarkTitleBar(form.Handle, dark);
// Some builds only honour the attribute once the window is actually visible.
form.Shown += (s, e) => UseImmersiveDarkTitleBar(form.Handle, dark);
}
/// <summary>
/// Applies (or removes) the immersive dark title bar on a WPF window. Safe to
/// call before the native handle exists - it is applied on
/// <c>SourceInitialized</c>, which fires before the window is shown.
/// </summary>
public static void ApplyTheme(System.Windows.Window window, Theme theme)
{
if (window == null || !IsSupported)
return;
bool dark = EffectiveIsDark(theme);
var helper = new System.Windows.Interop.WindowInteropHelper(window);
if (helper.Handle != IntPtr.Zero)
UseImmersiveDarkTitleBar(helper.Handle, dark);
else
window.SourceInitialized += (s, e) =>
UseImmersiveDarkTitleBar(new System.Windows.Interop.WindowInteropHelper(window).Handle, dark);
}
/// <summary>
/// Toggles the immersive dark mode title bar for an arbitrary window handle.
/// </summary>
public static void UseImmersiveDarkTitleBar(IntPtr handle, bool enabled)
{
if (handle == IntPtr.Zero || !IsSupported)
return;
int useImmersiveDarkMode = enabled ? 1 : 0;
int attribute = WindowsBuild >= BUILD_20H1
? DWMWA_USE_IMMERSIVE_DARK_MODE
: DWMWA_USE_IMMERSIVE_DARK_MODE_BEFORE_20H1;
if (DwmSetWindowAttribute(handle, attribute, ref useImmersiveDarkMode, sizeof(int)) != 0)
{
// Fall back to the other attribute id if the first one was not accepted.
int fallback = attribute == DWMWA_USE_IMMERSIVE_DARK_MODE
? DWMWA_USE_IMMERSIVE_DARK_MODE_BEFORE_20H1
: DWMWA_USE_IMMERSIVE_DARK_MODE;
DwmSetWindowAttribute(handle, fallback, ref useImmersiveDarkMode, sizeof(int));
}
}
/// <summary>
/// Gives a control dark-themed scroll bars / drop-downs. Use
/// <c>"DarkMode_Explorer"</c> for scroll bars and lists, <c>"DarkMode_CFD"</c>
/// for combo boxes. Safe to call before the handle exists.
/// </summary>
public static void UseDarkControlTheme(Control control, string subAppName = "DarkMode_Explorer")
{
if (control == null || !IsSupported)
return;
if (control.IsHandleCreated)
SetWindowTheme(control.Handle, subAppName, null);
else
control.HandleCreated += (s, e) => SetWindowTheme(control.Handle, subAppName, null);
}
/// <summary>
/// Resolves a <see cref="Theme"/> to an effective dark/light decision,
/// reading the Windows personalization setting for <see cref="Theme.Auto"/>.
/// Mirrors <c>DarkNet.EffectiveCurrentProcessThemeIsDark</c>.
/// </summary>
public static bool EffectiveIsDark(Theme theme)
{
switch (theme)
{
case Theme.Dark:
return true;
case Theme.Light:
return false;
default:
return IsSystemUsingDarkMode();
}
}
/// <summary>
/// Reads whether the current user has selected the dark app theme in Windows.
/// </summary>
public static bool IsSystemUsingDarkMode()
{
try
{
using (RegistryKey key = Registry.CurrentUser.OpenSubKey(
@"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize"))
{
// AppsUseLightTheme: 0 = dark, 1 = light (absent means light).
if (key?.GetValue("AppsUseLightTheme") is int appsUseLightTheme)
return appsUseLightTheme == 0;
}
}
catch
{
// Registry unavailable - assume light.
}
return false;
}
}
}
+92
View File
@@ -0,0 +1,92 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
namespace APKToolGUI.Controls
{
/// <summary>
/// Small themed numeric up/down control (WPF has no built-in equivalent of the
/// WinForms NumericUpDown). Templated in Themes/Controls.xaml.
/// </summary>
[TemplatePart(Name = "PART_TextBox", Type = typeof(TextBox))]
[TemplatePart(Name = "PART_Up", Type = typeof(RepeatButton))]
[TemplatePart(Name = "PART_Down", Type = typeof(RepeatButton))]
public class NumericUpDown : Control
{
private TextBox _textBox;
private bool _updating;
static NumericUpDown()
{
DefaultStyleKeyProperty.OverrideMetadata(typeof(NumericUpDown),
new FrameworkPropertyMetadata(typeof(NumericUpDown)));
}
public static readonly DependencyProperty MinimumProperty = DependencyProperty.Register(
"Minimum", typeof(int), typeof(NumericUpDown), new PropertyMetadata(0, OnRangeChanged));
public static readonly DependencyProperty MaximumProperty = DependencyProperty.Register(
"Maximum", typeof(int), typeof(NumericUpDown), new PropertyMetadata(100, OnRangeChanged));
public static readonly DependencyProperty ValueProperty = DependencyProperty.Register(
"Value", typeof(int), typeof(NumericUpDown),
new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnValueChanged));
public int Minimum { get { return (int)GetValue(MinimumProperty); } set { SetValue(MinimumProperty, value); } }
public int Maximum { get { return (int)GetValue(MaximumProperty); } set { SetValue(MaximumProperty, value); } }
public int Value { get { return (int)GetValue(ValueProperty); } set { SetValue(ValueProperty, value); } }
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var n = (NumericUpDown)d;
int clamped = n.Clamp((int)e.NewValue);
if (clamped != (int)e.NewValue) { n.Value = clamped; return; }
n.UpdateText();
}
private static void OnRangeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var n = (NumericUpDown)d;
n.Value = n.Clamp(n.Value);
}
private int Clamp(int v)
{
if (v < Minimum) return Minimum;
if (v > Maximum) return Maximum;
return v;
}
public override void OnApplyTemplate()
{
base.OnApplyTemplate();
if (_textBox != null) _textBox.TextChanged -= TextBox_TextChanged;
_textBox = GetTemplateChild("PART_TextBox") as TextBox;
if (_textBox != null) _textBox.TextChanged += TextBox_TextChanged;
var up = GetTemplateChild("PART_Up") as RepeatButton;
var down = GetTemplateChild("PART_Down") as RepeatButton;
if (up != null) up.Click += (s, e) => Value = Clamp(Value + 1);
if (down != null) down.Click += (s, e) => Value = Clamp(Value - 1);
UpdateText();
}
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
if (_updating) return;
int v;
if (int.TryParse(_textBox.Text, out v))
Value = Clamp(v);
}
private void UpdateText()
{
if (_textBox == null) return;
_updating = true;
_textBox.Text = Value.ToString();
_updating = false;
}
}
}
+73
View File
@@ -0,0 +1,73 @@
using System.Windows;
using System.Windows.Media;
namespace APKToolGUI.Controls
{
/// <summary>
/// Shared dark/light palette for the WPF windows. Fills the <c>DynamicResource</c>
/// brush keys consumed by <c>Themes/Controls.xaml</c> and the window XAML, so every
/// converted window themes consistently. The dark palette mirrors the WinForms
/// <see cref="DarkTheme"/> colors used by the not-yet-converted forms.
/// </summary>
public static class WpfTheme
{
/// <summary>
/// Applies the dark or light palette to a window/element's resource dictionary.
/// The merged <c>Themes/Controls.xaml</c> styles pick these up via DynamicResource.
/// </summary>
public static void Apply(FrameworkElement target, bool dark)
{
if (dark)
{
Set(target, "WindowBackground", 32, 32, 32);
Set(target, "PrimaryText", 255, 255, 255);
Set(target, "SecondaryText", 160, 160, 160);
Set(target, "PanelBackground", 64, 64, 64); // text input background
Set(target, "ControlBackground", 51, 51, 51); // combo / checkbox box
Set(target, "PanelBorder", 90, 90, 90);
Set(target, "Accent", 0, 120, 215);
Set(target, "LinkText", 30, 144, 255); // DodgerBlue
Set(target, "ButtonBackground", 51, 51, 51);
Set(target, "ButtonBorder", 155, 155, 155);
Set(target, "ButtonHover", 61, 61, 61);
Set(target, "ButtonPressed", 42, 42, 42);
Set(target, "ScrollTrack", 45, 45, 45);
Set(target, "ScrollThumb", 85, 85, 85);
Set(target, "TabBackground", 45, 45, 45); // unselected tab
Set(target, "MenuBar", 32, 32, 32);
Set(target, "MenuPopup", 43, 43, 43);
Set(target, "MenuHighlight", 61, 61, 61);
Set(target, "LogBackground", 30, 30, 30);
}
else
{
Set(target, "WindowBackground", 240, 240, 240);
Set(target, "PrimaryText", 0, 0, 0);
Set(target, "SecondaryText", 105, 105, 105); // DimGray
Set(target, "PanelBackground", 255, 255, 255);
Set(target, "ControlBackground", 255, 255, 255);
Set(target, "PanelBorder", 171, 173, 179);
Set(target, "Accent", 0, 120, 215);
Set(target, "LinkText", 30, 144, 255);
Set(target, "ButtonBackground", 225, 225, 225);
Set(target, "ButtonBorder", 173, 173, 173);
Set(target, "ButtonHover", 229, 241, 251);
Set(target, "ButtonPressed", 204, 228, 247);
Set(target, "ScrollTrack", 240, 240, 240);
Set(target, "ScrollThumb", 180, 180, 180);
Set(target, "TabBackground", 224, 224, 224);
Set(target, "MenuBar", 240, 240, 240);
Set(target, "MenuPopup", 250, 250, 250);
Set(target, "MenuHighlight", 204, 228, 247);
Set(target, "LogBackground", 255, 255, 255);
}
}
private static void Set(FrameworkElement target, string key, byte r, byte g, byte b)
{
var brush = new SolidColorBrush(Color.FromRgb(r, g, b));
brush.Freeze();
target.Resources[key] = brush;
}
}
}
+39 -4
View File
@@ -29,12 +29,27 @@
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
<xs:documentation>Obsolete, use UnmanagedWinX86Assemblies instead</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="UnmanagedWinX86Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged X86 (32 bit) assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
<xs:documentation>Obsolete, use UnmanagedWinX64Assemblies instead.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="UnmanagedWinX64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged X64 (64 bit) assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="UnmanagedWinArm64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged Arm64 (64 bit) assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
@@ -73,6 +88,11 @@
<xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableEventSubscription" type="xs:boolean">
<xs:annotation>
<xs:documentation>The attach method no longer subscribes to the `AppDomain.AssemblyResolve` (.NET 4.x) and `AssemblyLoadContext.Resolving` (.NET 6.0+) events.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="LoadAtModuleInit" type="xs:boolean">
<xs:annotation>
<xs:documentation>Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.</xs:documentation>
@@ -105,12 +125,27 @@
</xs:attribute>
<xs:attribute name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
<xs:documentation>Obsolete, use UnmanagedWinX86Assemblies instead</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UnmanagedWinX86Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged X86 (32 bit) assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
<xs:documentation>Obsolete, use UnmanagedWinX64Assemblies instead</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UnmanagedWinX64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged X64 (64 bit) assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UnmanagedWinArm64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged Arm64 (64 bit) assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PreloadOrder" type="xs:string">
+78
View File
@@ -0,0 +1,78 @@
<Window x:Class="APKToolGUI.Forms.AboutWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="About"
Width="528" Height="320"
MinWidth="420" MinHeight="260"
ResizeMode="NoResize"
ShowInTaskbar="False"
WindowStartupLocation="CenterScreen"
UseLayoutRounding="True"
TextOptions.TextFormattingMode="Display"
FontFamily="Segoe UI" FontSize="12"
Background="{DynamicResource WindowBackground}"
Foreground="{DynamicResource PrimaryText}">
<!--
WPF replacement for the former WinForms FormAboutBox.
Shared dark/light control styles are merged from Themes/Controls.xaml; the
actual colours are filled in by WpfTheme.Apply(this, dark) in the code-behind.
-->
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Themes/Controls.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid Margin="12">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Grid.Column="0"
Width="219" Height="259"
VerticalAlignment="Top"
Stretch="Uniform"
Margin="0,0,12,0"
Source="pack://application:,,,/Resources/android.png"/>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="productNameText" Grid.Row="0"
FontSize="16" FontWeight="SemiBold"
TextWrapping="Wrap" Margin="0,4"/>
<TextBlock x:Name="versionText" Grid.Row="1" TextWrapping="Wrap" Margin="0,4"/>
<TextBlock x:Name="copyrightText" Grid.Row="2" TextWrapping="Wrap" Margin="0,4"/>
<TextBlock Grid.Row="3" Margin="0,4">
<Hyperlink x:Name="repoLink" Click="RepoLink_Click"
Foreground="{DynamicResource LinkText}">
<Run x:Name="repoLinkText"/>
</Hyperlink>
</TextBlock>
<TextBox x:Name="descriptionText" Grid.Row="4" Margin="0,6"
IsReadOnly="True" TextWrapping="Wrap" IsTabStop="False"
Padding="4"
VerticalScrollBarVisibility="Auto"
Background="{DynamicResource PanelBackground}"
Foreground="{DynamicResource PrimaryText}"
BorderBrush="{DynamicResource PanelBorder}"/>
<Button x:Name="okButton" Grid.Row="5"
HorizontalAlignment="Right" MinWidth="84" Margin="0,4,0,0"
IsDefault="True" IsCancel="True"
Click="OkButton_Click"/>
</Grid>
</Grid>
</Window>
+115
View File
@@ -0,0 +1,115 @@
using System;
using System.Reflection;
using System.Windows;
using APKToolGUI.Controls;
using APKToolGUI.Properties;
// Alias the resource class: a bare "Language" would otherwise bind to the inherited
// FrameworkElement.Language property (System.Windows.Markup.XmlLanguage).
using Lang = APKToolGUI.Languages.Language;
namespace APKToolGUI.Forms
{
/// <summary>
/// WPF replacement for the former WinForms <c>FormAboutBox</c>. Behaviour is kept
/// identical: the product name, version, copyright and description come from the
/// assembly attributes, the title / version / copyright / link captions are
/// localised, and the title bar follows the app's dark/light theme.
/// </summary>
public partial class AboutWindow : Window
{
private const string RepoUrl = "https://github.com/AndnixSH/APKToolGUI";
public AboutWindow()
{
InitializeComponent();
Theme theme = (Theme)Settings.Default.Theme;
WpfTheme.Apply(this, Program.IsDarkTheme());
// Our own immersive dark title bar (replaces DarkNet), now for WPF windows.
NativeDarkMode.ApplyTheme(this, theme);
ApplyLocalizedText();
}
private void ApplyLocalizedText()
{
var rm = Lang.ResourceManager;
Title = String.Format("{0} {1}", Lang.About, AssemblyTitle);
productNameText.Text = AssemblyProduct;
versionText.Text = String.Format("{0} {1}", rm.GetString("AboutVersion"), AssemblyVersion);
copyrightText.Text = String.Format("{0} {1}", rm.GetString("AboutCopyright"), AssemblyCopyright);
repoLinkText.Text = rm.GetString("AboutGithubRepo");
descriptionText.Text = AssemblyDescription;
okButton.Content = rm.GetString("AboutOK");
}
private void RepoLink_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start(RepoUrl);
}
private void OkButton_Click(object sender, RoutedEventArgs e)
{
Close();
}
#region Assembly attribute accessors
public string AssemblyTitle
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0)
{
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (titleAttribute.Title != "")
return titleAttribute.Title;
}
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
}
public string AssemblyVersion
{
get { return Assembly.GetExecutingAssembly().GetName().Version.ToString(); }
}
public string AssemblyDescription
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
if (attributes.Length == 0)
return "";
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
}
}
public string AssemblyProduct
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
if (attributes.Length == 0)
return "";
return ((AssemblyProductAttribute)attributes[0]).Product;
}
}
public string AssemblyCopyright
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
if (attributes.Length == 0)
return "";
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
}
}
#endregion
}
}
-128
View File
@@ -1,128 +0,0 @@
namespace APKToolGUI
{
partial class FormAboutBox
{
/// <summary>
/// Требуется переменная конструктора.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Освободить все используемые ресурсы.
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Код, автоматически созданный конструктором форм Windows
/// <summary>
/// Обязательный метод для поддержки конструктора - не изменяйте
/// содержимое данного метода при помощи редактора кода.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAboutBox));
this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
this.logoPictureBox = new System.Windows.Forms.PictureBox();
this.labelProductName = new System.Windows.Forms.Label();
this.labelVersion = new System.Windows.Forms.Label();
this.labelCopyright = new System.Windows.Forms.Label();
this.okButton = new System.Windows.Forms.Button();
this.textBoxDescription = new System.Windows.Forms.TextBox();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.tableLayoutPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).BeginInit();
this.SuspendLayout();
//
// tableLayoutPanel
//
resources.ApplyResources(this.tableLayoutPanel, "tableLayoutPanel");
this.tableLayoutPanel.Controls.Add(this.logoPictureBox, 0, 0);
this.tableLayoutPanel.Controls.Add(this.labelProductName, 1, 0);
this.tableLayoutPanel.Controls.Add(this.labelVersion, 1, 1);
this.tableLayoutPanel.Controls.Add(this.labelCopyright, 1, 2);
this.tableLayoutPanel.Controls.Add(this.okButton, 1, 5);
this.tableLayoutPanel.Controls.Add(this.textBoxDescription, 1, 4);
this.tableLayoutPanel.Controls.Add(this.linkLabel1, 1, 3);
this.tableLayoutPanel.Name = "tableLayoutPanel";
//
// logoPictureBox
//
resources.ApplyResources(this.logoPictureBox, "logoPictureBox");
this.logoPictureBox.Name = "logoPictureBox";
this.tableLayoutPanel.SetRowSpan(this.logoPictureBox, 6);
this.logoPictureBox.TabStop = false;
//
// labelProductName
//
resources.ApplyResources(this.labelProductName, "labelProductName");
this.labelProductName.Name = "labelProductName";
//
// labelVersion
//
resources.ApplyResources(this.labelVersion, "labelVersion");
this.labelVersion.Name = "labelVersion";
//
// labelCopyright
//
resources.ApplyResources(this.labelCopyright, "labelCopyright");
this.labelCopyright.Name = "labelCopyright";
//
// okButton
//
resources.ApplyResources(this.okButton, "okButton");
this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.okButton.Name = "okButton";
//
// textBoxDescription
//
resources.ApplyResources(this.textBoxDescription, "textBoxDescription");
this.textBoxDescription.Name = "textBoxDescription";
this.textBoxDescription.ReadOnly = true;
this.textBoxDescription.TabStop = false;
//
// linkLabel1
//
resources.ApplyResources(this.linkLabel1, "linkLabel1");
this.linkLabel1.LinkColor = System.Drawing.Color.DodgerBlue;
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.TabStop = true;
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
//
// FormAboutBox
//
this.AcceptButton = this.okButton;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.tableLayoutPanel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormAboutBox";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.tableLayoutPanel.ResumeLayout(false);
this.tableLayoutPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.logoPictureBox)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
private System.Windows.Forms.PictureBox logoPictureBox;
private System.Windows.Forms.Label labelProductName;
private System.Windows.Forms.Label labelVersion;
private System.Windows.Forms.Label labelCopyright;
private System.Windows.Forms.TextBox textBoxDescription;
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.LinkLabel linkLabel1;
}
}
-114
View File
@@ -1,114 +0,0 @@
using APKToolGUI.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
namespace APKToolGUI
{
partial class FormAboutBox : Form
{
public FormAboutBox()
{
InitializeComponent();
if (Program.IsDarkTheme())
DarkTheme.SetTheme(Controls, this);
this.Text = String.Format("{0} {1}", this.Text, AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format("{0} {1}", labelVersion.Text, AssemblyVersion);
this.labelCopyright.Text = String.Format("{0} {1}", this.labelCopyright.Text, AssemblyCopyright);// AssemblyCopyright;
//this.labelCompanyName.Text = AssemblyCompany;
this.textBoxDescription.Text = AssemblyDescription;
}
#region Методы доступа к атрибутам сборки
public string AssemblyTitle
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0)
{
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (titleAttribute.Title != "")
{
return titleAttribute.Title;
}
}
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
}
public string AssemblyVersion
{
get
{
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
public string AssemblyDescription
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
}
}
public string AssemblyProduct
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyProductAttribute)attributes[0]).Product;
}
}
public string AssemblyCopyright
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
}
}
public string AssemblyCompany
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
if (attributes.Length == 0)
{
return "";
}
return ((AssemblyCompanyAttribute)attributes[0]).Company;
}
}
#endregion
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/AndnixSH/APKToolGUI");
}
}
}
-627
View File
@@ -1,627 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="tableLayoutPanel.ColumnCount" type="System.Int32, mscorlib">
<value>2</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="logoPictureBox.BackgroundImageLayout" type="System.Windows.Forms.ImageLayout, System.Windows.Forms">
<value>Center</value>
</data>
<data name="logoPictureBox.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="logoPictureBox.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAABGdBTUEAALGPC/xhBQAAMeRJREFUeF7t
XQd4VMUWXnkmEHpCkwDSAgTSe9tAVJ4oClIMUqT33ntLozwFfc8CIooFQbpKEekiSDGht5AEkBbpKC1A
SObNP/fO5ma5C0nY7N7dzPm+/1s+cvfuvTP/f+acM3Pn6oQJEyZMmDBhwoQJEyZMmDBhwp7NCHlOR2KK
RZNl/wKitsU8nx/w7+Ec7FzChGnOFCQHaQOS5jkYSGtuk38Hv8EFIsQhzHJm5NHzQnKQVX92hnNUakz1
qLQZbo1PxXlFnk4IbpyS0LhJ2rSXGqfGvwqwf9P/Y3+jx+BYfAffxTnk05k24+sSohBmFpOJBY8r/89j
9uqh90vpU2bU0Z+Kb9o4LaFr5KmEKY1TE76MTEtYF5kWv4t+Hqf/f4F+3qTIoHhIkUWRTUFk4N/4P/wN
x9yUv3NcPsc6dk6cm/4Gfgu/id+WL+MxyzVKCBOWZ6OEMZDHyKLOxJRonBLfsPGp+DbUc8dQYi6hOExx
mQIE5oRWR2p83qH2/Rzgt/Cb+O0luBZ9WkLrqDPT3XGN8uUazCBiIQZhqiZ7+scIAjFQUkWmTnu38amE
T2VvfINCjZRAtj41HuR8xJAanwv4W15g/D0Gej7pb7lGDmPQa4vfxa6VXjOuXe2exMggjBmIYOzpA9Jj
SkamTY9AuEEJtYXiqoJgSoCYmfhkxE2JzwYiU6j3LkTw31EIhV0D/VS7Rlz7Fulepkfg3uTbZKZ2/8Ls
3WiCKIUDOYkiEs0mqdPDaBgRTz3sXkqa+woScTCycbKrkdOaMIgixaQg7uPecI+411zJtUqbCLM340O/
wpBIUu84jGI7I0huwrBQRquEfxoMgpDvQXFfwH12z/Te0QZyczBjbSTCI/uxx4Z56uUap8W/TEnwFQUS
SSUxDF5ejVS2DHZPPFzKfc9og6/QJsoR4LF2E2ZjRr0YG9ZlY7E9TQxpCLDViADZ9kp6UzCIwSihZm1D
20iZK4jqka2ZUagTkhpTNvJUfH/a2QeVnU0hVVZsMLwxF9i9yxUmRbsQtJU+NWFA01Mzy8nNKEIjzRtP
5GTDJBEjflrCMUXnwuNJnk+FEEUZshiMR4VjaEPlhJtIljVokneSO4V+RqTEdYxMm5ak6EhB/DzCIASp
zeT2m5akP5XQQdnGIj/QgtGOUHp9tp7mVMKGnI5jnUgTW0H8/IIJgbcdb0/atmhjubnFaGBNUxI/Inmq
qzRTm/DA0FnM46t3rkA+IY0IvF0foK3R5nLz5+oLYYVtRl5ffzKhM+2UM4oOEqFOIUARGvF2PoO2l7tB
jAaWMGXcGX46oaY+LX6pokOkCR+VzhMwH1gbK6pG6AP0hdwtufpImBlN6fUjT8a1p42fzjuBQoQ7lkbu
0SAdfSJ3jwiJzGqKigPq0rSx5yoaXoQ7VoRxWKRPm/YZnzvIVZkTVjDLFfKciAujjXyINzaF8PpagXI0
SE04GHYkJlzuNhESFdRyJbopcX1o4942EB/lTbWOELAaFGuNIIjbEcem9JW7T4RE+TVDg5GYYpGnEmbL
xBde3xaQIwIScSL2A92yaDYCCBHk0XhDhR2LcaHD6Y8K8ktr3NUaXUBbkNYXSSI4NvWngG0jKyr7VpgJ
M5D/6FQ3xVIGNKYob9oYDOVSKgL9idh9gTvHNFD2sTClKSa39CfiAmjYc1omv4j3bRjycgoWEkWciDkT
tmtMMPqY9bWoEMmmKHNGnox9hTbWFTQYxUMR8tgJUtl2LxgJroTtHdsMfS3KpDA0gLzGPCI5viX1/HcE
+e0UOSK4E7p7fBup/2nfF1kR5Hj+5/QnY1vTxsGGUFLYI8hvn5ArRBHHYzJCd49th74vsiOBHPM/p0+N
bSHIX4TARXB0akbI76PbggNFLjHm5I9Ijn2JNkbOBJcgf9EAF8HhKXeCt45ETlB0RMDJH3ooxl+flnBJ
kL+IAiKgn2EHJ1/2/3lEKDhh9yLgNyjV+RPSZPKLhLeogibG+pNxJGz/pNMBawa5Kzlid8ZLnfrD45z1
qQmJgvwCDLIIQhMn7vdb1r2Skiv2YznbaTynT4lfKZNfhD0CEigXIo7HkNDd436iHJHIbzdbsOSUuJ6j
N/ueTH5Mk4sZXgEGecY4K+LIVBKyfdT/wBXGGHsoj/Kkl95kd5n8kgBUGkKg6EJeTk3CD04mQVuHDwBn
bD4f4OQPPzo5iJL+b5n8j9QaQEAA3JDygQn/BKwZoAd3bFYEPJEJ+XlwWZro7JPJL+J+gScjNT5TfyKW
hOwcc8jjg2gXSiEb3IQLsZsUv9G4P44/wyvIL5A3UBGEH55CgraN+AocUvDJNkx++cJzEcemtpPJD4i4
XyBP4PlAaNIE4r9uQDdwKU9vy9SCycPVcyF7xlSnN3HO4P1VblRAwCQQCiUjFBp90WtBR7zEwwbygZxh
qhi9ie8M5Behj0BBQLmDUChw87DllFPy/ICGQyFe9Yk4HvuOTH7M9Il6v0CBwOYH6GdoIg2F1vTvDm5p
dhTICX0mVKGkP2nw/kY3JSCQL8hVoaBfR6V5ftq9BjimTRFI218UizgZ+4FMfrGLg4B5QLkUdmAS8d84
9DNwjG+1ohnjoY/+2OQQxWONouojYBagKoQJspDdY+/6LO3xErgWMK+PRqpCcr2fAonvTzL5RegjYF7I
cwOBG4dtoFxjDlcTCbEc+xcLPzqlrUx+kfgKmB08IQ7ZPY74rujTFZyz/gyxtGT1ueofRDtFpsTtEt5f
oFBBRwGsGA3aPDSpYo+IMuCeVZdNy3FYMf2xmB7C+wsUNtgokEpHgT0YBfoOBfc8YqIdGRktbrL391g2
oDS9uP2yADS90rNp2kzS5vT/SLO091T/XlTRJCWBvHlqNml1+r/kpdTpqsdoBpRjGAVoLnD0xXFvOIOD
VqkKce8fdsQ2vD9I/8PNRJKVlUV23U4lbU9/pHpcUcSg89+Sc/evkYxHD8i8q1vJK6kzVI/TAgyjAM0F
vJf0GQYOWr4iJHv/Wt2iStAL2i0LQNOxf8+zX5CrD28xAWRmPWJiUDuuqOGV1Jnk+L2LrF2AC/evk85/
fqZ6rGZAuYZRIOCXIfsrRjSQcgFLjgJy3b9Y+CHbqfx0oZ168cENQ0fffXSfdP1znuqxRQWNaegz89Ia
Q5sAZ+9fJZ3+nKN6vFbAK0LBO8cQr0W9sVq0mOVmh3Pq/s/rT8attQXvDzRJnUa+v74rV2f/djuZvJb2
vurxRQEdzsxhhFe2CdoIbaV2vKZAORd+aDLxXzdoC+UiEmHLzAvw2D80cXwEvQj2Ymq2flvtIjUGJMCX
H/xt6GzEvPF//ah6rL2jSco0svzGHvKIhoO8PdA2aCO147UGPjsctH3kQ48FnbG7nIUqQlKs9a+I47Gf
yN7fZp7xRbXjsytbyINHmYZOT76XTlqc+kD1eHtG33MLyDU5JwLQJmgbtJHa8ZoE1gglTSS+q/p/A04W
eh7AY/+gDQNq6FPiztqaAABUgw7ePWvoeCTE317bYVsd/4x4OXUGSbxzytAGwMG7f9peeRgl0eMxJGDT
0Ivu01vXBzcLtSIkC+Bf4Ycn462NuABDQmJLmHBxOUuCeeffeHibxcNqx9obkPhOTl9BHmbljIJ3aFtM
uLhM9Xgtw1AS3TWWeC/uMRrcLLxkWCp9Ag765Lj1sgBsctnDq2n/IZv/OWIgALD65j7mGdWOtycgxj96
73yue99E2+LftE3Ujtc85GTYb82gbZSbToyjhbE8gnv/kB0jA2gC8g/z/jaS/KoBHv92ZoaBBPj3eBv0
gvnF19d+y5X44r47nPlU9VhbAE+GA7cOv+0+p0MTcLRwwiApwXhefzhmnOz9bX69/5Ibu1kOwMmAONhm
PWEegLkQZRUM9442UDvWpkC5GLp3PPFZ3GcGOGr+ZDhGCn+qR4c50fBnmywAm9/hLfr0x+RUxmUDIe4/
ekg+uLyexclqx9sysLxh/d8Hc3n/tIxL5G17WBJCuRh+ZArxXz1wj0uIW1lwVeaseYyHP0G/jgyyh/CH
ozHFjL/W5CqLXnhwnbQ784nq8U8DhINKSvSZj0mPs/PJ0PMLyXuX1pFF138n6/4+QLbeOkZ2304lh++e
JakZf7GZaSw9OHkvneyno8/vt0+y3AT5yIJrv7I5ikHnv6Geex6L3bFsQe1384JRF75nAuf3+YD+e/pf
q1kbqB1vS+BhUMCW4bcbfBj9Mrhq1jBIPtnz4Qcnj5C9f7YtVn/U0PzULJJ457SBGMBiNhv69FEApVOQ
sh0l/PRLq8mam/vJ3jtpjNxXHv6TS1gFBapV6VQox+9dIDupQDBTO+7iUrZ6E0l7XkarN+ixf9DrUp4X
19k8bZbq8bYGxkXKSSyQ8/qmRxy4aj4ByOEPhaP+ROxqWQB2tcEtvCxmhTk5MEE0+Py3qscCmDgbc2EJ
I2MqDSMemoHo+cU9KoykO6fI3KtbSP9zXz9xdPjf5Q25xIh7HUC/o3aszQJhEKpBP/TH0gipGmSOMIiH
P14r+9ehP8R3erMrAcCT//L3oVzx8e7bKbnWxoP0EMqyG3vY+plbmfcMx1oTSGQxj3GMjhAfX9lEup39
PFcij9Dprwc3DcfjHn+muYDdTfxRTuqTY0nghqHpdSY39wJnzTIK8PAnZM+Yt2Xy20X8b4zeZ7/MRRTE
yBPTl5PX094n/7m0lhygMbpy8kyrwJLvrbeOk+EXvmNC+O76zlzCRjiFpeFqbWDLYJxMjSfBv40iDed1
6AXOPvvaIKyui4nCCOAYfnjKTFkAdkd+jk+pB1WS6Tr1rMq5AlvDlQf/kDuZuUX78ZWNqvduF0A5NHEC
8f6ux1xwlnH3mVaIygvfKEroj8dulgVgV+GPEm1puIAno5SEsSecpffW2kZWe+YXqAKBm9g6xW9Vv12U
s6UZdyUHXjCT4//nGy3s6UZ/xC7jfw5UVb64uo3F02rksQdgRJt/dSu7V7U2sHkgD0A5dP2Q9Npjm/mA
u8+UB8hfdsDbvOnJ8WI7m1z89iQgTka9HfV/5aywvQL3iHuN++sH0vQZ5hW0CLkcimcEshp+8E57cPdZ
8gC+/ZxjWNLEUTgxE4HKD9sqMBP80819j8XJRQF3aG7z480k+5gJliGHQVlYHer5ZZdp4K7M4QLkAaih
RrH4qUT44alfygKwi/AHT0MNO/8d+dPoccCiiNMZl8mQ8wvtoizK84CwfROJ9+JeeKdACcbhAs0HSF96
Hk/dRxyP2WEvAnjj1CwW6/+deVeVEEURNzPvsNzgddo2am1mK+ACwI4Rviv7JpX1qI6X7BVUAMz7O3jO
bl+DntguEmBs/LT91glW41cjQlEG1glhrVLLUx+qtp3NgHIUQvBfNzi9do+XGoDDuj4B+U+Eefzvu3ZA
eGRq/G0IwJYnwHqenU9O3Lug2vkCOThy9xzpZsPbxfAJscBNw+/UjW3xOjhckET4uVox3UrQz+JB20cb
XndkixUgxLZY93I64wp5pNLhArmBWWMsk+537iubzAt4JQgzwu6fdugLDlcfHo21QflKhLkASoTuHTec
CcBGN70F+ZUbYgnkDefvXye9zn6p2qZahpwHZKMS5DHvXawMLVEgAbgNfr04/XQK3z9xNvP+Nhj+TE1f
yZYlq3WwwNOBp8ew9FqtbbUKWQBsSUSjr7p+AQ7LXM6fAHQBLHEoFX5o8vdsBLChBBhD98gLi8hVQf5n
BhYIYhS1lafkeCUo/OBk4rO451pwWOZyPgQQzdYA4UulI47FbIIAIlLibGYE6H72czqE2++aHksD+VOn
M3NV21qLQLSCRyR9l/f5nXIYj0g6yJzOo8krQHV1nMtFnIj9w5YE0PHMHLbbm1pHChQch++es5lZYwiA
Om7is6LvEV2V0pUZl/NVCpUEULzGoH+76pPjjtuKALC2Zc/ttCKxpsfSQJtuu3XMJvZOAlf1ybHE/8eB
aZVa+ruBy/kRwHNy3bR4nfg36+mTY9kWiFoXAB4JXHR9p2rnCZgPn1/dqvm3yDABYDLs50EXq3UL8gWX
85MIcwGUcP+4kxc90WWtCwA7G2A7E+VzvQKFAzwgpPUdtTlXA34Zcq3mwFfCwGW8zAXcBsGfZoYSqPuc
jgH0RDe1LgBsQYIlvmodJmB+nKFJMXIttb7QAhhXMRu8Yeg/tYY1jQKXCyQA72+7h0SmJtzBybQqAKzn
32e0rYlA4WPH7WTN5gMGAWwefq/OuGZNweV8CUA+uKTngu5YB5ShVQHgTSZ4jlf50Pez4GHmQ3Lun8vk
2LUzDBduXbHKlifmwr2H98mfty6Rozf+JMk3z5FLd2+QR4/M1FZZmWyzAC0ul2BcpVFL4Jbh92uNbv4a
uIxdDcFtEPxp9pw8dVzSe2G3SDoCPNSqALBjmrmWOdzMuEXmHPyRvLV6IglfOpCELR1A2qydQr49vpER
Se07Wkb6nWtk+sHvyVtbYkjEuuGkyfrR5N3t75EN5xNJpplEjW0l3yngLnqFCS6AoC0jMutMaPYGuOza
p0VJcBsEf5oVMwjgq26R+tT4B1oUQFTqdPLbrROqHZNfgBAjfv2UeC3sjh0FcrCoB/Fd3IuM3fm56ve0
Cgi23bZpxH/1ABkDDQhbN4zMS16n+r2CYO31faTxSfU+shZyRoBhD40EkKfnAorJIVApj3ld9HQEuKc1
AaDqgzUq5tqyJOlSMgn5vt9j5Ofw+743OXAlVfW7WsSas7tVye+/RsLLG8aSv+6ap2hw88Ft0i95PolM
jlPtK2vAMAJsHpFRc/RrzcFlOQTKmwDkg0u5f9YhjJ5Qc0kwXnCBvS3VOiS/QP7w333LiY8J8nsv7snw
ftJS1e9rDfD+o/+Yb5L8QNC6IWTVn+abM9mQvo80SZxCIrEOR6W/LA3GVcrZwE3D7tUY/fKr4LJri4C8
jwBcAA0+aB9IQ6AbWhPA5PSVZpvtffjoIYnd/fUTyQ+M2jGXZNhALnDz/m3Sf9dHJsnvv3YQCVg7mHxy
YrXq9wsCPGHXL+lTErp7rCZEwAUQsGHo39X6vYzdovMnAB4C1Y9704fe0F9amgfAc6t/GL3g7VmAEWDu
wZ+I7yJKdBPkBxL++I7mCtpfYnE/8wGZmPS1SfIDGAGWnN6m+v2CYstfB4h+y2iCF1VYOxziXA34efDV
F7uE6MHlfIVAXAC1h77UIOJE7BktCWDixeVm38Yk+fo5VvUxRX5gz1/HVL+rRWxLP2SS/MBLG8eS83eu
qH63oLhBR56+iZ8g7JBEYMWRAFzFUgi/1QMvVG3lFQAu50sAutfdMBFWqmpzv5r64zHHtCIAbGeSVAiT
XhgF5h9ZS0KXUREYET9gSV8yadcCs5UOLQHMXUw98B0JXTf0MfI32TiafG9m78/xS3oSE0DgluEkdM84
q4mACeBELPFd2T+1Qmi9huCyLqoWnHoeBSA/DENRKfzo1L1aEQB2cL5XSOt97j7MID+l7SCt1k5iQgih
ePWnMWTB0fXk+j3be7AGucA3qZvIG1umkIj1Ixna/zaTbErfX2jzGn8/uENa7IgjgZupCCjCEidYJRxi
y6GPTiXeS3sfphyuxrjs4YH1bfkSAJKGimGHJmvigZioVLzafy/11uqNb05co4Q/d+syE4Xa320JGA0u
37tJLty5WuijGHKkj1PWkqDNw0kQHQUAS4dDCH3YAzGHpxCvhT3wQEwlxmWJ03kSAGbLntd5VMLuuhXD
kiYs0oIA2p7+SOzkZgM4cOMUabp9kkEAQVtHkNA/LCcCLoCw/ZOIx/wua8Bhmct4xiVvSyEo2I5w9LNC
yO9jZkEAOKnaD1oKSH7FtibaB0qiPRM/ksmfA+pILSICCIDyNSuE5iCNPumwAByWuZwvAfzL5fUQPEvp
ErBhiLQxrhW3RcED2VuM3uwuoF0s/HNrLvJjFGAjgQXCIVkA2cE7RpP6s97GBrkuzk0DyoHTMrefakwA
laI8MGw4+y7p3UkSAD25lTbGwrOoWIOu1tgC2sOhm6dJk1/H5SI/w7aRUmJciCLgG2MFbh2eXXfym4PA
YXkEyJ8AqrzqjSpQebf3WjehqrLqu4HHX1xG7hbBLcxtFVcz/iE9k2gYpCS/AoUZDjGOYhZ47eBbNfpG
vgUOy848XwIopgurjomDcq7RgQ30x2NPQwDWSoSXXN+l2tAC2gTmVd4/uUqV/MF0FAj+lY4EhZQYszmA
5Fjiu6LfBUp8PA9cThfgypdB5EkAsGI6NzYZhjygatiBSdvkMMgqm2PhJdFqDS2gXWy8tF+d/BwQwb6J
ZhWBHP+z94R5ft01kXL3RcbhWnmfBOOGg9m+QPSzSujusV8wAVhhdzi8ptSWZmEFJFy7/w8J3jrSJPk5
ws0oAi4AlF095nZcAe7KHM7zJBg3HOzgHFAHX67sv37waGkESMi2dCI84sJi1QYW0D7a7JnxRPIHbx/F
dnE2V04gJ8DZOG/9Ga1ngrsyh/M8CcYNsRKfC6joMad9S5pcsCfDLJ0IG7+7V8B2MPrIV6bJzwXARDCa
hO+f9MwiYNykjpo67Ie1hr/SFdx1CXFDGJ/nOQBuTABy9uxSvUOId8SxmFM4uSUTYTz0vv7vg6qNK6B9
fHlmk2nPrwQVABPBM4RDCH8gACyC81nW53zlV93Dwd38ToJxw8H/0lVnlaDyFNVowvKLFAZZLhFufmoW
STTj2n8By2LDpX1Ev31snsgPhOwcU2AR8PgfSyA8v+yCNUA1GXddWQUozyVQbjgYMVNx+UVjVYM2D58p
CcByeQDe3J6SITa6tVX8cSOF/Pv3KaYFoCT/DhkQwYH8h0OG+J9+333225+DszJ3Uc0El/MlABi+5FjO
60Vn+lml0bzOHan3z7RkHtDpz7nk0oObqo0roH2cvnOJtNoz/YnEz0V+WQBA2P78jQSMk5SbgRuGPKo5
4t8DwVlZAPmuAHHDlxzkJKJSpWhf34ijUy2aB+BlbZhVvPMgo9CAJc8ChYDMDJJ+7zppn/h+bvIbCUCN
/Ay/528kgADYlug0/nd+qW4EOFvQChA3DBnPsxiqTJkK9N81QneNW2VJAbx+8j22w8GI7Z8aMHL7nBz8
psRc09jxmSpG7VTgdyXmkVG7TGD3549hNLCHY34O9ipA70MdX+Qg0QhJXz6GMfuMsF+BAwtUMZbhqxwc
VODQ16oYd9gEjnzzdBwFviVjj35NXvl9cv7JbxDBWII3vTxNBDwBxmuRPD57dzPlak3GWSn+z3cCzA1f
QvJQokx914r009V3Wf/RGGZYGGShPCDi8BS89Fh106onPcPL4fN9rxwsUWBp7xwsy4Hv8j45WNFXHSv7
5YLfKgV+6J+DHxX4aYABOXv2mN66RPkYo/+6HAT8PDgH6xX4ZYhJBG4YmoONCuDxRQ75KS7AsJbfaEkz
n9QyhslSpwni54n8ABUAXnb3tBKpHP+za3GLaYH6v2tptxfwIAxmgPOdAHPDl1geUN63FipBL2Cn3Yjj
sVcsOQoAaABfSi5NkB8Q5DfAJPmfIIA8k59j95NHAr7+h7b7jSrtQ1uCq3LuyuP/AgkAxvIAmgFgPgCK
qhW6Z/xGCICOAhZdFhF+YLIkAkF+7ZNfSfxnJT8dARhMiMBQ/kyaSDznd9lFOVqXcVXibIHjf25QDmIo
J3lIqeG7tM8E9qNWWBYRcYiGQ1wEKqTnKBTyK4gvyF/IYY8x+SlCd49jO01IiXEOJ3j5EztRuMW2nAWO
ylzFHFaB439u+DJiKD4f4Fq9X1RUxJEpVntrDMIhvx+oCFSIDxQK+QFBfgNMkv8JAnhm8nNABNQRchGw
8AdboKzoe71Ka/83wdEy7tVQtEH9v8Dxv9JYHqBzcUE5FG/cqx20fdRq/uNKcloKGAlAOEH+x2E18iuJ
X4jk5wg/NJnok+Xqz16s/uy0jXIT4U9lnXPBVoCaMh4GlSxVu3IV+vmi5+edButp0oFRwFKTYsZAPAiy
CfLnoKiQH4THkueww5MZ93Dvdcc0mwxulqpV6QVwleKZwx9uPAwqoateloVB5QNr+tGkIxnlUGuNAgAP
hwT57T/syUV+ihAgaUIWhODzbY8zZRtVDwE3ddXYnNUzlT/VTAqDdLoyJWtUdKWftf1+GPCxXhoFrCYA
APMEIJ9Zya8gviC/lRLeJ5CfCYASP5QKAO1dP77lQnBS5iZWf5ot/OFmCINK162CPKBG9QFRr4UdmvS3
NcMgDlQG/CjZhOdXwJLkNxJAYZMfXh/eH6VRz6+733qhjd/b4KQcops1/OHGw6DiuvLly+tKloTS3AI2
DP1Bj1EgJS6TlUZVyGkpsJzgJzoSCPLbP/nh/RMnZPrTtnKf2XYTuEhp76orz5bum636Y2wYUjCxUFpO
NGq5xbboTLPxR1oYBYCII1OJPyVigcivIL4gvzbDHpDf4P3pp/fCnlk1eoYPABdLVixZFdyUOWrW8Icb
D4OcdGVZMlydon7QpuG/6qVcwCo7RhgDM8Ygm/D8hUD+JwjAYuTHZ+L4R4EbhxH3We3+oBx0Z1wso0Py
a5bJL1OGkxqSYafqFbDtdJ16s9r2Q01WK6MAgIkSkE6Q337CHqX3D/1jAvH5vjep3qfJaHDQqZoLnLEy
+S0UAcD4KIAl0lghWoPCPWjzsF2YjdPKKACgOmQQgRrpAQXxBfm1HfYw8lOEJU5g3r/hrOgDlHuNGAdL
y1ugF6L354aTS8mwTlfOydUFAqjrNqPNgLB9E7MtuUw6L2DhECWeKvkBQX4DTJL/CQKwJPkZEidkM++/
qGd29b6Nx4J7Tq7O2PwKM7+FlvwaG0+GS+lKl4bycAEN/dcP3ooncjAKWLsipAQbCdREIMhvgEnyK4lv
bfJT4sP7B6wfQtz/03Y35Ry8/4uy98c+toWW/BobHwUw21Zejr/c6o5t1oVe6AOQTiu5AAdyggBKPkF+
2yR/GCV/aNLErNA944n3190eVOsW2g+cc3JxQgSC0qfZZ36fZnwUKM1GgRIlatF/u/ut7L8C+zKyFXoa
GgUAzBOAkIL8eSC/sQCsTH4uAP81g0iDhLd+Adco5WvJ3l9Z+rSYAPBDSDiUo0Ddqh3CXgv5bdRlfXKs
VdcImQKbJ1g3ODfxBfnzRHxrkR+hD8iPF154fPbutQpN3duAa0bev9CTX2PDj0FxKDtBgRVLVClXh342
8Jjf+cNQ7PVohQdm8gIspQb5BPllmCK/kQCsQX4mAJr4hiVNyPZZ1ofUHtMM+/00KF65HJY9owoJ7hV6
6dOU4Qd5LlBOV8EJ8wJ1HcqX8qGdvT/8yBRKOOsvkVADEwElpCC/AlokPz6TJmbint1nRx9zKOmAl17X
1bk4IeJA5cfisb/S+CggVYR0ugp8FKg17rVudMh6qKehkNYSYg68RxZkzEV8Qf5cxLc2+UP3TWQL3ry+
6vbQtWsINrtqIHMMs77Kyo9VBADjowCbF6B4QVeuOIanhl7fdPsa+7RoMSHmwAx2ICVekSb/EwRgLfIz
AdCwBwJA1c5tSotl4JSubHE3xjEL1/2fZnwUwEyci87ZCfMC9RwqlvMPWDPwqLxMQlNzA0pgnoCJoCiS
X0l8LZGfOk4a9z9CG7h/GJ3iUMEpGJzSlS+BDW+xDg1c497f6sZHAbZGiKJy8UploVT3WsNe7hb068gM
LJPQYlWIA9WhgF+GFl3yK4ivBfKz0Ieey/OLrvdf6BjUH1yinKoHbskcA9c04f254UJQiuLbqVctXrFM
ffrZyGPeux/jZvQIhTRYFeKIQDhESVgkyP8EAViT/HiFKg99fJb0IXXGvf4lOFS8THFwCcudwa1CXfFZ
UMPF5EqI5eEKF+7ts7zvb1A2NtPSaigEYCSQRCAT3x7JryS+1sgvhz6Y8Ko/ozWWOvswDpVnE62aSXxN
GS6IJ8TYQqUKD4UqRDVsSolyju3sZaU3TeYVLCfYOEyQXw0WIH/glhGk4UcdLjqH1GwO7hSXEl886ghO
aSbxNWVQpjIUcqWhUAP62ajOuOb9aGfeQ/lRy/kAgHkCENKuyG8sAI2Rn8X99NweX3TJqNZVPxKckbmD
x2+VoY8mEl9T9ngopNNVd6xQBk/teDac3e4/NCkmSIq1Oj/AAaEyEdgD+U0QX0vkR93fe2FPUnvEqx+B
K45lHKUnvWwg9DE2ZSjEqkJssZwjuyGvRvM6LcKrMWkuoMmlEkqwcGjzcPshv5EArE1+BinpzfZZ2ofU
nfzGKnBE58gWu9Vm3JE4pPnQx9hwoRiupGUSmLyQYrmGFD7e33bbgnc5RZyM1XRlCJBEQHMCQX6zk59V
fPZPyvJd1Z/Un9Z6J+WGL+NI7gkvqyx2e1bDxfJQCJMW2KvdkA+UrVUl1Pv7XvtCaANqPSkG8KAPiGmz
5FcQXyvkZ9g38ZEfzbEavNf2SJkXnfXgRvEyxXncD84oJ7xsSgAwLgK+YlSZD3hUiKrf1GdZnxQ0mE2I
gI4EIKVNkP8JAtAS+dnTXbOjTzsH1nwdnHCsUBoRAo/7rbrS01yGC1fmA+wRSkeX0niczdO1lW8r3xV9
z6OhIk/GZaoRT0vAPAEIaTOeX4PkZ+XOfZMyMfPe8L/t011eaYRd3TxlTmAZDThik3G/KcMN8HyAb7Fe
07GKsyf99HrhneBoKoJ0mxHBUVkEKqTn0AT5FcTXCvklz0/JT9ul0X/bX6r8pm8ncMCxSikvcELmBjjC
4354f5s3HgrhhlDLRWKDiY1aXASuHYI7+C7rkx5CG9UmwqEjNByiRNQU+Z8gAO2Qn4Y91PM3+rD95cot
fDqj72XyY6aXJ73Ker/Ne39uXARIaPgkGW64tqNzaUkE0UHv+C7tcx6NTkn2SPPVITYS5BaB1civJL4G
yY9qD8jP9vL8sF26wfNLfY9yJ7jAJ7tsNul9milFwCtDWOBUm44E8ALelV/3auWzqGcK5gkikm2gRKoQ
gSD/4+SXlzdkh+yflOW3eiBpMOvtUy5RDRDzeztWLuWNvpc5YPMVn7yamghQ8qrjWNkZDeJdIbROU68F
3fYFbRtBIk7EZmt+xlgOh6xCfmMBaIz8bIZ338Rs7MDRYEabQy7etV5DHztULoVFbniyS1nutPmKT16N
iwA3jClu9tYZijqOziwe9Haq7BLmMa/TViRL8LJa2nJRDfpjMSSIktOi5DdBfK2QHwvbcCz28KwX23KH
U+UyEehb2sdwdJz86HtwoMiQnxtuFCUuYxEYcgIHBwd/99lvL8Y2JmwVqcZFgBIpiGlx8hsJwNrkZ6Dk
x0y/1zfdSZ2JzVegL9GnsoND2GNMfrsod+bX1EQg5QQ5IvCl3uM9/1UD7qHx2fMEWn6ohougCJKfhTxI
drGkedNw4vF554xaQ5t+iD5EXzqWduQJL/q4yJOfm7EIeGJcS1fasZHO0ZGJoGb/qIHe3/U8i7xAnxyX
reXl1AiHmAgKm/wK4muC/Ij3qQDwWKn7f9udr9opbBgjv6POi/WlVOrkCa8gv8LQAMrEmJdIa+qKF2+A
fYZoQ/q4BLs185jTcYcyJNLqaMBGAkpSs5L/CQKwFvmlXdskr4/f8F7Ui9SLb7XLObBmc/QZ7TsIAEtf
MMnFS5282iPIrzBjEfDJMrbDhJw4edNG9XOLbTnHd3nfu4gx9SfjsrQ6GuiP0pHgt1Hm9/xaIj/1+mEU
WNPjMa/z3dojXv2c9hHifZ7s4kF29CH6En3KyV+kEt68mlIEfMYY60KwB6QbrxBBBK6dQnp4ze9yFA3P
tl1Jjc/U4mjAwiGIwFzkVxDfWuRnxGfbFU7MDPl9DPFZ0pvU/0+b41Xb+fdG36CPHEs5oq+wpBl9hz7k
M7yC/E8xLgK+dgiLorAHJHsdE40lPeSQyNfBySm4/ozW3/gt63cvmBJAr9Fd6FDGzRFBPsn/BAFYmvwg
PhNAEvX6SRPZqliPee9muI1/fZGDk0Mo65NSDj7oI9ZXUp+h79CHyrU9gvxPMaUIsCIQy2J5hQiJVH2e
F8DjVO8S2osOv/vx1BY6BiGR1sIijAQgar7IryS+FsiP/fmxSzO9FryUvMHMNgertvbrhz5gfYF4X9oF
hCe76DP0HfpQkD+fxkWgrBAhgUIsyUIi6mk8DaOBg0NgvSktPvL+tscl7OjANuZFkqyhEUFNBFonv/Q2
durxE2mSS7/vu6ofafS/9pdqDnnlU9rmwaztJa+PEicPedBH6CtlpUeQv4CGRkMD8rwAS2V5SISasqFK
ROFXsbFby/rvv73KZ2nvO3j4Hk9yQQRaEQLCIS4Ck+Q3FoCFyQ/SM+BtjPD69P+xT4/n/C533Ca98VOF
sLqt0NaszWnbow/kvuAhD/qIx/ui0mMG46MBzwswrKKWjLIaKgxuOkfkBiXRKRgN/F07Bvds+FH7bb4r
+j1kC+uoELQyIuiPx1ICj3m651cQ3xLkz0X8xPFsGQPifM8F3R7Wi31re9W2/n3QtqyNaVtT345YH14f
fYC+QJ+gb0S8XwjGRcBDIl4qVY4G9VnprRQTARNCtV6Rwxp93GGP38r+mWxEkNcVcSFYa5c6Fg5Rwpok
v5EACpP8IZz8MvHxTEbAusHE++vumfWntd5b7d3QEZz4aFvHUo4obyLWV3p9XuIUIU8hGxcChlflaMBz
g7p0NGjIwqJSpSACjAoBEELDD9/5zWdpnwwsUZBKpwlspam1xMBE8LssAguTn5EeSJyQJYU6E7KDd44m
vj/2J55fdMmoH99qh0z8ALkNaXvSWN+R7eqB7e95rK/0+qLEaSFTGw0Qd+JBalQfMOuIsKgRKhOs86RO
9HftENzLfWbb1d7fdr+GhzMQ8+rl8ilDSny2JYXAwiGIQIX45iY/PDvDH+OzGfEpcP+BW4cTvH6o0dyO
190mv7mmamtWz4fHl+N8Fu5gKQPCHbQt2hhtjTYXXt9KhobmQuDlUl4pwsQLhmaU4+pJ+UFuIVR4uX7r
elNbzPP87N1kvx8GZCE8kifUDCESF0NhCwL5CQiLXMXc5Me2M4z0e8dlU+KD8I+wbgfzJn5rBxHvhT0e
NZgVfbL2yH/Pp8lta7SN3EZ8GQPifMzmoi3RpmhbXuExLm8K8lvBuAjggYzDIjxgzfMDLgTm0bgQnJzL
RLzYr8kY9/ffXu/5Tbf0AEoKkIOVUSUxSCNDIQsC4VDobojg2cgfjE+J9Nk0xMmSSc88PZaO+P88hHgv
7kUazemY7ja1xXrXLqFjnco4RRiIj7aRQh1OfB7noy2Nwx3h9TVkytEAQzLKcJiB5PkB9pqRRgSdTsoR
ypVEp/M8wb9icJ03aw9rmtDgg+gtXAwYGcL2T2JhEhWDNNOsMkKYQxQIhyCCvJI/mAPE3z02O3jPuCwa
6jwC8VlySz0/rh8ThBLpO6W7xbXc8mLfJtPL+9VoaSA92gBtAeJLO/dxj48248RHW6JN0baiwqNRQ4c8
SQh8RJByBNSvSzl6S17PkDCDFP4VQ2u3fHFI05gGM9qs85jfOdV3Rb+7ARuGUuKNYStRGeGNBIHZZzVh
GEON/BzSSDCOjULw2I9jdDYlfFbQ7nFZwRQhu8c+AvFZmIPv/TqKBFAvj/dqeX3V7a77B9GpdSe/ua5G
r8i48oG13qL3hqRWIj6qZYjvpaoOavk8xld6fFPEF+TXsD1NCIhjkcihfo01K/WRMOuoB1QTQ+nqFaOq
tQ/oV2d8808aznp7MwThs7T3LSzLxoQWvC3yB+x4LYdNQDYFxJETQsngSzVM4kQsC11AdICGNhzZLLwB
0akY8Aim/y+U7D/0Z48den7R9Zb7h+1S68W+tRkztS+08utfulr5l/h9sHsC6Us6UNIbwhyUM9EGaAu0
CdpGEN9OzJQQEMeibo1KBiZweHgkjQo0V2BioGFByUrlpRAhRxABJV4oH/VCK99uNQe9ElcvvuXihh++
s93j884nfRf3vOa/sv89rFAN3DKcxvKjmDjC9k1kAsEzAhHHY6Sqk8poYBglqJDCD05i4QuWdcCj4yET
nxX9iDclOvXs9zzmvnvNfXa7k/Xi39peZ8xri+HhKzXz6o5ro9cYKF8ru/aSEDW9F5n0qOZwb8/DHLQB
2gJtgrYRxLczMxYCT5Z5+VQ5KqC+nSMGxMRymFSyYjmQiovBMEJQBJao5ByJsMm1feDAmkObxteZ8Mac
BgltVjScHb3ZY07HvR7zOh/1/KJLqve33c9Sb33Bd0nvS77L+lylodU1v5X9r7F/L+1zyWdJ7wveC3ue
9VzQNdVzbqcj9d9rs7deTMtNbuPfWF5zyMtzavTSJ7zQ2n9g+cAab5WoVLoxfltxHfy6fEsips8JbxDX
K0mPe1R6e17O5MmtIL6dmlIIqGCojQpYwYj4FwThIwMmfpAYutPRwVMSBA2TIAqMECUNVSWlKDgQc4Ok
wSWcy0SWdavazNn/xRYu4XXauujdol2iGr7DgH/T/8PfcAyOxXfk7/K4XQnp92g4wzw8/UR4wwjvqMPC
NDyFhWvGtXNPj3vCveEe1by9sqojiG/nxoWgHBVQ1zYWA7wkQgQkhoiTlYKQRgiETI6OXlgmwIRRsVxg
yaoVA5k44IlzCyR/wHcRikFsVcsFOlQsGSgRXX7WVorjuYdXEh7XimvGteMejEmPe1V6e058YUXMuLcD
AfiooBQDJnwQImDyB3EyFwS29UAogaoJauUgHkIMJJUgIzwwiIkH+z1lgfiw3ILNRcjzEbkg/T8/jn0H
38U5pHPhnDg3fgO/hd/Eb+MacC24Jk54XCuuGdeOezAmvfD2wh4zU2JAiMBzBi4IPkJgIRjCChAPIQa8
LsgIDwxiwhuDpKi0cJFwwGMrofwbjsV38F2cA+fCOXFu/AZ+C7+J38Y1cA/PCc9jely7IL2wfJtSDGqC
4CMEiIawAmVDEBBeF4klPDCICW8MkmIyDoTlQuGA1waU/8ePw3fwXZwD58I5cW78Bn4Lv4nfxjVwD69G
eEF6Yc9knDzGglATBbwuyMjFAW8MknKRwEPzEUQN/O+c3AD36Py8+A01sqsRHhAmzOymJBgnnbEwuDg4
QFgOEFgNymOU3+XnMyY6oLwWYcKsYkoSKqEkqjE4mdVIbQy1cwPCnsl0uv8DRYFFJOEP/tsAAAAASUVO
RK5CYII=
</value>
</data>
<data name="logoPictureBox.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 3</value>
</data>
<data name="logoPictureBox.Size" type="System.Drawing.Size, System.Drawing">
<value>219, 259</value>
</data>
<data name="logoPictureBox.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
<value>CenterImage</value>
</data>
<data name="logoPictureBox.TabIndex" type="System.Int32, mscorlib">
<value>12</value>
</data>
<data name="&gt;&gt;logoPictureBox.Name" xml:space="preserve">
<value>logoPictureBox</value>
</data>
<data name="&gt;&gt;logoPictureBox.Type" xml:space="preserve">
<value>System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;logoPictureBox.Parent" xml:space="preserve">
<value>tableLayoutPanel</value>
</data>
<data name="&gt;&gt;logoPictureBox.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="labelProductName.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="labelProductName.Location" type="System.Drawing.Point, System.Drawing">
<value>231, 0</value>
</data>
<data name="labelProductName.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>6, 0, 3, 0</value>
</data>
<data name="labelProductName.Size" type="System.Drawing.Size, System.Drawing">
<value>256, 26</value>
</data>
<data name="labelProductName.TabIndex" type="System.Int32, mscorlib">
<value>19</value>
</data>
<data name="labelProductName.Text" xml:space="preserve">
<value>Product Name</value>
</data>
<data name="labelProductName.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="&gt;&gt;labelProductName.Name" xml:space="preserve">
<value>labelProductName</value>
</data>
<data name="&gt;&gt;labelProductName.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelProductName.Parent" xml:space="preserve">
<value>tableLayoutPanel</value>
</data>
<data name="&gt;&gt;labelProductName.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="labelVersion.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="labelVersion.Location" type="System.Drawing.Point, System.Drawing">
<value>231, 26</value>
</data>
<data name="labelVersion.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>6, 0, 3, 0</value>
</data>
<data name="labelVersion.Size" type="System.Drawing.Size, System.Drawing">
<value>256, 26</value>
</data>
<data name="labelVersion.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="labelVersion.Text" xml:space="preserve">
<value>Version</value>
</data>
<data name="labelVersion.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="&gt;&gt;labelVersion.Name" xml:space="preserve">
<value>labelVersion</value>
</data>
<data name="&gt;&gt;labelVersion.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelVersion.Parent" xml:space="preserve">
<value>tableLayoutPanel</value>
</data>
<data name="&gt;&gt;labelVersion.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="labelCopyright.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="labelCopyright.Location" type="System.Drawing.Point, System.Drawing">
<value>231, 52</value>
</data>
<data name="labelCopyright.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>6, 0, 3, 0</value>
</data>
<data name="labelCopyright.Size" type="System.Drawing.Size, System.Drawing">
<value>256, 26</value>
</data>
<data name="labelCopyright.TabIndex" type="System.Int32, mscorlib">
<value>21</value>
</data>
<data name="labelCopyright.Text" xml:space="preserve">
<value>Copyright</value>
</data>
<data name="labelCopyright.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="&gt;&gt;labelCopyright.Name" xml:space="preserve">
<value>labelCopyright</value>
</data>
<data name="&gt;&gt;labelCopyright.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;labelCopyright.Parent" xml:space="preserve">
<value>tableLayoutPanel</value>
</data>
<data name="&gt;&gt;labelCopyright.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="okButton.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="okButton.Location" type="System.Drawing.Point, System.Drawing">
<value>412, 239</value>
</data>
<data name="okButton.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="okButton.TabIndex" type="System.Int32, mscorlib">
<value>24</value>
</data>
<data name="okButton.Text" xml:space="preserve">
<value>&amp;ОК</value>
</data>
<data name="&gt;&gt;okButton.Name" xml:space="preserve">
<value>okButton</value>
</data>
<data name="&gt;&gt;okButton.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;okButton.Parent" xml:space="preserve">
<value>tableLayoutPanel</value>
</data>
<data name="&gt;&gt;okButton.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="textBoxDescription.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="textBoxDescription.Location" type="System.Drawing.Point, System.Drawing">
<value>231, 107</value>
</data>
<data name="textBoxDescription.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>6, 3, 3, 3</value>
</data>
<data name="textBoxDescription.Multiline" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="textBoxDescription.ScrollBars" type="System.Windows.Forms.ScrollBars, System.Windows.Forms">
<value>Both</value>
</data>
<data name="textBoxDescription.Size" type="System.Drawing.Size, System.Drawing">
<value>256, 126</value>
</data>
<data name="textBoxDescription.TabIndex" type="System.Int32, mscorlib">
<value>23</value>
</data>
<data name="textBoxDescription.Text" xml:space="preserve">
<value>Description</value>
</data>
<data name="&gt;&gt;textBoxDescription.Name" xml:space="preserve">
<value>textBoxDescription</value>
</data>
<data name="&gt;&gt;textBoxDescription.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;textBoxDescription.Parent" xml:space="preserve">
<value>tableLayoutPanel</value>
</data>
<data name="&gt;&gt;textBoxDescription.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="linkLabel1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="linkLabel1.Location" type="System.Drawing.Point, System.Drawing">
<value>231, 78</value>
</data>
<data name="linkLabel1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>6, 0, 3, 0</value>
</data>
<data name="linkLabel1.Size" type="System.Drawing.Size, System.Drawing">
<value>256, 26</value>
</data>
<data name="linkLabel1.TabIndex" type="System.Int32, mscorlib">
<value>25</value>
</data>
<data name="linkLabel1.Text" xml:space="preserve">
<value>Github Repo</value>
</data>
<data name="linkLabel1.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="&gt;&gt;linkLabel1.Name" xml:space="preserve">
<value>linkLabel1</value>
</data>
<data name="&gt;&gt;linkLabel1.Type" xml:space="preserve">
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;linkLabel1.Parent" xml:space="preserve">
<value>tableLayoutPanel</value>
</data>
<data name="&gt;&gt;linkLabel1.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="tableLayoutPanel.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Fill</value>
</data>
<data name="tableLayoutPanel.Location" type="System.Drawing.Point, System.Drawing">
<value>9, 9</value>
</data>
<data name="tableLayoutPanel.RowCount" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="tableLayoutPanel.Size" type="System.Drawing.Size, System.Drawing">
<value>490, 265</value>
</data>
<data name="tableLayoutPanel.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="&gt;&gt;tableLayoutPanel.Name" xml:space="preserve">
<value>tableLayoutPanel</value>
</data>
<data name="&gt;&gt;tableLayoutPanel.Type" xml:space="preserve">
<value>System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;tableLayoutPanel.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;tableLayoutPanel.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="tableLayoutPanel.LayoutSettings" type="System.Windows.Forms.TableLayoutSettings, System.Windows.Forms">
<value>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;TableLayoutSettings&gt;&lt;Controls&gt;&lt;Control Name="logoPictureBox" Row="0" RowSpan="6" Column="0" ColumnSpan="1" /&gt;&lt;Control Name="labelProductName" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="labelVersion" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="labelCopyright" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="okButton" Row="5" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="textBoxDescription" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;Control Name="linkLabel1" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /&gt;&lt;/Controls&gt;&lt;Columns Styles="Percent,46,0039,Percent,53,9961" /&gt;&lt;Rows Styles="Percent,10,Percent,10,Percent,10,Percent,10,Percent,50,Percent,10" /&gt;&lt;/TableLayoutSettings&gt;</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>508, 283</value>
</data>
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
<value>Segoe UI, 8.25pt</value>
</data>
<data name="$this.Padding" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>9, 9, 9, 9</value>
</data>
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
<value>CenterParent</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>About</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>FormAboutBox</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
-138
View File
@@ -1,138 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="labelProductName.Text" xml:space="preserve">
<value>Название продукта</value>
</data>
<data name="labelVersion.Text" xml:space="preserve">
<value>Версия</value>
</data>
<data name="labelCopyright.Text" xml:space="preserve">
<value>Авторские права</value>
</data>
<data name="linkLabel1.Text" xml:space="preserve">
<value>Сайт</value>
</data>
<data name="textBoxDescription.Text" xml:space="preserve">
<value>Описание</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>О программе</value>
</data>
</root>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-278
View File
@@ -1,278 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="checkBox_DECODE_UseFramework.Text" xml:space="preserve">
<value>Использовать файлы фремворка из:</value>
</data>
<data name="checkBox_DECODE_Force.Text" xml:space="preserve">
<value>Перезаписывать файлы в каталоге назначения</value>
</data>
<data name="checkBox_DECODE_NoRes.Text" xml:space="preserve">
<value>Не декомпилировать ресурсы</value>
</data>
<data name="checkBox_DECODE_NoSrc.Text" xml:space="preserve">
<value>Не декомпилировать исходный код</value>
</data>
<data name="checkBox_BUILD_UseAapt.Text" xml:space="preserve">
<value>Использовать aapt.exe из</value>
</data>
<data name="checkBox_BUILD_ForceAll.Text" xml:space="preserve">
<value>Пропустить определение изменений и построить все файлы</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="radioButtonFileZipalign.Size" type="System.Drawing.Size, System.Drawing">
<value>57, 18</value>
</data>
<data name="ColumnTime.HeaderText" xml:space="preserve">
<value>Время</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="ColumnTime.Width" type="System.Int32, mscorlib">
<value>65</value>
</data>
<data name="ColumnMessage.HeaderText" xml:space="preserve">
<value>Сообщение</value>
</data>
<data name="clearLogToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
<value>171, 22</value>
</data>
<data name="clearLogToolStripMenuItem.Text" xml:space="preserve">
<value>Очистить журнал</value>
</data>
<data name="contextMenuStripLog.Size" type="System.Drawing.Size, System.Drawing">
<value>172, 26</value>
</data>
<data name="menuItemSettings.Text" xml:space="preserve">
<value>Настройки</value>
</data>
<data name="menuItemExit.Text" xml:space="preserve">
<value>Выход</value>
</data>
<data name="menuItemFile.Text" xml:space="preserve">
<value>Файл</value>
</data>
<data name="menuItemCheckUpdate.Text" xml:space="preserve">
<value>Проверить обновление</value>
</data>
<data name="menuItemAbout.Text" xml:space="preserve">
<value>О программе</value>
</data>
<data name="menuItemHelp.Text" xml:space="preserve">
<value>Справка</value>
</data>
<data name="button_BUILD_Build.Text" xml:space="preserve">
<value>Собрать</value>
</data>
<data name="button_DECODE_Decode.Text" xml:space="preserve">
<value>Декомпилировать</value>
</data>
<data name="tabPageZipAlign.Text" xml:space="preserve">
<value>Выравнивание</value>
</data>
<data name="tabPageSign.Text" xml:space="preserve">
<value>Подпись</value>
</data>
<data name="toolStripStatusLabelStateText.Text" xml:space="preserve">
<value>Загрузка...</value>
</data>
<data name="openFileDialogSignApk.Title" xml:space="preserve">
<value>Выберите файл для подписи</value>
</data>
<data name="checkBox_BUILD_CopyOriginal.Text" xml:space="preserve">
<value>Копировать оригинальный AndroidManifest.xml и папку META-INF в построенный apk</value>
</data>
<data name="checkBox_BUILD_UseFramework.Text" xml:space="preserve">
<value>Использовать файлы фремворка из:</value>
</data>
<data name="checkBox_DECODE_KeepBrokenRes.Text" xml:space="preserve">
<value>Сохранить испорченные ресурсы</value>
</data>
<data name="tabPageBuild.Text" xml:space="preserve">
<value>Сборка</value>
</data>
<data name="tabPageDecode.Text" xml:space="preserve">
<value>Декомпиляция</value>
</data>
<data name="checkBox_DECODE_OutputDirectory.Text" xml:space="preserve">
<value>Декомпилировать в каталог:</value>
</data>
<data name="checkBox_BUILD_OutputAppPath.Text" xml:space="preserve">
<value>Сохранить файл как:</value>
</data>
<data name="tabPageInstallFramework.Text" xml:space="preserve">
<value>Установка фреймворков</value>
</data>
<data name="groupBox_BUILD_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="groupBox_DECODE_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="groupBox_IF_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="button_IF_InstallFramework.Text" xml:space="preserve">
<value>Установить</value>
</data>
<data name="button_ZIPALIGN_Align.Text" xml:space="preserve">
<value>Выровнять</value>
</data>
<data name="label_ZIPALIGN_OutputFile.Text" xml:space="preserve">
<value>Сохранить файл как:</value>
</data>
<data name="groupBox_ZIPALIGN_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="checkBox_ZIPALIGN_OverwriteOutputFile.Text" xml:space="preserve">
<value>Перезаписать выходной файл, если он существует</value>
</data>
<data name="button_SIGN_Sign.Text" xml:space="preserve">
<value>Подписать</value>
</data>
<data name="checkBox_IF_FramePath.Text" xml:space="preserve">
<value>Устанавливать фреймворк в каталог:</value>
</data>
<data name="checkBox_ZIPALIGN_Recompress.Text" xml:space="preserve">
<value>Перепаковать с использованием алгоритма Zopfli</value>
</data>
<data name="checkBox_ZIPALIGN_VerboseOutput.Text" xml:space="preserve">
<value>Подробный вывод</value>
</data>
<data name="label_ZIPALIGN_AlignmentBytes.Text" xml:space="preserve">
<value>Выравнивание (в байтах), например, '4' для 32-битного выравнивания</value>
</data>
<data name="checkBox_DECODE_MatchOriginal.Text" xml:space="preserve">
<value>Сохранять файлы близко к оригиналу, насколько это возможно. Предотвращает ребилд.</value>
</data>
<data name="checkBox_ZIPALIGN_CheckAlignment.Text" xml:space="preserve">
<value>Только проверить выравнивание (не модифицирует файл)</value>
</data>
<data name="groupBox_SIGN_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="label_SIGN_OutputFile.Text" xml:space="preserve">
<value>Сохранить файл как:</value>
</data>
<data name="label_SIGN_PrivateKey.Text" xml:space="preserve">
<value>Закрытый ключ</value>
</data>
<data name="label_SIGN_PublicKey.Text" xml:space="preserve">
<value>Открытый ключ</value>
</data>
</root>
-381
View File
@@ -1,381 +0,0 @@
namespace APKToolGUI
{
partial class FormSettings
{
/// <summary>
/// Требуется переменная конструктора.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Освободить все используемые ресурсы.
/// </summary>
/// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Код, автоматически созданный конструктором форм Windows
/// <summary>
/// Обязательный метод для поддержки конструктора - не изменяйте
/// содержимое данного метода при помощи редактора кода.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSettings));
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.themeComboBox = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.customApktoolBtn = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label();
this.buttonCustomTempLocation = new System.Windows.Forms.Button();
this.buttonCustomJavaLocation = new System.Windows.Forms.Button();
this.groupBoxLanguage = new System.Windows.Forms.GroupBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.groupBoxContextMenu = new System.Windows.Forms.GroupBox();
this.labelAdminRights = new System.Windows.Forms.Label();
this.buttonAddContextMenu = new System.Windows.Forms.Button();
this.buttonRemoveContextMenu = new System.Windows.Forms.Button();
this.buttonCancel = new System.Windows.Forms.Button();
this.buttonОК = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.checkBox7 = new System.Windows.Forms.CheckBox();
this.checkBox6 = new System.Windows.Forms.CheckBox();
this.customApkToolTxtBox = new System.Windows.Forms.TextBox();
this.useCustomApktoolChk = new System.Windows.Forms.CheckBox();
this.checkBox5 = new System.Windows.Forms.CheckBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.customTempLocationTxtBox = new System.Windows.Forms.TextBox();
this.textBoxCustomJavaLocation = new System.Windows.Forms.TextBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.checkBoxCheckUpdateStartup = new System.Windows.Forms.CheckBox();
this.ignoreOutputContextMenuBox = new System.Windows.Forms.CheckBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBoxLanguage.SuspendLayout();
this.groupBoxContextMenu.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
resources.ApplyResources(this.tabControl1, "tabControl1");
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
//
// tabPage1
//
resources.ApplyResources(this.tabPage1, "tabPage1");
this.tabPage1.Controls.Add(this.groupBox1);
this.tabPage1.Controls.Add(this.groupBoxLanguage);
this.tabPage1.Controls.Add(this.groupBoxContextMenu);
this.tabPage1.Name = "tabPage1";
this.tabPage1.UseVisualStyleBackColor = true;
//
// groupBox1
//
resources.ApplyResources(this.groupBox1, "groupBox1");
this.groupBox1.Controls.Add(this.textBox1);
this.groupBox1.Controls.Add(this.checkBox7);
this.groupBox1.Controls.Add(this.checkBox6);
this.groupBox1.Controls.Add(this.themeComboBox);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.customApkToolTxtBox);
this.groupBox1.Controls.Add(this.customApktoolBtn);
this.groupBox1.Controls.Add(this.useCustomApktoolChk);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.checkBox5);
this.groupBox1.Controls.Add(this.checkBox4);
this.groupBox1.Controls.Add(this.customTempLocationTxtBox);
this.groupBox1.Controls.Add(this.textBoxCustomJavaLocation);
this.groupBox1.Controls.Add(this.buttonCustomTempLocation);
this.groupBox1.Controls.Add(this.checkBox3);
this.groupBox1.Controls.Add(this.buttonCustomJavaLocation);
this.groupBox1.Controls.Add(this.checkBox2);
this.groupBox1.Controls.Add(this.checkBox1);
this.groupBox1.Controls.Add(this.checkBoxCheckUpdateStartup);
this.groupBox1.Name = "groupBox1";
this.groupBox1.TabStop = false;
//
// themeComboBox
//
this.themeComboBox.FormattingEnabled = true;
this.themeComboBox.Items.AddRange(new object[] {
resources.GetString("themeComboBox.Items"),
resources.GetString("themeComboBox.Items1"),
resources.GetString("themeComboBox.Items2")});
resources.ApplyResources(this.themeComboBox, "themeComboBox");
this.themeComboBox.Name = "themeComboBox";
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
//
// customApktoolBtn
//
resources.ApplyResources(this.customApktoolBtn, "customApktoolBtn");
this.customApktoolBtn.Name = "customApktoolBtn";
this.customApktoolBtn.UseVisualStyleBackColor = true;
this.customApktoolBtn.Click += new System.EventHandler(this.customApktoolBtn_Click);
//
// label6
//
resources.ApplyResources(this.label6, "label6");
this.label6.ForeColor = System.Drawing.Color.DimGray;
this.label6.Name = "label6";
//
// buttonCustomTempLocation
//
resources.ApplyResources(this.buttonCustomTempLocation, "buttonCustomTempLocation");
this.buttonCustomTempLocation.Name = "buttonCustomTempLocation";
this.buttonCustomTempLocation.UseVisualStyleBackColor = true;
this.buttonCustomTempLocation.Click += new System.EventHandler(this.buttonCustomTempLocation_Click);
//
// buttonCustomJavaLocation
//
resources.ApplyResources(this.buttonCustomJavaLocation, "buttonCustomJavaLocation");
this.buttonCustomJavaLocation.Name = "buttonCustomJavaLocation";
this.buttonCustomJavaLocation.UseVisualStyleBackColor = true;
this.buttonCustomJavaLocation.Click += new System.EventHandler(this.buttonCustomJavaLocation_Click);
//
// groupBoxLanguage
//
resources.ApplyResources(this.groupBoxLanguage, "groupBoxLanguage");
this.groupBoxLanguage.Controls.Add(this.comboBox1);
this.groupBoxLanguage.Name = "groupBoxLanguage";
this.groupBoxLanguage.TabStop = false;
//
// comboBox1
//
this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
resources.ApplyResources(this.comboBox1, "comboBox1");
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Name = "comboBox1";
//
// groupBoxContextMenu
//
resources.ApplyResources(this.groupBoxContextMenu, "groupBoxContextMenu");
this.groupBoxContextMenu.Controls.Add(this.ignoreOutputContextMenuBox);
this.groupBoxContextMenu.Controls.Add(this.labelAdminRights);
this.groupBoxContextMenu.Controls.Add(this.buttonAddContextMenu);
this.groupBoxContextMenu.Controls.Add(this.buttonRemoveContextMenu);
this.groupBoxContextMenu.Name = "groupBoxContextMenu";
this.groupBoxContextMenu.TabStop = false;
//
// labelAdminRights
//
resources.ApplyResources(this.labelAdminRights, "labelAdminRights");
this.labelAdminRights.Name = "labelAdminRights";
//
// buttonAddContextMenu
//
resources.ApplyResources(this.buttonAddContextMenu, "buttonAddContextMenu");
this.buttonAddContextMenu.Name = "buttonAddContextMenu";
this.buttonAddContextMenu.UseVisualStyleBackColor = true;
this.buttonAddContextMenu.Click += new System.EventHandler(this.buttonAddContextMenu_Click);
//
// buttonRemoveContextMenu
//
resources.ApplyResources(this.buttonRemoveContextMenu, "buttonRemoveContextMenu");
this.buttonRemoveContextMenu.Name = "buttonRemoveContextMenu";
this.buttonRemoveContextMenu.UseVisualStyleBackColor = true;
this.buttonRemoveContextMenu.Click += new System.EventHandler(this.buttonRemoveContextMenu_Click);
//
// buttonCancel
//
resources.ApplyResources(this.buttonCancel, "buttonCancel");
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Name = "buttonCancel";
this.buttonCancel.UseVisualStyleBackColor = true;
//
// buttonОК
//
resources.ApplyResources(this.buttonОК, "buttonОК");
this.buttonОК.Name = "buttonОК";
this.buttonОК.UseVisualStyleBackColor = true;
this.buttonОК.Click += new System.EventHandler(this.buttonОК_Click);
//
// textBox1
//
this.textBox1.BackColor = System.Drawing.SystemColors.Window;
this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::APKToolGUI.Properties.Settings.Default, "CustomJVMArgs", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
resources.ApplyResources(this.textBox1, "textBox1");
this.textBox1.Name = "textBox1";
this.textBox1.Text = global::APKToolGUI.Properties.Settings.Default.CustomJVMArgs;
//
// checkBox7
//
resources.ApplyResources(this.checkBox7, "checkBox7");
this.checkBox7.Checked = global::APKToolGUI.Properties.Settings.Default.UseCustomJVMArgs;
this.checkBox7.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "UseCustomJVMArgs", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.checkBox7.Name = "checkBox7";
this.checkBox7.UseVisualStyleBackColor = true;
//
// checkBox6
//
resources.ApplyResources(this.checkBox6, "checkBox6");
this.checkBox6.Checked = global::APKToolGUI.Properties.Settings.Default.DebugMode;
this.checkBox6.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "DebugMode", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.checkBox6.Name = "checkBox6";
this.checkBox6.UseVisualStyleBackColor = true;
//
// customApkToolTxtBox
//
this.customApkToolTxtBox.BackColor = System.Drawing.SystemColors.Window;
this.customApkToolTxtBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::APKToolGUI.Properties.Settings.Default, "ApktoolPath", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
resources.ApplyResources(this.customApkToolTxtBox, "customApkToolTxtBox");
this.customApkToolTxtBox.Name = "customApkToolTxtBox";
this.customApkToolTxtBox.Text = global::APKToolGUI.Properties.Settings.Default.ApktoolPath;
//
// useCustomApktoolChk
//
resources.ApplyResources(this.useCustomApktoolChk, "useCustomApktoolChk");
this.useCustomApktoolChk.Checked = global::APKToolGUI.Properties.Settings.Default.UseCustomApktool;
this.useCustomApktoolChk.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "UseCustomApktool", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.useCustomApktoolChk.Name = "useCustomApktoolChk";
this.useCustomApktoolChk.UseVisualStyleBackColor = true;
//
// checkBox5
//
resources.ApplyResources(this.checkBox5, "checkBox5");
this.checkBox5.Checked = global::APKToolGUI.Properties.Settings.Default.Utf8FilenameSupport;
this.checkBox5.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "Utf8FilenameSupport", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.checkBox5.Name = "checkBox5";
this.checkBox5.UseVisualStyleBackColor = true;
//
// checkBox4
//
resources.ApplyResources(this.checkBox4, "checkBox4");
this.checkBox4.Checked = global::APKToolGUI.Properties.Settings.Default.UseCustomJavaExe;
this.checkBox4.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "UseCustomJavaExe", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.checkBox4.Name = "checkBox4";
this.checkBox4.UseVisualStyleBackColor = true;
//
// customTempLocationTxtBox
//
this.customTempLocationTxtBox.BackColor = System.Drawing.SystemColors.Window;
this.customTempLocationTxtBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::APKToolGUI.Properties.Settings.Default, "TempDir", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
resources.ApplyResources(this.customTempLocationTxtBox, "customTempLocationTxtBox");
this.customTempLocationTxtBox.Name = "customTempLocationTxtBox";
this.customTempLocationTxtBox.Text = global::APKToolGUI.Properties.Settings.Default.TempDir;
//
// textBoxCustomJavaLocation
//
this.textBoxCustomJavaLocation.BackColor = System.Drawing.SystemColors.Window;
this.textBoxCustomJavaLocation.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::APKToolGUI.Properties.Settings.Default, "JavaExe", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
resources.ApplyResources(this.textBoxCustomJavaLocation, "textBoxCustomJavaLocation");
this.textBoxCustomJavaLocation.Name = "textBoxCustomJavaLocation";
this.textBoxCustomJavaLocation.Text = global::APKToolGUI.Properties.Settings.Default.JavaExe;
//
// checkBox3
//
resources.ApplyResources(this.checkBox3, "checkBox3");
this.checkBox3.Checked = global::APKToolGUI.Properties.Settings.Default.UseCustomTempDir;
this.checkBox3.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "UseCustomTempDir", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.checkBox3.Name = "checkBox3";
this.checkBox3.UseVisualStyleBackColor = true;
//
// checkBox2
//
resources.ApplyResources(this.checkBox2, "checkBox2");
this.checkBox2.Checked = global::APKToolGUI.Properties.Settings.Default.PlaySoundWhenDone;
this.checkBox2.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "PlaySoundWhenDone", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.checkBox2.Name = "checkBox2";
this.checkBox2.UseVisualStyleBackColor = true;
//
// checkBox1
//
resources.ApplyResources(this.checkBox1, "checkBox1");
this.checkBox1.Checked = global::APKToolGUI.Properties.Settings.Default.ClearLogBeforeAction;
this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox1.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "ClearLogBeforeAction", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.checkBox1.Name = "checkBox1";
this.checkBox1.UseVisualStyleBackColor = true;
//
// checkBoxCheckUpdateStartup
//
resources.ApplyResources(this.checkBoxCheckUpdateStartup, "checkBoxCheckUpdateStartup");
this.checkBoxCheckUpdateStartup.Checked = global::APKToolGUI.Properties.Settings.Default.CheckForUpdateAtStartup;
this.checkBoxCheckUpdateStartup.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBoxCheckUpdateStartup.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "CheckForUpdateAtStartup", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.checkBoxCheckUpdateStartup.Name = "checkBoxCheckUpdateStartup";
this.checkBoxCheckUpdateStartup.UseVisualStyleBackColor = true;
//
// ignoreOutputContextMenuBox
//
resources.ApplyResources(this.ignoreOutputContextMenuBox, "ignoreOutputContextMenuBox");
this.ignoreOutputContextMenuBox.Checked = global::APKToolGUI.Properties.Settings.Default.IgnoreOutputDirContextMenu;
this.ignoreOutputContextMenuBox.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "IgnoreOutputDirContextMenu", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.ignoreOutputContextMenuBox.Name = "ignoreOutputContextMenuBox";
this.ignoreOutputContextMenuBox.UseVisualStyleBackColor = true;
//
// FormSettings
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonОК);
this.Controls.Add(this.tabControl1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormSettings";
this.Load += new System.EventHandler(this.FormSettings_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBoxLanguage.ResumeLayout(false);
this.groupBoxContextMenu.ResumeLayout(false);
this.groupBoxContextMenu.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.GroupBox groupBoxLanguage;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.GroupBox groupBoxContextMenu;
private System.Windows.Forms.Label labelAdminRights;
private System.Windows.Forms.Button buttonAddContextMenu;
private System.Windows.Forms.Button buttonRemoveContextMenu;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.Button buttonОК;
private System.Windows.Forms.TextBox textBoxCustomJavaLocation;
private System.Windows.Forms.Button buttonCustomJavaLocation;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.CheckBox checkBoxCheckUpdateStartup;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox ignoreOutputContextMenuBox;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox4;
private System.Windows.Forms.TextBox customTempLocationTxtBox;
private System.Windows.Forms.Button buttonCustomTempLocation;
private System.Windows.Forms.CheckBox checkBox3;
internal System.Windows.Forms.Label label6;
private System.Windows.Forms.CheckBox checkBox5;
private System.Windows.Forms.TextBox customApkToolTxtBox;
private System.Windows.Forms.Button customApktoolBtn;
private System.Windows.Forms.CheckBox useCustomApktoolChk;
private System.Windows.Forms.ComboBox themeComboBox;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.CheckBox checkBox6;
private System.Windows.Forms.CheckBox checkBox7;
private System.Windows.Forms.TextBox textBox1;
}
}
-212
View File
@@ -1,212 +0,0 @@
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.IO;
using APKToolGUI.Languages;
using APKToolGUI.Utils;
using Ookii.Dialogs.WinForms;
using System.Globalization;
using System.Reflection;
using System.Collections.Generic;
using System.Windows.Shapes;
using static APKToolGUI.UpdateChecker;
using APKToolGUI.Properties;
using APKToolGUI.Controls;
namespace APKToolGUI
{
public partial class FormSettings : Form
{
string currentLanguage;
bool currentUseApktoolChk;
string currentApktoolPath;
int currentTheme;
public FormSettings()
{
InitializeComponent();
if (Program.IsDarkTheme())
DarkTheme.SetTheme(Controls, this);
currentUseApktoolChk = useCustomApktoolChk.Checked;
currentApktoolPath = customApkToolTxtBox.Text;
if (!AdminUtils.IsAdministrator())
{
SetButtonShield(buttonAddContextMenu, true);
SetButtonShield(buttonRemoveContextMenu, true);
}
int themeInt = (themeComboBox.Items.Count + 1 > Settings.Default.Theme) ? Settings.Default.Theme : 0;
themeComboBox.SelectedIndex = themeInt;
currentTheme = themeInt;
}
#region GUI
private void FormSettings_Load(object sender, EventArgs e)
{
LoadSettings();
}
private void buttonОК_Click(object sender, EventArgs e)
{
SaveSettings();
Close();
}
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
public static extern IntPtr SendMessage(HandleRef hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);
private static void SetButtonShield(Button btn, bool showShield)
{
// BCM_SETSHIELD = 0x0000160C
SendMessage(new HandleRef(btn, btn.Handle), 0x160C, IntPtr.Zero, showShield ? new IntPtr(1) : IntPtr.Zero);
}
private void buttonAddContextMenu_Click(object sender, EventArgs e)
{
if (MessageBox.Show(Language.DoYouRealyWantToInstallCM, Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
RunAsAdmin(Application.ExecutablePath, "ccm");
}
private void buttonRemoveContextMenu_Click(object sender, EventArgs e)
{
if (MessageBox.Show(Language.DoYouRealyWantToRemoveCM, Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
RunAsAdmin(Application.ExecutablePath, "rcm");
}
#endregion
private void LoadSettings()
{
String sysLang = Language.SystemLanguage;
comboBox1.Items.Add(sysLang);
comboBox1.Items.Add(CultureInfo.GetCultureInfo("en"));
CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.AllCultures);
String _culture = Properties.Settings.Default.Culture;
foreach (CultureInfo culture in cultures)
{
foreach (string resourceName in Assembly.GetExecutingAssembly().GetManifestResourceNames())
{
string[] cultNamw = resourceName.Split('.');
if (cultNamw[1] == culture.Name)
{
string lang = String.Format("{0} [{1}]", culture.DisplayName, culture.Name);
comboBox1.Items.Add(lang);
if (culture.Name == _culture)
comboBox1.SelectedItem = lang;
}
}
}
comboBox1.DisplayMember = "NativeName"; // <= System.Globalization.CultureInfo.GetCultureInfo("ru-RU").NativeName
comboBox1.ValueMember = "Name"; // <= System.Globalization.CultureInfo.GetCultureInfo("ru-RU").Name
if (_culture.Equals("Auto"))
{
currentLanguage = sysLang;
comboBox1.SelectedItem = sysLang;
}
else
{
try
{
currentLanguage = Properties.Settings.Default.Culture;
comboBox1.SelectedItem = _culture;
}
catch { }
}
}
private void SaveSettings()
{
try
{
if (Language.SystemLanguage.Equals(comboBox1.SelectedItem.ToString()))
Settings.Default.Culture = "Auto";
else
Settings.Default.Culture = StringExt.Regex(@"(?<=\[)(.*?)(?=\])", comboBox1.SelectedItem.ToString());
Settings.Default.Theme = themeComboBox.SelectedIndex;
Settings.Default.Save();
if (!comboBox1.SelectedItem.ToString().Contains(currentLanguage) || themeComboBox.SelectedIndex != currentTheme)
if (MessageBox.Show(Language.RestartApplicationPrompt, Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
Application.Restart();
if (currentUseApktoolChk != useCustomApktoolChk.Checked || currentApktoolPath != customApkToolTxtBox.Text)
{
FormMain.Instance.SetApktoolPath();
}
}
catch (Exception ex)
{
Log.e(ex.ToString());
}
}
public static void RunAsAdmin(string aFileName, string anArguments)
{
System.Diagnostics.ProcessStartInfo processInfo = new System.Diagnostics.ProcessStartInfo();
processInfo.FileName = aFileName;
processInfo.Arguments = anArguments;
processInfo.UseShellExecute = true;
processInfo.Verb = "runas";
try
{
System.Diagnostics.Process.Start(processInfo);
}
catch (Exception e)
{
MessageBox.Show(e.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void buttonCustomJavaLocation_Click(object sender, EventArgs e)
{
using (OpenFileDialog openJavaExe = new OpenFileDialog())
{
openJavaExe.Filter = "java.exe|java.exe";
if (openJavaExe.ShowDialog() == DialogResult.OK)
textBoxCustomJavaLocation.Text = Program.GetPortablePath(openJavaExe.FileName);
}
}
private void buttonCustomTempLocation_Click(object sender, EventArgs e)
{
using (VistaFolderBrowserDialog fbd = new VistaFolderBrowserDialog())
{
if (!String.IsNullOrWhiteSpace(customTempLocationTxtBox.Text))
fbd.SelectedPath = customTempLocationTxtBox.Text;
if (fbd.ShowDialog() == DialogResult.OK)
{
customTempLocationTxtBox.Text = fbd.SelectedPath;
//Clear temp folder
DirectoryUtils.Delete(Program.TEMP_PATH);
//Create new temp folder
Program.TEMP_PATH = Program.RandTempDirectory();
Directory.CreateDirectory(Program.TEMP_PATH);
}
}
}
private async void customApktoolBtn_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "Apktool (*.jar)|*.jar";
if (ofd.ShowDialog() == DialogResult.OK)
{
customApkToolTxtBox.Text = ofd.FileName;
}
}
}
}
}
File diff suppressed because it is too large Load Diff
-166
View File
@@ -1,166 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="checkBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>288, 17</value>
</data>
<data name="checkBox1.Text" xml:space="preserve">
<value>Очищать журнал событий перед каждой операцией</value>
</data>
<data name="checkBoxCheckUpdateStartup.Size" type="System.Drawing.Size, System.Drawing">
<value>276, 17</value>
</data>
<data name="checkBoxCheckUpdateStartup.Text" xml:space="preserve">
<value>Проверять обновление при запуске (раз в сутки)</value>
</data>
<data name="groupBox1.Text" xml:space="preserve">
<value>Прочее</value>
</data>
<data name="labelCustomJavaLocation.Text" xml:space="preserve">
<value>Пользовательское расположение</value>
</data>
<data name="buttonCustomJavaLocation.Size" type="System.Drawing.Size, System.Drawing">
<value>23, 22</value>
</data>
<data name="groupBoxLanguage.Text" xml:space="preserve">
<value>Язык</value>
</data>
<data name="labelAdminRights.Text" xml:space="preserve">
<value>Требуются права администратора</value>
</data>
<data name="buttonAddContextMenu.Text" xml:space="preserve">
<value>Установить</value>
</data>
<data name="buttonRemoveContextMenu.Text" xml:space="preserve">
<value>Удалить</value>
</data>
<data name="groupBoxContextMenu.Text" xml:space="preserve">
<value>Контекстное меню</value>
</data>
<data name="tabPage1.Text" xml:space="preserve">
<value>Общие</value>
</data>
<data name="buttonCancel.Text" xml:space="preserve">
<value>Отмена</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Настройки</value>
</data>
</root>
File diff suppressed because it is too large Load Diff
+726
View File
@@ -0,0 +1,726 @@
<Window x:Class="APKToolGUI.Forms.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ctrl="clr-namespace:APKToolGUI.Controls"
Title="APK Tool GUI"
Width="641" Height="686"
MinWidth="560" MinHeight="560"
WindowStartupLocation="CenterScreen"
UseLayoutRounding="True" TextOptions.TextFormattingMode="Display"
FontFamily="Segoe UI" FontSize="12"
Background="{DynamicResource WindowBackground}"
Foreground="{DynamicResource PrimaryText}">
<!-- Main application window. Shared dark/light control styles are merged from
Themes/Controls.xaml; the actual colours are applied via WpfTheme.Apply in the code-behind. -->
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Themes/Controls.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<DockPanel LastChildFill="True">
<!-- ===== Menu ===== -->
<Menu DockPanel.Dock="Top">
<MenuItem x:Name="menuFile" Header="File">
<MenuItem x:Name="menuNewInstance" Header="New instance" Click="NewInstance_Click"/>
<MenuItem x:Name="menuSaveLog" Header="Save log to file" Click="SaveLog_Click"/>
<Separator/>
<MenuItem x:Name="menuOpenTemp" Header="Open temp folder" Click="OpenTempFolder_Click"/>
<MenuItem x:Name="menuClearTemp" Header="Clear temp folder" Click="ClearTempFolder_Click"/>
<Separator/>
<MenuItem x:Name="menuExit" Header="Exit" Click="Exit_Click"/>
</MenuItem>
<MenuItem x:Name="menuSettings" Header="Settings">
<MenuItem x:Name="menuUseApkEditor" Header="Use APKEditor for decompiling" IsCheckable="True"/>
<MenuItem x:Name="menuOpenSettings" Header="Open settings..." Click="OpenSettings_Click"/>
</MenuItem>
<MenuItem x:Name="menuHelp" Header="Help">
<MenuItem x:Name="menuCheckUpdate" Header="Check for update" Click="CheckUpdate_Click"/>
<MenuItem x:Name="menuReportIssue" Header="Report an issue" Click="ReportIssue_Click"/>
<MenuItem x:Name="menuApktoolIssues" Header="Apktool issue tracker" Click="ApktoolIssues_Click"/>
<MenuItem x:Name="menuBaksmaliIssues" Header="Baksmali issue tracker" Click="BaksmaliIssues_Click"/>
<MenuItem x:Name="menuAbout" Header="About" Click="About_Click"/>
</MenuItem>
</Menu>
<!-- ===== Status bar ===== -->
<StatusBar DockPanel.Dock="Bottom">
<StatusBarItem>
<StackPanel Orientation="Horizontal">
<Image x:Name="statusIcon" Width="16" Height="16" Margin="2,0,6,0" VerticalAlignment="Center"/>
<TextBlock x:Name="statusText" VerticalAlignment="Center" Text="Ready"/>
</StackPanel>
</StatusBarItem>
<StatusBarItem HorizontalAlignment="Right">
<ProgressBar x:Name="progressBar" Width="170" Height="14" Visibility="Collapsed"/>
</StatusBarItem>
</StatusBar>
<!-- ===== Tabs over log (resizable split) ===== -->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="3*" MinHeight="220"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="180" MinHeight="100"/>
</Grid.RowDefinitions>
<TabControl x:Name="tabControlMain" Grid.Row="0">
<TabItem x:Name="tabMain" Header="Main">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="3">
<StackPanel>
<!-- Decompile input -->
<TextBlock x:Name="label1" Text="APK/XAPK/APKS/ZIP/APKM File:" Margin="0,0,0,3"/>
<Grid Margin="0,0,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="textBox_DECODE_InputAppPath" Grid.Column="0" Height="25" VerticalContentAlignment="Center"/>
<Button x:Name="button_DECODE_BrowseInputAppPath" Grid.Column="1" Content="..." Width="34" Height="25" Margin="6,0,0,0"/>
<Button x:Name="button_DECODE_Decode" Grid.Column="2" Content="Decompile" Width="118" Height="25" Margin="6,0,0,0"/>
</Grid>
<!-- Compile input -->
<TextBlock x:Name="label2" Text="Decompiled APK folder:" Margin="0,0,0,3"/>
<Grid Margin="0,0,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="textBox_BUILD_InputProjectDir" Grid.Column="0" Height="25" VerticalContentAlignment="Center"/>
<Button x:Name="button_BUILD_BrowseInputProjectDir" Grid.Column="1" Content="..." Width="34" Height="25" Margin="6,0,0,0"/>
<Button x:Name="button_BUILD_Build" Grid.Column="2" Content="Compile" Width="118" Height="25" Margin="6,0,0,0"/>
</Grid>
<!-- Zipalign input -->
<TextBlock x:Name="label3" Text="APK file to align:" Margin="0,0,0,3"/>
<Grid Margin="0,0,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="textBox_ZIPALIGN_InputFile" Grid.Column="0" Height="25" VerticalContentAlignment="Center"/>
<Button x:Name="button_ZIPALIGN_BrowseInputFile" Grid.Column="1" Content="..." Width="34" Height="25" Margin="6,0,0,0"/>
<Button x:Name="button_ZIPALIGN_Align" Grid.Column="2" Content="Align" Width="118" Height="25" Margin="6,0,0,0"/>
</Grid>
<!-- Sign input -->
<TextBlock x:Name="label4" Text="APK File to sign:" Margin="0,0,0,3"/>
<Grid Margin="0,0,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="textBox_SIGN_InputFile" Grid.Column="0" Height="25" VerticalContentAlignment="Center"/>
<Button x:Name="button_SIGN_BrowseInputFile" Grid.Column="1" Content="..." Width="34" Height="25" Margin="6,0,0,0"/>
<Button x:Name="button_SIGN_Sign" Grid.Column="2" Content="Sign" Width="118" Height="25" Margin="6,0,0,0"/>
</Grid>
<!-- Merge split APK input -->
<TextBlock x:Name="splitApkTxt" Text="Merge split APK into single APK:" Margin="0,0,0,3"/>
<Grid Margin="0,0,0,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="splitApkPathTxtBox" Grid.Column="0" Height="25" VerticalContentAlignment="Center"/>
<Button x:Name="selSplitApkBtn" Grid.Column="1" Content="..." Width="34" Height="25" Margin="6,0,0,0"/>
<Button x:Name="mergeApkBtn" Grid.Column="2" Content="Merge" Width="118" Height="25" Margin="6,0,0,0"/>
</Grid>
<!-- Shortcut buttons (3 x 3) -->
<UniformGrid Columns="3" Rows="3">
<UniformGrid.Resources>
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Margin" Value="3"/>
<Setter Property="Height" Value="30"/>
</Style>
</UniformGrid.Resources>
<Button x:Name="decOutOpenDirBtn" Content="Decompile output location"/>
<Button x:Name="decApkOpenDirBtn" Content="Decompiled APK location"/>
<Button x:Name="alignApkOpenDirBtn" Content="Zipalign APK location"/>
<Button x:Name="compileOutputOpenDirBtn" Content="Compile output location"/>
<Button x:Name="comApkOpenDir" Content="Compiled APK location"/>
<Button x:Name="signApkOpenDirBtn" Content="Sign APK location"/>
<Button x:Name="openAndroidMainfestBtn" Content="AndroidManifest.xml"/>
<Button x:Name="openApktoolYmlBtn" Content="Apktool.yml"/>
<Button x:Name="button_OpenMainActivity" Content="Main activity smali"/>
</UniformGrid>
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem x:Name="tabApkInfo" Header="APK Info">
<TabControl x:Name="tabControl1" Margin="3" BorderThickness="0" Background="Transparent">
<TabItem x:Name="basicInfoTabPage" Header="Basic info">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10">
<StackPanel>
<!-- File + icon -->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Label x:Name="label17" Grid.Column="0" Content="File:" Padding="0" VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBox x:Name="fileTxtBox" Grid.Column="1" Height="24" IsReadOnly="True" VerticalContentAlignment="Center"/>
<Button x:Name="selApkFileInfoBtn" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,0,0,0"/>
</Grid>
<Grid Margin="0,3,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label x:Name="label7" Grid.Row="0" Grid.Column="0" Content="App name:" Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="appTxtBox" Grid.Row="0" Grid.Column="1" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4"/>
<Label x:Name="label9" Grid.Row="1" Grid.Column="0" Content="Package name:" Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="packNameTxtBox" Grid.Row="1" Grid.Column="1" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4"/>
</Grid>
</StackPanel>
<Border Grid.Column="1" Width="88" Height="88" Margin="12,0,0,0" VerticalAlignment="Top"
Background="{DynamicResource PanelBackground}" BorderBrush="{DynamicResource PanelBorder}" BorderThickness="1">
<Image x:Name="apkIconPicBox" Stretch="Uniform" Margin="2"/>
</Border>
</Grid>
<!-- Links -->
<Label x:Name="label19" Content="Links:" Padding="0" Margin="0,3,0,3"/>
<UniformGrid Columns="3" Rows="2">
<UniformGrid.Resources>
<Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
<Setter Property="Margin" Value="3"/>
<Setter Property="Height" Value="28"/>
</Style>
</UniformGrid.Resources>
<Button x:Name="psLinkBtn" Content="Play Store"/>
<Button x:Name="apkComboLinkBtn" Content="ApkCombo"/>
<Button x:Name="apkPureLinkBtn" Content="ApkPure"/>
<Button x:Name="apkGkLinkBtn" Content="ApkGk"/>
<Button x:Name="apkSupportLinkBtn" Content="Apk.support"/>
<Button x:Name="apkMirrorLinkBtn" Content="Apk Mirror"/>
</UniformGrid>
<!-- Fields -->
<Grid Margin="0,3,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label x:Name="label31" Grid.Row="0" Grid.Column="0" Content="Launch activity:" Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="launchActivityTxtBox" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="3" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4"/>
<Label x:Name="label8" Grid.Row="1" Grid.Column="0" Content="Version:" Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="verTxtBox" Grid.Row="1" Grid.Column="1" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4,16,4"/>
<Label x:Name="label10" Grid.Row="1" Grid.Column="2" Content="Build:" Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="buildTxtBox" Grid.Row="1" Grid.Column="3" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4"/>
<Label x:Name="label11" Grid.Row="2" Grid.Column="0" Content="Min. SDK" Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="minSdkTxtBox" Grid.Row="2" Grid.Column="1" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4,16,4"/>
<Label x:Name="label12" Grid.Row="2" Grid.Column="2" Content="Target SDK:" Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="targetSdkTxtBox" Grid.Row="2" Grid.Column="3" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4"/>
<Label x:Name="label13" Grid.Row="3" Grid.Column="0" Content="Screen sizes: " Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="screenTxtBox" Grid.Row="3" Grid.Column="1" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4,16,4"/>
<Label x:Name="label30" Grid.Row="3" Grid.Column="2" Content="Architectures:" Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="archSdkTxtBox" Grid.Row="3" Grid.Column="3" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4"/>
<Label x:Name="label14" Grid.Row="4" Grid.Column="0" Content="Densities: " Padding="0" VerticalAlignment="Center" Margin="0,4,8,4"/>
<TextBox x:Name="densityTxtBox" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="3" Height="24" IsReadOnly="True" VerticalContentAlignment="Center" Margin="0,4"/>
</Grid>
<Label x:Name="label18" Content="Locals: " Padding="0" Margin="0,10,0,2"/>
<RichTextBox x:Name="localsTxtBox" Height="64" IsReadOnly="True" VerticalScrollBarVisibility="Auto"/>
<Label x:Name="label15" Content="Permissions: " Padding="0" Margin="0,10,0,2"/>
<RichTextBox x:Name="permTxtBox" Height="120" IsReadOnly="True" VerticalScrollBarVisibility="Auto"/>
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem x:Name="tabPage3" Header="AAPT dump">
<RichTextBox x:Name="fullInfoTextBox" Margin="3" IsReadOnly="True"
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"
FontFamily="Consolas"/>
</TabItem>
<TabItem x:Name="signatureTabPage" Header="Signature">
<RichTextBox x:Name="sigTxtBox" Margin="3" IsReadOnly="True"
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"
FontFamily="Consolas"/>
</TabItem>
</TabControl>
</TabItem>
<TabItem x:Name="tabDecode" Header="Decode">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10">
<GroupBox x:Name="groupBox_DECODE_Options" Header="Options">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<CheckBox x:Name="decSetApiLvlChkBox" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Margin="0,4"
Content="Set API level of the file to generate, e.g. 14 for ICS."/>
<ctrl:NumericUpDown x:Name="decApiLvlUpDown" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" Width="70" Margin="0,4"
Minimum="0" Maximum="35"/>
<CheckBox x:Name="checkBox_DECODE_NoSrc" Grid.Row="1" Grid.ColumnSpan="3" Margin="0,4" Content="Do not decode sources."/>
<CheckBox x:Name="checkBox_DECODE_NoRes" Grid.Row="2" Grid.ColumnSpan="3" Margin="0,4" Content="Do not decode resources."/>
<CheckBox x:Name="checkBox_DECODE_Force" Grid.Row="3" Grid.ColumnSpan="3" Margin="0,4" Content="Force delete destination directory."/>
<CheckBox x:Name="checkBox_DECODE_KeepBrokenRes" Grid.Row="4" Grid.ColumnSpan="3" Margin="0,4" Content="Keep broken resource."/>
<CheckBox x:Name="checkBox_DECODE_MatchOriginal" Grid.Row="5" Grid.ColumnSpan="3" Margin="0,4" Content="Keeps files to closest to original as possible. Prevents rebuild."/>
<CheckBox x:Name="checkBox_DECODE_UseFramework" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center" Margin="0,4"
Content="Uses framework files located in:"/>
<TextBox x:Name="textBox_DECODE_FrameDir" Grid.Row="6" Grid.Column="1" Width="236" Height="24" Margin="10,4,0,4" VerticalContentAlignment="Center"/>
<Button x:Name="button_DECODE_BrowseFrameDir" Grid.Row="6" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
<CheckBox x:Name="checkBox_DECODE_OutputDirectory" Grid.Row="7" Grid.Column="0" VerticalAlignment="Center" Margin="0,4"
Content="Output directory:"/>
<TextBox x:Name="textBox_DECODE_OutputDirectory" Grid.Row="7" Grid.Column="1" Width="236" Height="24" Margin="10,4,0,4" VerticalContentAlignment="Center"/>
<Button x:Name="button_DECODE_BrowseOutputDirectory" Grid.Row="7" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
<CheckBox x:Name="checkBox_DECODE_OnlyMainClasses" Grid.Row="8" Grid.ColumnSpan="3" Margin="0,4" Content="Only disassemble the main dex classes (classes[0-9]*.dex) in the root. (&lt;2.12.1)"/>
<CheckBox x:Name="checkBox_DECODE_FixError" Grid.Row="9" Grid.ColumnSpan="3" Margin="0,4" Content="Fix ApkTool errors after decompile"/>
<CheckBox x:Name="checkBox_DECODE_NoDebugInfo" Grid.Row="10" Grid.ColumnSpan="3" Margin="0,4" Content="Don't write out debug info (.local, .param, .line, etc.)"/>
<CheckBox x:Name="checkBox7" Grid.Row="11" Grid.ColumnSpan="3" Margin="0,4" Content="Don't parse APK info when selecting APK for decompiling"/>
<CheckBox x:Name="checkBox3" Grid.Row="12" Grid.Column="0" VerticalAlignment="Center" Margin="0,4" Content="Set the number of threads to use."/>
<ctrl:NumericUpDown x:Name="decJobsLvlUpDown" Grid.Row="12" Grid.Column="1" HorizontalAlignment="Right" Width="70" Margin="0,4" Minimum="1" Maximum="64"/>
</Grid>
</GroupBox>
</ScrollViewer>
</TabItem>
<TabItem x:Name="tabBuild" Header="Build">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10">
<GroupBox x:Name="groupBox_BUILD_Options" Header="Options">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<CheckBox x:Name="buildSetApiLvlChkBox" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Margin="0,4"
Content="Set API level of the file to generate, e.g. 14 for ICS."/>
<ctrl:NumericUpDown x:Name="buildApiLvlUpDown" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" Width="70" Margin="0,4" Minimum="0" Maximum="35"/>
<CheckBox x:Name="checkBox_BUILD_ForceAll" Grid.Row="1" Grid.ColumnSpan="3" Margin="0,4" Content="Skip changes detection and build all files."/>
<CheckBox x:Name="checkBox_BUILD_UseAapt" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Margin="0,4" Content="Uses aapt.exe located in:"/>
<TextBox x:Name="textBox_BUILD_AaptPath" Grid.Row="2" Grid.Column="1" Width="236" Height="24" Margin="10,4,0,4" VerticalContentAlignment="Center"/>
<Button x:Name="button_BUILD_BrowseAaptPath" Grid.Row="2" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
<CheckBox x:Name="checkBox_BUILD_UseFramework" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Margin="0,4" Content="Uses framework files located in:"/>
<TextBox x:Name="textBox_BUILD_FrameDir" Grid.Row="3" Grid.Column="1" Width="236" Height="24" Margin="10,4,0,4" VerticalContentAlignment="Center"/>
<Button x:Name="button_BUILD_BrowseFrameDir" Grid.Row="3" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
<CheckBox x:Name="checkBox_BUILD_OutputAppPath" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" Margin="0,4" Content="APK output directory:"/>
<TextBox x:Name="textBox_BUILD_OutputAppPath" Grid.Row="4" Grid.Column="1" Width="236" Height="24" Margin="10,4,0,4" VerticalContentAlignment="Center"/>
<Button x:Name="button_BUILD_BrowseOutputAppPath" Grid.Row="4" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
<CheckBox x:Name="checkBox_BUILD_NoCrunch" Grid.Row="5" Grid.ColumnSpan="3" Margin="0,4" Content="Disable crunching of resource files during the build step."/>
<CheckBox x:Name="checkBox_BUILD_NetSecConf" Grid.Row="6" Grid.ColumnSpan="3" Margin="0,4" Content="Add a generic Network Security Configuration file in the output APK"/>
<CheckBox x:Name="zipalignAfterBuildChkBox" Grid.Row="7" Grid.ColumnSpan="3" Margin="0,4" Content="Zipalign after build"/>
<CheckBox x:Name="signAfterBuildChkBox" Grid.Row="8" Grid.ColumnSpan="3" Margin="0,4" Content="Sign after build / zipalign"/>
<CheckBox x:Name="createUnsignApkChkBox" Grid.Row="9" Grid.ColumnSpan="3" Margin="0,4" Content="Create unsigned APK with original signature after build"/>
<CheckBox x:Name="useAapt2ChkBox" Grid.Row="10" Grid.ColumnSpan="3" Margin="0,4" Content="Use aapt2 (Upgrades apktool to use experimental aapt2 binary.) (&lt; 2.11.1)"/>
<CheckBox x:Name="checkBox_BUILD_CopyOriginal" Grid.Row="11" Grid.ColumnSpan="3" Margin="0,4" Content="Copy original AndroidManifest.xml and META-INF folder"/>
<CheckBox x:Name="checkBox4" Grid.Row="12" Grid.Column="0" VerticalAlignment="Center" Margin="0,4" Content="Set the number of threads to use."/>
<ctrl:NumericUpDown x:Name="comJobsLvlUpDown" Grid.Row="12" Grid.Column="1" HorizontalAlignment="Right" Width="70" Margin="0,4" Minimum="1" Maximum="64"/>
</Grid>
</GroupBox>
</ScrollViewer>
</TabItem>
<TabItem x:Name="tabSign" Header="Sign">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10">
<GroupBox x:Name="groupBox_SIGN_Options" Header="Options">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock x:Name="label22" Grid.Row="0" Grid.ColumnSpan="3" TextWrapping="Wrap" Margin="0,0,0,8"
Foreground="{DynamicResource SecondaryText}"
Text="It is strongly recommended that you use your own key, created via Android Studio or other tools"/>
<Label x:Name="label_SIGN_PublicKey" Grid.Row="1" Grid.Column="0" Content="Public key:" Padding="0" VerticalAlignment="Center" Margin="0,4,10,4"/>
<TextBox x:Name="textBox_SIGN_PublicKey" Grid.Row="1" Grid.Column="1" Height="24" Margin="0,4" VerticalContentAlignment="Center"/>
<Button x:Name="button_SIGN_BrowsePublicKey" Grid.Row="1" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
<Label x:Name="label_SIGN_PrivateKey" Grid.Row="2" Grid.Column="0" Content="Private key:" Padding="0" VerticalAlignment="Center" Margin="0,4,10,4"/>
<TextBox x:Name="textBox_SIGN_PrivateKey" Grid.Row="2" Grid.Column="1" Height="24" Margin="0,4" VerticalContentAlignment="Center"/>
<Button x:Name="button_SIGN_BrowsePrivateKey" Grid.Row="2" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
<CheckBox x:Name="useAliasChkBox" Grid.Row="3" Grid.Column="0" Content="Alias:" VerticalAlignment="Center" Margin="0,4,10,4"/>
<TextBox x:Name="aliasTxtBox" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Height="24" Margin="0,4" VerticalContentAlignment="Center"/>
<CheckBox x:Name="useKeyStoreChkBox" Grid.Row="4" Grid.ColumnSpan="3" Content="Use keystore" Margin="0,6,0,4"/>
<Label x:Name="label20" Grid.Row="5" Grid.Column="0" Content="keystore/jks file:" Padding="0" VerticalAlignment="Center" Margin="0,4,10,4"/>
<TextBox x:Name="keyStoreFileTxtBox" Grid.Row="5" Grid.Column="1" Height="24" Margin="0,4" VerticalContentAlignment="Center"/>
<Button x:Name="selectKeyStoreFileBtn" Grid.Row="5" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
<Label x:Name="label21" Grid.Row="6" Grid.Column="0" Content="Password:" Padding="0" VerticalAlignment="Center" Margin="0,4,10,4"/>
<PasswordBox x:Name="textBox3" Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" Height="24" Margin="0,4" VerticalContentAlignment="Center"/>
<Label x:Name="label23" Grid.Row="7" Grid.Column="0" Content="Private key password:" Padding="0" VerticalAlignment="Center" Margin="0,4,10,4"/>
<PasswordBox x:Name="textBox4" Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" Height="24" Margin="0,4" VerticalContentAlignment="Center"/>
<CheckBox x:Name="useSigningOutputDir" Grid.Row="8" Grid.Column="0" Content="APK output directory:" VerticalAlignment="Center" Margin="0,4,10,4"/>
<TextBox x:Name="textBox_SIGN_OutputFile" Grid.Row="8" Grid.Column="1" Height="24" Margin="0,4" VerticalContentAlignment="Center"/>
<Button x:Name="button_SIGN_BrowseOutputFile" Grid.Row="8" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
<Grid Grid.Row="9" Grid.ColumnSpan="3" Margin="0,6,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label x:Name="label24" Grid.Column="0" Content="Scheme v1:" Padding="0" VerticalAlignment="Center" Margin="0,0,8,0"/>
<ComboBox x:Name="schemev1ComboBox" Grid.Column="1" Margin="0,0,16,0">
<ComboBoxItem>Default</ComboBoxItem>
<ComboBoxItem>True</ComboBoxItem>
<ComboBoxItem>False</ComboBoxItem>
</ComboBox>
<Label x:Name="label25" Grid.Column="2" Content="Scheme v2:" Padding="0" VerticalAlignment="Center" Margin="0,0,8,0"/>
<ComboBox x:Name="schemev2ComboBox" Grid.Column="3">
<ComboBoxItem>Default</ComboBoxItem>
<ComboBoxItem>True</ComboBoxItem>
<ComboBoxItem>False</ComboBoxItem>
</ComboBox>
</Grid>
<Grid Grid.Row="10" Grid.ColumnSpan="3" Margin="0,6,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Label x:Name="label26" Grid.Column="0" Content="Scheme v3:" Padding="0" VerticalAlignment="Center" Margin="0,0,8,0"/>
<ComboBox x:Name="schemev3ComboBox" Grid.Column="1" Margin="0,0,16,0">
<ComboBoxItem>Default</ComboBoxItem>
<ComboBoxItem>True</ComboBoxItem>
<ComboBoxItem>False</ComboBoxItem>
</ComboBox>
<Label x:Name="label27" Grid.Column="2" Content="Scheme v4:" Padding="0" VerticalAlignment="Center" Margin="0,0,8,0"/>
<ComboBox x:Name="schemev4ComboBox" Grid.Column="3">
<ComboBoxItem>Default</ComboBoxItem>
<ComboBoxItem>True</ComboBoxItem>
<ComboBoxItem>False</ComboBoxItem>
</ComboBox>
</Grid>
<CheckBox x:Name="autoDelIdsigChkBox" Grid.Row="11" Grid.ColumnSpan="3" Margin="0,8,0,4" Content="Auto delete idsig file"/>
<CheckBox x:Name="checkBox1" Grid.Row="12" Grid.ColumnSpan="3" Margin="0,4" Content="Overwrite input file"/>
<CheckBox x:Name="checkBox2" Grid.Row="13" Grid.ColumnSpan="3" Margin="0,4" Content="Install APK after signing (Make sure the device is selected in ADB tab first)"/>
</Grid>
</GroupBox>
</ScrollViewer>
</TabItem>
<TabItem x:Name="tabZipalign" Header="Zip align">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10">
<GroupBox x:Name="groupBox_ZIPALIGN_Options" Header="Options">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label x:Name="label_ZIPALIGN_AlignmentBytes" Grid.Row="0" Grid.Column="0" Padding="0" VerticalAlignment="Center" Margin="0,4"
Content="Alignment in bytes, e.g. '4' provides 32-bit alignment"/>
<ctrl:NumericUpDown x:Name="numericUpDown_ZIPALIGN_AlignmentBytes" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" Width="70" Margin="0,4" Minimum="1" Maximum="64"/>
<CheckBox x:Name="checkBox_ZIPALIGN_CheckAlignment" Grid.Row="1" Grid.ColumnSpan="3" Margin="0,4" Content="Check alignment only (does not modify file)"/>
<CheckBox x:Name="checkBox_ZIPALIGN_VerboseOutput" Grid.Row="2" Grid.ColumnSpan="3" Margin="0,4" Content="Verbose output"/>
<CheckBox x:Name="checkBox_ZIPALIGN_Recompress" Grid.Row="3" Grid.ColumnSpan="3" Margin="0,4" Content="Recompress using Zopfli"/>
<CheckBox x:Name="checkBox_ZIPALIGN_OverwriteOutputFile" Grid.Row="4" Grid.ColumnSpan="3" Margin="0,4" Content="Overwrite existing output file"/>
<CheckBox x:Name="signAfterZipalignChkBox" Grid.Row="5" Grid.ColumnSpan="3" Margin="0,4" Content="Sign after zipalign"/>
<CheckBox x:Name="zipalignOutputDirChkBox" Grid.Row="6" Grid.Column="0" VerticalAlignment="Center" Margin="0,4" Content="APK output directory:"/>
<TextBox x:Name="textBox_ZIPALIGN_OutputFile" Grid.Row="6" Grid.Column="1" Width="236" Height="24" Margin="10,4,0,4" VerticalContentAlignment="Center"/>
<Button x:Name="button_ZIPALIGN_BrowseOutputFile" Grid.Row="6" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,4,0,4"/>
</Grid>
</GroupBox>
</ScrollViewer>
</TabItem>
<TabItem x:Name="tabFramework" Header="Framework">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10">
<StackPanel>
<GroupBox x:Name="groupBox_IF_Options" Header="Install Framework">
<StackPanel>
<Grid Margin="0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<CheckBox x:Name="checkBox_IF_FramePath" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,0" Content="Stores framework files into:"/>
<TextBox x:Name="textBox_IF_FrameDir" Grid.Column="1" Height="24" VerticalContentAlignment="Center"/>
<Button x:Name="button_IF_BrowseFrameDir" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,0,0,0"/>
</Grid>
<Grid Margin="0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<CheckBox x:Name="checkBox_IF_Tag" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,0" Content="Tag frameworks using:"/>
<TextBox x:Name="textBox_IF_Tag" Grid.Column="1" Height="24" VerticalContentAlignment="Center"/>
</Grid>
<Grid Margin="0,4,0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="textBox_IF_InputFramePath" Grid.Column="0" Height="24" VerticalContentAlignment="Center"/>
<Button x:Name="button_IF_BrowseInputFramePath" Grid.Column="1" Content="..." Width="34" Height="24" Margin="6,0,0,0"/>
<Button x:Name="button_IF_InstallFramework" Grid.Column="2" Content="Install" Width="90" Height="24" Margin="6,0,0,0"/>
</Grid>
</StackPanel>
</GroupBox>
<GroupBox x:Name="groupBox1" Header="Options">
<StackPanel>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<CheckBox x:Name="clearFwBeforeDecodeChkBox" Grid.Column="0" VerticalAlignment="Center" Margin="0,4" Content="Clear framework before decompiling"/>
<Button x:Name="clearFwBtn" Grid.Column="1" Content="Clear framework" Height="26" Padding="10,0" Margin="6,4,0,4"/>
</Grid>
<Button x:Name="openFwFolderBtn" HorizontalAlignment="Left" Content="Open framework folder" Height="26" Padding="10,0" Margin="0,8,0,4"/>
</StackPanel>
</GroupBox>
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem x:Name="tabBaksmali" Header="Baksmali">
<ScrollViewer VerticalScrollBarVisibility="Auto" Padding="10">
<StackPanel>
<GroupBox x:Name="bakSmaliGroupBox" Header="Baksmali">
<StackPanel>
<Grid Margin="0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<CheckBox x:Name="baksmaliUseOutputChkBox" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,0" Content="Folder output directory:"/>
<TextBox x:Name="baksmaliBrowseOutputTxtBox" Grid.Column="1" Height="24" VerticalContentAlignment="Center"/>
<Button x:Name="baksmaliBrowseOutputBtn" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,0,0,0"/>
</Grid>
<Label x:Name="label28" Content="Dex to decompile:" Padding="0" Margin="0,8,0,2"/>
<Grid Margin="0,2,0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="baksmaliBrowseInputDexTxtBox" Grid.Column="0" Height="24" VerticalContentAlignment="Center"/>
<Button x:Name="baksmaliBrowseInputDexBtn" Grid.Column="1" Content="..." Width="34" Height="24" Margin="6,0,0,0"/>
<Button x:Name="decSmaliBtn" Grid.Column="2" Content="Decompile" Width="100" Height="24" Margin="6,0,0,0"/>
</Grid>
</StackPanel>
</GroupBox>
<GroupBox x:Name="smaliGroupBox" Header="Smali">
<StackPanel>
<Grid Margin="0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<CheckBox x:Name="smaliUseOutputChkBox" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,10,0" Content="Dex output directory:"/>
<TextBox x:Name="smaliBrowseOutputTxtBox" Grid.Column="1" Height="24" VerticalContentAlignment="Center"/>
<Button x:Name="smaliBrowseOutputBtn" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,0,0,0"/>
</Grid>
<Label x:Name="label29" Content="Smali folder to compile:" Padding="0" Margin="0,8,0,2"/>
<Grid Margin="0,2,0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="smaliBrowseInputDirTxtBox" Grid.Column="0" Height="24" VerticalContentAlignment="Center"/>
<Button x:Name="smaliBrowseInputDirBtn" Grid.Column="1" Content="..." Width="34" Height="24" Margin="6,0,0,0"/>
<Button x:Name="comSmaliBtn" Grid.Column="2" Content="Compile" Width="100" Height="24" Margin="6,0,0,0"/>
</Grid>
</StackPanel>
</GroupBox>
</StackPanel>
</ScrollViewer>
</TabItem>
<TabItem x:Name="tabAdb" Header="ADB">
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,4">
<TextBlock x:Name="label33" Text="Selected device: " VerticalAlignment="Center"/>
<TextBlock x:Name="selAdbDeviceLbl" VerticalAlignment="Center"/>
</StackPanel>
<CheckBox x:Name="setVendorChkBox" Grid.Row="1" Margin="0,6" Content="Set vendor to Play Store (com.android.vending)"/>
<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,6">
<CheckBox x:Name="overrideAbiCheckBox" VerticalAlignment="Center" Content="Override platform's default ABI: "/>
<ComboBox x:Name="overrideAbiComboBox" Width="150" Margin="8,0,0,0">
<ComboBoxItem>arm64-v8a</ComboBoxItem>
<ComboBoxItem>armeabi-v7a</ComboBoxItem>
<ComboBoxItem>x86</ComboBoxItem>
<ComboBoxItem>x86_64</ComboBoxItem>
</ComboBox>
</StackPanel>
<Grid Grid.Row="3" Margin="0,6">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock x:Name="label32" Grid.Column="0" Text="Selected APK: " VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBox x:Name="apkPathAdbTxtBox" Grid.Column="1" Height="24" VerticalContentAlignment="Center"/>
<Button x:Name="selApkAdbBtn" Grid.Column="2" Content="..." Width="34" Height="24" Margin="6,0,0,0"/>
</Grid>
<Grid Grid.Row="4" Margin="0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Button x:Name="killAdbBtn" Grid.Column="0" Content="Kill adb process" Height="28" Padding="10,0"/>
<Button x:Name="refreshDevicesBtn" Grid.Column="1" Content="Refresh" Height="28" Padding="14,0" Margin="8,0,0,0"/>
<Button x:Name="installApkBtn" Grid.Column="3" Content="Install APK" Height="28" Padding="12,0"/>
</Grid>
<ListBox x:Name="devicesListBox" Grid.Row="5" Margin="0,4,0,0"/>
</Grid>
</TabItem>
</TabControl>
<GridSplitter Grid.Row="1" Height="5" HorizontalAlignment="Stretch"
VerticalAlignment="Center" Margin="0,3" ResizeBehavior="PreviousAndNext"/>
<!-- Virtualized, console-style log: replaces the slow FlowDocument RichTextBox.
LogView implements IScrollInfo, so the host ScrollViewer (CanContentScroll=True)
drives the themed scroll bars. -->
<Border Grid.Row="2" BorderBrush="{DynamicResource PanelBorder}" BorderThickness="1"
Background="{DynamicResource LogBackground}">
<ScrollViewer CanContentScroll="True" Focusable="False"
VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
<ctrl:LogView x:Name="logTxtBox"
FontFamily="Consolas" FontSize="12"
Foreground="{DynamicResource PrimaryText}"
Background="{DynamicResource LogBackground}">
<ctrl:LogView.ContextMenu>
<ContextMenu>
<MenuItem x:Name="menuLogCopy" Header="Copy" InputGestureText="Ctrl+C" Click="LogCopy_Click"/>
<MenuItem x:Name="menuLogCopyAll" Header="Copy all" Click="LogCopyAll_Click"/>
<Separator/>
<MenuItem x:Name="menuLogClear" Header="Clear log" Click="LogClear_Click"/>
</ContextMenu>
</ctrl:LogView.ContextMenu>
</ctrl:LogView>
</ScrollViewer>
</Border>
</Grid>
</DockPanel>
</Window>
+521
View File
@@ -0,0 +1,521 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Media;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Interop;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using APKToolGUI.ApkTool;
using APKToolGUI.Controls;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Ionic.Zip;
using Java;
using Microsoft.WindowsAPICodePack.Taskbar;
using Ookii.Dialogs.WinForms;
using Lang = APKToolGUI.Languages.Language;
using WinForms = System.Windows.Forms;
using DColor = System.Drawing.Color;
using Res = APKToolGUI.Properties.Resources;
namespace APKToolGUI.Forms
{
/// <summary>
/// The main application window. This file holds the constructor, settings bindings,
/// event wiring, window lifecycle and menu; <c>MainWindow.Logic.cs</c> holds the
/// apktool operation logic, the control event handlers, localization and drag-drop.
/// </summary>
public partial class MainWindow : Window
{
internal Adb adb;
internal ApkEditor apkeditor;
internal Apktool apktool;
internal Signapk signapk;
internal Baksmali baksmali;
internal Smali smali;
internal Zipalign zipalign;
internal UpdateChecker updateCheker;
internal AaptParser aapt;
private bool IgnoreOutputDirContextMenu;
private bool isRunning;
private string javaPath;
private readonly System.Diagnostics.Stopwatch stopwatch = new System.Diagnostics.Stopwatch();
private string lastStartedDate;
private System.Drawing.Bitmap previousApkIcon;
private IntPtr _hwnd = IntPtr.Zero;
internal static MainWindow Instance { get; private set; }
public MainWindow()
{
Instance = this;
Program.SetLanguage();
InitializeComponent();
Theme theme = (Theme)Settings.Default.Theme;
WpfTheme.Apply(this, Program.IsDarkTheme());
NativeDarkMode.ApplyTheme(this, theme);
Title = "APK Tool GUI - v" + WinForms.Application.ProductVersion;
menuUseApkEditor.IsChecked = Settings.Default.UseApkeditor;
Log.Output = ToLog;
ApplyLocalization();
aapt = new AaptParser();
// Validate stored paths (mirrors the old FormMain constructor)
if (!File.Exists(Settings.Default.Decode_InputAppPath)) Settings.Default.Decode_InputAppPath = "";
if (!Directory.Exists(Settings.Default.Build_InputDir)) Settings.Default.Build_InputDir = "";
if (!File.Exists(Settings.Default.Sign_InputFile)) Settings.Default.Sign_InputFile = "";
if (!File.Exists(Settings.Default.Zipalign_InputFile)) Settings.Default.Zipalign_InputFile = "";
if (!File.Exists(Settings.Default.Sign_PrivateKey) || String.IsNullOrEmpty(Settings.Default.Sign_PrivateKey)) Settings.Default.Sign_PrivateKey = Program.SIGNAPK_KEYPRIVATE;
if (!File.Exists(Settings.Default.Sign_PublicKey) || String.IsNullOrEmpty(Settings.Default.Sign_PublicKey)) Settings.Default.Sign_PublicKey = Program.SIGNAPK_KEYPUBLIC;
BindSettings();
schemev1ComboBox.SelectedIndex = Clamp(Settings.Default.Sign_Schemev1, schemev1ComboBox.Items.Count);
schemev2ComboBox.SelectedIndex = Clamp(Settings.Default.Sign_Schemev2, schemev2ComboBox.Items.Count);
schemev3ComboBox.SelectedIndex = Clamp(Settings.Default.Sign_Schemev3, schemev3ComboBox.Items.Count);
schemev4ComboBox.SelectedIndex = (Settings.Default.Sign_Schemev4 >= 0 && Settings.Default.Sign_Schemev4 < schemev4ComboBox.Items.Count) ? Settings.Default.Sign_Schemev4 : 2;
overrideAbiComboBox.SelectedIndex = Clamp(Settings.Default.Adb_OverrideAbi, overrideAbiComboBox.Items.Count);
WireEvents();
Loaded += MainWindow_Loaded;
Closing += MainWindow_Closing;
Activated += (s, e) => { if (!isRunning && _hwnd != IntPtr.Zero) TaskbarManager.Instance.SetProgressState(TaskbarProgressBarState.NoProgress, _hwnd); };
}
private static int Clamp(int value, int count)
{
return (value >= 0 && value < count) ? value : 0;
}
#region Settings bindings
private void BindSettings()
{
BindText(textBox_DECODE_InputAppPath, "Decode_InputAppPath");
BindChecked(checkBox_DECODE_NoSrc, "Decode_NoSrc");
BindChecked(checkBox_DECODE_NoRes, "Decode_NoRes");
BindChecked(checkBox_DECODE_Force, "Decode_Force");
BindChecked(checkBox_DECODE_KeepBrokenRes, "Decode_KeepBrokenRes");
BindChecked(checkBox_DECODE_MatchOriginal, "Decode_MatchOriginal");
BindChecked(checkBox_DECODE_OnlyMainClasses, "Decode_OnlyMainClasses");
BindChecked(checkBox_DECODE_NoDebugInfo, "Decode_NoDebugInfo");
BindChecked(checkBox_DECODE_FixError, "Decode_FixError");
BindChecked(checkBox7, "Decode_DontParseApkInfo");
BindChecked(checkBox_DECODE_UseFramework, "Decode_UseFramework");
BindChecked(checkBox_DECODE_OutputDirectory, "Decode_UseOutputDir");
BindText(textBox_DECODE_FrameDir, "Framework_FrameDir");
BindText(textBox_DECODE_OutputDirectory, "Decode_OutputDir");
BindChecked(decSetApiLvlChkBox, "Decode_SetApiLevel");
BindValue(decApiLvlUpDown, "Decode_ApiLevel");
BindChecked(checkBox3, "Decode_SetJobs");
BindValue(decJobsLvlUpDown, "Decode_Jobs");
BindEnabled(textBox_DECODE_FrameDir, "Decode_UseFramework");
BindEnabled(button_DECODE_BrowseFrameDir, "Decode_UseFramework");
BindEnabled(textBox_DECODE_OutputDirectory, "Decode_UseOutputDir");
BindEnabled(button_DECODE_BrowseOutputDirectory, "Decode_UseOutputDir");
BindText(textBox_BUILD_InputProjectDir, "Build_InputDir");
BindChecked(checkBox_BUILD_ForceAll, "Build_ForceAll");
BindChecked(checkBox_BUILD_UseAapt, "Build_UseAapt");
BindText(textBox_BUILD_AaptPath, "Build_AaptPath");
BindChecked(checkBox_BUILD_UseFramework, "Build_UseFramework");
BindText(textBox_BUILD_FrameDir, "Framework_FrameDir");
BindChecked(checkBox_BUILD_OutputAppPath, "Build_UseOutputAppPath");
BindText(textBox_BUILD_OutputAppPath, "Build_OutputAppPath");
BindChecked(checkBox_BUILD_NoCrunch, "Build_NoCrunch");
BindChecked(checkBox_BUILD_NetSecConf, "Build_NetSecConf");
BindChecked(zipalignAfterBuildChkBox, "Build_ZipalignAfterBuild");
BindChecked(signAfterBuildChkBox, "Build_SignAfterBuild");
BindChecked(createUnsignApkChkBox, "Build_CreateUnsignedApk");
BindChecked(useAapt2ChkBox, "Build_UseAapt2");
BindChecked(checkBox_BUILD_CopyOriginal, "Build_CopyOriginal");
BindChecked(buildSetApiLvlChkBox, "Build_SetApiLevel");
BindValue(buildApiLvlUpDown, "Build_ApiLevel");
BindChecked(checkBox4, "Build_SetJobs");
BindValue(comJobsLvlUpDown, "Build_Jobs");
BindEnabled(textBox_BUILD_AaptPath, "Build_UseAapt");
BindEnabled(button_BUILD_BrowseAaptPath, "Build_UseAapt");
BindEnabled(textBox_BUILD_FrameDir, "Build_UseFramework");
BindEnabled(button_BUILD_BrowseFrameDir, "Build_UseFramework");
BindEnabled(textBox_BUILD_OutputAppPath, "Build_UseOutputAppPath");
BindEnabled(button_BUILD_BrowseOutputAppPath, "Build_UseOutputAppPath");
BindText(textBox_SIGN_InputFile, "Sign_InputFile");
BindText(textBox_SIGN_PublicKey, "Sign_PublicKey");
BindText(textBox_SIGN_PrivateKey, "Sign_PrivateKey");
BindChecked(useAliasChkBox, "Sign_SetAlias");
BindText(aliasTxtBox, "Sign_Alias");
BindChecked(useKeyStoreChkBox, "Sign_UseKeystoreFile");
BindText(keyStoreFileTxtBox, "Sign_KeystoreFilePath");
// textBox3 / textBox4 are PasswordBoxes (masked); synced to Settings in WireEvents
// (PasswordBox.Password is not a bindable DependencyProperty).
BindChecked(useSigningOutputDir, "Sign_UseOutputDir");
BindText(textBox_SIGN_OutputFile, "Sign_OutputDir");
BindChecked(autoDelIdsigChkBox, "AutoDeleteIdsigFile");
BindChecked(checkBox1, "Sign_OverwriteInputFile");
BindChecked(checkBox2, "Sign_InstallApkAfterSign");
BindText(textBox_ZIPALIGN_InputFile, "Zipalign_InputFile");
BindValue(numericUpDown_ZIPALIGN_AlignmentBytes, "Zipalign_AlignmentInBytes");
BindChecked(checkBox_ZIPALIGN_CheckAlignment, "Zipalign_CheckOnly");
BindChecked(checkBox_ZIPALIGN_VerboseOutput, "Zipalign_Verbose");
BindChecked(checkBox_ZIPALIGN_Recompress, "Zipalign_Recompress");
BindChecked(checkBox_ZIPALIGN_OverwriteOutputFile, "Zipalign_OverwriteOutputFile");
BindChecked(signAfterZipalignChkBox, "Zipalign_SignAfterZipAlign");
BindChecked(zipalignOutputDirChkBox, "Zipalign_UseOutputDir");
BindText(textBox_ZIPALIGN_OutputFile, "Zipalign_OutputDir");
BindChecked(checkBox_IF_FramePath, "Framework_UseFrameDir");
BindText(textBox_IF_FrameDir, "Framework_FrameDir");
BindChecked(checkBox_IF_Tag, "InstallFramework_UseTag");
BindText(textBox_IF_Tag, "InstallFramework_Tag");
BindText(textBox_IF_InputFramePath, "InstallFramework_InputFramePath");
BindChecked(clearFwBeforeDecodeChkBox, "Framework_ClearBeforeDecode");
BindEnabled(textBox_IF_FrameDir, "Framework_UseFrameDir");
BindEnabled(button_IF_BrowseFrameDir, "Framework_UseFrameDir");
BindEnabled(textBox_IF_Tag, "InstallFramework_UseTag");
BindChecked(baksmaliUseOutputChkBox, "Baksmali_UseOutputDir");
BindText(baksmaliBrowseOutputTxtBox, "Baksmali_OutputDir");
BindText(baksmaliBrowseInputDexTxtBox, "Baksmali_InputDexFile");
BindChecked(smaliUseOutputChkBox, "Smali_UseOutputDir");
BindText(smaliBrowseOutputTxtBox, "Smali_OutputDir");
BindText(smaliBrowseInputDirTxtBox, "Smali_InputDir");
BindChecked(setVendorChkBox, "Adb_SetVendor");
BindChecked(overrideAbiCheckBox, "Adb_SetOverrideAbi");
BindText(apkPathAdbTxtBox, "Adb_SelectedApkPath");
BindText(splitApkPathTxtBox, "SplitApk_InputFile");
}
private static void BindChecked(CheckBox c, string prop)
{
c.SetBinding(System.Windows.Controls.Primitives.ToggleButton.IsCheckedProperty,
new Binding(prop) { Source = Settings.Default, Mode = BindingMode.TwoWay });
}
private static void BindText(TextBox t, string prop)
{
t.SetBinding(TextBox.TextProperty,
new Binding(prop) { Source = Settings.Default, Mode = BindingMode.TwoWay, UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged });
}
private static void BindValue(NumericUpDown n, string prop)
{
n.SetBinding(NumericUpDown.ValueProperty,
new Binding(prop) { Source = Settings.Default, Mode = BindingMode.TwoWay });
}
private static void BindEnabled(Control c, string prop)
{
c.SetBinding(UIElement.IsEnabledProperty,
new Binding(prop) { Source = Settings.Default, Mode = BindingMode.OneWay });
}
#endregion
#region Event wiring
private void WireEvents()
{
// Decode
button_DECODE_BrowseFrameDir.Click += Button_DECODE_BrowseFrameDir_Click;
button_DECODE_BrowseOutputDirectory.Click += Button_DECODE_BrowseOutputDirectory_Click;
button_DECODE_BrowseInputAppPath.Click += Button_DECODE_BrowseInputAppPath_Click;
button_DECODE_Decode.Click += Button_DECODE_Decode_Click;
// Build
button_BUILD_BrowseAaptPath.Click += Button_BUILD_BrowseAaptPath_Click;
button_BUILD_BrowseFrameDir.Click += Button_BUILD_BrowseFrameDir_Click;
button_BUILD_BrowseOutputAppPath.Click += Button_BUILD_BrowseOutputAppPath_Click;
button_BUILD_BrowseInputProjectDir.Click += Button_BUILD_BrowseInputProjectDir_Click;
button_BUILD_Build.Click += Button_BUILD_Build_Click;
// Sign
button_SIGN_BrowsePublicKey.Click += Button_SIGN_BrowsePublicKey_Click;
button_SIGN_BrowsePrivateKey.Click += Button_SIGN_BrowsePrivateKey_Click;
button_SIGN_BrowseInputFile.Click += Button_SIGN_BrowseInputFile_Click;
button_SIGN_BrowseOutputFile.Click += Button_SIGN_BrowseOutputFile_Click;
selectKeyStoreFileBtn.Click += SelectKeyStoreFileBtn_Click;
button_SIGN_Sign.Click += Button_SIGN_Sign_Click;
schemev1ComboBox.SelectionChanged += SchemeComboBox_Changed;
schemev2ComboBox.SelectionChanged += SchemeComboBox_Changed;
schemev3ComboBox.SelectionChanged += SchemeComboBox_Changed;
schemev4ComboBox.SelectionChanged += SchemeComboBox_Changed;
// Masked password fields: PasswordBox.Password isn't bindable, so load + sync manually.
textBox3.Password = Settings.Default.Sign_KeystorePassword ?? "";
textBox4.Password = Settings.Default.Sign_KeyPassword ?? "";
textBox3.PasswordChanged += (s, e) => Settings.Default.Sign_KeystorePassword = textBox3.Password;
textBox4.PasswordChanged += (s, e) => Settings.Default.Sign_KeyPassword = textBox4.Password;
// Zipalign
checkBox_ZIPALIGN_CheckAlignment.Click += (s, e) => ApplyZipalignCheckSwitch();
button_ZIPALIGN_BrowseOutputFile.Click += Button_ZIPALIGN_BrowseOutputFile_Click;
button_ZIPALIGN_BrowseInputFile.Click += Button_ZIPALIGN_BrowseInputFile_Click;
button_ZIPALIGN_Align.Click += Button_ZIPALIGN_Align_Click;
// Framework
button_IF_BrowseFrameDir.Click += Button_IF_BrowseFrameDir_Click;
button_IF_BrowseInputFramePath.Click += Button_IF_BrowseInputFramePath_Click;
button_IF_InstallFramework.Click += Button_IF_InstallFramework_Click;
clearFwBtn.Click += ClearFwBtn_Click;
openFwFolderBtn.Click += OpenFwFolderBtn_Click;
// Baksmali / Smali
baksmaliBrowseOutputBtn.Click += BaksmaliBrowseOutputBtn_Click;
baksmaliBrowseInputDexBtn.Click += BaksmaliBrowseInputDexBtn_Click;
decSmaliBtn.Click += DecSmaliBtn_Click;
smaliBrowseOutputBtn.Click += SmaliBrowseOutputBtn_Click;
smaliBrowseInputDirBtn.Click += SmaliBrowseInputDirBtn_Click;
comSmaliBtn.Click += ComSmaliBtn_Click;
// ADB
killAdbBtn.Click += KillAdbBtn_Click;
installApkBtn.Click += InstallApkBtn_Click;
refreshDevicesBtn.Click += RefreshDevicesBtn_Click;
selApkAdbBtn.Click += SelApkAdbBtn_Click;
devicesListBox.SelectionChanged += DevicesListBox_SelectionChanged;
overrideAbiComboBox.SelectionChanged += OverrideAbiComboBox_Changed;
// APK info
selApkFileInfoBtn.Click += SelApkFileInfoBtn_Click;
apkIconPicBox.MouseLeftButtonUp += ApkIcon_Click;
psLinkBtn.Click += (s, e) => { if (aapt != null) Process.Start(aapt.PlayStoreLink); };
apkComboLinkBtn.Click += (s, e) => { if (aapt != null) Process.Start(aapt.ApkComboLink); };
apkPureLinkBtn.Click += (s, e) => { if (aapt != null) Process.Start(aapt.ApkPureLink); };
apkGkLinkBtn.Click += (s, e) => { if (aapt != null) Process.Start(aapt.ApkGkLink); };
apkSupportLinkBtn.Click += (s, e) => { if (aapt != null) Process.Start(aapt.ApkSupportLink); };
apkMirrorLinkBtn.Click += (s, e) => { if (aapt != null) Process.Start(aapt.ApkMirrorLink); };
// Main tab shortcut buttons
mergeApkBtn.Click += MergeApkBtn_Click;
selSplitApkBtn.Click += SelSplitApkBtn_Click;
openAndroidMainfestBtn.Click += OpenAndroidMainfestBtn_Click;
openApktoolYmlBtn.Click += OpenApktoolYmlBtn_Click;
compileOutputOpenDirBtn.Click += CompiledApkOpenDirBtn_Click;
button_OpenMainActivity.Click += Button_OpenMainActivity_Click;
decApkOpenDirBtn.Click += DecApkOpenDirBtn_Click;
decOutOpenDirBtn.Click += DecOutOpenDirBtn_Click;
comApkOpenDir.Click += ComApkOpenDir_Click;
signApkOpenDirBtn.Click += SignApkOpenDirBtn_Click;
alignApkOpenDirBtn.Click += AlignApkOpenDirBtn_Click;
// Menu extras
menuUseApkEditor.Click += (s, e) => Settings.Default.UseApkeditor = menuUseApkEditor.IsChecked;
// Cancel by clicking status text / progress bar
statusText.MouseLeftButtonUp += (s, e) => PromptCancel();
progressBar.MouseLeftButtonUp += (s, e) => PromptCancel();
WireDragDrop();
ApplyZipalignCheckSwitch();
}
#endregion
#region Window lifecycle
private async void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
_hwnd = new WindowInteropHelper(this).Handle;
try { new TaskBarJumpList(_hwnd); } catch (Exception ex) { Debug.WriteLine(ex); }
await Task.Run(() =>
{
InitializeUpdateChecker();
InitializeZipalign();
javaPath = JavaUtils.GetJavaPath();
if (javaPath != null)
{
InitializeBaksmali();
InitializeSmali();
InitializeAPKTool();
InitializeSignapk();
InitializeApkEditor();
string javaVersion = apktool.GetJavaVersion();
if (javaVersion != null)
{
ToLog(ApktoolEventType.None, javaVersion);
if (!String.IsNullOrWhiteSpace(apktool.Version) && !Regex.IsMatch(apktool.Version, @"\r\n?|\n"))
ToLog(ApktoolEventType.None, $"{Lang.APKToolVersion} {apktool.Version}");
else
ToLog(ApktoolEventType.Error, Lang.CantDetectApktoolVersion);
string apkeditorVersion = apkeditor.GetVersion();
if (!String.IsNullOrWhiteSpace(apkeditorVersion))
ToLog(ApktoolEventType.None, apkeditorVersion);
else
ToLog(ApktoolEventType.Error, Lang.CantDetectApkeditorVersion);
}
else
ToLog(ApktoolEventType.Error, Lang.ErrorJavaDetect);
}
else
{
ToLog(ApktoolEventType.Error, Lang.ErrorJavaDetect);
BeginInvokeOnUIThread(() =>
{
tabMain.IsEnabled = false;
tabBaksmali.IsEnabled = false;
tabFramework.IsEnabled = false;
});
}
InitializeAdb();
if (AdminUtils.IsAdministrator())
ToLog(ApktoolEventType.Warning, Lang.DragDropNotSupported);
else
ToLog(ApktoolEventType.None, Lang.DragDropSupported);
ToLog(ApktoolEventType.None, String.Format(Lang.TempDirectory, Program.TEMP_PATH));
TimeSpan updateInterval = DateTime.Now - Settings.Default.LastUpdateCheck;
if (updateInterval.Days > 0 && Settings.Default.CheckForUpdateAtStartup)
updateCheker.CheckAsync(true);
});
ToStatus(Lang.Done, Res.done);
RunCmdArgs();
await ListDevices();
}
private void MainWindow_Closing(object sender, CancelEventArgs e)
{
Save();
try { previousApkIcon?.Dispose(); previousApkIcon = null; } catch { }
try
{
adb?.Dispose(); zipalign?.Dispose(); apktool?.Dispose(); signapk?.Dispose();
baksmali?.Dispose(); smali?.Dispose(); apkeditor?.Dispose();
}
catch (Exception ex) { Debug.WriteLine(ex); }
DirectoryUtils.Delete(Program.TEMP_PATH);
}
private async void RunCmdArgs()
{
try
{
if (Environment.GetCommandLineArgs().Length == 3)
{
if (Settings.Default.IgnoreOutputDirContextMenu)
IgnoreOutputDirContextMenu = true;
string file = Environment.GetCommandLineArgs()[2];
switch (Environment.GetCommandLineArgs()[1])
{
case "decapk":
if (file.ContainsAny(".xapk", ".zip", ".apks", ".apkm")) { if (await MergeAndDecompile(file) == 0) Close(); }
else { if (await Decompile(file) == 0) Close(); }
break;
case "comapk": if (await Build(file) == 0) Close(); break;
case "sign": if (await Sign(file) == 0) Close(); break;
case "zipalign": if (await Align(file) == 0) Close(); break;
case "baksmali": if (await Baksmali(file) == 0) Close(); break;
case "smali": if (await Smali(file) == 0) Close(); break;
case "viewinfo": tabControlMain.SelectedIndex = 1; await GetApkInfo(file); break;
default: IgnoreOutputDirContextMenu = false; break;
}
}
}
catch (Exception ex) { ToLog(ApktoolEventType.Error, ex.Message); }
}
#endregion
#region Menu
private void NewInstance_Click(object sender, RoutedEventArgs e) => Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
private void SaveLog_Click(object sender, RoutedEventArgs e)
{
using (var sfd = new WinForms.SaveFileDialog())
{
sfd.FileName = "APK Tool GUI logs";
sfd.Filter = Lang.TextFile + " (*.txt)|*.txt";
if (sfd.ShowDialog() == WinForms.DialogResult.OK)
File.WriteAllText(sfd.FileName, GetLogText());
}
}
private void OpenTempFolder_Click(object sender, RoutedEventArgs e)
{
if (string.IsNullOrEmpty(Program.TEMP_PATH)) return;
if (!Directory.Exists(Program.TEMP_PATH)) Directory.CreateDirectory(Program.TEMP_PATH);
Process.Start("explorer.exe", Program.TEMP_PATH);
}
private async void ClearTempFolder_Click(object sender, RoutedEventArgs e)
{
Running(Lang.ClearTempFolder);
try
{
await Task.Run(() =>
{
foreach (var subDir in new DirectoryInfo(Program.TEMP_MAIN).EnumerateDirectories())
{
ToLog(ApktoolEventType.None, String.Format(Lang.DeletingFolder, subDir));
DirectoryUtils.Delete(subDir.FullName);
}
Directory.CreateDirectory(Program.TEMP_PATH);
});
Done();
}
catch (Exception ex) { Error(ex); }
}
private void Exit_Click(object sender, RoutedEventArgs e) => Close();
private void OpenSettings_Click(object sender, RoutedEventArgs e) => new SettingsWindow { Owner = this }.ShowDialog();
private void CheckUpdate_Click(object sender, RoutedEventArgs e) => updateCheker?.CheckAsync();
private void ReportIssue_Click(object sender, RoutedEventArgs e) => Process.Start("https://github.com/AndnixSH/APKToolGUI/issues/new/choose");
private void ApktoolIssues_Click(object sender, RoutedEventArgs e) => Process.Start("https://github.com/iBotPeaches/Apktool/issues?q=is%3Aissue");
private void BaksmaliIssues_Click(object sender, RoutedEventArgs e) => Process.Start("https://github.com/JesusFreke/smali/issues?q=is%3Aissue");
private void About_Click(object sender, RoutedEventArgs e) => new AboutWindow { Owner = this }.ShowDialog();
private string GetLogText()
{
FlushLogNow();
return logTxtBox.GetText();
}
private void LogCopy_Click(object sender, RoutedEventArgs e)
{
FlushLogNow();
logTxtBox.CopySelection();
}
private void LogCopyAll_Click(object sender, RoutedEventArgs e)
{
FlushLogNow();
logTxtBox.CopyAll();
}
private void LogClear_Click(object sender, RoutedEventArgs e)
{
ClearLogQueue();
logTxtBox.Clear();
}
#endregion
}
}
+134
View File
@@ -0,0 +1,134 @@
<Window x:Class="APKToolGUI.Forms.SettingsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Settings"
Width="580" Height="588"
MinWidth="520" MinHeight="420"
ResizeMode="CanResize" ShowInTaskbar="False"
WindowStartupLocation="CenterScreen"
UseLayoutRounding="True" TextOptions.TextFormattingMode="Display"
FontFamily="Segoe UI" FontSize="12"
Background="{DynamicResource WindowBackground}"
Foreground="{DynamicResource PrimaryText}">
<!-- WPF replacement for the former WinForms FormSettings. Shared dark/light styles
from Themes/Controls.xaml; colours applied via WpfTheme.Apply in code-behind.
Resizable: a DockPanel keeps OK/Cancel pinned to the bottom while the groups sit
in a ScrollViewer so the dialog never clips. -->
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Themes/Controls.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<DockPanel Margin="5" LastChildFill="True">
<!-- ===== OK / Cancel (pinned bottom) ===== -->
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal"
HorizontalAlignment="Right" Margin="0,14,0,0">
<Button x:Name="btnOK" MinWidth="88" Height="26" Margin="0,0,8,0" IsDefault="True" Click="OK_Click"/>
<Button x:Name="btnCancel" MinWidth="88" Height="26" IsCancel="True"/>
</StackPanel>
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"
Padding="0,0,6,0">
<StackPanel>
<!-- ===== General =====
col0 = Auto (checkbox / label), col1 = * (input, stretches and never
overflows), col2 = Auto (browse button). Inputs carry a 16px left
margin so labels never crowd the textbox. Nothing spans into col2,
which previously let a long single-line value inflate that column. -->
<GroupBox x:Name="groupGeneral" Header="General">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<CheckBox x:Name="chkCheckUpdate" Grid.Row="0" Grid.ColumnSpan="3" Margin="0,3"/>
<CheckBox x:Name="chkClearLog" Grid.Row="1" Grid.ColumnSpan="3" Margin="0,3"/>
<CheckBox x:Name="chkPlaySound" Grid.Row="2" Grid.ColumnSpan="3" Margin="0,3"/>
<CheckBox x:Name="chkCustomTemp" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" Margin="0,3"/>
<TextBox x:Name="txtTempDir" Grid.Row="3" Grid.Column="1" Height="24" Margin="16,3,0,3"
VerticalContentAlignment="Center"/>
<Button x:Name="btnTempBrowse" Grid.Row="3" Grid.Column="2" Content="..." Width="32" Height="24"
Margin="6,3,0,3" Click="BrowseTemp_Click"/>
<CheckBox x:Name="chkCustomJava" Grid.Row="4" Grid.Column="0" VerticalAlignment="Center" Margin="0,3"/>
<TextBox x:Name="txtJavaExe" Grid.Row="4" Grid.Column="1" Height="24" Margin="16,3,0,3"
VerticalContentAlignment="Center"/>
<Button x:Name="btnJavaBrowse" Grid.Row="4" Grid.Column="2" Content="..." Width="32" Height="24"
Margin="6,3,0,3" Click="BrowseJava_Click"/>
<CheckBox x:Name="chkCustomJvmArgs" Grid.Row="5" Grid.Column="0" VerticalAlignment="Center" Margin="0,3"/>
<TextBox x:Name="txtJvmArgs" Grid.Row="5" Grid.Column="1" Height="24" Margin="16,3,0,3"
VerticalContentAlignment="Center"/>
<CheckBox x:Name="chkUtf8" Grid.Row="6" Grid.ColumnSpan="3" Margin="0,3"/>
<TextBlock x:Name="lblTempNote" Grid.Row="7" Grid.ColumnSpan="3" Margin="0,3,0,6"
TextWrapping="Wrap" Foreground="{DynamicResource SecondaryText}"/>
<CheckBox x:Name="chkCustomApktool" Grid.Row="8" Grid.Column="0" VerticalAlignment="Center" Margin="0,3"/>
<TextBox x:Name="txtApktoolPath" Grid.Row="8" Grid.Column="1" Height="24" Margin="16,3,0,3"
VerticalContentAlignment="Center"/>
<Button x:Name="btnApktoolBrowse" Grid.Row="8" Grid.Column="2" Content="..." Width="32" Height="24"
Margin="6,3,0,3" Click="BrowseApktool_Click"/>
<Label x:Name="lblTheme" Grid.Row="9" Grid.Column="0" VerticalAlignment="Center" Padding="0" Margin="0,3"/>
<ComboBox x:Name="cboTheme" Grid.Row="9" Grid.Column="1" Margin="16,3,0,3" HorizontalAlignment="Left" Width="160"/>
<CheckBox x:Name="chkDebug" Grid.Row="10" Grid.ColumnSpan="3" Margin="0,3"/>
</Grid>
</GroupBox>
<!-- ===== Language ===== -->
<GroupBox x:Name="groupLanguage" Header="Language">
<ComboBox x:Name="cboLanguage" HorizontalAlignment="Left" Width="360" Margin="0,2"/>
</GroupBox>
<!-- ===== Context menu ===== -->
<GroupBox x:Name="groupContextMenu" Header="Context menu">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label x:Name="lblAdminRights" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Padding="0"/>
<Button x:Name="btnInstallCM" Grid.Row="0" Grid.Column="1" MinWidth="88" Height="26" Margin="6,0,0,0"
Click="InstallContextMenu_Click"/>
<Button x:Name="btnUninstallCM" Grid.Row="0" Grid.Column="2" MinWidth="88" Height="26" Margin="8,0,0,0"
Click="UninstallContextMenu_Click"/>
<CheckBox x:Name="chkIgnoreOutputCM" Grid.Row="1" Grid.ColumnSpan="3" Margin="0,14,0,0"/>
</Grid>
</GroupBox>
</StackPanel>
</ScrollViewer>
</DockPanel>
</Window>
+341
View File
@@ -0,0 +1,341 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Reflection;
using System.Windows;
using System.Windows.Controls;
using APKToolGUI.Controls;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Ookii.Dialogs.WinForms;
using Lang = APKToolGUI.Languages.Language;
using WinForms = System.Windows.Forms;
namespace APKToolGUI.Forms
{
/// <summary>
/// WPF replacement for the former WinForms <c>FormSettings</c>. Behaviour is kept
/// identical: settings are loaded into the controls on open and written back on OK
/// (the old form used live two-way data bindings; a modal dialog makes load/save on
/// OK equivalent), the language list is discovered from embedded satellite resources,
/// and a restart is offered when the language or theme changes.
/// </summary>
public partial class SettingsWindow : Window
{
// Captured at load to detect changes that require a restart / apktool refresh.
private string currentCulture;
private int currentTheme;
private bool currentUseApktoolChk;
private string currentApktoolPath;
/// <summary>Language list entry: a display caption plus the stored culture value.</summary>
private sealed class LanguageItem
{
public string Display { get; }
public string Culture { get; } // "Auto", "" (English) or a culture name
public LanguageItem(string display, string culture) { Display = display; Culture = culture; }
public override string ToString() => Display;
}
public SettingsWindow()
{
InitializeComponent();
Theme theme = (Theme)Settings.Default.Theme;
WpfTheme.Apply(this, Program.IsDarkTheme());
NativeDarkMode.ApplyTheme(this, theme);
ApplyLocalizedText();
LoadFromSettings();
PopulateLanguages();
if (!AdminUtils.IsAdministrator())
{
SetShield(btnInstallCM);
SetShield(btnUninstallCM);
}
}
#region Localization
private void ApplyLocalizedText()
{
var rm = Lang.ResourceManager;
Title = Lang.Settings;
groupGeneral.Header = rm.GetString("SettingsGeneral");
groupLanguage.Header = rm.GetString("SettingsLanguage");
groupContextMenu.Header = rm.GetString("SettingsContextMenu");
chkCheckUpdate.Content = rm.GetString("SettingsCheckUpdate");
chkClearLog.Content = rm.GetString("SettingsClearLog");
chkPlaySound.Content = rm.GetString("SettingsPlaySound");
chkCustomTemp.Content = rm.GetString("SettingsCustomTemp");
chkCustomJava.Content = rm.GetString("SettingsCustomJava");
chkCustomJvmArgs.Content = rm.GetString("SettingsCustomJvmArgs");
chkUtf8.Content = rm.GetString("SettingsUtf8");
lblTempNote.Text = rm.GetString("SettingsTempNote");
chkCustomApktool.Content = rm.GetString("SettingsCustomApktool");
lblTheme.Content = rm.GetString("SettingsTheme");
chkDebug.Content = Lang.DebugMode;
chkIgnoreOutputCM.Content = rm.GetString("SettingsIgnoreOutputCM");
lblAdminRights.Content = rm.GetString("SettingsAdminRights");
btnInstallCM.Content = rm.GetString("SettingsInstall");
btnUninstallCM.Content = rm.GetString("SettingsUninstall");
btnOK.Content = rm.GetString("AboutOK");
btnCancel.Content = rm.GetString("SettingsCancel");
cboTheme.Items.Add(rm.GetString("ThemeAuto"));
cboTheme.Items.Add(rm.GetString("ThemeLight"));
cboTheme.Items.Add(rm.GetString("ThemeDark"));
}
#endregion
#region Load / Save
private void LoadFromSettings()
{
var s = Settings.Default;
chkClearLog.IsChecked = s.ClearLogBeforeAction;
chkPlaySound.IsChecked = s.PlaySoundWhenDone;
chkCheckUpdate.IsChecked = s.CheckForUpdateAtStartup;
chkCustomTemp.IsChecked = s.UseCustomTempDir;
txtTempDir.Text = s.TempDir;
chkCustomJava.IsChecked = s.UseCustomJavaExe;
txtJavaExe.Text = s.JavaExe;
chkCustomJvmArgs.IsChecked = s.UseCustomJVMArgs;
txtJvmArgs.Text = s.CustomJVMArgs;
chkUtf8.IsChecked = s.Utf8FilenameSupport;
chkDebug.IsChecked = s.DebugMode;
chkCustomApktool.IsChecked = s.UseCustomApktool;
txtApktoolPath.Text = s.ApktoolPath;
chkIgnoreOutputCM.IsChecked = s.IgnoreOutputDirContextMenu;
int t = s.Theme;
if (t < 0 || t >= cboTheme.Items.Count) t = 0;
cboTheme.SelectedIndex = t;
currentTheme = t;
currentUseApktoolChk = chkCustomApktool.IsChecked == true;
currentApktoolPath = txtApktoolPath.Text;
}
private void SaveToSettings()
{
try
{
var s = Settings.Default;
s.ClearLogBeforeAction = chkClearLog.IsChecked == true;
s.PlaySoundWhenDone = chkPlaySound.IsChecked == true;
s.CheckForUpdateAtStartup = chkCheckUpdate.IsChecked == true;
s.UseCustomTempDir = chkCustomTemp.IsChecked == true;
s.TempDir = txtTempDir.Text;
s.UseCustomJavaExe = chkCustomJava.IsChecked == true;
s.JavaExe = txtJavaExe.Text;
s.UseCustomJVMArgs = chkCustomJvmArgs.IsChecked == true;
s.CustomJVMArgs = txtJvmArgs.Text;
s.Utf8FilenameSupport = chkUtf8.IsChecked == true;
s.DebugMode = chkDebug.IsChecked == true;
s.UseCustomApktool = chkCustomApktool.IsChecked == true;
s.ApktoolPath = txtApktoolPath.Text;
s.IgnoreOutputDirContextMenu = chkIgnoreOutputCM.IsChecked == true;
string newCulture = (cboLanguage.SelectedItem as LanguageItem)?.Culture ?? currentCulture;
s.Culture = newCulture;
s.Theme = cboTheme.SelectedIndex;
s.Save();
bool languageChanged = newCulture != currentCulture;
bool themeChanged = cboTheme.SelectedIndex != currentTheme;
if (languageChanged || themeChanged)
{
if (WinForms.MessageBox.Show(Lang.RestartApplicationPrompt, WinForms.Application.ProductName,
WinForms.MessageBoxButtons.YesNo, WinForms.MessageBoxIcon.Question) == WinForms.DialogResult.Yes)
{
// This is a WPF app (no WinForms message loop), so WinForms.Application.Restart()
// would start a new instance but never shut this one down. Do it explicitly.
Process.Start(WinForms.Application.ExecutablePath);
System.Windows.Application.Current.Shutdown();
return;
}
}
if (currentUseApktoolChk != (chkCustomApktool.IsChecked == true) || currentApktoolPath != txtApktoolPath.Text)
MainWindow.Instance?.SetApktoolPath();
}
catch (Exception ex)
{
Log.e(ex.ToString());
}
}
#endregion
#region Language list
private void PopulateLanguages()
{
string sysLang = Lang.SystemLanguage;
string culture = Settings.Default.Culture;
currentCulture = culture;
cboLanguage.Items.Add(new LanguageItem(sysLang, "Auto"));
cboLanguage.Items.Add(new LanguageItem(CultureInfo.GetCultureInfo("en").NativeName, ""));
// Discover the languages we ship by scanning the embedded satellite resources
// (e.g. "APKToolGUI.de.resources.dll" -> "de").
foreach (string resourceName in Assembly.GetExecutingAssembly().GetManifestResourceNames())
{
if (!resourceName.EndsWith(".resources.dll", StringComparison.OrdinalIgnoreCase))
continue;
string[] parts = resourceName.Split('.');
if (parts.Length < 2) continue;
try
{
CultureInfo c = CultureInfo.GetCultureInfo(parts[1]);
cboLanguage.Items.Add(new LanguageItem($"{c.DisplayName} [{c.Name}]", c.Name));
}
catch (CultureNotFoundException) { }
}
// Select the entry matching the stored culture.
int select = 1; // default: English
if (culture == "Auto")
select = 0;
else if (!string.IsNullOrEmpty(culture))
{
for (int i = 0; i < cboLanguage.Items.Count; i++)
if (((LanguageItem)cboLanguage.Items[i]).Culture == culture) { select = i; break; }
}
cboLanguage.SelectedIndex = select;
}
#endregion
#region Buttons / pickers
private void OK_Click(object sender, RoutedEventArgs e)
{
SaveToSettings();
Close();
}
private void BrowseJava_Click(object sender, RoutedEventArgs e)
{
using (var ofd = new WinForms.OpenFileDialog())
{
ofd.Filter = string.Format(Lang.FilterJavaExe, "java.exe");
if (ofd.ShowDialog() == WinForms.DialogResult.OK)
txtJavaExe.Text = Program.GetPortablePath(ofd.FileName);
}
}
private void BrowseTemp_Click(object sender, RoutedEventArgs e)
{
using (var fbd = new VistaFolderBrowserDialog())
{
if (!string.IsNullOrWhiteSpace(txtTempDir.Text))
fbd.SelectedPath = txtTempDir.Text;
if (fbd.ShowDialog() == WinForms.DialogResult.OK)
{
txtTempDir.Text = fbd.SelectedPath;
// Move the working temp folder to the new location, as the old form did.
DirectoryUtils.Delete(Program.TEMP_PATH);
Program.TEMP_PATH = Program.RandTempDirectory();
Directory.CreateDirectory(Program.TEMP_PATH);
}
}
}
private void BrowseApktool_Click(object sender, RoutedEventArgs e)
{
using (var ofd = new WinForms.OpenFileDialog())
{
ofd.Filter = string.Format(Lang.FilterApktool, "*.jar");
if (ofd.ShowDialog() == WinForms.DialogResult.OK)
txtApktoolPath.Text = ofd.FileName;
}
}
private void InstallContextMenu_Click(object sender, RoutedEventArgs e)
{
if (WinForms.MessageBox.Show(Lang.DoYouRealyWantToInstallCM, WinForms.Application.ProductName,
WinForms.MessageBoxButtons.YesNo, WinForms.MessageBoxIcon.Question) == WinForms.DialogResult.Yes)
RunAsAdmin(WinForms.Application.ExecutablePath, "ccm");
}
private void UninstallContextMenu_Click(object sender, RoutedEventArgs e)
{
if (WinForms.MessageBox.Show(Lang.DoYouRealyWantToRemoveCM, WinForms.Application.ProductName,
WinForms.MessageBoxButtons.YesNo, WinForms.MessageBoxIcon.Question) == WinForms.DialogResult.Yes)
RunAsAdmin(WinForms.Application.ExecutablePath, "rcm");
}
private static void RunAsAdmin(string fileName, string arguments)
{
var psi = new ProcessStartInfo
{
FileName = fileName,
Arguments = arguments,
UseShellExecute = true,
Verb = "runas"
};
try
{
Process.Start(psi);
}
catch (Exception ex)
{
WinForms.MessageBox.Show(ex.Message, WinForms.Application.ProductName,
WinForms.MessageBoxButtons.OK, WinForms.MessageBoxIcon.Error);
}
}
/// <summary>
/// WPF equivalent of the old BCM_SETSHIELD: prepends the UAC shield icon to a
/// button's caption to signal the action needs elevation.
/// </summary>
private void SetShield(Button btn)
{
try
{
var source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHIcon(
System.Drawing.SystemIcons.Shield.Handle,
Int32Rect.Empty,
System.Windows.Media.Imaging.BitmapSizeOptions.FromWidthAndHeight(16, 16));
var panel = new StackPanel { Orientation = Orientation.Horizontal };
panel.Children.Add(new Image
{
Source = source,
Width = 16,
Height = 16,
Margin = new Thickness(0, 0, 6, 0),
VerticalAlignment = VerticalAlignment.Center
});
panel.Children.Add(new TextBlock
{
Text = btn.Content as string,
VerticalAlignment = VerticalAlignment.Center
});
btn.Content = panel;
}
catch
{
// Shield is cosmetic; ignore if the icon can't be created.
}
}
#endregion
}
}
@@ -1,67 +0,0 @@
using APKToolGUI.Languages;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
internal class AdbControlEventHandlers
{
private static FormMain main;
public AdbControlEventHandlers(FormMain Main)
{
main = Main;
main.killAdbBtn.Click += killAdbBtn_Click;
main.installApkBtn.Click += installApkBtn_Click;
main.refreshDevicesBtn.Click += refreshDevicesBtn_Click;
main.selApkAdbBtn.Click += selApkAdbBtn_Click;
main.devicesListBox.SelectedValueChanged += devicesListBox_SelectedValueChanged;
}
private async void refreshDevicesBtn_Click(object sender, EventArgs e)
{
await main.ListDevices();
}
private async void killAdbBtn_Click(object sender, EventArgs e)
{
if (MessageBox.Show(Language.ConfirmKillingAdbServer, Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
main.adb.KillProcess();
await main.ListDevices();
}
}
private async void installApkBtn_Click(object sender, EventArgs e)
{
string inputFile = main.apkPathAdbTxtBox.Text;
if (File.Exists(inputFile))
{
await main.Install(inputFile);
}
else
MessageBox.Show(Language.ErrorSelectedFileNotExist, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
private void selApkAdbBtn_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
if (ofd.ShowDialog() == DialogResult.OK)
{
main.apkPathAdbTxtBox.Text = ofd.FileName;
}
}
}
private void devicesListBox_SelectedValueChanged(object sender, EventArgs e)
{
main.ToLog(ApktoolEventType.None, String.Format(Language.DeviceSelected, main.devicesListBox.SelectedItem));
main.selAdbDeviceLbl.Text = main.devicesListBox.GetItemText(main.devicesListBox.SelectedItem);
}
}
}
@@ -1,94 +0,0 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
internal class ApkinfoControlEventHandlers
{
private static FormMain main;
public ApkinfoControlEventHandlers(FormMain Main)
{
main = Main;
main.selApkFileInfoBtn.Click += selApkFileInfoBtn_Click;
main.psLinkBtn.Click += psLinkBtn_Click;
main.apkComboLinkBtn.Click += apkComboLinkBtn_Click;
main.apkPureLinkBtn.Click += apkPureLinkBtn_Click;
main.apkGkLinkBtn.Click += apkGkLinkBtn_Click;
main.apkSupportLinkBtn.Click += apkSupportLinkBtn_Click;
main.apkSosLinkBtn.Click += apkSosLinkBtn_Click;
main.apkMirrorLinkBtn.Click += apkMirrorLinkBtn_Click;
main.apkAioLinkBtn.Click += apkAioLinkBtn_Click;
main.apkDlLinkBtn.Click += apkDlLinkBtn_Click;
}
private void selApkFileInfoBtn_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
if (ofd.ShowDialog() == DialogResult.OK)
{
main.GetApkInfo(ofd.FileName);
}
}
}
private void psLinkBtn_Click(object sender, EventArgs e)
{
if (main.aapt != null)
Process.Start(main.aapt.PlayStoreLink);
}
private void apkComboLinkBtn_Click(object sender, EventArgs e)
{
if (main.aapt != null)
Process.Start(main.aapt.ApkComboLink);
}
private void apkPureLinkBtn_Click(object sender, EventArgs e)
{
if (main.aapt != null)
Process.Start(main.aapt.ApkPureLink);
}
private void apkGkLinkBtn_Click(object sender, EventArgs e)
{
if (main.aapt != null)
Process.Start(main.aapt.ApkGkLink);
}
private void apkSupportLinkBtn_Click(object sender, EventArgs e)
{
if (main.aapt != null)
Process.Start(main.aapt.ApkSupportLink);
}
private void apkSosLinkBtn_Click(object sender, EventArgs e)
{
if (main.aapt != null)
Process.Start(main.aapt.ApkSosLink);
}
private void apkMirrorLinkBtn_Click(object sender, EventArgs e)
{
if (main.aapt != null)
Process.Start(main.aapt.ApkMirrorLink);
}
private void apkAioLinkBtn_Click(object sender, EventArgs e)
{
if (main.aapt != null)
Process.Start(main.aapt.ApkAioLink);
}
private void apkDlLinkBtn_Click(object sender, EventArgs e)
{
if (main.aapt != null)
Process.Start(main.aapt.ApkDlLink);
}
}
}
@@ -1,69 +0,0 @@
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Ookii.Dialogs.WinForms;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
class BaksmaliControlEventHandlers
{
private static FormMain main;
public BaksmaliControlEventHandlers(FormMain Main)
{
main = Main;
main.baksmaliBrowseOutputBtn.Click += baksmaliBrowseOutputBtn_Click;
main.baksmaliBrowseInputDexBtn.Click += baksmaliBrowseInputDexBtn_Click;
main.decSmaliBtn.Click += decSmaliBtn_Click;
}
internal void baksmaliBrowseOutputBtn_Click(object sender, EventArgs e)
{
VistaFolderBrowserDialog dlg = new VistaFolderBrowserDialog();
dlg.ShowNewFolderButton = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
main.baksmaliBrowseOutputTxtBox.Text = dlg.SelectedPath;
}
}
internal void baksmaliBrowseInputDexBtn_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "dex|*.dex";
if (ofd.ShowDialog() == DialogResult.OK)
main.baksmaliBrowseInputDexTxtBox.Text = ofd.FileName;
}
}
internal async void decSmaliBtn_Click(object sender, EventArgs e)
{
if (main.baksmaliUseOutputChkBox.Checked)
{
if (String.IsNullOrWhiteSpace(main.baksmaliBrowseOutputTxtBox.Text) || !Directory.Exists(main.baksmaliBrowseOutputTxtBox.Text))
{
main.ShowMessage(Language.ErrorSelectedOutputFolderNotExist, MessageBoxIcon.Warning);
return;
}
}
if (!File.Exists(main.baksmaliBrowseInputDexTxtBox.Text))
{
main.ShowMessage(Language.ErrorSelectedFileNotExist, MessageBoxIcon.Warning);
return;
}
await main.Baksmali(Settings.Default.Baksmali_InputDexFile);
}
}
}
@@ -1,90 +0,0 @@
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Ookii.Dialogs.WinForms;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
class BuildControlEventHandlers
{
private static FormMain main;
public BuildControlEventHandlers(FormMain Main)
{
main = Main;
main.button_BUILD_BrowseAaptPath.Click += button_BUILD_BrowseAaptPath_Click;
main.button_BUILD_BrowseFrameDir.Click += button_BUILD_BrowseFrameDir_Click;
main.button_BUILD_BrowseOutputAppPath.Click += button_BUILD_BrowseOutputAppPath_Click;
main.button_BUILD_BrowseInputProjectDir.Click += button_BUILD_BrowseInputProjectDir_Click;
main.button_BUILD_Build.Click += button_BUILD_Build_Click;
}
internal void button_BUILD_BrowseAaptPath_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = Language.ExecutableFile + "|*.exe";
if (!String.IsNullOrWhiteSpace(main.textBox_BUILD_AaptPath.Text))
{
ofd.InitialDirectory = Path.GetDirectoryName(main.textBox_BUILD_AaptPath.Text);
ofd.FileName = Path.GetFileName(main.textBox_BUILD_AaptPath.Text);
}
if (ofd.ShowDialog() == DialogResult.OK)
main.textBox_BUILD_AaptPath.Text = ofd.FileName;
}
}
internal void button_BUILD_BrowseFrameDir_Click(object sender, EventArgs e)
{
using (VistaFolderBrowserDialog fbd = new VistaFolderBrowserDialog())
{
if (!String.IsNullOrWhiteSpace(main.textBox_BUILD_FrameDir.Text))
fbd.SelectedPath = main.textBox_BUILD_FrameDir.Text;
if (fbd.ShowDialog() == DialogResult.OK)
main.textBox_BUILD_FrameDir.Text = fbd.SelectedPath;
}
}
internal void button_BUILD_BrowseOutputAppPath_Click(object sender, EventArgs e)
{
VistaFolderBrowserDialog dlg = new VistaFolderBrowserDialog();
dlg.ShowNewFolderButton = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
main.textBox_BUILD_OutputAppPath.Text = dlg.SelectedPath;
}
}
internal void button_BUILD_BrowseInputProjectDir_Click(object sender, EventArgs e)
{
VistaFolderBrowserDialog dlg = new VistaFolderBrowserDialog();
dlg.ShowNewFolderButton = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
main.textBox_BUILD_InputProjectDir.Text = dlg.SelectedPath;
}
}
internal async void button_BUILD_Build_Click(object sender, EventArgs e)
{
string decApkDir = main.textBox_BUILD_InputProjectDir.Text;
if (Directory.Exists(main.textBox_BUILD_InputProjectDir.Text))
{
await main.Build(decApkDir);
}
else
MessageBox.Show(Language.WarningDecodingFolderNotSelected, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
@@ -1,115 +0,0 @@
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Ookii.Dialogs.WinForms;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
class DecodeControlEventHandlers
{
private static FormMain main;
public DecodeControlEventHandlers(FormMain Main)
{
main = Main;
main.button_DECODE_BrowseFrameDir.Click += button_DECODE_BrowseFrameDir_Click;
main.button_DECODE_BrowseOutputDirectory.Click += button_DECODE_BrowseOutputDirectory_Click;
main.button_DECODE_BrowseInputAppPath.Click += button_DECODE_BrowseInputAppPath_Click;
main.button_DECODE_Decode.Click += button_DECODE_Decode_Click;
}
internal void button_DECODE_BrowseFrameDir_Click(object sender, EventArgs e)
{
using (VistaFolderBrowserDialog fbd = new VistaFolderBrowserDialog())
{
if (!String.IsNullOrWhiteSpace(main.textBox_DECODE_FrameDir.Text))
fbd.SelectedPath = main.textBox_DECODE_FrameDir.Text;
if (fbd.ShowDialog() == DialogResult.OK)
main.textBox_DECODE_FrameDir.Text = fbd.SelectedPath;
}
}
internal void button_DECODE_BrowseOutputDirectory_Click(object sender, EventArgs e)
{
using (VistaFolderBrowserDialog fbd = new VistaFolderBrowserDialog())
{
if (!String.IsNullOrWhiteSpace(main.textBox_DECODE_OutputDirectory.Text))
fbd.SelectedPath = main.textBox_DECODE_OutputDirectory.Text;
else
if (!String.IsNullOrWhiteSpace(main.textBox_DECODE_InputAppPath.Text))
fbd.SelectedPath = Path.GetDirectoryName(main.textBox_DECODE_InputAppPath.Text);
if (fbd.ShowDialog() == DialogResult.OK)
main.textBox_DECODE_OutputDirectory.Text = fbd.SelectedPath;
}
}
internal void button_DECODE_BrowseInputAppPath_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
if (ofd.ShowDialog() == DialogResult.OK)
{
main.textBox_DECODE_InputAppPath.Text = ofd.FileName;
if (!Settings.Default.Decode_DontParseApkInfo)
main.GetApkInfo(ofd.FileName);
if (main.checkBox_DECODE_OutputDirectory.Checked)
{
main.textBox_DECODE_OutputDirectory.Text = Path.Combine(Path.GetDirectoryName(main.textBox_DECODE_InputAppPath.Text), Path.GetFileNameWithoutExtension(main.textBox_DECODE_InputAppPath.Text));
}
}
}
}
internal async void button_DECODE_Decode_Click(object sender, EventArgs e)
{
string inputFile = main.textBox_DECODE_InputAppPath.Text;
if (File.Exists(inputFile))
{
if (main.checkBox_DECODE_UseFramework.Checked && !Directory.Exists(main.textBox_DECODE_FrameDir.Text))
{
main.ShowMessage(Language.DecodeSelectedFrameworkNotExist, MessageBoxIcon.Warning);
return;
}
if (main.checkBox_DECODE_OutputDirectory.Checked)
{
if (String.IsNullOrWhiteSpace(Settings.Default.Decode_OutputDir))
{
main.ShowMessage(Language.DecodeDirNotSelected, MessageBoxIcon.Warning);
return;
}
else
if (!PathUtils.IsValidPath(Settings.Default.Decode_OutputDir))
{
main.ShowMessage(Language.DecodeCouldNotCreate, MessageBoxIcon.Warning);
return;
}
}
if (inputFile.ContainsAny(".xapk", ".zip", ".apks", ".apkm"))
{
if (Settings.Default.Decode_UseApkEditorMergeApk)
{
await main.MergeUsingApkEditor(inputFile);
}
else
{
await main.Merge(inputFile);
}
}
else
await main.Decompile(inputFile);
}
else
MessageBox.Show(Language.WarningFileForDecodingNotSelected, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}
-216
View File
@@ -1,216 +0,0 @@
using APKToolGUI.ApkTool;
using APKToolGUI.Controls;
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using SaveToGameWpf.Logic.Utils;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
class DragDropHandlers
{
private static FormMain main;
string[] apks = { ".apk", ".xapk", ".zip", ".apks", ".apkm" };
public DragDropHandlers(FormMain Main)
{
main = Main;
//Decode
DragEventHandler decEventHandler = new DragEventHandler((sender, e) => { DropApkToDec(e); });
Register(main.decPanel, null, decEventHandler, apks);
Register(main.textBox_DECODE_InputAppPath, main.decPanel, decEventHandler, apks);
Register(main.button_DECODE_Decode, main.decPanel, decEventHandler, apks);
DragEventHandler comEventHandler = new DragEventHandler((sender, e) => { DropDirToCom(e); });
Register(main.comPanel, null, comEventHandler, null);
Register(main.textBox_BUILD_InputProjectDir, main.comPanel, comEventHandler, null);
Register(main.button_BUILD_Build, main.comPanel, comEventHandler, null);
DragEventHandler alignEventHandler = new DragEventHandler((sender, e) => { DropApkToAlign(e); });
Register(main.zipalignPanel, null, alignEventHandler, apks);
Register(main.textBox_ZIPALIGN_InputFile, main.zipalignPanel, alignEventHandler, apks);
Register(main.button_ZIPALIGN_Align, main.zipalignPanel, alignEventHandler, apks);
DragEventHandler signEventHandler = new DragEventHandler((sender, e) => { DropApkToSign(e); });
Register(main.signPanel, null, signEventHandler, apks);
Register(main.textBox_SIGN_InputFile, main.signPanel, signEventHandler, apks);
Register(main.button_SIGN_Sign, main.signPanel, signEventHandler, apks);
DragEventHandler baksmaliEventHandler = new DragEventHandler((sender, e) => { DropDexToBaksmali(e); });
Register(main.bakSmaliGroupBox, null, baksmaliEventHandler, new string[] { ".dex" });
main.bakSmaliGroupBox.AllowDrop = true;
DragEventHandler smaliEventHandler = new DragEventHandler((sender, e) => { DropDirToSmali(e); });
Register(main.smaliGroupBox, null, smaliEventHandler, null);
main.smaliGroupBox.AllowDrop = true;
DragEventHandler apkInfoEventHandler = new DragEventHandler((sender, e) => { DropApkToGetInfo(e); });
Register(main.basicInfoTabPage, null, apkInfoEventHandler, apks);
Register(main.fileTxtBox, null, apkInfoEventHandler, apks);
DragEventHandler adbEventHandler = new DragEventHandler((sender, e) => { DropApkToInstall(e); });
Register(main.tabPageAdb, null, adbEventHandler, new string[] { ".apk" });
Register(main.installApkBtn, null, adbEventHandler, new string[] { ".apk" });
}
void Register(Control ctrl, Control extCtrl, DragEventHandler dragHandler, string[] extension)
{
if (extCtrl == null)
extCtrl = ctrl;
ctrl.DragLeave += new EventHandler((sender, e) => extCtrl.BackColor = PanelBackColor());
ctrl.DragEnter += new DragEventHandler((sender, e) => e.CheckDragEnter(extension));
ctrl.DragOver += new DragEventHandler((sender, e) => { if (e.CheckManyDragOver(extension)) extCtrl.BackColor = PanelHoverBackColor(); });
ctrl.DragDrop += dragHandler;
}
private async void DropApkToDec(DragEventArgs e)
{
string[] apkFiles = null;
if (e.DropManyByEnd(file => apkFiles = file, apks))
{
main.decPanel.BackColor = PanelBackColor();
foreach (var apkFile in apkFiles)
{
main.textBox_DECODE_InputAppPath.Text = apkFile;
if (!Settings.Default.Decode_DontParseApkInfo)
await main.GetApkInfo(apkFile);
if (apkFile.ContainsAny(".xapk", ".zip", ".apks", ".apkm"))
{
if (Settings.Default.Decode_UseApkEditorMergeApk)
{
await main.MergeUsingApkEditor(apkFile);
}
else
{
await main.Merge(apkFile);
}
}
else
await main.Decompile(apkFile);
}
}
}
private async void DropDirToCom(DragEventArgs e)
{
string[] folders = null;
if (e.DropManyByEnd(file => folders = file, ""))
{
foreach (var folder in folders)
{
if (File.Exists(Path.Combine(folder, "AndroidManifest.xml")))
{
main.textBox_BUILD_InputProjectDir.Text = folder;
main.comPanel.BackColor = PanelBackColor();
await main.Build(folder);
}
else
main.ToLog(ApktoolEventType.Error, Language.ErrorNotAnApk);
}
}
}
private async void DropApkToAlign(DragEventArgs e)
{
string[] apkFiles = null;
if (e.DropManyByEnd(file => apkFiles = file, apks))
{
main.zipalignPanel.BackColor = PanelBackColor();
foreach (var apkFile in apkFiles)
{
main.textBox_ZIPALIGN_InputFile.Text = apkFile;
await main.Align(apkFile);
}
}
}
private async void DropApkToSign(DragEventArgs e)
{
string[] apkFiles = null;
if (e.DropManyByEnd(file => apkFiles = file, apks))
{
main.signPanel.BackColor = PanelBackColor();
foreach (var apkFile in apkFiles)
{
main.textBox_SIGN_InputFile.Text = apkFile;
await main.Sign(apkFile);
}
}
}
private async void DropDexToBaksmali(DragEventArgs e)
{
string apkFile = null;
if (e.DropOneByEnd(file => apkFile = file, ".dex"))
{
main.baksmaliBrowseInputDexTxtBox.Text = apkFile;
main.bakSmaliGroupBox.BackColor = PanelBackColor();
await main.Baksmali(apkFile);
}
}
private async void DropDirToSmali(DragEventArgs e)
{
string dir = null;
if (e.DropOneByEnd(file => dir = file, null))
{
main.smaliBrowseInputDirTxtBox.Text = dir;
main.smaliGroupBox.BackColor = PanelBackColor();
await main.Smali(dir);
}
}
private async void DropApkToInstall(DragEventArgs e)
{
string dir = null;
if (e.DropOneByEnd(file => dir = file, ".apk"))
{
main.apkPathAdbTxtBox.Text = dir;
main.tabPageAdb.BackColor = PanelBackColor();
await main.Install(dir);
}
}
private void DropApkToGetInfo(DragEventArgs e)
{
string apkFile = null;
if (e.DropOneByEnd(file => apkFile = file, apks))
{
main.smaliBrowseInputDirTxtBox.Text = apkFile;
main.basicInfoTabPage.BackColor = PanelBackColor();
main.GetApkInfo(apkFile);
}
}
Color PanelBackColor()
{
if (Program.IsDarkTheme())
return DarkTheme.bgColor;
return Color.White;
}
Color PanelHoverBackColor()
{
if (Program.IsDarkTheme())
return Color.Gray;
return Color.LightGreen;
}
}
}
@@ -1,109 +0,0 @@
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Ookii.Dialogs.WinForms;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
class FrameworkControlEventHandlers
{
private static FormMain main;
public FrameworkControlEventHandlers(FormMain Main)
{
main = Main;
main.button_IF_BrowseFrameDir.Click += button_IF_BrowseFrameDir_Click;
main.button_IF_BrowseInputFramePath.Click += button_IF_BrowseInputFramePath_Click;
main.button_IF_InstallFramework.Click += button_IF_InstallFramework_Click;
main.clearFwBtn.Click += clearFwBtn_Click;
main.openFwFolderBtn.Click += openFwFolderBtn_Click;
}
internal void button_IF_BrowseFrameDir_Click(object sender, EventArgs e)
{
main.clearFwBeforeDecodeChkBox.Checked = false;
VistaFolderBrowserDialog dlg = new VistaFolderBrowserDialog();
dlg.ShowNewFolderButton = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
main.textBox_IF_FrameDir.Text = dlg.SelectedPath;
}
}
internal void button_IF_BrowseInputFramePath_Click(object sender, EventArgs e)
{
main.clearFwBeforeDecodeChkBox.Checked = false;
using (OpenFileDialog ofd = new OpenFileDialog())
{
if (File.Exists(main.textBox_IF_InputFramePath.Text))
{
ofd.InitialDirectory = Path.GetDirectoryName(main.textBox_IF_InputFramePath.Text);
ofd.FileName = Path.GetFileNameWithoutExtension(main.textBox_IF_InputFramePath.Text);
}
ofd.Filter = "apk|*.apk";
if (ofd.ShowDialog() == DialogResult.OK)
main.textBox_IF_InputFramePath.Text = ofd.FileName;
}
}
internal async void button_IF_InstallFramework_Click(object sender, EventArgs e)
{
if (main.checkBox_IF_FramePath.Checked)
{
if (String.IsNullOrWhiteSpace(main.textBox_IF_FrameDir.Text) || !Directory.Exists(main.textBox_IF_FrameDir.Text))
{
main.ShowMessage(Language.ErrorSelectingFrameworkDirectory, MessageBoxIcon.Warning);
return;
}
}
if (main.checkBox_IF_Tag.Checked && String.IsNullOrWhiteSpace(main.textBox_IF_Tag.Text))
{
main.ShowMessage(Language.ErrorEnteringFrameworkTag, MessageBoxIcon.Warning);
return;
}
if (!File.Exists(main.textBox_IF_InputFramePath.Text))
{
main.ShowMessage(Language.ErrorSelectingFrameworkFile, MessageBoxIcon.Warning);
return;
}
main.Running(Language.InstallingFramework);
main.ToLog(ApktoolEventType.None, Language.InstallingFramework + " " + Path.GetFileName(main.textBox_IF_InputFramePath.Text));
await Task.Factory.StartNew(() =>
{
if (main.apktool.InstallFramework() == 0)
main.Done(Language.FrameworkInstalled);
else
main.Error(Language.FrameworkInstallationNotStarted);
});
}
internal async void clearFwBtn_Click(object sender, EventArgs e)
{
main.Running(Language.ClearingFramework);
await main.ClearFramework();
}
internal void openFwFolderBtn_Click(object sender, EventArgs e)
{
if (main.checkBox_IF_FramePath.Checked && Directory.Exists(main.textBox_IF_FrameDir.Text))
Process.Start("explorer.exe", main.textBox_IF_FrameDir.Text);
else if (Directory.Exists(Program.FRAMEWORK_DIR))
Process.Start("explorer.exe", Program.FRAMEWORK_DIR);
else
main.ToLog(ApktoolEventType.Error, Language.ErrorSelectedFolderNotExist);
}
}
}
@@ -1,208 +0,0 @@
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace APKToolGUI.Handlers
{
internal class MainWindowEventHandlers
{
private static FormMain main;
public MainWindowEventHandlers(FormMain Main)
{
main = Main;
main.clearLogToolStripMenuItem.Click += clearLogToolStripMenuItem_Click;
main.copyToolStripMenuItem.Click += copyToolStripMenuItem_Click;
main.openAndroidMainfestBtn.Click += openAndroidMainfestBtn_Click;
main.openApktoolYmlBtn.Click += openApktoolYmlBtn_Click;
main.compileOutputOpenDirBtn.Click += compiledApkOpenDirBtn_Click;
main.button_OpenMainActivity.Click += button_OpenMainActivity_Click;
main.decApkOpenDirBtn.Click += decApkOpenDirBtn_Click;
main.decOutOpenDirBtn.Click += decOutOpenDirBtn_Click;
main.comApkOpenDir.Click += comApkOpenDir_Click;
main.signApkOpenDirBtn.Click += signApkOpenDirBtn_Click;
main.alignApkOpenDirBtn.Click += alignApkOpenDirBtn_Click;
}
private void clearLogToolStripMenuItem_Click(object sender, EventArgs e)
{
main.logTxtBox.Text = "";
}
private void copyToolStripMenuItem_Click(object sender, EventArgs e)
{
try
{
Clipboard.SetText(main.logTxtBox.SelectedText);
}
catch (Exception ex)
{
main.ToLog(ApktoolEventType.Error, ex.Message);
}
}
internal void decApkOpenDirBtn_Click(object sender, EventArgs e)
{
if (Directory.Exists(main.textBox_BUILD_InputProjectDir.Text))
Process.Start("explorer.exe", main.textBox_BUILD_InputProjectDir.Text);
else
{
main.ToLog(ApktoolEventType.Error, Language.ErrorSelectedFileNotExist);
}
}
internal void decOutOpenDirBtn_Click(object sender, EventArgs e)
{
if (Directory.Exists(Settings.Default.Decode_OutputDir))
Process.Start("explorer.exe", Settings.Default.Decode_OutputDir);
else
{
main.ToLog(ApktoolEventType.Error, Language.ErrorSelectedOutputFolderNotExist);
}
}
private void openAndroidMainfestBtn_Click(object sender, EventArgs e)
{
if (File.Exists(Path.Combine(main.textBox_BUILD_InputProjectDir.Text, "AndroidManifest.xml")))
Process.Start("explorer.exe", Path.Combine(main.textBox_BUILD_InputProjectDir.Text, "AndroidManifest.xml"));
else
main.ToLog(ApktoolEventType.Error, Language.AndroidManifestNotExist);
}
private void openApktoolYmlBtn_Click(object sender, EventArgs e)
{
if (File.Exists(Path.Combine(main.textBox_BUILD_InputProjectDir.Text, "apktool.yml")))
Process.Start("explorer.exe", Path.Combine(main.textBox_BUILD_InputProjectDir.Text, "apktool.yml"));
else
main.ToLog(ApktoolEventType.Error, Language.AndroidManifestNotExist);
}
private void compiledApkOpenDirBtn_Click(object sender, EventArgs e)
{
if (Directory.Exists(Settings.Default.Build_OutputAppPath))
{
Process.Start("explorer.exe", Settings.Default.Build_OutputAppPath);
}
else
main.ToLog(ApktoolEventType.Error, Language.ErrorSelectedFileNotExist);
}
private void button_OpenMainActivity_Click(object sender, EventArgs e)
{
string decPath = main.textBox_BUILD_InputProjectDir.Text;
if (Directory.Exists(decPath))
{
var launchActivityList = new List<string>
{
main.aapt != null ? main.aapt.LaunchableActivity : CommonUtils.GetActivityFromManifest(decPath),
"com\\unity3d\\player\\UnityPlayerActivity",
CommonUtils.GetApplicationNameFromManifest(decPath)
};
foreach (string launchActivity in launchActivityList)
{
if (String.IsNullOrEmpty(launchActivity))
continue;
Debug.WriteLine(launchActivity);
string path = null;
bool activityFound = false;
for (int i = 1; i < 100; i++)
{
string smaliFolder = (i == 1) ? "smali" : "smali_classes" + i;
path = Path.Combine(decPath, smaliFolder, launchActivity.Replace(".", "\\") + ".smali");
if (File.Exists(path))
{
Debug.WriteLine(path);
activityFound = true;
break;
}
}
if (activityFound && !CommonUtils.OnCreateExists(path))
continue;
if (activityFound)
{
main.ToLog(ApktoolEventType.None, String.Format(Language.MainActivityFound, path));
Process.Start("explorer.exe", path);
return;
}
else
continue;
}
main.ToLog(ApktoolEventType.Warning, Language.MainActivityNotFoundPleaseFindManually);
}
else
main.ToLog(ApktoolEventType.Error, Language.DecompiledAPKNotExist);
}
internal void comApkOpenDir_Click(object sender, EventArgs e)
{
string decApkDir = main.textBox_BUILD_InputProjectDir.Text;
string outputFile = decApkDir + " compiled.apk";
if (Settings.Default.Build_SignAfterBuild)
outputFile = decApkDir + " signed.apk";
if (Settings.Default.Build_UseOutputAppPath)
{
outputFile = Path.Combine(Settings.Default.Build_OutputAppPath, Path.GetFileName(decApkDir)) + ".apk";
if (Settings.Default.Build_SignAfterBuild)
outputFile = Path.Combine(Settings.Default.Build_OutputAppPath, Path.GetFileName(decApkDir)) + " signed.apk";
}
if (File.Exists(outputFile))
Process.Start("explorer.exe", string.Format("/select,\"{0}\"", outputFile));
else
{
main.ToLog(ApktoolEventType.Error, Language.ErrorSelectedFileNotExist);
}
}
internal void signApkOpenDirBtn_Click(object sender, EventArgs e)
{
string inputFile = Settings.Default.Sign_InputFile;
string outputFile = inputFile;
if (Settings.Default.Zipalign_UseOutputDir)
outputFile = Path.Combine(Settings.Default.Sign_OutputDir, Path.GetFileName(inputFile));
if (File.Exists(outputFile))
Process.Start("explorer.exe", string.Format("/select,\"{0}\"", outputFile));
else
{
main.ToLog(ApktoolEventType.Error, Language.ErrorSelectedFileNotExist);
}
}
internal void alignApkOpenDirBtn_Click(object sender, EventArgs e)
{
string inputFile = Settings.Default.Zipalign_InputFile;
string outputFile = inputFile;
if (!String.IsNullOrEmpty(outputFile))
{
if (Settings.Default.Zipalign_UseOutputDir)
outputFile = Path.Combine(Settings.Default.Zipalign_OutputDir, Path.GetFileName(inputFile));
if (!Settings.Default.Zipalign_OverwriteOutputFile)
outputFile = PathUtils.GetDirectoryNameWithoutExtension(outputFile) + " aligned.apk";
}
if (File.Exists(outputFile))
Process.Start("explorer.exe", string.Format("/select,\"{0}\"", outputFile));
else
{
main.ToLog(ApktoolEventType.Error, Language.ErrorSelectedFileNotExist);
}
}
}
}
-111
View File
@@ -1,111 +0,0 @@
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using Dark.Net;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
internal class MenuItemHandlers
{
private static FormMain main;
public MenuItemHandlers(FormMain Main)
{
main = Main;
main.saveLogToFileToolStripMenuItem.Click += saveLogItem_Click;
main.settingsToolStripMenuItem.Click += menuItemSettings_Click;
main.exitToolStripMenuItem.Click += menuItemExit_Click;
main.openTempFolderToolStripMenuItem.Click += openTempFolderToolStripMenuItem_Click;
main.checkForUpdateToolStripMenuItem.Click += menuItemCheckUpdate_Click;
main.aboutToolStripMenuItem.Click += menuItemAbout_Click;
main.apktoolIssuesToolStripMenuItem.Click += apktoolIssuesLinkItem_Click;
main.baksmaliIssuesToolStripMenuItem.Click += baksmaliIssuesLinkItem_Click;
main.reportAnIsuueToolStripMenuItem.Click += reportAnIsuueToolStripMenuItem_Click;
main.newInsToolStripMenuItem.Click += newInsToolStripMenuItem_Click;
}
private void newInsToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
}
private void saveLogItem_Click(object sender, EventArgs e)
{
using (var sfd = new SaveFileDialog())
{
sfd.FileName = "APK Tool GUI logs";
sfd.Filter = Language.TextFile + " (*.txt)|*.txt";
sfd.FilterIndex = 2;
if (sfd.ShowDialog() == DialogResult.OK)
{
File.WriteAllText(sfd.FileName, main.logTxtBox.Text);
}
}
}
private void menuItemSettings_Click(object sender, EventArgs e)
{
Theme theme = (Theme)Settings.Default.Theme;
if (Program.IsWin10OrAbove())
DarkNet.Instance.SetCurrentProcessTheme(theme);
FormSettings frm = new FormSettings();
if (Program.IsWin10OrAbove())
DarkNet.Instance.SetWindowThemeForms(frm, theme);
frm.ShowDialog();
}
private void menuItemExit_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void openTempFolderToolStripMenuItem_Click(object sender, EventArgs e)
{
if (Directory.Exists(Program.TEMP_PATH))
Process.Start("explorer.exe", Program.TEMP_PATH);
}
private void menuItemCheckUpdate_Click(object sender, EventArgs e)
{
main.updateCheker.CheckAsync();
}
private void menuItemAbout_Click(object sender, EventArgs e)
{
Theme theme = (Theme)Settings.Default.Theme;
if (Program.IsWin10OrAbove())
DarkNet.Instance.SetCurrentProcessTheme(theme);
FormAboutBox frm = new FormAboutBox();
if (Program.IsWin10OrAbove())
DarkNet.Instance.SetWindowThemeForms(frm, theme);
frm.ShowDialog();
}
private void apktoolIssuesLinkItem_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/iBotPeaches/Apktool/issues?q=is%3Aissue");
}
private void baksmaliIssuesLinkItem_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/JesusFreke/smali/issues?q=is%3Aissue");
}
private void reportAnIsuueToolStripMenuItem_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/AndnixSH/APKToolGUI/issues/new/choose");
}
}
}
@@ -1,146 +0,0 @@
using APKToolGUI.ApkTool;
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Ookii.Dialogs.WinForms;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
class SignControlEventHandlers
{
private static FormMain main;
public SignControlEventHandlers(FormMain Main)
{
main = Main;
main.button_SIGN_BrowsePublicKey.Click += button_SIGN_BrowsePublicKey_Click;
main.button_SIGN_BrowsePrivateKey.Click += button_SIGN_BrowsePrivateKey_Click;
main.button_SIGN_BrowsePrivateKey.Click += button_SIGN_BrowsePrivateKey_Click;
main.button_SIGN_BrowseInputFile.Click += button_SIGN_BrowseInputFile_Click;
main.button_SIGN_BrowseOutputFile.Click += button_SIGN_BrowseOutputFile_Click;
main.schemev1ComboBox.SelectedIndexChanged += schemeComboBoxChanged;
main.schemev2ComboBox.SelectedIndexChanged += schemeComboBoxChanged;
main.schemev3ComboBox.SelectedIndexChanged += schemeComboBoxChanged;
main.schemev4ComboBox.SelectedIndexChanged += schemeComboBoxChanged;
main.button_SIGN_Sign.Click += button_SIGN_Sign_Click;
main.selectKeyStoreFileBtn.Click += selectKeyStoreFileBtn_Click;
}
internal void button_SIGN_BrowsePublicKey_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "*.pem|*.pem";
if (File.Exists(main.textBox_SIGN_PublicKey.Text))
{
ofd.InitialDirectory = Path.GetDirectoryName(main.textBox_SIGN_PublicKey.Text);
ofd.FileName = Path.GetFileNameWithoutExtension(main.textBox_SIGN_PublicKey.Text);
}
if (ofd.ShowDialog() == DialogResult.OK)
main.textBox_SIGN_PublicKey.Text = Program.GetPortablePath(ofd.FileName);
}
}
internal void button_SIGN_BrowsePrivateKey_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "*.pk8|*.pk8";
if (File.Exists(main.textBox_SIGN_PrivateKey.Text))
{
ofd.InitialDirectory = Path.GetDirectoryName(main.textBox_SIGN_PrivateKey.Text);
ofd.FileName = Path.GetFileNameWithoutExtension(main.textBox_SIGN_PrivateKey.Text);
}
if (ofd.ShowDialog() == DialogResult.OK)
main.textBox_SIGN_PrivateKey.Text = Program.GetPortablePath(ofd.FileName);
}
}
internal void button_SIGN_BrowseOutputFile_Click(object sender, EventArgs e)
{
VistaFolderBrowserDialog dlg = new VistaFolderBrowserDialog();
dlg.ShowNewFolderButton = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
main.textBox_SIGN_OutputFile.Text = dlg.SelectedPath;
}
}
internal void button_SIGN_BrowseInputFile_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "(*.apk;*.jar;*.zip)|*.apk;*.jar;*.zip";
if (ofd.ShowDialog() == DialogResult.OK)
{
main.textBox_SIGN_InputFile.Text = ofd.FileName;
main.GetApkInfo(ofd.FileName);
main.textBox_SIGN_OutputFile.Text =
String.Format("{0}{1}{2}_signed{3}",
Path.GetDirectoryName(main.textBox_SIGN_InputFile.Text),
Path.DirectorySeparatorChar,
Path.GetFileNameWithoutExtension(main.textBox_SIGN_InputFile.Text),
Path.GetExtension(main.textBox_SIGN_InputFile.Text));
}
}
}
internal async void button_SIGN_Sign_Click(object sender, EventArgs e)
{
try
{
main.Save();
if (!File.Exists(Settings.Default.Sign_PublicKey))
{
main.ShowMessage(Language.SignPublicKeyNotFound, MessageBoxIcon.Warning);
return;
}
if (!File.Exists(Settings.Default.Sign_PrivateKey))
{
main.ShowMessage(Language.SignPrivateKeyNotFound, MessageBoxIcon.Warning);
return;
}
if (!File.Exists(main.textBox_SIGN_InputFile.Text))
{
main.ShowMessage(Language.SignInputFileNotFound, MessageBoxIcon.Warning);
return;
}
await main.Sign(Settings.Default.Sign_InputFile);
}
catch (Exception ex)
{
main.ToLog(ApktoolEventType.Error, ex.Message);
}
}
internal void selectKeyStoreFileBtn_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.Filter = "Keystore|*.keystore;*.jks";
if (ofd.ShowDialog() == DialogResult.OK)
main.keyStoreFileTxtBox.Text = ofd.FileName;
}
}
private void schemeComboBoxChanged(object sender, EventArgs e)
{
Settings.Default.Sign_Schemev1 = main.schemev1ComboBox.SelectedIndex;
Settings.Default.Sign_Schemev2 = main.schemev2ComboBox.SelectedIndex;
Settings.Default.Sign_Schemev3 = main.schemev3ComboBox.SelectedIndex;
Settings.Default.Sign_Schemev4 = main.schemev4ComboBox.SelectedIndex;
}
}
}
@@ -1,69 +0,0 @@
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Ookii.Dialogs.WinForms;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
class SmaliControlEventHandlers
{
private static FormMain main;
public SmaliControlEventHandlers(FormMain Main)
{
main = Main;
main.smaliBrowseOutputBtn.Click += smaliBrowseOutputBtn_Click;
main.smaliBrowseInputDirBtn.Click += smaliBrowseInputDirBtn_Click;
main.comSmaliBtn.Click += comSmaliBtn_Click;
}
internal void smaliBrowseOutputBtn_Click(object sender, EventArgs e)
{
VistaFolderBrowserDialog dlg = new VistaFolderBrowserDialog();
dlg.ShowNewFolderButton = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
main.smaliBrowseOutputTxtBox.Text = dlg.SelectedPath;
}
}
internal void smaliBrowseInputDirBtn_Click(object sender, EventArgs e)
{
VistaFolderBrowserDialog dlg = new VistaFolderBrowserDialog();
dlg.ShowNewFolderButton = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
main.smaliBrowseInputDirTxtBox.Text = dlg.SelectedPath;
}
}
internal void comSmaliBtn_Click(object sender, EventArgs e)
{
if (main.smaliUseOutputChkBox.Checked)
{
if (String.IsNullOrWhiteSpace(main.smaliBrowseOutputTxtBox.Text) || !Directory.Exists(main.smaliBrowseOutputTxtBox.Text))
{
main.ShowMessage(Language.ErrorSelectedOutputFolderNotExist, MessageBoxIcon.Warning);
return;
}
}
if (!Directory.Exists(main.smaliBrowseInputDirTxtBox.Text))
{
main.ShowMessage(Language.ErrorSelectedFileNotExist, MessageBoxIcon.Warning);
return;
}
main.Smali(Settings.Default.Smali_InputDir);
}
}
}
@@ -1,92 +0,0 @@
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Ookii.Dialogs.WinForms;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace APKToolGUI.Handlers
{
class ZipalignControlEventHandlers
{
private static FormMain main;
public ZipalignControlEventHandlers(FormMain Main)
{
main = Main;
CheckAlignSwitch = !Settings.Default.Zipalign_CheckOnly;
main.checkBox_ZIPALIGN_CheckAlignment.Click += checkBox_ZIPALIGN_CheckAlignment_CheckedChanged;
main.button_ZIPALIGN_BrowseOutputFile.Click += button_ZIPALIGN_BrowseOutputFile_Click;
main.button_ZIPALIGN_BrowseInputFile.Click += button_ZIPALIGN_BrowseInputFile_Click;
main.button_ZIPALIGN_Align.Click += button_ZIPALIGN_Align_Click;
}
internal bool CheckAlignSwitch
{
set
{
main.checkBox_ZIPALIGN_Recompress.Enabled = value;
main.checkBox_ZIPALIGN_OverwriteOutputFile.Enabled = value;
}
}
internal void checkBox_ZIPALIGN_CheckAlignment_CheckedChanged(object sender, EventArgs e)
{
CheckAlignSwitch = !main.checkBox_ZIPALIGN_CheckAlignment.Checked;
}
internal void button_ZIPALIGN_BrowseOutputFile_Click(object sender, EventArgs e)
{
VistaFolderBrowserDialog dlg = new VistaFolderBrowserDialog();
dlg.ShowNewFolderButton = true;
if (dlg.ShowDialog() == DialogResult.OK)
{
main.textBox_ZIPALIGN_OutputFile.Text = dlg.SelectedPath;
}
}
internal void button_ZIPALIGN_BrowseInputFile_Click(object sender, EventArgs e)
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
// ofd.Filter = "ZIP archives(*.apk;*.zip;*.jar)|*.apk;*.zip;*.jar";
ofd.Filter = Language.ZIPArchives + " (*.apk)|*.apk";
if (File.Exists(main.textBox_ZIPALIGN_InputFile.Text))
{
ofd.InitialDirectory = Path.GetDirectoryName(main.textBox_ZIPALIGN_InputFile.Text);
ofd.FileName = Path.GetFileName(main.textBox_ZIPALIGN_InputFile.Text);
}
if (ofd.ShowDialog() == DialogResult.OK)
{
main.textBox_ZIPALIGN_InputFile.Text = ofd.FileName;
main.GetApkInfo(ofd.FileName);
if (!main.checkBox_ZIPALIGN_CheckAlignment.Checked)
main.textBox_ZIPALIGN_OutputFile.Text = String.Format("{0}\\{1}_zipaligned{2}",
Path.GetDirectoryName(ofd.FileName),
Path.GetFileNameWithoutExtension(ofd.FileName),
Path.GetExtension(ofd.FileName));
}
}
}
internal async void button_ZIPALIGN_Align_Click(object sender, EventArgs e)
{
if (!File.Exists(main.textBox_ZIPALIGN_InputFile.Text))
{
main.ShowMessage(Language.ErrorSelectedFileNotExist, MessageBoxIcon.Warning);
return;
}
string inputFile = Settings.Default.Zipalign_InputFile;
await main.Align(inputFile);
}
}
}
+5 -4
View File
@@ -14,7 +14,7 @@ namespace Java
public JarProcess(string javaPath, string jarPath)
{
JavaPath = javaPath.Equals("java") ? "" : javaPath;
JavaPath = string.IsNullOrWhiteSpace(javaPath) ? "java" : javaPath;
JarPath = jarPath;
Initialize();
}
@@ -33,13 +33,14 @@ namespace Java
public new bool Start(string args)
{
EnableRaisingEvents = true;
string customArgs = null;
string customArgs = "";
if (Settings.Default.UseCustomJVMArgs)
customArgs = Settings.Default.CustomJVMArgs;
StartInfo.Arguments = String.Format("-jar {0} \"{1}\" {2}", customArgs, JarPath, args);
Debug.WriteLine(String.Format("-jar {0} \"{1}\" {2}", customArgs, JarPath, args));
string jvmArgs = string.IsNullOrWhiteSpace(customArgs) ? string.Empty : customArgs.Trim() + " ";
StartInfo.Arguments = String.Format("{0}-jar \"{1}\" {2}", jvmArgs, JarPath, args);
Debug.WriteLine(StartInfo.Arguments);
return base.Start();
}
+113 -9
View File
@@ -150,6 +150,15 @@ namespace APKToolGUI.Languages {
}
}
/// <summary>
/// Looks up a localized string similar to Can&apos;t detect APKEditor version.
/// </summary>
internal static string CantDetectApkeditorVersion {
get {
return ResourceManager.GetString("CantDetectApkeditorVersion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Can&apos;t detect apktool version..
/// </summary>
@@ -735,15 +744,6 @@ namespace APKToolGUI.Languages {
}
}
/// <summary>
/// Looks up a localized string similar to Extract original signature.
/// </summary>
internal static string ExtractOrigSignature {
get {
return ResourceManager.GetString("ExtractOrigSignature", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to File.
/// </summary>
@@ -1104,6 +1104,15 @@ namespace APKToolGUI.Languages {
}
}
/// <summary>
/// Looks up a localized string similar to .
/// </summary>
internal static string SetLanguageRestartApplication {
get {
return ResourceManager.GetString("SetLanguageRestartApplication", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settings.
/// </summary>
@@ -1185,6 +1194,15 @@ namespace APKToolGUI.Languages {
}
}
/// <summary>
/// Looks up a localized string similar to Split APK is not selected.
/// </summary>
internal static string SplitApkNotFound {
get {
return ResourceManager.GetString("SplitApkNotFound", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to System language.
/// </summary>
@@ -1319,5 +1337,91 @@ namespace APKToolGUI.Languages {
return ResourceManager.GetString("ZIPArchives", resourceCulture);
}
}
internal static string CopyAll {
get {
return ResourceManager.GetString("CopyAll", resourceCulture);
}
}
internal static string Loading {
get {
return ResourceManager.GetString("Loading", resourceCulture);
}
}
internal static string Ready {
get {
return ResourceManager.GetString("Ready", resourceCulture);
}
}
internal static string SaveImageTitle {
get {
return ResourceManager.GetString("SaveImageTitle", resourceCulture);
}
}
internal static string PngImage {
get {
return ResourceManager.GetString("PngImage", resourceCulture);
}
}
internal static string FilterAndroidPackage {
get { return ResourceManager.GetString("FilterAndroidPackage", resourceCulture); }
}
internal static string FilterSplitApk {
get { return ResourceManager.GetString("FilterSplitApk", resourceCulture); }
}
internal static string FilterApkJarZip {
get { return ResourceManager.GetString("FilterApkJarZip", resourceCulture); }
}
internal static string FilterKeystore {
get { return ResourceManager.GetString("FilterKeystore", resourceCulture); }
}
internal static string FilterPublicKey {
get { return ResourceManager.GetString("FilterPublicKey", resourceCulture); }
}
internal static string FilterPrivateKey {
get { return ResourceManager.GetString("FilterPrivateKey", resourceCulture); }
}
internal static string FilterApk {
get { return ResourceManager.GetString("FilterApk", resourceCulture); }
}
internal static string FilterDex {
get { return ResourceManager.GetString("FilterDex", resourceCulture); }
}
internal static string FilterJavaExe {
get { return ResourceManager.GetString("FilterJavaExe", resourceCulture); }
}
internal static string FilterApktool {
get { return ResourceManager.GetString("FilterApktool", resourceCulture); }
}
internal static string SchemeDefault {
get { return ResourceManager.GetString("SchemeDefault", resourceCulture); }
}
internal static string SchemeTrue {
get { return ResourceManager.GetString("SchemeTrue", resourceCulture); }
}
internal static string SchemeFalse {
get { return ResourceManager.GetString("SchemeFalse", resourceCulture); }
}
internal static string AaptDump {
get { return ResourceManager.GetString("AaptDump", resourceCulture); }
}
}
}
File diff suppressed because it is too large Load Diff
+3 -6
View File
@@ -429,9 +429,6 @@
<data name="ParsingApkInfo" xml:space="preserve">
<value>APK információk elemzése...</value>
</data>
<data name="SetLanguageRestartApplication" xml:space="preserve">
<value>A nyelv be van állítva. Újra akarja indítani az alkalmazást?</value>
</data>
<data name="DecompilingAllApkFiles" xml:space="preserve">
<value>Az összes APK fájl visszafejtése</value>
</data>
@@ -462,9 +459,6 @@
<data name="ErrorMerging" xml:space="preserve">
<value>Az ˘egyesítés nem sikerült</value>
</data>
<data name="ExtractOrigSignature" xml:space="preserve">
<value>Az eredeti aláírás kibontása</value>
</data>
<data name="MergingApkEditor" xml:space="preserve">
<value>APK egyesítése az APKEditor.jar használatával</value>
</data>
@@ -516,4 +510,7 @@
<data name="ClearFrameworkPrompt" xml:space="preserve">
<value>A váratlan hibák elkerülése érdekében az Apktool verziójának módosítása után törölni kell a framework gyorsítótárát. Szeretné most törölni?</value>
</data>
<data name="SetLanguageRestartApplication" xml:space="preserve">
<value>A nyelv be van állítva. Újra akarja indítani az alkalmazást?</value>
</data>
</root>
+546
View File
@@ -0,0 +1,546 @@
<?xml version="1.0" encoding="UTF-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="About" xml:space="preserve">
<value>バージョン情報</value>
</data>
<data name="APKToolVersion" xml:space="preserve">
<value>Apktool のバージョン</value>
</data>
<data name="CheckForUpdate" xml:space="preserve">
<value>更新を確認する</value>
</data>
<data name="DebugMode" xml:space="preserve">
<value>デバッグモード</value>
</data>
<data name="Exit" xml:space="preserve">
<value>終了</value>
</data>
<data name="File" xml:space="preserve">
<value>ファイル</value>
</data>
<data name="Help" xml:space="preserve">
<value>ヘルプ</value>
</data>
<data name="Settings" xml:space="preserve">
<value>設定</value>
</data>
<data name="ErrorJavaDetect" xml:space="preserve">
<value>Java がインストールされていないか、正しくインストールされていません。 Java をインストールするか、設定でカスタムの場所を設定してください。</value>
</data>
<data name="ErrorReadSettings" xml:space="preserve">
<value>設定の読み取りエラーです!</value>
</data>
<data name="UpdateNewVersion" xml:space="preserve">
<value>新しいバージョン利用可能です。 更新しますか?</value>
</data>
<data name="UpdateNoUpdates" xml:space="preserve">
<value>利用可能な更新はありません。</value>
</data>
<data name="WarningDecodingFolderNotSelected" xml:space="preserve">
<value>デコード先のフォルダーが未選択です!</value>
</data>
<data name="WarningFileForDecodingNotSelected" xml:space="preserve">
<value>デコードするファイルが未選択です!</value>
</data>
<data name="WarningFileForSigningNotSelected" xml:space="preserve">
<value>署名用のファイルが未選択です!</value>
</data>
<data name="WarningFrameworkNotSelected" xml:space="preserve">
<value>フレームワークが未選択です!</value>
</data>
<data name="ErrorSaveSettings" xml:space="preserve">
<value>設定の保存エラーです!</value>
</data>
<data name="NeedRestart" xml:space="preserve">
<value>設定を有効化するにはプログラムを再起動してください。 今すぐしますか?</value>
</data>
<data name="FileNotFound" xml:space="preserve">
<value>ファイルが見つかりません</value>
</data>
<data name="FolderNotExist" xml:space="preserve">
<value>フォルダーが存在しません</value>
</data>
<data name="Error" xml:space="preserve">
<value>エラー</value>
</data>
<data name="Build" xml:space="preserve">
<value>ビルド</value>
</data>
<data name="Decode" xml:space="preserve">
<value>デコード</value>
</data>
<data name="InstallFramework" xml:space="preserve">
<value>フレームワークをインストール</value>
</data>
<data name="Sign" xml:space="preserve">
<value>署名</value>
</data>
<data name="SystemLanguage" xml:space="preserve">
<value>システムの言語</value>
</data>
<data name="DoYouRealyWantToInstallCM" xml:space="preserve">
<value>コンテキストメニューをインストールしますか?</value>
</data>
<data name="DoYouRealyWantToRemoveCM" xml:space="preserve">
<value>コンテキストメニューを削除しますか?</value>
</data>
<data name="Done" xml:space="preserve">
<value>完了</value>
</data>
<data name="CantDetectApktoolVersion" xml:space="preserve">
<value>apktool のバージョンを検出できません。</value>
</data>
<data name="DecompilingSuccessfullyCompleted" xml:space="preserve">
<value>デコンパイルが正常に完了しました。 出力先のディレクトリ: {0}</value>
</data>
<data name="ErrorUpdateChecking" xml:space="preserve">
<value>更新の確認でエラーが発生しました:</value>
</data>
<data name="SignSuccessfullyCompleted" xml:space="preserve">
<value>署名は正常に完了しました。 ファイルの保存先: {0}</value>
</data>
<data name="Aligning" xml:space="preserve">
<value>最適化中</value>
</data>
<data name="ErrorCompiling" xml:space="preserve">
<value>コンパイルに失敗しました</value>
</data>
<data name="ErrorEnteringFrameworkTag" xml:space="preserve">
<value>フレームワークタグの入力エラーです。</value>
</data>
<data name="ErrorSelectedFileNotExist" xml:space="preserve">
<value>選択したファイルは存在しません。</value>
</data>
<data name="ErrorSelectingFrameworkDirectory" xml:space="preserve">
<value>フレームワークディレクトリの選択中にエラーが発生しました。</value>
</data>
<data name="ErrorSelectingFrameworkFile" xml:space="preserve">
<value>フレームワークファイルの選択中にエラーが発生しました。 ファイルが存在しません。</value>
</data>
<data name="ErrorSigning" xml:space="preserve">
<value>署名に失敗しました。</value>
</data>
<data name="FrameworkInstallationNotStarted" xml:space="preserve">
<value>エラーが発生しました。 フレームワークのインストールが開始されていません。</value>
</data>
<data name="InstallingFramework" xml:space="preserve">
<value>フレームワークをインストール</value>
</data>
<data name="Signing" xml:space="preserve">
<value>署名</value>
</data>
<data name="SignInputFileNotFound" xml:space="preserve">
<value>入力先のファイルがありません。</value>
</data>
<data name="SignPrivateKeyNotFound" xml:space="preserve">
<value>秘密鍵がありません。</value>
</data>
<data name="SignPublicKeyNotFound" xml:space="preserve">
<value>公開鍵がありません。</value>
</data>
<data name="ZIPArchives" xml:space="preserve">
<value>ZIP アーカイブ</value>
</data>
<data name="DecodeCouldNotCreate" xml:space="preserve">
<value>無効な文字が含まれているため、選択したデコンパイルディレクトリを作成できませんでした。</value>
</data>
<data name="DecodeDirNotSelected" xml:space="preserve">
<value>デコンパイルディレクトリが未選択です。</value>
</data>
<data name="DecodeSelectedFrameworkNotExist" xml:space="preserve">
<value>選択したフレームワークディレクトリが存在しません。</value>
</data>
<data name="Decoding" xml:space="preserve">
<value>デコード中</value>
</data>
<data name="ErrorDecompiling" xml:space="preserve">
<value>デコンパイルに失敗しました</value>
</data>
<data name="ExecutableFile" xml:space="preserve">
<value>実行可能なファイル</value>
</data>
<data name="ChangedTargetSdkTo29" xml:space="preserve">
<value>ターゲット SDK を 29 に変更する</value>
</data>
<data name="ErrorVersionParsing" xml:space="preserve">
<value>バージョンの解析に失敗しました</value>
</data>
<data name="FixAndroidManifest" xml:space="preserve">
<value>AndroidManifest.xml を修正しました</value>
</data>
<data name="RemoveApkToolDummies" xml:space="preserve">
<value>すべての ApkTook ダミーを削除しました</value>
</data>
<data name="APKSelected" xml:space="preserve">
<value>選択した APK:</value>
</data>
<data name="ErrorSelectedFolderNotExist" xml:space="preserve">
<value>選択したフォルダーは存在しません。</value>
</data>
<data name="AndroidManifestNotExist" xml:space="preserve">
<value>AndroidManifest.xml が存在しません</value>
</data>
<data name="DecompiledAPKNotExist" xml:space="preserve">
<value>デコンパイルされた APK ディレクトリが存在しません</value>
</data>
<data name="MainActivityFound" xml:space="preserve">
<value>「{0}」でメインアクティビティが見つかりました</value>
</data>
<data name="MainActivityNotFoundPleaseFindManually" xml:space="preserve">
<value>メインアクティビティが見つかりませんでした。 手動で検索してください</value>
</data>
<data name="ClearingFramework" xml:space="preserve">
<value>フレームワークを消去</value>
</data>
<data name="CompilingSuccessfullyCompleted" xml:space="preserve">
<value>コンパイルが正常に完了しました。 出力先ディレクトリ: {0}</value>
</data>
<data name="ErrorZipalign" xml:space="preserve">
<value>Zipaligning に失敗しました</value>
</data>
<data name="ZipalignFileSavedTo" xml:space="preserve">
<value>Zipalign が正常に完了しました。 ファイルは「{0}」に保存されました</value>
</data>
<data name="ErrorClearingFw" xml:space="preserve">
<value>フレームワークの消去でエラーが発生しました</value>
</data>
<data name="FrameworkCacheCleared" xml:space="preserve">
<value>フレームワークキャッシュを消去しました</value>
</data>
<data name="AllDone" xml:space="preserve">
<value>すべて完了しました!</value>
</data>
<data name="FrameworkInstalled" xml:space="preserve">
<value>フレームワークが正常にインストールされました</value>
</data>
<data name="FrameworkDirNotExist" xml:space="preserve">
<value>フレームワークディレクトリが存在しません</value>
</data>
<data name="DecompilingDex" xml:space="preserve">
<value>DEX をデコンパイル中</value>
</data>
<data name="ErrorSelectedOutputFolderNotExist" xml:space="preserve">
<value>選択した出力先フォルダーが存在しません。</value>
</data>
<data name="CompilingDex" xml:space="preserve">
<value>DEX をコンパイル中</value>
</data>
<data name="DragDropNotSupported" xml:space="preserve">
<value>管理者として実行中です。 ドラッグ &amp; ドロップはサポートされていない可能性があります</value>
</data>
<data name="DragDropSupported" xml:space="preserve">
<value>ドラッグ &amp; ドロップはサポートされています</value>
</data>
<data name="ErrorNotAnApk" xml:space="preserve">
<value>このディレクトリは Android パッケージではありません</value>
</data>
<data name="Baksmali" xml:space="preserve">
<value>Baksmali</value>
</data>
<data name="Smali" xml:space="preserve">
<value>Smali</value>
</data>
<data name="Zipalign" xml:space="preserve">
<value>Zipalign</value>
</data>
<data name="CompileApk" xml:space="preserve">
<value>APK をコンパイル</value>
</data>
<data name="CompileDex" xml:space="preserve">
<value>DEX を組み立て</value>
</data>
<data name="DecompileApk" xml:space="preserve">
<value>APK をデコンパイル</value>
</data>
<data name="DecompileDex" xml:space="preserve">
<value>DEX を分解</value>
</data>
<data name="GetApkInfo" xml:space="preserve">
<value>APK 情報を表示</value>
</data>
<data name="NotDecompiledApk" xml:space="preserve">
<value>このフォルダーはデコンパイルされた APK ではありません</value>
</data>
<data name="NotDecompiledDex" xml:space="preserve">
<value>このフォルダーはデコンパイルされた DEX ではありません</value>
</data>
<data name="RequiredFilesMissing" xml:space="preserve">
<value>必要なファイルが見つかりません</value>
</data>
<data name="SignApk" xml:space="preserve">
<value>APK を署名</value>
</data>
<data name="TextFile" xml:space="preserve">
<value>テキストファイル</value>
</data>
<data name="ZipalignApk" xml:space="preserve">
<value>APK を最適化</value>
</data>
<data name="CreateUnsignedApk" xml:space="preserve">
<value>未署名の APK を作成</value>
</data>
<data name="MetainfNotExist" xml:space="preserve">
<value>META-INF フォルダーがありません。 スキップしました</value>
</data>
<data name="ErrorGettingApkInfo" xml:space="preserve">
<value>アプリ情報の取得中にエラーが発生しました</value>
</data>
<data name="InputDirectory" xml:space="preserve">
<value>入力先のディレクトリ: {0}</value>
</data>
<data name="InputFile" xml:space="preserve">
<value>入力ファイル: {0}</value>
</data>
<data name="DeleteFile" xml:space="preserve">
<value>「{0}」のファイルを削除</value>
</data>
<data name="CopyFileToTemp" xml:space="preserve">
<value>「{0}」のファイルを一時ディレクトリ「{1}」にコピーします</value>
</data>
<data name="CopyFolderToTemp" xml:space="preserve">
<value>デコンパイルされた apk フォルダー「{0}」を一時ディレクトリの「{1}」コピーします</value>
</data>
<data name="DecodeDesDirExists" xml:space="preserve">
<value>宛先のディレクトリ「{0}」は既に存在します。 上書きする場合は「宛先のディレクトリを強制的に削除」を有効化してください。</value>
</data>
<data name="MoveTempApkFileToOutput" xml:space="preserve">
<value>一時フォルダー「{0}」を出力先ディレクトリ「{1}」に移動します</value>
</data>
<data name="MoveTempApkToOutput" xml:space="preserve">
<value>一時 APK「{0}」を出力先ディレクトリ「{1}」に移動します</value>
</data>
<data name="ParsingApkInfo" xml:space="preserve">
<value>APK 情報を解析中です...</value>
</data>
<data name="RestartApplicationPrompt" xml:space="preserve">
<value>変更を適用するには再起動が必要です。 アプリを再起動しますか?</value>
</data>
<data name="DecompilingAllApkFiles" xml:space="preserve">
<value>すべての APK ファイルをデコンパイル中</value>
</data>
<data name="DetectedAsBase" xml:space="preserve">
<value>{0} がベースとして検出されました</value>
</data>
<data name="DetectedAsSplit" xml:space="preserve">
<value>{0} が分割として検出されました</value>
</data>
<data name="ExtractingAllApkFiles" xml:space="preserve">
<value>すべての APK ファイルを展開中</value>
</data>
<data name="MergeFinishedMoveDir" xml:space="preserve">
<value>統合が完了しました。 ディレクトリを「{0}」に移動中です</value>
</data>
<data name="MergingApk" xml:space="preserve">
<value>APK を統合中</value>
</data>
<data name="MovingBasedirectory" xml:space="preserve">
<value>ベースディレクトリを「{0}」に移動中です</value>
</data>
<data name="DirNotExist" xml:space="preserve">
<value>ディレクトリ「{0}」は存在しません</value>
</data>
<data name="TempDirectory" xml:space="preserve">
<value>一時ディレクトリ: {0}</value>
</data>
<data name="ErrorMerging" xml:space="preserve">
<value>統合に失敗しました</value>
</data>
<data name="MergingApkEditor" xml:space="preserve">
<value>APKEditor.jar を使用して APK を統合する</value>
</data>
<data name="Aborted" xml:space="preserve">
<value>中断しました</value>
</data>
<data name="CancelProcess" xml:space="preserve">
<value>プロセスをキャンセルしますか?</value>
</data>
<data name="GettingDevices" xml:space="preserve">
<value>デバイスを取得中です...</value>
</data>
<data name="PleaseWait" xml:space="preserve">
<value>お待ちください...</value>
</data>
<data name="ConfirmKillingAdbServer" xml:space="preserve">
<value>ADB サーバーを強制終了しますか? デバイスを再接続するか、エミュレーターを再起動する必要があるかもしれません</value>
</data>
<data name="DeviceNotSelected" xml:space="preserve">
<value>デバイスが未選択です</value>
</data>
<data name="DeviceSelected" xml:space="preserve">
<value>選択されたデバイス: {0}</value>
</data>
<data name="DevicesFound" xml:space="preserve">
<value>{0} 件のデバイスを検出</value>
</data>
<data name="InstallApkFailed" xml:space="preserve">
<value>APK のインストールに失敗しました</value>
</data>
<data name="InstallApkSuccessful" xml:space="preserve">
<value>APK のインストールに成功しました</value>
</data>
<data name="InstallingApk" xml:space="preserve">
<value>APK をインストール中</value>
</data>
<data name="InstallingApkPath" xml:space="preserve">
<value>APK「{0}」をインストール中です</value>
</data>
<data name="NoDevicesFound" xml:space="preserve">
<value>デバイスはありません。 adb デバイスが ON になっている状態でデバイスがコンピューターに接続されていることを確認してください。 エミュレーターを使用する場合は、再起動して起動まで待機します</value>
</data>
<data name="TimeEnded" xml:space="preserve">
<value>終了時間: {0}</value>
</data>
<data name="TimeStarted" xml:space="preserve">
<value>開始時間: {0}</value>
</data>
<data name="ClearFrameworkPrompt" xml:space="preserve">
<value>予期しないエラーを回避するには、Apktook のバージョンを変更後にフレームワークキャッシュを消去する必要があります。 今すぐに消去しますか?</value>
</data>
<data name="ClearTempFolder" xml:space="preserve">
<value>一時フォルダーを削除中</value>
</data>
<data name="DeletingFolder" xml:space="preserve">
<value>削除するフォルダー: {0}</value>
</data>
<data name="DirectoryNotExist" xml:space="preserve">
<value>ディレクトリ「{0}」は存在しません</value>
</data>
<data name="OpenComFolder" xml:space="preserve">
<value>コンパイル出力先フォルダーを開く</value>
</data>
<data name="OpenDecFolder" xml:space="preserve">
<value>デコンパイル出力先フォルダーを開く</value>
</data>
<data name="FixApktoolYml" xml:space="preserve">
<value>apktool.yml を修正しました</value>
</data>
<data name="CopyFileTo" xml:space="preserve">
<value>「{0}」のファイルを「{1}」にコピー</value>
</data>
<data name="SplitApkNotFound" xml:space="preserve">
<value>分割 APK は未選択です</value>
</data>
<data name="CantDetectApkeditorVersion" xml:space="preserve">
<value> APKEditor バージョンの検出ができません</value>
</data>
<data name="SetLanguageRestartApplication" xml:space="preserve">
<value />
</data>
</root>
+667 -4
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -462,9 +462,6 @@
<data name="ErrorMerging" xml:space="preserve">
<value>Merging failed</value>
</data>
<data name="ExtractOrigSignature" xml:space="preserve">
<value>Extract original signature</value>
</data>
<data name="MergingApkEditor" xml:space="preserve">
<value>Merging APK using APKEditor.jar</value>
</data>
@@ -537,4 +534,670 @@
<data name="CopyFileTo" xml:space="preserve">
<value>Copy file "{0}" to "{1}"</value>
</data>
<data name="SplitApkNotFound" xml:space="preserve">
<value>Split APK is not selected</value>
</data>
<data name="CantDetectApkeditorVersion" xml:space="preserve">
<value>Can't detect APKEditor version</value>
</data>
<data name="SetLanguageRestartApplication" xml:space="preserve">
<value />
</data>
<data name="AboutVersion" xml:space="preserve">
<value>Version</value>
</data>
<data name="AboutCopyright" xml:space="preserve">
<value>Copyright</value>
</data>
<data name="AboutGithubRepo" xml:space="preserve">
<value>Github Repo</value>
</data>
<data name="AboutOK" xml:space="preserve">
<value>OK</value>
</data>
<data name="SettingsGeneral" xml:space="preserve">
<value>General</value>
</data>
<data name="SettingsLanguage" xml:space="preserve">
<value>Language</value>
</data>
<data name="SettingsContextMenu" xml:space="preserve">
<value>Context menu</value>
</data>
<data name="SettingsTheme" xml:space="preserve">
<value>Theme</value>
</data>
<data name="SettingsTempNote" xml:space="preserve">
<value>The process will be slower since files will be moved to temp folder </value>
</data>
<data name="SettingsAdminRights" xml:space="preserve">
<value>Administrator rights required</value>
</data>
<data name="SettingsClearLog" xml:space="preserve">
<value>Clear log before action</value>
</data>
<data name="SettingsPlaySound" xml:space="preserve">
<value>Play sound when done</value>
</data>
<data name="SettingsCustomTemp" xml:space="preserve">
<value>Custom temp location</value>
</data>
<data name="SettingsCustomJava" xml:space="preserve">
<value>Custom Java location</value>
</data>
<data name="SettingsUtf8" xml:space="preserve">
<value>UTF-8 filename support</value>
</data>
<data name="SettingsCustomJvmArgs" xml:space="preserve">
<value>Custom JVM arguments</value>
</data>
<data name="SettingsCheckUpdate" xml:space="preserve">
<value>Check for updates at startup</value>
</data>
<data name="SettingsCustomApktool" xml:space="preserve">
<value>Custom apktool location</value>
</data>
<data name="SettingsIgnoreOutputCM" xml:space="preserve">
<value>Ignore custom output directory for context menu</value>
</data>
<data name="SettingsInstall" xml:space="preserve">
<value>Install</value>
</data>
<data name="SettingsUninstall" xml:space="preserve">
<value>Uninstall</value>
</data>
<data name="SettingsCancel" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="ThemeAuto" xml:space="preserve">
<value>Auto</value>
</data>
<data name="ThemeLight" xml:space="preserve">
<value>Light</value>
</data>
<data name="ThemeDark" xml:space="preserve">
<value>Dark</value>
</data>
<data name="splitApkTxt.Text" xml:space="preserve">
<value>Merge split APK into single APK:</value>
</data>
<data name="selSplitApkBtn.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="mergeApkBtn.Text" xml:space="preserve">
<value>Merge</value>
</data>
<data name="comApkOpenDir.Text" xml:space="preserve">
<value>Compiled APK location</value>
</data>
<data name="decOutOpenDirBtn.Text" xml:space="preserve">
<value>Decompile output location</value>
</data>
<data name="signApkOpenDirBtn.Text" xml:space="preserve">
<value>Sign APK location</value>
</data>
<data name="alignApkOpenDirBtn.Text" xml:space="preserve">
<value>Zipalign APK location</value>
</data>
<data name="decApkOpenDirBtn.Text" xml:space="preserve">
<value>Decompiled APK location</value>
</data>
<data name="compileOutputOpenDirBtn.Text" xml:space="preserve">
<value>Compile output location</value>
</data>
<data name="button_OpenMainActivity.Text" xml:space="preserve">
<value>Main activity smali</value>
</data>
<data name="openApktoolYmlBtn.Text" xml:space="preserve">
<value>Apktool.yml</value>
</data>
<data name="openAndroidMainfestBtn.Text" xml:space="preserve">
<value>AndroidManifest.xml</value>
</data>
<data name="label4.Text" xml:space="preserve">
<value>APK File to sign:</value>
</data>
<data name="button_SIGN_BrowseInputFile.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="button_SIGN_Sign.Text" xml:space="preserve">
<value>Sign</value>
</data>
<data name="label3.Text" xml:space="preserve">
<value>APK file to align:</value>
</data>
<data name="button_ZIPALIGN_Align.Text" xml:space="preserve">
<value>Align</value>
</data>
<data name="button_ZIPALIGN_BrowseInputFile.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="label2.Text" xml:space="preserve">
<value>Decompiled APK folder:</value>
</data>
<data name="button_BUILD_BrowseInputProjectDir.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="button_BUILD_Build.Text" xml:space="preserve">
<value>Compile</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>APK/XAPK/APKS/ZIP/APKM File:</value>
</data>
<data name="button_DECODE_Decode.Text" xml:space="preserve">
<value>Decompile</value>
</data>
<data name="button_DECODE_BrowseInputAppPath.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="tabPageMain.Text" xml:space="preserve">
<value>Main</value>
</data>
<data name="sigTxtBox.Text" xml:space="preserve">
<value></value>
</data>
<data name="label5.Text" xml:space="preserve">
<value>Signature:</value>
</data>
<data name="label31.Text" xml:space="preserve">
<value>Launch activity:</value>
</data>
<data name="label30.Text" xml:space="preserve">
<value>Architectures:</value>
</data>
<data name="apkMirrorLinkBtn.Text" xml:space="preserve">
<value>Apk Mirror</value>
</data>
<data name="apkSupportLinkBtn.Text" xml:space="preserve">
<value>Apk.support</value>
</data>
<data name="apkGkLinkBtn.Text" xml:space="preserve">
<value>ApkGk</value>
</data>
<data name="label17.Text" xml:space="preserve">
<value>File:</value>
</data>
<data name="localsTxtBox.Text" xml:space="preserve">
<value></value>
</data>
<data name="selApkFileInfoBtn.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="label18.Text" xml:space="preserve">
<value>Locals: </value>
</data>
<data name="permTxtBox.Text" xml:space="preserve">
<value></value>
</data>
<data name="apkComboLinkBtn.Text" xml:space="preserve">
<value>ApkCombo</value>
</data>
<data name="label15.Text" xml:space="preserve">
<value>Permissions: </value>
</data>
<data name="label14.Text" xml:space="preserve">
<value>Densities: </value>
</data>
<data name="apkPureLinkBtn.Text" xml:space="preserve">
<value>ApkPure</value>
</data>
<data name="psLinkBtn.Text" xml:space="preserve">
<value>Play Store</value>
</data>
<data name="label19.Text" xml:space="preserve">
<value>Links:</value>
</data>
<data name="label7.Text" xml:space="preserve">
<value>App name:</value>
</data>
<data name="label9.Text" xml:space="preserve">
<value>Package name:</value>
</data>
<data name="label8.Text" xml:space="preserve">
<value>Version:</value>
</data>
<data name="label11.Text" xml:space="preserve">
<value>Min. SDK</value>
</data>
<data name="label10.Text" xml:space="preserve">
<value>Build:</value>
</data>
<data name="label13.Text" xml:space="preserve">
<value>Screen sizes: </value>
</data>
<data name="label12.Text" xml:space="preserve">
<value>Target SDK:</value>
</data>
<data name="basicInfoTabPage.Text" xml:space="preserve">
<value>Basic info</value>
</data>
<data name="fullInfoTextBox.Text" xml:space="preserve">
<value></value>
</data>
<data name="tabPageApkInfo.Text" xml:space="preserve">
<value>APK Info</value>
</data>
<data name="checkBox3.Text" xml:space="preserve">
<value>Set the number of threads to use.</value>
</data>
<data name="checkBox7.Text" xml:space="preserve">
<value>Don't parse APK info when selecting APK for decompiling</value>
</data>
<data name="decSetApiLvlChkBox.Text" xml:space="preserve">
<value>Set API level of the file to generate, e.g. 14 for ICS.</value>
</data>
<data name="checkBox_DECODE_FixError.Text" xml:space="preserve">
<value>Fix ApkTool errors after decompile</value>
</data>
<data name="checkBox_DECODE_OnlyMainClasses.Text" xml:space="preserve">
<value>Only disassemble the main dex classes (classes[0-9]*.dex) in the root. (&lt;2.12.1)</value>
</data>
<data name="button_DECODE_BrowseOutputDirectory.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="checkBox_DECODE_UseFramework.Text" xml:space="preserve">
<value>Uses framework files located in:</value>
</data>
<data name="button_DECODE_BrowseFrameDir.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="checkBox_DECODE_MatchOriginal.Text" xml:space="preserve">
<value>Keeps files to closest to original as possible. Prevents rebuild.</value>
</data>
<data name="checkBox_DECODE_OutputDirectory.Text" xml:space="preserve">
<value>Output directory:</value>
</data>
<data name="checkBox_DECODE_KeepBrokenRes.Text" xml:space="preserve">
<value>Keep broken resource.</value>
</data>
<data name="checkBox_DECODE_NoSrc.Text" xml:space="preserve">
<value>Do not decode sources.</value>
</data>
<data name="checkBox_DECODE_Force.Text" xml:space="preserve">
<value>Force delete destination directory.</value>
</data>
<data name="checkBox_DECODE_NoRes.Text" xml:space="preserve">
<value>Do not decode resources.</value>
</data>
<data name="checkBox_DECODE_NoDebugInfo.Text" xml:space="preserve">
<value>Don't write out debug info (.local, .param, .line, etc.)</value>
</data>
<data name="groupBox_DECODE_Options.Text" xml:space="preserve">
<value>Options</value>
</data>
<data name="tabPageDecode.Text" xml:space="preserve">
<value>Decode</value>
</data>
<data name="checkBox4.Text" xml:space="preserve">
<value>Set the number of threads to use.</value>
</data>
<data name="checkBox_BUILD_NetSecConf.Text" xml:space="preserve">
<value>Add a generic Network Security Configuration file in the output APK</value>
</data>
<data name="useAapt2ChkBox.Text" xml:space="preserve">
<value>Use aapt2 (Upgrades apktool to use experimental aapt2 binary.) (&lt; 2.11.1)</value>
</data>
<data name="buildSetApiLvlChkBox.Text" xml:space="preserve">
<value>Set API level of the file to generate, e.g. 14 for ICS.</value>
</data>
<data name="createUnsignApkChkBox.Text" xml:space="preserve">
<value>Create unsigned APK with original signature after build</value>
</data>
<data name="signAfterBuildChkBox.Text" xml:space="preserve">
<value>Sign after build / zipalign</value>
</data>
<data name="zipalignAfterBuildChkBox.Text" xml:space="preserve">
<value>Zipalign after build</value>
</data>
<data name="checkBox_BUILD_NoCrunch.Text" xml:space="preserve">
<value>Disable crunching of resource files during the build step.</value>
</data>
<data name="button_BUILD_BrowseOutputAppPath.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="checkBox_BUILD_ForceAll.Text" xml:space="preserve">
<value>Skip changes detection and build all files.</value>
</data>
<data name="button_BUILD_BrowseFrameDir.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="button_BUILD_BrowseAaptPath.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="checkBox_BUILD_OutputAppPath.Text" xml:space="preserve">
<value>APK output directory:</value>
</data>
<data name="checkBox_BUILD_CopyOriginal.Text" xml:space="preserve">
<value>Copy original AndroidManifest.xml and META-INF folder</value>
</data>
<data name="checkBox_BUILD_UseAapt.Text" xml:space="preserve">
<value>Uses aapt.exe located in:</value>
</data>
<data name="checkBox_BUILD_UseFramework.Text" xml:space="preserve">
<value>Uses framework files located in:</value>
</data>
<data name="groupBox_BUILD_Options.Text" xml:space="preserve">
<value>Options</value>
</data>
<data name="tabPageBuild.Text" xml:space="preserve">
<value>Build</value>
</data>
<data name="label23.Text" xml:space="preserve">
<value>Private key password:</value>
</data>
<data name="checkBox2.Text" xml:space="preserve">
<value>Install APK after signing (Make sure the device is selected in ADB tab first)</value>
</data>
<data name="checkBox1.Text" xml:space="preserve">
<value>Overwrite input file</value>
</data>
<data name="autoDelIdsigChkBox.Text" xml:space="preserve">
<value>Auto delete idsig file</value>
</data>
<data name="label27.Text" xml:space="preserve">
<value>Scheme v4:</value>
</data>
<data name="label26.Text" xml:space="preserve">
<value>Scheme v3:</value>
</data>
<data name="label25.Text" xml:space="preserve">
<value>Scheme v2:</value>
</data>
<data name="label24.Text" xml:space="preserve">
<value>Scheme v1:</value>
</data>
<data name="selectKeyStoreFileBtn.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="useAliasChkBox.Text" xml:space="preserve">
<value>Alias:</value>
</data>
<data name="label22.Text" xml:space="preserve">
<value>It is strongly recommended that you use your own key, created via Android Studio or other tools</value>
</data>
<data name="label21.Text" xml:space="preserve">
<value>Password:</value>
</data>
<data name="label20.Text" xml:space="preserve">
<value>keystore/jks file:</value>
</data>
<data name="useKeyStoreChkBox.Text" xml:space="preserve">
<value>Use keystore</value>
</data>
<data name="useSigningOutputDir.Text" xml:space="preserve">
<value>APK output directory:</value>
</data>
<data name="label_SIGN_PrivateKey.Text" xml:space="preserve">
<value>Private key:</value>
</data>
<data name="label_SIGN_PublicKey.Text" xml:space="preserve">
<value>Public key:</value>
</data>
<data name="button_SIGN_BrowseOutputFile.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="button_SIGN_BrowsePublicKey.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="button_SIGN_BrowsePrivateKey.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="groupBox_SIGN_Options.Text" xml:space="preserve">
<value>Options</value>
</data>
<data name="tabPageSign.Text" xml:space="preserve">
<value>Sign</value>
</data>
<data name="zipalignOutputDirChkBox.Text" xml:space="preserve">
<value>APK output directory:</value>
</data>
<data name="signAfterZipalignChkBox.Text" xml:space="preserve">
<value>Sign after zipalign</value>
</data>
<data name="checkBox_ZIPALIGN_Recompress.Text" xml:space="preserve">
<value>Recompress using Zopfli</value>
</data>
<data name="label_ZIPALIGN_AlignmentBytes.Text" xml:space="preserve">
<value>Alignment in bytes, e.g. '4' provides 32-bit alignment</value>
</data>
<data name="button_ZIPALIGN_BrowseOutputFile.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="checkBox_ZIPALIGN_CheckAlignment.Text" xml:space="preserve">
<value>Check alignment only (does not modify file)</value>
</data>
<data name="checkBox_ZIPALIGN_VerboseOutput.Text" xml:space="preserve">
<value>Verbose output</value>
</data>
<data name="checkBox_ZIPALIGN_OverwriteOutputFile.Text" xml:space="preserve">
<value>Overwrite existing output file</value>
</data>
<data name="groupBox_ZIPALIGN_Options.Text" xml:space="preserve">
<value>Options</value>
</data>
<data name="tabPageZipAlign.Text" xml:space="preserve">
<value>Zip align</value>
</data>
<data name="openFwFolderBtn.Text" xml:space="preserve">
<value>Open framework folder</value>
</data>
<data name="clearFwBtn.Text" xml:space="preserve">
<value>Clear framework</value>
</data>
<data name="clearFwBeforeDecodeChkBox.Text" xml:space="preserve">
<value>Clear framework before decompiling</value>
</data>
<data name="groupBox1.Text" xml:space="preserve">
<value>Options</value>
</data>
<data name="checkBox_IF_Tag.Text" xml:space="preserve">
<value>Tag frameworks using:</value>
</data>
<data name="checkBox_IF_FramePath.Text" xml:space="preserve">
<value>Stores framework files into:</value>
</data>
<data name="button_IF_InstallFramework.Text" xml:space="preserve">
<value>Install</value>
</data>
<data name="button_IF_BrowseFrameDir.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="button_IF_BrowseInputFramePath.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="groupBox_IF_Options.Text" xml:space="preserve">
<value>Install Framework</value>
</data>
<data name="tabPageInstallFramework.Text" xml:space="preserve">
<value>Framework</value>
</data>
<data name="label29.Text" xml:space="preserve">
<value>Smali folder to compile:</value>
</data>
<data name="smaliUseOutputChkBox.Text" xml:space="preserve">
<value>Dex output directory:</value>
</data>
<data name="comSmaliBtn.Text" xml:space="preserve">
<value>Compile</value>
</data>
<data name="smaliBrowseOutputBtn.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="smaliBrowseInputDirBtn.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="smaliGroupBox.Text" xml:space="preserve">
<value>Smali</value>
</data>
<data name="label28.Text" xml:space="preserve">
<value>Dex to decompile:</value>
</data>
<data name="baksmaliUseOutputChkBox.Text" xml:space="preserve">
<value>Folder output directory:</value>
</data>
<data name="baksmaliBrowseOutputBtn.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="decSmaliBtn.Text" xml:space="preserve">
<value>Decompile</value>
</data>
<data name="baksmaliBrowseInputDexBtn.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="bakSmaliGroupBox.Text" xml:space="preserve">
<value>Baksmali</value>
</data>
<data name="tabPageBaksmali.Text" xml:space="preserve">
<value>Baksmali</value>
</data>
<data name="label33.Text" xml:space="preserve">
<value>Selected device: </value>
</data>
<data name="killAdbBtn.Text" xml:space="preserve">
<value>Kill adb process</value>
</data>
<data name="installApkBtn.Text" xml:space="preserve">
<value>Install APK</value>
</data>
<data name="refreshDevicesBtn.Text" xml:space="preserve">
<value>Refresh</value>
</data>
<data name="selApkAdbBtn.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="overrideAbiCheckBox.Text" xml:space="preserve">
<value>Override platform's default ABI: </value>
</data>
<data name="setVendorChkBox.Text" xml:space="preserve">
<value>Set vendor to Play Store (com.android.vending)</value>
</data>
<data name="label32.Text" xml:space="preserve">
<value>Selected APK: </value>
</data>
<data name="tabPageAdb.Text" xml:space="preserve">
<value>ADB</value>
</data>
<data name="toolStripStatusLabelStateImage.Text" xml:space="preserve">
<value>toolStripStatusLabel1</value>
</data>
<data name="toolStripStatusLabelStateText.Text" xml:space="preserve">
<value>Loading...</value>
</data>
<data name="statusStrip1.Text" xml:space="preserve">
<value>statusStrip1</value>
</data>
<data name="copyToolStripMenuItem.Text" xml:space="preserve">
<value>Copy</value>
</data>
<data name="clearLogToolStripMenuItem.Text" xml:space="preserve">
<value>Clear log</value>
</data>
<data name="logTxtBox.Text" xml:space="preserve">
<value></value>
</data>
<data name="newInsToolStripMenuItem.Text" xml:space="preserve">
<value>New instance</value>
</data>
<data name="saveLogToFileToolStripMenuItem.Text" xml:space="preserve">
<value>Save log to file</value>
</data>
<data name="openTempFolderToolStripMenuItem.Text" xml:space="preserve">
<value>Open temp folder</value>
</data>
<data name="clearTempFolderToolStripMenuItem.Text" xml:space="preserve">
<value>Clear temp folder</value>
</data>
<data name="exitToolStripMenuItem.Text" xml:space="preserve">
<value>Exit</value>
</data>
<data name="fileToolStripMenuItem.Text" xml:space="preserve">
<value>File</value>
</data>
<data name="useAPKEditorForDecompilingItem.Text" xml:space="preserve">
<value>Use APKEditor for decompiling</value>
</data>
<data name="settingsToolStripMenuItem.Text" xml:space="preserve">
<value>Open settings...</value>
</data>
<data name="settingsToolStripMenuItem1.Text" xml:space="preserve">
<value>Settings</value>
</data>
<data name="checkForUpdateToolStripMenuItem.Text" xml:space="preserve">
<value>Check for update</value>
</data>
<data name="reportAnIsuueToolStripMenuItem.Text" xml:space="preserve">
<value>Report an issue</value>
</data>
<data name="apktoolIssuesToolStripMenuItem.Text" xml:space="preserve">
<value>Apktool issue tracker</value>
</data>
<data name="baksmaliIssuesToolStripMenuItem.Text" xml:space="preserve">
<value>Baksmali issue tracker</value>
</data>
<data name="aboutToolStripMenuItem.Text" xml:space="preserve">
<value>About</value>
</data>
<data name="helpToolStripMenuItem.Text" xml:space="preserve">
<value>Help</value>
</data>
<data name="menuStrip1.Text" xml:space="preserve">
<value>menuStrip1</value>
</data>
<data name="CopyAll" xml:space="preserve">
<value>Copy all</value>
</data>
<data name="Loading" xml:space="preserve">
<value>Loading...</value>
</data>
<data name="Ready" xml:space="preserve">
<value>Ready</value>
</data>
<data name="SaveImageTitle" xml:space="preserve">
<value>Save an Image File</value>
</data>
<data name="PngImage" xml:space="preserve">
<value>PNG Image</value>
</data>
<data name="FilterAndroidPackage" xml:space="preserve">
<value>Android Package ({0})|{0}</value>
</data>
<data name="FilterSplitApk" xml:space="preserve">
<value>Split APK Package ({0})|{0}</value>
</data>
<data name="FilterApkJarZip" xml:space="preserve">
<value>APK / JAR / ZIP ({0})|{0}</value>
</data>
<data name="FilterKeystore" xml:space="preserve">
<value>Keystore ({0})|{0}</value>
</data>
<data name="FilterPublicKey" xml:space="preserve">
<value>Public key ({0})|{0}</value>
</data>
<data name="FilterPrivateKey" xml:space="preserve">
<value>Private key ({0})|{0}</value>
</data>
<data name="FilterApk" xml:space="preserve">
<value>APK ({0})|{0}</value>
</data>
<data name="FilterDex" xml:space="preserve">
<value>Dex ({0})|{0}</value>
</data>
<data name="FilterJavaExe" xml:space="preserve">
<value>Java ({0})|{0}</value>
</data>
<data name="FilterApktool" xml:space="preserve">
<value>Apktool ({0})|{0}</value>
</data>
<data name="SchemeDefault" xml:space="preserve">
<value>Default</value>
</data>
<data name="SchemeTrue" xml:space="preserve">
<value>True</value>
</data>
<data name="SchemeFalse" xml:space="preserve">
<value>False</value>
</data>
<data name="AaptDump" xml:space="preserve">
<value>AAPT dump</value>
</data>
</root>
+289 -7
View File
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -429,9 +429,6 @@
<data name="ParsingApkInfo" xml:space="preserve">
<value>Чтение информации о APK...</value>
</data>
<data name="SetLanguageRestartApplication" xml:space="preserve">
<value>Язык установлен. Хотите перезапустить программу?</value>
</data>
<data name="DecompilingAllApkFiles" xml:space="preserve">
<value>Декомпиляция всех APK файлов</value>
</data>
@@ -462,9 +459,6 @@
<data name="ErrorMerging" xml:space="preserve">
<value>Ошибка при слиянии</value>
</data>
<data name="ExtractOrigSignature" xml:space="preserve">
<value>Извлечение оригинальной подписи</value>
</data>
<data name="MergingApkEditor" xml:space="preserve">
<value>Слияние APK с помощью APKEditor.jar</value>
</data>
@@ -516,4 +510,292 @@
<data name="ClearFrameworkPrompt" xml:space="preserve">
<value>После изменения версии Apktool необходимо очистить кеш. Вы хотите очистить его сейчас?</value>
</data>
<data name="RestartApplicationPrompt" xml:space="preserve">
<value>Для применения изменений требуется перезапуск. Перезапустить приложение сейчас?</value>
</data>
<data name="ClearTempFolder" xml:space="preserve">
<value>Очистка временной папки</value>
</data>
<data name="DeletingFolder" xml:space="preserve">
<value>Удаление папки: {0}</value>
</data>
<data name="DirectoryNotExist" xml:space="preserve">
<value>Директория "{0}" не существует</value>
</data>
<data name="OpenComFolder" xml:space="preserve">
<value>Открыть папку скомпилированных файлов</value>
</data>
<data name="OpenDecFolder" xml:space="preserve">
<value>Открыть папку декомпилированных файлов</value>
</data>
<data name="FixApktoolYml" xml:space="preserve">
<value>Исправлен apktool.yml</value>
</data>
<data name="CopyFileTo" xml:space="preserve">
<value>Копирование файла "{0}" в "{1}"</value>
</data>
<data name="SplitApkNotFound" xml:space="preserve">
<value>Split APK не выбран</value>
</data>
<data name="CantDetectApkeditorVersion" xml:space="preserve">
<value>Не удалось определить версию APKEditor</value>
</data>
<data name="SetLanguageRestartApplication" xml:space="preserve">
<value>Язык установлен. Хотите перезапустить программу?</value>
</data>
<data name="AboutVersion" xml:space="preserve">
<value>Версия</value>
</data>
<data name="AboutCopyright" xml:space="preserve">
<value>Авторские права</value>
</data>
<data name="AboutGithubRepo" xml:space="preserve">
<value>Сайт</value>
</data>
<data name="SettingsGeneral" xml:space="preserve">
<value>Общие</value>
</data>
<data name="SettingsLanguage" xml:space="preserve">
<value>Язык</value>
</data>
<data name="SettingsContextMenu" xml:space="preserve">
<value>Контекстное меню</value>
</data>
<data name="SettingsTheme" xml:space="preserve">
<value>Тема</value>
</data>
<data name="SettingsAdminRights" xml:space="preserve">
<value>Требуются права администратора</value>
</data>
<data name="SettingsClearLog" xml:space="preserve">
<value>Очищать журнал событий перед каждой операцией</value>
</data>
<data name="SettingsCustomJvmArgs" xml:space="preserve">
<value>Аргументы JVM</value>
</data>
<data name="SettingsCheckUpdate" xml:space="preserve">
<value>Проверять обновление при запуске (раз в сутки)</value>
</data>
<data name="SettingsCustomApktool" xml:space="preserve">
<value>Свой путь к Apktool</value>
</data>
<data name="SettingsInstall" xml:space="preserve">
<value>Установить</value>
</data>
<data name="SettingsUninstall" xml:space="preserve">
<value>Удалить</value>
</data>
<data name="SettingsCancel" xml:space="preserve">
<value>Отмена</value>
</data>
<data name="checkBox_DECODE_UseFramework.Text" xml:space="preserve">
<value>Использовать файлы фремворка из:</value>
</data>
<data name="checkBox_DECODE_Force.Text" xml:space="preserve">
<value>Перезаписывать файлы в каталоге назначения</value>
</data>
<data name="checkBox_DECODE_NoRes.Text" xml:space="preserve">
<value>Не декомпилировать ресурсы</value>
</data>
<data name="checkBox_DECODE_NoSrc.Text" xml:space="preserve">
<value>Не декомпилировать исходный код</value>
</data>
<data name="checkBox_BUILD_UseAapt.Text" xml:space="preserve">
<value>Использовать aapt.exe из</value>
</data>
<data name="checkBox_BUILD_ForceAll.Text" xml:space="preserve">
<value>Пропустить определение изменений и построить все файлы</value>
</data>
<data name="clearLogToolStripMenuItem.Text" xml:space="preserve">
<value>Очистить журнал</value>
</data>
<data name="menuItemSettings.Text" xml:space="preserve">
<value>Настройки</value>
</data>
<data name="menuItemExit.Text" xml:space="preserve">
<value>Выход</value>
</data>
<data name="menuItemFile.Text" xml:space="preserve">
<value>Файл</value>
</data>
<data name="menuItemCheckUpdate.Text" xml:space="preserve">
<value>Проверить обновление</value>
</data>
<data name="menuItemAbout.Text" xml:space="preserve">
<value>О программе</value>
</data>
<data name="menuItemHelp.Text" xml:space="preserve">
<value>Справка</value>
</data>
<data name="button_BUILD_Build.Text" xml:space="preserve">
<value>Собрать</value>
</data>
<data name="button_DECODE_Decode.Text" xml:space="preserve">
<value>Декомпилировать</value>
</data>
<data name="tabPageZipAlign.Text" xml:space="preserve">
<value>Выравнивание</value>
</data>
<data name="tabPageSign.Text" xml:space="preserve">
<value>Подпись</value>
</data>
<data name="toolStripStatusLabelStateText.Text" xml:space="preserve">
<value>Загрузка...</value>
</data>
<data name="checkBox_BUILD_CopyOriginal.Text" xml:space="preserve">
<value>Копировать оригинальный AndroidManifest.xml и папку META-INF в построенный apk</value>
</data>
<data name="checkBox_BUILD_UseFramework.Text" xml:space="preserve">
<value>Использовать файлы фремворка из:</value>
</data>
<data name="checkBox_DECODE_KeepBrokenRes.Text" xml:space="preserve">
<value>Сохранить испорченные ресурсы</value>
</data>
<data name="tabPageBuild.Text" xml:space="preserve">
<value>Сборка</value>
</data>
<data name="tabPageDecode.Text" xml:space="preserve">
<value>Декомпиляция</value>
</data>
<data name="checkBox_DECODE_OutputDirectory.Text" xml:space="preserve">
<value>Декомпилировать в каталог:</value>
</data>
<data name="checkBox_BUILD_OutputAppPath.Text" xml:space="preserve">
<value>Сохранить файл как:</value>
</data>
<data name="tabPageInstallFramework.Text" xml:space="preserve">
<value>Установка фреймворков</value>
</data>
<data name="groupBox_BUILD_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="groupBox_DECODE_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="groupBox_IF_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="button_IF_InstallFramework.Text" xml:space="preserve">
<value>Установить</value>
</data>
<data name="button_ZIPALIGN_Align.Text" xml:space="preserve">
<value>Выровнять</value>
</data>
<data name="label_ZIPALIGN_OutputFile.Text" xml:space="preserve">
<value>Сохранить файл как:</value>
</data>
<data name="groupBox_ZIPALIGN_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="checkBox_ZIPALIGN_OverwriteOutputFile.Text" xml:space="preserve">
<value>Перезаписать выходной файл, если он существует</value>
</data>
<data name="button_SIGN_Sign.Text" xml:space="preserve">
<value>Подписать</value>
</data>
<data name="checkBox_IF_FramePath.Text" xml:space="preserve">
<value>Устанавливать фреймворк в каталог:</value>
</data>
<data name="checkBox_ZIPALIGN_Recompress.Text" xml:space="preserve">
<value>Перепаковать с использованием алгоритма Zopfli</value>
</data>
<data name="checkBox_ZIPALIGN_VerboseOutput.Text" xml:space="preserve">
<value>Подробный вывод</value>
</data>
<data name="label_ZIPALIGN_AlignmentBytes.Text" xml:space="preserve">
<value>Выравнивание (в байтах), например, '4' для 32-битного выравнивания</value>
</data>
<data name="checkBox_DECODE_MatchOriginal.Text" xml:space="preserve">
<value>Сохранять файлы близко к оригиналу, насколько это возможно. Предотвращает ребилд.</value>
</data>
<data name="checkBox_ZIPALIGN_CheckAlignment.Text" xml:space="preserve">
<value>Только проверить выравнивание (не модифицирует файл)</value>
</data>
<data name="groupBox_SIGN_Options.Text" xml:space="preserve">
<value>Опции</value>
</data>
<data name="label_SIGN_OutputFile.Text" xml:space="preserve">
<value>Сохранить файл как:</value>
</data>
<data name="label_SIGN_PrivateKey.Text" xml:space="preserve">
<value>Закрытый ключ</value>
</data>
<data name="label_SIGN_PublicKey.Text" xml:space="preserve">
<value>Открытый ключ</value>
</data>
<data name="tabPageMain.Text" xml:space="preserve">
<value>Главная</value>
</data>
<data name="tabPageApkInfo.Text" xml:space="preserve">
<value>Инфо APK</value>
</data>
<data name="checkBox4.Text" xml:space="preserve">
<value>Количество потоков:</value>
</data>
<data name="checkBox_BUILD_NetSecConf.Text" xml:space="preserve">
<value>Добавить файл конфигурации сетевой безопасности (Network Security Configuration)</value>
</data>
<data name="useAapt2ChkBox.Text" xml:space="preserve">
<value>Использовать aapt2 (для версий apktool &lt; 2.11.1)</value>
</data>
<data name="buildSetApiLvlChkBox.Text" xml:space="preserve">
<value>Установить уровень API (напр. 14 для ICS)</value>
</data>
<data name="createUnsignApkChkBox.Text" xml:space="preserve">
<value>Создать неподписанный APK с оригинальной подписью (Core Patch)</value>
</data>
<data name="signAfterBuildChkBox.Text" xml:space="preserve">
<value>Подписать после сборки / выравнивания</value>
</data>
<data name="zipalignAfterBuildChkBox.Text" xml:space="preserve">
<value>Выровнять после сборки</value>
</data>
<data name="checkBox_BUILD_NoCrunch.Text" xml:space="preserve">
<value>Отключить сжатие ресурсов</value>
</data>
<data name="tabPageBaksmali.Text" xml:space="preserve">
<value>Baksmali / Smali</value>
</data>
<data name="tabPageAdb.Text" xml:space="preserve">
<value>ADB</value>
</data>
<data name="mergeApkBtn.Text" xml:space="preserve">
<value>Слияние APK</value>
</data>
<data name="selSplitApkBtn.Text" xml:space="preserve">
<value>Выбрать Split APK</value>
</data>
<data name="baksmaliUseOutputChkBox.Text" xml:space="preserve">
<value>Свой каталог вывода:</value>
</data>
<data name="smaliUseOutputChkBox.Text" xml:space="preserve">
<value>Свой каталог вывода:</value>
</data>
<data name="killAdbBtn.Text" xml:space="preserve">
<value>Перезапустить ADB</value>
</data>
<data name="installApkBtn.Text" xml:space="preserve">
<value>Установить APK</value>
</data>
<data name="refreshDevicesBtn.Text" xml:space="preserve">
<value>Обновить список</value>
</data>
<data name="selApkAdbBtn.Text" xml:space="preserve">
<value>Выбрать APK</value>
</data>
<data name="overrideAbiCheckBox.Text" xml:space="preserve">
<value>Переопределить ABI:</value>
</data>
<data name="bakSmaliGroupBox.Text" xml:space="preserve">
<value>Baksmali (DEX -&gt; Smali)</value>
</data>
<data name="smaliGroupBox.Text" xml:space="preserve">
<value>Smali (Smali -&gt; DEX)</value>
</data>
<data name="decSmaliBtn.Text" xml:space="preserve">
<value>Дизассемблировать</value>
</data>
<data name="comSmaliBtn.Text" xml:space="preserve">
<value>Ассемблировать</value>
</data>
</root>
+546
View File
@@ -0,0 +1,546 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="About" xml:space="preserve">
<value>Hakkında</value>
</data>
<data name="APKToolVersion" xml:space="preserve">
<value>Apktool sürümü</value>
</data>
<data name="CheckForUpdate" xml:space="preserve">
<value>Güncellemeleri kontrol et</value>
</data>
<data name="DebugMode" xml:space="preserve">
<value>Hata ayıklama modu</value>
</data>
<data name="Exit" xml:space="preserve">
<value>Çıkış</value>
</data>
<data name="File" xml:space="preserve">
<value>Dosya</value>
</data>
<data name="Help" xml:space="preserve">
<value>Yardım</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Ayarlar</value>
</data>
<data name="ErrorJavaDetect" xml:space="preserve">
<value>Java yüklü değil veya yanlış yüklenmiş. Lütfen Javayı yükleyin veya Ayarlardan özel konumu ayarlayın</value>
</data>
<data name="ErrorReadSettings" xml:space="preserve">
<value>Ayarlar okunurken hata oluştu!</value>
</data>
<data name="UpdateNewVersion" xml:space="preserve">
<value>Yeni bir sürüm mevcut. Güncellemek ister misiniz?</value>
</data>
<data name="UpdateNoUpdates" xml:space="preserve">
<value>Güncelleme mevcut değil.</value>
</data>
<data name="WarningDecodingFolderNotSelected" xml:space="preserve">
<value>Çözümleme klasörü seçilmedi!</value>
</data>
<data name="WarningFileForDecodingNotSelected" xml:space="preserve">
<value>Çözümleme için dosya seçilmedi!</value>
</data>
<data name="WarningFileForSigningNotSelected" xml:space="preserve">
<value>İmzalama için dosya seçilmedi!</value>
</data>
<data name="WarningFrameworkNotSelected" xml:space="preserve">
<value>Çerçeve seçilmedi!</value>
</data>
<data name="ErrorSaveSettings" xml:space="preserve">
<value>Ayarlar kaydedilirken hata oluştu!</value>
</data>
<data name="NeedRestart" xml:space="preserve">
<value>Değişikliklerin etkili olması için programı yeniden başlatmanız gerekiyor. Şimdi yapmak ister misiniz?</value>
</data>
<data name="FileNotFound" xml:space="preserve">
<value>Dosya bulunamadı</value>
</data>
<data name="FolderNotExist" xml:space="preserve">
<value>Klasör mevcut değil</value>
</data>
<data name="Error" xml:space="preserve">
<value>Hata</value>
</data>
<data name="Build" xml:space="preserve">
<value>Derle</value>
</data>
<data name="Decode" xml:space="preserve">
<value>Çözümle</value>
</data>
<data name="InstallFramework" xml:space="preserve">
<value>Çerçeveyi yükle</value>
</data>
<data name="Sign" xml:space="preserve">
<value>İmzala</value>
</data>
<data name="SystemLanguage" xml:space="preserve">
<value>Sistem dili</value>
</data>
<data name="DoYouRealyWantToInstallCM" xml:space="preserve">
<value>Bağlam menüsünü gerçekten yüklemek istiyor musunuz?</value>
</data>
<data name="DoYouRealyWantToRemoveCM" xml:space="preserve">
<value>Bağlam menüsünü gerçekten kaldırmak istiyor musunuz?</value>
</data>
<data name="Done" xml:space="preserve">
<value>Tamamlandı</value>
</data>
<data name="CantDetectApktoolVersion" xml:space="preserve">
<value>Apktool sürümü tespit edilemedi.</value>
</data>
<data name="DecompilingSuccessfullyCompleted" xml:space="preserve">
<value>Çözümleme başarıyla tamamlandı. Çıkış dizini "{0}".</value>
</data>
<data name="ErrorUpdateChecking" xml:space="preserve">
<value>Güncelleme kontrolü hatası:</value>
</data>
<data name="SignSuccessfullyCompleted" xml:space="preserve">
<value>İmzalama başarıyla tamamlandı. Dosya "{0}" konumuna kaydedildi.</value>
</data>
<data name="Aligning" xml:space="preserve">
<value>Hizalama</value>
</data>
<data name="ErrorCompiling" xml:space="preserve">
<value>Derleme başarısız</value>
</data>
<data name="ErrorEnteringFrameworkTag" xml:space="preserve">
<value>Çerçeve etiketi girilirken hata oluştu.</value>
</data>
<data name="ErrorSelectedFileNotExist" xml:space="preserve">
<value>Seçilen dosya mevcut değil.</value>
</data>
<data name="ErrorSelectingFrameworkDirectory" xml:space="preserve">
<value>Çerçeve dizini seçilirken hata oluştu.</value>
</data>
<data name="ErrorSelectingFrameworkFile" xml:space="preserve">
<value>Çerçeve dosyası seçilirken hata oluştu. Dosya mevcut değil.</value>
</data>
<data name="ErrorSigning" xml:space="preserve">
<value>İmzalama başarısız.</value>
</data>
<data name="FrameworkInstallationNotStarted" xml:space="preserve">
<value>Hata. Çerçeve kurulumu başlatılmadı.</value>
</data>
<data name="InstallingFramework" xml:space="preserve">
<value>Çerçeve yükleniyor</value>
</data>
<data name="Signing" xml:space="preserve">
<value>İmzalanıyor</value>
</data>
<data name="SignInputFileNotFound" xml:space="preserve">
<value>Giriş dosyası bulunamadı.</value>
</data>
<data name="SignPrivateKeyNotFound" xml:space="preserve">
<value>Özel anahtar bulunamadı.</value>
</data>
<data name="SignPublicKeyNotFound" xml:space="preserve">
<value>Genel anahtar bulunamadı.</value>
</data>
<data name="ZIPArchives" xml:space="preserve">
<value>ZIP arşivleri</value>
</data>
<data name="DecodeCouldNotCreate" xml:space="preserve">
<value>Seçilen çözümleme dizini, geçersiz karakterler içerdiği için oluşturulamadı.</value>
</data>
<data name="DecodeDirNotSelected" xml:space="preserve">
<value>Çözümleme dizini seçilmedi.</value>
</data>
<data name="DecodeSelectedFrameworkNotExist" xml:space="preserve">
<value>Seçilen çerçeve dizini mevcut değil.</value>
</data>
<data name="Decoding" xml:space="preserve">
<value>Çözümleniyor</value>
</data>
<data name="ErrorDecompiling" xml:space="preserve">
<value>Çözümleme başarısız</value>
</data>
<data name="ExecutableFile" xml:space="preserve">
<value>Çalıştırılabilir dosya</value>
</data>
<data name="ChangedTargetSdkTo29" xml:space="preserve">
<value>Hedef SDK 29a değiştirildi</value>
</data>
<data name="ErrorVersionParsing" xml:space="preserve">
<value>Sürüm ayrıştırılamadı</value>
</data>
<data name="FixAndroidManifest" xml:space="preserve">
<value>AndroidManifest.xml düzeltildi</value>
</data>
<data name="RemoveApkToolDummies" xml:space="preserve">
<value>Tüm ApkTool kuklaları kaldırıldı</value>
</data>
<data name="APKSelected" xml:space="preserve">
<value>APK Seçildi:</value>
</data>
<data name="ErrorSelectedFolderNotExist" xml:space="preserve">
<value>Seçilen klasör mevcut değil.</value>
</data>
<data name="AndroidManifestNotExist" xml:space="preserve">
<value>AndroidManifest.xml mevcut değil</value>
</data>
<data name="DecompiledAPKNotExist" xml:space="preserve">
<value>Çözümlenmiş APK dizini mevcut değil</value>
</data>
<data name="MainActivityFound" xml:space="preserve">
<value>Ana aktivite "{0}" içinde bulundu</value>
</data>
<data name="MainActivityNotFoundPleaseFindManually" xml:space="preserve">
<value>MainActivity bulunamadı. Lütfen manuel olarak bulun</value>
</data>
<data name="ClearingFramework" xml:space="preserve">
<value>Çerçeve temizleniyor</value>
</data>
<data name="CompilingSuccessfullyCompleted" xml:space="preserve">
<value>Derleme başarıyla tamamlandı. Çıkış dizini "{0}"</value>
</data>
<data name="ErrorZipalign" xml:space="preserve">
<value>Zipalign başarısız</value>
</data>
<data name="ZipalignFileSavedTo" xml:space="preserve">
<value>Zipalign başarıyla tamamlandı. Dosya "{0}" konumuna kaydedildi</value>
</data>
<data name="ErrorClearingFw" xml:space="preserve">
<value>Çerçeve temizlenirken hata oluştu</value>
</data>
<data name="FrameworkCacheCleared" xml:space="preserve">
<value>Çerçeve önbelleği temizlendi</value>
</data>
<data name="AllDone" xml:space="preserve">
<value>Hepsi tamamlandı!</value>
</data>
<data name="FrameworkInstalled" xml:space="preserve">
<value>Çerçeve başarıyla yüklendi</value>
</data>
<data name="FrameworkDirNotExist" xml:space="preserve">
<value>Çerçeve dizini mevcut değil</value>
</data>
<data name="DecompilingDex" xml:space="preserve">
<value>Dex çözümlemesi yapılıyor</value>
</data>
<data name="ErrorSelectedOutputFolderNotExist" xml:space="preserve">
<value>Seçilen çıkış klasörü mevcut değil.</value>
</data>
<data name="CompilingDex" xml:space="preserve">
<value>Dex derleniyor</value>
</data>
<data name="DragDropNotSupported" xml:space="preserve">
<value>Yönetici olarak çalışıyorsunuz. Sürükle ve bırak desteklenmeyebilir</value>
</data>
<data name="DragDropSupported" xml:space="preserve">
<value>Sürükle ve bırak destekleniyor</value>
</data>
<data name="ErrorNotAnApk" xml:space="preserve">
<value>Bu dizin bir Android paketi değil</value>
</data>
<data name="Baksmali" xml:space="preserve">
<value>Baksmali</value>
</data>
<data name="Smali" xml:space="preserve">
<value>Smali</value>
</data>
<data name="Zipalign" xml:space="preserve">
<value>Zipalign</value>
</data>
<data name="CompileApk" xml:space="preserve">
<value>APKyı derle</value>
</data>
<data name="CompileDex" xml:space="preserve">
<value>DEXi birleştir</value>
</data>
<data name="DecompileApk" xml:space="preserve">
<value>APKyı çözümle</value>
</data>
<data name="DecompileDex" xml:space="preserve">
<value>DEXi parçala</value>
</data>
<data name="GetApkInfo" xml:space="preserve">
<value>APK Bilgilerini Görüntüle</value>
</data>
<data name="NotDecompiledApk" xml:space="preserve">
<value>Bu klasör çözümlenmiş bir APK değil</value>
</data>
<data name="NotDecompiledDex" xml:space="preserve">
<value>Bu klasör çözümlenmiş bir DEX değil</value>
</data>
<data name="RequiredFilesMissing" xml:space="preserve">
<value>Gerekli dosyalar eksik</value>
</data>
<data name="SignApk" xml:space="preserve">
<value>APKyı imzala</value>
</data>
<data name="TextFile" xml:space="preserve">
<value>Metin dosyası</value>
</data>
<data name="ZipalignApk" xml:space="preserve">
<value>APKyı zipalign yap</value>
</data>
<data name="CreateUnsignedApk" xml:space="preserve">
<value>İmzasız APK oluşturuluyor</value>
</data>
<data name="MetainfNotExist" xml:space="preserve">
<value>META-INF klasörü mevcut değil. Atlandı</value>
</data>
<data name="ErrorGettingApkInfo" xml:space="preserve">
<value>APK bilgileri alınırken hata oluştu</value>
</data>
<data name="InputDirectory" xml:space="preserve">
<value>Giriş dizini: {0}</value>
</data>
<data name="InputFile" xml:space="preserve">
<value>Giriş dosyası: {0}</value>
</data>
<data name="DeleteFile" xml:space="preserve">
<value>"{0}" dosyasını sil</value>
</data>
<data name="CopyFileToTemp" xml:space="preserve">
<value>"{0}" dosyasını "{1}" geçici dizinine kopyala</value>
</data>
<data name="CopyFolderToTemp" xml:space="preserve">
<value>Çözümlenmiş apk klasörünü "{0}" "{1}" geçici dizinine kopyala</value>
</data>
<data name="DecodeDesDirExists" xml:space="preserve">
<value>Hedef dizin "{0}" zaten mevcut. Üzerine yazmak istiyorsanız "Hedef dizini zorla sil" seçeneğini etkinleştirin.</value>
</data>
<data name="MoveTempApkFileToOutput" xml:space="preserve">
<value>Geçici klasörü "{0}" çıkış dizinine "{1}" taşı</value>
</data>
<data name="MoveTempApkToOutput" xml:space="preserve">
<value>Geçici apkyı "{0}" çıkış dizinine "{1}" taşı</value>
</data>
<data name="ParsingApkInfo" xml:space="preserve">
<value>APK Bilgileri Ayrıştırılıyor...</value>
</data>
<data name="RestartApplicationPrompt" xml:space="preserve">
<value>Değişiklikleri uygulamak için yeniden başlatma gerekiyor. Uygulamayı şimdi yeniden başlatmak ister misiniz?</value>
</data>
<data name="DecompilingAllApkFiles" xml:space="preserve">
<value>Tüm APK dosyaları çözümleniyor</value>
</data>
<data name="DetectedAsBase" xml:space="preserve">
<value>{0} temel olarak algılandı</value>
</data>
<data name="DetectedAsSplit" xml:space="preserve">
<value>{0} bölünmüş olarak algılandı</value>
</data>
<data name="ExtractingAllApkFiles" xml:space="preserve">
<value>Tüm APK dosyaları çıkarılıyor</value>
</data>
<data name="MergeFinishedMoveDir" xml:space="preserve">
<value>Birleştirme tamamlandı. Dizin "{0}" konumuna taşınıyor</value>
</data>
<data name="MergingApk" xml:space="preserve">
<value>APK birleştiriliyor</value>
</data>
<data name="MovingBasedirectory" xml:space="preserve">
<value>Temel dizin "{0}" konumuna taşınıyor</value>
</data>
<data name="DirNotExist" xml:space="preserve">
<value>"{0}" dizini mevcut değil</value>
</data>
<data name="TempDirectory" xml:space="preserve">
<value>Geçici dizin: "{0}"</value>
</data>
<data name="ErrorMerging" xml:space="preserve">
<value>Birleştirme başarısız</value>
</data>
<data name="MergingApkEditor" xml:space="preserve">
<value>APK, APKEditor.jar kullanılarak birleştiriliyor</value>
</data>
<data name="Aborted" xml:space="preserve">
<value>İptal edildi</value>
</data>
<data name="CancelProcess" xml:space="preserve">
<value>İşlemi iptal etmek istediğinizden emin misiniz?</value>
</data>
<data name="GettingDevices" xml:space="preserve">
<value>Cihazlar alınıyor...</value>
</data>
<data name="PleaseWait" xml:space="preserve">
<value>Lütfen bekleyin...</value>
</data>
<data name="ConfirmKillingAdbServer" xml:space="preserve">
<value>ADB sunucusunu sonlandırmak istediğinizden emin misiniz? Cihazınızı yeniden bağlamanız veya emülatörü yeniden başlatmanız gerekebilir</value>
</data>
<data name="DeviceNotSelected" xml:space="preserve">
<value>Cihaz seçilmedi</value>
</data>
<data name="DeviceSelected" xml:space="preserve">
<value>Cihaz seçildi "{0}"</value>
</data>
<data name="DevicesFound" xml:space="preserve">
<value>{0} cihaz bulundu</value>
</data>
<data name="InstallApkFailed" xml:space="preserve">
<value>APK Kurulumu başarısız</value>
</data>
<data name="InstallApkSuccessful" xml:space="preserve">
<value>APK Kurulumu başarılı</value>
</data>
<data name="InstallingApk" xml:space="preserve">
<value>APK yükleniyor</value>
</data>
<data name="InstallingApkPath" xml:space="preserve">
<value>"{0}" APKsı yükleniyor</value>
</data>
<data name="NoDevicesFound" xml:space="preserve">
<value>Cihaz bulunamadı. Cihazınızın bilgisayara bağlı olduğundan ve adb hata ayıklamasının açık olduğundan emin olun. Emülatör kullanıyorsanız, yeniden başlatın ve açılmasını bekleyin</value>
</data>
<data name="TimeEnded" xml:space="preserve">
<value>Bitiş zamanı: {0}</value>
</data>
<data name="TimeStarted" xml:space="preserve">
<value>Başlangıç zamanı: {0}</value>
</data>
<data name="ClearFrameworkPrompt" xml:space="preserve">
<value>Apktool sürümü değiştirildikten sonra beklenmedik hataları önlemek için çerçeve önbelleğini temizlemek gerekiyor. Şimdi temizlemek ister misiniz?</value>
</data>
<data name="ClearTempFolder" xml:space="preserve">
<value>Geçici klasör temizleniyor</value>
</data>
<data name="DeletingFolder" xml:space="preserve">
<value>Klasör siliniyor: {0}</value>
</data>
<data name="DirectoryNotExist" xml:space="preserve">
<value>"{0}" dizini mevcut değil</value>
</data>
<data name="OpenComFolder" xml:space="preserve">
<value>Derleme çıkış klasörünü aç</value>
</data>
<data name="OpenDecFolder" xml:space="preserve">
<value>Çözümleme çıkış klasörünü aç</value>
</data>
<data name="FixApktoolYml" xml:space="preserve">
<value>apktool.yml düzeltildi</value>
</data>
<data name="CopyFileTo" xml:space="preserve">
<value>"{0}" dosyasını "{1}" konumuna kopyala</value>
</data>
<data name="SplitApkNotFound" xml:space="preserve">
<value>Bölünmüş APK seçilmedi</value>
</data>
<data name="CantDetectApkeditorVersion" xml:space="preserve">
<value>APKEditor sürümü tespit edilemedi</value>
</data>
<data name="SetLanguageRestartApplication" xml:space="preserve">
<value />
</data>
</root>
+996
View File
@@ -0,0 +1,996 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="About" xml:space="preserve">
<value>Giới thiệu</value>
</data>
<data name="APKToolVersion" xml:space="preserve">
<value>Phiên bản Apktool</value>
</data>
<data name="CheckForUpdate" xml:space="preserve">
<value>Kiểm tra cập nhật</value>
</data>
<data name="DebugMode" xml:space="preserve">
<value>Chế độ gỡ lỗi</value>
</data>
<data name="Exit" xml:space="preserve">
<value>Thoát</value>
</data>
<data name="File" xml:space="preserve">
<value>Tệp</value>
</data>
<data name="Help" xml:space="preserve">
<value>Trợ giúp</value>
</data>
<data name="Settings" xml:space="preserve">
<value>Cài đặt</value>
</data>
<data name="ErrorJavaDetect" xml:space="preserve">
<value>Java chưa được cài đặt hoặc đã cài đặt không đúng. Vui lòng cài đặt Java hoặc đặt vị trí tùy chỉnh trong Cài đặt</value>
</data>
<data name="ErrorReadSettings" xml:space="preserve">
<value>Lỗi đọc cài đặt!</value>
</data>
<data name="UpdateNewVersion" xml:space="preserve">
<value>Có phiên bản mới. Bạn có muốn cập nhật không?</value>
</data>
<data name="UpdateNoUpdates" xml:space="preserve">
<value>Không có bản cập nhật nào.</value>
</data>
<data name="WarningDecodingFolderNotSelected" xml:space="preserve">
<value>Thư mục dịch ngược chưa được chọn!</value>
</data>
<data name="WarningFileForDecodingNotSelected" xml:space="preserve">
<value>Tệp để dịch ngược chưa được chọn!</value>
</data>
<data name="WarningFileForSigningNotSelected" xml:space="preserve">
<value>Tệp để ký chưa được chọn!</value>
</data>
<data name="WarningFrameworkNotSelected" xml:space="preserve">
<value>Framework chưa được chọn!</value>
</data>
<data name="ErrorSaveSettings" xml:space="preserve">
<value>Lỗi lưu cài đặt!</value>
</data>
<data name="NeedRestart" xml:space="preserve">
<value>Để các thay đổi có hiệu lực, bạn phải khởi động lại chương trình. Bạn có muốn thực hiện ngay bây giờ không?</value>
</data>
<data name="FileNotFound" xml:space="preserve">
<value>Không tìm thấy tệp</value>
</data>
<data name="FolderNotExist" xml:space="preserve">
<value>Thư mục không tồn tại</value>
</data>
<data name="Error" xml:space="preserve">
<value>Lỗi</value>
</data>
<data name="Build" xml:space="preserve">
<value>Biên dịch</value>
</data>
<data name="Decode" xml:space="preserve">
<value>Dịch ngược</value>
</data>
<data name="InstallFramework" xml:space="preserve">
<value>Cài đặt framework</value>
</data>
<data name="Sign" xml:space="preserve">
<value>Ký</value>
</data>
<data name="SystemLanguage" xml:space="preserve">
<value>Ngôn ngữ hệ thống</value>
</data>
<data name="DoYouRealyWantToInstallCM" xml:space="preserve">
<value>Bạn có thực sự muốn cài đặt menu ngữ cảnh không?</value>
</data>
<data name="DoYouRealyWantToRemoveCM" xml:space="preserve">
<value>Bạn có thực sự muốn xóa menu ngữ cảnh không?</value>
</data>
<data name="Done" xml:space="preserve">
<value>Hoàn tất</value>
</data>
<data name="CantDetectApktoolVersion" xml:space="preserve">
<value>Không thể phát hiện phiên bản apktool.</value>
</data>
<data name="DecompilingSuccessfullyCompleted" xml:space="preserve">
<value>Dịch ngược thành công. Thư mục đầu ra "{0}".</value>
</data>
<data name="ErrorUpdateChecking" xml:space="preserve">
<value>Lỗi kiểm tra cập nhật:</value>
</data>
<data name="SignSuccessfullyCompleted" xml:space="preserve">
<value>Ký thành công. Tệp đã được lưu vào "{0}".</value>
</data>
<data name="Aligning" xml:space="preserve">
<value>Đang căn chỉnh</value>
</data>
<data name="ErrorCompiling" xml:space="preserve">
<value>Biên dịch thất bại</value>
</data>
<data name="ErrorEnteringFrameworkTag" xml:space="preserve">
<value>Lỗi nhập thẻ framework.</value>
</data>
<data name="ErrorSelectedFileNotExist" xml:space="preserve">
<value>Tệp đã chọn không tồn tại.</value>
</data>
<data name="ErrorSelectingFrameworkDirectory" xml:space="preserve">
<value>Lỗi chọn thư mục framework.</value>
</data>
<data name="ErrorSelectingFrameworkFile" xml:space="preserve">
<value>Lỗi chọn tệp framework. Tệp không tồn tại.</value>
</data>
<data name="ErrorSigning" xml:space="preserve">
<value>Ký thất bại.</value>
</data>
<data name="FrameworkInstallationNotStarted" xml:space="preserve">
<value>Lỗi. Việc cài đặt framework chưa được bắt đầu.</value>
</data>
<data name="InstallingFramework" xml:space="preserve">
<value>Đang cài đặt framework</value>
</data>
<data name="Signing" xml:space="preserve">
<value>Đang ký</value>
</data>
<data name="SignInputFileNotFound" xml:space="preserve">
<value>Không tìm thấy tệp đầu vào.</value>
</data>
<data name="SignPrivateKeyNotFound" xml:space="preserve">
<value>Không tìm thấy khóa riêng.</value>
</data>
<data name="SignPublicKeyNotFound" xml:space="preserve">
<value>Không tìm thấy khóa công khai.</value>
</data>
<data name="ZIPArchives" xml:space="preserve">
<value>Tệp nén ZIP</value>
</data>
<data name="DecodeCouldNotCreate" xml:space="preserve">
<value>Thư mục dịch ngược đã chọn không thể được tạo vì chứa các ký tự không hợp lệ.</value>
</data>
<data name="DecodeDirNotSelected" xml:space="preserve">
<value>Thư mục dịch ngược chưa được chọn.</value>
</data>
<data name="DecodeSelectedFrameworkNotExist" xml:space="preserve">
<value>Thư mục framework đã chọn không tồn tại.</value>
</data>
<data name="Decoding" xml:space="preserve">
<value>Đang dịch ngược</value>
</data>
<data name="ErrorDecompiling" xml:space="preserve">
<value>Dịch ngược thất bại</value>
</data>
<data name="ExecutableFile" xml:space="preserve">
<value>Tệp thực thi</value>
</data>
<data name="ChangedTargetSdkTo29" xml:space="preserve">
<value>Đã thay đổi target SDK thành 29</value>
</data>
<data name="ErrorVersionParsing" xml:space="preserve">
<value>Phân tích phiên bản thất bại</value>
</data>
<data name="FixAndroidManifest" xml:space="preserve">
<value>Đã sửa tệp AndroidManifest.xml</value>
</data>
<data name="RemoveApkToolDummies" xml:space="preserve">
<value>Đã xóa tất cả các tệp giả của ApkTool</value>
</data>
<data name="APKSelected" xml:space="preserve">
<value>APK đã chọn:</value>
</data>
<data name="ErrorSelectedFolderNotExist" xml:space="preserve">
<value>Thư mục đã chọn không tồn tại.</value>
</data>
<data name="AndroidManifestNotExist" xml:space="preserve">
<value>Tệp AndroidManifest.xml không tồn tại</value>
</data>
<data name="DecompiledAPKNotExist" xml:space="preserve">
<value>Thư mục APK đã dịch ngược không tồn tại</value>
</data>
<data name="MainActivityFound" xml:space="preserve">
<value>Đã tìm thấy activity chính trong "{0}"</value>
</data>
<data name="MainActivityNotFoundPleaseFindManually" xml:space="preserve">
<value>Không thể tìm thấy MainActivity. Vui lòng tìm thủ công</value>
</data>
<data name="ClearingFramework" xml:space="preserve">
<value>Đang xóa Framework</value>
</data>
<data name="CompilingSuccessfullyCompleted" xml:space="preserve">
<value>Biên dịch thành công. Thư mục đầu ra "{0}"</value>
</data>
<data name="ErrorZipalign" xml:space="preserve">
<value>Zipalign thất bại</value>
</data>
<data name="ZipalignFileSavedTo" xml:space="preserve">
<value>Zipalign thành công. Tệp đã được lưu vào "{0}"</value>
</data>
<data name="ErrorClearingFw" xml:space="preserve">
<value>Lỗi xóa framework</value>
</data>
<data name="FrameworkCacheCleared" xml:space="preserve">
<value>Đã xóa bộ nhớ đệm của Framework</value>
</data>
<data name="AllDone" xml:space="preserve">
<value>Đã xong tất cả!</value>
</data>
<data name="FrameworkInstalled" xml:space="preserve">
<value>Framework đã được cài đặt thành công</value>
</data>
<data name="FrameworkDirNotExist" xml:space="preserve">
<value>Thư mục Framework không tồn tại</value>
</data>
<data name="DecompilingDex" xml:space="preserve">
<value>Đang dịch ngược dex</value>
</data>
<data name="ErrorSelectedOutputFolderNotExist" xml:space="preserve">
<value>Thư mục đầu ra đã chọn không tồn tại.</value>
</data>
<data name="CompilingDex" xml:space="preserve">
<value>Đang biên dịch dex</value>
</data>
<data name="DragDropNotSupported" xml:space="preserve">
<value>Bạn đang chạy với quyền quản trị viên. Kéo và thả có thể không được hỗ trợ</value>
</data>
<data name="DragDropSupported" xml:space="preserve">
<value>Kéo và thả được hỗ trợ</value>
</data>
<data name="ErrorNotAnApk" xml:space="preserve">
<value>Thư mục này không phải là một gói Android</value>
</data>
<data name="Baksmali" xml:space="preserve">
<value>Baksmali</value>
</data>
<data name="Smali" xml:space="preserve">
<value>Smali</value>
</data>
<data name="Zipalign" xml:space="preserve">
<value>Zipalign</value>
</data>
<data name="CompileApk" xml:space="preserve">
<value>Biên dịch APK</value>
</data>
<data name="CompileDex" xml:space="preserve">
<value>Biên dịch DEX</value>
</data>
<data name="DecompileApk" xml:space="preserve">
<value>Dịch ngược APK</value>
</data>
<data name="DecompileDex" xml:space="preserve">
<value>Dịch ngược DEX</value>
</data>
<data name="GetApkInfo" xml:space="preserve">
<value>Xem thông tin APK</value>
</data>
<data name="NotDecompiledApk" xml:space="preserve">
<value>Thư mục này không phải là một APK đã được dịch ngược</value>
</data>
<data name="NotDecompiledDex" xml:space="preserve">
<value>Thư mục này không phải là một DEX đã được dịch ngược</value>
</data>
<data name="RequiredFilesMissing" xml:space="preserve">
<value>Các tệp cần thiết bị thiếu</value>
</data>
<data name="SignApk" xml:space="preserve">
<value>Ký APK</value>
</data>
<data name="TextFile" xml:space="preserve">
<value>Tệp văn bản</value>
</data>
<data name="ZipalignApk" xml:space="preserve">
<value>Zipalign APK</value>
</data>
<data name="CreateUnsignedApk" xml:space="preserve">
<value>Đang tạo APK chưa ký</value>
</data>
<data name="MetainfNotExist" xml:space="preserve">
<value>Thư mục META-INF không tồn tại. Đã bỏ qua</value>
</data>
<data name="ErrorGettingApkInfo" xml:space="preserve">
<value>Đã xảy ra lỗi khi lấy thông tin APK</value>
</data>
<data name="InputDirectory" xml:space="preserve">
<value>Thư mục đầu vào: {0}</value>
</data>
<data name="InputFile" xml:space="preserve">
<value>Tệp đầu vào: {0}</value>
</data>
<data name="DeleteFile" xml:space="preserve">
<value>Xóa tệp "{0}"</value>
</data>
<data name="CopyFileToTemp" xml:space="preserve">
<value>Sao chép tệp "{0}" vào thư mục tạm "{1}"</value>
</data>
<data name="CopyFolderToTemp" xml:space="preserve">
<value>Sao chép thư mục apk đã dịch ngược "{0}" vào thư mục tạm "{1}"</value>
</data>
<data name="DecodeDesDirExists" xml:space="preserve">
<value>Thư mục đích "{0}" đã tồn tại. Bật "Buộc xóa thư mục đích" nếu bạn muốn ghi đè lên nó.</value>
</data>
<data name="MoveTempApkFileToOutput" xml:space="preserve">
<value>Di chuyển thư mục tạm "{0}" đến thư mục đầu ra "{1}"</value>
</data>
<data name="MoveTempApkToOutput" xml:space="preserve">
<value>Di chuyển apk tạm "{0}" đến thư mục đầu ra "{1}"</value>
</data>
<data name="ParsingApkInfo" xml:space="preserve">
<value>Đang phân tích thông tin APK...</value>
</data>
<data name="RestartApplicationPrompt" xml:space="preserve">
<value>Cần khởi động lại để áp dụng các thay đổi. Bạn có muốn khởi động lại ứng dụng không?</value>
</data>
<data name="DecompilingAllApkFiles" xml:space="preserve">
<value>Đang dịch ngược tất cả các tệp APK</value>
</data>
<data name="DetectedAsBase" xml:space="preserve">
<value>{0} được phát hiện là base</value>
</data>
<data name="DetectedAsSplit" xml:space="preserve">
<value>{0} được phát hiện là split</value>
</data>
<data name="ExtractingAllApkFiles" xml:space="preserve">
<value>Đang giải nén tất cả các tệp APK</value>
</data>
<data name="MergeFinishedMoveDir" xml:space="preserve">
<value>Hợp nhất hoàn tất. Đang di chuyển thư mục đến "{0}"</value>
</data>
<data name="MergingApk" xml:space="preserve">
<value>Đang hợp nhất APK</value>
</data>
<data name="MovingBasedirectory" xml:space="preserve">
<value>Đang di chuyển thư mục base đến "{0}"</value>
</data>
<data name="DirNotExist" xml:space="preserve">
<value>Thư mục "{0}" không tồn tại</value>
</data>
<data name="TempDirectory" xml:space="preserve">
<value>Thư mục tạm: "{0}"</value>
</data>
<data name="ErrorMerging" xml:space="preserve">
<value>Hợp nhất thất bại</value>
</data>
<data name="MergingApkEditor" xml:space="preserve">
<value>Đang hợp nhất APK bằng APKEditor.jar</value>
</data>
<data name="Aborted" xml:space="preserve">
<value>Đã hủy</value>
</data>
<data name="CancelProcess" xml:space="preserve">
<value>Bạn có chắc muốn hủy tiến trình không?</value>
</data>
<data name="GettingDevices" xml:space="preserve">
<value>Đang lấy danh sách thiết bị...</value>
</data>
<data name="PleaseWait" xml:space="preserve">
<value>Vui lòng đợi...</value>
</data>
<data name="ConfirmKillingAdbServer" xml:space="preserve">
<value>Bạn có chắc muốn tắt máy chủ ADB không? Bạn có thể cần kết nối lại thiết bị hoặc khởi động lại trình giả lập</value>
</data>
<data name="DeviceNotSelected" xml:space="preserve">
<value>Thiết bị chưa được chọn</value>
</data>
<data name="DeviceSelected" xml:space="preserve">
<value>Đã chọn thiết bị "{0}"</value>
</data>
<data name="DevicesFound" xml:space="preserve">
<value>Đã tìm thấy {0} thiết bị</value>
</data>
<data name="InstallApkFailed" xml:space="preserve">
<value>Cài đặt APK thất bại</value>
</data>
<data name="InstallApkSuccessful" xml:space="preserve">
<value>Cài đặt APK thành công</value>
</data>
<data name="InstallingApk" xml:space="preserve">
<value>Đang cài đặt APK</value>
</data>
<data name="InstallingApkPath" xml:space="preserve">
<value>Đang cài đặt APK "{0}"</value>
</data>
<data name="NoDevicesFound" xml:space="preserve">
<value>Không tìm thấy thiết bị nào. Hãy chắc chắn rằng thiết bị của bạn được kết nối với máy tính và đã bật chế độ gỡ lỗi adb. Nếu bạn sử dụng trình giả lập, hãy khởi động lại và đợi cho đến khi nó khởi động xong</value>
</data>
<data name="TimeEnded" xml:space="preserve">
<value>Thời gian kết thúc: {0}</value>
</data>
<data name="TimeStarted" xml:space="preserve">
<value>Thời gian bắt đầu: {0}</value>
</data>
<data name="ClearFrameworkPrompt" xml:space="preserve">
<value>Cần phải xóa bộ nhớ đệm của framework sau khi thay đổi phiên bản Apktool để tránh các lỗi không mong muốn. Bạn có muốn xóa ngay bây giờ không?</value>
</data>
<data name="ClearTempFolder" xml:space="preserve">
<value>Đang xóa thư mục tạm</value>
</data>
<data name="DeletingFolder" xml:space="preserve">
<value>Đang xóa thư mục: {0}</value>
</data>
<data name="DirectoryNotExist" xml:space="preserve">
<value>Thư mục "{0}" không tồn tại</value>
</data>
<data name="OpenComFolder" xml:space="preserve">
<value>Mở thư mục đầu ra biên dịch</value>
</data>
<data name="OpenDecFolder" xml:space="preserve">
<value>Mở thư mục đầu ra dịch ngược</value>
</data>
<data name="FixApktoolYml" xml:space="preserve">
<value>Đã sửa tệp apktool.yml</value>
</data>
<data name="CopyFileTo" xml:space="preserve">
<value>Sao chép tệp "{0}" đến "{1}"</value>
</data>
<data name="SplitApkNotFound" xml:space="preserve">
<value>Split APK chưa được chọn</value>
</data>
<data name="CantDetectApkeditorVersion" xml:space="preserve">
<value>Không thể phát hiện phiên bản APKEditor</value>
</data>
<data name="SetLanguageRestartApplication" xml:space="preserve">
<value />
</data>
<data name="AboutVersion" xml:space="preserve">
<value>Phiên bản</value>
</data>
<data name="AboutCopyright" xml:space="preserve">
<value>Bản quyền</value>
</data>
<data name="AboutGithubRepo" xml:space="preserve">
<value>Kho Github</value>
</data>
<data name="SettingsGeneral" xml:space="preserve">
<value>Chung</value>
</data>
<data name="SettingsLanguage" xml:space="preserve">
<value>Ngôn ngữ</value>
</data>
<data name="SettingsContextMenu" xml:space="preserve">
<value>Menu chuột phải</value>
</data>
<data name="SettingsTheme" xml:space="preserve">
<value>Giao diện</value>
</data>
<data name="SettingsTempNote" xml:space="preserve">
<value>Việc di chuyển các tệp trong quá trình xử lý vào thư mục tạm có thể mất thời gian, vui lòng kiên nhẫn chờ đợi</value>
</data>
<data name="SettingsAdminRights" xml:space="preserve">
<value>Yêu cầu quyền quản trị</value>
</data>
<data name="SettingsClearLog" xml:space="preserve">
<value>Xóa nhật ký trước khi thực hiện</value>
</data>
<data name="SettingsPlaySound" xml:space="preserve">
<value>Âm báo hoàn thành</value>
</data>
<data name="SettingsCustomTemp" xml:space="preserve">
<value>Vị trí bộ đệm tùy chỉnh</value>
</data>
<data name="SettingsCustomJava" xml:space="preserve">
<value>Vị trí Java tùy chỉnh</value>
</data>
<data name="SettingsUtf8" xml:space="preserve">
<value>Hỗ trợ tên tệp UTF-8 (bật khi tên tệp bị lỗi hiển thị)</value>
</data>
<data name="SettingsCustomJvmArgs" xml:space="preserve">
<value>Tùy chỉnh lệnh JVM</value>
</data>
<data name="SettingsCheckUpdate" xml:space="preserve">
<value>Kiểm tra cập nhật khi khởi động</value>
</data>
<data name="SettingsCustomApktool" xml:space="preserve">
<value>Vị trí apktool tùy chỉnh</value>
</data>
<data name="SettingsIgnoreOutputCM" xml:space="preserve">
<value>Bỏ qua thư mục đầu ra tùy chỉnh của menu chuột phải</value>
</data>
<data name="SettingsInstall" xml:space="preserve">
<value>Cài đặt</value>
</data>
<data name="SettingsUninstall" xml:space="preserve">
<value>Gỡ cài đặt</value>
</data>
<data name="SettingsCancel" xml:space="preserve">
<value>Hủy</value>
</data>
<data name="ThemeAuto" xml:space="preserve">
<value>Tự động</value>
</data>
<data name="ThemeLight" xml:space="preserve">
<value>Sáng</value>
</data>
<data name="ThemeDark" xml:space="preserve">
<value>Tối</value>
</data>
<data name="splitApkTxt.Text" xml:space="preserve">
<value>Hợp nhất các tệp APK bị chia nhỏ thành một tệp APK duy nhất:</value>
</data>
<data name="mergeApkBtn.Text" xml:space="preserve">
<value>Hợp nhất</value>
</data>
<data name="comApkOpenDir.Text" xml:space="preserve">
<value>Thư mục APK đã biên dịch</value>
</data>
<data name="decOutOpenDirBtn.Text" xml:space="preserve">
<value>Thư mục đầu ra dịch ngược</value>
</data>
<data name="signApkOpenDirBtn.Text" xml:space="preserve">
<value>Thư mục APK đã ký</value>
</data>
<data name="alignApkOpenDirBtn.Text" xml:space="preserve">
<value>Thư mục APK đã Zipalign</value>
</data>
<data name="decApkOpenDirBtn.Text" xml:space="preserve">
<value>Thư mục APK đã dịch ngược</value>
</data>
<data name="compileOutputOpenDirBtn.Text" xml:space="preserve">
<value>Thư mục đầu ra biên dịch</value>
</data>
<data name="button_OpenMainActivity.Text" xml:space="preserve">
<value>Smali của Activity khởi động</value>
</data>
<data name="label4.Text" xml:space="preserve">
<value>Ký APK:</value>
</data>
<data name="button_SIGN_Sign.Text" xml:space="preserve">
<value>Ký</value>
</data>
<data name="label3.Text" xml:space="preserve">
<value>Zipalign tệp APK:</value>
</data>
<data name="button_ZIPALIGN_Align.Text" xml:space="preserve">
<value>Zipalign</value>
</data>
<data name="label2.Text" xml:space="preserve">
<value>Thư mục APK đã dịch ngược:</value>
</data>
<data name="button_BUILD_Build.Text" xml:space="preserve">
<value>Biên dịch</value>
</data>
<data name="label1.Text" xml:space="preserve">
<value>Tệp APK/XAPK/APKS/ZIP/APKM:</value>
</data>
<data name="button_DECODE_Decode.Text" xml:space="preserve">
<value>Dịch ngược</value>
</data>
<data name="tabPageMain.Text" xml:space="preserve">
<value>Trang chính</value>
</data>
<data name="label31.Text" xml:space="preserve">
<value>Activity khởi động:</value>
</data>
<data name="label30.Text" xml:space="preserve">
<value>Kiến trúc:</value>
</data>
<data name="label17.Text" xml:space="preserve">
<value>Tệp:</value>
</data>
<data name="label18.Text" xml:space="preserve">
<value>Bản địa hóa:</value>
</data>
<data name="label15.Text" xml:space="preserve">
<value>Quyền:</value>
</data>
<data name="label14.Text" xml:space="preserve">
<value>Mật độ (DPI):</value>
</data>
<data name="label19.Text" xml:space="preserve">
<value>Liên kết cửa hàng:</value>
</data>
<data name="label7.Text" xml:space="preserve">
<value>Tên ứng dụng:</value>
</data>
<data name="label9.Text" xml:space="preserve">
<value>Tên gói ứng dụng:</value>
</data>
<data name="label8.Text" xml:space="preserve">
<value>Phiên bản:</value>
</data>
<data name="label11.Text" xml:space="preserve">
<value>SDK tương thích tối thiểu:</value>
</data>
<data name="label10.Text" xml:space="preserve">
<value>Tên mã:</value>
</data>
<data name="label13.Text" xml:space="preserve">
<value>Kích thước màn hình</value>
</data>
<data name="label12.Text" xml:space="preserve">
<value>SDK mục tiêu:</value>
</data>
<data name="basicInfoTabPage.Text" xml:space="preserve">
<value>Thông tin cơ bản</value>
</data>
<data name="tabPageApkInfo.Text" xml:space="preserve">
<value>Thông tin APK</value>
</data>
<data name="checkBox7.Text" xml:space="preserve">
<value>Không phân tích thông tin APK khi chọn APK để dịch ngược</value>
</data>
<data name="decSetApiLvlChkBox.Text" xml:space="preserve">
<value>Đặt cấp độ API cho các tệp sẽ được tạo, ví dụ: 14 cho ICS.</value>
</data>
<data name="checkBox_DECODE_FixError.Text" xml:space="preserve">
<value>Sửa lỗi ApkTool sau khi dịch ngược</value>
</data>
<data name="checkBox_DECODE_OnlyMainClasses.Text" xml:space="preserve">
<value>Chỉ dịch ngược các tệp dex chính trong thư mục gốc (classes[0-9]*.dex).</value>
</data>
<data name="checkBox_DECODE_UseFramework.Text" xml:space="preserve">
<value>Sử dụng vị trí tệp framework:</value>
</data>
<data name="checkBox_DECODE_MatchOriginal.Text" xml:space="preserve">
<value>Giữ các tệp gần với bản gốc nhất có thể, ngăn việc xây dựng lại</value>
</data>
<data name="checkBox_DECODE_OutputDirectory.Text" xml:space="preserve">
<value>Thư mục đầu ra:</value>
</data>
<data name="checkBox_DECODE_KeepBrokenRes.Text" xml:space="preserve">
<value>Giữ lại tài nguyên bị hỏng</value>
</data>
<data name="checkBox_DECODE_NoSrc.Text" xml:space="preserve">
<value>Không dịch ngược mã nguồn</value>
</data>
<data name="checkBox_DECODE_Force.Text" xml:space="preserve">
<value>Buộc xóa thư mục đích</value>
</data>
<data name="checkBox_DECODE_NoRes.Text" xml:space="preserve">
<value>Không dịch ngược tài nguyên (resources)</value>
</data>
<data name="checkBox_DECODE_NoDebugInfo.Text" xml:space="preserve">
<value>Không xuất thông tin gỡ lỗi (.local, .param, .line, v.v.)</value>
</data>
<data name="groupBox_DECODE_Options.Text" xml:space="preserve">
<value>Tùy chọn</value>
</data>
<data name="tabPageDecode.Text" xml:space="preserve">
<value>Dịch ngược</value>
</data>
<data name="checkBox_BUILD_NetSecConf.Text" xml:space="preserve">
<value>Thêm cấu hình bảo mật mạng chung vào APK đầu ra</value>
</data>
<data name="useAapt2ChkBox.Text" xml:space="preserve">
<value>Sử dụng aapt2 (Nâng cấp apktool để sử dụng tệp nhị phân aapt2 thử nghiệm)</value>
</data>
<data name="buildSetApiLvlChkBox.Text" xml:space="preserve">
<value>Đặt cấp độ API cho các tệp sẽ được tạo, ví dụ: 14 cho ICS.</value>
</data>
<data name="createUnsignApkChkBox.Text" xml:space="preserve">
<value>Tạo APK chưa ký với chữ ký gốc sau khi biên dịch</value>
</data>
<data name="signAfterBuildChkBox.Text" xml:space="preserve">
<value>Ký sau khi Biên dịch/Zipalign</value>
</data>
<data name="zipalignAfterBuildChkBox.Text" xml:space="preserve">
<value>Zipalign sau khi biên dịch</value>
</data>
<data name="checkBox_BUILD_NoCrunch.Text" xml:space="preserve">
<value>Vô hiệu hóa việc xử lý các tệp tài nguyên trong bước biên dịch</value>
</data>
<data name="checkBox_BUILD_ForceAll.Text" xml:space="preserve">
<value>Bỏ qua kiểm tra thay đổi và biên dịch tất cả các tệp</value>
</data>
<data name="checkBox_BUILD_OutputAppPath.Text" xml:space="preserve">
<value>Thư mục đầu ra APK</value>
</data>
<data name="checkBox_BUILD_CopyOriginal.Text" xml:space="preserve">
<value>Sao chép thư mục AndroidManifest.xml và META-INF gốc</value>
</data>
<data name="checkBox_BUILD_UseAapt.Text" xml:space="preserve">
<value>Sử dụng vị trí tệp aapt.exe:</value>
</data>
<data name="checkBox_BUILD_UseFramework.Text" xml:space="preserve">
<value>Sử dụng vị trí tệp framework:</value>
</data>
<data name="groupBox_BUILD_Options.Text" xml:space="preserve">
<value>Tùy chọn</value>
</data>
<data name="tabPageBuild.Text" xml:space="preserve">
<value>Biên dịch</value>
</data>
<data name="checkBox2.Text" xml:space="preserve">
<value>Cài đặt APK sau khi ký (đảm bảo đã chọn thiết bị trong tùy chọn ADB trước)</value>
</data>
<data name="checkBox1.Text" xml:space="preserve">
<value>Ghi đè tệp đầu vào</value>
</data>
<data name="autoDelIdsigChkBox.Text" xml:space="preserve">
<value>Tự động xóa tệp idsig</value>
</data>
<data name="label27.Text" xml:space="preserve">
<value>Lược đồ ký v4:</value>
</data>
<data name="label26.Text" xml:space="preserve">
<value>Lược đồ ký v3:</value>
</data>
<data name="label25.Text" xml:space="preserve">
<value>Lược đồ ký v2:</value>
</data>
<data name="label24.Text" xml:space="preserve">
<value>Lược đồ ký v1:</value>
</data>
<data name="useAliasChkBox.Text" xml:space="preserve">
<value>Tên bí danh (Alias)</value>
</data>
<data name="label22.Text" xml:space="preserve">
<value>Rất khuyến khích bạn sử dụng khóa của riêng mình, được tạo bằng Android Studio hoặc các công cụ khác</value>
</data>
<data name="label21.Text" xml:space="preserve">
<value>Mật khẩu:</value>
</data>
<data name="label20.Text" xml:space="preserve">
<value>Tệp keystore/jks:</value>
</data>
<data name="useKeyStoreChkBox.Text" xml:space="preserve">
<value>Sử dụng keystore</value>
</data>
<data name="useSigningOutputDir.Text" xml:space="preserve">
<value>Thư mục đầu ra APK:</value>
</data>
<data name="label_SIGN_PrivateKey.Text" xml:space="preserve">
<value>Khóa riêng:</value>
</data>
<data name="label_SIGN_PublicKey.Text" xml:space="preserve">
<value>Khóa công khai:</value>
</data>
<data name="groupBox_SIGN_Options.Text" xml:space="preserve">
<value>Tùy chọn</value>
</data>
<data name="tabPageSign.Text" xml:space="preserve">
<value>Ký</value>
</data>
<data name="zipalignOutputDirChkBox.Text" xml:space="preserve">
<value>Thư mục đầu ra APK:</value>
</data>
<data name="signAfterZipalignChkBox.Text" xml:space="preserve">
<value>Ký sau khi zipalign</value>
</data>
<data name="checkBox_ZIPALIGN_Recompress.Text" xml:space="preserve">
<value>Nén lại bằng Zopfli</value>
</data>
<data name="label_ZIPALIGN_AlignmentBytes.Text" xml:space="preserve">
<value>Căn chỉnh theo byte, ví dụ: '4' cung cấp căn chỉnh 32-bit</value>
</data>
<data name="checkBox_ZIPALIGN_CheckAlignment.Text" xml:space="preserve">
<value>Chỉ kiểm tra căn chỉnh (không sửa đổi tệp)</value>
</data>
<data name="checkBox_ZIPALIGN_VerboseOutput.Text" xml:space="preserve">
<value>Đầu ra chi tiết</value>
</data>
<data name="checkBox_ZIPALIGN_OverwriteOutputFile.Text" xml:space="preserve">
<value>Ghi đè tệp đầu ra hiện có</value>
</data>
<data name="groupBox_ZIPALIGN_Options.Text" xml:space="preserve">
<value>Tùy chọn</value>
</data>
<data name="tabPageZipAlign.Text" xml:space="preserve">
<value>Zipalign</value>
</data>
<data name="openFwFolderBtn.Text" xml:space="preserve">
<value>Mở thư mục framework</value>
</data>
<data name="clearFwBtn.Text" xml:space="preserve">
<value>Xóa bộ nhớ đệm framework</value>
</data>
<data name="clearFwBeforeDecodeChkBox.Text" xml:space="preserve">
<value>Xóa bộ nhớ đệm Framework trước khi dịch ngược</value>
</data>
<data name="groupBox1.Text" xml:space="preserve">
<value>Tùy chọn</value>
</data>
<data name="checkBox_IF_Tag.Text" xml:space="preserve">
<value>Gắn thẻ frameworks bằng:</value>
</data>
<data name="checkBox_IF_FramePath.Text" xml:space="preserve">
<value>Lưu trữ tệp framework vào:</value>
</data>
<data name="button_IF_InstallFramework.Text" xml:space="preserve">
<value>Cài đặt</value>
</data>
<data name="groupBox_IF_Options.Text" xml:space="preserve">
<value>Tùy chọn</value>
</data>
<data name="label29.Text" xml:space="preserve">
<value>Thư mục biên dịch Smali:</value>
</data>
<data name="smaliUseOutputChkBox.Text" xml:space="preserve">
<value>Thư mục đầu ra Dex:</value>
</data>
<data name="comSmaliBtn.Text" xml:space="preserve">
<value>Biên dịch</value>
</data>
<data name="label28.Text" xml:space="preserve">
<value>Dịch ngược Dex:</value>
</data>
<data name="baksmaliUseOutputChkBox.Text" xml:space="preserve">
<value>Thư mục đầu ra:</value>
</data>
<data name="decSmaliBtn.Text" xml:space="preserve">
<value>Dịch ngược</value>
</data>
<data name="label33.Text" xml:space="preserve">
<value>Chọn thiết bị</value>
</data>
<data name="killAdbBtn.Text" xml:space="preserve">
<value>Dừng tiến trình ADB</value>
</data>
<data name="installApkBtn.Text" xml:space="preserve">
<value>Cài đặt APK</value>
</data>
<data name="refreshDevicesBtn.Text" xml:space="preserve">
<value>Làm mới</value>
</data>
<data name="overrideAbiCheckBox.Text" xml:space="preserve">
<value>Ghi đè ABI mặc định của nền tảng:</value>
</data>
<data name="setVendorChkBox.Text" xml:space="preserve">
<value>Đặt nhà cung cấp là Play Store (com.android.vending)</value>
</data>
<data name="label32.Text" xml:space="preserve">
<value>Chọn APK: </value>
</data>
<data name="toolStripStatusLabelStateText.Text" xml:space="preserve">
<value>Đang tải...</value>
</data>
<data name="clearLogToolStripMenuItem.Text" xml:space="preserve">
<value>Xóa nhật ký</value>
</data>
<data name="newInsToolStripMenuItem.Text" xml:space="preserve">
<value>Tiến trình mới</value>
</data>
<data name="saveLogToFileToolStripMenuItem.Text" xml:space="preserve">
<value>Lưu nhật ký</value>
</data>
<data name="openTempFolderToolStripMenuItem.Text" xml:space="preserve">
<value>Mở thư mục tạm</value>
</data>
<data name="clearTempFolderToolStripMenuItem.Text" xml:space="preserve">
<value>Xóa thư mục tạm</value>
</data>
<data name="exitToolStripMenuItem.Text" xml:space="preserve">
<value>Thoát</value>
</data>
<data name="fileToolStripMenuItem.Text" xml:space="preserve">
<value>Tệp</value>
</data>
<data name="useAPKEditorForDecompilingItem.Text" xml:space="preserve">
<value>Sử dụng APKEditor để dịch ngược</value>
</data>
<data name="settingsToolStripMenuItem.Text" xml:space="preserve">
<value>Cài đặt</value>
</data>
<data name="checkForUpdateToolStripMenuItem.Text" xml:space="preserve">
<value>Kiểm tra cập nhật</value>
</data>
<data name="reportAnIsuueToolStripMenuItem.Text" xml:space="preserve">
<value>Báo cáo sự cố</value>
</data>
<data name="apktoolIssuesToolStripMenuItem.Text" xml:space="preserve">
<value>Sự cố Apktool</value>
</data>
<data name="baksmaliIssuesToolStripMenuItem.Text" xml:space="preserve">
<value>Sự cố Baksmali</value>
</data>
<data name="aboutToolStripMenuItem.Text" xml:space="preserve">
<value>Giới thiệu</value>
</data>
<data name="helpToolStripMenuItem.Text" xml:space="preserve">
<value>Trợ giúp</value>
</data>
<data name="checkBox_DECODE_UseApkEditorMerge.Text" xml:space="preserve">
<value>Sử dụng APKEditor.jar để hợp nhất/tách APK (nhanh hơn)</value>
</data>
</root>
File diff suppressed because it is too large Load Diff
+36 -39
View File
@@ -1,8 +1,8 @@
using APKToolGUI.Languages;
using APKToolGUI.Controls;
using APKToolGUI.Languages;
using APKToolGUI.Properties;
using APKToolGUI.Utils;
using Bluegrams.Application;
using Dark.Net;
using OSVersionExtension;
using System;
using System.Collections.Generic;
@@ -10,6 +10,7 @@ using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;
namespace APKToolGUI
@@ -17,7 +18,7 @@ namespace APKToolGUI
static class Program
{
/// <summary>
/// Главная точка входа для приложения.
/// Main entry point for the application.
/// </summary>
[DllImport("Shcore.dll")]
static extern int SetProcessDpiAwareness(int PROCESS_DPI_AWARENESS);
@@ -95,16 +96,13 @@ namespace APKToolGUI
TEMP_MAIN = TempDirectory();
Directory.CreateDirectory(TEMP_PATH);
Theme theme = (Theme)Settings.Default.Theme;
if (IsWin10OrAbove())
DarkNet.Instance.SetCurrentProcessTheme(theme);
// Set the process app mode before any window is created so that
// Win32 popup/context menus render dark too. The WPF MainWindow
// applies its own immersive dark title bar internally.
NativeDarkMode.SetProcessTheme((Theme)Settings.Default.Theme);
Form mainForm = new FormMain();
if (IsWin10OrAbove())
DarkNet.Instance.SetWindowThemeForms(mainForm, theme);
Application.Run(mainForm);
var app = new System.Windows.Application();
app.Run(new Forms.MainWindow());
}
}
}
@@ -118,21 +116,14 @@ namespace APKToolGUI
public static bool IsWin10OrAbove()
{
// Check if the operating system is Windows 10 or above
if (OSVersion.GetOSVersion().Version.Major >= 10 && OSVersion.GetOSVersion().Version.Minor >= 0)
{
return true;
}
else
{
return false;
}
return OSVersion.GetOSVersion().Version.Major >= 10;
}
public static bool IsDarkTheme()
{
if (IsWin10OrAbove())
return DarkNet.Instance.EffectiveCurrentProcessThemeIsDark;
return NativeDarkMode.EffectiveIsDark((Theme)Settings.Default.Theme);
else if (Settings.Default.Theme == 2)
return true;
return false;
@@ -141,38 +132,44 @@ namespace APKToolGUI
public static void SetLanguage()
{
String settingsCulture = Settings.Default.Culture;
if (settingsCulture.Equals("Auto"))
{
// Let .NET handle the resource fallback process.
// It will automatically use the system's language if a satellite assembly is available,
// otherwise it will fall back to the neutral language defined in the main assembly (English).
return;
}
try
{
if (settingsCulture.Equals("Auto"))
{
System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.InstalledUICulture;
System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InstalledUICulture;
}
else
{
System.Globalization.CultureInfo _settingsCulture = System.Globalization.CultureInfo.GetCultureInfo(settingsCulture);
System.Threading.Thread.CurrentThread.CurrentUICulture = _settingsCulture;
System.Threading.Thread.CurrentThread.CurrentCulture = _settingsCulture;
}
System.Globalization.CultureInfo culture = System.Globalization.CultureInfo.GetCultureInfo(settingsCulture);
System.Threading.Thread.CurrentThread.CurrentUICulture = culture;
System.Threading.Thread.CurrentThread.CurrentCulture = culture;
}
catch
catch (System.Globalization.CultureNotFoundException ex)
{
Debug.WriteLine($"[Program] Invalid culture '{settingsCulture}': {ex.Message}");
// Fall back to system default culture
}
catch (ArgumentException ex)
{
Debug.WriteLine($"[Program] Failed to set culture: {ex.Message}");
}
}
private static bool FilesCheck()
{
// проверка файлов
// File verification
List<String> missigFiles = MissingFilesCheck();
if (missigFiles.Count > 0)
{
String files = Environment.NewLine;
StringBuilder filesBuilder = new StringBuilder();
filesBuilder.AppendLine();
foreach (String file in missigFiles)
{
files += file + Environment.NewLine;
filesBuilder.AppendLine(file);
}
MessageBox.Show(Language.RequiredFilesMissing + files, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show(Language.RequiredFilesMissing + filesBuilder.ToString(), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
//Application.Exit();
return false;
}
@@ -244,7 +241,7 @@ namespace APKToolGUI
if (Settings.Default.UseCustomTempDir)
return Path.Combine(Settings.Default.TempDir);
else
return Path.Combine(LOCAL_APPDATA_PATH, ASSEMBLY_NAME);
return Path.Combine(LOCAL_APPDATA_PATH, ASSEMBLY_NAME, "Temp");
}
public static string RandTempDirectory()
+17 -17
View File
@@ -2,35 +2,35 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
// General information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("APK Tool GUI")]
[assembly: AssemblyDescription("GUI for apktool, signapk and zipalign utilities.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("APK Tool GUI")]
[assembly: AssemblyCopyright("Original owner: INFINUM, 2012-2015 | Maintained by: AndnixSH, 2022-2023")]
[assembly: AssemblyCopyright("Original owner: INFINUM, 2012-2015 | Maintained by: AndnixSH, 2022-2025")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Параметр ComVisible со значением FALSE делает типы в сборке невидимыми
// для COM-компонентов. Если требуется обратиться к типу в этой сборке через
// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("49ccb60c-22a6-4a25-a4bf-9208712ad928")]
// Сведения о версии сборки состоят из следующих четырех значений:
// Version information for an assembly consists of the following four values:
//
// Основной номер версии
// Дополнительный номер версии
// Номер построения
// Редакция
// Major Version
// Minor Version
// Build Number
// Revision
//
// Можно задать все значения или принять номер построения и номер редакции по умолчанию,
// используя "*", как показано ниже:
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3.0.1")]
[assembly: AssemblyFileVersion("3.3.0.1")]
[assembly: AssemblyVersion("3.3.2.3")]
[assembly: AssemblyFileVersion("3.3.2.3")]
+132 -16
View File
@@ -12,7 +12,7 @@ namespace APKToolGUI.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.7.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "18.6.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -843,7 +843,7 @@ namespace APKToolGUI.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("29")]
[global::System.Configuration.DefaultSettingValueAttribute("4")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
public decimal Decode_ApiLevel {
get {
@@ -1011,7 +1011,7 @@ namespace APKToolGUI.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
public bool Build_UseAapt2 {
get {
@@ -1037,6 +1037,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1050,6 +1051,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1063,6 +1065,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1076,6 +1079,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1089,6 +1093,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1102,6 +1107,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1115,19 +1121,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
public bool Decode_UseApkEditorMergeApk {
get {
return ((bool)(this["Decode_UseApkEditorMergeApk"]));
}
set {
this["Decode_UseApkEditorMergeApk"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1141,6 +1135,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1154,6 +1149,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1167,6 +1163,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1180,6 +1177,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1193,6 +1191,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("0")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1206,6 +1205,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1219,6 +1219,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1232,6 +1233,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1245,6 +1247,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
@@ -1258,6 +1261,7 @@ namespace APKToolGUI.Properties {
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("-Dfile.encoding=UTF8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.n" +
"io.zipfs.allowDotZipEntry=true")]
@@ -1270,5 +1274,117 @@ namespace APKToolGUI.Properties {
this["CustomJVMArgs"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
public string SplitApk_InputFile {
get {
return ((string)(this["SplitApk_InputFile"]));
}
set {
this["SplitApk_InputFile"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(Bluegrams.Application.PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
public bool UseApkeditor {
get {
return ((bool)(this["UseApkeditor"]));
}
set {
this["UseApkeditor"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("0")]
public int Adb_OverrideAbi {
get {
return ((int)(this["Adb_OverrideAbi"]));
}
set {
this["Adb_OverrideAbi"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool Adb_SetOverrideAbi {
get {
return ((bool)(this["Adb_SetOverrideAbi"]));
}
set {
this["Adb_SetOverrideAbi"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("4")]
public decimal Build_Jobs {
get {
return ((decimal)(this["Build_Jobs"]));
}
set {
this["Build_Jobs"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("4")]
public decimal Decode_Jobs {
get {
return ((decimal)(this["Decode_Jobs"]));
}
set {
this["Decode_Jobs"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool Decode_SetJobs {
get {
return ((bool)(this["Decode_SetJobs"]));
}
set {
this["Decode_SetJobs"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool Build_SetJobs {
get {
return ((bool)(this["Build_SetJobs"]));
}
set {
this["Build_SetJobs"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string Sign_KeyPassword {
get {
return ((string)(this["Sign_KeyPassword"]));
}
set {
this["Sign_KeyPassword"] = value;
}
}
}
}
+46 -22
View File
@@ -180,7 +180,7 @@
<Value Profile="(Default)">0</Value>
</Setting>
<Setting Name="Decode_ApiLevel" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">29</Value>
<Value Profile="(Default)">4</Value>
</Setting>
<Setting Name="Build_ApiLevel" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">29</Value>
@@ -216,64 +216,88 @@
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Build_UseAapt2" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="PlaySoundWhenDone" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="UseCustomTempDir" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="UseCustomTempDir" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="TempDir" Roaming="true" Type="System.String" Scope="User">
<Setting Name="TempDir" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="UseCustomJavaExe" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="UseCustomJavaExe" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="AutoDeleteIdsigFile" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="AutoDeleteIdsigFile" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="Utf8FilenameSupport" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="Utf8FilenameSupport" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Sign_OverwriteInputFile" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="Sign_OverwriteInputFile" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Decode_UseApkEditorMergeApk" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="Adb_SetVendor" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="Adb_SetVendor" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Adb_SelectedApkPath" Roaming="true" Type="System.String" Scope="User">
<Setting Name="Adb_SelectedApkPath" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="Sign_InstallApkAfterSign" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="Sign_InstallApkAfterSign" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="UseCustomApktool" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="UseCustomApktool" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="ApktoolPath" Roaming="true" Type="System.String" Scope="User">
<Setting Name="ApktoolPath" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="Theme" Roaming="true" Type="System.Int32" Scope="User">
<Setting Name="Theme" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Int32" Scope="User">
<Value Profile="(Default)">0</Value>
</Setting>
<Setting Name="DebugMode" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="DebugMode" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Build_NetSecConf" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="Build_NetSecConf" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Decode_DontParseApkInfo" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="Decode_DontParseApkInfo" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="UseCustomJVMArgs" Roaming="true" Type="System.Boolean" Scope="User">
<Setting Name="UseCustomJVMArgs" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="CustomJVMArgs" Roaming="true" Type="System.String" Scope="User">
<Setting Name="CustomJVMArgs" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.String" Scope="User">
<Value Profile="(Default)">-Dfile.encoding=UTF8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true</Value>
</Setting>
<Setting Name="SplitApk_InputFile" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="UseApkeditor" Provider="Bluegrams.Application.PortableSettingsProvider" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Adb_OverrideAbi" Type="System.Int32" Scope="User">
<Value Profile="(Default)">0</Value>
</Setting>
<Setting Name="Adb_SetOverrideAbi" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Build_Jobs" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">4</Value>
</Setting>
<Setting Name="Decode_Jobs" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">4</Value>
</Setting>
<Setting Name="Decode_SetJobs" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Build_SetJobs" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Sign_KeyPassword" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
+1 -1
View File
@@ -8,7 +8,7 @@ using System.Reflection;
using Microsoft.WindowsAPICodePack.Shell;
using APKToolGUI.Languages;
namespace APKEasyTool
namespace APKToolGUI
{
public class TaskBarJumpList
{
+513
View File
@@ -0,0 +1,513 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ctrl="clr-namespace:APKToolGUI.Controls">
<!--
Shared implicit styles giving the common WPF controls a dark/light look.
Colours come from DynamicResource brushes filled in by Controls/WpfTheme.cs.
Merge this dictionary into a window, then call WpfTheme.Apply(this, dark).
Reused across the staged WinForms->WPF conversion (AboutWindow, SettingsWindow, ...).
-->
<Style TargetType="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
</Style>
<Style TargetType="Label">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
</Style>
<Style TargetType="TextBox">
<Setter Property="Background" Value="{DynamicResource PanelBackground}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="CaretBrush" Value="{DynamicResource PrimaryText}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="3,2"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
</Style>
<!-- Flat button that looks right in both themes (no light-blue Aero hover). -->
<Style TargetType="Button">
<Setter Property="Background" Value="{DynamicResource ButtonBackground}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ButtonBorder}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="10,4"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"
Margin="{TemplateBinding Padding}" RecognizesAccessKey="True"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="{DynamicResource ButtonHover}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Property="Background" Value="{DynamicResource ButtonPressed}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="border" Property="Opacity" Value="0.5"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="CheckBox">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="Background" Value="{DynamicResource ControlBackground}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="CheckBox">
<StackPanel Orientation="Horizontal" Background="Transparent">
<Border x:Name="box" Width="15" Height="15" VerticalAlignment="Center"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1">
<Path x:Name="check" Margin="2" Stretch="Uniform"
Data="M0,4 L3,8 L9,0" Visibility="Collapsed"
Stroke="White" StrokeThickness="1.6"
StrokeEndLineCap="Round" StrokeStartLineCap="Round"/>
</Border>
<ContentPresenter Margin="6,0,0,0" VerticalAlignment="Center" RecognizesAccessKey="True"/>
</StackPanel>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="check" Property="Visibility" Value="Visible"/>
<Setter TargetName="box" Property="Background" Value="{DynamicResource Accent}"/>
<Setter TargetName="box" Property="BorderBrush" Value="{DynamicResource Accent}"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="box" Property="BorderBrush" Value="{DynamicResource Accent}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="GroupBox">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="Margin" Value="0,0,0,10"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="GroupBox">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Text="{TemplateBinding Header}"
FontWeight="SemiBold" Margin="2,0,0,4"
Foreground="{DynamicResource PrimaryText}"/>
<Border Grid.Row="1" Padding="10"
BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1"
SnapsToDevicePixels="True">
<ContentPresenter/>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="ComboBoxItem">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="6,3"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBoxItem">
<Border x:Name="bd" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}">
<ContentPresenter/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsHighlighted" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource Accent}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Minimal flat dark/light scroll bar (thumb on a track, no arrow buttons). -->
<Style x:Key="ScrollBarThumb" TargetType="Thumb">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Thumb">
<Border CornerRadius="3" Margin="2" Background="{DynamicResource ScrollThumb}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ScrollBarPageButton" TargetType="RepeatButton">
<Setter Property="OverridesDefaultStyle" Value="True"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RepeatButton">
<Border Background="Transparent"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="ScrollBar">
<Setter Property="Background" Value="{DynamicResource ScrollTrack}"/>
<Setter Property="Width" Value="12"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<Grid Background="{TemplateBinding Background}">
<Track Name="PART_Track" IsDirectionReversed="True">
<Track.DecreaseRepeatButton>
<RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageUpCommand"/>
</Track.DecreaseRepeatButton>
<Track.Thumb>
<Thumb Style="{StaticResource ScrollBarThumb}"/>
</Track.Thumb>
<Track.IncreaseRepeatButton>
<RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageDownCommand"/>
</Track.IncreaseRepeatButton>
</Track>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Orientation" Value="Horizontal">
<Setter Property="Width" Value="Auto"/>
<Setter Property="Height" Value="12"/>
<Setter TargetName="PART_Track" Property="IsDirectionReversed" Value="False"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="ComboBox">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="Background" Value="{DynamicResource ControlBackground}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
<Setter Property="Height" Value="24"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBox">
<Grid>
<ToggleButton Name="ToggleButton" Focusable="False" ClickMode="Press"
IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}">
<ToggleButton.Template>
<ControlTemplate TargetType="ToggleButton">
<Border Background="{DynamicResource ControlBackground}"
BorderBrush="{DynamicResource PanelBorder}" BorderThickness="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="20"/>
</Grid.ColumnDefinitions>
<Path Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
Data="M0,0 L4,4 L8,0 Z" Fill="{DynamicResource PrimaryText}"/>
</Grid>
</Border>
</ControlTemplate>
</ToggleButton.Template>
</ToggleButton>
<ContentPresenter Name="ContentSite" IsHitTestVisible="False"
Content="{TemplateBinding SelectionBoxItem}"
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
VerticalAlignment="Center" HorizontalAlignment="Left"
Margin="7,0,24,0"/>
<Popup Name="Popup" Placement="Bottom" Focusable="False" AllowsTransparency="True"
IsOpen="{TemplateBinding IsDropDownOpen}" PopupAnimation="Slide">
<Border Background="{DynamicResource ControlBackground}"
BorderBrush="{DynamicResource PanelBorder}" BorderThickness="1"
MinWidth="{Binding ActualWidth, RelativeSource={RelativeSource TemplatedParent}}"
MaxHeight="{TemplateBinding MaxDropDownHeight}">
<ScrollViewer>
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained"/>
</ScrollViewer>
</Border>
</Popup>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ===== Tabs ===== -->
<Style TargetType="TabControl">
<Setter Property="Background" Value="{DynamicResource WindowBackground}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TabControl">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TabPanel Grid.Row="0" Panel.ZIndex="1" IsItemsHost="True" Margin="2,2,2,0" Background="Transparent"/>
<Border Grid.Row="1" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1">
<ContentPresenter ContentSource="SelectedContent"/>
</Border>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="TabItem">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TabItem">
<Border x:Name="bd" Margin="0,0,2,0" Padding="11,5"
Background="{DynamicResource TabBackground}"
BorderBrush="{DynamicResource PanelBorder}" BorderThickness="1,1,1,0">
<ContentPresenter ContentSource="Header" VerticalAlignment="Center" RecognizesAccessKey="True"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource ButtonHover}"/>
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource WindowBackground}"/>
<Setter TargetName="bd" Property="Margin" Value="0,0,2,-1"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- ===== Menu ===== -->
<Style TargetType="Menu">
<Setter Property="Background" Value="{DynamicResource MenuBar}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
</Style>
<ControlTemplate x:Key="TopLevelMenuHeaderTemplate" TargetType="MenuItem">
<Border x:Name="bd" Background="{TemplateBinding Background}" Padding="9,4">
<Grid>
<ContentPresenter ContentSource="Header" RecognizesAccessKey="True"/>
<Popup x:Name="Popup" Placement="Bottom" Focusable="False" AllowsTransparency="True"
IsOpen="{TemplateBinding IsSubmenuOpen}" PopupAnimation="Fade">
<Border Background="{DynamicResource MenuPopup}" BorderBrush="{DynamicResource PanelBorder}"
BorderThickness="1" Padding="0,2">
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Cycle"/>
</Border>
</Popup>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsHighlighted" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource MenuHighlight}"/>
</Trigger>
<Trigger Property="IsSubmenuOpen" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource MenuHighlight}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<ControlTemplate x:Key="SubmenuItemTemplate" TargetType="MenuItem">
<Border x:Name="bd" Background="{TemplateBinding Background}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="26"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="14"/>
</Grid.ColumnDefinitions>
<Border x:Name="check" Grid.Column="0" Width="15" Height="15" Visibility="Collapsed"
Background="{DynamicResource Accent}" BorderBrush="{DynamicResource Accent}" BorderThickness="1">
<Path Data="M0,4 L3,8 L9,0" Stroke="White" StrokeThickness="1.6" Margin="2"/>
</Border>
<ContentPresenter Grid.Column="1" ContentSource="Header" RecognizesAccessKey="True"
VerticalAlignment="Center" Margin="2,5"/>
<TextBlock Grid.Column="2" Text="{TemplateBinding InputGestureText}" Opacity="0.7"
VerticalAlignment="Center" Margin="24,0,8,0"/>
<Path x:Name="arrow" Grid.Column="3" Data="M0,0 L4,4 L0,8 Z" Fill="{DynamicResource PrimaryText}"
VerticalAlignment="Center" Visibility="Collapsed"/>
<Popup x:Name="Popup" Placement="Right" Focusable="False" AllowsTransparency="True"
IsOpen="{TemplateBinding IsSubmenuOpen}">
<Border Background="{DynamicResource MenuPopup}" BorderBrush="{DynamicResource PanelBorder}"
BorderThickness="1" Padding="0,2">
<StackPanel IsItemsHost="True"/>
</Border>
</Popup>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="Role" Value="SubmenuHeader">
<Setter TargetName="arrow" Property="Visibility" Value="Visible"/>
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="check" Property="Visibility" Value="Visible"/>
</Trigger>
<Trigger Property="IsHighlighted" Value="True">
<Setter TargetName="bd" Property="Background" Value="{DynamicResource MenuHighlight}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style TargetType="MenuItem">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Template" Value="{StaticResource SubmenuItemTemplate}"/>
<Style.Triggers>
<Trigger Property="Role" Value="TopLevelHeader">
<Setter Property="Template" Value="{StaticResource TopLevelMenuHeaderTemplate}"/>
</Trigger>
<Trigger Property="Role" Value="TopLevelItem">
<Setter Property="Template" Value="{StaticResource TopLevelMenuHeaderTemplate}"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="Separator">
<Setter Property="Background" Value="{DynamicResource PanelBorder}"/>
<Setter Property="Margin" Value="6,3"/>
<Setter Property="Height" Value="1"/>
</Style>
<!-- Explicit opaque template: the default ContextMenu popup is semi-transparent, which
looked glitchy over the constantly-redrawing LogView. -->
<Style TargetType="ContextMenu">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ContextMenu">
<Border Background="{DynamicResource MenuPopup}" BorderBrush="{DynamicResource PanelBorder}"
BorderThickness="1" Padding="0,2" SnapsToDevicePixels="True">
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Cycle"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="PasswordBox">
<Setter Property="Background" Value="{DynamicResource PanelBackground}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="CaretBrush" Value="{DynamicResource PrimaryText}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="3,2"/>
<Setter Property="SnapsToDevicePixels" Value="True"/>
</Style>
<!-- ===== Status bar / progress / misc ===== -->
<Style TargetType="StatusBar">
<Setter Property="Background" Value="{DynamicResource MenuBar}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
</Style>
<Style TargetType="StatusBarItem">
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
</Style>
<Style TargetType="ProgressBar">
<Setter Property="Background" Value="{DynamicResource ControlBackground}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="Foreground" Value="{DynamicResource Accent}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style TargetType="RichTextBox">
<Setter Property="Background" Value="{DynamicResource LogBackground}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CaretBrush" Value="{DynamicResource PrimaryText}"/>
</Style>
<Style TargetType="ListBox">
<Setter Property="Background" Value="{DynamicResource PanelBackground}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style TargetType="GridSplitter">
<Setter Property="Background" Value="{DynamicResource PanelBorder}"/>
</Style>
<!-- ===== NumericUpDown ===== -->
<Style x:Key="SpinnerButton" TargetType="RepeatButton">
<Setter Property="Focusable" Value="False"/>
<Setter Property="Background" Value="{DynamicResource ButtonBackground}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RepeatButton">
<Border x:Name="b" Background="{TemplateBinding Background}"
BorderBrush="{DynamicResource PanelBorder}" BorderThickness="1,0,0,0">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="b" Property="Background" Value="{DynamicResource ButtonHover}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="b" Property="Background" Value="{DynamicResource ButtonPressed}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type ctrl:NumericUpDown}">
<Setter Property="Height" Value="24"/>
<Setter Property="Background" Value="{DynamicResource PanelBackground}"/>
<Setter Property="BorderBrush" Value="{DynamicResource PanelBorder}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ctrl:NumericUpDown}">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="1" SnapsToDevicePixels="True">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="17"/>
</Grid.ColumnDefinitions>
<TextBox x:Name="PART_TextBox" Grid.Column="0" BorderThickness="0" Background="Transparent"
Foreground="{DynamicResource PrimaryText}" CaretBrush="{DynamicResource PrimaryText}"
VerticalContentAlignment="Center" Padding="4,0"/>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<RepeatButton x:Name="PART_Up" Grid.Row="0" Style="{StaticResource SpinnerButton}">
<Path Data="M0,4 L4,0 L8,4 Z" Fill="{DynamicResource PrimaryText}"/>
</RepeatButton>
<RepeatButton x:Name="PART_Down" Grid.Row="1" Style="{StaticResource SpinnerButton}">
<Path Data="M0,0 L4,4 L8,0 Z" Fill="{DynamicResource PrimaryText}"/>
</RepeatButton>
</Grid>
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
+376
View File
@@ -0,0 +1,376 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Text;
using Ionic.Zip; // DotNetZip NuGet: Install-Package DotNetZip
namespace APKToolGUI.Utils
{
// Resolves an APK's launcher icon by parsing resources.arsc directly. Handles apps whose
// resource names have been optimized/obfuscated (so the aapt-reported path no longer maps to a
// real entry) and adaptive icons (defined only as anydpi XML, no pixels) by falling back to the
// foreground layer raster. Returns the raw PNG/WebP/JPG bytes, or null when nothing usable is found.
public static class ApkIconExtractor
{
private const int DENSITY_MDPI = 160;
private const int DENSITY_HDPI = 240;
private const int DENSITY_XHDPI = 320;
private const int DENSITY_XXHDPI = 480;
private const int DENSITY_XXXHDPI = 640;
private const ushort CHUNK_STRING_POOL = 0x0001;
private const ushort CHUNK_TABLE = 0x0002;
private const ushort CHUNK_PACKAGE = 0x0200;
private const ushort CHUNK_TYPE_SPEC = 0x0202;
private const ushort CHUNK_TYPE = 0x0201;
private const byte VALUE_TYPE_STRING = 0x03;
private const uint NO_ENTRY = 0xFFFFFFFF;
// Launcher-icon entry-key names to match exactly (the real app icon).
private static readonly string[] PrimaryIconKeys =
{ "ic_launcher", "icon", "app_icon", "ic_launcher_round", "icon_round", "launcher_icon" };
// Raster extensions we can actually decode into a Bitmap. Adaptive-icon XML
// definitions (.xml) are intentionally excluded — they carry no pixels.
private static readonly string[] RasterExtensions = { ".png", ".webp", ".jpg", ".jpeg" };
// Best → worst density bucket. Anything outside the standard set (tvdpi, nodpi,
// anydpi, default, …) gets the lowest rank but is still accepted as a last resort.
private static int DensityRank(int density)
{
switch (density)
{
case DENSITY_XXXHDPI: return 6;
case DENSITY_XXHDPI: return 5;
case DENSITY_XHDPI: return 4;
case DENSITY_HDPI: return 3;
case DENSITY_MDPI: return 2;
default: return 1;
}
}
// ── Public API ───────────────────────────────────────────────
public static byte[] ExtractIcon(string apkPath)
{
if (string.IsNullOrEmpty(apkPath) || !File.Exists(apkPath))
return null;
try
{
using (var zip = ZipFile.Read(apkPath)) // Ionic.Zip API
{
byte[] arsc = ReadEntry(zip, "resources.arsc");
if (arsc == null)
{
Debug.WriteLine("resources.arsc not present in " + Path.GetFileName(apkPath));
return null;
}
string iconPath = FindBestIconPath(arsc);
if (string.IsNullOrEmpty(iconPath))
{
Debug.WriteLine("No launcher icon raster found in resources.arsc of " + Path.GetFileName(apkPath));
return null;
}
Debug.WriteLine($"[ApkIconExtractor] {Path.GetFileName(apkPath)} → {iconPath}");
return ReadEntry(zip, iconPath); // null if listed but physically absent (e.g. in a split)
}
}
catch (Exception ex)
{
Debug.WriteLine("ApkIconExtractor failed for " + Path.GetFileName(apkPath) + ": " + ex.Message);
return null;
}
}
// ── Ionic.Zip entry reader ───────────────────────────────────
/// <summary>
/// Reads a ZIP entry by name into a byte array.
/// Ionic.Zip uses forward-slash paths and is case-sensitive on most platforms.
/// </summary>
private static byte[] ReadEntry(ZipFile zip, string entryName)
{
// Ionic.Zip indexer returns null if not found (no exception)
ZipEntry entry = zip[entryName];
if (entry == null)
{
// Try case-insensitive fallback (some APKs use mixed casing)
foreach (ZipEntry e in zip)
{
if (string.Equals(e.FileName, entryName, StringComparison.OrdinalIgnoreCase))
{
entry = e;
break;
}
}
}
if (entry == null)
return null;
using (var ms = new MemoryStream())
{
entry.Extract(ms); // Ionic.Zip extracts directly into a stream
return ms.ToArray();
}
}
// ── resources.arsc parser ────────────────────────────────────
// Scans the resource table for the app's launcher icon and returns the best raster
// file path. Prefers a real launcher-icon raster (ic_launcher/icon/...); if the icon
// is an adaptive icon (defined only as anydpi XML, so no pixels), falls back to its
// foreground layer, which is a real PNG/WebP. Returns null if nothing usable is found.
private static string FindBestIconPath(byte[] d)
{
if (d == null || d.Length < 12 || ReadU16(d, 0) != CHUNK_TABLE)
return null;
ushort tableHdrSize = ReadU16(d, 2);
uint packageCount = ReadU32(d, 8);
int pos = tableHdrSize;
var globalStrings = ReadStringPool(d, pos, out int globalPoolSize);
pos += globalPoolSize;
string bestPrimary = null; int bestPrimaryRank = 0;
string bestForeground = null; int bestForegroundRank = 0;
for (int p = 0; p < packageCount && pos + 8 <= d.Length; p++)
{
int pkgStart = pos;
ushort pkgHdrSize = ReadU16(d, pkgStart + 2);
uint pkgSize = ReadU32(d, pkgStart + 4);
uint typeStrOff = ReadU32(d, pkgStart + 268);
uint keyStrOff = ReadU32(d, pkgStart + 276);
var typeStrings = ReadStringPool(d, pkgStart + (int)typeStrOff, out _);
var keyStrings = ReadStringPool(d, pkgStart + (int)keyStrOff, out _);
// Launcher icons live under the mipmap or drawable type.
int mipmapTypeId = FindIndex(typeStrings, "mipmap") + 1;
int drawableTypeId = FindIndex(typeStrings, "drawable") + 1;
// Pre-resolve the key-pool indices we care about so per-entry checks are O(1).
var primaryKeyIdx = new HashSet<int>();
var foregroundKeyIdx = new HashSet<int>();
for (int i = 0; i < keyStrings.Count; i++)
{
string k = keyStrings[i];
if (string.IsNullOrEmpty(k)) continue;
if (Array.IndexOf(PrimaryIconKeys, k) >= 0)
primaryKeyIdx.Add(i);
else if (k.IndexOf("foreground", StringComparison.OrdinalIgnoreCase) >= 0 &&
(k.IndexOf("launcher", StringComparison.OrdinalIgnoreCase) >= 0 ||
k.IndexOf("icon", StringComparison.OrdinalIgnoreCase) >= 0))
foregroundKeyIdx.Add(i);
}
if ((mipmapTypeId == 0 && drawableTypeId == 0) ||
(primaryKeyIdx.Count == 0 && foregroundKeyIdx.Count == 0))
{
pos = pkgStart + (int)pkgSize;
continue;
}
int chunkPos = pkgStart + pkgHdrSize;
int pkgEnd = pkgStart + (int)pkgSize;
while (chunkPos + 8 <= d.Length && chunkPos < pkgEnd)
{
ushort chunkType = ReadU16(d, chunkPos);
ushort chunkHdrSize = ReadU16(d, chunkPos + 2);
uint chunkSize = ReadU32(d, chunkPos + 4);
if (chunkSize == 0) break;
if (chunkType == CHUNK_TYPE)
{
byte typeId = d[chunkPos + 8];
if (typeId == mipmapTypeId || typeId == drawableTypeId)
ScanTypeChunk(d, chunkPos, chunkHdrSize, globalStrings,
primaryKeyIdx, foregroundKeyIdx,
ref bestPrimary, ref bestPrimaryRank,
ref bestForeground, ref bestForegroundRank);
}
chunkPos += (int)chunkSize;
}
pos = pkgStart + (int)pkgSize;
}
// A genuine launcher-icon raster wins; otherwise use the adaptive foreground layer.
return bestPrimary ?? bestForeground;
}
// Inspects every entry in one TYPE (config) chunk, updating the best primary/foreground
// raster seen so far. Entries are matched by their `key` pool index, not by position.
private static void ScanTypeChunk(
byte[] d, int chunkPos, ushort chunkHdrSize,
List<string> globalStrings,
HashSet<int> primaryKeyIdx, HashSet<int> foregroundKeyIdx,
ref string bestPrimary, ref int bestPrimaryRank,
ref string bestForeground, ref int bestForegroundRank)
{
byte typeFlags = d[chunkPos + 9]; // FLAG_SPARSE = 0x01
uint entryCount = ReadU32(d, chunkPos + 12);
uint entriesStart = ReadU32(d, chunkPos + 16);
int density = ReadU16(d, chunkPos + 20 + 14);
int rank = DensityRank(density);
// The offset table starts right after the chunk header (which includes the
// ResTable_config block). Each slot is a dense uint32 offset, or — when
// FLAG_SPARSE is set — a packed { uint16 entryIdx; uint16 offset/4 } pair.
int offsetTablePos = chunkPos + chunkHdrSize;
bool sparse = (typeFlags & 0x01) != 0;
for (int i = 0; i < (int)entryCount; i++)
{
uint entryOffset;
if (sparse)
{
entryOffset = (uint)ReadU16(d, offsetTablePos + i * 4 + 2) * 4;
}
else
{
entryOffset = ReadU32(d, offsetTablePos + i * 4);
if (entryOffset == NO_ENTRY) continue;
}
int entryPos = chunkPos + (int)entriesStart + (int)entryOffset;
if (entryPos + 8 > d.Length) continue;
ushort entryFlags = ReadU16(d, entryPos + 2);
int entryKey = (int)ReadU32(d, entryPos + 4);
bool isPrimary = primaryKeyIdx.Contains(entryKey);
bool isForeground = !isPrimary && foregroundKeyIdx.Contains(entryKey);
if (!isPrimary && !isForeground) continue;
if ((entryFlags & 0x0001) != 0) continue; // complex (<adaptive-icon>) — no file path
int valuePos = entryPos + 8;
if (valuePos + 8 > d.Length) continue;
byte dataType = d[valuePos + 3];
uint dataVal = ReadU32(d, valuePos + 4);
if (dataType != VALUE_TYPE_STRING || dataVal >= (uint)globalStrings.Count) continue;
string path = globalStrings[(int)dataVal];
if (string.IsNullOrEmpty(path) || !HasRasterExtension(path)) continue; // skip .xml adaptive defs
if (isPrimary && rank > bestPrimaryRank)
{
bestPrimary = path;
bestPrimaryRank = rank;
}
else if (isForeground && rank > bestForegroundRank)
{
bestForeground = path;
bestForegroundRank = rank;
}
}
}
private static bool HasRasterExtension(string path)
{
foreach (var ext in RasterExtensions)
if (path.EndsWith(ext, StringComparison.OrdinalIgnoreCase))
return true;
return false;
}
// ── String pool parser ───────────────────────────────────────
private static List<string> ReadStringPool(byte[] d, int pos, out int chunkSizeOut)
{
ushort headerSize = ReadU16(d, pos + 2);
uint chunkSize = ReadU32(d, pos + 4);
uint stringCount = ReadU32(d, pos + 8);
uint flags = ReadU32(d, pos + 16);
uint stringsStart = ReadU32(d, pos + 20);
bool isUtf8 = (flags & 0x100) != 0;
int offsetsBase = pos + headerSize;
int stringsBase = pos + (int)stringsStart;
var strings = new List<string>((int)stringCount);
for (int i = 0; i < (int)stringCount; i++)
{
uint strOffset = ReadU32(d, offsetsBase + i * 4);
int strPos = stringsBase + (int)strOffset;
try
{
strings.Add(isUtf8
? DecodeUtf8String(d, strPos)
: DecodeUtf16String(d, strPos));
}
catch
{
strings.Add(string.Empty);
}
}
chunkSizeOut = (int)chunkSize;
return strings;
}
private static string DecodeUtf8String(byte[] d, int pos)
{
if ((d[pos] & 0x80) != 0) pos += 2; else pos++;
int byteLen;
if ((d[pos] & 0x80) != 0)
{
byteLen = ((d[pos] & 0x7F) << 8) | d[pos + 1];
pos += 2;
}
else
{
byteLen = d[pos];
pos++;
}
return Encoding.UTF8.GetString(d, pos, byteLen);
}
private static string DecodeUtf16String(byte[] d, int pos)
{
int charLen;
if ((ReadU16(d, pos) & 0x8000) != 0)
{
charLen = ((ReadU16(d, pos) & 0x7FFF) << 16) | ReadU16(d, pos + 2);
pos += 4;
}
else
{
charLen = ReadU16(d, pos);
pos += 2;
}
return Encoding.Unicode.GetString(d, pos, charLen * 2);
}
// ── Low-level helpers ────────────────────────────────────────
private static int FindIndex(List<string> list, string value)
{
for (int i = 0; i < list.Count; i++)
if (list[i] == value) return i;
return -1;
}
private static ushort ReadU16(byte[] d, int pos) =>
(ushort)(d[pos] | (d[pos + 1] << 8));
private static uint ReadU32(byte[] d, int pos) =>
(uint)(d[pos] | (d[pos + 1] << 8) | (d[pos + 2] << 16) | (d[pos + 3] << 24));
}
}
+22 -1
View File
@@ -28,7 +28,28 @@ namespace APKToolGUI.Utils
}
else
{
MessageBox.Show("Error Loading File.", "Error!", MessageBoxButtons.OK);
return null;
}
}
// Decodes raw image bytes (e.g. an APK launcher icon resolved in memory) into a Bitmap.
// Returns a standalone copy so the backing MemoryStream can be disposed immediately and
// the result remains usable for saving. Returns null on null/empty input or a format
// GDI+ can't decode (e.g. WebP).
public static Bitmap LoadBitmap(byte[] data)
{
if (data == null || data.Length == 0)
return null;
try
{
using (var memoryStream = new MemoryStream(data))
using (var temp = new Bitmap(memoryStream))
{
return new Bitmap(temp);
}
}
catch
{
return null;
}
}
+4 -4
View File
@@ -13,13 +13,12 @@ namespace APKToolGUI.Utils
{
public class CMD
{
public static string output;
static public Process p = new Process();
public static string ProcessStartWithOutput(string FileName, string Arguments)
{
Log.d("CMD: " + FileName + " " + Arguments);
string result = string.Empty;
try
{
using (Process process = new Process())
@@ -33,13 +32,14 @@ namespace APKToolGUI.Utils
process.StartInfo.StandardOutputEncoding = Encoding.GetEncoding("utf-8");
process.Start();
result = process.StandardOutput.ReadToEnd().Trim();
process.WaitForExit(4000);
process.WaitForExit();
}
}
catch (Exception e)
{
Debug.WriteLine("Start", e);
}
return result;
}
}
+3 -3
View File
@@ -17,7 +17,7 @@ namespace APKToolGUI.Utils
{
if (mf.Contains("<application"))
{
return StringExt.Regex(@"(?<=android:name=\"")(.*?)(?=\"")", mf);
return StringExt.RegexExtract(@"(?<=android:name=\"")(.*?)(?=\"")", mf);
}
}
return "";
@@ -31,11 +31,11 @@ namespace APKToolGUI.Utils
foreach (string mf in Manifest)
{
if (String.IsNullOrEmpty(packageName))
packageName = StringExt.Regex(@"(?<=package=\"")(.*?)(?=\"")", mf);
packageName = StringExt.RegexExtract(@"(?<=package=\"")(.*?)(?=\"")", mf);
if (mf.Contains("<activity"))
{
mainActivity = StringExt.Regex(@"(?<=android:name=\"")(.*?)(?=\"")", mf);
mainActivity = StringExt.RegexExtract(@"(?<=android:name=\"")(.*?)(?=\"")", mf);
}
if (mf.Contains("android.intent.action.MAIN"))
{
-120
View File
@@ -1,120 +0,0 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using System.Windows.Markup;
namespace SaveToGameWpf.Logic.Utils
{
public static class DragDropUtils
{
private static readonly string[] EmptyStrings = new string[0];
public static string[] GetFilesDrop(this DragEventArgs args)
{
return (string[])args.Data.GetData(DataFormats.FileDrop) ?? EmptyStrings;
}
public static string[] GetFilesDrop(this DragEventArgs args, string ending)
{
// ReSharper disable once ConvertIfStatementToReturnStatement
if (string.IsNullOrEmpty(ending))
return args.GetFilesDrop();
return args.GetFilesDrop(it => it.EndsWith(ending, StringComparison.Ordinal));
}
public static string[] GetFilesDrop(this DragEventArgs args, Func<string, bool> filter)
{
var items = args.GetFilesDrop();
if (items == null)
return EmptyStrings;
return filter == null ? items : items.Where(filter).ToArray();
}
public static void CheckDragEnter(this DragEventArgs e, params string[] extensions)
{
string[] files = e.GetFilesDrop();
if (extensions == null && Directory.Exists(files[0]))
e.Effect = DragDropEffects.Copy;
else if (extensions != null && extensions.Any(ext => files[0].EndsWith(ext, StringComparison.Ordinal)))
e.Effect = DragDropEffects.Copy;
else
e.Effect = DragDropEffects.None;
}
public static bool CheckDragOver(this DragEventArgs e, params string[] extensions)
{
string[] files = e.GetFilesDrop();
if (extensions == null && Directory.Exists(files[0]))
{
e.Effect = DragDropEffects.Move;
return true;
}
else if (files.Length == 1 && extensions.Any(ext => files[0].EndsWith(ext, StringComparison.Ordinal)))
{
e.Effect = DragDropEffects.Move;
return true;
}
e.Effect = DragDropEffects.None;
return false;
}
public static bool CheckManyDragOver(this DragEventArgs e, params string[] extensions)
{
string[] files = e.GetFilesDrop();
if (extensions == null && Directory.Exists(files[0]))
{
e.Effect = DragDropEffects.Move;
return true;
}
else if (extensions != null && extensions.Any(ext => files[0].EndsWith(ext, StringComparison.Ordinal)))
{
e.Effect = DragDropEffects.Move;
return true;
}
e.Effect = DragDropEffects.None;
return false;
}
public static bool DropOneByEnd(this DragEventArgs e, Action<string> onSuccess, params string[] extensions)
{
string[] files = e.GetFilesDrop();
if (extensions == null && Directory.Exists(files[0]))
{
onSuccess(files[0]);
return true;
}
else if (extensions.Any(ext => files[0].EndsWith(ext, StringComparison.Ordinal)))
{
onSuccess(files[0]);
return true;
}
return false;
}
public static bool DropManyByEnd(this DragEventArgs e, Action<string[]> onSuccess, params string[] extensions)
{
foreach (string apk in extensions)
{
Debug.WriteLine(apk);
string[] files = e.GetFilesDrop(apk);
if (files.Length > 0)
{
onSuccess(files);
return true;
}
}
return false;
}
}
}
+16 -42
View File
@@ -1,4 +1,4 @@
using APKToolGUI;
using APKToolGUI;
using APKToolGUI.Properties;
using System;
using System.Collections.Generic;
@@ -12,63 +12,37 @@ namespace APKToolGUI.Utils
/// </summary>
public static class Log
{
#region direct logs
/// <summary>
/// log message with level VERY VERBOSE (may be disabled)
/// Active log sink. Set by the main window (<c>MainWindow.ToLog</c>) at startup.
/// </summary>
/// <param name="s">the string to log</param>
public static void vv(string s)
public static Action<ApktoolEventType, string> Output;
private static void Send(ApktoolEventType type, string s)
{
if (!Settings.Default.DebugMode) return;
FormMain.Instance.ToLog(ApktoolEventType.None, s);
Output?.Invoke(type, s);
}
/// <summary>
/// log message with level VERBOSE (may be disabled)
/// </summary>
/// <param name="s">the string to log</param>
/// <summary>log message with level VERBOSE (may be disabled)</summary>
public static void v(string s)
{
if (!Settings.Default.DebugMode) return;
FormMain.Instance.ToLog(ApktoolEventType.None, s);
Send(ApktoolEventType.None, s);
}
/// <summary>
/// log message with level DEBUG (may be disabled)
/// </summary>
/// <param name="s">the string to log</param>
/// <summary>log message with level DEBUG (may be disabled)</summary>
public static void d(string s)
{
if (!Settings.Default.DebugMode) return;
FormMain.Instance.ToLog(ApktoolEventType.None, s);
Send(ApktoolEventType.Infomation, s);
}
/// <summary>
/// log message with level INFO
/// </summary>
/// <param name="s">the string to log</param>
public static void i(string s)
{
FormMain.Instance.ToLog(ApktoolEventType.Infomation, s);
}
/// <summary>log message with level INFO</summary>
public static void i(string s) => Send(ApktoolEventType.Infomation, s);
/// <summary>
/// log message with level WARNING
/// </summary>
/// <param name="s">the string to log</param>
public static void w(string s)
{
FormMain.Instance.ToLog(ApktoolEventType.Warning, s);
}
/// <summary>log message with level WARNING</summary>
public static void w(string s) => Send(ApktoolEventType.Warning, s);
/// <summary>
/// log message with level ERROR
/// </summary>
/// <param name="s">the string to log</param>
public static void e(string s)
{
FormMain.Instance.ToLog(ApktoolEventType.Error, s);
}
#endregion
/// <summary>log message with level ERROR</summary>
public static void e(string s) => Send(ApktoolEventType.Error, s);
}
}
+9 -6
View File
@@ -33,15 +33,18 @@ namespace APKToolGUI.Utils
return Path.Combine(Path.GetDirectoryName(path), Path.GetFileNameWithoutExtension(path));
}
public static string GetRelativePath(string relativeTo, string path)
public static string GetRelativePath(string basePath, string fullPath)
{
var uri = new Uri(relativeTo);
var rel = Uri.UnescapeDataString(uri.MakeRelativeUri(new Uri(path)).ToString()).Replace(Path.AltDirectorySeparatorChar, Path.DirectorySeparatorChar);
if (rel.Contains(Path.DirectorySeparatorChar.ToString()) == false)
// Ensure both paths are absolute
basePath = Path.GetFullPath(basePath);
fullPath = Path.GetFullPath(fullPath);
if (!fullPath.StartsWith(basePath, StringComparison.OrdinalIgnoreCase))
{
rel = $".{Path.DirectorySeparatorChar}{rel}";
throw new ArgumentException("The fullPath is not within the basePath.");
}
return rel;
return fullPath.Substring(basePath.Length).TrimStart(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
}
}
}
+33 -11
View File
@@ -14,23 +14,45 @@ namespace APKToolGUI.Utils
public static void KillAllProcessesSpawnedBy(UInt32 parentProcessId)
{
// NOTE: Process Ids are reused!
ManagementObjectSearcher searcher = new ManagementObjectSearcher(
using (ManagementObjectSearcher searcher = new ManagementObjectSearcher(
"SELECT * " +
"FROM Win32_Process " +
"WHERE ParentProcessId=" + parentProcessId);
ManagementObjectCollection collection = searcher.Get();
if (collection.Count > 0)
"WHERE ParentProcessId=" + parentProcessId))
{
foreach (var item in collection)
using (ManagementObjectCollection collection = searcher.Get())
{
UInt32 childProcessId = (UInt32)item["ProcessId"];
if ((int)childProcessId != Process.GetCurrentProcess().Id)
if (collection.Count > 0)
{
Debug.WriteLine($"Kill child process {childProcessId}");
KillAllProcessesSpawnedBy(childProcessId);
foreach (var item in collection)
{
UInt32 childProcessId = (UInt32)item["ProcessId"];
if ((int)childProcessId != Process.GetCurrentProcess().Id)
{
Debug.WriteLine($"Kill child process {childProcessId}");
Process childProcess = Process.GetProcessById((int)childProcessId);
childProcess.Kill();
// Recursively kill child processes
KillAllProcessesSpawnedBy(childProcessId);
// Kill and dispose the child process
try
{
using (Process childProcess = Process.GetProcessById((int)childProcessId))
{
childProcess.Kill();
}
}
catch (ArgumentException)
{
// Process already exited
Debug.WriteLine($"Process {childProcessId} already exited");
}
catch (InvalidOperationException ex)
{
// Process is terminating or has exited
Debug.WriteLine($"Process {childProcessId} is terminating: {ex.Message}");
}
}
}
}
}
}
+33 -8
View File
@@ -1,21 +1,40 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
namespace APKToolGUI.Utils
{
public static class StringExt
{
static readonly Random random = new Random();
public static string Regex(string text, string match)
[ThreadStatic]
private static Random threadRandom;
private static Random ThreadRandom
{
Regex myRegex = new Regex(text);
Match matched = myRegex.Match(match);
get
{
if (threadRandom == null)
threadRandom = new Random(unchecked(Environment.TickCount * 31 + Thread.CurrentThread.ManagedThreadId));
return threadRandom;
}
}
/// <summary>
/// Extracts a string from the input using the provided regex pattern.
/// </summary>
/// <param name="pattern">The regex pattern to match.</param>
/// <param name="input">The input string to search.</param>
/// <returns>The matched string or empty string if no match found.</returns>
public static string RegexExtract(string pattern, string input)
{
Regex regex = new Regex(pattern);
Match matched = regex.Match(input);
return matched.ToString();
}
@@ -23,14 +42,14 @@ namespace APKToolGUI.Utils
{
const string chars = "abcdefghijklmnopqrstuvwxyz";
return new string(Enumerable.Repeat(chars, length)
.Select(s => s[random.Next(s.Length)]).ToArray());
.Select(s => s[ThreadRandom.Next(s.Length)]).ToArray());
}
public static string RandStrWithCaps(int length)
{
const string chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
return new string(Enumerable.Repeat(chars, length)
.Select(s => s[random.Next(s.Length)]).ToArray());
.Select(s => s[ThreadRandom.Next(s.Length)]).ToArray());
}
/// <summary>
@@ -64,8 +83,14 @@ namespace APKToolGUI.Utils
if (text.Length < 1) return text;
return text.Remove(text.ToString().LastIndexOf(character), character.Length);
}
catch
catch (ArgumentOutOfRangeException ex)
{
Debug.WriteLine($"[StringExt] Character not found in text: {ex.Message}");
return text;
}
catch (Exception ex)
{
Debug.WriteLine($"[StringExt] Failed to remove last character: {ex.Message}");
return text;
}
}
+3 -10
View File
@@ -6,6 +6,7 @@ using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Documents;
namespace APKToolGUI.Utils
{
@@ -145,15 +146,6 @@ namespace APKToolGUI.Utils
public static void ExtractDirectory(string path, string folderName, string destination, bool flattenFoldersOnExtract = false)
{
//using (ZipFile zip = ZipFile.Read(path))
//{
// bool chkresult2 = zip.Any(entry => entry.FileName.Contains(folderName));
// if (chkresult2)
// {
// zip.FlattenFoldersOnExtract = flattenFoldersOnExtract;
// zip.ExtractSelectedEntries("name = *", folderName, destination, ExtractExistingFileAction.OverwriteSilently);
// }
//}
using (ZipFile zip = ZipFile.Read(path))
{
zip.FlattenFoldersOnExtract = flattenFoldersOnExtract;
@@ -163,5 +155,6 @@ namespace APKToolGUI.Utils
}
}
}
}
}
}
+47 -7
View File
@@ -185,7 +185,7 @@
<value>0</value>
</setting>
<setting name="Decode_ApiLevel" serializeAs="String">
<value>29</value>
<value>4</value>
</setting>
<setting name="Build_ApiLevel" serializeAs="String">
<value>29</value>
@@ -221,7 +221,7 @@
<value>False</value>
</setting>
<setting name="Build_UseAapt2" serializeAs="String">
<value>True</value>
<value>False</value>
</setting>
<setting name="PlaySoundWhenDone" serializeAs="String">
<value>False</value>
@@ -244,9 +244,6 @@
<setting name="Sign_OverwriteInputFile" serializeAs="String">
<value>False</value>
</setting>
<setting name="Decode_UseApkEditorMergeApk" serializeAs="String">
<value>True</value>
</setting>
<setting name="Adb_SetVendor" serializeAs="String">
<value>False</value>
</setting>
@@ -280,6 +277,33 @@
<setting name="CustomJVMArgs" serializeAs="String">
<value>-Dfile.encoding=UTF8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true</value>
</setting>
<setting name="SplitApk_InputFile" serializeAs="String">
<value />
</setting>
<setting name="UseApkeditor" serializeAs="String">
<value>False</value>
</setting>
<setting name="Adb_OverrideAbi" serializeAs="String">
<value>0</value>
</setting>
<setting name="Adb_SetOverrideAbi" serializeAs="String">
<value>False</value>
</setting>
<setting name="Build_Jobs" serializeAs="String">
<value>4</value>
</setting>
<setting name="Decode_Jobs" serializeAs="String">
<value>4</value>
</setting>
<setting name="Decode_SetJobs" serializeAs="String">
<value>False</value>
</setting>
<setting name="Build_SetJobs" serializeAs="String">
<value>False</value>
</setting>
<setting name="Sign_KeyPassword" serializeAs="String">
<value />
</setting>
</APKToolGUI.Properties.Settings>
</userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup>
@@ -287,7 +311,7 @@
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
<bindingRedirect oldVersion="0.0.0.0-6.0.3.0" newVersion="6.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WinCopies.WindowsAPICodePack.Win32Native" publicKeyToken="ac0f4cf54a027a4d" culture="neutral" />
@@ -299,7 +323,23 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.5.0" newVersion="4.0.5.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Bcl.HashCode" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Text.Encoding.CodePages" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.10" newVersion="9.0.0.10" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Permissions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.0.10" newVersion="9.0.0.10" />
</dependentAssembly>
</assemblyBinding>
</runtime>
+19 -13
View File
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Costura.Fody" version="5.7.0" targetFramework="net48" developmentDependency="true" />
<package id="DarkNet" version="2.3.0" targetFramework="net48" />
<package id="DotNetZip" version="1.16.0" targetFramework="net48" />
<package id="Fody" version="6.8.0" targetFramework="net48" developmentDependency="true" />
<package id="Costura.Fody" version="6.0.0" targetFramework="net48" developmentDependency="true" />
<package id="Fody" version="6.9.3" targetFramework="net48" developmentDependency="true" />
<package id="Microsoft.Bcl.HashCode" version="6.0.0" targetFramework="net48" />
<package id="Microsoft.NETCore.Platforms" version="7.0.4" targetFramework="net48" />
<package id="Microsoft.Win32.Primitives" version="4.3.0" targetFramework="net48" />
<package id="Microsoft-WindowsAPICodePack-Core" version="1.1.5" targetFramework="net48" />
@@ -12,54 +11,61 @@
<package id="Ookii.Dialogs.WinForms" version="4.0.0" targetFramework="net48" />
<package id="OSVersionExt" version="3.0.0" targetFramework="net48" />
<package id="PortableSettingsProvider" version="0.2.5" targetFramework="net48" />
<package id="ProDotNetZip" version="1.20.0" targetFramework="net48" />
<package id="Resource.Embedder" version="2.2.0" targetFramework="net48" />
<package id="ResourceLoader" version="3.2.4" targetFramework="net48" />
<package id="ResourceLoader" version="3.3.1" targetFramework="net48" />
<package id="System.AppContext" version="4.3.0" targetFramework="net48" />
<package id="System.Buffers" version="4.5.1" targetFramework="net48" />
<package id="System.Buffers" version="4.6.1" targetFramework="net48" />
<package id="System.Collections" version="4.3.0" targetFramework="net48" />
<package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net48" />
<package id="System.Collections.Immutable" version="9.0.10" targetFramework="net48" />
<package id="System.Console" version="4.3.1" targetFramework="net48" />
<package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="net48" />
<package id="System.Diagnostics.DiagnosticSource" version="7.0.2" targetFramework="net48" />
<package id="System.Diagnostics.DiagnosticSource" version="9.0.10" targetFramework="net48" />
<package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="net48" />
<package id="System.Diagnostics.Tracing" version="4.3.0" targetFramework="net48" />
<package id="System.Formats.Nrbf" version="9.0.10" targetFramework="net48" />
<package id="System.Globalization" version="4.3.0" targetFramework="net48" />
<package id="System.Globalization.Calendars" version="4.3.0" targetFramework="net48" />
<package id="System.IO" version="4.3.0" targetFramework="net48" />
<package id="System.IO.Compression" version="4.3.0" targetFramework="net48" />
<package id="System.IO.Compression.ZipFile" version="4.3.0" targetFramework="net48" />
<package id="System.IO.FileSystem" version="4.3.0" targetFramework="net48" />
<package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="net48" />
<package id="System.Linq" version="4.3.0" targetFramework="net48" />
<package id="System.Linq.Expressions" version="4.3.0" targetFramework="net48" />
<package id="System.Memory" version="4.5.5" targetFramework="net48" />
<package id="System.Memory" version="4.6.3" targetFramework="net48" />
<package id="System.Net.Http" version="4.3.4" targetFramework="net48" />
<package id="System.Net.Primitives" version="4.3.1" targetFramework="net48" />
<package id="System.Net.Sockets" version="4.3.0" targetFramework="net48" />
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net48" />
<package id="System.Numerics.Vectors" version="4.6.1" targetFramework="net48" />
<package id="System.ObjectModel" version="4.3.0" targetFramework="net48" />
<package id="System.Reflection" version="4.3.0" targetFramework="net48" />
<package id="System.Reflection.Extensions" version="4.3.0" targetFramework="net48" />
<package id="System.Reflection.Metadata" version="9.0.10" targetFramework="net48" />
<package id="System.Reflection.Primitives" version="4.3.0" targetFramework="net48" />
<package id="System.Resources.Extensions" version="7.0.0" targetFramework="net48" />
<package id="System.Resources.Extensions" version="9.0.10" targetFramework="net48" />
<package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="net48" />
<package id="System.Runtime" version="4.3.1" targetFramework="net48" />
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net48" />
<package id="System.Runtime.CompilerServices.Unsafe" version="6.1.2" targetFramework="net48" />
<package id="System.Runtime.Extensions" version="4.3.1" targetFramework="net48" />
<package id="System.Runtime.Handles" version="4.3.0" targetFramework="net48" />
<package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="net48" />
<package id="System.Runtime.InteropServices.RuntimeInformation" version="4.3.0" targetFramework="net48" />
<package id="System.Runtime.Numerics" version="4.3.0" targetFramework="net48" />
<package id="System.Security.AccessControl" version="6.0.1" targetFramework="net48" />
<package id="System.Security.Cryptography.Algorithms" version="4.3.1" targetFramework="net48" />
<package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net48" />
<package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net48" />
<package id="System.Security.Cryptography.X509Certificates" version="4.3.2" targetFramework="net48" />
<package id="System.Security.Permissions" version="9.0.10" targetFramework="net48" />
<package id="System.Security.Principal.Windows" version="5.0.0" targetFramework="net48" />
<package id="System.Text.Encoding" version="4.3.0" targetFramework="net48" />
<package id="System.Text.Encoding.CodePages" version="9.0.10" targetFramework="net48" />
<package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="net48" />
<package id="System.Text.RegularExpressions" version="4.3.1" targetFramework="net48" />
<package id="System.Threading" version="4.3.0" targetFramework="net48" />
<package id="System.Threading.Tasks" version="4.3.0" targetFramework="net48" />
<package id="System.Threading.Timer" version="4.3.0" targetFramework="net48" />
<package id="System.ValueTuple" version="4.6.1" targetFramework="net48" />
<package id="System.Xml.ReaderWriter" version="4.3.1" targetFramework="net48" />
<package id="System.Xml.XDocument" version="4.3.0" targetFramework="net48" />
</packages>
+5
View File
@@ -0,0 +1,5 @@
// label20
//
resources.ApplyResources(this.label20, "label20");
this.label20.Name = "label20";
this.label20.AutoSize = true;
+42 -44
View File
@@ -10,28 +10,28 @@ It is a tool for reverse engineering 3rd party, closed, binary Android apps. It
# Download links
https://github.com/AndnixSH/APKToolGUI/releases
Any such report from your antivirus is a false positive and is due to how the application works. You must manually add APKToolGUI.exe to your antivirus's whitelist/exclusion list.
Any alert from your antivirus regarding this application is a **false positive**, caused by how the application operates. To resolve this, manually add **APKToolGUI.exe** to your antiviruss whitelist or exclusion list.
If you don't believe this then try to compile the app by yourself or simply don't use it until you can confirm it is safe by working directly with your antiirus provider.
If you remain unsure, you can compile the app yourself or refrain from using it until you confirm its safety with your antivirus provider.
# Requirements
- Windows 7 32-bit/64-bit and above
- [Java](https://www.java.com/en/) or [JDK](https://www.oracle.com/java/technologies/downloads/) 8 or above. Using latest JDK is not really necessary, it tends to cause unexpected issues. Java 8 and 17 (long-term support release) is enough. Use 64-bit version if your system is 64-bit
- [Java](https://www.java.com/en/) or [JDK](https://www.oracle.com/java/technologies/downloads/) 8 or above. Using latest JDK is not really necessary. Java 8 and 25 (long-term support release) is enough. Use 64-bit version if your system is 64-bit
- [.NET Framework 4.8](https://dotnet.microsoft.com/en-us/download/dotnet-framework/net48) (Windows 8 and above already have it preinstalled)
# Features
- Decompile APK
- Decompile and merge split APK/XAPK/APKS/ZIP/APKM using build-in split merging or APKEditor.jar (Default)
- Compile APK
- Decompile & compile APK using Apktool
- Decompile APK/XAPK/APKS/ZIP/APKM & compile APK using APKEditor.jar. Automatically detect if APK was decompiled using Apktool or APKEditor
- Merge XAPK/APKS/ZIP/APKM using APKEditor.jar
- Sign APK
- Zipalign APK
- Adb
- ADB
- Framework
- Drag and drop
- APK info
- Log output
- All features from [Apktool](https://ibotpeaches.github.io/Apktool/documentation/).
- Additional features that can fix some Apktool errors, such as removing DUMMY_APKTOOL, clear framework before decompiling
- All other features from [Apktool](https://ibotpeaches.github.io/Apktool/documentation/).
- Fix some Apktool errors, such as removing DUMMY_APKTOOL, clear framework before decompiling
- Multi language
- Right-click context menu
- Create unsigned APK for Core Patch
@@ -39,24 +39,15 @@ If you don't believe this then try to compile the app by yourself or simply don'
- Long path support (Windows 10 and above)
# Languages
- Brazilian Portuguese (Incomplete)
- English
- Brazilian Portuguese (Incomplete)
- Hungary (Incomplete)
- Russian (Incomplete)
- Chinese Simplified (Incomplete)
- German
### Translation
If you like to help translate with your native language, I recommend using Visual Studio 2022. You don't need any programming knowledge, you just edit the GUI and the `.resx` files
Create new `.resx` file under `Languages` folder, and `Forms/FormXXX.cs/`. To create a new `.resx` under `Forms/FormXXX.cs/`, open the form and select the form to show the properties. In the properties, scroll down until you see Language, and select any language you would like to translate.
<details>
<summary>Video tutorial</summary>
https://user-images.githubusercontent.com/40742924/227244601-6f796141-ac2d-4c60-b5cd-7f6872604cd7.mp4
</details>
If you would like to help with translations in your native language, I recommend using Visual Studio. No programming knowledge is required; you just need to use it to edit or create a new `.resx` file in the `Languages` folder.
If you can't use Visual Studio, you can use translator tools like [resxtranslator](https://github.com/HakanL/resxtranslator) or [RESX Translator automat](https://www.utilstudio.com/en/resx-translator/), but make sure the `.resx` file is added to [APKToolGUI.csproj](https://github.com/AndnixSH/APKToolGUI/blob/master/APKToolGUI/APKToolGUI.csproj), otherwise Visual Studio would not be able to detect it
@@ -72,50 +63,57 @@ For Framework/system apps related issues, check on [XDA Forum](https://forum.xda
Anything else, [create a new issue](https://github.com/AndnixSH/APKToolGUI/issues)
# FAQ
##### Q: Can it be ported to other OS like Linux?
A: Notthing is impossible, but it's not easy as long as Microsoft not supporting WinForm for other platforms, making .NET Core useless, unlike Java FX that supports other platforms since decades. If you know, feel free to open an issue. Until then, use [WineHQ](https://www.winehq.org/) or similar to run exe
##### Can it be ported to macOS or Linux?
Microsoft has not made it easy to port, and .NET Core remains impractical for this purpose. While I could use Avalonia UI as an alternative, I currently dont have the time to port the entire project. Pull requests are welcome!
##### Q: How to update Apktool?
A: Download [Apktool.jar](https://github.com/iBotPeaches/Apktool/releases) and replace it on Resources folder
In the meantime, you can use [WineHQ](https://www.winehq.org/) or similar tools to run the .exe file.
##### Q: How to update Baksmali/Smali?
A: Download [Baksmali.jar/Smali.jar](https://bitbucket.org/JesusFreke/smali/downloads/) and replace it on Resources folder
##### How to update Apktool?
Download [Apktool.jar](https://github.com/iBotPeaches/Apktool/releases) and replace it on Resources folder
##### Q: How to reset?
A: Simply delete the config.xml file from the directory of the executeable
##### How to update Baksmali/Smali?
Download [Baksmali.jar/Smali.jar](https://bitbucket.org/JesusFreke/smali/downloads/) and replace it on Resources folder
##### Q: Can you make an automatic APK injecting tool?
A: No, I'm not interested.
##### How to reset?
Simply delete the config.xml file from the directory of the executeable
##### Q: Can you implement to convert APK to AAB?
A: No, apktool is about recompiling, not converting to other formats. AAB is only used for distributing an application to Play Store, so it is not directly installable. If you really want to convert APK to ABB, try APK2AAB tool https://github.com/sensei-z/APK2AAB
##### Can you help me with modding APKs in general?
No, I do not provide support for APK modding.
##### Q: I don't like split APK. Where can I get single APK instead?
A: Download from [Apkcombo's APK downloader](https://apkcombo.com/downloader/), or [Apkpure](https://apkpure.com/) (Choose APK instead XAPK)
##### Can you make an automatic APK injecting tool?
No, I'm not interested.
##### Q: Can you help me with modding APK in general?
A: Sorry, I don't offer support with it.
##### Can you implement APK to AAB conversion?
No, APKTool is designed for decompiling and recompiling APKs, not for converting between formats. AAB (Android App Bundle) is used exclusively for distributing apps on the Google Play Store and is not directly installable on devices.
##### Q: Can you implement features to protect/pack/obfuscate APK?
A: No, APK protection is beyond the scope of this tool
If you need to convert an APK to AAB, you can try using a tool like [APK2AAB](https://github.com/sensei-z/APK2AAB)
##### Q: Can you implement features to deobfuscate/unpack APK or bypass anti-cheat/security?
A: No, they are also beyond the scope of this tool. I don't condone bypassing such protections
##### Can you implement features to protect, pack, or obfuscate APKs?
No, APK protection is beyond the scope of this tool.
##### Can you implement features to deobfuscate, unpack APKs, or bypass anti-cheat/security?
No, these features are also beyond the scope of this tool. I do not support or condone bypassing such protections.
# Development
This project is written in C#
Use Visual Studio 2019 and above. NET Framework 4.8 SDK is required
Use Visual Studio 2022 and above. NET Framework 4.8 SDK is required
# Contributing
Contributions are welcome! Please ensure you:
- Submit pull requests with clear, detailed descriptions.
- Open an issue to discuss significant changes before implementing them.
- Do not submit pull requests for bypass or protection features.
# Credits
- AndnixSH
- INF1NUM (Original author of [APKToolGUI](https://github.com/INF1NUM/APKToolGUI))
- iBotPeaches ([Apktool CLI](https://ibotpeaches.github.io/Apktool/))
- REAndroid ([APKEditor](https://github.com/REAndroid/APKEditor))
- shadow578 ([ApksMerger](https://github.com/shadow578/ApksMerger))
# Disclaimer
Same as Apktool by iBotPeaches, It is NOT intended for piracy and other non-legal uses. It could be used for localizing, adding some features or support for custom platforms and other GOOD purposes. Just try to be fair with authors of an app, that you use and probably like.
# License
The original repo does not have a license but I have permission from the author to use ane distriute this project as open source, without license. He doesn't seems to know much about licensing. For this project, I'll just add license as unlicensed
The original repo does not have a license but I have permission from the author to use ane distribute this project as "open source"... I don't know what license to use so I'll just add license as unlicensed
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More