yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] _jis_:
This app REQUIRES elevated permissions, granted via root access or adb shell commands. So root isn't mandatory.

I myself use it on the device without the root to the full satisfaction.
[Android Apps and Games] _jis_:
When does this planned functionality get into production deployment?
[Android Apps and Games] flymetothemoon:
I use it on my ZTE Axon 10 Pro, linked a screen via HDMI and want to change the DPI on my monitor. After granting permissions via ADB, I can change the DPI.

But it only changes on the Phone, not on the external screen. Am I doing something wrong?
[Android Apps and Games] wywywywy:
Great app!

I'm using SecondScreen on my Oneplus 7T and a Nexdock 2 as my display, but when I change the DPI to anything other than default (320), Chrome crashes. Tried both with and without desktop mode.

Is the there a way to get Chrome to behave please?

EDIT -

Also is there a way to get Taskbar to show on the second screen? It only shows on the phone :(
[Android Apps and Games] WalrusAtWar:
Hi guys, app works well but I had some issues: the restart didn't restore my original dpi and screen settings, second no physical button works at all but with a navigation bar it's okay.

I would also really appreciate a function to shut the profile off by using only physical buttons (like volume up and down or something else but programmable) in order to avoid problems.
[Android Apps and Games] sertgert:
How do i undo that adb command? I want to restore old settings.

Removing the app was enough.
[Android Apps and Games] camro:
support for RTSP, HTTP, Chromecast

would it be possible anyhow to add support for wlan devices via:

.) web browser: HTTP

.) Media Player: RTSP

.) VLC Media Player

.) Stream via Chromecast

.) Miracast

?

thx cu camel
[Android Apps and Games] naeem86:
Hi..is the screen timeout supposed to work? Because when I cast videos on my tv, my screen doesn't turn off. But it dims completely.

I'm using pocophone f1 with pixel experience rom android 10.
[Android Apps and Games] Shiki~:
Hello and thanks for the apk.

I managed to use it with default settings, but I wanted some confirmation before going in depth and using expert mode.

I have a Oneplus 7 and a 4K TV. And basically I can't use 4K resolution (apk prevents me from using it)

I know I can override the safety through expert mode but:

Is it OK to override screen resolution to 3840 x 2160 pixels ? Is it safe ?

I saw on previous pages that there was an update last year preventing this, so I guess it's not completely safe.

So is there a workaround? A wake to make it safer? (My phone is not rooted)

For information, the specs of this Oneplus: Screen: 6.41-inch AMOLED, 1080 x 2340 at 402 ppi

CPU: Qualcomm Snapdragon 855

About FPS, is there a way to choose between 30fps and 60fps? Thank you
[Android Apps and Games] Muad.Dib:
Dear all,

Being stuck with a bad resolution I am trying to revert back to native using the adb commands:

adb shell wm size reset

and here is what I get in return:

Security exception: Must hold permission android.permission.WRITE_SECURE_SETTINGS
java.lang.SecurityException: Must hold permission android.permission.WRITE_SECURE_SETTINGS
at com.android.server.wm.WindowManagerService.clearForcedDisplaySize(WindowManagerService.java:5706)
at com.android.server.wm.WindowManagerShellCommand.runDisplaySize(WindowManagerShellCommand.java:129)
at com.android.server.wm.WindowManagerShellCommand.onCommand(WindowManagerShellCommand.java:66)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.wm.WindowManagerService.onShellCommand(WindowManagerService.java:1063)
at android.os.Binder.shellCommand(Binder.java:629)
at android.os.Binder.onTransact(Binder.java:527)
at android.view.IWindowManager$Stub.onTransact(IWindowManager.java:1140)
at com.android.server.wm.WindowManagerService.onTransact(WindowManagerService.java:1278)
at android.os.Binder.execTransact(Binder.java:726)

Apparently something does not that enough permission. Before messing around with things, I'd rather ask for help first if anyone has ideas.

But if I try to run the same command as root, it just hangs in there doing nothing.

Any ideas?

Thank you very much in advance.

Regards.
[Android Apps and Games] Muad.Dib:
For the sake of sharing my findings resulting of my previous situation which has needed a full EDL restore to get me back on feet, after some digging I finally found out the solution to my problem and I am sure I am not alone.

Beware MIUI users (and I am pretty sure some other brands likely do the same), adb is restricted on your phone, and that came as a surprise for me, even if you are rooted.

