[GUIDE] How to enable Chromecast Mirroring on Lollipop for the N7 2012

matt_runs_a_lot

New member
Dec 4, 2014
1
1
0
Still no luck on the 2012 Nexus 7

I know this isn't the place to be advertising my own stuff, but anyone who wants to test v7 of #MirrorEnabler (compatible with Lollipop), send me a PM and I'll send you a link.
R3pwn,

I installed your MirrorEnabler V7 (instead of using this code) and it does not seem to be working with my Nexus 7. Do all 3 options need to be enabled? Am I missing something else? Any help would be greatly appreciated!

---------- Post added at 05:46 AM ---------- Previous post was at 05:08 AM ----------

R3pwn,

I installed your MirrorEnabler V7 (instead of using this code) and it does not seem to be working with my Nexus 7. Do all 3 options need to be enabled? Am I missing something else? Any help would be greatly appreciated!
Never mind, I just did not enable the middle option and rebooted the Nexus 7 2012. It works now. Thanks
 
  • Like
Reactions: r3pwn

outcubus

Senior Member
Aug 25, 2011
115
18
48
followed the steps but when i cast i get - cast to chrome cast has ended after a few secs please help
Same here. The TV goes black and nothing happens. 1 second later my nexus shows a message telling me that "casting screen to Chromecast has ended" and my TV goes back to wallpaper. I've tried MirrorEnabler V7 app with no luck.

Sent from my Nexus 7 using Tapatalk
 

toastido

Senior Member
Oct 23, 2013
1,267
1,228
143
Huntsville, AL

JGoldz75

Senior Member
Jul 4, 2012
193
39
0
Noob Alert:
I'm trying this method because I would like to be able to access chromecast from the quicktile settings in lollipop.
However, once I access adb shell, I get all sorts of "blah blah not found" errors. See below:
C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
[email protected]:/ # [email protected]:/ $ su
[email protected]:/ $ su
/system/bin/sh: [email protected]:/: not found
127|[email protected]:/ # [email protected]:/ # setenforce 0
[email protected]:/ # setenforce 0
/system/bin/sh: [email protected]:/: not found
127|[email protected]:/ # [email protected]:/ $ su
[email protected]:/ # setenforce 0
[email protected]:/ # getenforce
Permissive
[email protected]:/ #[email protected]:/ $ su
/system/bin/sh: [email protected]:/: not found
127|[email protected]:/ # [email protected]:/ # setenforce 0
/system/bin/sh: [email protected]:/: not found
127|[email protected]:/ # [email protected]:/ # getenforce
/system/bin/sh: [email protected]:/: not found
127|[email protected]:/ # Permissive
/system/bin/sh: Permissive: not found
127|[email protected]:/ # [email protected]:/ # am force-stop com.google.android.gsf
per:/ #[email protected]:/ # am force-stop com.google.android.gsf
/system/bin/sh: [email protected]:/: not found

Is this because I'm using the minimal ADB and Fastboot tool instead of the full SDK package? What am I doing wrong here?

Edit: Nevermind. I'm just a silly goose.
 
Last edited:

donpippo

Senior Member
Jan 6, 2012
141
20
0
Hi, thanks for the guide. This is how I did it
All you need is a terminal emulator and sqlite3[1]
Code:
cd /sdcard/
cp /data/data/com.google.android.gsf/databases/gservices.db ./

su

sqlite3 gservices.db "insert into overrides (name, value) VALUES ('gms:cast:mirroring_enabled', 'true');"
sqlite3 gservices.db "insert into overrides (name, value) VALUES ('gms:cast:remote_display_enabled', 'true');"
sqlite3 gservices.db "select * from overrides;"

cp gservices.db /data/data/com.google.android.gsf/databases/gservices.db 

am force-stop com.google.android.gsf
am force-stop com.google.android.gms
am force-stop com.google.android.apps.chromecast.app

exit
I didn't use setenforce and it worked.

[1]You can find sqlite3 android PIE binary in /data/data/com.keramidas.TitaniumBackup/files/sqlite3 (you need titanium backup)

thanks.