FORUMS
Remove All Ads from XDA

 View Poll Results: Should I replace the new message option with a fallback to the mobile site?

Yes, would be easier to manage message requests.
 
8 Vote(s)
28.57%
No way! It's fine as it is.
 
20 Vote(s)
71.43%

[APP][4.0.3+] Facebook Patcher 100+ -Avoid using Messenger, send messages from FB app

309 posts
Thanks Meter: 740
 
By lorantm, Senior Member on 25th April 2016, 07:37 PM
Post Reply Email Thread
PATCHED APK'S HERE - by @wolfballz

What to do if you don't want to use Messenger, rather to send messages from the Facebook app itself?

a) If you'd like to use the voip function, use 55.0.0.18.66 patched.
Do NOT use the unpatched app with Messenger 1.0 because it won't let you see your messages, instead it will ask you to update Facebook.

b) If you don't care about voip calls, but need Facebook's new features and a rich messaging interface like in Messenger, use either 85.0.0.0.18 patched or 78.0.0.16.67 patched (both for ARM only).
It also offers some extra features that the APK patched with 2.9 doesn't have:
● Version modified to 999 so the app won't ask you to update.
● Fixed crash when opening gallery from composer.
● No duplicate emoji buttons in composer.
● Bubble style delivery state icons like in Messenger.
● Blue title bar to fit FB's design (v85 only).

c) If you'd like to stay up-to-date, you can always patch the latest version using Facebook Patcher 100+. The latest version where message notifications work is 106.0.0.26.68. Note that you'll only see the mobile messaging site in the in-app browser on the latest versions!
106.0.0.26.68 patched for ARM devices (51.9 MB)
106.0.0.26.68 patched for x86 devices (54.8 MB)

FEATURES


● Send messages directly from the main Facebook app without the need to install Messenger.
● Send emojis and stickers.
[The following features aren't offered by Facebook Patcher 100+, just by FBPatcher 2.9 up to version 85.0.0.0.18]
● Use QuickCam to capture & send images and short videos instantly.
● Edit images and videos before sending them.
● Share images from conversations to Facebook.
● Send hot likes, audio clips, events and locations.
● See cool snow fall and floating hearts when sending the appropriate emojis.
● Play Messenger's basketball and soccer game (unfortunately, without score submission).
[The following features are only applicable to Facebook Patcher 100+]
● No matter what variant you download, the patched APK will be a 4.0.3+ one.
● Removes lots of junk from the APK and compresses it --> much smaller app size!

USAGE

0. Install the latest Java runtime if you don't have it yet.
1. Download a Facebook APK from apkmirror.
2. Download the patcher (from V100, use Facebook Patcher 100+), start it with double click and follow the instructions.
3. Uninstall the official Facebook app.
4. Copy the patched apk to your device, install and enjoy!

TROUBLESHOOTING

Can't start the patcher
Firstly, update to the latest Java -- the patcher requires version 1.8 at least. If you can't start it with double click on Windows, you should associate jar files with 'javaw.exe' (NOT 'java.exe' as it won't work). It's in the bin folder of your Java installation (typically 'Program Files\Java\jre*').
On Linux/Mac, you should use 'chmod +x' on the jar file before the first run to get execution permission. Google it if you're not familiar with that command.

Got an error while patching
● Most likely: Facebook changed something in the code, please wait for patcher update.
● Very unlikely: you don't have enough space (<100MB) for the patcher's temporary files.
● Very unlikely: APK file is corrupted, try to download it again.
If nothing helps, post a log or screenshot here.

Can't install patched APK
● You have the official Facebook app installed, you should uninstall it first.
● You have it preinstalled (flashed on 'system') -- you can only get rid of it with root, sorry, not my fault.
● You're trying to install a 4.0.3+ variant over a 5.0+ one and vice versa, uninstall the app first.
● You're trying to install a 5.0+ variant on a pre-Lollipop system, try patching & installing a 4.0.3+ variant.

Patched app quits on start
● If you've just updated to a patched alpha, you may have to clear app data before first start. Some alphas may get in an infinite loop on start if old app data is present. This is not the patcher's fault, the original app also has this issue.
● It's very likely that you've downloaded an APK built for an architecture that's different from your device's one. For example, you have an x86 device and installed an ARM APK that won't work. Since x86 mobile devices are rather rare, you could hardly find any x86 APK's. To obtain one for your device, you should install it from Google Play and save the APK with a backup application or Total Commander. Then you can pull it to your PC and patch it. Don't forget to uninstall the original app before trying to install the patched one!

