GithubHelp home page GithubHelp logo

oizopower / settingsdeployer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from voguemaster/settingsdeployer

0.0 2.0 0.0 1.02 MB

A tool to automate download and deployment of settings/addons/repos for XBMC/Kodi on Android.

License: MIT License

Java 100.00%

settingsdeployer's Introduction

SettingsDeployer for Kodi

A tool to automate download and deployment of settings/addons/repos for XBMC/Kodi on Android.

This is a simple android application that, when run, fetches a ZIP archive from a predefined URL (or set of URLs), downloads it and extracts it to the proper location of the master profile of XBMC/Kodi in internal storage. For this, XBMC/Kodi is first detected by the code and the profile directory detected.

Permissions:

  1. Read/Write external storage - Used to save the zip package to internal storage, to detect Kodi/XBMC profile dirs and extract.
  2. Full internet access - To download the package set in the urls.xml.
  3. Prevent the device from sleeping - During download/extract the device shouldn't turn off the CPU otherwise we're toast.

Version 1.2:

  • Now using a wakelock to keep the device awake during the download and extraction work. The wakelock is released when the work finishes, an error occurs, the user cancels or 4 minutes have passed. If the device can't download and extract the package in 4 minutes of time something is awry.

Initial version 1.1:

  • Detect XBMC/Kodi via internal storage created dirs or by querying the PackageManager.
  • Download predefined ZIP file. Can be overriden for each flavor (see the build.gradle file for the module to see what flavors exist or create new ones). URLs are defined in urls.xml files.
  • Automatically extract.
  • Log all operations and cleanup stuff when done.
  • Do stuff in the background and report progress. When exiting via the Back key, all operations are cancelled, currently. Keeps the device awake during download and extract.

Currently tailored to be used by TheWiz to deploy his Kodi package but can be forked and used by anyone. MIT licence - just add the licence to whatever you do with this code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.