LightBlog

samedi 13 juin 2020

How to force 90Hz mode in every app on the Realme X2 Pro [Root]

The Realme X2 Pro is unquestionably one of the best-priced flagship-tier smartphones you can get, even in 2020. Powered by the Qualcomm Snapdragon 855+ SoC, the phone offers an impressive quad-camera setup, insanely fast 50W charging, and a high refresh rate 90Hz display. Users have the freedom to choose between the 60Hz and 90Hz refresh rates, but the 90Hz mode is actually limited to only a handful of third-party apps. Our own Tushar Mehta tried out the famous ADB command trick from the OnePlus 7 Pro/7T/7T Pro to unlock the 90Hz mode at all times in all apps, only to find out that it did not work on the Realme X2 Pro. That was obviously going to be the case since the X2 Pro doesn’t run OxygenOS but rather ColorOS/Realme UI.

Realme X2 Pro Forums

The good news is, though, that Realme has a hidden command left in the Realme X2 Pro’s firmware, which can be exploited to unlock a persistent 90Hz mode on this device. XDA Recognized Developer phhusson actually managed to discover the required parameters back in February. You need to fiddle with an Android service called SurfaceFlinger, albeit you have to be rooted to execute the command shown below from ADB shell or a terminal emulator app. This command will need to be executed on every boot.

su -c service call SurfaceFlinger 1035 i32 0

In case you are running a recent version of phhusson’s custom AOSP Project Treble GSI on your Realme X2 Pro, then you can find a “Force FPS” option in the “Misc” settings of phhusson’s Treble settings app which does the same thing mentioned above. You can separately download the relevant app, but it might work under stock Realme UI.

Force 90Hz mode in every app on the Realme X2 Pro — XDA Discussion Thread

If you would specifically like to force a 90Hz refresh rate for just PlayerUnknown’s BattleGrounds (PUBG) Mobile on the Realme X2 Pro, XDA Senior Member rkmadotra has come up with a handy Magisk module. Upon examining the internals, it seems that the module just replaces /system/etc/refresh_rate_config.xml with a modified version of that file that sets the PUBG Mobile package to 90Hz display mode.

PUBG Mobile Global 90Hz Enabler for the Realme X2 Pro — XDA Download and Discussion Thread

Both Realme UI and ColorOS have this particular file on smartphones featuring display panels with a refresh rate higher than 60Hz. The OS checks the packages in this list to decide what refresh rate mode to run the display at. For example, this file does exist on the OPPO Find X2 and Realme X3 SuperZoom, though these two devices can’t run at 90Hz as they only have 60Hz and 120Hz display modes.

The post How to force 90Hz mode in every app on the Realme X2 Pro [Root] appeared first on xda-developers.



from xda-developers https://ift.tt/2XXZl7C
via IFTTT

vendredi 12 juin 2020

Realme releases a flash tool for installing ColorOS/Realme UI updates

Realme might have separated from its parent company OPPO, but both of them are internally using a common foundation when it comes to custom Android skin. Realme UI is so far still a fresh coat of paint on top of OPPO’s ColorOS, and it is definitely not close to stock Android as initially promised by Realme’s CEO. In fact, Realme is still utilizing OPPO’s proprietary OZIP file format to pack their update packages. Not only do you have to brute force these OZIP packages to extract the AES key in order to convert them to regular recovery flashable ZIP files, but you also can’t directly use them to perform a clean flash using the standard Fastboot interface.

The custom development community around Realme devices is expanding rather quickly, primarily because of the low-cost revolution they have brought to the smartphone space. Realme does publish kernel source codes and allows bootloader unlocking, which acts as strong catalysts in the aftermarket development scene. The phones themselves, however, can get bricked for a fair few reasons in the journey of porting a custom ROM or trying out a new mod, and the unavailability of an official flash tool makes everything complicated to restore. The lack of a flash tool basically forces users to visit a service center to carry out a simple job of unbricking, which is not at all appreciated by the community.

But now, after teasing their flash tool for a little over a year, Realme has finally come up with something productive. The initial version of the Realme Flash Tool is now available for download, although the Realme X50 Pro is the only compatible device as of yet. Users can flash OFP packages with this tool, which is different from the OZIP firmware listed on the company’s download portal. The flashing process will completely wipe the target device so you should backup your personal data before playing with the flash tool.

