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

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

[Update: Confirmed] Android 11 may finally remove Android’s 4GB file size limit for video recordings

Update (6/12/20 @ 4:00 PM ET): It’s official: Android 11 finally gets rid of the 4GB file size limit for video recordings.

In 2019, smartphone brands have made huge jumps in camera quality, especially when it comes to zoom and low-light. On the other hand, video quality hasn’t been given the same amount of attention. That could change in 2020 with the Qualcomm Snapdragon 865’s improved ISP. Yet, even as Android smartphones are shipping with larger internal storage capacities, have faster modems, and are now supporting 5G networks, an old limitation prevents most of these phones from saving video files that are larger than 4GB in size. However, that could change in Android 11, the next major version of Android that’s set to release in 2020.

I’ll try to summarize the reasoning behind this limitation without going too deep into the technical aspects. Basically, Google decided that Android’s MediaMuxer and MPEG4Writer classes, which are respectively responsible for muxing (combining) video files and saving them as MP4 files, should support outputting an MP4 file with a maximum size of 2^32 – 1 bytes, which is approximately 4GB. This decision was made in early 2014, back when the Google Nexus 5 with its maximum 32GB of internal storage was still on the market, SD cards were still widely in use, and the first phones with 4K video recording had just come to market (Galaxy Note 3). Thus, there wasn’t much demand to save video files over 4GB in size: most phones didn’t have enough storage, SD cards formatted in FAT32 wouldn’t support it anyway, and few phones recorded in high enough quality to even meet that limitation. Fast forward 5 years and much has changed: there are now phones with 1TB of storage, SD cards are now the exception rather than the norm, and 4K video recording is ubiquitous, with 8K video recording soon to reach devices.

Today, if you record a 4K video on the Pixel 4, your video will reach 4GB in size in about 12 minutes; that’s at the default quality settings of 30fps for the frame rate and 48Mbps for the bitrate. After about 12 minutes of recording, the camera app will save the video and immediately begin recording another video – without the user noticing. When you check your phone’s DCIM folder, you’ll notice that what was supposed to be one continuous video recording has instead been split into multiple video files. For example, a 73 minute video recording on my Pixel 4 was split into 7 different files – all of which were seen by Google Photos as separate recordings. It’s not difficult to mux these MP4 files before uploading to Google Photos, but you’ll have to use a third-party app if you want to do so. Most people wouldn’t bother or know how to do so, I would imagine.

A 73 minute 4K30 video recording from my Pixel 4 split up into 7 different files.

Developers have asked for a way to record video files larger than 4GB in size for years now, and it seems that change could finally be coming in Android 11. According to the description of a new commit in the AOSP gerrit, Google is updating Android’s media classes to remove the 32-bit file size limitation. Specifically, Android will now “use [a] 64bit offset in mpeg4writer,” which allows Android “to compose/mux files more than 4GB in size.” During testing, Google successfully composed a file of around 32GB in size, and in a separate test, even managed to fill up the entire storage capacity of the phone with a single recording. A maximum file size of 2^64 -1 bytes is comically large and would never really ever be met, so we expect Google to limit the MediaRecorder API or OEMs to limit their stock camera apps to support a more reasonable maximum file size. However, apps like OpenCamera that use the Camera2API should still be able to arbitrarily set whatever maximum file size they want without having to worry about the 32-bit file size limitation.

OpenCamera’s Video Recording Settings

The commit has not been merged yet, but when it does, we expect the change to be reflected in Android 11 since that’s the next major Android release. The first Android 10 beta went live in March of this year, so expect to see an Android 11 beta in March of 2020 followed by a stable release sometime in August of 2020. With phones from Xiaomi and Samsung expected to support 8K video recording, this change is welcome – albeit way overdue.

Thanks to XDA Recognized Developer luca020400 for the tip!


Update: Confirmed

Videographers rejoice, Android 11 officially gets rid of the 4GB file size limit for video recordings. Android 11 Beta 1 finally removes the limitation, but you’ll need to use a camera app that supports it. Right now, not even Google’s own camera app supports it yet. The popular app Open Camera does seem to support it already and we should see more apps, including Google Camera, add support too.

Source: Google | Via: Android Police

The post [Update: Confirmed] Android 11 may finally remove Android’s 4GB file size limit for video recordings appeared first on xda-developers.



from xda-developers https://ift.tt/3521peW
via IFTTT

Files by Google 1.0.315 tests a “Safe Folder” that hides and protects files with a 4-digit PIN

