FORUMS
Remove All Ads from XDA

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

100 posts
Thanks Meter: 301
 
Post Reply Email Thread
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
Attached Files
File Type: zip 20171024_GoogleLensInstaller_ZeevoX.zip - [Click for QR Code] (124.4 KB, 27700 views)
The Following 151 Users Say Thank You to ZeevoX For This Useful Post: [ View ] Gift ZeevoX Ad-Free
 
 
24th October 2017, 12:24 PM |#2  
Senior Member
Hong Kong
Thanks Meter: 125
 
More
Using Pure Fusion OS Nougat. Works flawlessly. Great work.
24th October 2017, 01:45 PM |#3  
Member
London
Thanks Meter: 12
 
More
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)
24th October 2017, 03:24 PM |#4  
theduke7's Avatar
Senior Member
Flag Cairo
Thanks Meter: 733
 
More
It doesn't work on latest oos beta (oreo) ...
I thought google turned off this trick from its side?
24th October 2017, 03:57 PM |#5  
OP Senior Member
Flag London, UK
Thanks Meter: 301
 
More
Quote:
Originally Posted by theduke7

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
The Following User Says Thank You to ZeevoX For This Useful Post: [ View ] Gift ZeevoX Ad-Free
24th October 2017, 04:03 PM |#6  
stelio_kontos's Avatar
Member
Flag Eindhoven
Thanks Meter: 16
 
More
Working great, thanks!
24th October 2017, 04:04 PM |#7  
OP Senior Member
Flag London, UK
Thanks Meter: 301
 
More
Quote:
Originally Posted by jeremyet

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
24th October 2017, 05:03 PM |#8  
theduke7's Avatar
Senior Member
Flag Cairo
Thanks Meter: 733
 
More
Quote:
Originally Posted by ZeevoX

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
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20171024-170042.jpg
Views:	2984
Size:	126.4 KB
ID:	4312664  
The Following User Says Thank You to theduke7 For This Useful Post: [ View ] Gift theduke7 Ad-Free
24th October 2017, 06:15 PM |#9  
silentvisitor's Avatar
Senior Member
Thanks Meter: 2,623
 
More
Quote:
Originally Posted by theduke7

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

Nice font. Which one?
24th October 2017, 06:35 PM |#10  
theduke7's Avatar
Senior Member
Flag Cairo
Thanks Meter: 733
 
More
Quote:
Originally Posted by silentvisitor

Nice font. Which one?

OnePlus Slate (it should be there on 4.5.0 and above) i'm using latest beta. and theme is PitchBlack.
in case you're not on stock rom (or OP device)
https://forums.oneplus.net/threads/f...wnload.544318/
The Following User Says Thank You to theduke7 For This Useful Post: [ View ] Gift theduke7 Ad-Free
24th October 2017, 07:06 PM |#11  
Junior Member
Flag Amritsar
Thanks Meter: 3
 
More
Did it work in any samsung device
Post Reply Subscribe to Thread

Tags
flashable zip, google lens, lens, pixel, pixel 2

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes