Skip to content

Will inject strings.xml, google-services.json, logo.png, assets and more files into an android app programmatically (dynamically)

License

Notifications You must be signed in to change notification settings

osfunapps/os-android-files-injector-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
osfunapps
Apr 13, 2020
403ea8d · Apr 13, 2020

History

15 Commits
Apr 13, 2020
Jul 11, 2019
Jul 11, 2019
Apr 13, 2020
Jul 11, 2019
Apr 13, 2020

Repository files navigation

Introduction

This script will inject:

  • strings.xml
  • google-services.json
  • logo.png
  • assets
    and more files into an android app programmatically (dynamically).

Installation

Install via pip:

pip install os-android-files-injector

Usage

From Python:

import os_android_files_injector.app_files_injector as fi

fi.run('/path/to/android/project',
       '/path/to/strings.xml',
       '/path/to/logo.png',
       '/path/to//google-services.json',
       ['/path/to/asset_file_1.png', '/path/to/asset_file_2.mov', '/path/to/asset_file_3.txt'],
       clear_old_assets=False)

Or from the command line:

python3 -c 'import os_android_files_injector.app_files_injector as fi; 
fi.run("/path/to/android/app",
       "/path/to/strings.xml",
       "/path/to/logo.png",
       "/path/to//google-services.json",
       ["/path/to/asset_file_1.png", "/path/to/asset_file_2.mov", "/path/to/asset_file_3.txt"],
       clear_old_assets=False)'

Licence

MIT

About

Will inject strings.xml, google-services.json, logo.png, assets and more files into an android app programmatically (dynamically)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages