yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] apung:
bug in latest fb 80.0.07.65 GP...

FBPATCHER EASY STARTER SCRIPT BY LORANTM

--------------------------------------------------

Please place the Facebook apk in this directory,

renamed to 'fb.apk' and press any key to continue.

--------------------------------------------------

Press any key to continue . . .

*** RUNNING FBPATCHER VERSION 2.1 BY LORANTM ***

Performing cleanup... done!

Extracting patching tools... done!

Detected Facebook version 80.0.0.7.65, which is supported.

Extracting dex files... done!

Relevant classes found in classes2.dex:

Fragment

GatekeeperWriter

FacebookActivityDelegate(Impl)

Relevant classes found in classes3.dex:

ForceMessenger

Relevant classes found in classes8.dex:

MuteThreadWarningNotification

BballView.3

MessagesVideoConfigModule

Relevant classes found in classes9.dex:

MessengerMSiteUriIntentBuilder

DiodeMessengerActivity

ThreadListFragment

Resource lookup source: worst case method

Disassembling classes.dex... done!

Adding InboxFilterManager.NoSaveStateBehavior... done!

Assembling classes.dex... done!

Patching manifest... done!

Disassembling classes2.dex... done!

Patching FacebookActivityDelegate... done!

Assembling classes2.dex... done!

Disassembling classes3.dex... done!

Disabling Messenger forcer... done!

Assembling classes3.dex... done!

Disassembling classes8.dex... done!

Patching MuteThreadWarningNotification... done!

Patching basketball game... done!

Enabling video sending from gallery... done!

Assembling classes8.dex... done!

Disassembling classes9.dex... done!

Creating entry points for Messenger code... done!

Adding Messenger thread list... Exception in thread "main" java.lang.NullPoint

erException

at com.hax.fbpatcher.module.DiodePatcher.getMaterialThemeIdFromThemeWrap

per(DiodePatcher.java:166)

at com.hax.fbpatcher.module.DiodePatcher.patch(DiodePatcher.java:78)

at com.hax.fbpatcher.FbPatcher.dispatchPatchingOperations(FbPatcher.java

:177)

at com.hax.fbpatcher.FbPatcher.patch(FbPatcher.java:98)

at com.hax.fbpatcher.Main.main(Main.java:13)

--------------------------------------------------

If there were no errors, you should now have a

file 'fb-patched.apk' in this directory.

Press any key to quit.

--------------------------------------------------

Press any key to continue . . .
[Android Apps and Games] lorantm:
Resource ID for thread list material theme is grabbed from ThreadListThemeWrapper since resource names are obfuscated and therefore resources can't be identified from an aapt dump.

What happened now is that Facebook changed ThreadListThemeWrapper's code and the ID could not be extracted. I'll try to fix it today.
[Android Apps and Games] lorantm:
V2.2 is out with support for latest versions. Size is 2MB again, I removed aapt and found another way to find resource ID's without losing backwards compatibility.
[Android Apps and Games] ajayzone2:
Official FB Messenger Just Updated The Set Of Emoji's

Will You Update it To ?

[IMG="New Emojis"]http://i.imgur.com/6E9G1IN.png[/IMG]
[Android Apps and Games] lorantm:
It's not the patcher's responsibility as it just enables the Messenger code and doesn't add any resources, they are already in the original apk. So if FB changes the emojis in the main app too, then you'll have them. Or use Messenger if they're so important for you. :)
[Android Apps and Games] ajayzone2:
So I Need To Wait For Emoji Update on Official FB app ?
[Android Apps and Games] mathy007:
Correct
[Android Apps and Games] puturaya20:
thanks :good::good::good::good::good:

i hope keep on update :fingers-crossed::good::good::good:
[Android Apps and Games] fijasko:
I know it's nothing to do with the FB Patcher because it keeps happening with the official untouched version too, but does anyone else experience crash with every one of these 81 alpha builds when you choose "close friends" from the menu?

edit: Nevermind, it doesn't happen with the latest .37 alpha
[Android Apps and Games] hacksterkrishna:
Good job
[Android Apps and Games] mdkeil:
Thanxs for the hard work! It works great for me.. but do we have the chance to make it work to share pictures or anything else directly to the builtin messenger?
[Android Apps and Games] ahmadshuib:
Why it has problem with me? Running note 5 on custom rom. Yaah, maybe its my rom problem, is there anyone having issue just like me? How to prevent it?

When I scroll down in the news feed or group, the app is closed itself, just like fc without notification "facebook force closed".

