Added option to overwrite input apk of signing

This commit is contained in:
q3b5q3
2022-12-31 17:14:20 +01:00
parent 0e7e911cc4
commit 7accee6cc1
12 changed files with 193 additions and 127 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ namespace APKToolGUI
alias = String.Format("--ks-key-alias {0}", Settings.Default.Sign_Alias);
string outputDir = null;
if (Settings.Default.Sign_UseOutputDir)
if (Settings.Default.Sign_UseOutputDir || !Settings.Default.Sign_OverwriteInputFile)
outputDir = String.Format("--out \"{0}\"", output);
string v1 = null;
+11
View File
@@ -213,6 +213,7 @@
this.textBox_BUILD_AaptPath = new System.Windows.Forms.TextBox();
this.textBox_BUILD_FrameDir = new System.Windows.Forms.TextBox();
this.checkBox_BUILD_UseFramework = new System.Windows.Forms.CheckBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.autoDelIdsigChkBox = new System.Windows.Forms.CheckBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.aliasTxtBox = new System.Windows.Forms.TextBox();
@@ -855,6 +856,7 @@
//
// groupBox_SIGN_Options
//
this.groupBox_SIGN_Options.Controls.Add(this.checkBox1);
this.groupBox_SIGN_Options.Controls.Add(this.autoDelIdsigChkBox);
this.groupBox_SIGN_Options.Controls.Add(this.schemev4ComboBox);
this.groupBox_SIGN_Options.Controls.Add(this.label27);
@@ -1683,6 +1685,14 @@
this.checkBox_BUILD_UseFramework.Name = "checkBox_BUILD_UseFramework";
this.checkBox_BUILD_UseFramework.UseVisualStyleBackColor = true;
//
// checkBox1
//
resources.ApplyResources(this.checkBox1, "checkBox1");
this.checkBox1.Checked = global::APKToolGUI.Properties.Settings.Default.Sign_OverwriteInputFile;
this.checkBox1.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::APKToolGUI.Properties.Settings.Default, "Sign_OverwriteInputFile", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.checkBox1.Name = "checkBox1";
this.checkBox1.UseVisualStyleBackColor = true;
//
// autoDelIdsigChkBox
//
resources.ApplyResources(this.autoDelIdsigChkBox, "autoDelIdsigChkBox");
@@ -2212,6 +2222,7 @@
private System.Windows.Forms.ToolStripMenuItem baksmaliIssuesToolStripMenuItem;
private System.Windows.Forms.CheckBox autoDelIdsigChkBox;
private System.Windows.Forms.ToolStripMenuItem openTempFolderToolStripMenuItem;
private System.Windows.Forms.CheckBox checkBox1;
}
}
+5 -6
View File
@@ -156,13 +156,12 @@ namespace APKToolGUI
string outputDir = file;
if (Settings.Default.Zipalign_UseOutputDir && !IgnoreOutputDirContextMenu)
outputDir = Path.Combine(Settings.Default.Sign_OutputDir, Path.GetFileName(inputFile));
if (!Settings.Default.Sign_OverwriteInputFile)
outputDir = PathUtils.GetDirectoryNameWithoutExtension(outputDir) + "_signed.apk";
if (Sign(inputFile, outputDir) == 0)
{
if (Settings.Default.Zipalign_UseOutputDir && !IgnoreOutputDirContextMenu)
ToLog(ApktoolEventType.None, String.Format(Language.SignSuccessfullyCompleted, inputFile));
else
ToLog(ApktoolEventType.None, String.Format(Language.SignSuccessfullyCompleted, outputDir));
ToLog(ApktoolEventType.None, String.Format(Language.SignSuccessfullyCompleted, outputDir));
if (Settings.Default.AutoDeleteIdsigFile)
{
@@ -275,7 +274,7 @@ namespace APKToolGUI
#if DEBUG
ToLog(ApktoolEventType.Warning, Language.ErrorGettingApkInfo + "\n" + ex.ToString());
#else
ToLog(ApktoolEventType.Warning, Language.ErrorGettingApkInfo);
ToLog(ApktoolEventType.Warning, Language.ErrorGettingApkInfo);
#endif
}
}
@@ -517,7 +516,7 @@ namespace APKToolGUI
if (ApkFixer.RemoveApkToolDummies(outputDir))
ToLog(ApktoolEventType.None, Language.RemoveApkToolDummies);
}
ToLog(ApktoolEventType.Done, Language.AllDone);
ToLog(ApktoolEventType.Done, "=====[ " + Language.AllDone + " ]=====");
}
else
ToLog(ApktoolEventType.Error, Language.ErrorDecompiling);
+59 -29
View File
@@ -3283,6 +3283,36 @@ and change target SDK to 29</value>
<data name="tabPageSign.AutoScroll" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkBox1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkBox1.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="checkBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>8, 329</value>
</data>
<data name="checkBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>126, 17</value>
</data>
<data name="checkBox1.TabIndex" type="System.Int32, mscorlib">
<value>30</value>
</data>
<data name="checkBox1.Text" xml:space="preserve">
<value>Overwrite input file</value>
</data>
<data name="&gt;&gt;checkBox1.Name" xml:space="preserve">
<value>checkBox1</value>
</data>
<data name="&gt;&gt;checkBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;checkBox1.Parent" xml:space="preserve">
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;checkBox1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="autoDelIdsigChkBox.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@@ -3311,7 +3341,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;autoDelIdsigChkBox.ZOrder" xml:space="preserve">
<value>0</value>
<value>1</value>
</data>
<data name="schemev4ComboBox.Items" xml:space="preserve">
<value>Default</value>
@@ -3341,7 +3371,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;schemev4ComboBox.ZOrder" xml:space="preserve">
<value>1</value>
<value>2</value>
</data>
<data name="label27.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3371,7 +3401,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;label27.ZOrder" xml:space="preserve">
<value>2</value>
<value>3</value>
</data>
<data name="schemev3ComboBox.Items" xml:space="preserve">
<value>Default</value>
@@ -3401,7 +3431,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;schemev3ComboBox.ZOrder" xml:space="preserve">
<value>3</value>
<value>4</value>
</data>
<data name="label26.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3431,7 +3461,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;label26.ZOrder" xml:space="preserve">
<value>4</value>
<value>5</value>
</data>
<data name="schemev2ComboBox.Items" xml:space="preserve">
<value>Default</value>
@@ -3461,7 +3491,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;schemev2ComboBox.ZOrder" xml:space="preserve">
<value>5</value>
<value>6</value>
</data>
<data name="label25.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3491,7 +3521,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;label25.ZOrder" xml:space="preserve">
<value>6</value>
<value>7</value>
</data>
<data name="schemev1ComboBox.Items" xml:space="preserve">
<value>Default</value>
@@ -3521,7 +3551,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;schemev1ComboBox.ZOrder" xml:space="preserve">
<value>7</value>
<value>8</value>
</data>
<data name="label24.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3551,7 +3581,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;label24.ZOrder" xml:space="preserve">
<value>8</value>
<value>9</value>
</data>
<data name="textBox3.Location" type="System.Drawing.Point, System.Drawing">
<value>249, 180</value>
@@ -3572,7 +3602,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;textBox3.ZOrder" xml:space="preserve">
<value>9</value>
<value>10</value>
</data>
<data name="selectKeyStoreFileBtn.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
@@ -3602,7 +3632,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;selectKeyStoreFileBtn.ZOrder" xml:space="preserve">
<value>10</value>
<value>11</value>
</data>
<data name="aliasTxtBox.Location" type="System.Drawing.Point, System.Drawing">
<value>247, 98</value>
@@ -3623,7 +3653,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;aliasTxtBox.ZOrder" xml:space="preserve">
<value>11</value>
<value>12</value>
</data>
<data name="useAliasChkBox.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3653,7 +3683,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;useAliasChkBox.ZOrder" xml:space="preserve">
<value>12</value>
<value>13</value>
</data>
<data name="label22.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3683,7 +3713,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;label22.ZOrder" xml:space="preserve">
<value>13</value>
<value>14</value>
</data>
<data name="keyStoreFileTxtBox.Location" type="System.Drawing.Point, System.Drawing">
<value>249, 152</value>
@@ -3704,7 +3734,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;keyStoreFileTxtBox.ZOrder" xml:space="preserve">
<value>14</value>
<value>15</value>
</data>
<data name="label21.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3740,7 +3770,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;label21.ZOrder" xml:space="preserve">
<value>15</value>
<value>16</value>
</data>
<data name="label20.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3776,7 +3806,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;label20.ZOrder" xml:space="preserve">
<value>16</value>
<value>17</value>
</data>
<data name="useKeyStoreChkBox.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3806,7 +3836,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;useKeyStoreChkBox.ZOrder" xml:space="preserve">
<value>17</value>
<value>18</value>
</data>
<data name="useSigningOutputDir.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3836,7 +3866,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;useSigningOutputDir.ZOrder" xml:space="preserve">
<value>18</value>
<value>19</value>
</data>
<data name="label_SIGN_PrivateKey.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3872,7 +3902,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;label_SIGN_PrivateKey.ZOrder" xml:space="preserve">
<value>19</value>
<value>20</value>
</data>
<data name="label_SIGN_PublicKey.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
@@ -3908,7 +3938,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;label_SIGN_PublicKey.ZOrder" xml:space="preserve">
<value>20</value>
<value>21</value>
</data>
<data name="button_SIGN_BrowseOutputFile.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
@@ -3938,7 +3968,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;button_SIGN_BrowseOutputFile.ZOrder" xml:space="preserve">
<value>21</value>
<value>22</value>
</data>
<data name="textBox_SIGN_OutputFile.Location" type="System.Drawing.Point, System.Drawing">
<value>247, 208</value>
@@ -3962,7 +3992,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;textBox_SIGN_OutputFile.ZOrder" xml:space="preserve">
<value>22</value>
<value>23</value>
</data>
<data name="button_SIGN_BrowsePublicKey.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
@@ -3992,7 +4022,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;button_SIGN_BrowsePublicKey.ZOrder" xml:space="preserve">
<value>23</value>
<value>24</value>
</data>
<data name="button_SIGN_BrowsePrivateKey.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
@@ -4022,7 +4052,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;button_SIGN_BrowsePrivateKey.ZOrder" xml:space="preserve">
<value>24</value>
<value>25</value>
</data>
<data name="textBox_SIGN_PublicKey.Location" type="System.Drawing.Point, System.Drawing">
<value>247, 42</value>
@@ -4046,7 +4076,7 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;textBox_SIGN_PublicKey.ZOrder" xml:space="preserve">
<value>25</value>
<value>26</value>
</data>
<data name="textBox_SIGN_PrivateKey.Location" type="System.Drawing.Point, System.Drawing">
<value>247, 69</value>
@@ -4070,13 +4100,13 @@ and change target SDK to 29</value>
<value>groupBox_SIGN_Options</value>
</data>
<data name="&gt;&gt;textBox_SIGN_PrivateKey.ZOrder" xml:space="preserve">
<value>26</value>
<value>27</value>
</data>
<data name="groupBox_SIGN_Options.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 6</value>
<value>7, 6</value>
</data>
<data name="groupBox_SIGN_Options.Size" type="System.Drawing.Size, System.Drawing">
<value>556, 348</value>
<value>556, 385</value>
</data>
<data name="groupBox_SIGN_Options.TabIndex" type="System.Int32, mscorlib">
<value>17</value>
+89 -89
View File
@@ -32,26 +32,26 @@
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label6 = new System.Windows.Forms.Label();
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.buttonCustomTempLocation = new System.Windows.Forms.Button();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.buttonCustomJavaLocation = new System.Windows.Forms.Button();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.checkBoxCheckUpdateStartup = new System.Windows.Forms.CheckBox();
this.groupBoxLanguage = new System.Windows.Forms.GroupBox();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.groupBoxContextMenu = new System.Windows.Forms.GroupBox();
this.ignoreOutputContextMenuBox = new System.Windows.Forms.CheckBox();
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.checkBox5 = new System.Windows.Forms.CheckBox();
this.label6 = new System.Windows.Forms.Label();
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();
@@ -92,6 +92,44 @@
this.groupBox1.Name = "groupBox1";
this.groupBox1.TabStop = false;
//
// label6
//
resources.ApplyResources(this.label6, "label6");
this.label6.ForeColor = System.Drawing.Color.DimGray;
this.label6.Name = "label6";
//
// 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
//
resources.ApplyResources(this.customTempLocationTxtBox, "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));
this.customTempLocationTxtBox.Name = "customTempLocationTxtBox";
this.customTempLocationTxtBox.Text = global::APKToolGUI.Properties.Settings.Default.TempDir;
//
// textBoxCustomJavaLocation
//
resources.ApplyResources(this.textBoxCustomJavaLocation, "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));
this.textBoxCustomJavaLocation.Name = "textBoxCustomJavaLocation";
this.textBoxCustomJavaLocation.Text = global::APKToolGUI.Properties.Settings.Default.JavaExe;
//
// buttonCustomTempLocation
//
resources.ApplyResources(this.buttonCustomTempLocation, "buttonCustomTempLocation");
@@ -99,6 +137,14 @@
this.buttonCustomTempLocation.UseVisualStyleBackColor = true;
this.buttonCustomTempLocation.Click += new System.EventHandler(this.buttonCustomTempLocation_Click);
//
// 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;
//
// buttonCustomJavaLocation
//
resources.ApplyResources(this.buttonCustomJavaLocation, "buttonCustomJavaLocation");
@@ -106,6 +152,31 @@
this.buttonCustomJavaLocation.UseVisualStyleBackColor = true;
this.buttonCustomJavaLocation.Click += new System.EventHandler(this.buttonCustomJavaLocation_Click);
//
// 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.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;
//
// groupBoxLanguage
//
resources.ApplyResources(this.groupBoxLanguage, "groupBoxLanguage");
@@ -130,6 +201,14 @@
this.groupBoxContextMenu.Name = "groupBoxContextMenu";
this.groupBoxContextMenu.TabStop = false;
//
// 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;
//
// labelAdminRights
//
resources.ApplyResources(this.labelAdminRights, "labelAdminRights");
@@ -163,85 +242,6 @@
this.buttonОК.UseVisualStyleBackColor = true;
this.buttonОК.Click += new System.EventHandler(this.buttonОК_Click);
//
// 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;
//
// label6
//
resources.ApplyResources(this.label6, "label6");
this.label6.ForeColor = System.Drawing.Color.DimGray;
this.label6.Name = "label6";
//
// 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
//
resources.ApplyResources(this.customTempLocationTxtBox, "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));
this.customTempLocationTxtBox.Name = "customTempLocationTxtBox";
this.customTempLocationTxtBox.Text = global::APKToolGUI.Properties.Settings.Default.TempDir;
//
// textBoxCustomJavaLocation
//
resources.ApplyResources(this.textBoxCustomJavaLocation, "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));
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.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");
+5 -2
View File
@@ -550,13 +550,16 @@
<value>6, 45</value>
</data>
<data name="ignoreOutputContextMenuBox.Size" type="System.Drawing.Size, System.Drawing">
<value>263, 17</value>
<value>278, 17</value>
</data>
<data name="ignoreOutputContextMenuBox.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="ignoreOutputContextMenuBox.Text" xml:space="preserve">
<value>Use default output directory for context menu</value>
<value>Ignore custom output directory for context menu</value>
</data>
<data name="ignoreOutputContextMenuBox.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleCenter</value>
</data>
<data name="&gt;&gt;ignoreOutputContextMenuBox.Name" xml:space="preserve">
<value>ignoreOutputContextMenuBox</value>
+2
View File
@@ -146,6 +146,8 @@ namespace APKToolGUI.Handlers
string outputDir = apkFile;
if (Settings.Default.Zipalign_UseOutputDir)
outputDir = Path.Combine(Settings.Default.Sign_OutputDir, Path.GetFileName(inputFile));
if (!Settings.Default.Sign_OverwriteInputFile)
outputDir = PathUtils.GetDirectoryNameWithoutExtension(outputDir) + "_signed.apk";
if (main.Sign(inputFile, outputDir) == 0)
{
@@ -125,6 +125,8 @@ namespace APKToolGUI.Handlers
string outputDir = inputFile;
if (Settings.Default.Zipalign_UseOutputDir)
outputDir = Path.Combine(Settings.Default.Sign_OutputDir, Path.GetFileName(inputFile));
if (!Settings.Default.Sign_OverwriteInputFile)
outputDir = PathUtils.GetDirectoryNameWithoutExtension(outputDir) + "_signed.apk";
if (main.Sign(inputFile, outputDir) == 0)
{
+12
View File
@@ -1121,5 +1121,17 @@ namespace APKToolGUI.Properties {
this["Utf8FilenameSupport"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool Sign_OverwriteInputFile {
get {
return ((bool)(this["Sign_OverwriteInputFile"]));
}
set {
this["Sign_OverwriteInputFile"] = value;
}
}
}
}
+3
View File
@@ -242,5 +242,8 @@
<Setting Name="Utf8FilenameSupport" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="Sign_OverwriteInputFile" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>
+3
View File
@@ -247,6 +247,9 @@
<setting name="Utf8FilenameSupport" serializeAs="String">
<value>False</value>
</setting>
<setting name="Sign_OverwriteInputFile" serializeAs="String">
<value>False</value>
</setting>
</APKToolGUI.Properties.Settings>
</userSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /></startup>
+1
View File
@@ -14,6 +14,7 @@
- Improved temp logic
- Improved Java logic
- Improved Apkinfo
- Added option to overwrite input apk of signing
3.0.2.0