termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
35.82k stars 3.77k forks source link

[Feature]: Custom bell sound #3829

Open hatkidchan opened 8 months ago

hatkidchan commented 8 months ago

Feature description

Cash-register-like bell sound is nice and all, but I kinda wish I could replace it without rebuilding the entire app

Additional information

It is possible to replace bell.ogg with custom one by using apktool, but it requires resigning of every Termux-related app (Termux API and styling)

AliSananS commented 7 months ago

It is possible to replace bell.ogg with custom one by using apktool

Using android studio is a much better option than cracking the application. Or just make a pull request with the feature to add new sound.

hatkidchan commented 7 months ago

Using android studio is a much better option than cracking the application.

When you have space and will to build Termux from scratch. Plus it'll be signed with my key either way, which makes updates painful and also requires complete reinstallation of it since apparently Android doesn't allow app updates when signed by a different key (or at least that's what happened to me).

Or just make a pull request with the feature to add new sound.

Implementation won't appear out of thin air, and I'm not a Java developer. If I knew how to do it, I would've sent a PR already, no? I wasn't talking about changing the sound for everyone, I was talking about more like.. what you can do with fonts already, which is not just an asset replacement that I can do already.

AliSananS commented 7 months ago

@hatkidchan Cracking the application won't make the updating process seemless either, as updating the app will overwrite your modifications.

Well, no new version has been released from last 2 years. You won't be updating it very often.

sylirre commented 7 months ago

It is possible to replace bell.ogg with custom one by using apktool, but it requires resigning of every Termux-related app (Termux API and styling)

You don't need to crack something or resign.

Until this feature is implemented you can simply fork this repo, change bell sound file and trigger build using GitHub Actions. Resulting apk file would be compatible with GitHub builds made by @termux.