Best way to verify this is by simply typing from an adb shell / or terminal the following command:

user:/ $ wm size
Physical size: 1080x2340
user:/ $ wm density
Physical density: 440

If any of those two commands do not display like above the result of your current phone resolution, if it hangs in there displaying nothing or throw you off a similar error like in my previous posts, that means your adb shell/ terminal user is currently restricted.

So before starting to mess up around with your screen resolution (which could render your phone completely unusable), with this app or any other, first make sure to unlock adb commands from the developer options.

In order to do so you will be prompted to log into your MIUI account.

Do it.

Turn both of the options on

- Install via USB (not exactly needed here, but pretty useful if you want to install/reinstall apps through adb)

- USB debugging

Once this is done and you accepted all the security warning pop ups, you are all set.

You can even log out from your Mi account, settings will stay.

Hope this helps.
[Android Apps and Games] tavocabe:
Anybody knows how can I disable this app and its modifications? My phone won't boot, I guess it's because it is permanent in landscape mode 1080p and MIUI doesn't like it. Tried deleting the app with orangefox rexovery but the modification persist

---------- Post added at 12:00 ---------- Previous post was at 11:36 ----------

Can this be done to reset to original settings but from recovery? Cant boot to android and already flash Vendor and ROM but still same issue. When booting in Safe Mode I can see "Safe Mode" in a corner but with tiny letters (1080p res) and in landscape mode, before the system crashes and boot me back to recovery
[Android Apps and Games] Muad.Dib:
Unless you have enabled USB debugging and USB and root and have the time to type the commands prior the device reboots, very doubtful you have any other choice but to make a full factory restore from original rom.

At least it wont wrong from TWRP terminal which is a limited emulation for basic stuff, commands missing obviously.

Let us know how you managed to fix it.

Good luck!
[Android Apps and Games] wsjunior:
Guys, I have a Galaxy S20+ and the only thing I would like to do is to be able to mirror it to my car head unit. I'm able to do so, but as it has a 20:9 screen proportion, I have a black bar upside and downside. So, how could I make it fit the whole head unit screen? I mean, how to use this app to change 20:9 to 16:9 before mirror to make it work as expected. Is it supposed to work using mirror link throught USB cable or just if I use HDMI?
[Android Apps and Games] MakaanPL:
Hi Farmer & All,

How SecondScreen works with Android TV, and is it able to bypass current OS limitations?

I read that Android TV 10 still renders the UI and applications in 1080p, and only a few video streaming apps can change display mode to native 4K with HDR (and chroma subsampling, of course). Is it technically possible to bypass that 1080p limit in some way, and have you analyzed this problem already? Or is updating the streaming client app (like Stadia reportedly did) the only way to get 4K?

My goal is to get a smooth RDP connection in 2160p right now, as well as GeForce Now or local Steam RemotePlay for gaming at some point. Unfortunately, Microsoft RDP app (available officially on Android TV) is showing very strange resolution options with 1080p being the only "normal" one. After manual change of WM in ADB, or in SecondScreen profile which I think does the same, 2160p option appeared.

But it looks like that the UI of all applications (including RDP stream) is rendered at 2160p initially, then forcibly scaled back to 1080p, upscaled again and sent in 2160p to the TV. UI size changes, but the clarity does not.

The device is Chromecast with Google TV, configured to output 2160p SDR with RGB 8-bit which should be the only setting for clear fonts while working on PC.

TV is 40" Panasonic with HDMI 2.0 (+ Dolby Vision, disabled), used on a desk as huge PC display in home office.

Android TV 12, which reportedly should offer 4K UI, still hasn't been announced even for this Google device. And the rest of Android boxes, dongles and TVs are unlikely to be updated.

Thanks in advance!
[Android Apps and Games] Brunohsgsgd:
pm grant com.farmerbb.secondscreen.free android.permission.WRITE_SECURE_SETTINGS
[Android Apps and Games] raymattz:
Hi everyone

Yesterday I tried to apply 1920x1080 resolution with 240 density and my phone got a black screen and restarted. After that I was able to change the resolution in the settings_global.xml file and the density in the build.prop but the phone does not start. After the miui logo, it has this circle spinning and it resets to TWRP.

I don't have access to adb, only recovery and fastboot.

Could anyone help me urgently with this? I wouldn't want to format my phone :(

I tried to flash my rom file (xiaomi.eu), I spent several minutes on the MIUI loading screen, but the result was the same, a rotating circle on the screen.
[Android Apps and Games] iganiats:
Hi to all!

I am using this app with S20 ultra (Exynos) and android 12 stock ROM.

The app is working as intended except for one thing.

If I set the screen orientation in a profile, to landscape, after I turn off the profile phone screen stays in landscape no matter what. Only reboot fixes it.

Is the any solution for this?
[Android Apps and Games] chris1892006:
Anyone know how to fix black wallpaper on all launchers? It appears for 1 second on boot and goes black.

It works great on google tv android 11 although changing resolution doesnt change the 1920x1080 static physical resolution on Hisense 43A6H 4K TV.

The Google tv ui works only at 1920x1080 320 dpi but still black wallpaper on nova and all launchers.

Thanks

Anyone know how to set 4k ui on google tv android 11?
[Android Apps and Games] Jack Droid:
Hi farmerbb,

I found the sysfs path to switch off the Oneplus9 PRO backlight : /sys/class/backlight/panel0-backlight

Should you be able to add this node into your app ?

Many thanks !!!!
[Android Apps and Games] dinavier:
Just a heads up for anyone coming across the same issue as mine.

When I first ran

adb shell pm grant com.farmerbb.secondscreen.free android.permission.WRITE_SECURE_SETTINGS

on my OnePlus 8 Pro, running Android 13, with USB debugging enabled I got the following output:

Exception occurred while executing 'grant':
java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
at android.app.ContextImpl.enforce(ContextImpl.java:2253)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2281)
at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermissionInternal(PermissionManagerServiceImpl.java:1364)
at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermission(PermissionManagerServiceImpl.java:1346)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:553)
at android.permission.PermissionManager.grantRuntimePermission(PermissionManager.java:597)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2591)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:302)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6341)
at android.os.Binder.shellCommand(Binder.java:1073)
at android.os.Binder.onTransact(Binder.java:901)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4313)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6325)
at android.os.Binder.execTransactInternal(Binder.java:1331)
at android.os.Binder.execTransact(Binder.java:1268)

I then tried the

wm size

and

wm density

commands from this post and got the current values without issue.

Turns out I had to additonally enable the 'Disable permission monitoring' setting in developer options.

App works great without any issues now!
[Android Apps and Games] cjxsutton:
Everything starts for me the way it should but when I disconnect the display I expect all the changed settings to be undone.

This occurs with the exception of screen rotation. My device remains in landscape mode and nothing can change it (Tasker, Rotation app, etc) except going into second Second Screen and forcing portrait from the quick actions. After that I can choose to stop Second Screen and it will remain in portrait then the rest of my tasker commands and rotation stuff works normally
[Android Apps and Games] cjxsutton:
Same (see my comment above).

I think I'm going to make a Tasker task to run the Second Screen quick action for portrait mode, automatically when I disconnect
[Android Apps and Games] umminkug:
I have a Samsung S20+, a S20FE, and a Note20 Ultra. Definately, some of the most powerful phones out there.

Trying to set a 4K profile, I get:

"To protect your device, SecondScreen will

not allow you to use this resolution and/o.."

Is there a way to by pass this?

TIA
[Android Apps and Games] blaze2051:
currently running note 20 ultra on a hub to hdmi and im getting 4k24hz that will not work for me. I used secondscrren force it into 1080p 240dpi but even tho it changes the res on the phone, it still being display via hdmi as 4k24hz. what am i doing wrong,?
[Android Apps and Games] VELPO:
Hi Guys,

I'm just here because I'm trying to get SecondScreen working on my Galaxy Tab S8.

I'm an old guy that plays online darts on my tablet, but the resolution obviously is not the same as my TV.

It says I need to connect my device to a computer with the Android SDK installed. I know this is super newb, but if anyone could please help a guy out, that would be much appreciated!
[Android Apps and Games] mikek753:
what phone do you have?
[Android Apps and Games] jdpdata:
Nexus 5
[Android Apps and Games] bigcid10:
is there a way to get the screen to stay on after I pull out the cable from my phone

it will come back on but after about 5 sec it goes blank again

htc one (m8)
[Android Apps and Games] farmerbb:
You will need to turn the profile off manually before pulling out the HDMI cable, or use Tasker to automate doing this as an exit task to the state "HDMI Connected".

