Disable device spoofing for Google Photos in some custom ROMs
Some custom ROMs, particularly Evolution X, CrDroid and Pixel Experience feature an option to spoof your Android device in Google Photos to get unlimited photos storage.
If the user turns this option ON, the device is spoofed to Pixel XL, which gets unlimited Original quality
and Storage saver
storage.
If the user turns this option OFF, the device is wrongly spoofed to Pixel 5, which only gets unlimited Storage saver
storage.
Not to mention the risks of getting your Google account banned when using this, the user choice here is not respected.
- Install Magisk, LSPosed Or EdXposed.
- Install the apk of this app (available from Releases page.)
- Open LSPosed / EdXposed app and enable the module. For LSPosed, Google Photos will be automatically selected.
- Force close Google Photos app. (If needed, you might need to clear data of Google Photos app).
- Go to Settings -> Applications
- Find DePixelifyGooglePhotos
- Uninstall and reboot eventually
This module aims to hook to the setProps
method of the PixelPropsUtils
class to revert back the changes it makes to the Google Photos app.
- For the moment, this module only works with Evolution X custom ROM.
- This module has been tested on LSPosed.