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?

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.

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.[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.Copyright (C) 2007 The Android Open Source ProjectLicensed 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 atUnless 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.

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)

● Send messages directly from the main Facebook app without the need to install Messenger.● Send emojis and stickers.● 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).● 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!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!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.● 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.● 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.● 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!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.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.A: No, you should always download, patch and install the latest version manually to be up-to-date.A: From V56, no. Use 55.0.0.18.66 if you need free calls.● 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.-- modifies ThreadViewActivity's theme and removes FB specific permissions to allow other FB apps to be installed, also adds CreateThreadActivity again.-- enables in-app messaging.-- creates entry points for Messenger code instead of mobile messaging site, also enables some features.-- replaces the 'Install Messenger' Fragment with Messenger thread list.-- 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).-- crash fix for ThreadViewActivity.-- crash fix for ThreadViewActivity.-- crash fix for basketball game.-- crash fix for soccer game.-- Enables gallery video sending/transcoding.-- was missing, added again-- remove Payment button action-- remove 'Mute thread' optionClick to see licenses.Free of Facebook code.● Support for latest versions (web view messaging only)If you like FBPatcher, you can support its development, or simply click Thanks or share this thread on social media sites.