[Nougat Only] Force desktop mode in chrome browser - General Questions and Answers

I have been using the "chrome-command-line" script to have chrome display desktop mode for all sites. Since moving to a device with Nougat, this no longer appears to work.
After some research, it appears Nougat is doing something different which blocks this functionality. Has anyone had success forcing desktop mode in Nougat?
Thanks very much in advance!

Download "User Agent Switcher" app from the playstore. It requires root access though.

Unfortunately, User Agent Switcher has also stopped working with Nougat.

I'm not sure that this can be done any longer, I ended up recompiling Chromium with a custom desktop user agent.
ChromePublic.apk is here If you're not keen on running code someone else compiled, you can do the same yourself

Related

Full screen Chrome or WebView with WebRTC (OS 4.4).

Hey Guys,
So i'm working on a ROM that is built for embedded use. I will be using the KitKat ROM. Device/ROM info can be found here w w w . technexion .com/support/download-center/edm/edm1-cf-imx6 .
What I need is to be able to autostart an app, either Chrome or a WebView app to display fullscreen content. The page I am displaying requires support for WebRTC and CSS3 Transforms. I would have gone straight for a WebView but support for WebRTC isn't readily available in KitKat.
I have two possible avenues I can go down.
- Try and figure out a way to get a WebRTC compatible WebView running in KitKat.
- Try and figure out how to launch Chrome in fullscreen mode without user interaction. The Android Status bar isn't that big a deal as I can hack remove when tweaking the ROM. What I need is to have Chrome hide the address bar on startup. Off hand, is any body familiar with the state of the "fullscreen" APIs in Chrome and what version?
Any ideas are greatly appreciated. Thanks.
I will post back here with anything that I come up with if people are interested.
Conor

Q - Browser - opening links on Marshmallow

Hello
I updated yesterday my GS6 on Marshmallow and i have a question for all those who are using MM on their devices( no matter if Samsung or not), i noticed that when i open a link in an app(no matter what app) the prompt doesn't have 'JUST ONCE' or 'ALWAYS'(like on Lollipop), it makes as the default browser the first one i choose. On Lollipop i chose 'JUST ONCE' all the time and it was useful because when i wanted to open a link for ex. in Facebook, i opened with Flynx, links in Feedly with Chrome etc., now, if i open a link with Flynx(or Chrome,Firefox etc.) it opens all future links with the same app, without prompting me like in Lollipop. If i want to open the same link with another browser i have to clear the defaults of the first app i have chosen.
I've set the browser to none in the defaults apps,with the hope that it will prompt me like on LP, but it propmts me like in the second screenshot i attached, after selecting a browser, it's like having a single browser LOL, is this Google's implementation or Samsung's? i've found an article on android police that describes exactly the issue i have
http://www.androidpolice.com/2015/1...ow-and-its-why-your-defaults-are-misbehaving/
but it was for MM Beta and i thought this issue was resolved. Is this behaviour present on any of your devices that runs MM?
Here are the differences between Lollipop(first) and MM(second) the third screenshot is with all browsers defaults cleared, but if i open a link with any browser, it auto-defaults as the default browser( in this case,Fynx, 4-th screenshot)

Custom WebView build

Hoping someone with development experience can give me help here:
Would it be difficult to make a modified build of AOSP WebView client so that when an app tries to open an internal WebView it forces the link to be opened in an external browser or even not open them at all?
This post on Coderwall reflects it's possible, but it's way above my head.
This is a parental control concern for me. Many apps that aren't web browsers actually give you access to a web browser if you're smart enough. Typical method: go to an apps privacy policy page, click a few links till you get to google.com or twitter.com. From there you can get to anything.
Alternate solution might be to block internet access of the WebView Client system application, but allow the rest individual apps to still access internet. E.g., give an app internet but stop it from accessing internet thru an embedded webview browser.
Any help is much appreciated!

Firefox wont work without chrome?

So i just got my 10+ 2 days ago and immediately rooted it with magisk. For the past 2 days i have been working on customizing, debloating, and degooglefying it. So far i have removed almost all google apps as well as some samsung bloatware. I have also removed bixby and remapped the bixby button for other tasks...
However i have run into a peculiar issue; if i remove chrome none of my firefox browsers will work, with the exception of orfox... this includes firefox focus, firefox klar and icecat. Those browsers will open no problem but if i type anything into the URL bar and hit go/enter the browsers immediately close/crash. If i reinstall chrome, firefox browsers work without issues. If i force stop and disable chrome, firefox browsers work with no issues. I just cant uninstall chrome.
Im using debloat in magisk modules and im sure the browsers share some dependencies, however i have tried reinstalling firefox browsers after removing chrome and same problem.
Anyone else have this issue or does everyone else use chrome?
I am unrooted with chrome disabled, Firefox beta runs fine. Have you removed android webview too? Try the fenix preview it uses the new rendering engine?
Unrelated question, I used to use note 1 back in the day it had no knox so rooting was simple. Went the nexus/pixel way after that, and rooting on it was basically just pressing a button. Just moved from a pixel 1 to this s10+.
My usage of the root on the pixel had dropped to titanium backup and kernel for boosting it's low performance, could you please explain your use for root on s10? Also, if you want to use your warranty will you be able to?
Yea i currently have chrome disabled and firefox works fine, i just cant uninstall chrome without issues.
To answer your unrelated question, i am a long time linux user and am used to being free to change anything I want with nothing off limits. For the s10 i want to be able to tweak all the settings to my desires and only run the software that i use. I dont want bloatware that i dont use either running in the background or just taking up space.
And as far as i know, the method of root for the s10 line using magisk can be unrooted and bootloader can be relocked but that requires wiping everything and flashing stock firmware which should allow you to use your warranty. I dont actually have a warranty as i bought the international unlocked version and samsung factory warranty doesnt cover accidental physical damage which is the only thing i would ever use a warranty for.
thearmeddiyer said:
So i just got my 10+ 2 days ago and immediately rooted it with magisk. For the past 2 days i have been working on customizing, debloating, and degooglefying it. So far i have removed almost all google apps as well as some samsung bloatware. I have also removed bixby and remapped the bixby button for other tasks...
However i have run into a peculiar issue; if i remove chrome none of my firefox browsers will work, with the exception of orfox... this includes firefox focus, firefox klar and icecat. Those browsers will open no problem but if i type anything into the URL bar and hit go/enter the browsers immediately close/crash. If i reinstall chrome, firefox browsers work without issues. If i force stop and disable chrome, firefox browsers work with no issues. I just cant uninstall chrome.
Im using debloat in magisk modules and im sure the browsers share some dependencies, however i have tried reinstalling firefox browsers after removing chrome and same problem.
Anyone else have this issue or does everyone else use chrome?
Click to expand...
Click to collapse
It's because there is no alternative webview provider, or Android System Webview is broken. Check developer settings. I have to keep chrome installed for its webview provider and for some reason the built in Android System Webview is broken, even if I update it.
Chocolatetrain said:
It's because there is no alternative webview provider, or Android System Webview is broken. Check developer settings. I have to keep chrome installed for its webview provider and for some reason the built in Android System Webview is broken, even if I update it.
Click to expand...
Click to collapse
Thank you!!!
This solved my problem
So after I disabled chrome I verified webview provider switched to the android version and that firefox was working properly. I then uninstalled chrome, rebooted and same problem. After a little more research i found out that as long as the chrome webview providor was present and used, the android version will not update by itself. I manually went to the play store and updated it which is all it needed. Chrome is uninstalled completely, android webview is in use, and firefox is working properly.
I will report back if i discover any adverse side effects of running the android version rather than chrome.
thearmeddiyer said:
Thank you!!!
This solved my problem
So after I disabled chrome I verified webview provider switched to the android version and that firefox was working properly. I then uninstalled chrome, rebooted and same problem. After a little more research i found out that as long as the chrome webview providor was present and used, the android version will not update by itself. I manually went to the play store and updated it which is all it needed. Chrome is uninstalled completely, android webview is in use, and firefox is working properly.
I will report back if i discover any adverse side effects of running the android version rather than chrome.
Click to expand...
Click to collapse
Good stuff man, you're welcome haha. For some reason mine's permanently broken, although I don't mind leaving chrome installed.

How can I un-app-ify a website on Chrome for Android?

Hi folks...
So some websites do things to Chrome on Android that I don't like.
In particular:
1. Some sites, when launched from a link on the Home Screen, launch into a mode without any browser controls
2. Some sites don't let me add a link to the Home Screen, but only let me run it "as an app"
Is there any way around these sorts of things?
That is, I want to add a link to the Home Screen that will ALWAYS launch in full browser mode.
Or I want to add a link to the Home Screen for sites that seem to force Chrome to favor running "as an app".
Some news sites I frequent do the 1st thing.
outlook.com (which I use for work) does the 2nd thing.
I'd like them to behave like regular websites, and launch in full browser mode in Chrome from a Home Screen icon/link. Is there any way to force this, does anyone know?
If I'm using the wrong terminology, please let me know. I'm not sure if these sites are running a Chrome App, or an Instant App, or somehow otherwise force Chrome to behave differently.
Thanks much!
- Tim

Categories

Resources