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

Termux has different signing keys #3311

Closed
yirod3721 opened this issue Mar 21, 2023 · 14 comments
Closed

Termux has different signing keys #3311

yirod3721 opened this issue Mar 21, 2023 · 14 comments

Comments

@yirod3721
Copy link

Problem description

i used to have termux from the play store but then i decided to swtich to f-droid so i uninstalled termux and and downloaded the f-droid version but it says app not installed and SAI says the shared signatures do not match

Steps to reproduce the behavior.

download termux from play store
uninstall
download from f-droid
then try to install it

What is the expected behavior?

shouldnt have the same signing key as the other versions

System information

  • Termux application version:
  • Android OS version: 8.1
  • Device model:Redmi note 5
@agnostic-apollo
Copy link
Member

@agnostic-apollo agnostic-apollo closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2023
@sylirre
Copy link
Member

sylirre commented Mar 21, 2023

Having same signature key isn't possible just because we don't have this key. It is even unknown whether Fornwall had it, because Play Store offers own signature keys that are not downloadable.

@yirod3721
Copy link
Author

so what do i do now

@yirod3721
Copy link
Author

i followed the instructions deleted everything termux related and it still wont work

@sylirre
Copy link
Member

sylirre commented Mar 21, 2023

@yirod3721 See previously posted link by Agnostic Apollo: #3311 (comment)

Briefly, you need to do these steps:

  1. Step for root users: open root shell and run rm -rf /data/data/com.termux/files. This is needed to prevent cases where something left on file system after uninstalling the app. You can use other terminal app for this but make sure shell is running under su.
  2. Delete the Termux app and all add-ons like Termux:Boot, Termux:API, Termux:Tasker, Termux:Float, Termux:Styling, Termux:Widget through Android Settings --> Applications. Even purchased add-ons should be uninstalled.
  3. Open F-Droid: https://f-droid.org/packages/com.termux/
  4. Download the latest available APK file and install it.
  5. If you ever used some Termux add-ons from Play Store, then use F-Droid search to find and then install add-ons: https://search.f-droid.org/?q=Termux

Play Store is a no-no for now, considering the current situation. The official release distribution is done through F-Droid only,

@sylirre
Copy link
Member

sylirre commented Mar 21, 2023

wont work doesn't really explain the problem. I can't reproduce it.

@yirod3721
Copy link
Author

yirod3721 commented Mar 21, 2023

@sylirre i followed those instructions and I even found a similar issue in the termux:gui page(termux/termux-gui#4 think that it is the same problem) and it still didnt work
this is the error i get, INSTALL_FAILED_SHARED_USER_INCOMPATIBLE, signatures do not match previously installed version

@agnostic-apollo
Copy link
Member

agnostic-apollo commented Mar 21, 2023

Provide output of adb shell "pm list packages -u --user 0 | grep termux" with an adb shell or su -c "pm list packages -u --user 0 | grep termux" with a root shell or out="$(/system/bin/pm list packages -u --user 0 2>&1 </dev/null)"; echo "$out" | grep termux if you have termux app already installed.

https://developer.android.com/studio/command-line/adb

@yirod3721
Copy link
Author

i just tried it with adb and it says install failed shared user incompatible

@yirod3721
Copy link
Author

@agnostic-apollo it says package:com.termux.api

@yirod3721
Copy link
Author

it just worked
thanks a 1000

@yirod3721
Copy link
Author

i had to uninstall com.termux.api

@yirod3721
Copy link
Author

i dont have a laptop or pc so i use it for programming

@agnostic-apollo
Copy link
Member

Welcome.

It's more likely that Termux:API app was shown in Apps list of Android Settings and you didn't see it. However, in some cases all apps may not show in apps list, and pm list command may be required. For example, if pm uninstall is used to uninstall an app with the -k flag to uninstall an app while keeping its app data directory, then -u flag will need to be passed to pm list to list the uninstalled app and app won't show in apps list other than an activity entry in likely recent androids only, but that's likely not your case since running pm uninstall after pm uninstall -k would fail with Failure [not installed for 0] and app needs to be reinstalled first. This may be related to some sharedUserId or Android issue other than -k usage. I noticed this in secondary user as well without using -k.

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

No branches or pull requests

3 participants