Compare commits

...

5 commits

Author SHA1 Message Date
Adrian
fd26a98f3e
Update README.md 2024-04-18 20:43:46 -03:00
Adrian Victor
f057278861 Commented code left behind. 2024-04-05 21:50:10 -03:00
Adrian Victor
d735fbeece Added Settings page and option to disable transparency. 2024-04-05 21:40:29 -03:00
Adrian Victor
ef8d6284ea Updated to .Net Framework 4.8. 2024-04-05 21:17:08 -03:00
Adrian Victor
ff061b8341
Added a decent README.md 2023-09-20 18:56:55 -03:00
52 changed files with 597 additions and 84 deletions

BIN
.vs/APKrenamer/v17/.suo Normal file

Binary file not shown.

View file

@ -0,0 +1,104 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{BA578C65-7B9F-4B80-8094-598B258B6402}|APKrenamer\\APKrenamer.csproj|C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\apkrenamer\\settings.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{BA578C65-7B9F-4B80-8094-598B258B6402}|APKrenamer\\APKrenamer.csproj|solutionrelative:apkrenamer\\settings.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{BA578C65-7B9F-4B80-8094-598B258B6402}|APKrenamer\\APKrenamer.csproj|c:\\users\\lenovo\\source\\repos\\apkrenamer\\apkrenamer\\main.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form",
"RelativeMoniker": "D:0:0:{BA578C65-7B9F-4B80-8094-598B258B6402}|APKrenamer\\APKrenamer.csproj|solutionrelative:apkrenamer\\main.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form"
},
{
"AbsoluteMoniker": "D:0:0:{00000000-0000-0000-0000-000000000000}|\u003CSolution\u003E|APKrenamer||{04B8AB82-A572-4FEF-95CE-5222444B6B64}|"
},
{
"AbsoluteMoniker": "D:0:0:{BA578C65-7B9F-4B80-8094-598B258B6402}|APKrenamer\\APKrenamer.csproj|C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\apkrenamer\\main.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{BA578C65-7B9F-4B80-8094-598B258B6402}|APKrenamer\\APKrenamer.csproj|solutionrelative:apkrenamer\\main.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{BA578C65-7B9F-4B80-8094-598B258B6402}|APKrenamer\\APKrenamer.csproj|C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\apkrenamer\\settings.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{BA578C65-7B9F-4B80-8094-598B258B6402}|APKrenamer\\APKrenamer.csproj|solutionrelative:apkrenamer\\settings.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{BA578C65-7B9F-4B80-8094-598B258B6402}|APKrenamer\\APKrenamer.csproj|c:\\users\\lenovo\\source\\repos\\apkrenamer\\apkrenamer\\||{B270807C-D8C6-49EB-8EBE-8E8D566637A1}|5e9a8ac2-4f34-4521-858f-4c248ba31532"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 1,
"Children": [
{
"$type": "Document",
"DocumentIndex": 4,
"Title": "settings.cs",
"DocumentMoniker": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\settings.cs",
"RelativeDocumentMoniker": "APKrenamer\\settings.cs",
"ToolTip": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\settings.cs",
"RelativeToolTip": "APKrenamer\\settings.cs",
"ViewState": "AQIAABgAAAAAAAAAAAAowBUAAAAbAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-06T00:23:41.601Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "settings.cs [Design]",
"DocumentMoniker": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\settings.cs",
"RelativeDocumentMoniker": "APKrenamer\\settings.cs",
"ToolTip": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\settings.cs [Design]",
"RelativeToolTip": "APKrenamer\\settings.cs [Design]",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-06T00:21:42.554Z",
"EditorCaption": " [Design]"
},
{
"$type": "Document",
"DocumentIndex": 3,
"Title": "main.cs",
"DocumentMoniker": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\main.cs",
"RelativeDocumentMoniker": "APKrenamer\\main.cs",
"ToolTip": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\main.cs",
"RelativeToolTip": "APKrenamer\\main.cs",
"ViewState": "AQIAAEcAAAAAAAAAAAD4v3IAAAAeAAAA",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-06T00:21:28.472Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "main.cs [Design]",
"DocumentMoniker": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\main.cs",
"RelativeDocumentMoniker": "APKrenamer\\main.cs",
"ToolTip": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\main.cs [Design]",
"RelativeToolTip": "APKrenamer\\main.cs [Design]",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2024-04-06T00:14:33.663Z",
"EditorCaption": " [Design]"
},
{
"$type": "Document",
"DocumentIndex": 2,
"Title": "APKrenamer",
"DocumentMoniker": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\APKrenamer.csproj",
"RelativeDocumentMoniker": "APKrenamer\\APKrenamer.csproj",
"ToolTip": "C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\APKrenamer.csproj",
"RelativeToolTip": "APKrenamer\\APKrenamer.csproj",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001001|",
"WhenOpened": "2024-04-06T00:14:16.875Z",
"EditorCaption": ""
}
]
}
]
}
]
}