realme_flash_tool

As you can see, the UI of the flashing app is remarkably similar to the Mi Flash Tool developed by Xiaomi. However, Realme Flash Tool isn’t programmed to work with Qualcomm Emergency Download Mode (EDL). It is more of a GUI wrapper for the Fastboot binary, thus you have to unlock the bootloader of the target device before flashing. Realme India CMO Francis Wang promised that the broken fingerprint sensor issue on Realme phones after bootloader unlocking should be resolved with the release of the flash tool, although we can’t verify the veracity of that claim at this moment.

It is worth mentioning that downgrading to a lower Android version isn’t supported by this tool, although you should be able to switch to a lower version of ColorOS or Realme UI if the underlying Android layer remains unchanged. Contrary to what Realme claims, the Windows-only tool isn’t specifically tied to the Indian variant of the Realme X50 Pro. You should be able to flash any Snapdragon or MediaTek-powered Realme phone with this flasher, provided you have your hands on the appropriate OFP package. The company is planning to add more phones from its portfolio to the list of supported devices by releasing required OFP files in the coming future.

Download Realme Flash Tool


Source: Realme Community (1, 2)

The post Realme releases a flash tool for installing ColorOS/Realme UI updates appeared first on xda-developers.



from xda-developers https://ift.tt/2XYMEt7
via IFTTT

Realme releases a flash tool for installing ColorOS/Realme UI updates

Realme might have separated from its parent company OPPO, but both of them are internally using a common foundation when it comes to custom Android skin. Realme UI is so far still a fresh coat of paint on top of OPPO’s ColorOS, and it is definitely not close to stock Android as initially promised by Realme’s CEO. In fact, Realme is still utilizing OPPO’s proprietary OZIP file format to pack their update packages. Not only do you have to brute force these OZIP packages to extract the AES key in order to convert them to regular recovery flashable ZIP files, but you also can’t directly use them to perform a clean flash using the standard Fastboot interface.

The custom development community around Realme devices is expanding rather quickly, primarily because of the low-cost revolution they have brought to the smartphone space. Realme does publish kernel source codes and allows bootloader unlocking, which acts as strong catalysts in the aftermarket development scene. The phones themselves, however, can get bricked for a fair few reasons in the journey of porting a custom ROM or trying out a new mod, and the unavailability of an official flash tool makes everything complicated to restore. The lack of a flash tool basically forces users to visit a service center to carry out a simple job of unbricking, which is not at all appreciated by the community.

But now, after teasing their flash tool for a little over a year, Realme has finally come up with something productive. The initial version of the Realme Flash Tool is now available for download, although the Realme X50 Pro is the only compatible device as of yet. Users can flash OFP packages with this tool, which is different from the OZIP firmware listed on the company’s download portal. The flashing process will completely wipe the target device so you should backup your personal data before playing with the flash tool.

realme_flash_tool

As you can see, the UI of the flashing app is remarkably similar to the Mi Flash Tool developed by Xiaomi. However, Realme Flash Tool isn’t programmed to work with Qualcomm Emergency Download Mode (EDL). It is more of a GUI wrapper for the Fastboot binary, thus you have to unlock the bootloader of the target device before flashing. Realme India CMO Francis Wang promised that the broken fingerprint sensor issue on Realme phones after bootloader unlocking should be resolved with the release of the flash tool, although we can’t verify the veracity of that claim at this moment.

It is worth mentioning that downgrading to a lower Android version isn’t supported by this tool, although you should be able to switch to a lower version of ColorOS or Realme UI if the underlying Android layer remains unchanged. Contrary to what Realme claims, the Windows-only tool isn’t specifically tied to the Indian variant of the Realme X50 Pro. You should be able to flash any Snapdragon or MediaTek-powered Realme phone with this flasher, provided you have your hands on the appropriate OFP package. The company is planning to add more phones from its portfolio to the list of supported devices by releasing required OFP files in the coming future.

Download Realme Flash Tool


Source: Realme Community (1, 2)

The post Realme releases a flash tool for installing ColorOS/Realme UI updates appeared first on xda-developers.



