Code: ################################################################################ # # Shell script to disable read receipts for all incoming Whatsapp messages. # # [ ANDROID AND ROOT ONLY! ![]() ] # # Author: Stephan Schmitz # Source: # Last Updated: 09. Nov 2014 # # ABOUT # # You don't like that everyone in your Whatsapp contact list is now able to see # whether you've already read their latest message(s) or not? Then feel free to # use the following 'work-around' that I found to disable sending read receipts # globally. ![]() Once patched, whenever you get new messages, the senders will never # see the 2 check marks in blue. They'll just stay gray, just like it was until # recently. Well, almost. Because you'll still be able to see whether your chat # partners have already read the messages you sent to them.;) # # DESCRIPTION # # In early Nov. 2014, Whatsapp added a new 'feature' - read receipts. It means, # your chat partners will get a visual feedback (2 blue check marks) as soon as # you've read their message(s). # # Unfortunately, Whatsapp's dev team forgot to implement a corresponding privacy # setting for users to be able to turn off this feature. However, fortunately, I # found it was fairly simple to disable the feature, since it is set in a public # XML file in Whatsapp's app data directory. # # This script shall serve as a convenient wrapper for those Android users who do # not live in userland - as well as for the lazy ones. # # PRE-REQUIREMENT # # Basically, all it needs is a working `sed` commandline utily in path. # If you should not have 'Busybox' installed yet, choose one of the available # 'Busybox' installer apps from Google Play Store and let it install busybox. # # USAGE # # - Save this script to your phone's sdcard as disable_whatsapp_read_receipts.sh # - Open a terminal session on your device # E.g. # - In the console, login as root (type su, hit enter) and type: # sh /sdcard/disable_whatsapp_read_receipts.sh # (adjust the path, if required, to fit your's!) # - Hit the enter button. (Whatsapp will restart afterwards) # # If you get any error message a) make sure the /data partition is mounted /w rw # permissions and b), if the permission for restarting WA is denied, 1st try to # uncomment the last line of this script (append hash char '#' (without quotes)) # and run the again. Otherwise, consult me for help here: # # # IMPORTANT NOTE # # The last successful test for this was run at 09. Playlist the very best of mudvayne rar. 2014 and on the Whatsapp # Android version 2.11.399 and 2.11.432 only. Even though it should work for all # Android versions, it was not tested. Also, Whatsapp might change their current # implementation any time soon. So this work-around might stop working any time # soon too. Keep that in mind! # ################################################################################ Download NOTE: This script requires the 'sed' command line utily (ie 'busybox') installed on the system, which pre-requires a rooted device! NOTE: The gist requires an update, which I'll post tomorrow. For further details and a manual workaround see my post here: External link to gist.github.com (see the inline comments for further instructions): Download, run, done. PS: For those who understand German, here're some screenshots of testing this ' hack'. That's kind of odd, since the script explictly restarts the Whatsapp package *after* applying the changes to the prefs xml. Which then, in turn, should result in no result at all (assuming a restart rewrites the xml), right!? But it does work. Now, the first question would be how you define restart (activity (re)launch, package force && start)? Update: Just checked it and you're right. If I use the -S option on the am start call (to force stop Whatsapp before (re)starting the activity), running script has no effect at all - since the XML is being recreated. And that also means, that the change will gets lost with every device reboot. The easiest solution I see here, to have a 'permanent' effect, to wrap the script in a plain simple app and attach it an onboot service. (Also, looking at #4, some further checks should be added.) If Whatsapp will leave this current implementation of defining whether to send read receipts or not, I'll invest the time into an app version, I think.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |