Skip to content

mougino/easyapk

Repository files navigation

easyapk

easyapk is a cross-platform command-line executable, written in FreeBasic, that allows to alter and re-compile an Android app (*.apk). easyapk takes an XML as input that describes the source APK, the modifications to be done, the target, and it produces an APK as output. easyapk source code is released under a GNU GPL v3 licence as per the attached file "gpl.txt". The licence can be found at https://www.gnu.org/licenses/gpl.txt

easyapk needs the following open source companion tools to be in the same folder where it is installed:

Installing

Just copy "easyapk.exe" and all its needed tools in a same folder.

Building

easyapk can been compiled with FreeBASIC Compiler Version 0.90.1 (07-17-2013) or any other newer version. easyapk has three dependencies in the form of INC files: "str_utils.inc", "file_utils.inc" and "xml_utils.inc". These files and the resource file "easyapk.rc" + icon all need to be placed in the same folder to be compiled.

Usage

easyapk [-v] app_desc_input.xml

Where "app_desc_input.xml" xml architecture is as follows:

List of xml tags:

  • very first line:
	<?xml version="1.0" encoding="utf-8"?>
  • tags that sit on 1 line only:
	<set_local_folder path="D:\RFO-BASIC! QuickAPK\" />
	<copy_file source="rfo-basic/source/Bwing.bas" target="assets/Bwing/source" />
	<set_app_icon source="Z:\RFO-BASIC!\!Bwing\graphics\char1.png" />
	<set_attribute_value tag='android:key="font_pref"' attribute="android:defaultValue" value="Medium" />
	<remove_tag tag="intent-filter" contains='android:pathPattern=".*\\.bas"' />
	<reset_permissions />
	<add_permission name="WRITE_EXTERNAL_STORAGE" />
	<change_package old="com.rfo.basic" new="rfo.mougino.bwing" />
	<sign_with certificate="rfobasic.jks" password="12345678" />
  • opening and closing tags, with content between:
	<use_base_apk source="tools\Basic.apk" target="D:\A\B\C\Bwing.apk">   ...   </use_base_apk>
	<modify_xml_values type="string">   ...   </modify_xml_values>
	<modify_xml source="res/values/strings.xml">   ...   </modify_xml>
	<modify_manifest>   ...   </modify_manifest>
  • dual:
	<set_xml_value name="color1" value="0xffffff" />
	<set_xml_value name="load_file_names"> ... </set_xml_value>

About

xml-based APK modifier/recompiler (back-end to RFO-BASIC! Quick APK)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published