from xda-developers https://ift.tt/2XYMEt7
via IFTTT

How to restore the missing pocket mode toggle in OxygenOS on some OnePlus phones

OxygenOS from OnePlus provides a heavily customized Android experience and a variety of useful features and options. For example, you can find a built-in “Pocket mode” in OxygenOS that prevents accidental touches when the device is kept inside your pocket. However, a toggle to disable this particular option is apparently missing on devices like the OnePlus 7 and the OnePlus 7 Pro after the most recent OxygenOS update.

OnePlus 7 Forums ||| OnePlus 7 Pro Forums

The OnePlus 7 family recently received OxygenOS 10.3.3 (OxygenOS 10.0.6 for the European variants) that bumped the Android security patch level to May 2020 and brought in features like Dolby Atmos support for the new OnePlus Bullets Wireless Z earphones. Open Beta users, on the other hand, got the same security patch level in the form of Open Beta 14 a few days before the stable channel rollout. It might be a coincidence, but the “Pocket mode” toggle under Settings > Utilities seems to be missing right after these updates.

oneplus_6_pocket_mode oneplus_7_pro_no_pocket_mode

Although the toggle is visually absent, the pocket mode detection algorithm is always running in the background. It eventually breaks ambient display-related features like double-tap to wake and pickup to show in low light conditions, because the phone believes that it is still in your pocket. Due to the fact that OnePlus tends to re-use a majority of the UI codebase of OxygenOS across their devices, the glitch may affect non-OnePlus 7 (Pro) phones as well.

Hopefully, there is an easy way out, but you have to be rooted in order to apply the fix. All you need to do is add the following text snippet to the end of /system/etc/feature_list file on your phone (just before the last ]).

,
   {
       "featureName": "OP_FEATURE_ENABLE_POCKETMODE_SWITCH"
   }

Reboot the phone after saving the changes and the “Pocket mode” toggle should now be visible under Settings > Utilities. Note that the default status of the option should be “disabled” after adding the above code, thus you may need to toggle it twice to properly turn off pocket mode detection.


Source: OnePlus Forums

The post How to restore the missing pocket mode toggle in OxygenOS on some OnePlus phones appeared first on xda-developers.



from xda-developers https://ift.tt/3cSwCFm
via IFTTT

How to restore the missing pocket mode toggle in OxygenOS on some OnePlus phones

OxygenOS from OnePlus provides a heavily customized Android experience and a variety of useful features and options. For example, you can find a built-in “Pocket mode” in OxygenOS that prevents accidental touches when the device is kept inside your pocket. However, a toggle to disable this particular option is apparently missing on devices like the OnePlus 7 and the OnePlus 7 Pro after the most recent OxygenOS update.

OnePlus 7 Forums ||| OnePlus 7 Pro Forums

The OnePlus 7 family recently received OxygenOS 10.3.3 (OxygenOS 10.0.6 for the European variants) that bumped the Android security patch level to May 2020 and brought in features like Dolby Atmos support for the new OnePlus Bullets Wireless Z earphones. Open Beta users, on the other hand, got the same security patch level in the form of Open Beta 14 a few days before the stable channel rollout. It might be a coincidence, but the “Pocket mode” toggle under Settings > Utilities seems to be missing right after these updates.

oneplus_6_pocket_mode oneplus_7_pro_no_pocket_mode

Although the toggle is visually absent, the pocket mode detection algorithm is always running in the background. It eventually breaks ambient display-related features like double-tap to wake and pickup to show in low light conditions, because the phone believes that it is still in your pocket. Due to the fact that OnePlus tends to re-use a majority of the UI codebase of OxygenOS across their devices, the glitch may affect non-OnePlus 7 (Pro) phones as well.

Hopefully, there is an easy way out, but you have to be rooted in order to apply the fix. All you need to do is add the following text snippet to the end of /system/etc/feature_list file on your phone (just before the last ]).

,
   {
       "featureName": "OP_FEATURE_ENABLE_POCKETMODE_SWITCH"
   }

Reboot the phone after saving the changes and the “Pocket mode” toggle should now be visible under Settings > Utilities. Note that the default status of the option should be “disabled” after adding the above code, thus you may need to toggle it twice to properly turn off pocket mode detection.


