LightBlog

mercredi 16 août 2017

How to Access Facebook Messenger’s Hidden Internal Menu

The hidden internal menu in Facebook Messenger is used by developers at Facebook to modify some aspects of the application during testing. It normally cannot be opened by users because the hidden menu activity does not have a direct way to accessed within the app. However, if your device has root access then it’s possible to enter this internal menu to play around with some of the hidden development/debugging tools used by Facebook engineers. Previously, accessing the internal menu could be used to disable the Messenger Day, though Facebook realized people were doing this and hence disabled the ability to turn off Messenger Day.

Error message when attempting to disable Messenger Day in “MobileConfig”

Still, there are other aspects of the application not located within MobileConfig that we can play around with. We will show you how to access this menu so you can take a look at what can be changed, and we will also give a few examples of some things you can do in Facebook Messenger’s internal menu.

You will need to either have the Android Debug Bridge (ADB) or a terminal application installed on your device such as Termux to continue. If using ADB, you need to enable USB debugging on your phone. To do so, open Settings then navigate to “About Phone” and repeatedly tap on the build number until it tells says you are a developer. Press the back button and you will now have “Developer options” in the Settings list. Scroll down and enable USB debugging.

This guide requires root. You can get root by either flashing Magisk or SuperSU after unlocking your device’s bootloader. If you device is unrooted, you can instead use this modified APK from XDA-Member evilwombat which lets you access the internal menu right within the app. But, doing so requires you to uninstall any existing Facebook apps you have installed and to instead use all of the modified Facebook apps from the same developer if you want to use more than just Messenger.


Using adb

Download adb, either “Minimal ADB & Fastboot” right here on XDA, or the official binaries released by Google. Extract them and in the folder containing adb, hold shift + right click within the folder and click “Open command window here”. Connect your phone to your PC and grant debugging access.

Next, type the following commands in the command prompt.

adb shell
su

Grant superuser access when prompted.

am start -n "http://ift.tt/2sfo083"

Then scroll down below.

Using terminal

Open the terminal app of your choosing. I use Termux, but anything that can access the terminal will work fine. Next type the following commands.

su

Grant superuser access when prompted.

am start -n "http://ift.tt/2sfo083"

Enabling Facebook Messenger’s Internal Menu Permanently

After doing the commands, the “internal menu” should show which looks like the menu below.

Scroll down to “Gatekeeper Override.” Tap that and in the following menu tap “search gatekeepers”. Type “internal” (without quotes) and tap the field which says “messenger_internal_prefs_android”. It should change to say YES.

That’s it! Now the menu is permanently accessible for you, located here in the screenshot below.

Explanation

We use adb or the terminal to start the MessengerInternalPreferenceActivity which is the hidden internal menu activity. We then edit the application settings from within the internal menu to permanently display a menu item to access that activity. The reason we require root access is that this activity is an unexported activity defined in the AndroidManifest of the Facebook Messenger application. Unexported activities require elevated permissions to launch them, but once we launch it we can then enable it from within the menu.


Example Features of the Messenger Internal Menu

Crashes

If for whatever reason you want to cause the app to crash (maybe you’re testing some system edits you made), the internal menu contains 4 crash types under “Performance and Profiling.

Language

If you want to choose your language yourself in Facebook Messenger, under “Subsystems” in the root of the internal menu is an option to change the application language to any that you want.

Always enabled chat heads

When you open Facebook Messenger, your currently opened chat heads disappear. If you wish to have chat heads available even when already using Facebook Messenger, you can enable “Don’t hide over messenger” located under features.

And that’s it! Have a poke through the settings, see if you can find something within Facebook Messenger and let us know in the comments below if you do!



from xda-developers http://ift.tt/2wQRNE7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire