Compare commits

...

6 Commits
v0.10 ... v0.11

Author SHA1 Message Date
nerdunit
39339c2583 Update README.md 2020-06-24 10:28:35 +03:00
nerdunit
72e0d4fba4 Add files via upload 2020-06-24 10:20:27 +03:00
nerdunit
efc1b3b773 Update README.md 2020-06-23 12:15:36 +03:00
nerdunit
4dbc236b31 Update README.md 2020-06-23 12:10:47 +03:00
nerdunit
730c88316e v0.10 2020-06-23 12:07:45 +03:00
nerdunit
3641a8ec1d Update version 2020-06-23 12:07:10 +03:00
5 changed files with 140 additions and 96 deletions

View File

@@ -20,13 +20,12 @@ using SergeUtils;
namespace AndroidSideloader
{
public partial class Form1 : Form
{
#if DEBUG
bool debugMode = true;
public static bool debugMode = true;
#else
bool debugMode = false;
public static bool debugMode = false;
#endif
string path;
string obbPath = "";
@@ -117,9 +116,16 @@ namespace AndroidSideloader
else
return;
}
//please don't read this trash about progressbar
progressBar.Value = 0;
FileInfo fi = new FileInfo(path);
size = (int)fi.Length / 1024;
size = (int)(fi.Length / 1024);
if (size < 0)
size = size * -1;
progressBar.Maximum = size;
Task.Delay(100).ContinueWith(t => Timer99.Start()); //Delete notification after 5 seconds
@@ -142,17 +148,24 @@ namespace AndroidSideloader
public static void notify(string message)
{
var notifyIcon = new System.Windows.Forms.NotifyIcon();
//notifyIcon.Icon = System.Drawing.SystemIcons.Application;
notifyIcon.Icon = System.Drawing.SystemIcons.Asterisk;
notifyIcon.BalloonTipTitle = "AndroidSideloader";
notifyIcon.BalloonTipText = message;
notifyIcon.Visible = true;
notifyIcon.BalloonTipClicked += (sender, e) => {
Clipboard.SetText(message);
};
notifyIcon.ShowBalloonTip(3000);
Task.Delay(5000).ContinueWith(t => notifyIcon.Dispose()); //Delete notification after 5 seconds
if (debugMode==true)
{
var notifyIcon = new System.Windows.Forms.NotifyIcon();
//notifyIcon.Icon = System.Drawing.SystemIcons.Application;
notifyIcon.Icon = System.Drawing.SystemIcons.Asterisk;
notifyIcon.BalloonTipTitle = "AndroidSideloader";
notifyIcon.BalloonTipText = message;
notifyIcon.Visible = true;
notifyIcon.BalloonTipClicked += (sender, e) => {
Clipboard.SetText(message);
};
notifyIcon.ShowBalloonTip(3000);
Task.Delay(5000).ContinueWith(t => notifyIcon.Dispose()); //Delete notification after 5 seconds
}
else
{
MessageBox.Show(message);
}
}
private void instructionsbutton_Click(object sender, EventArgs e)
@@ -204,7 +217,9 @@ namespace AndroidSideloader
progressBar.Value = 0;
FileInfo fi = new FileInfo(obbFile);
size = (int)fi.Length / 1024;
size = (int)(fi.Length / 1024);
if (size < 0)
size = size * -1;
progressBar.Maximum = size;
Task.Delay(100).ContinueWith(t => Timer99.Start()); //Delete notification after 5 seconds
@@ -266,7 +281,8 @@ namespace AndroidSideloader
changeTitlebarToDevice();
if (debugMode==false)
checkForUpdate();
if (File.Exists(Environment.CurrentDirectory + "\\disableUpdates")==false)
checkForUpdate();
intToolTips();
listappsBtn();
@@ -292,10 +308,17 @@ namespace AndroidSideloader
ListAppPermsToolTip.SetToolTip(this.listApkPermsButton, "Lists the permissions for the selected apk");
ToolTip ChangeAppPermsToolTip = new ToolTip();
ChangeAppPermsToolTip.SetToolTip(this.changePermsBtn, "Applies the permissions for the apk, first press list app perms");
ToolTip sideloadFolderToolTip = new ToolTip();
sideloadFolderToolTip.SetToolTip(this.sideloadFolderButton, "Sideloads every apk from a folder");
ToolTip uninstallAppToolTip = new ToolTip();
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");
}
void checkForUpdate()
{
string localVersion = "0.9";
string localVersion = "0.10";
HttpClient client = new HttpClient();
string currentVersion = client.GetStringAsync("https://raw.githubusercontent.com/nerdunit/androidsideloader/master/version").Result;
currentVersion = currentVersion.Remove(currentVersion.Length - 1);
@@ -540,7 +563,7 @@ namespace AndroidSideloader
chk.Width = 420;
chk.Height = 17;
chk.Text = line[i];
chk.CheckedChanged += new EventHandler(CheckBox_Checked);
//chk.CheckedChanged += new EventHandler(CheckBox_Checked);
Controls.Add(chk);
pos2 += 20;
}
@@ -548,11 +571,6 @@ namespace AndroidSideloader
}
private void CheckBox_Checked(object sender, EventArgs e)
{
}
private async void changePermsBtn_Click(object sender, EventArgs e)
@@ -610,11 +628,6 @@ namespace AndroidSideloader
}
private bool checkForDevice()
{
return true;
}
private async void uninstallAppButton_Click(object sender, EventArgs e)
{
if (m_combo.Items.Count == 0)
@@ -660,15 +673,29 @@ namespace AndroidSideloader
};
if (dialog.Show(Handle))
{
string[] files = Directory.GetFiles(dialog.FileName);
foreach (string file in files)
{
await Task.Run(() => sideload(file));
}
recursiveSideload(dialog.FileName);
}
else return;
notify("Done Mass Sideloading");
notify("Done bulk sideloading");
}
private async void recursiveSideload(string location)
{
string[] files = Directory.GetFiles(location);
string[] childDirectories = Directory.GetDirectories(location);
for (int i = 0; i < files.Length; i++)
{
string extension = Path.GetExtension(files[i]);
if (extension == ".apk")
{
await Task.Run(() => sideload(files[i]));
}
}
for (int i = 0; i < childDirectories.Length; i++)
{
recursiveSideload(childDirectories[i]);
}
}
private void aboutBtn_Click(object sender, EventArgs e)

View File

@@ -1,62 +1,8 @@
# androidsideloader
Changelog
The icon of the app contains an icon made by icon8.com
0.9
+ Added the buggy progress bar back, uses different "logic"
+ Added an icon (Increased the exe size by like 300% just with that)
+ Added sideload folder button
+ Added Creat user.json button and form
+ Changed Message Boxes to notifications
0.8.5
+ Added auto update download
= Fixed a bug where if you didn't have the adb folder it would crash
0.8
+ Every command now shows progress on title bar
+ Automatically run Adb Devices and List Apps on form startup
+ You can now search the App List Combo Box
= Cleaned some code
0.7
= Fixed UI Freezes
+ Added Uninstall APK Button
+ Added Launch package Button
- Removed loading bar
0.6
+ Added List Apk Perms button
+ Added Change Permissions button
+ Added dinamically added checkbox for permisssions
= The software now downloads adb from master instead of v0.3 release
0.5
- Removed Flash Firmware
= Redesigned UI
= Reworked RunAdbCommand function (now it will be possible to do stuff I wasnt able to do before)
= Replaced Ui Buttons, still needs work
+ Added List apk button
+ Added List apk combo box
+ Added get apk function
= Cleaned a bit of code
0.4
+ Added auto download of adb archive
+ Added auto extraction of adb archive
0.3
+ Added new form, you can run custom adb commands now
+ Added recover and backup app data
- Removed Select APK and Select OBB Buttons
- Removed tooltips from removed buttons
+ Sideload APK and Copy Obb buttons now also make you select the file/folder
+ Improved firmware button
0.2
+ Added Flash Firmware button
+ Added few tooltips
+ Renamed buttons
0.1
+ Initial Release
Special thanks to
- https://stackoverflow.com/users/57611/erike for the folder browser dialog code
- Serge Weinstock for developing SergeUtils, which is used to search the combo box
- Mike Gold https://www.c-sharpcorner.com/members/mike-gold2 for the scrollable message box

71
changelog.txt Normal file
View File

@@ -0,0 +1,71 @@
0.11
+ Changed normal message boxes to flexible ones
+ Added changelog to update message
= Improved update message
- Removed progressbar
0.10
+ Added few tooltips
+ Sideload folder now works for all apks (recursive search)
= Obb copy and Sideload progress bar problems should be fixed
= Fixed user.json not working if the any of folder had spaces
= Switched back to Message Boxes
0.9
+ Added the buggy progress bar back, uses different "logic"
+ Added an icon (Increased the exe size by like 300% just with that)
+ Added sideload folder button
+ Added Creat user.json button and form
+ Changed Message Boxes to notifications
0.8.5
+ Added auto update download
= Fixed a bug where if you didn't have the adb folder it would crash
0.8
+ Every command now shows progress on title bar
+ Automatically run Adb Devices and List Apps on form startup
+ You can now search the App List Combo Box
= Cleaned some code
0.7
= Fixed UI Freezes
+ Added Uninstall APK Button
+ Added Launch package Button
- Removed loading bar
0.6
+ Added List Apk Perms button
+ Added Change Permissions button
+ Added dinamically added checkbox for permisssions
= The software now downloads adb from master instead of v0.3 release
0.5
- Removed Flash Firmware
= Redesigned UI
= Reworked RunAdbCommand function (now it will be possible to do stuff I wasnt able to do before)
= Replaced Ui Buttons, still needs work
+ Added List apk button
+ Added List apk combo box
+ Added get apk function
= Cleaned a bit of code
0.4
+ Added auto download of adb archive
+ Added auto extraction of adb archive
0.3
+ Added new form, you can run custom adb commands now
+ Added recover and backup app data
- Removed Select APK and Select OBB Buttons
- Removed tooltips from removed buttons
+ Sideload APK and Copy Obb buttons now also make you select the file/folder
+ Improved firmware button
0.2
+ Added Flash Firmware button
+ Added few tooltips
+ Renamed buttons
0.1
+ Initial Release

View File

@@ -30,7 +30,7 @@ namespace AndroidSideloader
File.WriteAllText("user.json", "{\"username\":\"" + textBox1.Text + "\"}");
string command = "push " + Environment.CurrentDirectory + "\\user.json " + " /sdcard/";
string command = "push \"" + Environment.CurrentDirectory + "\\user.json\" " + " /sdcard/";
Process cmd = new Process();

View File

@@ -1 +1 @@
0.9.1
0.10