Giter Site home page Giter Site logo

termuxlauncher's Introduction

Termux Launcher (unofficial)

Description


Set Termux as a launcher without hacking anything in the original application. This application just sets Termux as a launcher and does not modify/hack/replace the Termux application itself. Termux application must be installed on your device before using this application.

Installation

If you do not build from source, I have an installable apk for you at here .

Clone this repository to your local storage by typing:

git clone https://github.com/amsitlab/termuxlauncher.git

Go to the repo's root directory:

cd termuxlauncher

Read the Build section.

Build


  • Make sure you have cloned this repo to your local storage.
  • Make sure you have located on root directory of this repo.
  • Make sure build.sh on this root repository has executable permission. run this script on root directory of this repository:
chmod +x build.sh 

and run this script to build:

./build.sh

Recomended


To launch the application with command:

launch [appname]

write it to your ~/.bashrc or ~/.bash_profile :

source "${EXTERNAL_STORAGE}/termuxlauncher/.apps-launcher"

after you have built and installed this app.

Feature


  • The original application was not hacked.
  • You can launch the application by running a command on termux (with a little preliminary configuration).
  • Rooting is not required.

Success


build on Lenovo A1000

Author


Build with


Note


When you fork/recode this repo, you do not become a creator of this app. You can fork/recode this repo, but please do not remove the author's name.

termuxlauncher's People

Contributors

amsitlab avatar doxlang avatar pimonenkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

termuxlauncher's Issues

Autocompletion

Hello!
How we can use autocompletion of apps list to increase speed of apps launching?

sorry for my bad english

I get a error when i uninstall any app..
launch --list
returns a list includer uninstalled apps

build.sh apksigner Unsupported command

the call for apksigner is resulting in:

apksigner begun: creating termuxlauncher.apk

Unsupported command: ../termuxlauncher-debug.key. See --help for supported commands

auto complete

Tapping some long app name is unbearable. Is there any solution for autocomplete app name?

Error

bash: /sdcard/Termux/launch-completion.bash: No such file or directory

reload new apps

do i need to reboot phone to reload newly installed apps ?

Build fails

Not sure where or how it fails. It seems to abort after calling ejc. The logs are quite big, but maybe you can spot the problem. Running android 10 btw, if that matters. As you can see from the log, I have all dependencies installed (they were downloaded automatically).

How to reproduce (for me at least)

> cd ~/devel/termuxlauncher/
> bash ./build.sh

aapt begun: creating R.java

Configurations:
 (default)
 mdpi-v4
 hdpi-v4 xhdpi-v4
 xxhdpi-v4 xxxhdpi-v4
Files:
  mipmap/ic_launcher.png    Src: (mdpi-v4) res/mipmap-mdpi-v4/ic_launcher.png
    Src: (hdpi-v4) res/mipmap-hdpi-v4/ic_launcher.png    Src: (xhdpi-v4) res/mipmap-xhdpi-v4/ic_launcher.png
    Src: (xxhdpi-v4) res/mipmap-xxhdpi-v4/ic_launcher.png    Src: (xxxhdpi-v4) res/mipmap-xxxhdpi-v4/ic_launcher.png
  mipmap/ic_launcher_round.png
    Src: (mdpi-v4) res/mipmap-mdpi-v4/ic_launcher_round.png
    Src: (hdpi-v4) res/mipmap-hdpi-v4/ic_launcher_round.png
    Src: (xhdpi-v4) res/mipmap-xhdpi-v4/ic_launcher_round.png
    Src: (xxhdpi-v4) res/mipmap-xxhdpi-v4/ic_launcher_round.png
    Src: (xxxhdpi-v4) res/mipmap-xxxhdpi-v4/ic_launcher_round.png
  values/strings.xml
    Src: () res/values/strings.xml
  AndroidManifest.xml
    Src: () AndroidManifest.xml

Resource Dirs:
  Type mipmap
    mipmap/ic_launcher.png
      Src: (mdpi-v4) res/mipmap-mdpi-v4/ic_launcher.png
      Src: (hdpi-v4) res/mipmap-hdpi-v4/ic_launcher.png
      Src: (xhdpi-v4) res/mipmap-xhdpi-v4/ic_launcher.png
      Src: (xxhdpi-v4) res/mipmap-xxhdpi-v4/ic_launcher.png
      Src: (xxxhdpi-v4) res/mipmap-xxxhdpi-v4/ic_launcher.png
    mipmap/ic_launcher_round.png
      Src: (mdpi-v4) res/mipmap-mdpi-v4/ic_launcher_round.png
      Src: (hdpi-v4) res/mipmap-hdpi-v4/ic_launcher_round.png
      Src: (xhdpi-v4) res/mipmap-xhdpi-v4/ic_launcher_round.png
      Src: (xxhdpi-v4) res/mipmap-xxhdpi-v4/ic_launcher_round.png
      Src: (xxxhdpi-v4) res/mipmap-xxxhdpi-v4/ic_launcher_round.png
  Type values
    values/strings.xml
      Src: () res/values/strings.xml
