termux / termux-api-package

Termux package containing scripts to call functionality in Termux:API.
MIT License
1.02k stars 318 forks source link

Script to install/uninstall packages #94

Closed AbdullahM0hamed closed 4 years ago

AbdullahM0hamed commented 4 years ago

This script calls the package installer via Intents and requires the following permissions to be in termux-api:

android.permission.REQUEST_INSTALL_PACKAGES android.permission.REQUEST_DELETE_PACKAGES

AbdullahM0hamed commented 4 years ago

@xalexalex, it is a typo, yes.

I couldn't figure out how to change it though, unfortunately.

AbdullahM0hamed commented 4 years ago

I'm not sure what I was doing wrong before, but I've managed to change the name. I've also rearranged the logic as requested.

AbdullahM0hamed commented 4 years ago

@nikitabobko, I've addressed most of your concerns. Regarding that last concern I edited this using emacs (in termux) and I haven't changed anything from the default settings (I went ahead an manually backspaced it through).

EDIT: It seems that emacs does not indent it using 8 spaces, for if statements. I'm not sure why it happened, as I don't indent manually, but I believe it may have been because it indented then originally, and then indented the next line further as I originally forget to close the if condition.