Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
v0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonyha7 committed Apr 15, 2022
1 parent 194b8f9 commit cfa2b69
Show file tree
Hide file tree
Showing 27 changed files with 1,711 additions and 362 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
bin/

obj/

.vs/abdUI/v17/
Binary file removed .vs/abdUI/v17/.suo
Binary file not shown.
779 changes: 424 additions & 355 deletions Form1.Designer.cs

Large diffs are not rendered by default.

40 changes: 33 additions & 7 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ private void CheckADB_Click(object sender, EventArgs e)

private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am startservice -n com.android.launcher3/com.drupe.swd.launcher.huoshan.mdm.service.ExecuteCmdService --es \"cmd\" \"command_bluetooth\" --ei \"active\" 1"));
MessageBox.Show(RunCommand("adb shell am broadcast -n com.android.launcher3/com.innofidei.guardsecure.service.EduAppReceiver -a \"com.linspirer.edu.enablefileshare\""));
}

private void button2_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am startservice -n com.android.launcher3/com.drupe.swd.launcher.huoshan.mdm.service.ExecuteCmdService --es \"cmd\" \"command_bluetooth\" --ei \"active\" 0"));
MessageBox.Show(RunCommand("adb shell am broadcast -n com.android.launcher3/com.innofidei.guardsecure.service.EduAppReceiver -a \"com.linspirer.edu.disablefileshare\""));
}

private void button3_Click(object sender, EventArgs e)
Expand All @@ -69,7 +69,7 @@ private void button4_Click(object sender, EventArgs e)

private void button8_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am startservice -n com.android.launcher3/com.drupe.swd.launcher.huoshan.mdm.service.ExecuteCmdService --es \"cmd\" \"command_reset_factory\""));
MessageBox.Show(RunCommand("adb shell am broadcast -n com.android.launcher3/com.innofidei.guardsecure.service.EduAppReceiver -a \"com.linspirer.edu.enable.screenshot\""));
}

private void button7_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -109,22 +109,22 @@ private void button9_Click(object sender, EventArgs e)

private void button16_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am broadcast - n com.android.launcher3 / com.innofidei.guardsecure.service.EduAppReceiver - a \"com.linspirer.edu.disableapp\" --esal \"appwhitelist\" " + textBox1.Text));
MessageBox.Show(RunCommand("adb shell am broadcast - n com.android.launcher3 / com.innofidei.guardsecure.service.EduAppReceiver - a \"com.linspirer.edu.disableapp\" --esal \"appwhitelist\" " + PackageNameTextBox.Text));
}

private void button13_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am broadcast -n com.android.launcher3/com.innofidei.guardsecure.service.EduAppReceiver -a \"com.linspirer.edu.setappwhitelist\" --esal \"appwhitelist\" " + textBox1.Text));
MessageBox.Show(RunCommand("adb shell am broadcast -n com.android.launcher3/com.innofidei.guardsecure.service.EduAppReceiver -a \"com.linspirer.edu.setappwhitelist\" --esal \"appwhitelist\" " + PackageNameTextBox.Text));
}

private void button15_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am broadcast -n com.android.launcher3/com.innofidei.guardsecure.service.EduAppReceiver -a \"com.linspirer.edu.enableapp\" --esal \"appwhitelist\" " + textBox1.Text));
MessageBox.Show(RunCommand("adb shell am broadcast -n com.android.launcher3/com.innofidei.guardsecure.service.EduAppReceiver -a \"com.linspirer.edu.enableapp\" --esal \"appwhitelist\" " + PackageNameTextBox.Text));
}

private void button14_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am broadcast -n com.android.launcher3/com.innofidei.guardsecure.service.EduAppReceiver -a \"com.linspirer.edu.silentuninstall\" --es \"packageName\" " + textBox1.Text));
MessageBox.Show(RunCommand("adb shell am broadcast -n com.android.launcher3/com.innofidei.guardsecure.service.EduAppReceiver -a \"com.linspirer.edu.silentuninstall\" --es \"packageName\" " + PackageNameTextBox.Text));
}

private void button20_Click(object sender, EventArgs e)
Expand All @@ -146,5 +146,31 @@ private void button17_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell su -c \"am start -n com.android.launcher3/com.innofidei.guardsecure.AdminActivity\""));
}

private void WipeData1_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am broadcast -a android.intent.action.MASTER_CLEAR"));
}

private void WipeData2_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am broadcast -a android.intent.action.MASTER_CLEAR -f 0x01000000"));
}

private void WipeData3_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell su -c \"am broadcast -a android.intent.action.MASTER_CLEAR\""));
}

private void WipeDatabyLinspirer_Click(object sender, EventArgs e)
{
MessageBox.Show(RunCommand("adb shell am startservice -n com.android.launcher3 / com.drupe.swd.launcher.huoshan.mdm.service.ExecuteCmdService--es \"cmd\" \"command_reset_factory\""));
}

private void ABOUT_Click(object sender, EventArgs e)
{
Form2 f = new Form2();
f.ShowDialog();
}
}
}
139 changes: 139 additions & 0 deletions Form2.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions Form2.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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 abdUI
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("https://github.com/Tonyha7/abd-Toolbox-UI");
}
}
}
Loading

0 comments on commit cfa2b69

Please sign in to comment.