yashsingh1/xdaforums huggingface dataset:
[Shield Android TV Android Development] zulu99:
In skype i don't have problems i can do video calls and phone calls. To listen via hdmi the remote user i switch the audio manually directly in skype.

( click on the three dots to select different audio )

In hangouts instead, threre is a problem that i solved.

In Hangout when you do a video call or voice call you can't hear the remote user in HDMI audio ( at least in my config )

To solve i used xposed module AppSettings ( link in second post ) and i disabled from hangouts the permission android.permissions.MODIFY_AUDIO_SETTINGS

With this permissions disabled hangouts can't chgange the route of audio to phone call, therefore you do everything via HDMI audio and usb MIC

problem solved.

This trick can work also for facebook messenger and others apps that do phone call changing the audio route.

The audio part of full Android is precompiled binary of Nvidia that come from stock firmware, Nvidia messed up some things in the audio in Marshmallow.

Or maybe created this problem on purpose so we can't use some apps. I think so because in the public source code the audio part published not work. is fake source code.

but i solved and now we can also hear the remote user via HDMI audio.
[Shield Android TV Android Development] justkidding2009:
Did anyone ever managed to successfully mount a SMB/SAMBA drive with this ROM?

I would like to add a folder of my NAS as mounted drive to the shield with a terminal (I use Material Terminal).

Unfortunately till now I cannot get it to work.

First I installed busybox and set the shield to permissive mode via:

su

setenforce Permissive

and then I tried following command for adding the share:

1.) su --mount-master -c busybox mount -o username=USERNAME,pw=PASSWORD,rw,file_mode=0777,dir_mode=0777,iocharset=utf8,context=u:object_r:rootfs:s0 -t cifs //192.168.xxx.xxx/06_Kodi /storage/emulated/0/mounts/

Then I get the error "Can not access a needed shared library". I figured out this is because "iocharset=utf8". It seems the nls_utf8.ko is missing in the kernel. Is it possible to add this?

Would be really great to get that to work :)

Thanks in advance!

P.S. how can i deactivate the smiles? Should be : o
[Shield Android TV Android Development] zulu99:
Usually i access windows shared folders from es file explorer and from kodi without problems.

For manual command, try something like this:

mount -t cifs -o rw,username=myinfohere,password=myinfohere //myiphere/mysharehere /mnt/obb/nas
[Shield Android TV Android Development] justkidding2009:
The access with es file Explorer and kodi is working fine but I would like to mount the share so that i can access it with any app (not only inside a file Explorer / kodi)

Thanks I will try /mnt/obb/nas. I am just confused as the file Explorer always shows /storage/emulated/0/... As path.

Is it possible for you to add nls_utf8.ko module to the kernel or explain to me how to do that? :) I am really new to this matter. I already found the module for nexus 7 e.g. but I guess for each device this module has to be different hasn't it?
[Shield Android TV Android Development] ikgarcia:
Hi I have installed the rom 1.2 and when I go to settings and click in data usage/ethernet the settings crash.

When I click in wifi I can configure advanced settings but when hoy click in ethernet Crash.

And I did fastboot -w when I installed this rom.

How I can resolve it???

I have shield pro.

Thanks.
[Shield Android TV Android Development] wanb1i:
Thanks Zulu99! I'll try that out and get back to you!

UPDATE! That didn't work for me, not sure why. I made the permission change, saved it, killed the Hangouts app, tried a call, didn't work. So I rebooted the SHIELD, tried a call, no change. I then verified that the setting was changed and it wasn't! I did this 3 times, same result.... I must be doing something wrong, Please HELP!
[Shield Android TV Android Development] justkidding2009:
Zulu thanks a ton!

Changing to /mnt/ made the trick. It works now!

How can I support / donate to you? :)

To keep the mounted share writeable I habe to set setenforce to permissive.

Do you think this a major security threat on a Shield Android TV?
[Shield Android TV Android Development] banderos101:
Could i trouble you and ask if you could copy paste the full command you used, as future reference for us folk, so we know that its confirmed working, and have the exact working command.....if thats cool
[Shield Android TV Android Development] justkidding2009:
Of course.

Here is my full script I am using:

#!/bin/bash

su

setenforce Permissive

lsmod | grep -q 'cifs' #check if cifs module is loaded

if [[ $? -eq 1 ]] #if not

then