Source: OnePlus Forums

The post How to restore the missing pocket mode toggle in OxygenOS on some OnePlus phones appeared first on xda-developers.



from xda-developers https://ift.tt/3cSwCFm
via IFTTT

Google’s Messages app will soon enable Bubble notifications in Android 11

Google introduced the new Bubbles notification API with Android 10 Beta 2 back in April last year. The API was initially offered as an opt-in feature for developers, allowing them to test it in their apps so that the apps were ready when the feature finally rolled out in a future Android release. As expected, the feature was enabled by default in the Android 11 Developer Preview 1, and in the leaked Android 11 beta, the API gained a user-facing setting. Back in December last year, we saw the feature in action on Android 10 in an APK teardown of the Google Messages app. Then, earlier this month, Facebook Messenger’s chat heads feature switched over to the bubbles notification API on Android 11 devices. Now, according to a recent comment on Reddit, the feature will soon be enabled in the Google Messages app on devices running Android 11 beta.

Google Messages Google Messages Google Messages

The comment in question comes from the official Android beta program account on Reddit, which states: “Bubbles for Android Messages will be enabled over the next month. If you’re in the Android Messages Beta, you’ll receive an update starting in the next week or two that enables the new feature…The feature is controlled on the application side, so you will be able to use the feature on 3rd party messaging apps as our partners start enabling it.”

Google Messages Google Messages

Once the update rolls out, you will see a new option called Bubbles in the Google Messages settings with a toggle to turn it on or off. Enabling the feature will make all incoming text messages appear in a bubble. The notification bubbles will appear at the edge of the display with a photo of the contact, the app icon, and a preview of the message. If left untouched, the preview will disappear shortly thereafter and will be replaced by a notification dot. Tapping on the notification bubble will open up the conversation in an overlay, allowing you to quickly reply to the message. To dismiss the bubble, you’ll be able to tap and hold on it and drag it to the ‘x’ icon that appears towards the bottom.


Source: Reddit

Note: The attached screenshots are from an APK teardown of the Google Messages app running on Android 10.

The post Google’s Messages app will soon enable Bubble notifications in Android 11 appeared first on xda-developers.



from xda-developers https://ift.tt/3hmdLpB
via IFTTT

Google’s Messages app will soon enable Bubble notifications in Android 11

Google introduced the new Bubbles notification API with Android 10 Beta 2 back in April last year. The API was initially offered as an opt-in feature for developers, allowing them to test it in their apps so that the apps were ready when the feature finally rolled out in a future Android release. As expected, the feature was enabled by default in the Android 11 Developer Preview 1, and in the leaked Android 11 beta, the API gained a user-facing setting. Back in December last year, we saw the feature in action on Android 10 in an APK teardown of the Google Messages app. Then, earlier this month, Facebook Messenger’s chat heads feature switched over to the bubbles notification API on Android 11 devices. Now, according to a recent comment on Reddit, the feature will soon be enabled in the Google Messages app on devices running Android 11 beta.

Google Messages Google Messages Google Messages

The comment in question comes from the official Android beta program account on Reddit, which states: “Bubbles for Android Messages will be enabled over the next month. If you’re in the Android Messages Beta, you’ll receive an update starting in the next week or two that enables the new feature…The feature is controlled on the application side, so you will be able to use the feature on 3rd party messaging apps as our partners start enabling it.”

Google Messages Google Messages

Once the update rolls out, you will see a new option called Bubbles in the Google Messages settings with a toggle to turn it on or off. Enabling the feature will make all incoming text messages appear in a bubble. The notification bubbles will appear at the edge of the display with a photo of the contact, the app icon, and a preview of the message. If left untouched, the preview will disappear shortly thereafter and will be replaced by a notification dot. Tapping on the notification bubble will open up the conversation in an overlay, allowing you to quickly reply to the message. To dismiss the bubble, you’ll be able to tap and hold on it and drag it to the ‘x’ icon that appears towards the bottom.


Source: Reddit

Note: The attached screenshots are from an APK teardown of the Google Messages app running on Android 10.

The post Google’s Messages app will soon enable Bubble notifications in Android 11 appeared first on xda-developers.



from xda-developers https://ift.tt/3hmdLpB
via IFTTT