yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] evilwombat:
Okay.... it's a little later than I planned, but if someone is feeling super brave, here's something to try. The snapchat bar stuff took way longer than I thought it would, so I have only had a few minutes to test it. Therefore, here's not one, but two experimental releases, depending on how brave you feel ;).

facebook-lc-v12.1-experimental.apk

This should have most, if not all, of the original mods rebased from v11.1 (including the patch for the "old" version of the snapchat bar), with the possible exception of a few things that may have been removed or refactored (I guess time and testing will tell). I've also taken the liberty of hiding the "Up Next" video countdown bar, which pops up at the bottom of the video player towards the end of some videos. I like consuming content at my own pace, to take the time to absorb what I just saw, rather than jumping onto the Next Thing before the current video even finished playing. So, if this works, it should be a welcome relief.

facebook-lc-v12.2-very-experimental.apk

This has all the mods from v12.1 above, with one additional change to try to hide the "new" version of the Snapchat bar (ie, the "Stories" section at the top of the news feed). It seems like there are two separate implementations of the Stories bar (which look very similar) and at this point I'm not sure what controls which version a particular user will see (maybe I just happen to be in an A/B experiment or something). Thus, for some users, v12.1 and v12.2 may look identical, but some people might see the Stories bar in v12.1 but not in v12.2 (or maybe something else entirely, since this rabbit hole goes rather deep, as it turns out). Either way, patching the new-style snapchat code is something very new, and I'm not quite sure what the exact implications are. I'll be putting some testing on this version over the next few days, but if you are very brave and/or curious, feel free to try this out. This code has been tested for about 2 minutes, so you have been warned :)

Anyway, that's all for tonight. Let's see how this stuff goes. As always, have fun, and good night (morning).

- evilwombat
[Android Apps and Games] jineshpatel30:
I'll try 12.2 as i had quite a few random occurrence of Story bar with 11.1 which i reported sometime ago. So i guess I have "new" version of story bar in my account.

Will let you know after thorough testing.

As always Thanks for update :)
[Android Apps and Games] alexcapone:
Thank you. I was able to rename the FB LC package and install v12.1 on my Galaxy s9+ which had stock FB pre-installed as a system app. I had trouble renaming the package and installing a month ago but this time it seems to be working. Interestingly, I never downloaded Messenger signed with the same key. I simply kept the stock Messenger installed and I have not experienced any issue with it. Should I be expecting any problems?
[Android Apps and Games] Manuel Rodriguez Collado:
Delete
[Android Apps and Games] evilwombat:
Cool. Thank you!

I just saw an ad called "Available Nearby On Marketplace". Yuck! I think I see what happened, though. They should be pretty rare, but it looks like it slipped through the cracks. I've got a fix in my tree, but since these are pretty rare, I'll test for a few more days to see if anything else falls out.

By the way, how do people fell about "People You May Know"? In the past, I've been inclined to leave these alone, since they seem like "genuine" recommendations (rather than the more creepy, potentially influenced stuff out there). But, their frequency (perhaps due to having hidden the other ads) can be somewhat annoying.

Thoughts?
[Android Apps and Games] JRJ442:
I'm not a fan of the "people you may know" personally. It seems like they force it down your throat a little too much. On 12.1 I see it once when I open the app, then 4 or 5 posts later.
[Android Apps and Games] nunomsgodinho:
Thank you so much! This works so well on my device (mi note 3). Somehow the latest app it's not very smooth on here, all other apps including games are ok but latest Facebook don't. I will use your version forever!! Thanks again
[Android Apps and Games] jineshpatel30:
Personally I'm also not fan of "people you may know" posts, reasons being, one, I don't usually send out friend request to people i "just know" and second, people you may know is also present in "friends request" tab as well (though they might have different "recommendation".

Having said that, it don't/haven't annoyed me much yet, i got one post while scrolling 4-5 pages, on which i click i don't want to see this from post menu (3 lines button on top right of post)

After that i haven't seen it again till now.

So either way i'm cool with it removed or not, if some people find it useful than keep it but i think most won't use at all, because FB has become "news n group" update platform rather than "social" and we already have search option if needed.

Till now it's 2-0 in favour of removing, if it remains that way thrn nuke it without second thoughts :p

Now, back to testing results. (v12.2)

First of all excellent update in terms of perfomance (i guess we have FB to thank for it as well) it's much much smoother than base v161

About blocking, i think almost everything is blaock for my end. Newsletter email "nag" in instant articles are also gone ! (Thanks a lot for that)

No crash, FCs or loading issues.

Notification works fine (i trird post, personal, group, event, chat almost everything...and they all are working fine)

Finally, "Story Bar" is gone for good with v12.2 for me, on 11.1 it was keep ducking for a second everytime i open app.

So, i suggest you ho ahead with v12.2 instead of 12.1 because nothing seems broken here and it'll serve all people :good:
[Android Apps and Games] neniick:
People you may know can be removed for all I care.

Something different, I use some groups on Facebook for buying/selling parts for my car, but on any buy/sell post Facebook throws this "quick reply" thing in your face which takes up about half the screen.

Could you please take a look to see if it's possible to get removed?
[Android Apps and Games] evilwombat:
Awesome. Thanks for testing! The email signup nag in Instant Articles actually wasn't me :). That was one of those resource mods that was super straightforward before resources were obfuscated, but never got rewritten as a code mod (I fought it for a few days on 11.1, and gave up). But, I might have a few more things I can try... I think I have a "saved" article somewhere that exhibits this behavior.

As for the Stories bar... NOW it makes sense why people were seeing it on 11.1, but there wasn't realistically anything I could have done about it without experiencing it on my own device. I must have gone through something like 20 different things before hitting something that was related enough to get it working.

As for People You May Know.... yea, I suppose let's get rid of that from the feed. Not everyone has a Friend Requests tab (and mine sort of comes and goes) but this feature is still available via Menu -> Friends -> Suggestions. I'll drop this into my test version, and see how it behaves for the next day or two.

I'll go dive into the email signup junk for a bit, and maybe try to reproduce a "Follow!" toast pop-up in the main feed that appears after watching some videos. No promises, but we'll see what happens.
[Android Apps and Games] pratik_193:
Tested the 12.1 version.. so far so good.... hiding people you may know, group suggestion and disabling ads within the videos is a added advantage of this app.

---------- Post added at 12:22 PM ---------- Previous post was at 12:21 PM ----------

would you mind sharing the renamed fb lc version? i have a s7 edge which has FB pre installed..

also, what method did you use to rename the apk?
[Android Apps and Games] jineshpatel30:
https://www.facebook.com/mensxp/

This is the page that have instant articles with signup e-mail option on top.

But signup is not there for me in 12.2, it was definately there in 11.1

So you may have touched something even by mistake that actually helped to remove that nag ! Lol.. excellent :p

Like n follow that page for few days and test on your end as well. Let's see is it just me or nag is gone for good ;)

---------- Post added at 12:28 PM ---------- Previous post was at 12:23 PM ----------

Try "app cloner" or "APK editor pro" (you can get this one for fee in 4pda)

Check some videos on YT about how to if you can't figure out yourself.

It's very easy.
[Android Apps and Games] pratik_193:
App cloner doesnt work for facebook.. havent tried apk editor
[Android Apps and Games] jineshpatel30:
It definitely works for FB but it might not br available in free version.

I tried it my self with 9.1 and it worked like charm :p

If you don't have pro version, Try apk editor with how to video.. it's also easy
[Android Apps and Games] evilwombat:
Argh! I am super confused. I was seeing the email signup junk, and I started diving into it. I tried a few things that didn't do anything, then tried a few things that (in retrospect, understandably) caused FCs, then tried some other stuff. Then, something was acting a little funny so I tried a different version of the patch I was using, and the email crap went away. That seemed odd, because this version of the patch should have been functionally identical to the previous version. "... huh?" So I tried to test this by un-doing all my changes, and the email junk is still gone. Tried reinstalling, wiping cache, etc - still can't see the email signup junk anymore, even though I *should* be seeing it (on your page, and on one I had saved). I am confident I've fully backed out all the experimental changes for this, because all my tools / scripts are version-controlled via git, and git shows no outstanding changes.

The only explanation I can think of is maybe I reached some kind of impression limit for the email promotion, or maybe I entered or exited an A/B test related to this stuff (since this behavior changed right around midnight, this wouldn't be surprising). Either way, a server-side change seems like the only explanation for now.

So.... time to save all my notes regarding this stuff, and resume hunting for it when it comes back.
[Android Apps and Games] Sander9847:
Thank you very much, works perfectly!
[Android Apps and Games] sonnguyen.vn:
Please update base version. Because new version better than your base.
[Android Apps and Games] evilwombat:
That will take time. What is better about the new base version?
[Android Apps and Games] pratik_193:
[MENTION=5029215]evilwombat[/MENTION] bro any luck with different package name?
[Android Apps and Games] evilwombat:
Haven't tried yet. Family is coming to town, so I've been mainly cleaning my apartment. I'll try it the next time I get a chance.
[Android Apps and Games] pratik_193:
No problem bro, take your time.
[Android Apps and Games] selw0nk:
I get a notification now saying Your app is out of date and I need to upgrade.
[Android Apps and Games] NateSiegel:
Me too. I don't find them too intrusive so I just ignore them.
[Android Apps and Games] evilwombat:
Hey guys. Yeah, I got them too. I started work on rebasing my patches to the version from 6/1/17. The good news is that I've rebased most of the DEX patches to the new version (though I have yet to look at article ads, and I may do them a little cleaner this time around), but the resource patches remain (the snapchat stories bar, related content in web-based videos, various like/share attachment crap, etc). And since there are more dynamic layouts, I'm looking at ways to kill some of the garbage closer to the source. This is a bit more risky, and requires some more testing, but potentially kills off more of the newfangled garbage added in recent versions ("Marketplace stories for you"), and more completely kills stuff like "Pages you may like". I've got a candidate version of that on my phone, but there's still some stuff to grind through and more testing to do.

The other good news is that I'm starting this set of mods off the Android 4.0.3 version, so this should be compatible with older devices.

Package name changes have run into a little bit of a snag, but I will have to revisit them.

The bad news is that my plans to put some solid work days into this have hit a minor medical-related snag, which made the last 27 hours, umm, interesting. I'm all good now, but need to get back into things and pick up the pieces a little. If I have some energy after dinner, I'll try to look at porting over some of the more minor resource patches tonight......
[Android Apps and Games] evilwombat:
Okay. I'm really rather out of it right now (medical things were interesting but I should be okay). Before the rest of life gets in the way, I posted a new version (v4). This version is based on a base APK from 6/1/17, and I've used the Android 4.0.3 version this time (though it still works fine for me on 5.x).

This version is probably a little rough around the edges (hence, "experimental") and needs more testing (I've had it on my phone for 10 minutes). It has similar crap-removal features as the last release, only rebased onto something recent. I am also fundamentally changing how some of the unwanted content is blocked, and you shouldn't even see partially-truncated posts like "pages you may like" or "suggested products". That stuff should just be gone now. (and hopefully the DEX patches don't cause things to force close...). This should also more reliably hide the "featured for you" crap at the top of Groups and Pages. Follow-up / chaining nonsense should also be gone more robustly, as in v3. I the "Suggested Groups" nonsense uses a bit of legacy code so it still relies on the classic way of resource patching. I've got a function in mind to patch, but this needs more testing and can wait.

It looks like the 6/1 version introduced some new types of ads ("Marketplace Stories") so I went ahead and got rid of those too.

Note: though I tried to pull over the patch that hides the "related content" stuff in a web-based video, I don't have any video posts in my feed to test it on. So, I am "assuming" this works (again, hence, experimental) but I will hopefully get a chance to test more of this out in the coming days (once I start getting my life back together). Anyway, I'm going to go sit down and be more loopy. As always, good luck and have fun.

If the experimental version causes problems, there's a link to the previous version in the hidden section of the first post in this thread.
[Android Apps and Games] lalit387:
Link is dead?
[Android Apps and Games] el_easy:
FB less crap v4 running very smooth, it looks clear without all that crap on Android 4.4 KitKat...
[Android Apps and Games] evilwombat:
Sorry, link was down for about 20 minutes while I uploaded the *correct* file :). Should be up now.
[Android Apps and Games] wonsky21:
Any chance for newer Messenger signed with your key? Thanks in advance.
[Android Apps and Games] evilwombat:
Argh. Mine is nagging me to update. I see at least one bug - there are at least two known code paths for the update nag, and for some reason I only patched, uhh, one of them. It's weird - I have the staged DEX file in my tree, as if it were going to be patched, but it's identical to stock. Clearly I spaced out on this :/.

Rather than pushing a fix right away, I'm going to try this out for a few days, to make sure it's really fixed. Also that way people don't have to keep updating for every little thing (and so I can have another crack at patching Suggested Groups properly, rather than just blanking them out).

As for rebasing to the latest Messenger- sure, let me go see what I can do.
[Android Apps and Games] evilwombat:
Here you go. June 5, 2017. This is also the 4.0.3 version, to keep compatibility with KitKat.

https://www.dropbox.com/s/zz95wjfsmmzbelr/messenger-121-403.apk?dl=0
[Android Apps and Games] JRJ442:
Oddly after installing V4 from the OP and the rebased messenger, there was an update from the Play Store for Messenger, which was the same exact version by the way. It allowed me to update it without any weirdness. They must have changed something about their signing key recently. All's well so far. Haven't seen an update for Facebook itself nag as of yet.
[Android Apps and Games] wonsky21:
I have weird issue, when trying to install new messenger. And can't install Messenger from Playtore (error 505). Basically can't install any messenger release.

Edit: ok, when uninstalled Facebook LC I was able to install Messenger. But now I can't install Facebook LC app, with the same error.
[Android Apps and Games] JJohnson1988:
I had that issue as well.

I just resigned both the Facebook apk and the Messenger apk with my own key, and then I was right as rain.
[Android Apps and Games] jineshpatel30:
Okay we got a winner (or loser in this case)

https://www.facebook.com/beingindianchannel

This page's instant article has sign up email on top even on 12.2

So my guess is there's more than one code that handles these things. More work for you sadly :(

Edit : one more page

https://www.facebook.com/WFInnerVoice/

https://www.facebook.com/WFInnerVoice/posts/2049132458455066
[Android Apps and Games] asia559571:
Messenger lite still insists on startup to register FB account, I refuse to register the FB spyware platform, was hoping to have messenger without the FB signup, my family use messenger which is why I wanted to use it, but tried, failed, no loss to me because I hate FB.

Regardless! Many Thanks and Kind Regards:)
[Android Apps and Games] J_M_V_S:
Using 12.2 with no issues so far. Good job!

About people you may know I'm all in for it's removal.
[Android Apps and Games] hoangsonvio:
Dear evilwombat,

Could you help to modify messenger with an option of turning notifications off forever, please?
[Android Apps and Games] Klasputnikov:
Can't install on Mi A1 Oreo
[Android Apps and Games] Manuel Rodriguez Collado:
Testing 12.2 so far so good.

Thanks good job

Enviado desde mi LG V20 mediante Tapatalk
[Android Apps and Games] evilwombat:
Hmm... are you talking about standard Android notifications from Messenger? If so, you should not have to do that - you can disable notifications for all of Messenger by swiping down from the home screen, long-pressing on one of the Messenger notifications, and there will be a menu to turn them off. You can also hide notifications from apps using the App Info menu in Android.

... or are you talking about some other form of Messenger notification?
[Android Apps and Games] hoangsonvio:
Oh, I forgot this simple way to do it. Many thanks.

I know it's too much for a request, but have you ever thought about patching messenger with ads removal. The only one that works I found on the internet is black mod version 82.0.0.17.75 but it's not compatible with your patches. I also tried Facebook Patcher 100+ which is created by a member of this forums and it could be perfect if facebook doesn't nag me to have it updated.

If you haven't, I guess I have to use telegram and convince my contacts to use it lol.
[Android Apps and Games] alexcapone:
I am getting Facebook notifications for messages. How can I turn this off? I went into the settings and toggled off chat but still getting them. So now I get duplicate notifications...one from Messenger and the other from Facebook. Running v12.1
[Android Apps and Games] jineshpatel30:
does clicking on messenger icon (top right) in FB app opens messenger ?

if not then you need to sign both apps manually.

Use the guide provided below OP or in my signature
[Android Apps and Games] hoangsonvio:
Hi guy,

I have an issue which always exists no matter what version of fb I use. I turn Links open externally on but when I click every links on every pages they are still be opened within the app. Any help here, please?
[Android Apps and Games] jineshpatel30:
May be pages you follow are using instant articles ?

Follow android police on FB (or just go to their page) and see if their articles are also opening in-app ?

2nd updating webview & chrome from Playstore if it shows and update. And make sure they are not "disabled" (settings>apps)
[Android Apps and Games] alexcapone:
No it prompts me to install messenger. I can sign it manually however I found a workaround to the duplicate notifications. I just used autonotification to block the message notification from facebook LC. As long as there are no other issues besides the duplicate notifications I'll hold off on signing manually.
[Android Apps and Games] jineshpatel30:
That answers your question.

Both FB & messenger are acting as different entities because they are not signed with same key and that's why you are getting duplicate notifications.

If it was me i would sign manually because it "combines" fb & messager and stops some of the FB services that keeps running for messager notification rather than use another work around of auto notification and increase load and battery usage.
[Android Apps and Games] hoangsonvio:
I've just clicked a link on my friend's timeline and yandex prompted. So it's about pages I surf as you said. Many thanks.

---------- Post added at 04:48 PM ---------- Previous post was at 04:37 PM ----------

Yes, I signed fb & messenger using your instruction and it worked. Notifications stop duplicating. Just one thing left, incorrect unread count by messenger. Could you help me with a solution?
[Android Apps and Games] jineshpatel30:
open all the messages in messenger and clear the counter (if that doesn't work open them in computer and then open messenger in phone it'll clear the counter after that counter will work correctly.

sometime there's delay in counter sync on FB server so this issue happens.

nothing we can do to "fix it" except what i described
[Android Apps and Games] jineshpatel30:
.

Zipalign Tool

Most of us use FB-LC & Messenger after manual signing but i don't think many would bother to zipalign after signing.

So, I made a simple tool for this.

Use it after signing to zipalign both FB-LC & Messenger APKs. :good:

PS : Even original FB-LC comes without zipalign. So, you can use this tool directly without signing if you are like me and not using messenger at all.
[Android Apps and Games] the stranger94:
If it's messenger lite unfortunately the notification badge is "broken" since the begging: it's show always 1 notification

Sparaflashato da Z3C
[Android Apps and Games] hs420:
Well that explains a lot
[Android Apps and Games] pratik_193:
[MENTION=5029215]evilwombat[/MENTION] - on the latest version, i just saw people you may know, market place and the popular across facebook post..
[Android Apps and Games] Flounderist:
[MENTION=5029215]evilwombat[/MENTION] +1

Running 12.2 apk. I got people I may know and marketplace ads since day one.
[Android Apps and Games] evilwombat:
Thanks. Both are known issues, and should be fixed in v12.3. I expect to put that up later tonight, when I get home, but it's been a long day...
[Android Apps and Games] pratik_193:
Awesome