View file

@ -0,0 +1 @@
{"RootPath":"C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer","ProjectFileName":"APKrenamer.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"main.cs"},{"SourceFile":"main.Designer.cs"},{"SourceFile":"Program.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"settings.cs"},{"SourceFile":"settings.Designer.cs"},{"SourceFile":"Properties\\Resources.Designer.cs"},{"SourceFile":"Properties\\Settings.Designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\bin\\Debug\\Csharp.Apk-Reader.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Deployment.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\bin\\Debug\\APKrenamer.exe","OutputItemRelativePath":"APKrenamer.exe"},{"OutputItemFullPath":"C:\\Users\\LENOVO\\source\\repos\\APKRenamer\\APKrenamer\\bin\\Debug\\APKrenamer.pdb","OutputItemRelativePath":"APKrenamer.pdb"}],"CopyToOutputEntries":[]}

View file

@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>APKrenamer</RootNamespace>
<AssemblyName>APKrenamer</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -21,6 +22,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -30,6 +32,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>0</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>icon.ico</ApplicationIcon>
@ -50,16 +53,22 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<Compile Include="main.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
<Compile Include="main.Designer.cs">
<DependentUpon>main.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<Compile Include="settings.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="settings.Designer.cs">
<DependentUpon>settings.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="main.resx">
<DependentUpon>main.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
@ -71,6 +80,10 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="settings.resx">
<DependentUpon>settings.cs</DependentUpon>
</EmbeddedResource>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>

View file

@ -6,19 +6,19 @@ 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("APK Renamer")]
[assembly: AssemblyTitle("APKRenamer")]
[assembly: AssemblyDescription("Bulk rename your APK files according to it's manifest info")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("tenkuma.")]
[assembly: AssemblyCompany("tenkuma")]
[assembly: AssemblyProduct("APK renamer")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[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)]
[assembly: ComVisible(true)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("ba578c65-7b9f-4b80-8094-598b258b6402")]
@ -33,7 +33,7 @@ using System.Runtime.InteropServices;
// 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.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: NeutralResourcesLanguage("en")]

View file

@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
// O código foi gerado por uma ferramenta.
// Versão de Tempo de Execução:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se
// o código for gerado novamente.
// </auto-generated>
//------------------------------------------------------------------------------
@ -13,13 +13,13 @@ namespace APKrenamer.Properties {
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// Uma classe de recurso de tipo de alta segurança, para pesquisar cadeias de caracteres localizadas etc.
/// </summary>
// 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")]
// Essa classe foi gerada automaticamente pela classe StronglyTypedResourceBuilder
// através de uma ferramenta como ResGen ou Visual Studio.
// Para adicionar ou remover um associado, edite o arquivo .ResX e execute ResGen novamente
// com a opção /str, ou recrie o projeto do VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
@ -33,7 +33,7 @@ namespace APKrenamer.Properties {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// Retorna a instância de ResourceManager armazenada em cache usada por essa classe.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
@ -47,8 +47,8 @@ namespace APKrenamer.Properties {
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// Substitui a propriedade CurrentUICulture do thread atual para todas as
/// pesquisas de recursos que usam essa classe de recurso de tipo de alta segurança.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {

View file

@ -1,30 +1,50 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
// O código foi gerado por uma ferramenta.
// Versão de Tempo de Execução:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// As alterações ao arquivo poderão causar comportamento incorreto e serão perdidas se
// o código for gerado novamente.
// </auto-generated>
//------------------------------------------------------------------------------
namespace APKrenamer.Properties
{
namespace APKrenamer.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
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.9.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
{
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool ignoreErrors {
get {
return ((bool)(this["ignoreErrors"]));
}
set {
this["ignoreErrors"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool transparency {
get {
return ((bool)(this["transparency"]));
}
set {
this["transparency"] = value;
}
}
}
}

View file

@ -1,7 +1,12 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="APKrenamer.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="ignoreErrors" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="transparency" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
</Settings>
</SettingsFile>

18
APKrenamer/app.config Normal file
View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="APKrenamer.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup><userSettings>
<APKrenamer.Properties.Settings>
<setting name="ignoreErrors" serializeAs="String">
<value>False</value>
</setting>
<setting name="transparency" serializeAs="String">
<value>True</value>
</setting>
</APKrenamer.Properties.Settings>
</userSettings>
</configuration>

Binary file not shown.

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="APKrenamer.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup><userSettings>
<APKrenamer.Properties.Settings>
<setting name="ignoreErrors" serializeAs="String">
<value>False</value>
</setting>
<setting name="transparency" serializeAs="String">
<value>True</value>
</setting>
</APKrenamer.Properties.Settings>
</userSettings>
</configuration>

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="APKrenamer.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup><userSettings>
<APKrenamer.Properties.Settings>
<setting name="ignoreErrors" serializeAs="String">
<value>False</value>
</setting>
<setting name="transparency" serializeAs="String">
<value>True</value>
</setting>
</APKrenamer.Properties.Settings>
</userSettings>
</configuration>

View file

@ -35,8 +35,8 @@
this.btFile = new System.Windows.Forms.Button();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button();
this.btConfig = new System.Windows.Forms.Button();
this.btHelp = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// lbTitle
@ -45,14 +45,14 @@
this.lbTitle.Font = new System.Drawing.Font("Segoe UI", 20F);
this.lbTitle.Location = new System.Drawing.Point(5, 9);
this.lbTitle.Name = "lbTitle";
this.lbTitle.Size = new System.Drawing.Size(186, 37);
this.lbTitle.Size = new System.Drawing.Size(165, 37);
this.lbTitle.TabIndex = 0;
this.lbTitle.Text = "apk renamer ;)";
this.lbTitle.Text = "apk renamer";
//
// btStart
//
this.btStart.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btStart.Location = new System.Drawing.Point(111, 249);
this.btStart.Location = new System.Drawing.Point(12, 249);
this.btStart.Name = "btStart";
this.btStart.Size = new System.Drawing.Size(49, 23);
this.btStart.TabIndex = 1;
@ -74,9 +74,9 @@
// btFile
//
this.btFile.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btFile.Location = new System.Drawing.Point(166, 249);
this.btFile.Location = new System.Drawing.Point(67, 249);
this.btFile.Name = "btFile";
this.btFile.Size = new System.Drawing.Size(78, 23);
this.btFile.Size = new System.Drawing.Size(69, 23);
this.btFile.TabIndex = 3;
this.btFile.Text = "Select file";
this.btFile.UseVisualStyleBackColor = true;
@ -104,26 +104,28 @@
this.textBox3.TabIndex = 6;
this.textBox3.Text = "-=LOG=-";
//
// checkBox1
// btConfig
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(12, 253);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(93, 17);
this.checkBox1.TabIndex = 7;
this.checkBox1.Text = "Ignore errors";
this.checkBox1.UseVisualStyleBackColor = true;
this.btConfig.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btConfig.Location = new System.Drawing.Point(142, 249);
this.btConfig.Name = "btConfig";
this.btConfig.Size = new System.Drawing.Size(67, 23);
this.btConfig.TabIndex = 8;
this.btConfig.Text = "Settings";
this.btConfig.UseVisualStyleBackColor = true;
this.btConfig.Click += new System.EventHandler(this.button1_Click);
//
// button1
// btHelp
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(249, 249);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(23, 23);
this.button1.TabIndex = 8;
this.button1.Text = "?";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
this.btHelp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btHelp.ForeColor = System.Drawing.Color.White;
this.btHelp.Location = new System.Drawing.Point(215, 249);
this.btHelp.Name = "btHelp";
this.btHelp.Size = new System.Drawing.Size(57, 23);
this.btHelp.TabIndex = 11;
this.btHelp.Text = "Help";
this.btHelp.UseVisualStyleBackColor = true;
this.btHelp.Click += new System.EventHandler(this.btHelp_Click);
//
// mainWindow
//
@ -131,8 +133,8 @@
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Black;
this.ClientSize = new System.Drawing.Size(284, 281);
this.Controls.Add(this.button1);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.btHelp);
this.Controls.Add(this.btConfig);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.btFile);
@ -162,8 +164,8 @@
private System.Windows.Forms.Button btFile;
private System.Windows.Forms.TextBox textBox2;
internal System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button btConfig;
private System.Windows.Forms.Button btHelp;
}
}

View file

@ -57,7 +57,7 @@ namespace APKrenamer
catch (System.Exception)
{
// Check if it should ignore the error
if (checkBox1.Checked)
if (Properties.Settings.Default.ignoreErrors)
{
log("An error ocurred with" + diagCurrentFileName + ", but was ignored!");
}
@ -98,13 +98,22 @@ namespace APKrenamer
}
}
// For convenience sake, it adds a new line on log
// For convenience sake, it adds a new line on log.
public void log(string message)
{
textBox3.AppendText(Environment.NewLine + message);
}
// Loads setting page then reloads the transparency after it's closed.
private void button1_Click(object sender, EventArgs e)
{
settings popup = new settings();
popup.ShowDialog();
this.AllowTransparency = Properties.Settings.Default.transparency;
}
// Shows help message.
private void btHelp_Click(object sender, EventArgs e)
{
MessageBox.Show("Variables:\n%target% - Target SDK version\n%sdk% - Minimum SDK version\n%package% - Package name\n%name% - Application name\n%ver% - Application version\n%vercode% - Version code");
}

View file

@ -112,12 +112,12 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAAAAAAAEAIAAtCAAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgAAAAAeRn3ugAAAAFv

View file

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View file

@ -0,0 +1 @@
e116a69dd67e08c730c6af8db72640d9d685420ed1bcabc29b846090093c0658

View file

@ -7,3 +7,15 @@ c:\users\adrian\documents\visual studio 2015\Projects\APKrenamer\APKrenamer\obj\
c:\users\adrian\documents\visual studio 2015\Projects\APKrenamer\APKrenamer\obj\Debug\APKrenamer.exe
c:\users\adrian\documents\visual studio 2015\Projects\APKrenamer\APKrenamer\obj\Debug\APKrenamer.pdb
c:\users\adrian\documents\visual studio 2015\Projects\APKrenamer\APKrenamer\bin\Debug\Csharp.Apk-Reader.dll
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\bin\Debug\APKrenamer.exe.config
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\bin\Debug\APKrenamer.exe
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\bin\Debug\APKrenamer.pdb
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Debug\APKrenamer.csproj.AssemblyReference.cache
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Debug\APKrenamer.mainWindow.resources
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Debug\APKrenamer.Properties.Resources.resources
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Debug\APKrenamer.settings.resources
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Debug\APKrenamer.csproj.GenerateResource.cache
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Debug\APKrenamer.csproj.CoreCompileInputs.cache
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Debug\APKrenamer.csproj.Up2Date
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Debug\APKrenamer.exe
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Debug\APKrenamer.pdb

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

View file

@ -0,0 +1 @@
3b84dd84a36bda580ddd6f83f58113bb5a1c5b5c5c405b40c841b4074cf2215b

View file

@ -6,3 +6,15 @@ C:\Users\adrian\Documents\Visual Studio 2015\Projects\APKrenamer\APKrenamer\obj\
C:\Users\adrian\Documents\Visual Studio 2015\Projects\APKrenamer\APKrenamer\obj\Release\APKrenamer.csproj.GenerateResource.Cache
C:\Users\adrian\Documents\Visual Studio 2015\Projects\APKrenamer\APKrenamer\obj\Release\APKrenamer.exe
C:\Users\adrian\Documents\Visual Studio 2015\Projects\APKrenamer\APKrenamer\obj\Release\APKrenamer.pdb
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\bin\Release\APKrenamer.exe.config
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\bin\Release\APKrenamer.exe
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\bin\Release\APKrenamer.pdb
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Release\APKrenamer.csproj.AssemblyReference.cache
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Release\APKrenamer.mainWindow.resources
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Release\APKrenamer.Properties.Resources.resources
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Release\APKrenamer.settings.resources
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Release\APKrenamer.csproj.GenerateResource.cache
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Release\APKrenamer.csproj.CoreCompileInputs.cache
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Release\APKrenamer.csproj.Up2Date
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Release\APKrenamer.exe
C:\Users\LENOVO\source\repos\APKRenamer\APKrenamer\obj\Release\APKrenamer.pdb

Binary file not shown.

93
APKrenamer/settings.Designer.cs generated Normal file
View file

@ -0,0 +1,93 @@
namespace APKrenamer
{
partial class settings
{
/// <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.cbTransparecy = new System.Windows.Forms.CheckBox();
this.cbIgnoreErrors = new System.Windows.Forms.CheckBox();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// cbTransparecy
//
this.cbTransparecy.AutoSize = true;
this.cbTransparecy.Location = new System.Drawing.Point(107, 12);
this.cbTransparecy.Name = "cbTransparecy";
this.cbTransparecy.Size = new System.Drawing.Size(93, 17);
this.cbTransparecy.TabIndex = 8;
this.cbTransparecy.Text = "Transparency";
this.cbTransparecy.UseVisualStyleBackColor = true;
this.cbTransparecy.CheckedChanged += new System.EventHandler(this.cbTransparecy_CheckedChanged);
//
// cbIgnoreErrors
//
this.cbIgnoreErrors.AutoSize = true;
this.cbIgnoreErrors.Location = new System.Drawing.Point(12, 12);
this.cbIgnoreErrors.Name = "cbIgnoreErrors";
this.cbIgnoreErrors.Size = new System.Drawing.Size(93, 17);
this.cbIgnoreErrors.TabIndex = 9;
this.cbIgnoreErrors.Text = "Ignore errors";
this.cbIgnoreErrors.UseVisualStyleBackColor = true;
this.cbIgnoreErrors.CheckedChanged += new System.EventHandler(this.checkBox2_CheckedChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(9, 32);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(205, 13);
this.label1.TabIndex = 10;
this.label1.Text = "Transparency only applies after restart.";
//
// settings
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Black;
this.ClientSize = new System.Drawing.Size(222, 57);
this.Controls.Add(this.label1);
this.Controls.Add(this.cbIgnoreErrors);
this.Controls.Add(this.cbTransparecy);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ForeColor = System.Drawing.Color.White;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "settings";
this.Text = "Settings";
this.Load += new System.EventHandler(this.settings_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.CheckBox cbTransparecy;
private System.Windows.Forms.CheckBox cbIgnoreErrors;
private System.Windows.Forms.Label label1;
}
}

40
APKrenamer/settings.cs Normal file
View file

@ -0,0 +1,40 @@
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 APKrenamer
{
public partial class settings : Form
{
public settings()
{
InitializeComponent();
}
// Sync settings with the checkboxes...
// ...on form load.
private void settings_Load(object sender, EventArgs e)
{
cbTransparecy.Checked = Properties.Settings.Default.transparency;
cbIgnoreErrors.Checked = Properties.Settings.Default.ignoreErrors;
}
// ...when user checks the checkbox.
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
Properties.Settings.Default.ignoreErrors = cbIgnoreErrors.Checked;
}
private void cbTransparecy_CheckedChanged(object sender, EventArgs e)
{
Properties.Settings.Default.transparency = cbTransparecy.Checked;
}
}
}

120
APKrenamer/settings.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

@ -1,2 +1,20 @@
# APKrenamer
A tool that allows you to bulk rename Android Aplication Package files according to it`s manifest
![image](https://github.com/adrianvic/APKrenamer/assets/85490958/439e4e2c-caee-4755-a288-773c6db39fa2)
(Version 1.1)
Made using [this](https://github.com/mam4dali/Csharp.Apk-Reader) lib
## Example
This is an exmple of renamed APK files:
![Screenshot 2024-04-18 155204](https://github.com/adrianvic/APKrenamer/assets/85490958/2237f46c-40b7-467d-987f-11ea592aaa93)
(this is a mess)
![image](https://github.com/adrianvic/APKrenamer/assets/85490958/2a45758c-5ff7-4185-84b5-23b3f69afdc0)
(this is organized with keywords extracted from the inside of the APKs)
## Compatibility
Needs .Net Framework 4.8.