Anyone please? Its no happen in official fb. Thanks for anyone answer.
[Android Apps and Games] apung:
you are installed fb what version?
[Android Apps and Games] jagawana27:
Please fix it

sir can you fix some bugs with sony xperia share,i think i found failed with upload with that...

thanks before:):)
[Android Apps and Games] ahmadshuib:
Lastest one. Version 8.1, I try older version. Still same. I read this thread, no one facing the same problem as I am.
[Android Apps and Games] apung:
try version stable from Google Play
[Android Apps and Games] fijasko:
Wonder how long before they completely remove the Messenger code from the app...

http://www.androidauthority.com/facebook-messenger-app-mandatory-696506/
[Android Apps and Games] lorantm:
2.3 is out, download size is now less than 1MB.

I added support for 81.0.0.0.49 alpha.
[Android Apps and Games] wolfballz:
Thanks. About to patch it.

---------- Post added at 12:15 PM ---------- Previous post was at 12:04 PM ----------

81.0.0.0.49 still not working right after new patcher. Loads list of conversations but when I try open one it still closes out.
[Android Apps and Games] lorantm:
Latest alpha should work after clearing app data or removing the installed app and perform a fresh install. The bug is in the original apk, I don't recommend using it.
[Android Apps and Games] stonedpsycho:
I stopped using the fb app since it forced you to download another app just for your messages!!! So I have used my phones browser since but today it is not letting me see my messages and is yet again forcing me to download their app through my browser!! So thank you very much for this [MENTION=7414440]lorantm[/MENTION]
[Android Apps and Games] loan92:
FEED:...

In Stable Version ver 79 this button not work...
[Android Apps and Games] lorantm:
That's a known issue (as written in OP).

Back button in thread list window works but not the way one would expect: it takes you to 'New message' screen as I could only add that feature this way. You should use the soft/hard keys to navigate back.

Finally, thread info button would take you to an activity that's missing from the Facebook app, but it only contains things that most people can live without.
[Android Apps and Games] eyesore123:
It would be much better if you change the back button icon to new message icon.

Just suggesting.
[Android Apps and Games] lorantm:
Then it would change to that in every single window that has a back button so no... I also won't add any resources to the apk, it was already told.

Using that button for new message is not a big deal and can be learned easily.
[Android Apps and Games] guillermorojaz:
I worked perfect with the version FacebookBlack-20160605.

Great job :good:

fb-patched.apk

http://www60.zippyshare.com/v/Ic9WvHhp/file.html

ADD.

What was missing would be the option to see:

- Screened messages.

- Requests for messages.

EDIT.

Link fallen :silly:

FacebookBlack-20160605-patched

http://www40.zippyshare.com/v/QdKzyzgV/file.html

Guillermo Rojas.
[Android Apps and Games] lorantm:
Latest alpha & beta works fine.

Note: if you want Messenger only features then use Messenger. This solution is for people who don't message much on Facebook and don't want to install a separate app for this purpose. I think sending audio and video clips, stickers, locations etc besides the regular messages is more than enough. If you used the mobile site for messaging, you would get much less features, not to mention that the mobile version now also forces people to downlad Messenger and it's annoying as hell. Anyway, not much can be done here to add anything new.
[Android Apps and Games] lorantm:
2.4 is out (same as 2.3 but with a GUI and half the size)

2nd step is optional, output apk path is automatically generated like this: 'fb_apk_name.apk' -> 'fb_apk_name-patched.apk'
[Android Apps and Games] wolfballz:
Awesome!
[Android Apps and Games] masri1987:
wow, thanks for this. amazing!!!
[Android Apps and Games] ajayzone2:
.jar File is Not executable How Can i execute ? Plz Help
[Android Apps and Games] lorantm:
Head to OP's troubleshooting section and you'll find the solution.

Update: 82.0.0.0.27 work fine.
[Android Apps and Games] ajayzone2:
There is Nothing Related to Execute .jar Files On Windows i have Already Seen there

U better Reply here
[Android Apps and Games] fijasko:
fbpatcher-2.4.jar is executable and works fine on my windows 7
[Android Apps and Games] ajayzone2:
I have Windows 8.1 and Java Just Updated Today Still .jar is Not executable

I tried to Open With Java.exe But Still No Luck

