GithubHelp home page GithubHelp logo

temi-shortcut's Introduction

temi Shortcut

Automatically creates a Launcher shortcut on temi that links to a pre-installed APK.

These scripts have currently been tested on:

  • Ubuntu 18.04

Prerequisites

Scripts in this repository require the Android SDK, see Android SDK installation instructions for installation details. Once installed, export the SDK's path to the ANDROID_HOME environment variable, for example:

export ANDROID_HOME=/path/to/Android/Sdk/

To run package_name.sh, you will need aapt installed in /usr/bin/:

sudo apt install aapt

TL;DR

Clone the repository:

git clone https://github.com/hapi-robo/temi-shortcut.git
cd temi-shortcut/

Create shortcut:

./shortcut.sh <package-name> <shortcut-name>

For example, to create a shortcut for Chrome:

./shortcut.sh com.android.chrome "Chrome"

The file chrome_shortcut.apk should then appear in the same directory. Install it onto your device, along with the package that it links to. For this example:

adb install chrome.apk
adb install chrome_shortcut.apk

APK Package-Name

If the APK is already installed on the device, you can look for it using:

adb shell pm list packages

If the package is on your computer, you can run the following script:

./package_name.sh <apk>

Dependencies

Scripts in this repository require the Android SDK, which is included in Android Studio. Once installed, export the SDK's path to the ANDROID_HOME environment variable, for example:

export ANDROID_HOME=/path/to/Android/Sdk/

Usage

shortcut.sh

Creates an APK (visible on temi's Launcher) that launches another APK. This can be used to run APKs that are hidden from temi's Launcher.

usage: shortcut.sh <package-name> <shortcut-name>

Creates a shortcut for APK file

dependencies:

  - Android-SDK with the ANDROID_HOME environment variable
    set appropriately.

positional arguments:

  package-name          Android application package name
  shortcut-name         Shortcut name. Use double-quotes to encapsulate
                        a name with whitespace.

package_name.sh

Returns an APK's package-name.

usage: package_name.sh <apk>

Returns the APK's package-name

dependencies:

  This script depends on having the Android-SDK installed and having the
  the ANDROID_HOME environment variable set appropriately.

positional arguments:

  apk           		APK filename (.apk)

temi-shortcut's People

Contributors

r-oung avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

leslieam

temi-shortcut's Issues

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.