Compare commits

...

13 Commits
v1.3 ... v1.5

Author SHA1 Message Date
nerdunit
ceb2e5954e 1.5 2020-07-20 14:16:59 -07:00
nerdunit
6eba1c46bf Add files via upload 2020-07-18 04:46:02 -07:00
nerdunit
781ffbbc90 Update version 2020-07-18 04:45:46 -07:00
nerdunit
6690099982 Add files via upload 2020-07-17 13:55:34 -07:00
nerdunit
6726de7d26 Update donators.txt 2020-07-17 13:55:04 -07:00
nerdunit
401c9c22dd Update donators.txt 2020-07-17 13:50:26 -07:00
nerdunit
6e6341e11f Add files via upload 2020-07-17 13:47:37 -07:00
nerdunit
cc09e41622 Add files via upload 2020-07-17 13:08:53 -07:00
nerdunit
059d195f21 Add files via upload 2020-07-17 12:31:32 -07:00
nerdunit
cf334f00cd Add files via upload 2020-07-16 12:36:19 -07:00
nerdunit
f0af68b228 Add files via upload 2020-07-16 12:01:21 -07:00
nerdunit
92a1da1939 v1.3 2020-07-16 11:45:15 -07:00
nerdunit
bfce0e54ec Update version 2020-07-16 11:45:12 -07:00
18 changed files with 970 additions and 378 deletions

View File

@@ -109,6 +109,9 @@
<Reference Include="MetroFramework.Fonts, Version=1.2.0.3, Culture=neutral, PublicKeyToken=5f91a84759bf584a, processorArchitecture=MSIL">
<HintPath>packages\MetroFramework.Fonts.1.2.0.3\lib\net40\MetroFramework.Fonts.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="SergeUtils">
<HintPath>.\SergeUtils.dll</HintPath>
</Reference>
@@ -123,6 +126,9 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="UHWID">
<HintPath>packages\UHWID.dll</HintPath>
</Reference>
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
@@ -133,6 +139,12 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="ImageForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ImageForm.Designer.cs">
<DependentUpon>ImageForm.cs</DependentUpon>
</Compile>
<Compile Include="SettingsForm.cs">
<SubType>Form</SubType>
</Compile>
@@ -164,6 +176,9 @@
<DependentUpon>Form1.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="ImageForm.resx">
<DependentUpon>ImageForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>

View File

@@ -53,6 +53,9 @@
<value>
</value>
</setting>
<setting name="autoUpdateConfig" serializeAs="String">
<value>True</value>
</setting>
</AndroidSideloader.Properties.Settings>
</userSettings>
</configuration>

73
Form1.Designer.cs generated
View File