Files by Google is a file manager app that has become the de facto default file manager for Google Pixel devices on Android 11 as the AOSP Files app is now only accessible from storage settings. The latest version of the APK started to roll out recently, and it was also uploaded to APKMirror. Version 1.0.315 reveals work on a new “Safe Folder” feature that will allow you to hide and encrypt files using a 4-digit PIN.

An APK teardown can often predict features that may arrive in a future update of an application, but it is possible that any of the features we mention here may not make it in a future release. This is because these features are currently unimplemented in the live build and may be pulled at any time by the developers in a future build.

Strings for this feature were first spotted by 9to5Google earlier today, but we have fully enabled this feature in the Files by Google application. How it works is quite simple: A new “Safe Folder” button appears in the “Collections” section of the “Browse” tab. When you tap on the Safe Folder, you’ll be asked to set a 4-digit PIN. Once you set a PIN, it warns you that you can’t open the Safe Folder again if you forget the PIN. After setting up a PIN, you can move files by selecting one or more of them and then choosing “Move to Safe folder” in the menu.

Files by Google Safe Folder Files by Google Safe Folder Files by Google Safe Folder Files by Google Safe Folder

Under-the-hood, files are stored in a folder called .FilesByGoogle in the root directory of the external storage (located at /data/media/{user}). The contents of this folder are hidden from other applications thanks to a .nomedia file in the directory. The files themselves seem to be encrypted, so there’s indeed no way to recover them if you forget your PIN. If you uninstall the Files by Google app, the contents of the Safe Folder will not be deleted. However, when you re-install Files by Google, it won’t be able to read the old Safe Folder contents again. You can set up a new Safe Folder using the same (or different) PIN, and all new files moved to the Safe Folder will also be saved in the .FilesByGoogle directory.

This feature is not yet available for users in the latest version of the Files by Google app. However, once it rolls out, we will let you know.

Files by Google: Clean up space on your phone (Free, Google Play) →

Thanks to PNF Software for providing us a license to use JEB Decompiler, a professional-grade reverse engineering tool for Android applications.

The post Files by Google 1.0.315 tests a “Safe Folder” that hides and protects files with a 4-digit PIN appeared first on xda-developers.



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

Google Calendar enables Google Tasks integration for some users

Google Tasks was launched as a standalone app over two years ago and it has remained pretty barebones. It’s slowly gained more features, like a dark theme, but the beauty of it is the simplicity and Google integration. The company has been working on integration with Google Calendar going all the way back to October of last year. It seems to finally be live for more people.

We first saw this integration between Google Tasks and Calendar late last year. The functionality adds a “Tasks” option when you tap the “+” FAB in Calendar. You can then create a task like you normally would right inside the Calendar app. It works the same way as you can currently create a Goal or Reminder.

Google Calendar tasks Google Calendar tasks Google Calendar Google Calendar

Screenshots from previous build of Google Calendar

The Tasks interface in Google Calendar is similar to creating an event. You can give the task a title, add details, choose a time and date, put it under a specific Tasks list, and decide if it should be recurring. This works even if you don’t have the Tasks standalone app installed on your device, so it could mean using one less app. Once included, you’ll see a new “Tasks notifications” section in the General Calendar settings.

This integration is still not official and it seems to be appearing as a server-side switch. However, it does appear to be showing up for more people, so a full release could be coming soon. Check your Calendar app to see if it’s there. Do you use Google Tasks and do you like them showing up on your calendar?

Google Calendar (Free, Google Play) →


Source: Android Police

The post Google Calendar enables Google Tasks integration for some users appeared first on xda-developers.



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

G Suite users can now edit Google Calendar events directly in Gmail or Google Docs

Gmail and Docs on the desktop, along with a bevy of other Google services, features a side panel with shortcuts to Google Tasks, Keep, and 3rd-party add-ons. Google Calendar is another one of these shortcuts and it allows you to view the schedule for a single day, add events, and delete events. Soon, it will allow you to also directly edit events.

The current functionality for the Google Calendar panel is pretty nice, but it’s not the full experience. It’s annoying to be able to do most actions from the side panel but have to go over to Calendar to edit an event. Now, users will finally be able to do everything right from within the side panel. Editing an event includes the date/time, guests, location, and everything else you’d get in the full Calendar app. There’s also the “Find a Time” tool to see others’ calendar availability when scheduling events.

Google will be gradually rolling this feature out over the next couple of weeks for Google Docs and Gmail. It will be available for all G Suite customers, but we’d be surprised if it doesn’t come to consumers as well. A feature like this makes all of Google’s services work better together and that is ultimately the goal. The less you have to leave a Google app (even for another Google app), the better. Keep an eye out for this in the future.


Source: Google

The post G Suite users can now edit Google Calendar events directly in Gmail or Google Docs appeared first on xda-developers.



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