What happened was, the phone must have been off when you pulled out the HDMI cable, causing it to turn on. SecondScreen turns the backlight off again after the device has been on for 5 seconds.
[Android Apps and Games] bigcid10:
the screen wasn't off when I pull the hdmi cable out

here's what is happening so far

I have tasker installed and I a profile loaded - state hdmi plugged-display brightness 153

if that is not correct ,can you please instruct me please

also when I plug in the cable second screen asks for the profile that I created

so I tap on it and the profiles loads and the screen goes blank

then when I unplug the cable the screen comes back on but the profile doesn't

unload because if I plug it back in and the profile box comes up again it tells

me it still loaded but the screen doesn't blank ,so I have to unload it and reload it

it I were to pull out the cable the screen will stay on but if I lock the phone

and unlock it the screen goes off even if the cable is plugged in

thank you again
[Android Apps and Games] farmerbb:
Makes sense, so in your HDMI profile in Tasker add an exit task to turn the SecondScreen profile off. SecondScreen acts as a plugin for Tasker.
[Android Apps and Games] bigcid10:
can You instruct me ,I kinda winged it on that one,lol ?

tasker ,alot of times looks like greek to me
[Android Apps and Games] farmerbb:
No problem, Tasker is a beast of an application to use.

In the Profiles tab of Tasker, select your HDMI connected profile, then long-press on the task it's associated with (to the right of the green arrow) and select "Add Exit Task". Then in the task edit screen, add an action, select "Plugin" and then "SecondScreen - Load Profile". For the plugin configuration tap the pencil button and in the list that pops up, select "Turn profile off".
[Android Apps and Games] bigcid10:
Thank you very much,works perfect

But I wish it would go directly it my profile,instead

Of asking me every time I plug it in

Is there a way?
[Android Apps and Games] farmerbb:
In the main task for your profile in Tasker, do the same thing: add an action, select "Plugin" and then "SecondScreen - Load Profile". Except this time, select your profile name instead of selecting "Turn profile off". Also be sure to uncheck "Start when HDMI is connected" in SecondScreen settings to get rid of the pop-up.
[Android Apps and Games] theplagueisback:
Works on the Galaxy Note 2?

Thanks
[Android Apps and Games] farmerbb:
Well I may not have a Pioneer AppRadio, but I can hold up a Nexus 7 to my car dash and pretend like I do :)

I've decided to go with these settings for the built-in AppRadio profile: 800x480 resolution, 160dpi, screen rotation set to "Force auto-rotate", UI refresh method set to "Restart SystemUI" and Bluetooth on. It won't appear unless you're starting the app from a freshly installed state so thought I'd post it here. EDIT: built-in AppRadio profile removed.

1.2.6 will be pushed to the Play Store tonight.

Don't know for sure as I don't have the device, but people seem to be reporting issues with TouchWiz ROMs.
[Android Apps and Games] bigcid10:
well I did that but it didn't seem to work if I unchecked the "Start when HDMI is connected" the box wouldn't come up but it also

didn't use my profile either .I will try and add a screenshot to show how I have it set,thanks
[Android Apps and Games] bigcid10:
Here is the jpg
[Android Apps and Games] farmerbb:
Tasker might not have detected the HDMI connection that time, or it might take a while to recognize it on your device. Tasker's HDMI Plugged condition works fine for me.
[Android Apps and Games] grippa:
I use my HTC one with the appradio and my issue is that the video from the hdmi appears slightly shrunk on the appradio screen. But this used to be fine on older roms, so something has changed on the kitkat roms. May be some kind of overscan issue?

Anyways, can your app help me fix this issue? Btw, I'm using arunchained, tasker and screenstandby. Rooted stock sense 6 4.4.2 rom. Thanks.
[Android Apps and Games] bigcid10:
ok,thank you I will wait and see what happens
[Android Apps and Games] lpasq:
1.2.6 requires I remove auto rotate since ARU already forces to landscape. Needed to remove resolution and dpi settings so Nova launcher not super expanded and displays at native resolution per device. You may want to check with ARU dev on his issues and fixes in ARU to allow resolution output to fit AppRadio. It was a challenge for KitKat. The screen off works perfect.
[Android Apps and Games] farmerbb:
I see... hmm, maybe I'll just get rid of the built-in profile then (for now), seems like ARU already does a lot of screen optimization then.
[Android Apps and Games] nosit1:
Has anyone tried this with Samsung or anything TouchWiz? I know it states works best with, but want to see if there's a compatibility issue.
[Android Apps and Games] mikek753:
I tried with Samsung S3 - got bad side effect no data (gsm)