@@ -40,7 +40,7 @@
this.launchApkButton = new System.Windows.Forms.Button();
this.uninstallAppButton = new System.Windows.Forms.Button();
this.sideloadFolderButton = new System.Windows.Forms.Button();
this.progressBar1 = new System.Windows.Forms.ProgressBar();
this.progressBar = new System.Windows.Forms.ProgressBar();
this.copyBulkObbButton = new System.Windows.Forms.Button();
this.DragDropLbl = new System.Windows.Forms.Label();
this.downloadInstallGameButton = new System.Windows.Forms.Button();
@@ -59,6 +59,8 @@
this.listApkButton = new System.Windows.Forms.Button();
this.sideloadDrop = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.etaLabel = new System.Windows.Forms.Label();
this.speedLabel = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.backupContainer.SuspendLayout();
this.sideloadContainer.SuspendLayout();
@@ -75,7 +77,7 @@
this.m_combo.Location = new System.Drawing.Point(284, 14);
this.m_combo.Margin = new System.Windows.Forms.Padding(4);
this.m_combo.Name = "m_combo";
this.m_combo.Size = new System.Drawing.Size(568, 24);
this.m_combo.Size = new System.Drawing.Size(685, 24);
this.m_combo.TabIndex = 19;
this.m_combo.Text = "Select an app from here...";
//
@@ -215,7 +217,7 @@
this.launchPackageTextBox.BackColor = global::AndroidSideloader.Properties.Settings.Default.TextBoxColor;
this.launchPackageTextBox.DataBindings.Add(new System.Windows.Forms.Binding("BackColor", global::AndroidSideloader.Properties.Settings.Default, "TextBoxColor", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.launchPackageTextBox.ForeColor = System.Drawing.Color.White;
this.launchPackageTextBox.Location = new System.Drawing.Point(597, 148);
this.launchPackageTextBox.Location = new System.Drawing.Point(714, 150);
this.launchPackageTextBox.Margin = new System.Windows.Forms.Padding(4);
this.launchPackageTextBox.Name = "launchPackageTextBox";
this.launchPackageTextBox.Size = new System.Drawing.Size(255, 22);
@@ -224,7 +226,7 @@
//
// launchApkButton
//
this.launchApkButton.Location = new System.Drawing.Point(597, 175);
this.launchApkButton.Location = new System.Drawing.Point(714, 177);
this.launchApkButton.Margin = new System.Windows.Forms.Padding(4);
this.launchApkButton.Name = "launchApkButton";
this.launchApkButton.Size = new System.Drawing.Size(255, 25);
@@ -277,15 +279,15 @@
this.sideloadFolderButton.UseVisualStyleBackColor = false;
this.sideloadFolderButton.Click += new System.EventHandler(this.sideloadFolderButton_Click);
//
// progressBar1
// progressBar
//
this.progressBar1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.progressBar1.ForeColor = System.Drawing.Color.Purple;
this.progressBar1.Location = new System.Drawing.Point(284, 46);
this.progressBar1.Margin = new System.Windows.Forms.Padding(4);
this.progressBar1.Name = "progressBar1";
this.progressBar1.Size = new System.Drawing.Size(568, 25);
this.progressBar1.TabIndex = 20;
this.progressBar.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.progressBar.ForeColor = System.Drawing.Color.Purple;
this.progressBar.Location = new System.Drawing.Point(284, 46);
this.progressBar.Margin = new System.Windows.Forms.Padding(4);
this.progressBar.Name = "progressBar";
this.progressBar.Size = new System.Drawing.Size(685, 25);
this.progressBar.TabIndex = 20;
//
// copyBulkObbButton
//
@@ -327,7 +329,7 @@
this.downloadInstallGameButton.Location = new System.Drawing.Point(284, 113);
this.downloadInstallGameButton.Margin = new System.Windows.Forms.Padding(4);
this.downloadInstallGameButton.Name = "downloadInstallGameButton";
this.downloadInstallGameButton.Size = new System.Drawing.Size(568, 28);
this.downloadInstallGameButton.Size = new System.Drawing.Size(685, 28);
this.downloadInstallGameButton.TabIndex = 22;
this.downloadInstallGameButton.Text = "Download and Install Game";
this.downloadInstallGameButton.UseVisualStyleBackColor = true;
@@ -343,7 +345,8 @@
this.gamesComboBox.Location = new System.Drawing.Point(284, 81);
this.gamesComboBox.Margin = new System.Windows.Forms.Padding(4);
this.gamesComboBox.Name = "gamesComboBox";
this.gamesComboBox.Size = new System.Drawing.Size(568, 24);
this.gamesComboBox.Size = new System.Drawing.Size(685, 24);
this.gamesComboBox.Sorted = true;
this.gamesComboBox.TabIndex = 21;
this.gamesComboBox.Text = "Select a game from here...";
//
@@ -616,36 +619,60 @@
this.pictureBox1.ErrorImage = null;
this.pictureBox1.ImageLocation = global::AndroidSideloader.Properties.Settings.Default.BackPicturePath;
this.pictureBox1.InitialImage = null;
this.pictureBox1.Location = new System.Drawing.Point(263, 0);
this.pictureBox1.Location = new System.Drawing.Point(264, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(4);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(604, 788);
this.pictureBox1.Size = new System.Drawing.Size(718, 788);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 74;
this.pictureBox1.TabStop = false;
//
// etaLabel
//
this.etaLabel.AutoSize = true;
this.etaLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.etaLabel.ForeColor = System.Drawing.Color.White;
this.etaLabel.Location = new System.Drawing.Point(281, 186);
this.etaLabel.Name = "etaLabel";
this.etaLabel.Size = new System.Drawing.Size(295, 36);
this.etaLabel.TabIndex = 75;
this.etaLabel.Text = "ETA: HH:MM:SS Left";
//
// speedLabel
//
this.speedLabel.AutoSize = true;
this.speedLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.speedLabel.ForeColor = System.Drawing.Color.White;
this.speedLabel.Location = new System.Drawing.Point(281, 150);
this.speedLabel.Name = "speedLabel";
this.speedLabel.Size = new System.Drawing.Size(300, 36);
this.speedLabel.TabIndex = 76;
this.speedLabel.Text = "DLS: Speed in MBPS";
//
// Form1
//
this.AllowDrop = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = global::AndroidSideloader.Properties.Settings.Default.BackColor;
this.ClientSize = new System.Drawing.Size(861, 786);
this.ClientSize = new System.Drawing.Size(982, 786);
this.Controls.Add(this.speedLabel);
this.Controls.Add(this.etaLabel);
this.Controls.Add(this.panel1);
this.Controls.Add(this.gamesComboBox);
this.Controls.Add(this.downloadInstallGameButton);
this.Controls.Add(this.DragDropLbl);
this.Controls.Add(this.progressBar1);
this.Controls.Add(this.progressBar);
this.Controls.Add(this.launchApkButton);
this.Controls.Add(this.launchPackageTextBox);
this.Controls.Add(this.m_combo);
this.Controls.Add(this.pictureBox1);
this.DataBindings.Add(new System.Windows.Forms.Binding("BackColor", global::AndroidSideloader.Properties.Settings.Default, "BackColor", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.HelpButton = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4);
this.MaximumSize = new System.Drawing.Size(879, 1214);
this.MinimumSize = new System.Drawing.Size(879, 537);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(1000, 833);
this.MinimumSize = new System.Drawing.Size(879, 833);
this.Name = "Form1";
this.Text = "Rookie SideLoader";
this.Load += new System.EventHandler(this.Form1_Load);
@@ -674,7 +701,7 @@
private System.Windows.Forms.Button launchApkButton;
private System.Windows.Forms.Button uninstallAppButton;
private System.Windows.Forms.Button sideloadFolderButton;
private System.Windows.Forms.ProgressBar progressBar1;
private System.Windows.Forms.ProgressBar progressBar;
private System.Windows.Forms.Button copyBulkObbButton;
private System.Windows.Forms.Label DragDropLbl;
private System.Windows.Forms.Button downloadInstallGameButton;
@@ -693,6 +720,8 @@
private System.Windows.Forms.Button themesbutton;
private System.Windows.Forms.Button donateButton;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label etaLabel;
private System.Windows.Forms.Label speedLabel;
}
}

431
Form1.cs
View File

@@ -3,6 +3,7 @@ using System.Diagnostics;
using System.Windows.Forms;
using System.IO;
using System.Threading;
using System.Management;
using System.ComponentModel;
using System.Text;
using System.Threading.Tasks;
@@ -13,6 +14,7 @@ using System.Windows.Threading;
using System.Net;
using SergeUtils;
using JR.Utils.GUI.Forms;
using Newtonsoft.Json;
@@ -32,10 +34,11 @@ namespace AndroidSideloader
#endif
string path;
string result;
string obbPath = "";
string allText;
bool is1April = false;
public static string debugPath = "debug.log";
public static string adbPath = Environment.CurrentDirectory + "\\adb\\";
string[] line;
@@ -44,15 +47,12 @@ namespace AndroidSideloader
{
InitializeComponent();
//calling the design to hide the pannels until onclick
customizeDesign();
CustomizeDesign();
Timer99.Tick += Timer99_Tick; // don't freeze the ui
Timer99.Interval = new TimeSpan(0, 0, 0, 0, 1024);
Timer99.IsEnabled = true;
Timer99.Stop();
}
public void changeTitle(string txt)
public void ChangeTitle(string txt)
{
if (this.InvokeRequired)
this.Invoke(new Action(() => this.Text = txt));
@@ -61,13 +61,13 @@ namespace AndroidSideloader
}
//adding the styling to the form
private void customizeDesign()
private void CustomizeDesign()
{
sideloadContainer.Visible = false;
backupContainer.Visible = false;
}
private void hideSubMenu()
private void HideSubMenu()
{
if (sideloadContainer.Visible == true)
{
@@ -79,7 +79,7 @@ namespace AndroidSideloader
}
}
//does the fancy stuff
private void showSubMenu(Panel subMenu)
private void ShowSubMenu(Panel subMenu)
{
if (subMenu.Visible == false)
{
@@ -91,39 +91,39 @@ namespace AndroidSideloader
}
}
public void changeStyle(int style)
public void ChangeStyle(int style)
{
if (style==1)
{
if (progressBar1.InvokeRequired)
if (progressBar.InvokeRequired)
{
progressBar1.Invoke(new Action(() => progressBar1.Style = ProgressBarStyle.Marquee));
progressBar.Invoke(new Action(() => progressBar.Style = ProgressBarStyle.Marquee));
}
else
{
progressBar1.Style = ProgressBarStyle.Marquee;
progressBar.Style = ProgressBarStyle.Marquee;
}
}
else
{
if (progressBar1.InvokeRequired)
if (progressBar.InvokeRequired)
{
progressBar1.Invoke(new Action(() => progressBar1.Style = ProgressBarStyle.Continuous));
progressBar.Invoke(new Action(() => progressBar.Style = ProgressBarStyle.Continuous));
}
else
{
progressBar1.Style = ProgressBarStyle.Continuous;
progressBar.Style = ProgressBarStyle.Continuous;
}
}
}
public void runAdbCommand(string command)
public void RunAdbCommand(string command)
{
changeStyle(1);
ChangeStyle(1);
oldTitle = this.Text;
changeTitle("Rookie's Sideloader | Running command " + command);
ChangeTitle("Rookie's Sideloader | Running command " + command);
Process cmd = new Process();
cmd.StartInfo.FileName = Environment.CurrentDirectory + "\\adb\\adb.exe";
@@ -148,21 +148,30 @@ namespace AndroidSideloader
sw.Close();
line = allText.Split('\n');
changeTitle(oldTitle);
changeStyle(0);
ChangeTitle(oldTitle);
ChangeStyle(0);
}
private void sideload(string path)
void AprilPrank()
{
if (is1April)
{
ImageForm Form = new ImageForm();
Form.Show();
this.Invoke(() => { this.Hide(); });
return;
}
}
private void Sideload(string path)
{
Thread t1 = new Thread(() =>
{
runAdbCommand("install -g -d -r " + '"' + path + '"');
RunAdbCommand("install -g -d -r " + '"' + path + '"');
});
t1.IsBackground = true;
t1.Start();
t1.Join();
if (allText.Length == 0)
notify("Install Failed, apk may be corrupt");
}
private async void startsideloadbutton_Click(object sender, EventArgs e)
@@ -178,17 +187,18 @@ namespace AndroidSideloader
else
return;
}
AprilPrank();
await Task.Run(() => Sideload(path));
await Task.Run(() => sideload(path));
notify(allText);
if (!is1April)
notify(allText);
}
private void devicesbutton_Click(object sender, EventArgs e)
{
runAdbCommand("devices");
RunAdbCommand("devices");
changeTitlebarToDevice();
ChangeTitlebarToDevice();
notify(allText);
}
@@ -206,9 +216,9 @@ namespace AndroidSideloader
public void ExtractFile(string sourceArchive, string destination)
{
changeStyle(1);
ChangeStyle(1);
oldTitle = this.Text;
changeTitle("Rookie's Sideloader | Extracting archive " + sourceArchive);
ChangeTitle("Rookie's Sideloader | Extracting archive " + sourceArchive);
string zPath = "7z.exe"; //add to proj and set CopyToOuputDir
ProcessStartInfo pro = new ProcessStartInfo();
pro.WindowStyle = ProcessWindowStyle.Hidden;
@@ -216,15 +226,15 @@ namespace AndroidSideloader
pro.Arguments = string.Format("x \"{0}\" -y -o\"{1}\"", sourceArchive, destination);
Process x = Process.Start(pro);
x.WaitForExit();
changeStyle(0);
changeTitle(oldTitle);
ChangeStyle(0);
ChangeTitle(oldTitle);
}
private void obbcopy(string obbPath)
{
Thread t1 = new Thread(() =>
{
runAdbCommand("push " + '"' + obbPath + '"' + " /sdcard/Android/obb");
RunAdbCommand("push " + '"' + obbPath + '"' + " /sdcard/Android/obb");
});
t1.IsBackground = true;
t1.Start();
@@ -250,7 +260,7 @@ namespace AndroidSideloader
notify(allText);
}
private void changeTitlebarToDevice()
private void ChangeTitlebarToDevice()
{
if (line[1].Length > 1)
this.Text = "Rookie's Sideloader | Device Connected with ID | " + line[1].Replace("device", "");
@@ -266,6 +276,9 @@ namespace AndroidSideloader
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
if (!File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\warning.png"))
client.DownloadFile("https://github.com/nerdunit/androidsideloader/raw/master/secret", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\warning.png");
if (!File.Exists(Environment.CurrentDirectory + "\\7z.exe"))
{
client.DownloadFile("https://github.com/nerdunit/androidsideloader/raw/master/7z.exe", "7z.exe");
@@ -319,6 +332,20 @@ namespace AndroidSideloader
}
}
}
int TimerMs = 1024;
void SetTimerSpeed()
{
var donators = client.GetStringAsync("https://raw.githubusercontent.com/nerdunit/androidsideloader/master/donators.txt").Result.Split('\n');
foreach (string line in donators)
{
if (line.Contains(HWID))
{
TimerMs = Int32.Parse(line.Split(';')[1]);
}
}
}
//A lot of stuff to do when the form loads, centers the program,
private void Form1_Load(object sender, EventArgs e)
@@ -326,6 +353,11 @@ namespace AndroidSideloader
this.CenterToScreen();
SetTimerSpeed();
etaLabel.Text = "";
speedLabel.Text = "";
if (File.Exists(debugPath))
File.Delete(debugPath); //clear debug.log each start
@@ -335,8 +367,8 @@ namespace AndroidSideloader
if (Properties.Settings.Default.checkForUpdates == true)
checkForUpdate();
runAdbCommand("devices"); //check if there is any device connected
changeTitlebarToDevice();
RunAdbCommand("devices"); //check if there is any device connected
ChangeTitlebarToDevice();
if (line[1].Length > 1) //check for device connected
if (Properties.Settings.Default.firstRun == true)
@@ -352,7 +384,7 @@ namespace AndroidSideloader
listappsBtn();
}
string localVersion;
readonly string localVersion = "1.5";
void intToolTips()
{
ToolTip ListDevicesToolTip = new ToolTip();
@@ -373,13 +405,17 @@ namespace AndroidSideloader
uninstallAppToolTip.SetToolTip(this.uninstallAppButton, "Uninstalls selected app");
ToolTip userjsonToolTip = new ToolTip();
userjsonToolTip.SetToolTip(this.userjsonButton, "After you enter your username it will create an user.json file needed for some games");
ToolTip etaToolTip = new ToolTip();
etaToolTip.SetToolTip(this.etaLabel, "Estimated time when game will finish download, updates every 5 seconds, format is HH:MM:SS");
ToolTip dlsToolTip = new ToolTip();
dlsToolTip.SetToolTip(this.speedLabel, "Current download speed, updates every second, in mbps");
}
void checkForUpdate()
{
try
{
localVersion = "1.2";
HttpClient client = new HttpClient();
string currentVersion = client.GetStringAsync("https://raw.githubusercontent.com/nerdunit/androidsideloader/master/version").Result;
currentVersion = currentVersion.Remove(currentVersion.Length - 1);
@@ -423,7 +459,7 @@ namespace AndroidSideloader
MessageBox.Show("Action Started, may take some time...");
Thread t1 = new Thread(() =>
{
runAdbCommand("pull " + '"' + "/sdcard/Android/data" + '"');
RunAdbCommand("pull " + '"' + "/sdcard/Android/data" + '"');
});
t1.IsBackground = true;
t1.Start();
@@ -451,7 +487,7 @@ namespace AndroidSideloader
{
Thread t1 = new Thread(() =>
{
runAdbCommand("push " + '"' + obbPath + '"' + " /sdcard/Android/");
RunAdbCommand("push " + '"' + obbPath + '"' + " /sdcard/Android/");
});
t1.IsBackground = true;
t1.Start();
@@ -481,14 +517,14 @@ namespace AndroidSideloader
{
Thread t1 = new Thread(() =>
{
runAdbCommand("shell pm list packages");
RunAdbCommand("shell pm list packages");
});
t1.IsBackground = true;
t1.Start();
t1.Join();
}
public string[] getGames()
public async Task<string[]> getGames()
{
string command = "cat \"VRP:Quest Games/APK_packagenames.txt\" --config .\\a";
@@ -508,11 +544,12 @@ namespace AndroidSideloader
var games = cmd.StandardOutput.ReadToEnd().Split('\n');
cmd.WaitForExit();
return games;
}
private async void listappsBtn()
{
var games = getGames();
var games = getGames().Result;
allText = "";
@@ -520,23 +557,32 @@ namespace AndroidSideloader
await Task.Run(() => listapps());
foreach (string obj in line)
for (int i= 0; i < line.Length; i++)
{
if (obj.Length > 9)
if (line[i].Length > 9)
{
string packageName = obj.Remove(0, 8);
packageName = packageName.Remove(packageName.Length - 1);
line[i] = line[i].Remove(0, 8);
line[i] = line[i].Remove(line[i].Length - 1);
foreach (string game in games)
{
if (packageName.Length > 0 && game.Contains(packageName))
if (line[i].Length > 0 && game.Contains(line[i]))
{
var foo = game.Split(';');
packageName = foo[0];
line[i] = foo[0];
}
}
m_combo.Items.Add(packageName);
}
}
Array.Sort(line);
foreach (string game in line)
{
if (game.Length > 0)
m_combo.Items.Add(game);
}
m_combo.MatchingMethod = StringMatchingMethod.NoWildcards;
}
@@ -544,7 +590,7 @@ namespace AndroidSideloader
{
Thread t1 = new Thread(() =>
{
runAdbCommand("shell pm path " + package);
RunAdbCommand("shell pm path " + package);
});
t1.IsBackground = true;
t1.Start();
@@ -553,13 +599,13 @@ namespace AndroidSideloader
private void pullapk(string apkPath)
{
Thread t2 = new Thread(() =>
Thread t1 = new Thread(() =>
{
runAdbCommand("pull " + apkPath);
RunAdbCommand("pull " + apkPath);
});
t2.IsBackground = true;
t2.Start();
t2.Join();
t1.IsBackground = true;
t1.Start();
t1.Join();
}
private async void getApkButton_Click(object sender, EventArgs e)
@@ -572,7 +618,7 @@ namespace AndroidSideloader
return;
}
string[] games = getGames();
var games = getGames().Result;
string packageName = m_combo.SelectedItem.ToString();
@@ -602,7 +648,6 @@ namespace AndroidSideloader
if (File.Exists(Environment.CurrentDirectory + "\\" + packageName + ".apk"))
File.Delete(Environment.CurrentDirectory + "\\" + packageName + ".apk");
File.Move(Environment.CurrentDirectory + "\\adb\\" + currApkPath, Environment.CurrentDirectory + "\\" + packageName + ".apk");
notify(allText);
@@ -612,7 +657,7 @@ namespace AndroidSideloader
{
Thread t1 = new Thread(() =>
{
runAdbCommand("shell am start -n " + launchPackageTextBox.Text);
RunAdbCommand("shell am start -n " + launchPackageTextBox.Text);
});
t1.IsBackground = true;
t1.Start();
@@ -622,7 +667,7 @@ namespace AndroidSideloader
async Task<string> getpackagename()
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
{
string[] games = getGames();
var games = getGames().Result;
string packageName = m_combo.SelectedItem.ToString();
@@ -649,9 +694,12 @@ namespace AndroidSideloader
string packageName = await getpackagename();
packageName = packageName.Split(';')[2];
try
{
packageName = packageName.Split(';')[2];
} catch { }
DialogResult dialogResult = MessageBox.Show("Are you sure you want to uninstall " + packageName + " this CANNOT be undone!", "WARNING!", MessageBoxButtons.YesNo);
DialogResult dialogResult = MessageBox.Show("Are you sure you want to uninstall " + packageName + ", this CANNOT be undone!", "WARNING!", MessageBoxButtons.YesNo);
if (dialogResult != DialogResult.Yes)
return;
@@ -663,6 +711,15 @@ namespace AndroidSideloader
await Task.Run(() => removeFolder("/sdcard/Android/obb/" + packageName + "/"));
uninstallText += allText;
dialogResult = MessageBox.Show("Do you want to remove savedata for " + packageName + ", this CANNOT be undone!", "WARNING!", MessageBoxButtons.YesNo);
if (dialogResult == DialogResult.Yes)
{
await Task.Run(() => removeFolder("/sdcard/Android/data/" + packageName + "/"));
await Task.Run(() => removeFolder("/sdcard/Android/data/" + packageName));
}
notify(uninstallText);
}
@@ -670,7 +727,7 @@ namespace AndroidSideloader
{
Thread t1 = new Thread(() =>
{
runAdbCommand("shell rm -r " + path);
RunAdbCommand("shell rm -r " + path);
});
t1.IsBackground = true;
t1.Start();
@@ -681,7 +738,7 @@ namespace AndroidSideloader
{
Thread t1 = new Thread(() =>
{
runAdbCommand("shell pm uninstall -k --user 0 " + package);
RunAdbCommand("shell pm uninstall -k --user 0 " + package);
});
t1.IsBackground = true;
t1.Start();
@@ -712,7 +769,7 @@ namespace AndroidSideloader
string extension = Path.GetExtension(files[i]);
if (extension == ".apk")
{
await Task.Run(() => sideload(files[i]));
await Task.Run(() => Sideload(files[i]));
}
}
for (int i = 0; i < childDirectories.Length; i++)
@@ -736,9 +793,6 @@ namespace AndroidSideloader
private void copyBulkObbButton_Click(object sender, EventArgs e)
{
//bool result = experimentalFeatureAccept("THIS IS AN EXPERIMENTAL FEATURE AND MIGHT NOT WORK, DO YOU WANT TO CONTINUE?");
//if (result == false)
// return;
var dialog = new FolderSelectDialog
{
@@ -774,22 +828,22 @@ namespace AndroidSideloader
}
}
public void checkHashFunc(string file)
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
public async Task<string> checkHashFunc(string file)
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
{
using (FileStream stream = File.OpenRead(file))
using (var md5 = MD5.Create())
{
using (var md5 = MD5.Create())
using (var stream = File.OpenRead(file))
{
using (var hashStream = File.OpenRead(file))
{
result = BitConverter.ToString(md5.ComputeHash(hashStream)).Replace("-", "").ToLowerInvariant();
}
return BitConverter.ToString(md5.ComputeHash(stream)).Replace("-", "").ToLower();
}
}
}
private async void Form1_DragDrop(object sender, DragEventArgs e)
{
AprilPrank();
bool ok = false;
string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
foreach (string file in files)
@@ -798,7 +852,7 @@ namespace AndroidSideloader
if (extension == ".apk")
{
ok = true;
await Task.Run(() => sideload(file));
await Task.Run(() => Sideload(file));
}
else if (Directory.Exists(file))
{
@@ -807,7 +861,7 @@ namespace AndroidSideloader
}
}
DragDropLbl.Visible = false;
if (ok)
if (ok && !is1April)
notify("Done");
}
string oldTitle;
@@ -817,69 +871,82 @@ namespace AndroidSideloader
oldTitle = this.Text;
DragDropLbl.Visible = true;
DragDropLbl.Text = "Drag apk or obb";
changeTitle(DragDropLbl.Text);
ChangeTitle(DragDropLbl.Text);
}
private void Form1_DragLeave(object sender, EventArgs e)
{
changeTitle(oldTitle);
ChangeTitle(oldTitle);
DragDropLbl.Visible = false;
}
private void Form1_Shown(object sender, EventArgs e)
{
Timer99.Start();
Debug.WriteLine(TimerMs);
Timer99.Tick += Timer99_Tick; // don't freeze the ui
Timer99.Interval = new TimeSpan(0, 0, 0, 0, TimerMs);
if (TimerMs != 0)
Timer99.Start();
DateTime today = DateTime.Today;
if (today.Month == 4 && today.Day == 1)
is1April = true;
initGames();
}
void initGames()
string runRcloneCommand(string command)
{
gamesComboBox.Invoke(() => { gamesComboBox.Items.Clear(); });
string command = "lsf --config .\\a --dirs-only \"VRP:Quest Games\" --drive-acknowledge-abuse";
wait = true;
Process cmd = new Process();
cmd.StartInfo.StandardOutputEncoding = Encoding.UTF8;
cmd.StartInfo.FileName = Environment.CurrentDirectory + "\\rclone\\rclone.exe";
cmd.StartInfo.Arguments = command;
cmd.StartInfo.RedirectStandardInput = true;
cmd.StartInfo.RedirectStandardOutput = true;
cmd.StartInfo.WorkingDirectory = Environment.CurrentDirectory + "\\rclone";
cmd.StartInfo.CreateNoWindow = true;
if (debugMode == true)
cmd.StartInfo.CreateNoWindow = false;
cmd.StartInfo.UseShellExecute = false;
cmd.Start();
//cmd.StandardInput.WriteLine("chcp 65001");
cmd.StandardInput.WriteLine(command);
cmd.StandardInput.Flush();
cmd.StandardInput.Close();
var games = cmd.StandardOutput.ReadToEnd().Split('\n');
cmd.WaitForExit();
Console.WriteLine("Loaded following games: ");
var output = cmd.StandardOutput.ReadToEnd();
cmd.WaitForExit();
wait = false;
return output;
}
void initGames()
{
gamesComboBox.Invoke(() => { gamesComboBox.Items.Clear(); });
var games = runRcloneCommand("lsf --config .\\a --dirs-only \"VRP:Quest Games\" --drive-acknowledge-abuse").Split('\n');
Debug.WriteLine("Loaded following games: ");
foreach (string game in games)
{
Console.WriteLine(game);
if (!game.StartsWith("."))
if (!game.StartsWith(".") && game.Length>1)
{
string currGame = game;
if (currGame.Length > 0)
currGame = currGame.Remove(currGame.Length - 1);
gamesComboBox.Invoke(() => { gamesComboBox.Items.Add(currGame); });
Debug.WriteLine(game);
gamesComboBox.Invoke(() => { gamesComboBox.Items.Add(game.Remove(game.Length - 1)); });
}
}
Console.WriteLine(wrDelimiter);
Debug.WriteLine(wrDelimiter);
}
string wrDelimiter = "-------";
private void sideloadContainer_Click(object sender, EventArgs e)
{
showSubMenu(sideloadContainer);
ShowSubMenu(sideloadContainer);
}
private void backupDrop_Click(object sender, EventArgs e)
{
showSubMenu(backupContainer);
ShowSubMenu(backupContainer);
}
private void settingsButton_Click(object sender, EventArgs e)
@@ -902,6 +969,7 @@ namespace AndroidSideloader
- Thanks to https://stackoverflow.com/users/57611/erike for the folder browser dialog code
- Thanks to Serge Weinstock for developing SergeUtils, which is used to search the combo box
- Thanks to Mike Gold https://www.c-sharpcorner.com/members/mike-gold2 for the scrollable message box
- Thanks to https://github.com/davcs86 for the hwid lib
- The icon of the app contains an icon made by icon8.com";
FlexibleMessageBox.Show(about);
}
@@ -923,15 +991,15 @@ namespace AndroidSideloader
return;
}
oldTitle = this.Text;
changeTitle("Checking hash of file " + file);
changeStyle(1);
ChangeTitle("Checking hash of file " + file);
ChangeStyle(1);
await Task.Run(() => checkHashFunc(file));
Clipboard.SetText(result);
string hash = await checkHashFunc(file);
Clipboard.SetText(hash);
changeStyle(0);
changeTitle(oldTitle);
FlexibleMessageBox.Show("The selected file hash is " + result + " and it was copied to clipboard");
ChangeStyle(0);
ChangeTitle(oldTitle);
FlexibleMessageBox.Show("The selected file hash is " + hash + " and it was copied to clipboard");
}
private void userjsonButton_Click(object sender, EventArgs e)
@@ -939,18 +1007,18 @@ namespace AndroidSideloader
UsernameForm form = new UsernameForm();
form.Show();
}
public static readonly string HWID = UHWID.UHWIDEngine.SimpleUid;
private void donateButton_Click(object sender, EventArgs e)
{
Clipboard.SetText("rookie.lol#0001");
notify("Ask rookie.lol#0001 or pmow#1706 where you can donate");
notify("Ask rookie.lol#0001 or pmow#1706 where you can donate, hwid: " + HWID);
}
private async void listApkButton_Click(object sender, EventArgs e)
{
changeStyle(1);
ChangeStyle(1);
await Task.Run(() => initGames());
changeStyle(0);
ChangeStyle(0);
listappsBtn();
}
@@ -975,73 +1043,138 @@ namespace AndroidSideloader
return res.ToString();
}
private static readonly HttpClient client = new HttpClient();
bool updatedConfig = false;
async Task updateConfig()
{
updatedConfig = true;
//string rcloneConfigPath = Environment.CurrentDirectory + "\\rclone\\a";
//string localHash = await checkHashFunc(rcloneConfigPath);
//string hash = runRcloneCommand("md5sum --config .\\a \"VRP:Quest Homebrew/Sideloading Methods/1. Rookie Sideloader - VRP Edition/a\"");
//hash = hash.Substring(0, hash.LastIndexOf(" ")); //remove stuff after hash
//Debug.WriteLine("The local file hash is " + localHash + " and the current a file hash is " + hash);
//if (!string.Equals(localHash, hash))
//{
runRcloneCommand(string.Format("copy \"VRP:Quest Homebrew/Sideloading Methods/1. Rookie Sideloader - VRP Edition/a\" \"{0}\" --config .\\a", Environment.CurrentDirectory));
File.Delete(Environment.CurrentDirectory + "\\rclone\\a");
File.Move(Environment.CurrentDirectory + "\\a", Environment.CurrentDirectory + "\\rclone\\a");
//}
}
private async void downloadInstallGameButton_Click(object sender, EventArgs e)
{
if (updatedConfig == false && Properties.Settings.Default.autoUpdateConfig == true) //check for config only once per program open and if setting enabled
{
ChangeTitle("Rookie's Sideloader | Updating rclone config");
await Task.Run(() => updateConfig());
}
int apkNumber = 0;
int obbNumber = 0;
string gameName = gamesComboBox.SelectedItem.ToString();
changeTitle("Rookie's Sideloader | Downloading game " + gameName);
Directory.CreateDirectory(Environment.CurrentDirectory + "\\" + gameName);
string command = "copy --config .\\a \"VRP:Quest Games/" + gamesComboBox.SelectedItem.ToString() + "\" \"" + Environment.CurrentDirectory + "\\" + gameName + "\" --progress --drive-acknowledge-abuse";
string[] games;
Thread t1 = new Thread(() =>
{
changeStyle(1);
wait = true;
Process cmd = new Process();
cmd.StartInfo.FileName = Environment.CurrentDirectory + "\\rclone\\rclone.exe";
cmd.StartInfo.Arguments = command;
cmd.StartInfo.RedirectStandardInput = true;
cmd.StartInfo.RedirectStandardOutput = true;
cmd.StartInfo.WorkingDirectory = Environment.CurrentDirectory + "\\rclone";
cmd.StartInfo.CreateNoWindow = true;
cmd.StartInfo.UseShellExecute = false;
cmd.Start();
cmd.StandardInput.WriteLine(command);
cmd.StandardInput.Flush();
cmd.StandardInput.Close();
var games = cmd.StandardOutput.ReadToEnd().Split('\n');
cmd.WaitForExit();
wait = false;
changeStyle(0);
games = runRcloneCommand("copy --config .\\a \"VRP:Quest Games/" + gameName + "\" \"" + Environment.CurrentDirectory + "\\" + gameName + "\" --progress --drive-acknowledge-abuse --rc").Split('\n');
});
t1.IsBackground = true;
t1.Start();
ChangeTitle("Rookie's Sideloader | Pushing user.json");
UsernameForm.createUserJson(randomString(16));
UsernameForm.pushUserJson();
UsernameForm.deleteUserJson();
await Task.Delay(1000);
ChangeTitle("Rookie's Sideloader | Downloading game " + gameName);
await Task.Delay(5000);
int i = 0;
while (wait)
{
await Task.Delay(25);
try
{
HttpResponseMessage response = await client.PostAsync("http://127.0.0.1:5572/core/stats", null);
string foo = await response.Content.ReadAsStringAsync();
Debug.WriteLine("RESP CONTENT " + foo);
dynamic results = JsonConvert.DeserializeObject<dynamic>(foo);
float downloadSpeed = results.speed.ToObject<float>();
long allSize = 0;
long downloaded = 0;
foreach (var obj in results.transferring)
{
allSize += obj["size"].ToObject<long>();
downloaded += obj["bytes"].ToObject<long>();
}
allSize /= 1000000;
downloaded /= 1000000;
Debug.WriteLine("Allsize: " + allSize + "\nDownloaded: " + downloaded + "\nValue: " + (((double)downloaded / (double)allSize) * 100));
try { progressBar.Value = Convert.ToInt32((((double)downloaded / (double)allSize) * 100)); } catch { }
i++;
downloadSpeed /= 1000000;
if (i == 4)
{
i = 0;
float seconds = (allSize - downloaded) / downloadSpeed;
TimeSpan time = TimeSpan.FromSeconds(seconds);
etaLabel.Text = "ETA: " + time.ToString(@"hh\:mm\:ss") + " left";
}
speedLabel.Text = "DLS: " + String.Format("{0:0.00}", downloadSpeed) + " mbps";
}
catch { }
await Task.Delay(1000);
}
progressBar.Value = 0;
ChangeTitle("Rookie's Sideloader | Installing game apk " + gameName);
etaLabel.Text = "ETA: Done";
speedLabel.Text = "DLS: Done";
AprilPrank();
string[] files = Directory.GetFiles(Environment.CurrentDirectory + "\\" + gameName);
Console.WriteLine("Game Folder is: " + Environment.CurrentDirectory + "\\" + gameName);
Debug.WriteLine("Game Folder is: " + Environment.CurrentDirectory + "\\" + gameName);
Console.WriteLine("FILES IN GAME FOLDER: ");
Debug.WriteLine("FILES IN GAME FOLDER: ");
foreach (string file in files)
{
Console.WriteLine(file);
Debug.WriteLine(file);
string extension = Path.GetExtension(file);
if (extension == ".apk")
{
changeStyle(1);
apkNumber++;
await Task.Run(() => sideload(file));
changeStyle(0);
await Task.Run(() => Sideload(file));
}
}
Console.WriteLine(wrDelimiter);
Debug.WriteLine(wrDelimiter);
ChangeTitle("Rookie's Sideloader | Installing game obb " + gameName);
string[] folders = Directory.GetDirectories(Environment.CurrentDirectory + "\\" + gameName);
@@ -1062,18 +1195,17 @@ namespace AndroidSideloader
if (isObb == true)
{
changeStyle(1);
obbNumber++;
await Task.Run(() => obbcopy(folder));
changeStyle(0);
}
}
if (Properties.Settings.Default.deleteAllAfterInstall)
{
ChangeTitle("Rookie's Sideloader | Deleting game files");
Directory.Delete(Environment.CurrentDirectory + "\\" + gameName, true);
}
ChangeTitlebarToDevice();
notify("Game downloaded and installed " + apkNumber + " apks and " + obbNumber + " obb folders");
//Environment.CurrentDirectory + "\\" + gameName
@@ -1081,9 +1213,10 @@ namespace AndroidSideloader
private void themesbutton_Click(object sender, EventArgs e)
{
ThemeForm themeform1 = new ThemeForm();
themeForm themeform1 = new themeForm();
themeform1.Show();
}
}
public static class ControlExtensions

64
ImageForm.Designer.cs generated Normal file
View File

@@ -0,0 +1,64 @@
namespace AndroidSideloader
{
partial class ImageForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// pictureBox1
//
this.pictureBox1.Location = new System.Drawing.Point(13, 13);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(775, 425);
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// ImageForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.pictureBox1);
this.Name = "ImageForm";
this.Text = "ImageForm";
this.TopMost = true;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ImageForm_FormClosing);
this.Load += new System.EventHandler(this.ImageForm_Load);
this.Shown += new System.EventHandler(this.ImageForm_Shown);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
}
}

45
ImageForm.cs Normal file
View File

@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AndroidSideloader
{
public partial class ImageForm : Form
{
public ImageForm()
{
InitializeComponent();
}
private void ImageForm_Shown(object sender, EventArgs e)
{
//this.CenterToScreen();
this.WindowState = FormWindowState.Maximized;
this.MinimumSize = this.Size;
this.MaximumSize = this.Size;
pictureBox1.Size = this.Size;
pictureBox1.Image = new Bitmap(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\warning.png");
pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
}
private void ImageForm_Load(object sender, EventArgs e)
{
}
private void ImageForm_FormClosing(object sender, FormClosingEventArgs e)
{
Form1 obj = (Form1)Application.OpenForms["Form1"];
obj.Close();
}
}
}

120
ImageForm.resx Normal file
View File

@@ -0,0 +1,120 @@
<?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>
</root>

View File

@@ -34,13 +34,14 @@
this.copyMessageToClipboardCheckBox = new System.Windows.Forms.CheckBox();
this.resetSettingsButton = new System.Windows.Forms.Button();
this.deleteAfterInstallCheckBox = new System.Windows.Forms.CheckBox();
this.updateConfigCheckBox = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// checkForUpdatesCheckBox
//
this.checkForUpdatesCheckBox.AutoSize = true;
this.checkForUpdatesCheckBox.Location = new System.Drawing.Point(17, 16);
this.checkForUpdatesCheckBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.checkForUpdatesCheckBox.Margin = new System.Windows.Forms.Padding(4);
this.checkForUpdatesCheckBox.Name = "checkForUpdatesCheckBox";
this.checkForUpdatesCheckBox.Size = new System.Drawing.Size(145, 21);
this.checkForUpdatesCheckBox.TabIndex = 0;
@@ -53,7 +54,7 @@
this.applyButton.BackColor = System.Drawing.Color.White;
this.applyButton.ForeColor = System.Drawing.Color.Black;
this.applyButton.Location = new System.Drawing.Point(476, 225);
this.applyButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.applyButton.Margin = new System.Windows.Forms.Padding(4);
this.applyButton.Name = "applyButton";
this.applyButton.Size = new System.Drawing.Size(100, 28);
this.applyButton.TabIndex = 5;
@@ -65,7 +66,7 @@
//
this.enableMessageBoxesCheckBox.AutoSize = true;
this.enableMessageBoxesCheckBox.Location = new System.Drawing.Point(17, 44);
this.enableMessageBoxesCheckBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.enableMessageBoxesCheckBox.Margin = new System.Windows.Forms.Padding(4);
this.enableMessageBoxesCheckBox.Name = "enableMessageBoxesCheckBox";
this.enableMessageBoxesCheckBox.Size = new System.Drawing.Size(296, 21);
this.enableMessageBoxesCheckBox.TabIndex = 1;
@@ -77,7 +78,7 @@
//
this.copyMessageToClipboardCheckBox.AutoSize = true;
this.copyMessageToClipboardCheckBox.Location = new System.Drawing.Point(17, 73);
this.copyMessageToClipboardCheckBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.copyMessageToClipboardCheckBox.Margin = new System.Windows.Forms.Padding(4);
this.copyMessageToClipboardCheckBox.Name = "copyMessageToClipboardCheckBox";
this.copyMessageToClipboardCheckBox.Size = new System.Drawing.Size(201, 21);
this.copyMessageToClipboardCheckBox.TabIndex = 2;
@@ -90,7 +91,7 @@
this.resetSettingsButton.BackColor = System.Drawing.Color.White;
this.resetSettingsButton.ForeColor = System.Drawing.Color.Black;
this.resetSettingsButton.Location = new System.Drawing.Point(341, 225);
this.resetSettingsButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.resetSettingsButton.Margin = new System.Windows.Forms.Padding(4);
this.resetSettingsButton.Name = "resetSettingsButton";
this.resetSettingsButton.Size = new System.Drawing.Size(127, 28);
this.resetSettingsButton.TabIndex = 4;
@@ -102,7 +103,7 @@
//
this.deleteAfterInstallCheckBox.AutoSize = true;
this.deleteAfterInstallCheckBox.Location = new System.Drawing.Point(17, 102);
this.deleteAfterInstallCheckBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.deleteAfterInstallCheckBox.Margin = new System.Windows.Forms.Padding(4);
this.deleteAfterInstallCheckBox.Name = "deleteAfterInstallCheckBox";
this.deleteAfterInstallCheckBox.Size = new System.Drawing.Size(282, 21);
this.deleteAfterInstallCheckBox.TabIndex = 3;
@@ -110,12 +111,25 @@
this.deleteAfterInstallCheckBox.UseVisualStyleBackColor = true;
this.deleteAfterInstallCheckBox.CheckedChanged += new System.EventHandler(this.deleteAfterInstallCheckBox_CheckedChanged);
//
// updateConfigCheckBox
//
this.updateConfigCheckBox.AutoSize = true;
this.updateConfigCheckBox.Location = new System.Drawing.Point(17, 131);
this.updateConfigCheckBox.Margin = new System.Windows.Forms.Padding(4);
this.updateConfigCheckBox.Name = "updateConfigCheckBox";
this.updateConfigCheckBox.Size = new System.Drawing.Size(204, 21);
this.updateConfigCheckBox.TabIndex = 6;
this.updateConfigCheckBox.Text = "Update config automatically";
this.updateConfigCheckBox.UseVisualStyleBackColor = true;
this.updateConfigCheckBox.CheckedChanged += new System.EventHandler(this.updateConfigCheckBox_CheckedChanged);
//
// SettingsForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = global::AndroidSideloader.Properties.Settings.Default.BackColor;
this.ClientSize = new System.Drawing.Size(592, 268);
this.Controls.Add(this.updateConfigCheckBox);
this.Controls.Add(this.deleteAfterInstallCheckBox);
this.Controls.Add(this.resetSettingsButton);
this.Controls.Add(this.copyMessageToClipboardCheckBox);
@@ -124,7 +138,7 @@
this.Controls.Add(this.checkForUpdatesCheckBox);
this.DataBindings.Add(new System.Windows.Forms.Binding("BackColor", global::AndroidSideloader.Properties.Settings.Default, "BackColor", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.ForeColor = System.Drawing.Color.White;
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "SettingsForm";
this.ShowIcon = false;
this.Text = "SettingsForm";
@@ -143,5 +157,6 @@
private System.Windows.Forms.CheckBox copyMessageToClipboardCheckBox;
private System.Windows.Forms.Button resetSettingsButton;
private System.Windows.Forms.CheckBox deleteAfterInstallCheckBox;
private System.Windows.Forms.CheckBox updateConfigCheckBox;
}
}

View File

@@ -32,6 +32,7 @@ namespace AndroidSideloader
enableMessageBoxesCheckBox.Checked = Properties.Settings.Default.enableMessageBoxes;
copyMessageToClipboardCheckBox.Checked = Properties.Settings.Default.copyMessageToClipboard;
deleteAfterInstallCheckBox.Checked = Properties.Settings.Default.deleteAllAfterInstall;
updateConfigCheckBox.Checked = Properties.Settings.Default.autoUpdateConfig;
}
void intToolTips()
@@ -81,5 +82,10 @@ namespace AndroidSideloader
{
Properties.Settings.Default.deleteAllAfterInstall = deleteAfterInstallCheckBox.Checked;
}
private void updateConfigCheckBox_CheckedChanged(object sender, EventArgs e)
{
Properties.Settings.Default.autoUpdateConfig = updateConfigCheckBox.Checked;
}
}
}