Including resources from package: /data/data/com.termux/files/usr/share/aapt/android.jar
Including resources from package: /data/data/com.termux/files/usr/share/java/android.jar
applyFileOverlay for drawable
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
    (new resource id ic_launcher from res/mipmap-mdpi-v4/ic_launcher.png)
    (new resource id ic_launcher from res/mipmap-hdpi-v4/ic_launcher.png)
    (new resource id ic_launcher from res/mipmap-xhdpi-v4/ic_launcher.png)
    (new resource id ic_launcher from res/mipmap-xxhdpi-v4/ic_launcher.png)
    (new resource id ic_launcher from res/mipmap-xxxhdpi-v4/ic_launcher.png)
    (new resource id ic_launcher_round from res/mipmap-mdpi-v4/ic_launcher_round.png)
    (new resource id ic_launcher_round from res/mipmap-hdpi-v4/ic_launcher_round.png)
    (new resource id ic_launcher_round from res/mipmap-xhdpi-v4/ic_launcher_round.png)
    (new resource id ic_launcher_round from res/mipmap-xxhdpi-v4/ic_launcher_round.png)
    (new resource id ic_launcher_round from res/mipmap-xxxhdpi-v4/ic_launcher_round.png)
  Writing symbols for class R.

ecj begun: compiling

Aborted

dx begun: creating bin/classes.dex

./build.sh: line 87: 14550 Aborted                 dx --dex --verbose --output ./bin/classes.dex ./obj

aapt bagun: creating ./bin/termuxlauncher-unsigned.apk

Configurations:
 (default)
 mdpi-v4
 hdpi-v4
 xhdpi-v4
 xxhdpi-v4
 xxxhdpi-v4

Files:
  mipmap/ic_launcher.png
    Src: (mdpi-v4) ./res/mipmap-mdpi-v4/ic_launcher.png
    Src: (hdpi-v4) ./res/mipmap-hdpi-v4/ic_launcher.png
    Src: (xhdpi-v4) ./res/mipmap-xhdpi-v4/ic_launcher.png
    Src: (xxhdpi-v4) ./res/mipmap-xxhdpi-v4/ic_launcher.png
    Src: (xxxhdpi-v4) ./res/mipmap-xxxhdpi-v4/ic_launcher.png
  mipmap/ic_launcher_round.png
    Src: (mdpi-v4) ./res/mipmap-mdpi-v4/ic_launcher_round.png
    Src: (hdpi-v4) ./res/mipmap-hdpi-v4/ic_launcher_round.png
    Src: (xhdpi-v4) ./res/mipmap-xhdpi-v4/ic_launcher_round.png
    Src: (xxhdpi-v4) ./res/mipmap-xxhdpi-v4/ic_launcher_round.png
    Src: (xxxhdpi-v4) ./res/mipmap-xxxhdpi-v4/ic_launcher_round.png
  values/strings.xml
    Src: () ./res/values/strings.xml
  AndroidManifest.xml
    Src: () AndroidManifest.xml

Resource Dirs:
  Type mipmap
    mipmap/ic_launcher.png
      Src: (mdpi-v4) ./res/mipmap-mdpi-v4/ic_launcher.png
      Src: (hdpi-v4) ./res/mipmap-hdpi-v4/ic_launcher.png
      Src: (xhdpi-v4) ./res/mipmap-xhdpi-v4/ic_launcher.png
      Src: (xxhdpi-v4) ./res/mipmap-xxhdpi-v4/ic_launcher.png
      Src: (xxxhdpi-v4) ./res/mipmap-xxxhdpi-v4/ic_launcher.png
    mipmap/ic_launcher_round.png
      Src: (mdpi-v4) ./res/mipmap-mdpi-v4/ic_launcher_round.png
      Src: (hdpi-v4) ./res/mipmap-hdpi-v4/ic_launcher_round.png
      Src: (xhdpi-v4) ./res/mipmap-xhdpi-v4/ic_launcher_round.png
      Src: (xxhdpi-v4) ./res/mipmap-xxhdpi-v4/ic_launcher_round.png
      Src: (xxxhdpi-v4) ./res/mipmap-xxxhdpi-v4/ic_launcher_round.png
  Type values
    values/strings.xml
      Src: () ./res/values/strings.xml