am start -a android.intent.action.MAIN -e message 'cifs.ko kernel module not yet loaded. Loading now...' -n com.rja.utility/.ShowToast #displays toast

insmod /system/lib/modules/cifs.ko #loads kernel module

fi

am start -a android.intent.action.MAIN -e message 'Mounting local SMB network shares...' -n com.rja.utility/.ShowToast #displays toast

su --mount-master -c busybox ,ount -o username=YOURUSER,password=YOURPASSWORD,rw,file_mode=0777,dir_mode=0777,context=u:object_r:rootfs:s0,sec=ntlm -t cifs //192.xxx.x.xx/06_Kodi /mnt/cifs #actually mounts share

the toast command let Android show a short notification so that you know it was mounted successful.

But you need another apk for that which you can find in following thread:

http://xdaforums.com/showthread.php?t=1151949

Actually I am not an expert in linux shell. Just copied and pasted different parts of the command together to get it to work.

Hope that helps!

But just to make that clear... I cannot say what permissive mode for your device can cause. So use at your own risk ;) Maybe someone can shed some light on that if it is fine to keep it on permissive all the time
[Shield Android TV Android Development] shadowbaine:
if i may make a request.... is there any way to get this ROM pre-rooted already, without needing to go through twrp?

Having great difficulty getting twrp running on my new NSTV...simple procedure, but remains at the nvidia logo.... think i tried everything i can

Also, i realised as my NSTV came with 3.0 pre-installed, there is no way to go back to 2.1
[Shield Android TV Android Development] j-m-s:
Isn't it possible that I copy my running system into an .img so that other people can flash and have the same?

I think I had to mount something and then copy/dd into it....
[Shield Android TV Android Development] banderos101:
Cheers buddy

From the basics that ive gathered from reading up on selinux, supposedly there are some security enhancements that comes with enforcing mode, whereas permissive simply logs things without implementing said security.......so thats something to consider..........ideally, would be nice if a working solution pops up to mount samba's in enforce mode, but i have a feeling were not gonna be that lucky, plus there are other mods out there that require permissive mode aswell, so a bit of a pickle........i dont know, maybe it'll be baked into vanilla android some day, or someone figures out a universal "play nice with enforce mode while keeping security" workaround, who knows
[Shield Android TV Android Development] wanb1i:
I don't recommend you do this unless you backup your current system, then factory reset, reroot, and make a twrp backup, before you allow the system to fully boot. Then zip the backup to a file and put it on a cloud drive. Then the Downloader would have to unzip the file to a twrp folder, boot twrp and restore. Not even sure twrp will allow as it may be linked to the system it was backed up from.

If you don't, you will be sending out a copy of YOUR SYSTEM with YOUR PERSONAL INFORMATION on it. Be very careful doing this!

Also, if they can't boot twrp, no chance it will be helpful... :/

---------- Post added at 07:15 PM ---------- Previous post was at 07:10 PM ----------

What twrp are you trying to boot? Exactly what are you typing in fastboot?

I've loaded 2 different twrp versions on my NSTV with no issues at all. In fact, it worked so well, i ended up flashing the newest one. Answer my questions above & I'll help you get it loaded.
[Shield Android TV Android Development] zulu99:
In skype i don't have problems i can do video calls and phone calls. To listen via hdmi the remote user i switch the audio manually directly in skype.

( click on the three dots to select different audio )

In hangouts instead, there is a problem that i solved with a trick.

In Hangout when you do a video call or voice call you can't hear the remote user in HDMI audio ( at least in my config )

To solve i used xposed module AppSettings ( link in second post ) and i disabled from hangouts the permission android.permissions.MODIFY_AUDIO_SETTINGS

With this permissions disabled hangouts can't chgange the route of audio to phone call, therefore you do everything via HDMI audio and usb MIC

problem solved.

This trick can work also for facebook messenger and others apps that do phone call changing the audio route.

UPDATE:

If the problem in Hangouts reappear, the trick is make before a voice call in Skype, you can also make a call vs the Echo / Sound Test Service

Turn up the volume in Skype Echo / Sound Test Service call and after you can use Hangouts without problems.

Mainly, Skype set the correct configuration and Hangouts can't change the config because have the android.permissions.MODIFY_AUDIO_SETTINGS disabled.

The problem in Hangouts is a problems also of the stock firmware, i not know if a future update of Hangouts app can solve or we need a correction of Nvidia.

Let me know if solve also for you.
[Shield Android TV Android Development] j-m-s:
I think /system does not contain personal data, so it should be no risk to make a system.img (rooted) and give it away.
[Shield Android TV Android Development] justkidding2009:
Cheers,

thank you, that is exactly what I figured out as well. My problem is I still cannot estimate how high the risk with permissive selinux really is that anyone compromises your system. But I think as long as no one tells me that is a stupid idea and very dangerous I will keep it on permissive. I don't think there is a way with selinux enforced except of changing the kernel :/
[Shield Android TV Android Development] zulu99:
When you have root, you can do everything.

With root you are more secure than without root, because if you got an attack / virus, you can see the process kill it and delete. You have the some power of the virus :)

Only users without root are insecure, for this reason Google publish, every month, security patch.

Without root, you can still get virus but you can't defend yourself.

Intstead with root, you can do everything.

Only with rooot you are the real owner of your device, big companies prefer that you don't have root so they can sell better their services to you.

Open your mind, and vote with your wallet.

In saying this I have said everything.

The best protection is when an attacker enter and can't find nothing.

The progresses on security is an important thing, but also with root you are more secure. Especially you don't became a monkey in the hands of big companies.
[Shield Android TV Android Development] shadowbaine:
right, i have had some time now so here is all the info you could possibly need :D

Version: 3.0(24.5.78.76) preloaded

Build: MRA58K.41937_667.2671

Firmware: CBoot Version 24.00.2015.42-foster-t210

TV/Monitor used: 1080p

Steps I took:

1. Installed USB Drivers

2. Unlocked Bootloader: fastboot oem unlock

3. Flashed this ROM

4. Realised I actually need root to install droidmote :(

5. downloaded the nvidia recovery image 3.0.0 and flashed ALL (boot/staging, the works) to reset to factory default

6. Used the guide in http://xdaforums.com/shield-tv/general/shield-android-tv-rooted-t3123197 but DID NOT use the recovery that was attached. I used twrp-20160222-UNOFFICIAL-foster.img

7. Used Commands: fastboot boot twrp-20160222-UNOFFICIAL-foster.img. Result: Persistent nvidia logo

8. I initially flashed the above twrp, due to force of habit on my other android devices.

9. Used WinDroid Toolkit to install recovery, but it did not work.

Since then I have done multiple full nvidia recovery flashes and even reflashed stock recovery. I have tried different versions of twrp booting, and i still get a persistent nvidia logo for a good 30 secs to a minute, then the devices reboots back into TV.

As you can see there are now errors:

C:\adb>fastboot boot twrp-20160222-UNOFFICIAL-foster.img

downloading 'boot.img'...

OKAY [ 0.518s]

booting...

OKAY [ 0.003s]

finished. total time: 0.527s

C:\adb>ADB reboot bootloader

C:\adb>fastboot boot twrp-2.8.6.0-shieldtv-unofficial.img

downloading 'boot.img'...

OKAY [ 0.583s]

booting...

OKAY [ 0.005s]

finished. total time: 0.591s
[Shield Android TV Android Development] wanb1i:
Ok, give me a few minutes to gather the data and I'll post some recommendations.

It looks like you've entered the right commands, but may not have the correct files. Although standard android adb should work, I chose to use the recommendation of "minimal adb". I also renamed the twrp file, both of which are in the following link. I suggest you humor me, install minimal adb, copy the included twrp file to the minimal adb folder, hold shift & right click on that folder, select "open command here" then run your adb commands using the twrp file I provided.

As an FYI, after booting this file several times, I decided to flash it. It works great for me. You may want to boot it a few times to make sure it performs to your expectations first.

https://mega.nz/#F!oQkw1LRB!0hW9T8mCRAVAft7UiTX6Zw

---------- Post added at 08:55 AM ---------- Previous post was at 08:06 AM ----------

Zulu99,

Is there a reason we can't just "flash" the supersubeta.zip using fastboot and skip twrp completely? With FLASHFIRE we no longer need twrp once we have root... :)
[Shield Android TV Android Development] banderos101:
I agree with you, in respects that root gives you more freedom, but doesnt it also give hackers more choices in what exploits they can use.........a hacker that can connect to android devices would have more options on a rooted phone then a non rooted phone.......quite a bit of options i'd say.......but like you say, root users would have more options dealing with it, if they can themselves, or if a dev decides to create/release something for the community (fragmentation meaning not everyone might be able to use it)

I like the fact that some devs are using root to create security concious apps i.e. afwall,xprivecy,etc etc, but one thing ive always wondered, can malicious root apps use root without us users having to give permission through the supersu prompt, using root to do so, or does supersu have the final word fullstop? I.e. if i dont explicitely allow an app root through supersu, that app wont use root to .....mmmmm......gain root........if that makes sense........actually, that doesnt make sense :) chicken or the egg
[Shield Android TV Android Development] wanb1i:
If you are that concerned about security, put a firewall on your devices. Avast is pretty good and pretty cheap. Then you can decide who gets in and who doesn't and you can get reports to monitor the system.