When I Open With Java.exe It Starts CMD n Close Automatically
[Android Apps and Games] lorantm:
You're doing something wrong. It should start on double click if you have the latest Java. However, trying to associate a jar with java.exe won't work, try to run 'java -jar fbpatcher-2.4.jar' from command line. Or go to OP, right at the top you'll find a link to patched apk's.
[Android Apps and Games] apung:
try uninstall java .. and install again java
[Android Apps and Games] ajayzone2:
Thanx Typing That Command Worked u Should Add That Command to OP
[Android Apps and Games] fmaher:
Hi Lorantm, I wonder if you now have we can fix scaling issue for java apps in High DPI screens, every thing looks too tiny.
[Android Apps and Games] lorantm:
I don't really get what's the problem. FBPatcher has nothing to do with screen layouts, a patched Facebook app should look exactly the same as an original one.

Maybe you've downloaded a low dpi variant of the app, if you look at any app on apkmirror you should see the list of compatible screens.
[Android Apps and Games] fmaher:
Sorry, I meant the java app itself not the FB app. When I open it to patch FB, window and texts are tiny and not readable on my HiDpi monitor, I thought you may know a way to cope this issue.
[Android Apps and Games] lorantm:
I'll see what I can do in the next release.

Temporarily you can switch to a lower resolution or use the Windows magnifier app while working with the patcher.
[Android Apps and Games] DaveX2012:
Can't review message request from people who are not in friends list.
[Android Apps and Games] lorantm:
Actually I didn't have the chance to test it.

I'll try to do something but it's likely that the UI to manage these requests is missing.

Accept the request on web for now.

Update: .39 alpha works
[Android Apps and Games] ashish1989:
Really gr8 thanks for this patcher

working gr8
[Android Apps and Games] lorantm:
Now I tried to find a solution to the message request issue.

I don't have good news: even if you go to the profile of the person who wanted to contact you, click Message and then Accept in the thread view window, an error message saying '(#10) Not a Messenger client' will appear. And it's checked on server side.

Workaround: use the new message feature, search for the person, send a message, go back and open the conversation from the thread list. Now the request is accepted.
[Android Apps and Games] DaveX2012:
That's good but some people don't want to show up in fb search function. That's the problem.
[Android Apps and Games] lorantm:
Sorry but I can't do anything about it.

If you can't find someone with the search feature then use the web interface to accept the request.
[Android Apps and Games] vinoth0t:
where can i download the patcher
[Android Apps and Games] subscope:
Well guys! I am running windows 7 x64 and it doesn't work with double click neither with the way that is mentioned on OP.

The only way it works is like that: java -jar "PATHTOFILE\FILENAME.JAR"

I don't know why it doesn't work with double click...

BTW Thank you [MENTION=7414440]lorantm[/MENTION] for your tool and all the updates that you done! :)
[Android Apps and Games] lorantm:
The easiest solution if double click doesn't work: associate jar files with 'javaw.exe' (you'll find it in Java's bin directory). It will work after that.
[Android Apps and Games] subscope:
Nop mate it doesn't work. I don't know why but it doesn't work ... I associated jar files to java. exe and tried to run you command in cmd and nothing worked. Just worked like I described in the previews post. Anyway it works ;)

Enviado do meu GT-I9505 através de Tapatalk
[Android Apps and Games] lorantm:
It's 'javaw.exe' and not 'java.exe'.
[Android Apps and Games] subscope:
Yes javaw.exe. it was auto correct function from my keyboard lol sorry . BTW I just left it in order to help who can't run the program like me ;)

Enviado do meu GT-I9505 através de Tapatalk
[Android Apps and Games] jineshpatel30:
from 1st post of thread....(u can directly download patch facebook apk from other thread linked to 1st line of this post, if you don't feel comfortable patching your self...otherwise patcher is in attachment of this post at last line v2.4 ...go through entire post for updated instructions )

here you go..

http://xdaforums.com/showpost.php?p=66543877&postcount=1
[Android Apps and Games] vinoth0t:
unable to find the link can u give that pls bro
[Android Apps and Games] lorantm:
Again.

1. Click the |< button to go to the first post of this thread.

2. Find 'Attached Files' at the bottom of the first post. There is a file called 'fbpatcher-2.4.jar'. This is the only file there. Click it and the download will start. It's not that hard to find...
[Android Apps and Games] fijasko:
Facebook 83.0.0.0.9 alpha patched with V2.4. Working fine.
[Android Apps and Games] Calenislija:
Hmmm, I am not sure about all this, but it seems interesting, I'll check it out.
[Android Apps and Games] george_shudi:
The best, Thanks mate keep it up!
[Android Apps and Games] wolfballz:
83.0.0.0.17 alpha works and is patched and ready for download.
[Android Apps and Games] lorantm:
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)
[Android Apps and Games] rignaneseleo:
wow, this seems to be a great tool. Compliments :)
[Android Apps and Games] fmaher:
Thanks Lorantm for your update, it works on HiDPi mode.
[Android Apps and Games] thiron03:
mdpi hdpi difference and that's what the device
[Android Apps and Games] exodius48:
Could you support XXHDPI mode? Becaue i tried v2.5 only LDPI (120 dpi) and HDPI (240 dpi). My device has 403 density, so its equal to XXHDPI (480dpi).

More info about dpi https://developer.android.com/guide/practices/screens_support.html
[Android Apps and Games] lorantm:
HDPI display support mentioned in the changelog is related to the patcher's GUI, not the Facebook app.

It enlarges the patcher's window so everything will be readable on a high dpi monitor.
[Android Apps and Games] exodius48:
Oh..ok, understoood!.
[Android Apps and Games] lorantm:
There was a bug in the latest alpha patched with V2.5, new message option didn't work. It works with V2.6 (out now).

Details: Facebook removed CreateThreadActivity from manifest, now it's added again with a quick & dirty hack.
[Android Apps and Games] wolfballz:
Is this on the 83.0.0.0.39 alpha? I used 2.5 to patch it and new message feature works on mine.
[Android Apps and Games] lorantm:
Yes. That's impossible because that activity is no longer listed in the manifest. I also downloaded yours and it crashed on tapping the back button in the thread list window.

BTW is here someone using 'Facebook at Work'? The patcher is fully compatible with that app but I can't try it because I don't have a work account...
[Android Apps and Games] wolfballz:
Is it not working for new messages to people not on your friends list or just a new message to anyone. I may be misunderstanding then. I can to a person on my friends list that I don't already have a conversation with and start a new one. Haven't used back arrow part yet for going back to list.
[Android Apps and Games] lorantm:
I meant the back button in the thread list window, not the conversation window.

That functions as a new message button and the app crashed when I tapped on it but now it's solved.
[Android Apps and Games] wolfballz:
Weird. Didn't give me any issues other than the back arrow thing but I usually just use my phones back button so I don't see the crash. I will use the updated patcher and repatch it soon then re-upload.
[Android Apps and Games] lorantm:
I use the soft keys to go back too, therefore I though it would be a good idea to transform the title bar back button into a new message button (because someone asked for that fetaute). I didn't expect that Facebook would remove CreateThreadActivity from the manifest though. I start to believe that Facebook knows about this patcher and sometimes makes modifications just to test me. What was the point of removing that single activity but leaving among others ThreadViewActivity in the manifest? Moreover, officially these activities are all unreachable since v56. :)
[Android Apps and Games] wolfballz:
I believe you can make this work regardless what they throw your way. It would be kinda silly to find out they were messing with you... Maybe they're trying to see how much talent you have and then offer you a job.
[Android Apps and Games] motfis:
Maybe you don't need to make a new icon. I think you can use the messenger icon (the one in the main screen that bring us to the conversation list). Since you already patch this button, maybe you can find easily the res-id of this button.
[Android Apps and Games] lorantm:
If I changed the icon with the easy method, it would change in all activities that have a title bar with back button. To only replace that one, I'd need to integrate apktool to the patcher again which would result in slower patching and much bigger patcher size.

The back button works fine as a new message button, I think that's the smallest problem if it doesn't have a proper icon. :)

Update: just created a banner for the project, check it out in OP!

Update2: 84.0.0.0.10 works
[Android Apps and Games] guillermorojaz:
You can add these options in the FBPatcher? :laugh:

These appear with the Messegen-Enabled.
[Android Apps and Games] lorantm:
They're only available on the mobile site.

Actually if you use chat enabler and don't patch the app, the mobile messaging site will appear in a webview. Although these features are missing and can't be added, you still get a better messaging experience with FBPatcher. Workaround for message requests is listed in the OP.

PS: Even Messenger doesn't have the possibility to view archived, filtered or spam messages.