KNOWN ISSUES

These issues are known and can't/won't be fixed.
● On some versions prior to 75.0.0.23.69 the app crashes when scrolling down 20 messages in thread list, this is not the patcher's fault, use a later version to avoid this bug (85.0.0.0.18 is recommended).
● Back and info buttons on title bar, GIF and Payment buttons don't do anything.
● On Android 6.0+, clicking the blue button in the Messenger permission request window causes a crash. Grant the permissions for the app from Settings/Apps.
● Your basketball and soccer score won't be submitted to the thread.
● From v107, message notifications don't work because Facebook messed up something - use v106 stable instead.

QUESTIONS & ANSWERS

Q: What does it do to the Facebook app?
A: FBPatcher is a desktop Java application that needs a Facebook APK file as input and will provide you a patched APK as output, with Messenger functionality. It only does minimalistic (but yet not trivial) modifications to some classes and the manifest, new code isn't inserted into the app -- the Messenger window with all of its resources and code is in the original APK, this patcher just makes it accessible.

Q: Will the patched app be updated via Play Store?
A: No, you should always download, patch and install the latest version manually to be up-to-date.

Q: Is there any way to make VoIP calls working?
A: From V56, no. Use 55.0.0.18.66 if you need free calls.

DESCRIPTION

Operations performed by the patcher
● Extracts manifest and dex files.
● 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.
● Patches the manifest to remove FB specific permissions and modify the Messenger window's theme.
● [100+ only] Reduces app size by removing unused files.
● Updates the APK with the patched files and signs it.

List of patched stuff
AndroidManifest.xml -- modifies ThreadViewActivity's theme and removes FB specific permissions to allow other FB apps to be installed, also adds CreateThreadActivity again.
ForceMessenger -- enables in-app messaging.
[The following classes don't exist from a specific version / aren't touched by Facebook Patcher 100+]
MessengerMSiteUriIntentBuilder -- creates entry points for Messenger code instead of mobile messaging site, also enables some features.
DiodeMessengerActivity -- replaces the 'Install Messenger' Fragment with Messenger thread list.
ThreadListFragment -- defines an on-click event for thread list items (ThreadViewActivity will be opened with the selected thread / mobile site will show up when tapping message request).
FacebookActivityDelegate(Impl) -- crash fix for ThreadViewActivity.
MuteThreadWarningNotification -- crash fix for ThreadViewActivity.
BballView(.3) -- crash fix for basketball game.
SoccerFeedbackEmojisView -- crash fix for soccer game.
MessagesVideoConfigModule -- Enables gallery video sending/transcoding.
InboxFilterManager.NoSaveStateBehavior -- was missing, added again
TwoLineComposerView -- remove Payment button action
ThreadListContextMenuHelper -- remove 'Mute thread' option

Included third party libs
XZ for Java by Tukaani
smali/baksmali by JesusFreke
SignApk (part of AOSP)
Click to see licenses.

Licensing of XZ for Java

All the files in this package have been written by Lasse Collin and/or Igor Pavlov. All these files have been put into the public domain. You can do whatever you want with these files.

This software is provided "as is", without any warranty.

Licensing of smali/baksmali

[The "BSD licence"]
Copyright (c) 2010 Ben Gruver (JesusFreke)
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in thedocumentation and/or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Licensing of SignApk

Copyright (C) 2007 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.

FOR ADVANCED USERS ONLY -- If you place a file called 'fbpatcher.dev' next to the FBP100+ jar file, containing the following text: 'I want my intern settings menu!', internal settings will be enabled in the Facebook app.

Free of Facebook code.

WHAT'S NEW

Version 2.9, 07-21-2016
● Support for latest versions (web view messaging only)

Version 2.8, 07-06-2016
● Fixed crashing new message option (mobile site fallback)
● Patchability check (does not proceed if Messenger code is missing)

Version 2.7, 06-25-2016
● Support for message requests

Version 2.6, 06-17-2016
● Fixed new message option for 83.0.0.0.39

Version 2.5, 06-16-2016
● OS native look and feel with support for high DPI displays
● Sticker search feature
● Fixed new soccer game
● Removed crashing options (mute thread & payment)

Version 2.4, 06-08-2016
● Same as 2.3 but has a GUI
● Reduced size (425KB)

