Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"tel-app -r" uninstalls apps now #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eltroniq
Copy link

@eltroniq eltroniq commented Nov 4, 2021

Restructured source code of tel-app to add an option for uninstalling apps (using androids built-in package installer) while avoiding redundancy. Help message was updated. Tested functionality and everything should work as expected.

… apps (using androids built-in package installer) while avoiding redundancy. Help message was updated. Tested functionality and everything should work as expected.
@SealedJoy
Copy link
Member

Great idea + thanks for contributing. Unfortunately the am command appears not to do anything on my current (old) device (android 9, lineage os) could this be the installer package activity?

@eltroniq
Copy link
Author

eltroniq commented Nov 21, 2021

works on my device... ;)

I'm also on Android 9, SyberiaOS. Looks like they removed the "-n" from "am" command (works for me tho).

@SealedJoy Can you please try following and give me feedback, if it works:

am start -d <package_name> com.android.packageinstaller/.UninstallerActivity

I also found another way, maybe this is a better approach:

am start -a android.intent.action.DELETE -d package:<package_name>

@v1nc
Copy link
Contributor

v1nc commented Nov 21, 2021

works on my device... ;)

I'm also on Android 9, SyberiaOS. Looks like they removed the "-n" from "am" command (works for me tho).

@SealedJoy Can you please try following and give me feedback, if it works:

am start -d <package_name> com.android.packageinstaller/.UninstallerActivity

I also found another way, maybe this is a better approach:

am start -a android.intent.action.DELETE -d package:<package_name>

Your script changes work for me on android 11, the first command you posted also works, the second doesnt.

@eltroniq
Copy link
Author

eltroniq commented Dec 1, 2021

@SealedJoy what about you?

@SealedJoy
Copy link
Member

first didn't work for me, (now on android 12) but the second new method worked perfectly! can i suggest you submit the changes to the t-e-l/bin repo as this is one tel-update fetches from. or if you prefer, shoot a pm and i can sort it out

@eltroniq
Copy link
Author

sorry, i'm a bit confused.

this is what i understand:

am start -d <package_name> com.android.packageinstaller/.UninstallerActivity
works for you @v1nc on android 11, but not for you @SealedJoy on android 12.

am start -a android.intent.action.DELETE -d package:<package_name>
works for @SealedJoy, but not for @v1nc.

do i get this right?
maybe we need to choose the executed command regarding the android version, is there a variable set in zsh by TEL containing this?

@eltroniq
Copy link
Author

eltroniq commented Jan 4, 2022

do i get this right? maybe we need to choose the executed command regarding the android version, is there a variable set in zsh by TEL containing this?

btw, found the proper command for getting the android version:

echo $(printf "%.1s" "$(getprop ro.build.version.release)")

now I still need to know for which android version exactly which command is working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants