FORUMS
Remove All Ads from XDA

How To - Load full desktop websites permanently in Chrome for Android

298 posts
Thanks Meter: 98
 
By plazma247, Senior Member on 1st April 2018, 10:58 PM
Post Reply Email Thread
13th June 2018, 11:14 PM |#11  
Senior Member
Thanks Meter: 143
 
More
Perfect for using on my Planet Computers Gemini PDA. Made this so much more like a mini-laptop now, thank you!
 
 
14th August 2018, 11:16 PM |#12  
Junior Member
Thanks Meter: 1
 
More
This is awesome, I did it in a non-rooted nexus 5 but used chrome canary instead to not affect my regular chrome experience.
The only difference was the following command:
Quote:

adb shell am set-debug-app --persistent com.chrome.canary

The Following User Says Thank You to cpucpu For This Useful Post: [ View ] Gift cpucpu Ad-Free
30th August 2018, 02:15 PM |#13  
kRel's Avatar
Senior Member
Thanks Meter: 50
 
More
https://forum.xda-developers.com/and...sites-t3771982

Quote:

Enable developer options, open developer options menu under settings and scroll down until you see "select debugging app", select it and select chrome, next ensure that the option below "wait for debugger" is set to off.

If however you discover the debugging app does not have chrome (or anything else) and just says none, you can still enable this over adb, first enable usb debugging and then run the command:

adb shell am set-debug-app --persistent com.android.chrome

After this chrome will be set into debugging mode, you can confirm this by entering the developer options menu again and you should now see chrome is now set.

after following the instructions faithfully above, going to "select debugging app", it still results: "No apps set for debugging"

However, in "Implementing WebView" Chrome is selected.

Samsung galaxy tab S3 Oreo 8.0
12th September 2018, 01:23 PM |#14  
Junior Member
Thanks Meter: 12
 
More
Thank you so much! This worked well without root.
15th September 2018, 09:00 PM |#15  
Senior Member
Flag Shahrakan
Thanks Meter: 106
 
Donate to Me
More
Quote:
Originally Posted by kRel

https://forum.xda-developers.com/and...sites-t3771982


after following the instructions faithfully above, going to "select debugging app", it still results: "No apps set for debugging"

However, in "Implementing WebView" Chrome is selected.

Samsung galaxy tab S3 Oreo 8.0

after running the command you will see that chrome is already selected under "select debugging app" as a small message
"application to be debugged: chrome"

if you press on it to select an app it will show you "no apps"

this method works nicely and better than the previous method that i was using which was showing me warning message with every new tab that i open.


the only down side of changing the scale for me is the small address bar which is a bit annoying especially in portrait mode.
lowering the scale will make some sites to appear in mobile mode which i dont like.
but i will manage and try to find a solution for this issue and report back
3rd November 2018, 10:35 AM |#16  
Member
Thanks Meter: 8
 
More
Debug mode not needed? Just set permissions
I didn't need to use debug mode to get it to read /data/local/chrome-command-line. Just had to give the file read permissions (644 was enough). Also make sure the file starts with "chrome ".
20th November 2018, 05:08 PM |#17  
Junior Member
Thanks Meter: 1
 
More
i flashed the zip but im having the same problem i.e. chrome doesnt show up in select debug app... im on a moto g5s plus and have an unofficial pixel experience 9 rom

---------- Post added at 06:08 PM ---------- Previous post was at 05:56 PM ----------

Quote:
Originally Posted by andrewspetaci

i flashed the zip but im having the same problem i.e. chrome doesnt show up in select debug app... im on a moto g5s plus and have an unofficial pixel experience 9 rom

okay i found the solution myself... paste that debug file in /data/local instead of /data/local/tmp and u should be good 👍
The Following User Says Thank You to andrewspetaci For This Useful Post: [ View ] Gift andrewspetaci Ad-Free
8th January 2019, 10:27 PM |#18  
reeco's Avatar
Senior Member
Flag Swansea, Wales
Thanks Meter: 128
 
Donate to Me
More
I'm just about to attempt it on my Gemini PDA too
22nd January 2019, 02:20 PM |#19  
Junior Member
Thanks Meter: 0
 
More
it is awesome, my two tablet(huawei m5 and pixel c) work well
10th February 2019, 05:22 PM |#20  
Senior Member
Flag Android
Thanks Meter: 520
 
More
Did some testing with this. It is a mix of force-device-scale-factor and user-agent.
Some sites check your UA and some your screen size (scale).

--force-device-scale-factor=x.x

< 1.5 always loads pages like PC
> 1.6 always loads pages like Mobile
>2 uses no tabs, like phone (can combine with --enable-accessibility-tab-switcher)
<2 always tabs, like tablet

Playing with the scale sometimes need you to adjust font scale in Accessibility settings

Content of the chrome-command-line (1280x1920):
Code:
chrome --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36" --force-device-scale-factor=1.5 --top-controls-hide-threshold=0.5 --top-controls-show-threshold=0.5 --no-referrers --disable-notifications --enable-async-dns --enable-vulkan

For NON Rooted devices:

adb push chrome-command-line /data/local/tmp
adb shell chmod 755 /data/local/tmp/chrome-command-line
type this in chrome: chrome://flags#enable-command-line-on-non-rooted-devices and enable
(you get a warning that it is activated!)

For Root devices:

adb push chrome-command-line /data/local/tmp
adb shell
su
mv /data/local/tmp/chrome-command-line /data/local/
chmod 755 /data/local/chrome-command-line


Command line options from Chrome Browser java code:
Code:
enable-crash-reporter-for-testing
enable-idle-tracing
renderer-wait-for-java-debugger
trace-startup
enable-test-intents
force-show-update-menu-badge
disable-fullscreen
top-controls-hide-threshold
top-controls-show-threshold
open-custom-tabs-in-new-task
no-touch-mode
enable-vr-shell-dev
disable-contextual-search
enable-contextual-search
webview-sandboxed-renderer
enable-incognito-custom-tabs
allow-incognito-custom-tabs-from-third-party
enable-accessibility-tab-switcher
enable-dom-distiller
disable-reader-mode-bottom-bar
webview-disable-safebrowsing-support
enable-spdy-proxy-auth
disable-external-intent-requests
force-dump-upload
disable-fre 							First Run Experience
force-first-run-flow-complete
enable-data-reduction-promo-infobar
enable-data-reduction-proxy-savings-promo
type
strict-mode
disable-domain-reliability
always-extract-webapk-dex-on-startup
survey_override_site_id
force-enable-chrome-survey
disable-instant
ignore-background-tasks
use-mobile-user-agent
force-device-scale-factor=				<1.56 loads PC style pages, with tabs, set text to 150%! >2 uses no tabs like phone
webview-safebrowsing-block-all-resources
wallet-service-use-sandbox
enable_partner_search_engine_promo
enable_existing_user_search_engine_promo
webview-sandboxed-renderer
default-country-code
enable-low-end-device-mode				
disable-low-end-device-mode				
log-native-library-residency
dont-crash-on-view-main-intents
no-restore-state
enable-incognito-snapshots-in-android-recents
enable-test-intents
disable-digital-asset-link-verification-for-url
custom-tabs-log-service-requests
partner-homepage-for-testing
disable-tab-merging
check-for-web-manifest-update-on-startup

Command line options from Chrome Browser lib file:

https://peter.sh/experiments/chromiu...line-switches/


Have fun
The Following User Says Thank You to tweakradje For This Useful Post: [ View ] Gift tweakradje Ad-Free
11th February 2019, 12:29 AM |#21  
Member
Thanks Meter: 13
 
More
Thanks for sharing your tweak. It's great.

I'm using it now on my Nvidia Shield TV. I can browse Chrome with visible multiple tabs for switching back and forth easily.
Post Reply Subscribe to Thread

Tags
chrome desktop mode command line

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes