Skip to content

nnelas/AmBinaryEditor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AmBinaryEditor

AndroidManifest.xml Binary Editor.

AmBinaryEditor can add any element on AndroidManifest without decompiling/compiling with apktool

Build instructions (Ubuntu)

  • Assuming that you have gcc on your machine:
$ make compile

Usage

  • Basics
-p/--parent     - define parent of that tag
-d/--deep       - how many nodes you wanna skip before inserting
-c/--count      - how many nodes you wanna skip after ending insertion
-n/--name       - attribute name (eg.: android:theme - theme, android:name - name)
-t/--type       - type of attribute value (eg.: strings = 3)
-v/--value      - specific value of that attribute
-i/--input      - input AndroidManifest.xml
-o/--output     - output AndroidManifest.xml
  • Activities
$ ./ameditor tag --add activity -p application -d 1 -c 0 -i <manifest_path> -o <manifest_path>

$ ./ameditor attr --add activity -p application -d 1 -n name -t 3 -v com.nunonelas.test.Activity -i <manifest_path> -o <manifest_path>
  • Permissions
$ ./ameditor tag --add uses-permission -p manifest -d 1 -c 0 -i <manifest_path> -o <manifest_path>

$ ./ameditor attr --add uses-permission -p manifest -d 1 -n name -t 3 -v com.nunonelas.test.permission -i <manifest_path> -o <manifest_path>
  • Change Version Name
$ ./ameditor attr --modify manifest -d 1 -n versionName -t 3 -v <new_version_name> -i <manifest_path> -o <manifest_path>

More info

Original documentation here:

http://ele7enxxh.com/AndroidManifest-Binary-Editor.html

About

AndroidManifest Binary Editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.4%
  • Makefile 0.6%