Skip to content

Instantly share code, notes, and snippets.

@bubbadestroy
Created October 25, 2021 19:19
Show Gist options
  • Save bubbadestroy/a2a3e3bb243da87306577dfa841fbf2f to your computer and use it in GitHub Desktop.
Save bubbadestroy/a2a3e3bb243da87306577dfa841fbf2f to your computer and use it in GitHub Desktop.
Cast ADT-1 - Google Nexus TV MOLLY

[ADT-1] Casting

Search This thread
Search This thread
This thread
Search titles only
By:
Search Advanced…
Senior Member
Dec 24, 2009
1,278
863
Mount Morris NY
So I picked up a ADT-1 due to having Ethernet and more HD space on it. FOund out only certain apps can "cast" to it due to it being a dev device has there been anyone that figured out what needs to get it to have full casting features?

https://developer.android.com/tv/adt-1/index.html
 
Retired Recognized Developer
Jan 5, 2010
619
585
Stockholm
Try changing ro.build.type to eng in build.prop, that should open up all apps.
 
Senior Member
Feb 26, 2014
51
15
/sub

let us know if this works :)
 
Senior Member
Feb 26, 2014
51
15
Confirmed this works!

HomerSp = worth his weight in gold.
 
Member
Dec 5, 2010
6
1
Sorry

Try changing ro.build.type to eng in build.prop, that should open up all apps.
Click to expand...
Click to collapse

Sorry to sound like a newbie, however can someone teach me how to do this? I was trying to look it up on xda but had no luck finding anything. If anyone point me in the right direction, I would be very happy. Thank you again
 
Senior Member
Nov 29, 2006
104
65
NJ
Sorry to sound like a newbie, however can someone teach me how to do this? I was trying to look it up on xda but had no luck finding anything. If anyone point me in the right direction, I would be very happy. Thank you again
Click to expand...
Click to collapse

1. Root
2. Open /system/build.prop
3. Change the line
4. Reboot
5. Enjoy.
 
  • Like
Reactions: Budius
Senior Member
May 1, 2010
229
58
I'm trying to do this but I'm being very unlucky. Not sure what's going wrong and any light on the matter will be greatly appreciated.

I changed the ro.build.type from `user` to `eng` and my device (on LPX13D) stops booting completely. All I see is the android logo and then blank screen. I already tried two times. The process I did is (from sudo on my Ubuntu 14 machine)
- adb pull /system/build.prop
- edit build.prop on `nano` on Ubuntu (change only that line)
- adb push build.prop /sdcard/
- adb shell
- su
- mount -o remount,rw /system
- mv /sdcard/build.prop /system/

the second time I adb pull /system/build.prop again just to check that the only thing changed was that, and it was fine.

The only thing I've been able to do to recover the system is to:
- install CWM from here https://forum.gtvhacker.com/adt-f52/topic1629.html (fastboot flash recovery <filename>)
- flash the image from here http://forum.xda-developers.com/har...t/adt1-stock-molly-images-unbricking-t2927888
- and then using the root from this post: https://plus.google.com/+Chainfire/posts/a5YshULM8hf to be able to "adb shell su"

any help? Maybe some bizarre permission on my ubuntu machine because I'm on "sudo shell" ?
 
Retired Recognized Developer
Jan 5, 2010
619
585
Stockholm
I'm trying to do this but I'm being very unlucky. Not sure what's going wrong and any light on the matter will be greatly appreciated.

I changed the ro.build.type from `user` to `eng` and my device (on LPX13D) stops booting completely. All I see is the android logo and then blank screen. I already tried two times. The process I did is (from sudo on my Ubuntu 14 machine)
- adb pull /system/build.prop
- edit build.prop on `nano` on Ubuntu (change only that line)
- adb push build.prop /sdcard/
- adb shell
- su
- mount -o remount,rw /system
- mv /sdcard/build.prop /system/

the second time I adb pull /system/build.prop again just to check that the only thing changed was that, and it was fine.

The only thing I've been able to do to recover the system is to:
- install CWM from here https://forum.gtvhacker.com/adt-f52/topic1629.html (fastboot flash recovery <filename>)
- flash the image from here http://forum.xda-developers.com/har...t/adt1-stock-molly-images-unbricking-t2927888
- and then using the root from this post: https://plus.google.com/+Chainfire/posts/a5YshULM8hf to be able to "adb shell su"

any help? Maybe some bizarre permission on my ubuntu machine because I'm on "sudo shell" ?
Click to expand...
Click to collapse
build.prop has to be chmodded to 0644, or the device will not boot.
 
Senior Member
May 1, 2010
229
58
HomeSp I can't thank you enough!
That was exactly the issue. Third time is a charm.

So at the end of the procedure I:
- cd /system/
- mv build.prop build.prop.bak (just for the the sake of it)
- mv /sdcard/build.prop /system/
- chmod 0644 build.prop
- chown :root build.prop (prolly not needed but what-a-heck, why not)
- ls -l (and checked that both build.prop and build.prop.bak are exactly the same permission, owner and group)
- exit, exit adb reboot and all works great"

Thanks again!!!
 
  • Like
Reactions: HomerSp
Senior Member
Jan 16, 2010
148
8
- and then using the root from this post: https://plus.google.com/+Chainfire/posts/a5YshULM8hf to be able to "adb shell su"
Click to expand...
Click to collapse

For the purposes of modifying build.prop using "adb shell su", do you only have to flash the bootloader image from the linked post? I'd like to make the bare minimum changes so that future OTA's will install after restoring the original build.prop and flashing the stock bootloader.
 
Senior Member
May 1, 2010
229
58
For the purposes of modifying build.prop using "adb shell su", do you only have to flash the bootloader image from the linked post? I'd like to make the bare minimum changes so that future OTA's will install after restoring the original build.prop and flashing the stock bootloader.
Click to expand...
Click to collapse

my idea was a bare-minimum changes too. I just ended up ****ing up stuff and had to re-built a couple of times until I made it right.

but yeah, if you're comfortable with terminal commands and do the proper `chmod` (which I originally didn't), you can get everything done with "adb shell su" following like this:
- from PC: adb shell pull file to your PC
- from PC: edit file
- from PC: adb shell push file to /sdcard/
- from PC: adb shell
- from device shell: su
- from device shell/su: make /system/ writable, chmod file, rename "old" build.prop, copy new one over, double check chmod before rebooting.

ps.: the root from that post does install SuperUser.apk on the device, it's there on the UI, but after you do those changes there's some options in the .apk to remove root and uninstall it (if you want to)
 
Senior Member
Mar 9, 2012
409
102
Vancouver
www.harkunwar.com
I just thought that I'd directly use some build prop editor apk and do it easily but now my device is bricked :v
Stock ROM on download.
I'm just getting a black screen and bootloader.
 
Senior Member
Jan 16, 2010
148
8
So, the build.prop edit detailed in this thread works fine to make the ADT-1 a cast target for all Google Cast enabled apps. The problem is that it's hardly worth doing right now since Google Cast support on Android TV seems to be a work in progress. There's a support article that details third-party apps that are not supported - https://support.google.com/androidtv/answer/6123347

In addition to the apps listed there, I found that Watch ESPN isn't working on ADT-1 either. It's selectable in the app, but the video playback will not start. Here's to hoping that Google brings the Google Cast Receiver app for Android TV up to snuff soon - https://play.google.com/store/apps/details?id=com.google.android.apps.mediashell
 
Senior Member
Mar 17, 2010
360
75
So, the build.prop edit detailed in this thread works fine to make the ADT-1 a cast target for all Google Cast enabled apps. The problem is that it's hardly worth doing right now since Google Cast support on Android TV seems to be a work in progress. There's a support article that details third-party apps that are not supported - https://support.google.com/androidtv/answer/6123347

In addition to the apps listed there, I found that Watch ESPN isn't working on ADT-1 either. It's selectable in the app, but the video playback will not start. Here's to hoping that Google brings the Google Cast Receiver app for Android TV up to snuff soon - https://play.google.com/store/apps/details?id=com.google.android.apps.mediashell
Click to expand...
Click to collapse

Have any of you tried Slingplayer casting after changing build.prop?

Apple TV just died recently, it was the most reliable thing for Airplaying Slingplayer. Chromecast slingplayer kind of is ****ty at times.
 
Last edited: Dec 5, 2014
Senior Member
Jan 29, 2010
80
19
Followed Budius' instructions and it worked perfectly.

adb pull /system/build.prop
----(edit build.prop on Notepad++ and changed ro.build.type=user to ro.build.type=eng)
adb push build.prop /sdcard/
adb shell
su
mount -o remount,rw /system
cd /system/
mv build.prop build.prop.bak
mv /sdcard/build.prop /system/
chmod 0644 build.prop
chown :root build.prop
ls -l
---(checked that both build.prop and build.prop.bak are exactly the same permission, owner, and group)
mount -o remount,ro /system
exit
exit
adb reboot
 
Senior Member
May 1, 2010
229
58
during the update from 5.0 -> 5.0.2 my ADT-1 stopped working again :(
It showed the little droid with the belly open and an error message

so that means here I went again to restore it, and this time I manage to streamline a bit the process, so let's share with you guys. Remember, my idea with this process is to have STOCK, but with Cast working from any app. I have no intention to root, or flash custom this or that. I want something that I can cast without issues and hopefully it will update the next update without problems.

first of all, the CWM link I posted before is giving malware warnings on Chrome so I found an alternative, and of course XDA is the source (see downloads).

so to factory restore ADT-1 to good working condition, was the same I said before:
- install CWM:
Code:
fastboot flash recovery cwm_molly_recovery_lpx13d.img
- install stock image. CWM->install zip-> from ADB:
Code:
adb sideload update-molly-Stock-LPV79-1.zip
- reboot and let auto-update run until the end.

now to enable cast to all apps with absolutely minimal modifications to the system (hopefully enabling future updates to run without issues)
- reboot ADT-1, holding the button, enter fastboot mode
- reboot to the CWM, but without installing it:
Code:
fastboot boot cwm_molly_recovery_lpx13d.img
- in CWM go to `mount n storage` -> mount /system

and carry on to do the build.prop modification from there, the trick is that I did not have to install a custom recovery and did not have to install super user. I made the modification directly via a RAM-only CWM and that's it. So below is just a copy of my previous post
Code:
 > adb pull /system/build.prop /home/budius/build.prop

then change the build.prop on my computer and rename to new_build.prop.
And back to terminal

Code:
 > adb push /home/budius/new_build.prop /system/new_build.prop
 > adb shell
 # cd system
 # mv build.prop build.prop.bak
 # mv new_build.prop build.prop
 # chmod 0644 build.prop

And that's all! Full cast enabled to ADT-1 with the most absolutely minimal system changes I could come up with :) :p :victory: :highfive:

Downloads:
- here you'll find a very nice workin CWM.
- good working stock Android TV image for ADT-1

bonus:
while searching stuff I found this: https://plus.google.com/+AdamLawrence/posts/5Yr5vG7QJUq
I didn't try it but it seems useful, so the link is there.
 
<script data-cfasync="false" type="text/javascript"> freestar.config.enabled_slots.push({ placementName: "xdadevelopers_leaderboard_btf", slotId: "xdadevelopers_leaderboard_btf" }); </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment