[FLASHABLE ZIP] Google Lens and other Pixel 2 Exclusive Features

Search This thread

ZeevoX

Senior Member
I've been rooting around in the recently posted Pixel 2 (XL) system images, and I've found the key to Google Lens (and any other Pixel 2-exclusive features, presumably, which ones though?), so I decided to make a flashable zip and share my success.

Achievement Unlocked: Featured on XDA
Thanks a million!

Features
- Google Lens in Google Photos (Not in the Assistant)
- Pixel-exclusive apps in the Play Store (namely, Pixel Launcher)
- Pixel-exclusive wallpaper categories (Underwater, etc.)
- You tell me

Unlimited photos?
According to @thecoolkid, photo backup settings will stay the same, and you won't get unlimited photos unless you're uploading in "high quality", which will compress them. Basically, although it claims unlimited photos, it'll just be the setting you had before.

Instructions
Really?
1. Flash the zip, and Google Lens should magically appear (I didn't even need to clear Google Photos' app data)
2. Enjoy Google Lens (Only inside Google Photos, not in the Assistant itself - more info here)!

Uninstalling Google Lens?
You can revert the functionality of this zip and effectively uninstall Google Lens by deleting the following files:
Code:
/system/etc/sysconfig/nexus.xml
/system/etc/sysconfig/pixel_2017_exclusive.xml
/system/etc/sysconfig/pixel_2017.xml

Screenshots / Screenrecording
Small example screenrecording, watch here

Magisk Module
I personally haven't tested this, but you can go check it out here. (Thanks to @Flint2)

Download
See attachments
Mirrors: My server / AndroidFileHost
 

Attachments

  • 20171024_GoogleLensInstaller_ZeevoX.zip
    124.4 KB · Views: 78,963
Last edited:

jeremyet

Senior Member
May 30, 2017
120
63
London
Thanks!

This works great straight from Google Photos, but I'm not seeing the Lens icon in standalone assistant yet. Guess I'll wait for an update to assistant.

(OP3t running Zenity nougat)
 

ZeevoX

Senior Member
It doesn't work on latest OOS Open Beta (Oreo 8.0) for me...
Didn't Google disable this trick server-side?

That was different, that was where you would spoof that you have a Google Pixel 2 XL. In this case, I add the actual permissions that define a Pixel 2 device:
Code:
<!-- This defines the Photos preload feature for specifically the 2017 Pixel devices. -->
com.google.android.apps.photos.PIXEL_2017_PRELOAD
<!-- This is meant to be the canonical feature identifying 2017 and newer Nexus devices. -->
com.google.android.feature.PIXEL_2017_EXPERIENCE
It also adds other canonical features identifying a Pixel device, you can check these out inside the flashable zip.

It works for me. You may need to combine the previous trick as well and pretend you have a Pixel 2 (XL) in build.prop

This zip doesn't enable Google Lens inside the Assistant itself, just inside Google Photos. I'll clarify that in OP.

All the best,

ZeevoX
 
  • Like
Reactions: Panamon

ZeevoX

Senior Member
This works great straight from Google Photos, but I'm not seeing the Lens icon in standalone assistant yet. Guess I'll wait for an update to assistant.

(OP3t running Zenity nougat)

I've updated OP to state that it won't work in Assistant, since that doesn't happen even on the Pixel 2 (XL). I've also provided a link to an AndroidPolice news article about that.

All the best,

ZeevoX
 

theduke7

Senior Member
Apr 8, 2011
1,631
1,124
Cairo
Samsung Galaxy A23
That was different, that was where you would spoof that you have a Google Pixel 2 XL. In this case, I add the actual permissions that define a Pixel 2 device:
Code:
<!-- This defines the Photos preload feature for specifically the 2017 Pixel devices. -->
com.google.android.apps.photos.PIXEL_2017_PRELOAD
<!-- This is meant to be the canonical feature identifying 2017 and newer Nexus devices. -->
com.google.android.feature.PIXEL_2017_EXPERIENCE
It also adds other canonical features identifying a Pixel device, you can check these out inside the flashable zip.

It works for me. You may need to combine the previous trick as well and pretend you have a Pixel 2 (XL) in build.prop

This zip doesn't enable Google Lens inside the Assistant itself, just inside Google Photos. I'll clarify that in OP.

All the best,

ZeevoX

Update/ disregard previous replies, i was too noob-ish, it works perfectly...
i thought it would add a camera button or something to photos app :D
 

Attachments

  • Screenshot_20171024-170042.jpg
    Screenshot_20171024-170042.jpg
    126.4 KB · Views: 5,409
Last edited:
  • Like
Reactions: zakee94

silentvisitor

Senior Member
Mar 15, 2012
4,522
2,653
That was different, that was where you would spoof that you have a Google Pixel 2 XL. In this case, I add the actual permissions that define a Pixel 2 device:


Update/ disregard previous replies, i was too noob-ish, it works perfectly...
i thought it would add a camera button or something to photos app :D
Nice font. Which one?
 

Bat-Maniac

Senior Member
Jul 2, 2014
106
165
Germany
Working great on Nexus 6P Stock Oreo!!! Thank you!!!


It also enables the unlimited drive space with original photo size upload option again, but if it is really working I didn't find out yet.

Sent from my Nexus 6P using XDA Labs
 

Attachments

  • Screenshot_20171024-195315.png
    Screenshot_20171024-195315.png
    189.6 KB · Views: 2,132
Last edited:

jyconan

Member
Sep 19, 2010
16
2
Thx a lot. It works beautifully.
Though can we get this without the fake google photo unlimited uploads?
 

Bat-Maniac

Senior Member
Jul 2, 2014
106
165
Germany
..and also Google Lens recognized my N6P as a Google Pixel :cool: :cowboy:

Sent from my Nexus 6P using XDA Labs
 

Attachments

  • Screenshot_20171024-200503.jpg
    Screenshot_20171024-200503.jpg
    230.3 KB · Views: 1,733

Top Liked Posts

  • There are no posts matching your filters.
  • 186
    I've been rooting around in the recently posted Pixel 2 (XL) system images, and I've found the key to Google Lens (and any other Pixel 2-exclusive features, presumably, which ones though?), so I decided to make a flashable zip and share my success.

    Achievement Unlocked: Featured on XDA
    Thanks a million!

    Features
    - Google Lens in Google Photos (Not in the Assistant)
    - Pixel-exclusive apps in the Play Store (namely, Pixel Launcher)
    - Pixel-exclusive wallpaper categories (Underwater, etc.)
    - You tell me

    Unlimited photos?
    According to @thecoolkid, photo backup settings will stay the same, and you won't get unlimited photos unless you're uploading in "high quality", which will compress them. Basically, although it claims unlimited photos, it'll just be the setting you had before.

    Instructions
    Really?
    1. Flash the zip, and Google Lens should magically appear (I didn't even need to clear Google Photos' app data)
    2. Enjoy Google Lens (Only inside Google Photos, not in the Assistant itself - more info here)!

    Uninstalling Google Lens?
    You can revert the functionality of this zip and effectively uninstall Google Lens by deleting the following files:
    Code:
    /system/etc/sysconfig/nexus.xml
    /system/etc/sysconfig/pixel_2017_exclusive.xml
    /system/etc/sysconfig/pixel_2017.xml

    Screenshots / Screenrecording
    Small example screenrecording, watch here

    Magisk Module
    I personally haven't tested this, but you can go check it out here. (Thanks to @Flint2)

    Download
    See attachments
    Mirrors: My server / AndroidFileHost
    59
    Magisk Module

    Cannot wait for Magisk Module, so there is it.

    Tested on Oneplus 5

    Don´t forget to thanks the OP!


    Screenshot_20171024-140707.jpg
    Screenshot_20171025-144335_01.jpg
    Screenshot_20171024-140835.jpg
    Screenshot_20171024-140912.jpg
    8
    Thanks man for porting Google lens @ZeevoX

    Can you port the now playing feature on ambient display from pixel 2?

    It's much tricker... (But I'm trying) ✋?

    ZeevoX.
    5
    Confirmed, uploaded 700Mb video and used space Google Photos in Drive Storage did not increased :D

    I'm affraid I have bad news. I just did some testing and I uploaded a large video file and some pics on my phone to Google Photos. Even though it doesn't in fact count against Google Drive storage, it also isn't backed up in Original Quality. I could download the original video only while it was processing, after that it was only FullHD version, 1/10 of the original size. Photos are compressed right away. From 2.5 MB selfie to 800 KB... :mad:

    So it's confirmed that this mod doesn't enable Original Quality Backup, only High Quality (or whatever setting you had before I believe :eek:).
    4
    Where should I be able to find this recover storage option? I see something like free up space but I guess that's to delete media that are already backed up from local.

    It's not available in the app, you need to use the web version of Google Photos settings available here: https://photos.google.com/settings