however, if you plan to use it for TV and don't need data - it works with experimental option
[Android Apps and Games] leobg:
I wonder if it is possible to apply negative overscan. HTC M8 has overscan forced by default and no controls to adjust it which causes black bars on all 4 sides on most TV/monitors. Second screen allows for control, but only to shrink it even further. Thoughts?
[Android Apps and Games] grippa:
yeah same here with HTC One M7

+1
[Android Apps and Games] farmerbb:
Android does allow for negative overscan but in my own tests it doesn't seem to fully give the effect desired. Can you download Terminal Emulator and give this command a try (as su)?

wm overscan -10,-10,-10,-10

If that seems to work then give -20,-20,-20,-20 a try. If it continues to underscan properly on the HTC One then I'll implement it in the next release. On my Nexus 4 at least it doesn't underscan properly and messes up the UI. Don't forget to reset overscan after with "wm overscan reset".
[Android Apps and Games] grippa:
Tried that, as you said it doesn't give the desired result. UI goes a bit weird.
[Android Apps and Games] Majed Kwekah:
thank u so much , u make my day :good:
[Android Apps and Games] ChungHung.Chen:
Hi,

Could this be used in XT910 CM11 (4.4.4) to force HDMI 720P ?

Please give me a trial version if possible, thanks!
[Android Apps and Games] ChungHung.Chen:
Hi,

Thanks for your trial version, here is my test report and some questions.

My XT910 (umts_spyder) can output 1080P signal through HDMI.

SecondScreen works well in TV/720P or TV/1080P profiles.

But it's just change resolution in display but HDMI output is still 1080P, right?

Actually my expectation is to change HDMI output signal from 1080P to 720P.

Does any settings I can adjust or it's caused by ROM ( CM11 nightly 20140628 )?

Thanks!
[Android Apps and Games] farmerbb:
Sorry for the confusion, yes it changes the device resolution to 720p or 1080p but the actual output is dependent on the display you are connected to and cannot be changed.
[Android Apps and Games] ChungHung.Chen:
Got it, thanks for your answer and trial version.

BTW, your app works well in my XT910 / CM11.

Nice app!
[Android Apps and Games] Nossile:
Hi, I tested the trial version on my LG G Pad (1920x1200) with stock LG ROM and a TV (1080p), but I get a stretched image with letterbox.

By default, the image of the tablet on TV is already stretched due to difference in resolution, but without the letterbox.

When I select the profile "TV (1080p)", the image is perfect for a short time, but rotates to portrait and displays the letterbox in landscape.

I tried the other profiles, but none worked.
[Android Apps and Games] farmerbb:
Does the LG G Pad boot to landscape by default? If so then I have a fix for this exact issue coming in version 1.3. Will be released soon.
[Android Apps and Games] Nossile:
No, boot in portrait by default. I will test again when you have a new version.
[Android Apps and Games] Nossile:
I tested the new version, unfortunately the result was the same.

[IMG="screenshot"]http://i.imgur.com/o0yKPZ4.png[/IMG]

(A little more stretched on TV than that shown in the image)

It's a shame, because this app would be perfect for this tablet due difference in resolution compared to fullHD.
[Android Apps and Games] farmerbb:
This may be an issue with how the G Pad hardware (or software) outputs its image over HDMI. It probably compresses the 1920x1200 (8:5) image to 16:9 in order to eliminate any letterboxing, and when SecondScreen switches the device resolution to 1920x1080 it likely is still applying the compression as if it were still in an 8:5 aspect ratio. Nothing I can do to fix that.
[Android Apps and Games] Nossile:
I will try with other roms, if I get different results I will post here.

Thanks anyway.
[Android Apps and Games] Kaer84:
Hi, this sounds like a great app, looking forward to buy/try it. I want to use it on an Optimus 2x - which the only stable HDMI ROM is ICS (V4.0.4). Is it possible for this app to be compatible with ICS and up instead of 4.2 and up? Should be Android API Level 14. Not sure if it would break other functionality.

Thanks.