diff --git a/APKInstaller/APKInstaller.csproj b/APKInstaller/APKInstaller.csproj deleted file mode 100644 index a07fd38..0000000 --- a/APKInstaller/APKInstaller.csproj +++ /dev/null @@ -1,101 +0,0 @@ - - - - - Debug - AnyCPU - {66483CB3-CC46-4E18-A1E9-15F84CB5ADAD} - WinExe - APKInstaller - APKInstaller - v4.0 - 512 - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - and_app_ico.ico - - - x64 - bin\x64\Debug\ - - - x64 - bin\x64\Release\ - - - true - bin\x86\Debug\ - DEBUG;TRACE - full - x86 - 7.3 - prompt - - - bin\x86\Release\ - TRACE - true - pdbonly - x86 - 7.3 - prompt - - - - - - - - - - - - - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - \ No newline at end of file diff --git a/APKInstaller/Program.cs b/APKInstaller/Program.cs deleted file mode 100644 index a076074..0000000 --- a/APKInstaller/Program.cs +++ /dev/null @@ -1,65 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Windows.Forms; - -namespace APKInstaller -{ - static class Program - { - [STAThread] - static void Main() - { - string[] args = Environment.GetCommandLineArgs(); - if (args.Length == 2) - { - string path = args[1]; - if (File.Exists(args[1]) && path.EndsWith(".apk")) - { - Process installproc = new Process(); - ProcessStartInfo si = new ProcessStartInfo - { - FileName = "adb", - Arguments = "install " + path, - UseShellExecute = false, - RedirectStandardOutput = true, - CreateNoWindow = true - }; - - installproc.StartInfo = si; - installproc.Start(); - installproc.WaitForExit(); - - string cmdout = installproc.StandardOutput.ReadToEnd(); - if (cmdout.Contains("adb: error: failed to get feature set: no devices/emulators found")) - { - MessageBox.Show("Device not connected. Please connect your device with ADB.", "APKInstaller for WSA"); - Console.WriteLine("Device not connected. Please connect your device with ADB."); - Environment.Exit(1); - } - else if (cmdout.Contains("Success")) - { - MessageBox.Show("Installed app successfully.", "APKInstaller for WSA"); - Console.WriteLine("Installed app successfully."); - Environment.Exit(0); - } - else - { - MessageBox.Show("An error occured while installing the app.", "APKInstaller for WSA"); - Console.WriteLine("An error occured while installing the app."); - Environment.Exit(1); - } - } - else - { - MessageBox.Show("File is not available or not a Android app package. Please check the file again.", "APKInstaller for WSA"); - Console.WriteLine("File is not available or not a Android app package. Please check the file again."); - Environment.Exit(1); - } - - } - } - } -} diff --git a/APKInstaller/Properties/AssemblyInfo.cs b/APKInstaller/Properties/AssemblyInfo.cs deleted file mode 100644 index 936c9bf..0000000 --- a/APKInstaller/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("APKInstaller")] -[assembly: AssemblyDescription("An easy way to install APKs to WSA.")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Erentronik Corp.")] -[assembly: AssemblyProduct("APKInstaller")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("66483cb3-cc46-4e18-a1e9-15f84cb5adad")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/APKInstaller/Properties/Resources.Designer.cs b/APKInstaller/Properties/Resources.Designer.cs deleted file mode 100644 index 0f726d7..0000000 --- a/APKInstaller/Properties/Resources.Designer.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - - -namespace APKInstaller.Properties -{ - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("APKInstaller.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} diff --git a/APKInstaller/Properties/Resources.resx b/APKInstaller/Properties/Resources.resx deleted file mode 100644 index ffecec8..0000000 --- a/APKInstaller/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/APKInstaller/Properties/Settings.Designer.cs b/APKInstaller/Properties/Settings.Designer.cs deleted file mode 100644 index aab09b8..0000000 --- a/APKInstaller/Properties/Settings.Designer.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - - -namespace APKInstaller.Properties -{ - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default - { - get - { - return defaultInstance; - } - } - } -} diff --git a/APKInstaller/Properties/Settings.settings b/APKInstaller/Properties/Settings.settings deleted file mode 100644 index abf36c5..0000000 --- a/APKInstaller/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/APKInstaller/and_app_ico.ico b/APKInstaller/and_app_ico.ico deleted file mode 100644 index 11d75c3..0000000 Binary files a/APKInstaller/and_app_ico.ico and /dev/null differ