Version 2.3, 06-04-2016
● Support for latest versions (tested up to 81.0.0.0.49 alpha)
● Reduced size thanks to proguard

Version 2.2, 06-01-2016
● Support for latest versions (tested up to 81.0.0.0.20 alpha)
● Removed aapt without losing backwards compatibility

Version 2.1, 05-30-2016
● Support for latest versions (tested up to 80.0.0.0.44 alpha)
● Much faster patching (dex files are assembled in memory)

Version 2.0, 05-26-2016
● 'New message' function: tap [<-] button on title bar in thread list

Version 1.9, 05-25-2016
● Support for latest versions (tested up to 80.0.0.0.18 alpha)
● Resource name obfuscation resistance

Version 1.8, 05-21-2016
● Bugfixes for latest stable and beta versions

Version 1.7, 05-21-2016
● Support for latest versions (tested up to 79.0.0.0.52 alpha)

Version 1.6, 05-20-2016
● Support for latest versions (tested up to 79.0.0.0.39 alpha)
● Basketball game re-fix
● Much faster and error-free patching
● APK verification
● Reduced size (removed apktool, wrote own manifest hacking routine)
● Improved cleanup method - requires less free space

Version 1.5, 05-07-2016
● Better logging and error handling
● Other Facebook apps can now be installed
● Backwards compatibility down to V59

Version 1.4, 05-04-2016
● Video sending from gallery
● Inline video playback
● Floating hearts
● Linux aapt permission fix

Version 1.3, 05-01-2016
● Easy starter batch file included for Windows users
● Reduced size
● No more separate 'tools' directory, everything is within 'fbpatcher.jar'
● More readable and structured command line output
● Error codes

Version 1.2, 04-30-2016
● Apktool/smali logging
● Safety cleanup on start
● Support for latest versions (tested up to 76.0.0.0.49 alpha)
● Messenger thread list instead of mobile site
● QuickCam video sending
● Basketball game fix

Version 1.1, 04-27-2016
● Support for latest versions (tested with 73.0.0.18.66 stable and 76.0.0.0.19 alpha)


If you like FBPatcher, you can support its development, or simply click Thanks or share this thread on social media sites.
Support FBPatcher development
Attached Files
File Type: jar fbpatcher-2.9.jar - [Click for QR Code] (403.0 KB, 12080 views)
File Type: jar fbconv-1.0.jar - [Click for QR Code] (77.7 KB, 4908 views)
File Type: jar fbpatcher100plus.jar - [Click for QR Code] (1.02 MB, 3334 views)
The Following 163 Users Say Thank You to lorantm For This Useful Post: [ View ] Gift lorantm Ad-Free
 
 
26th April 2016, 02:08 AM |#2  
jineshpatel30's Avatar
Senior Member
Thanks Meter: 1,081
 
More
Info 2 Instructions
To keep all discussion on this thread I'm coping my reply here as well.
Quote:

How do I do that?
2. Run the patcher: java -jar fbpatcher.jar <input_apk> <output_apk>


Here is step by step instructions i followed to get it work on windows ( i think linux users knows how to do this simple things )

this guide was written for earlier version of patcher, but @lorantm is providing much easier automated patcher version now (from v1.3+ ) so just follow OP's USAGE GUIDE

still you can go through my guide for some deeper details and reference it wouldn't hurt and you will learn some history of patcher !

1. you need JAVA installed in PC if not install it from here https://java.com/en/download/

2. Download official (Not patched ) apk of latest stable Facebook(for now v76 here ) or as per recommendation of OP according to patcher version.(USE V75+ TO AVOID THE THREAD LIST SCROLL DOWN BUG! )

3. download patcher by @lorantm from OP

4. extract patcher in fbpatcher folder (use extract to fbpatcher/ )

5. put donloaded FB version form 2nd point in this folder and rename it to fb.apk for ease.

6(new). hold Shift and right click on empty space, then select open command prompt here in empty space of your folder that contains fb.apk & fbpatcher.. now No need to copy cmd.exe at that folder...this method will open your system inbuild cmd so skip directly to Point 9

8. now your folder should look like this


9. open cmd.exe and write java -jar fbpatcher.jar fb.apk fbpatched.apk (mind on spaces... see below pic for clarity )

10. wait for 5-10 min and let patcher do its job you will get fbpatched.apk as patched file.