Including resources from package: /data/data/com.termux/files/usr/share/aapt/android.jar
applyFileOverlay for drawable
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: ./res/mipmap-xxhdpi-v4/ic_launcher.png
Processing image: ./res/mipmap-xhdpi-v4/ic_launcher.png
Processing image: ./res/mipmap-hdpi-v4/ic_launcher.png
Processing image: ./res/mipmap-mdpi-v4/ic_launcher.png
    (processed image ./res/mipmap-mdpi-v4/ic_launcher.png: 100% size of source)
    (processed image ./res/mipmap-hdpi-v4/ic_launcher.png: 98% size of source)
Processing image: ./res/mipmap-xxxhdpi-v4/ic_launcher.png
Processing image: ./res/mipmap-mdpi-v4/ic_launcher_round.png
    (processed image ./res/mipmap-xhdpi-v4/ic_launcher.png: 100% size of source)
Processing image: ./res/mipmap-hdpi-v4/ic_launcher_round.png
    (processed image ./res/mipmap-mdpi-v4/ic_launcher_round.png: 97% size of source)
    (processed image ./res/mipmap-xxhdpi-v4/ic_launcher.png: 101% size of source)
Processing image: ./res/mipmap-xhdpi-v4/ic_launcher_round.png
Processing image: ./res/mipmap-xxhdpi-v4/ic_launcher_round.png
    (processed image ./res/mipmap-hdpi-v4/ic_launcher_round.png: 98% size of source)
Processing image: ./res/mipmap-xxxhdpi-v4/ic_launcher_round.png
    (processed image ./res/mipmap-xhdpi-v4/ic_launcher_round.png: 100% size of source)
    (processed image ./res/mipmap-xxxhdpi-v4/ic_launcher.png: 102% size of source)
    (processed image ./res/mipmap-xxhdpi-v4/ic_launcher_round.png: 140% size of source)
    (processed image ./res/mipmap-xxxhdpi-v4/ic_launcher_round.png: 139% size of source)
    (new resource id ic_launcher from mdpi-v4/mipmap/ic_launcher.png #generated)
    (new resource id ic_launcher from hdpi-v4/mipmap/ic_launcher.png #generated)
    (new resource id ic_launcher from xhdpi-v4/mipmap/ic_launcher.png #generated)
    (new resource id ic_launcher from xxhdpi-v4/mipmap/ic_launcher.png #generated)
    (new resource id ic_launcher from xxxhdpi-v4/mipmap/ic_launcher.png #generated)
    (new resource id ic_launcher_round from mdpi-v4/mipmap/ic_launcher_round.png #generated)
    (new resource id ic_launcher_round from hdpi-v4/mipmap/ic_launcher_round.png #generated)
    (new resource id ic_launcher_round from xhdpi-v4/mipmap/ic_launcher_round.png#generated)
    (new resource id ic_launcher_round from xxhdpi-v4/mipmap/ic_launcher_round.png #generated)
    (new resource id ic_launcher_round from xxxhdpi-v4/mipmap/ic_launcher_round.png #generated)
Opening './bin/termuxlauncher-unsigned.apk'
Writing all files...
      'AndroidManifest.xml' (compressed 69%)
      'res/mipmap-hdpi-v4/ic_launcher.png' (not compressed)
      'res/mipmap-hdpi-v4/ic_launcher_round.png' (not compressed)
      'res/mipmap-mdpi-v4/ic_launcher.png' (not compressed)
      'res/mipmap-mdpi-v4/ic_launcher_round.png' (not compressed)
      'res/mipmap-xhdpi-v4/ic_launcher.png' (not compressed)
      'res/mipmap-xhdpi-v4/ic_launcher_round.png' (not compressed)
      'res/mipmap-xxhdpi-v4/ic_launcher.png' (not compressed)
      'res/mipmap-xxhdpi-v4/ic_launcher_round.png' (not compressed)
      'res/mipmap-xxxhdpi-v4/ic_launcher.png' (not compressed)
      'res/mipmap-xxxhdpi-v4/ic_launcher_round.png' (not compressed)
      'resources.arsc' (not compressed)
Generated 12 files
Included 0 files from jar/zip files.
Checking for deleted files
Done!

Go to ./bin directory

aapt begun: adding classes.dex to termuxlauncher-unsigned.apk

 'classes.dex'...
Unable to add 'classes.dex' to 'termuxlauncher-unsigned.apk': file not found

apksigner begun: creating termuxlauncher.apk

Aborted
Change permission termuxlauncher.apk to 644

chmod: cannot access 'termuxlauncher.apk': No such file or directory
Removing termuxlauncher-unsigned.apk

Copy termuxlauncher.apk to /sdcard/Download/buildAPKs/termuxlauncher.apk

cp: cannot stat 'termuxlauncher.apk': No such file or directory
back to prev directory

You can install "termuxlauncher" apps by clicking file located on /sdcard/Download/buildAPKs/termuxlauncher.apk with your favorite file manager.

Cannot select between apps with the same name

I have a Samsung Galaxy Note 8 (N950U) that comes with a pre-installed photos app called "Gallery" (package name: com.sec.android.gallery3d). The phone is not rooted, and the pre-installed app cannot be disabled or uninstalled.

My preferred photos app is a third-party app that also calls itself "Gallery" (package name: com.simplemobiletools.gallery.pro). Running "launch -l" shows both apps, both named "Gallery", but running "launch Gallery" or "launch gallery" only opens the pre-installed app.

I tried running "launch com.simplemobiletools.gallery.pro" directly, but it returned "unknown command".

Is there a way to choose which of the "Gallery" apps to open?

Exit codes

Could you please add exit codes
exit 0 if everything is ok
Exit 1 if app not found or error

Termux launcher stopped working

'classes.dex'...
Unable to add 'classes.dex' to 'termuxlauncher-unsigned.apk': file not found

Please tell me what to do now...
Please

Hmm

screenshot_20190116_190705
Not compatible

Error

bash: /sdcard/Termux/launch-completion.bash: No such file or directory

App launcher in fish

I've successfully build the app and been able to launch apps using default bash shell but cannot use launch and other commands in fish shell or even in zsh . What's the issue . please help thanks

[build.sh] dx call fails

When I run ./build.sh, the script fails at the dx call:

termuxlauncher $ ./build.sh 
...
termuxlauncher $ dx --dex --verbose --output ./bin/classes.dex ./obj
processing ./obj/./amsitlab/android/apps/termuxlauncher/MainActivity.class...
processing ./obj/./amsitlab/android/apps/termuxlauncher/MainActivity$1.class...
processing ./obj/./amsitlab/android/apps/termuxlauncher/R.class...
processing ./obj/./amsitlab/android/apps/termuxlauncher/R$attr.class...
processing ./obj/./amsitlab/android/apps/termuxlauncher/R$mipmap.class...
processing ./obj/./amsitlab/android/apps/termuxlauncher/R$string.class...

UNEXPECTED TOP-LEVEL ERROR:
java.lang.AssertionError: Unable to configure default providers
	at sun.security.jca.Providers.<clinit>(Providers.java:74)
	at sun.security.jca.GetInstance.getInstance(GetInstance.java:156)
	at java.security.Security.getImpl(Security.java:628)
	at java.security.MessageDigest.getInstance(MessageDigest.java:197)
	at dx.dx.dex.file.DexFile.calcSignature(DexFile.java:768)
	at dx.dx.dex.file.DexFile.toDex0(DexFile.java:729)
	at dx.dx.dex.file.DexFile.toDex(DexFile.java:271)
	at dx.dx.command.dexer.Main.writeDex(Main.java:865)
	at dx.dx.command.dexer.Main.runMonoDex(Main.java:322)
	at dx.dx.command.dexer.Main.runDx(Main.java:288)
	at dx.dx.command.dexer.Main.main(Main.java:244)
	at dx.dx.command.Main.main(Main.java:95)

Any idea what could be happening?

Youtube is not launching

Hello, when I do:
launch YouTube, it just won't launch...
then to debug i did:
$ am start -n com.google.android.youtube/.app.honeycomb.Shell$HomeActivity --user 0
Starting: Intent { cmp=com.google.android.youtube/.app.honeycomb.Shell }
Error type 3
Error: Activity class {com.google.android.youtube/com.google.android.youtube.app.honeycomb.Shell} does not exist.

thanks

(BUG) .apps-launcher source fail when some app's name has new line

If you have some app which has new line in there name
(such as korean IPS 'U+' `s customer service app)

Screenshot_20221004-021013_Termux

you can see that dot file can't be loaded well
(after adding "" in app name like below, it was fixed well)

Screenshot_20221004-020150_Termux
Screenshot_20221004-020307_Termux

I think that all app's name should be wrapped be " and all of escape sequence should be removed or escaped well

(sorry for lack of english skill)

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.