Also, there are settings in supersu that can allow access only after you approve, be sure it's setup the way you want.

My 2¢. :)
[Shield Android TV Android Development] Otisrhw:
I did this stock 3.0 from LP (twice now) and still bootlooping at Android boot logo on the stock 3.0

---------- Post added at 06:24 PM ---------- Previous post was at 06:07 PM ----------

Got it fastboot -w did the trick!
[Shield Android TV Android Development] Miamijerry:
What version of TWRP is this file ??

twrpRecovery.img
[Shield Android TV Android Development] wanb1i:
It's 3.0.0—0, just so you know, the only change I made was the name, to shorten it. And, it works!
[Shield Android TV Android Development] tailslol:
Yes the long names is the first reason of failures.

I always rename beforehand.
[Shield Android TV Android Development] synologix:
Playstore Issue

After a small Update Voyage:

Android 5 Full -> Stock 6 -> Stock 6 Remix

I have Flashed back Stock 6 and Upgraded to Full Android 6 (with a fastboot -w)

All works fine Exept the Playstore...

I can open it only one Time.. 2nd Time it shows up it is not compatible.....

Because it upgraded every Time to the Leanback Store so i must uninstall it and he reverts to standard version.

Any hints ho to fix that? I can remember there was a long time ago the same issue on old Version...
[Shield Android TV Android Development] leasing:
excellent work and i already purchased droidmote server.

By the way I still don't get it , use an android device to control other android over wifi , that's awfully inconvenient.

I'm really hoping direct use KB&Mice to play game&app , simulate touch operation .

On another RK3288 tvbox , I use KB&Mice work very well Even if it's touchonly game&app .

I think it's using some kind of HID driver to achieve , Can you do this ? That would be great!
[Shield Android TV Android Development] shadowbaine:
Cheers buddy, for all the help, but no go, did the exact same you said using your files and ADB, and still nothing, just a very static nvidia logo..... apart from that the device works without a problem. Definitely something wrong here..

at the point that I am returning this thing and reverting back to my 1st Gen Amazon FireTV...without root this device is no better than the AFTV... sure it has much better hardware, but i was looking at the android games. Don't care too much about Grid Games, I have my XBONE for that....

Thanks for all the help... much appreciated
[Shield Android TV Android Development] Miamijerry:
I boot to a black screen still with this, like the 4K bug, but my TV is 1080p
[Shield Android TV Android Development] wanb1i:
Ok, before you do that, why not "Flash" the supersubeta.zip file via fastboot flash command? It should be fine, it is a flashable zip file. If it works, great, if not, send it back. Then, once you have root, you can do everything with the Flashfire app that you can do with twrp and you can do it right from android.

Just a thought, you've done so much, one more fastboot attempt won't hurt, right?

---------- Post added at 02:54 PM ---------- Previous post was at 02:51 PM ----------

I had that problem using my pc monitor (1080p), but switched to my 720p TV and it works fine. If you have a different monitor, try it.
[Shield Android TV Android Development] Otisrhw:
Boots to first page to choose language and gets error "unfortunately, NVIDIA share service has stopped" I click OK and the message comes back. Do you know why? I'm thinking about using stock vender.img
[Shield Android TV Android Development] tailslol:
yes nvidia is from your previous rom ,you did not wiped your device ...

you forgot fastboot -w
[Shield Android TV Android Development] Otisrhw:
Any other ideas cause I did "fastboot -w"

---------- Post added at 09:35 PM ---------- Previous post was at 09:32 PM ----------

I also tried the third time, flashing stock boot.IMG, recovery. IMG and vendor.IMG accompanied with Zulu's system.IMG and same result

---------- Post added at 09:38 PM ---------- Previous post was at 09:35 PM ----------

Forgot I also did "fastboot erase cache"
[Shield Android TV Android Development] shadowbaine:
cheers, i did one better...so totally different approach... I factory reset the MSTV and noticed it booted into Stock Recovery, so I thought hell why not flash your twrp anyway.. which I did... did another factory reset and it booted into TWRP and did the reset, so i know it works

following that i went of the beaten path and did a adb boot recovery....and BAM! I was in twrp... so that works fine, but trying to boot the img didn't work, neither going through the bootloader. So i think all around success.

really appreciate the help :good::highfive:
[Shield Android TV Android Development] Otisrhw:
I'm gonna try the stock developer .img see how she goes
[Shield Android TV Android Development] wanb1i:
That's great! So I assume you also got root? :D:cool:
[Shield Android TV Android Development] shadowbaine:
indeed...fully rooted now :cool:
[Shield Android TV Android Development] tailslol:
well did you updated the firmware to stock 3.0 before put full android and chek if stock 3.0 was working?
[Shield Android TV Android Development] Otisrhw:
Yes it was all good
[Shield Android TV Android Development] tailslol:
well the best is to retry ,maybie something just gone wrong.

android flashing is not allwys 100% good everytime.

start by puting a new stock and fully cleaned,then see if it work then redo the full android with again the wipe just by following the first post

and nothing else (dont try to add images from the stock in the mix)

and see if something is wrong again.
[Shield Android TV Android Development] Otisrhw:
I did it all correctly the first three times. Only after error did I try new cable, new download, erase system, cache, boot and recovery, reflash rewipe all to no avail! Now back to stock and I see sheid hub update, geforce now update and system web view. Maybe one of these is causing the issue not sure! Driving me crazy!! I have flashed 5 of these and countless nexus phones and players. So I'm not new to this but this one is giving me trouble!! I really appreciate your help and from your suggestions we are on the same page but not working yet! I'm not easily defeated though so I'll keep plucking away and let me know if ya think of anything else!! Thanks!!
[Shield Android TV Android Development] Otisrhw:
Got it it must have been the sheild hub update or geforce.
[Shield Android TV Android Development] tailslol:
Yes a complete working 3.0 before flash is important. I generally let it run by itself a moment before flash so maybe I let the update slip through without noticing.

Of course I check if the stock is 100% ok and configured before flashing it to android.

Something I learnt a long time is full android is not a complete rom but more an add on that change only parts of android tv to android.

Zulu told himself he use tons of stock parts in it ,just unlocked some potential.
[Shield Android TV Android Development] zulu99:
You must try the game Sonic Dash on Shield TV, works very very well now that the landscape support was added.

https://youtu.be/6JIDOmJqmDI
[Shield Android TV Android Development] Dramosith:
well what is wrong with xda developers forum? be honest i perfer to focus at xda developers forums updates/upgrade than other forum. just my opinion.
[Shield Android TV Android Development] tailslol:
they dont appreciate devs that try to advert or sell paid applications to the forum or downloads with paid adds to gain money.

they are kinda picky on this kind of stuffs.
[Shield Android TV Android Development] Dramosith:
then if r2d2_boss gonna dedicated hosting then he gonna too make money if he is going to his own forum advert.. it isnt same story?
[Shield Android TV Android Development] tailslol:
kinda but the best is to have things free on the consumer side and without dangerous adds.
[Shield Android TV Android Development] Dramosith:
well i feel more safest here forum than other forum. because forum xdadevelopers are more professional....
[Shield Android TV Android Development] miraclmoore:
I'll finally be trying this tonight on my Shield 16GB.....looks like an awesome setup and full Android is definitely the way to go! Now I hope this isn't a dumb question, but once i root can i do this entire process via FlashFire app? I also wanted to know how I'd be able to run this and the stock setup in a dual boot format if possible.

Have an awesome day everyone!
[Shield Android TV Android Development] tailslol:
No it is a windows installation and not the simple type.

More the command line type with random errors possibility.

But it works nicely when all is done.
[Shield Android TV Android Development] miraclmoore:
Thanks tailslol! I was just wondering, but i'll go ahead and connect to pc and command line away.

Report back once i've got it installed or if I run into issues.....Love this community!

Appreciate the response buddy!