Install & enjoy
The Following 25 Users Say Thank You to jineshpatel30 For This Useful Post: [ View ] Gift jineshpatel30 Ad-Free
26th April 2016, 06:36 AM |#3  
jineshpatel30's Avatar
Senior Member
Thanks Meter: 1,081
 
More
Quote:
Originally Posted by Tomi_Ohl

Nice guide! Only one thing: I think it would be enough to hold Shift and right click on empty space, then select open command prompt here (in step 6).

@lorantm köszönöm szépen, nagyszerű!! (Thanks, it's awesome!)
Working fine with the suggested FB version on Xiaomi Mi3 with Marshmallow
Waiting for the version with that message icon, right now I can't access groups from app if there are no new messages.

that's nice suggestion ! actually i forgot about it while writing guide.
The Following User Says Thank You to jineshpatel30 For This Useful Post: [ View ] Gift jineshpatel30 Ad-Free
26th April 2016, 12:15 PM |#4  
Junior Member
Thanks Meter: 1
 
More
How do you patch the apk on a mac?
The Following User Says Thank You to Smoking Monkey For This Useful Post: [ View ] Gift Smoking Monkey Ad-Free
26th April 2016, 02:10 PM |#5  
OP Senior Member
Flag Budapest
Thanks Meter: 740
 
Donate to Me
More
Quote:
Originally Posted by Smoking Monkey

How do you patch the apk on a mac?

I never had a Mac, but I think you should do it just like on Windows or Linux. Install Java, open a command line and run it from there.
26th April 2016, 02:14 PM |#6  
a.broken.star's Avatar
Senior Member
Flag India
Thanks Meter: 658
 
More
So when using patched facebook app, when we click on msg icon, msg interface is loaded in mobile web mode inside the fb app itself. But i am using latest fb app, and latest facebook chat enabler , and it do the same thing. What's the benefit of patching ?

Sent from my MI 3W using XDA-Developers mobile app
26th April 2016, 02:18 PM |#7  
OP Senior Member
Flag Budapest
Thanks Meter: 740
 
Donate to Me
More
Quote:
Originally Posted by a.broken.star

So when using patched facebook app, when we click on msg icon, msg interface is loaded in mobile web mode inside the fb app itself. But i am using latest fb app, and latest facebook chat enabler , and it do the same thing. What's the benefit of patching ?

Sent from my MI 3W using XDA-Developers mobile app

I replied in the other thread.
The Following User Says Thank You to lorantm For This Useful Post: [ View ] Gift lorantm Ad-Free
26th April 2016, 02:40 PM |#8  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by lorantm

I never had a Mac, but I think you should do it just like on Windows or Linux. Install Java, open a command line and run it from there.

I don't think .exe files work on mac, so where would i be able to find the mac .dmg equivalent of the cmd.exe file?
26th April 2016, 02:49 PM |#9  
OP Senior Member
Flag Budapest
Thanks Meter: 740
 
Donate to Me
More
Quote:
Originally Posted by Smoking Monkey

I don't think .exe files work on mac, so where would i be able to find the mac .dmg equivalent of the cmd.exe file?

It's Terminal. Open it, navigate to the directory (with the cd command) where you have extracted the patcher and the official apk. Then run java -jar fbpatcher.jar FB72.apk FB72P.apk.
The Following User Says Thank You to lorantm For This Useful Post: [ View ] Gift lorantm Ad-Free
26th April 2016, 03:12 PM |#10  
jineshpatel30's Avatar
Senior Member
Thanks Meter: 1,081
 
More
Quote:
Originally Posted by Smoking Monkey

I don't think .exe files work on mac, so where would i be able to find the mac .dmg equivalent of the cmd.exe file?

http://www.wikihow.com/Get-to-the-Command-Line-on-a-Mac

personally even i never used Mac so i don't know how to open it in any specific folder (like windows has Shift+right click in empty space of folder ) but you can try to navigate to your folder via cd/ commands ( try to google it )
The Following User Says Thank You to jineshpatel30 For This Useful Post: [ View ] Gift jineshpatel30 Ad-Free
26th April 2016, 04:18 PM |#11  
Junior Member
Thanks Meter: 1
 
More
For anyone doing this on a mac you open up terminal and type cd /
Then drag the fbpatcher folder into terminal and press enter.
Copy and paste java -jar fbpatcher.jar FB72.apk FB72P.apk then press enter again.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes