Hi,
Realizing that Facebook still did not remove the code of Messenger from their main Android app and with a little hacking and experimenting I managed to access the built-in Messenger instead of the mobile site that would load inside the app by default.
I wrote a desktop Java application that can do this automatically -- it only needs the Facebook APK. It currently it works up to Facebook version 72.0.0.22.69 (released on 11th April).
On the latest version, conversation window is opened but the messages don't load -- Facebook changed something in the code but I'll find a solution if I'll have more time.
Images of the patched app: http://ift.tt/1VOxDEa
The patcher performs the following operations:
- Runs apktool to decode manifest and unpack apk content.
- Detects dex location in apk (they could be in the root of the apk or in the assets directory, XZ compressed -- if that is the case, unpacks them)
- Finds patchable classes in the dex files by searching for patterns that identify those classes.
- Disassembles dex files that contain patchable code, automatically modifies the classes and reassembles the files.
- Re-encodes manifest with apktool after the modification of ThreadViewActivity's theme.
- If dex files were XZ compressed, repacks them, then repacks and signs the apk.
Important notes
- Clicking the Messenger icon in the top right corner will open the mobile messaging site. This is intentional: although the Messenger thread list fragment code is still in the app, it does not work on all devices. I tested it in DiodeMessengerActivity by replacing DiodeHostFragment with ThreadList fragment -- it worked on an LG G2 but it crashed on a G4.
- Messenger thread view can be opened by clicking the message icon on someone's profile / selecting a contact from the right side chat bar / tapping a message notification.
- It will only work if other apps from Facebook are not installed since this apk is resigned with a test key. Also this is the case when Facebook is preinstalled on your device.
The program uses the following libraries and they are included:
- XZ by Tukaani
- Apktool
- Smali/Baksmali
- Signapk
Does not include any Facebook code.
Features of the patched app
- You will not be forced to install Messenger.
- You get a standard white/blue Messenger conversation window inside the main Facebook app.
- You can send audio clips, pictures, stickers, emojis, events and locations.
- You can use the Messenger quick-cam to take and send pictures.
Planned features in the future:
- Support for latest version
- Video sending
- Flying hearts (currently snowflakes are enabled)
- Optional: Show Messenger thread list instead of mobile site when clicking on the Messenger icon (probably will work for some devices only)
Instructions (Thanks for the guide: @jineshpatel30)
http://ift.tt/1NMcv9b
Download: http://ift.tt/1VOxDUq
Realizing that Facebook still did not remove the code of Messenger from their main Android app and with a little hacking and experimenting I managed to access the built-in Messenger instead of the mobile site that would load inside the app by default.
I wrote a desktop Java application that can do this automatically -- it only needs the Facebook APK. It currently it works up to Facebook version 72.0.0.22.69 (released on 11th April).
On the latest version, conversation window is opened but the messages don't load -- Facebook changed something in the code but I'll find a solution if I'll have more time.
Images of the patched app: http://ift.tt/1VOxDEa
The patcher performs the following operations:
- Runs apktool to decode manifest and unpack apk content.
- Detects dex location in apk (they could be in the root of the apk or in the assets directory, XZ compressed -- if that is the case, unpacks them)
- Finds patchable classes in the dex files by searching for patterns that identify those classes.
- Disassembles dex files that contain patchable code, automatically modifies the classes and reassembles the files.
- Re-encodes manifest with apktool after the modification of ThreadViewActivity's theme.
- If dex files were XZ compressed, repacks them, then repacks and signs the apk.
Important notes
- Clicking the Messenger icon in the top right corner will open the mobile messaging site. This is intentional: although the Messenger thread list fragment code is still in the app, it does not work on all devices. I tested it in DiodeMessengerActivity by replacing DiodeHostFragment with ThreadList fragment -- it worked on an LG G2 but it crashed on a G4.
- Messenger thread view can be opened by clicking the message icon on someone's profile / selecting a contact from the right side chat bar / tapping a message notification.
- It will only work if other apps from Facebook are not installed since this apk is resigned with a test key. Also this is the case when Facebook is preinstalled on your device.
The program uses the following libraries and they are included:
- XZ by Tukaani
- Apktool
- Smali/Baksmali
- Signapk
Does not include any Facebook code.
Features of the patched app
- You will not be forced to install Messenger.
- You get a standard white/blue Messenger conversation window inside the main Facebook app.
- You can send audio clips, pictures, stickers, emojis, events and locations.
- You can use the Messenger quick-cam to take and send pictures.
Planned features in the future:
- Support for latest version
- Video sending
- Flying hearts (currently snowflakes are enabled)
- Optional: Show Messenger thread list instead of mobile site when clicking on the Messenger icon (probably will work for some devices only)
Instructions (Thanks for the guide: @jineshpatel30)
http://ift.tt/1NMcv9b
Download: http://ift.tt/1VOxDUq
from xda-developers http://ift.tt/1NMcvpr
via IFTTT
No comments:
Post a Comment