Telegram
Telegram copied to clipboard
Disable screenshots and better looking emoji keyboard
- Added option to disable the ability to take screenshots (Android 4.0+)
- Improved the looks of the emoji "keyboard"
Also added a better looking notification icon.
Why disable taking screenshots? This will only limit it on some devices and you can easily bypass this 'fix'.
How do you bypass disabled screenshots without taking an actual picture of the phone? Maybe only on a rooted device. I have not tried, but it might work. I may be wrong, so please correct me if so.
I am also not aware of devices that do not support this feature. Older Android versions do not support screenshots at all (except rooted ones) and the newer ones that I have tested do support it. It is an Android built-in feature and only if a vendor removes it, it will not work.
I think that it is an important feature in many scenarios. For example, when on a private chat with the self-destruct option enabled, one party can take screenshots of the conversation and reveal them to the public. Or in the case when someone has physical access to a device, might want to take a screenshot of some private conversation and forward it to himself.
In the beginning my goal was to have an option to disable screenshots at conversation level, so that it is guaranteed that both parties cannot take screenshots, but because Telegram does not handle conversations as activities, it is impossible without a restart. An indicator on private chats could notify whether the other party can take screenshots or not.
Obviously this feature does not aim to substitute the already existing security, but it can give it a boost.
Thanks. But FLAG_SECURE is unstable, it doesn't work on lot of devices even with Android 4+. It's just crash app. Also making it optional is useless. For what I should enable it? I always want to take screenshots. Can you provide screenshot of better looking emoji drawer? For now i can only accept notifications icon.
Better to make screenshot detector and notify other users that you take screenshot.
The better looking drawer looks like yours (only the colours I use are a bit different) in the latest updates. At the time I made this change the background was gradient, something I disliked. There is no need to merge it though, since you have already implemented it.
About the screenshots, I was not aware that some devices have issues with it. I have seen apps like TextSecure using the feature (optionally), but I am not sure if it works on all devices and if Moxie has used workarounds in order to make it happen.
I think that knowing that the other party can take screenshots is important for privacy. Alerting one party that the other took a screenshot may be disrespecting the second party's privacy, but this can be debated. Personally I think that alerting/disabling/whatever screenshots is important and should be included in Telegram. I would be happy if I knew that the other party has enabled or disabled screenshots, but since you say that it is unstable, maybe notifying for them is the only option.
As for the notification icons, I am not a graphics designer, so if you like them grab them, otherwise we can try to find someone who will do them better looking. I think that they should be more chat-bubble like though, like on most Android chat apps.
This is an arms race with root'd devices you cannot win. Converse with those you trust.
Rely on secrecy [encryption] to prevent those not party to conversation from retaining secrets.