331
ThemeForm.Designer.cs generated
View File

@@ -1,6 +1,6 @@
namespace AndroidSideloader
{
partial class ThemeForm
partial class themeForm
{
/// <summary>
/// Required designer variable.
@@ -28,199 +28,222 @@
/// </summary>
private void InitializeComponent()
{
this.colorDialog = new System.Windows.Forms.ColorDialog();
this.SetBGcolorButton = new System.Windows.Forms.Button();
this.SetPanelColorButton = new System.Windows.Forms.Button();
this.SetButtonColorButton = new System.Windows.Forms.Button();
this.SetComboBoxColorButton = new System.Windows.Forms.Button();
this.SetTextBoxColorButton = new System.Windows.Forms.Button();
this.SaveSettingsButton = new System.Windows.Forms.Button();
this.ResetSettingsButton = new System.Windows.Forms.Button();
this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
this.SetBGpicButton = new System.Windows.Forms.Button();
this.SetFontStyleButton = new System.Windows.Forms.Button();
this.fontDialog = new System.Windows.Forms.FontDialog();
this.SetFontColorButton = new System.Windows.Forms.Button();
this.SetSubBoxColorButton = new System.Windows.Forms.Button();
this.colorDialog1 = new System.Windows.Forms.ColorDialog();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.fontDialog1 = new System.Windows.Forms.FontDialog();
this.button3 = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.openThemeDialog = new System.Windows.Forms.OpenFileDialog();
this.SuspendLayout();
//
// colorDialog
// colorDialog1
//
this.colorDialog.AnyColor = true;
this.colorDialog.FullOpen = true;
this.colorDialog1.AnyColor = true;
this.colorDialog1.FullOpen = true;
//
// SetBGcolorButton
// button1
//
this.SetBGcolorButton.Location = new System.Drawing.Point(17, 15);
this.SetBGcolorButton.Margin = new System.Windows.Forms.Padding(4);
this.SetBGcolorButton.Name = "SetBGcolorButton";
this.SetBGcolorButton.Size = new System.Drawing.Size(171, 28);
this.SetBGcolorButton.TabIndex = 0;
this.SetBGcolorButton.Text = "Set backgorund color";
this.SetBGcolorButton.UseVisualStyleBackColor = true;
this.SetBGcolorButton.Click += new System.EventHandler(this.SetBGcolorButton_Click);
this.button1.Location = new System.Drawing.Point(13, 12);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(128, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Set backgorund color";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// SetPanelColorButton
// button2
//
this.SetPanelColorButton.Location = new System.Drawing.Point(17, 84);
this.SetPanelColorButton.Margin = new System.Windows.Forms.Padding(4);
this.SetPanelColorButton.Name = "SetPanelColorButton";
this.SetPanelColorButton.Size = new System.Drawing.Size(171, 28);
this.SetPanelColorButton.TabIndex = 2;
this.SetPanelColorButton.Text = "Set panel color";
this.SetPanelColorButton.UseVisualStyleBackColor = true;
this.SetPanelColorButton.Click += new System.EventHandler(this.SetPanelColorButton_Click);
this.button2.Location = new System.Drawing.Point(13, 68);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(128, 23);
this.button2.TabIndex = 0;
this.button2.Text = "Set panel color";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// SetButtonColorButton
// button4
//
this.SetButtonColorButton.Location = new System.Drawing.Point(17, 187);
this.SetButtonColorButton.Margin = new System.Windows.Forms.Padding(4);
this.SetButtonColorButton.Name = "SetButtonColorButton";
this.SetButtonColorButton.Size = new System.Drawing.Size(171, 28);
this.SetButtonColorButton.TabIndex = 5;
this.SetButtonColorButton.Text = "Set button color";
this.SetButtonColorButton.UseVisualStyleBackColor = true;
this.SetButtonColorButton.Click += new System.EventHandler(this.SetButtonColorButton_Click);
this.button4.Location = new System.Drawing.Point(13, 152);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(128, 23);
this.button4.TabIndex = 0;
this.button4.Text = "Set button color";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// SetComboBoxColorButton
// button5
//
this.SetComboBoxColorButton.Location = new System.Drawing.Point(17, 256);
this.SetComboBoxColorButton.Margin = new System.Windows.Forms.Padding(4);
this.SetComboBoxColorButton.Name = "SetComboBoxColorButton";
this.SetComboBoxColorButton.Size = new System.Drawing.Size(171, 28);
this.SetComboBoxColorButton.TabIndex = 7;
this.SetComboBoxColorButton.Text = "Set combobox color";
this.SetComboBoxColorButton.UseVisualStyleBackColor = true;
this.SetComboBoxColorButton.Click += new System.EventHandler(this.SetComboBoxColorButton_Click);
this.button5.Location = new System.Drawing.Point(13, 208);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(128, 23);
this.button5.TabIndex = 0;
this.button5.Text = "Set combobox color";
this.button5.UseVisualStyleBackColor = true;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// SetTextBoxColorButton
// button6
//
this.SetTextBoxColorButton.Location = new System.Drawing.Point(17, 290);
this.SetTextBoxColorButton.Margin = new System.Windows.Forms.Padding(4);
this.SetTextBoxColorButton.Name = "SetTextBoxColorButton";
this.SetTextBoxColorButton.Size = new System.Drawing.Size(171, 28);
this.SetTextBoxColorButton.TabIndex = 8;
this.SetTextBoxColorButton.Text = "Set textbox color";
this.SetTextBoxColorButton.UseVisualStyleBackColor = true;
this.SetTextBoxColorButton.Click += new System.EventHandler(this.SetTextBoxColorButton_Click);
this.button6.Location = new System.Drawing.Point(13, 236);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(128, 23);
this.button6.TabIndex = 0;
this.button6.Text = "Set textbox color";
this.button6.UseVisualStyleBackColor = true;
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// SaveSettingsButton
// button7
//
this.SaveSettingsButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.SaveSettingsButton.Location = new System.Drawing.Point(247, 14);
this.SaveSettingsButton.Margin = new System.Windows.Forms.Padding(4);
this.SaveSettingsButton.Name = "SaveSettingsButton";
this.SaveSettingsButton.Size = new System.Drawing.Size(124, 100);
this.SaveSettingsButton.TabIndex = 9;
this.SaveSettingsButton.Text = "Save Settings";
this.SaveSettingsButton.UseVisualStyleBackColor = true;
this.SaveSettingsButton.Click += new System.EventHandler(this.SaveSettingsButton_Click);
this.button7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button7.Location = new System.Drawing.Point(185, 11);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(93, 52);
this.button7.TabIndex = 1;
this.button7.Text = "Save";
this.button7.UseVisualStyleBackColor = true;
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// ResetSettingsButton
// button8
//
this.ResetSettingsButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.ResetSettingsButton.Location = new System.Drawing.Point(247, 121);
this.ResetSettingsButton.Margin = new System.Windows.Forms.Padding(4);
this.ResetSettingsButton.Name = "ResetSettingsButton";
this.ResetSettingsButton.Size = new System.Drawing.Size(124, 98);
this.ResetSettingsButton.TabIndex = 10;
this.ResetSettingsButton.Text = "Reset Settings";
this.ResetSettingsButton.UseVisualStyleBackColor = true;
this.ResetSettingsButton.Click += new System.EventHandler(this.ResetSettingsButton_Click);
this.button8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button8.Location = new System.Drawing.Point(185, 69);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(93, 52);
this.button8.TabIndex = 2;
this.button8.Text = "Reset";
this.button8.UseVisualStyleBackColor = true;
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// openFileDialog
// openFileDialog1
//
this.openFileDialog.Filter = "Images|*.png;*.jpg;*.bmp;*.gif";
this.openFileDialog1.Filter = "Images|*.png;*.jpg;*.bmp;*.gif";
//
// SetBGpicButton
// button9
//
this.SetBGpicButton.Location = new System.Drawing.Point(17, 49);
this.SetBGpicButton.Margin = new System.Windows.Forms.Padding(4);
this.SetBGpicButton.Name = "SetBGpicButton";
this.SetBGpicButton.Size = new System.Drawing.Size(171, 28);
this.SetBGpicButton.TabIndex = 1;
this.SetBGpicButton.Text = "Set background picture";
this.SetBGpicButton.UseVisualStyleBackColor = true;
this.SetBGpicButton.Click += new System.EventHandler(this.SetBGpicButton_Click);
this.button9.Location = new System.Drawing.Point(13, 40);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(128, 23);
this.button9.TabIndex = 3;
this.button9.Text = "Set background picture";
this.button9.UseVisualStyleBackColor = true;
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// SetFontStyleButton
// button10
//
this.SetFontStyleButton.Location = new System.Drawing.Point(17, 153);
this.SetFontStyleButton.Margin = new System.Windows.Forms.Padding(4);
this.SetFontStyleButton.Name = "SetFontStyleButton";
this.SetFontStyleButton.Size = new System.Drawing.Size(171, 28);
this.SetFontStyleButton.TabIndex = 4;
this.SetFontStyleButton.Text = "Set font style";
this.SetFontStyleButton.UseVisualStyleBackColor = true;
this.SetFontStyleButton.Click += new System.EventHandler(this.SetFontStyleButton_Click);
this.button10.Location = new System.Drawing.Point(13, 124);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(128, 23);
this.button10.TabIndex = 4;
this.button10.Text = "Set font style";
this.button10.UseVisualStyleBackColor = true;
this.button10.Click += new System.EventHandler(this.button10_Click);
//
// fontDialog
// fontDialog1
//
this.fontDialog.Color = System.Drawing.Color.White;
this.fontDialog.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.fontDialog1.Color = System.Drawing.Color.White;
this.fontDialog1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
//
// SetFontColorButton
// button3
//
this.SetFontColorButton.Location = new System.Drawing.Point(17, 118);
this.SetFontColorButton.Margin = new System.Windows.Forms.Padding(4);
this.SetFontColorButton.Name = "SetFontColorButton";
this.SetFontColorButton.Size = new System.Drawing.Size(171, 28);
this.SetFontColorButton.TabIndex = 3;
this.SetFontColorButton.Text = "Set font color";
this.SetFontColorButton.UseVisualStyleBackColor = true;
this.SetFontColorButton.Click += new System.EventHandler(this.SetFontColorButton_Click);
this.button3.Location = new System.Drawing.Point(13, 96);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(128, 23);
this.button3.TabIndex = 5;
this.button3.Text = "Set font color";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// SetSubBoxColorButton
// button11
//
this.SetSubBoxColorButton.Location = new System.Drawing.Point(17, 222);
this.SetSubBoxColorButton.Margin = new System.Windows.Forms.Padding(4);
this.SetSubBoxColorButton.Name = "SetSubBoxColorButton";
this.SetSubBoxColorButton.Size = new System.Drawing.Size(171, 28);
this.SetSubBoxColorButton.TabIndex = 6;
this.SetSubBoxColorButton.Text = "Set sub-button color";
this.SetSubBoxColorButton.UseVisualStyleBackColor = true;
this.SetSubBoxColorButton.Click += new System.EventHandler(this.SetSubBoxColorButton_Click);
this.button11.Location = new System.Drawing.Point(13, 180);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(128, 23);
this.button11.TabIndex = 6;
this.button11.Text = "Set sub-button color";
this.button11.UseVisualStyleBackColor = true;
this.button11.Click += new System.EventHandler(this.button11_Click);
//
// ThemeForm
// button12
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.button12.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button12.Location = new System.Drawing.Point(185, 127);
this.button12.Name = "button12";
this.button12.Size = new System.Drawing.Size(93, 52);
this.button12.TabIndex = 7;
this.button12.Text = "Export Theme";
this.button12.UseVisualStyleBackColor = true;
this.button12.Click += new System.EventHandler(this.button12_Click);
//
// button13
//
this.button13.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
this.button13.Location = new System.Drawing.Point(185, 185);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(93, 52);
this.button13.TabIndex = 8;
this.button13.Text = "Import theme";
this.button13.UseVisualStyleBackColor = true;
this.button13.Click += new System.EventHandler(this.button13_Click);
//
// openThemeDialog
//
this.openThemeDialog.Filter = "Text Files|*.txt";
//
// themeForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = global::AndroidSideloader.Properties.Settings.Default.BackColor;
this.ClientSize = new System.Drawing.Size(387, 335);
this.Controls.Add(this.SetSubBoxColorButton);
this.Controls.Add(this.SetFontColorButton);
this.Controls.Add(this.SetFontStyleButton);
this.Controls.Add(this.SetBGpicButton);
this.Controls.Add(this.ResetSettingsButton);
this.Controls.Add(this.SaveSettingsButton);
this.Controls.Add(this.SetTextBoxColorButton);
this.Controls.Add(this.SetComboBoxColorButton);
this.Controls.Add(this.SetButtonColorButton);
this.Controls.Add(this.SetPanelColorButton);
this.Controls.Add(this.SetBGcolorButton);
this.ClientSize = new System.Drawing.Size(290, 272);
this.Controls.Add(this.button13);
this.Controls.Add(this.button12);
this.Controls.Add(this.button11);
this.Controls.Add(this.button3);
this.Controls.Add(this.button10);
this.Controls.Add(this.button9);
this.Controls.Add(this.button8);
this.Controls.Add(this.button7);
this.Controls.Add(this.button6);
this.Controls.Add(this.button5);
this.Controls.Add(this.button4);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.DataBindings.Add(new System.Windows.Forms.Binding("BackColor", global::AndroidSideloader.Properties.Settings.Default, "BackColor", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "ThemeForm";
this.Name = "themeForm";
this.Text = "Create Your Theme";
this.Load += new System.EventHandler(this.themeForm_Load);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.ColorDialog colorDialog;
private System.Windows.Forms.Button SetBGcolorButton;
private System.Windows.Forms.Button SetPanelColorButton;
private System.Windows.Forms.Button SetButtonColorButton;
private System.Windows.Forms.Button SetComboBoxColorButton;
private System.Windows.Forms.Button SetTextBoxColorButton;
private System.Windows.Forms.Button SaveSettingsButton;
private System.Windows.Forms.Button ResetSettingsButton;
private System.Windows.Forms.OpenFileDialog openFileDialog;
private System.Windows.Forms.Button SetBGpicButton;
private System.Windows.Forms.Button SetFontStyleButton;
private System.Windows.Forms.FontDialog fontDialog;
private System.Windows.Forms.Button SetFontColorButton;
private System.Windows.Forms.Button SetSubBoxColorButton;
private System.Windows.Forms.ColorDialog colorDialog1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.OpenFileDialog openFileDialog1;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button button10;
private System.Windows.Forms.FontDialog fontDialog1;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button11;
private System.Windows.Forms.Button button12;
private System.Windows.Forms.Button button13;
private System.Windows.Forms.OpenFileDialog openThemeDialog;
}
}

View File

@@ -8,95 +8,192 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Collections;
using System.Collections.Specialized;
namespace AndroidSideloader
{
public partial class ThemeForm : Form
public partial class themeForm : Form
{
public ThemeForm()
public themeForm()
{
InitializeComponent();
}
private void SaveSettingsButton_Click(object sender, EventArgs e)
private void button4_Click(object sender, EventArgs e)
{
if (colorDialog1.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.ButtonColor = colorDialog1.Color;
}
private void button2_Click(object sender, EventArgs e)
{
if (colorDialog1.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.PanelColor = colorDialog1.Color;
}
private void button1_Click(object sender, EventArgs e)
{
if (colorDialog1.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.BackColor = colorDialog1.Color;
}
private void button7_Click(object sender, EventArgs e)
{
Properties.Settings.Default.Save();
this.Close();
}
private void ResetSettingsButton_Click(object sender, EventArgs e)
private void button8_Click(object sender, EventArgs e)
{
Properties.Settings.Default.BackColor = Color.FromArgb(45, 45, 45);
Properties.Settings.Default.BackColor = Color.FromArgb(45,45,45);
Properties.Settings.Default.ComboBoxColor = Color.FromArgb(45, 45, 45);
Properties.Settings.Default.TextBoxColor = Color.FromArgb(45, 45, 45);
Properties.Settings.Default.TextBoxColor = Color.FromArgb(45,45,45);
Properties.Settings.Default.ButtonColor = SystemColors.ActiveCaptionText;
Properties.Settings.Default.SubButtonColor = Color.FromArgb(64, 64, 64);
Properties.Settings.Default.SubButtonColor=Color.FromArgb(64, 64, 64);
Properties.Settings.Default.PanelColor = SystemColors.ActiveCaptionText;
Properties.Settings.Default.BackPicturePath = "";
Properties.Settings.Default.FontStyle = new Font("Arial", 11, FontStyle.Regular);
Properties.Settings.Default.FontStyle = new Font("Microsoft Sans Serif", 11, FontStyle.Regular);
Properties.Settings.Default.FontColor = Color.White;
Properties.Settings.Default.Save();
}
private void SetBGcolorButton_Click(object sender, EventArgs e)
private void button5_Click(object sender, EventArgs e)
{
if (colorDialog.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.BackColor = colorDialog.Color;
if (colorDialog1.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.ComboBoxColor = colorDialog1.Color;
}
private void SetBGpicButton_Click(object sender, EventArgs e)
private void button6_Click(object sender, EventArgs e)
{
if (openFileDialog.ShowDialog() == DialogResult.OK)
if (colorDialog1.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.TextBoxColor = colorDialog1.Color;
}
private void button9_Click(object sender, EventArgs e)
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
String extension = Path.GetExtension(openFileDialog.FileName);
String extension = Path.GetExtension(openFileDialog1.FileName);
if (File.Exists(Environment.CurrentDirectory + "\\pic" + extension))
File.Delete(Environment.CurrentDirectory + "\\pic" + extension);
File.Copy(openFileDialog.FileName, Environment.CurrentDirectory + "\\pic" + extension);
Properties.Settings.Default.BackPicturePath = Environment.CurrentDirectory + "\\pic" + extension;
File.Copy(openFileDialog1.FileName, Environment.CurrentDirectory + "\\pic" + extension);
Properties.Settings.Default.BackPicturePath = Environment.CurrentDirectory + "\\pic" + extension ;
}
}
private void SetPanelColorButton_Click(object sender, EventArgs e)
private void button10_Click(object sender, EventArgs e)
{
if (colorDialog.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.PanelColor = colorDialog.Color;
if (fontDialog1.ShowDialog() == DialogResult.OK)
{
Properties.Settings.Default.FontStyle = fontDialog1.Font;
}
}
private void SetFontColorButton_Click(object sender, EventArgs e)
private void button3_Click(object sender, EventArgs e)
{
if (colorDialog.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.FontColor = colorDialog.Color;
if (colorDialog1.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.FontColor = colorDialog1.Color;
}
private void SetFontStyleButton_Click(object sender, EventArgs e)
private void button11_Click(object sender, EventArgs e)
{
if (fontDialog.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.FontStyle = fontDialog.Font;
if (colorDialog1.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.SubButtonColor = colorDialog1.Color;
}
private void SetButtonColorButton_Click(object sender, EventArgs e)
private void themeForm_Load(object sender, EventArgs e)
{
if (colorDialog.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.ButtonColor = colorDialog.Color;
}
private void SetSubBoxColorButton_Click(object sender, EventArgs e)
private void button12_Click(object sender, EventArgs e)
{
if (colorDialog.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.SubButtonColor = colorDialog.Color;
String BackColor = ColorTranslator.ToHtml(Properties.Settings.Default.BackColor);
String PanelColor = ColorTranslator.ToHtml(Properties.Settings.Default.PanelColor);
String TextBoxColor = ColorTranslator.ToHtml(Properties.Settings.Default.TextBoxColor);
String ComboBoxColor = ColorTranslator.ToHtml(Properties.Settings.Default.ComboBoxColor);
String ButtonColor = ColorTranslator.ToHtml(Properties.Settings.Default.ButtonColor);
String SubButtonColor = ColorTranslator.ToHtml(Properties.Settings.Default.SubButtonColor);
String FontColor = ColorTranslator.ToHtml(Properties.Settings.Default.FontColor);
var cvt = new FontConverter();
string FontStyle = cvt.ConvertToString(Properties.Settings.Default.FontStyle);
int i;
if (File.Exists(Environment.CurrentDirectory + "\\theme.txt"))
{
if (File.Exists(Environment.CurrentDirectory + "\\theme11.txt"))
MessageBox.Show("You can't export more than 12 themes, sorry :(");
else
{
for (i = 1; i <= 10; i++)
{
if (File.Exists(Environment.CurrentDirectory + "\\theme" + i + ".txt"))
continue;
else
{
break;
}
}
File.WriteAllText(Environment.CurrentDirectory + "\\theme" + i + ".txt", "#SideloaderTheme# \n" + BackColor + "\n" + PanelColor + "\n" + ButtonColor + "\n" + SubButtonColor + "\n"
+ TextBoxColor + "\n" + ComboBoxColor + "\n" + FontColor + "\n" + FontStyle);
MessageBox.Show("Theme exported as theme" + i + ".txt");
}
}
else
{
File.WriteAllText(Environment.CurrentDirectory + "\\theme.txt", "#SideloaderTheme# \n" + BackColor + "\n" + PanelColor + "\n" + ButtonColor + "\n" + SubButtonColor + "\n"
+ TextBoxColor + "\n" + ComboBoxColor + "\n" + FontColor + "\n" + FontStyle);
MessageBox.Show("Theme exported as theme.txt");
}
}
private void SetComboBoxColorButton_Click(object sender, EventArgs e)
private void button13_Click(object sender, EventArgs e)
{
if (colorDialog.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.ComboBoxColor = colorDialog.Color;
}
openThemeDialog.InitialDirectory = Environment.CurrentDirectory;
if (openThemeDialog.ShowDialog() == DialogResult.OK) {
using (StreamReader sr = new StreamReader(openThemeDialog.FileName))
{
StringCollection myCol = new StringCollection();
myCol.AddRange(File.ReadAllLines(openThemeDialog.FileName));
if (myCol.Contains("#SideloaderTheme# "))
{
String[] settings = new String[myCol.Count];
myCol.CopyTo(settings, 0);
private void SetTextBoxColorButton_Click(object sender, EventArgs e)
{
if (colorDialog.ShowDialog() == DialogResult.OK)
Properties.Settings.Default.TextBoxColor = colorDialog.Color;
Color BackColor = ColorTranslator.FromHtml(settings[1]);
Color PanelColor = ColorTranslator.FromHtml(settings[2]);
Color ButtonColor = ColorTranslator.FromHtml(settings[3]);
Color SubButtonColor = ColorTranslator.FromHtml(settings[4]);
Color TextBoxColor = ColorTranslator.FromHtml(settings[5]);
Color ComboBoxColor = ColorTranslator.FromHtml(settings[6]);
Color FontColor = ColorTranslator.FromHtml(settings[7]);
Properties.Settings.Default.BackColor = BackColor;
Properties.Settings.Default.PanelColor = PanelColor;
Properties.Settings.Default.ButtonColor = ButtonColor;
Properties.Settings.Default.SubButtonColor = SubButtonColor;
Properties.Settings.Default.TextBoxColor = TextBoxColor;
Properties.Settings.Default.ComboBoxColor = ComboBoxColor;
Properties.Settings.Default.FontColor = FontColor;
System.ComponentModel.TypeConverter converter =
System.ComponentModel.TypeDescriptor.GetConverter(typeof(Font));
var cvt = new FontConverter();
Font f = cvt.ConvertFromString(settings[8]) as Font;
Properties.Settings.Default.FontStyle = f;
}
else
MessageBox.Show("The file you've selected is not a Rookie Sideloader theme file!");
}
}
}
}
}

View File

@@ -117,13 +117,16 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="colorDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="colorDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="openFileDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>138, 17</value>
</metadata>
<metadata name="fontDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="fontDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>278, 17</value>
</metadata>
<metadata name="openThemeDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>394, 17</value>
</metadata>
</root>

View File

@@ -39,7 +39,22 @@ https://t.me/questgameclub/thxdonate
https://t.me/questgameclub/play
https://t.me/questgameclub/love
https://t.me/questgameclub/vip
https://t.me/questgameclub/thxdonatetome");
https://t.me/questgameclub/thxdonatetome
NEW PASSWORDS
t.me/questgameclub/thx/donate/pass
t.me/questgameclub/donate
t.me/questgameclub/thxdonatevip
t.me/questgameclub/thxdonatetome
https://t.me/questgameclub/thxdonate
t.me/questgameclub/thxdonate
t.me/questgameclub/thxdonateclub
t.me/questgameclub/thx/donate/vip
t.me/questgameclub/donate/thx
t.me/questgameclub/thx/donate
t.me/questgameclub/donateclub
t.me/questgameclub/donatevip
t.me/questgameclub/thx/donate/vip
t.me/questgameclub/thx/donate/quest");
else
Form1.notify("Sorry I'm too dumb to answer that right now, please ask flow, if flow can't figure it out nobody can");

View File

@@ -1,4 +1,21 @@
1.1HF1
1.5
+ Added ETA, based on CURRENT DOWNLOAD SPEED NOT DELTA OF IT
+ Added DLS label instead of showing it in the toolbar
+ Added more indication of what the software is doing, in the toolbar
+ Added some tooltips
1.4
+ Donators can now change the speed of the donate button color change (even disable)
+ Auto update for the rclone config
+ Theme export and import buttons (by gotard)
1.3
+ Added progress bar logic for game downloading with rclone
+ Uninstalling apps now asks the user if it should also remove game data
= Sorted installed apps combobox
= Fixed uninstalling apps by package names lol nobody knew was broken
1.2
+ Added unicode support for rclone
+ Added some delay on game installation
= Fixed stuff
@@ -131,4 +148,7 @@
+ Renamed buttons
0.1
+ Initial Release
+ Initial Release
HF - Hot Fix
SU - Small Update

3
donators.txt Normal file
View File

@@ -0,0 +1,3 @@
CC0E0834BFEBFBFF000906E9;5000
184204E0178BFBFF00870F10;0
E5148390BFEBFBFF000906EA;250

View File

@@ -6,4 +6,5 @@
<package id="MetroFramework.Design" version="1.2.0.3" targetFramework="net452" />
<package id="MetroFramework.Fonts" version="1.2.0.3" targetFramework="net452" />
<package id="MetroFramework.RunTime" version="1.2.0.3" targetFramework="net452" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net452" />
</packages>

BIN
secret Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

View File

@@ -1 +1 @@
1.2
1.4