Update: new poll, please vote!
[Android Apps and Games] lorantm:
Sad news: the com.facebook.orca package (that's the Messenger part) was removed from the latest alpha. I can't do anything about it.
[Android Apps and Games] miguelrivas:
So, the last alpha cant be patched?
[Android Apps and Games] lorantm:
How could it be? The part of code that was being enabled until now by FBPatcher, is completely missing from this alpha. Latest betas seem to work though.

I'll take a look at the next alpha tomorrow but I suspect that the build configuration has been changed by Facebook so the orca (Messenger) library will be excluded in the future unless they revert the build config.

A note to Facebook if they're reading this: 95% of the com.facebook.messaging library isn't used and it's large, if you're planning to clean up unused code, you could start there.

Update: this alpha is crap.

When you try to open the divebar (chat bar on the right) it crashes. Ironically, divebar code was in the orca package too. :D
[Android Apps and Games] faparamigofi:
Just a question, if they will not rollback couldn't not be possible patch the next Facebook app adding the entire com.facebook.orca package?

I hope that they will leave us to possibility to patch the next versions otherwise more than install the Messenger it will be the time to completely uninstall Facebook.

I already uninstalled Whatsapp and I'm using Signal from several months and if I will be forced to installing the Facebook's Messenger then I'll leave Facebook and goodbye Zuckerberg.

[MENTION=7414440]lorantm[/MENTION], thanks alot for your great work that you did until now.
[Android Apps and Games] lorantm:
That would only be possibe if we had the original source code.

Adding it from earlier versions is not possible.

- Hundreds of resource id's are hardcoded and they change in each release.

- Dependencies are injected via FbInjector and Messenger-related components were removed from the injector's inventory.

I think they'll revert the changes because the orca package is needed for the divebar that doesn't work now. Actually a very little part of the package is still there but only those classes that other parts of the app directly depend on.
[Android Apps and Games] wolfballz:
Damn facebook just can't leave **** alone.
[Android Apps and Games] lorantm:
84.0.0.0.29 has the same issue, divebar doesn't work.

Maybe they want to remove it from Facebook and move it to Messenger? It would be reasonable but then why is the icon still there? There are so many questions now.

Latest beta works fine.
[Android Apps and Games] lorantm:
Messenger code is back in the latest alpha! It can be patched.

This version is buggy though, images don't load and divebar doesn't work even in the unpatched app.
[Android Apps and Games] kevinkehoe18:
Guys its taking forever to install the apk is this normal ?
[Android Apps and Games] lorantm:
It's normal on 5.0+ variants. Install time is about 5 mins.
[Android Apps and Games] el_easy:
+1

from the last 3 updates it been taking forever to install, something the original FB doesn't happen.
[Android Apps and Games] lorantm:
Today or tomorrow I'll release an update with a workaround for message requests if my theory works.

When you tap the message request inbox item in your thread list, the in-app browser will display your requests on the mobile site, you won't even have to log in.
[Android Apps and Games] samsHarvy:
Did you try this, does it work?
[Android Apps and Games] lorantm:
Yes. I'll upload the new version tomorrow, currently I'm at a pub. :)

Update: it's up!
[Android Apps and Games] george_shudi:
Mate the latest stable FB 82.0.0.23.70 works only on android 5+ NOT android 4+ :(

Edit : i have downloaded it from play store then backup and patched it my self using FB patcher v2.7 and it works :)
[Android Apps and Games] lorantm:
Because you should use 4.0+ variants of Facebook on 4.x devices. The apk you downloaded was an 5.0+ variant which the 4.x system can't parse properly.

Download a 4.0+ variant and patch it.

http://apk-dl.com/files/576b6a0b4f7685360904e5b2
[Android Apps and Games] george_shudi:
Yes i know that mate but the version in that attached pic was the patched verion from wolfballz stable link and it should work on 4+ like the previous versions but it's not (just reminder), Anyway i have downloaded the latest version from the store and patched it using the patcher v2.7 and it works now like a charm Thanks mate.
[Android Apps and Games] lorantm:
What he had uploaded for v82 stable is actually a 5.0+ variant, therefore it didn't work for your 4.x device. But there is no problem at all with that apk.

Most of the apk's he uploaded are 4.0+ variants though, they also work on 5.0+ devices.
[Android Apps and Games] DaveX2012:
84 don't work properly pic etc.
[Android Apps and Games] lorantm:
Yes, I know and already mentioned it when that alpha came out. These issues are also observable in the unpatched app.
[Android Apps and Games] george_shudi:
Yes i know that mate, 4+ apps work on 5+ but not in reverse :) No one said that version has problem it's working fine on 5+ , It was a reminder to patch FB 4+ versions so it will work for all :)
[Android Apps and Games] lorantm:
84.0.0.0.60 can be patched but the divebar and new message function doesn't work.