From fd05458f57d6f6cf7438e674e68ef30c3c0d38ad Mon Sep 17 00:00:00 2001 From: Raymond Oung Date: Tue, 18 Aug 2020 09:13:34 +0900 Subject: [PATCH 1/3] Updates README instructions --- README.md | 63 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 731191a..68735d4 100644 --- a/README.md +++ b/README.md @@ -7,30 +7,38 @@ These scripts have currently been tested on: ## TL;DR -Clone the repository and update submodules: +Clone the repository: ``` -git clone https://github.com/ray-hrst/temi-shortcut.git +git clone https://github.com/hapi-robo/temi-shortcut.git cd temi-shortcut/ ``` -Get the APK's `package-name`: +Create shortcut: ``` -./package_name.sh +./shortcut.sh ``` -This will output the APK's `package-name`, which is used in the following: +For example, to create a shortcut for Chrome: ``` -./shortcut.sh +./shortcut.sh com.android.chrome "Chrome" ``` -For example, to create a shortcut for 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: ``` -$ ./package_name.sh chrome.apk -com.android.chrome -$ ./shortcut.sh com.android.chrome "Chrome" +adb install chrome.apk +adb install chrome_shortcut.apk ``` -The file `chrome_shortcut.apk` should then appear in the same directory. +### 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 +``` ## Dependencies @@ -41,23 +49,6 @@ export ANDROID_HOME=/path/to/Android/Sdk/ ## Usage -### package_name.sh -Returns an APK's the package-name. -``` -usage: package_name.sh - -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) -``` - ### 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. ``` @@ -77,3 +68,19 @@ positional arguments: a name with whitespace. ``` +### package_name.sh +Returns an APK's package-name. +``` +usage: package_name.sh + +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) +``` \ No newline at end of file From 14f62edb87ef2149ffedf9d340813c9b9e5d1e78 Mon Sep 17 00:00:00 2001 From: Raymond Oung Date: Tue, 18 Aug 2020 10:52:53 +0900 Subject: [PATCH 2/3] Updates README instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 68735d4..06cb136 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ If the package is on your computer, you can run the following script: ## Dependencies -Scripts in this repository require the Android SDK, see [Android SDK installation instructions](https://www.androidcentral.com/installing-android-sdk-windows-mac-and-linux-tutorial) for installation details. Once installed, export the SDK's path to the `ANDROID_HOME` environment variable, for example: +Scripts in this repository require the Android SDK, which is included in [Android Studio](https://developer.android.com/studio/). Once installed, export the SDK's path to the `ANDROID_HOME` environment variable, for example: ``` export ANDROID_HOME=/path/to/Android/Sdk/ ``` From 67621f43ddb1e7cc759f13dd18c0933444686598 Mon Sep 17 00:00:00 2001 From: Raymond Oung Date: Tue, 18 Aug 2020 13:18:04 +0900 Subject: [PATCH 3/3] Updates temi SDK version --- template/app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/app/build.gradle b/template/app/build.gradle index 2025512..a5ead8b 100644 --- a/template/app/build.gradle +++ b/template/app/build.gradle @@ -30,5 +30,5 @@ dependencies { // temi // https://github.com/robotemi/sdk - implementation 'com.robotemi:sdk:0.10.55' + implementation 'com.robotemi:sdk:0.10.65' }