yashsingh1/xdaforums huggingface dataset:
[Asus  Eee Pad Transformer Prime] TitoDKM:
Working on 6.0.1, thanks
[Asus  Eee Pad Transformer Prime] 3to4:
Does it work for Chome-based stock browser?

Hi,

It is not working for me. I am trying for the stock browser for my N9005.

I went to www.whatsmyuseragent.com, and my user agent is as below

"Mozilla/5.0 (Linux; Android 4.4.2; en-gb; SAMSUNG SM-N9005 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Version/1.5 Chrome/28.0.1500.94 Mobile Safari/537.36"

So, it seems to me that it is a Chrome variant...

I tried typing "about:debug" in the address bar, but I am not getting any menu.

Is there another way to do this?

PS: I found it!! When I type "about:debug" in the address bar and press enter, it says "This web page is not available". But, then if you go to settings, "Debug" appears in the lower part. And, you can change UA there.
[Asus  Eee Pad Transformer Prime] bloodstains28:
thanks! but it was obsolete, how to make it chrome51? because it was for chrome22, i cant access other sites because it says "please update your browser from chrome22 to chrome51"

Thanks in advance!
[Asus  Eee Pad Transformer Prime] birkoffsjunk:
outdated chrome:

chrome --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1"

updated chrome 53:

chrome --user-agent="Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2783.4 Safari/537.36"
[Asus  Eee Pad Transformer Prime] joeybear23:
Worked great. Thanks!
[Asus  Eee Pad Transformer Prime] Nakamuro17:
One have this problem too. Device - OnePlus 3, stock Chrome (non-rooted)

When insert with ADB - its write "Permission denied"

Have any ideas? ;(

Android 6.0.1, version oxygenOS 3.2.4, core 3.18.20, vers A3003_16_160806

Thanks
[Asus  Eee Pad Transformer Prime] Happosai187:
I have flash the zip-file from birkoffsjunk (#94) to my pixel c but it doesn't work. :(

If I go to http://www.whatsmyuseragent.com/ they said I have:

Mozilla/5.0 (Linux; Android 7.0; Pixel C Build/NRD90R) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.34 Safari/537.36

What can I do?
[Asus  Eee Pad Transformer Prime] Happosai187:
Nobody knows? :(
[Asus  Eee Pad Transformer Prime] coolpoete:
This is also not working for me anymore now. It worked well on the Marshmallow Roms but now it's not working in Nougat. I am using supersu root method and I can verify that I have root access but for whatever reason none of the root explorers that I've used (ES file explorer pro, Root browser and FX file explorer) are allowing me to change permissions. I tried flashing the ZIP file as instructed as well. Anyone in here use this hack with any success on Nougat? I'm using a Nexus 6 with the Pure Nexus ROM.
[Asus  Eee Pad Transformer Prime] Nektopoli:
Just flashed the .zip on a TF201 on Android 7.1-v12, rebooting now.

NP

Working on Chrome 4.2, BUT requesting the desktop version of Google.com tells me I need to update my version of Chrome (I guess because it doesn't know I'm on a mobile device).
[Asus  Eee Pad Transformer Prime] luigidk:
I believe permissions changed somewhat in Nougat.

This will allow you to do this without root or get caught up in permissions issues

Use TWRP and Aromafm (file manager) - to copy the file from an accessible directory (e.g.: Download) - and then you can set permissions also.

This will allow you to put the file in place and set permissions without needing root.
[Asus  Eee Pad Transformer Prime] coolpoete:
Thank you
[Asus  Eee Pad Transformer Prime] Kamikaze_Hulk:
I've changed permissions and still loading up in mobile mode.
[Asus  Eee Pad Transformer Prime] Temches:
Hello! I also have a problem with the full version of the site. The file chrome-command-line is present in the right place(/data/local/), rights 755 is set correctly, but still loaded mobile version of the site. Perhaps in Android 7.1 has changed the path to the file or its name. I'm using nexus 7 2013 wifi with cyanogenmod 14.1 on android 7.1. Any help?
[Asus  Eee Pad Transformer Prime] Kamikaze_Hulk:
Or maybe it's something with cm14.1 because that's what i'm using as well?
[Asus  Eee Pad Transformer Prime] Temches:
Perhaps. I have not tested this on the original android 7, so that if it is woks well, it is a problem with cyanogenmod. Sad, I so like itðŸ˜¥
[Asus  Eee Pad Transformer Prime] Kamikaze_Hulk:
[MENTION=7065269]Temches[/MENTION], have you tested it on the original 7.0?
[Asus  Eee Pad Transformer Prime] t0mas_:
I just tried this on custom aosp 7.1 (dirty unicorns) and I can get the file there, I can set whichever permissions I like, but it doesn't work... any news?
[Asus  Eee Pad Transformer Prime] Kamikaze_Hulk:
I found a website with chromium based commands, but i don't know where this would be put in, i put it in the address bar and nothing.

http://peter.sh/experiments/chromium-command-line-switches/

Then there's this specific line I found.

--ash-enable-unified-desktop
[Asus  Eee Pad Transformer Prime] BuHaneenHHHH:
I just download the file and copied it to data/local

And it works :D

My devices are samsung note pro 12.2 running CM or Lineage 14.1 and Galaxy Note Edge running rooted TW rom 6.0.1

Gonna test it on my Galaxy S7 Edge running stock not rooted rom

it seems that i cannot push it to /data/local without root

if anyone have a workaround let us know please
[Asus  Eee Pad Transformer Prime] Kamikaze_Hulk:
Weirdest thing, after flashing the zip, if i load up Chrome Canary the changes are there. But in Chrome Beta, they aren't... Hmmm.
[Asus  Eee Pad Transformer Prime] Nektopoli:
Working on my TF201 under KatKiss 7.1_v15 [Flashed the ZIP with TWRP]

NP
[Asus  Eee Pad Transformer Prime] BuHaneenHHHH:
It stopped working on my note pro 12.2 with lineage 14.1

I found out that the location changed from data/local to data/local/tmp

So its better to copy the file to both location just in case it changes again
[Asus  Eee Pad Transformer Prime] Kamikaze_Hulk:
Do you have your chrome-command file that you can upload? I can't change the permissions on my Oneplus 3 and I'm using es file explorer and solid explorer and neither give me the option to change permissions.
[Asus  Eee Pad Transformer Prime] BuHaneenHHHH:
I downloaded it from this post

https://xdaforums.com/showpost.php?p=67596128&postcount=94

Try the zip file and flash it through the custom recovery

The permissions will be set automatically

Another option is the root explorer

I used it in both my note edge marshmallow 6.0 and note pro lineage 14.1 and it worked for copying the file and setting the permissions
[Asus  Eee Pad Transformer Prime] Kamikaze_Hulk:
Didn't work either, and i put the chrome command line in both the data/local and data/local/tmp and change the permissions.
[Asus  Eee Pad Transformer Prime] t0mas_:
well, for me it only works in permissive mode
[Asus  Eee Pad Transformer Prime] stan210:
thank you! I works great with chrome browser. Do you know a possibility to change the user agent for the entire system? I have changed the web_user_agent string in framework-res.apk. But stock browser and apps still showing original user agent.
[Asus  Eee Pad Transformer Prime] Paja LT:
Thanks for the instructions, but I still do not understand how to use it ..

spg521 use sony, android version 6.0.1. device without the root, so as I understand the right way to the second. chromede.zip downloads the file, but do not allow the installation of ...

I do not understand what it means to flash away ..

please help.
[Asus  Eee Pad Transformer Prime] rockstang:
Does this no longer work? I am on Android 7.1.1 pure Nexus .ROM. is there potentially another folder where this will work? I did try data/local/tmp without success. Also tried flashable version without success.
[Asus  Eee Pad Transformer Prime] kekinash:
2017 using a tablet with a 2k resolution and stuck in mobile mode by default

Google are you not ashamed of being such jerk?

I was using safari on the ipad pro and what a pleasant experience is to browser the web, using a ZenPad s3 10 (no root available) and using chrome is a crap experience, 2017! I can't believe Google didn't do anything to make a tablet look like a tablet and not ****ing big phone. Shame on you Google, you only care about money and ads.

End of my ****ing rant.
[Asus  Eee Pad Transformer Prime] Andriusss:
Maybe it is possible to explain in detail this instruction for rooted device,because i didnt understand at all..

"Copy the chrome-command-line.txt file attached to the post, then paste it into /data/local/ making sure to set the permissions to 755 and to remove the '.txt' file extension."
[Asus  Eee Pad Transformer Prime] Andriusss:
Sorry,but there are i can find this file called "chrome-command-line" ?

I looking for, but can not find it anywhere..
[Asus  Eee Pad Transformer Prime] hardbreed:
Same here not working on stock rooted tab s2 t810 on 7.0

Anyone got any other ideas for a workaround
[Asus  Eee Pad Transformer Prime] luigidk:
Many responsive sites wont respond to this fix, so many that there isnt much benefit to this.
[Asus  Eee Pad Transformer Prime] plainbum:
Could you name a few so we could test?
[Asus  Eee Pad Transformer Prime] Nektopoli:
Ok, forgot to say I'm not on "Chrome" per say, 7.1.1_021 went back to the Android browser (Which I believe is Chrome anyway)

NP
[Asus  Eee Pad Transformer Prime] plazma247:
Latest chrome desktop mode

Hey, if you got redirected to this (my) post to the chrome desktop mode, its been moved, as the op appears to long abandoned this thread, people were finding it hard to find the correct up-to date information, so what you need is now on a complete new thread here:

https://xdaforums.com/android/general/how-to-load-desktop-websites-t3771982

.
[Asus  Eee Pad Transformer Prime] dosgringos:
Chrome is out of date

Deleted
[Asus  Eee Pad Transformer Prime] Nektopoli:
I'll update now, but I'm moving over to Firefox for browsing on the TF201t

NP
[Asus  Eee Pad Transformer Prime] satand:
i tried to get chrome in debug mode on my oneplus 5. but unter settings/developer settings/set debug app is no chrome listed?!? the only app in the debug app list is betterbatterystats.
[Asus  Eee Pad Transformer Prime] plazma247:
[MENTION=6652132]satand[/MENTION] see my updated post of how to set the debug application manually over adb ;)
[Asus  Eee Pad Transformer Prime] locolyric:
THis is useful.

But certain website show my chrome is too old.

Do you have any other updates for this?
[Asus  Eee Pad Transformer Prime] plazma247:
[MENTION=1077218]locolyric[/MENTION] see here
[Asus  Eee Pad Transformer Prime] satand:
[MENTION=511296]plazma247[/MENTION]

thanks, it works great with your adb command to put chrome into debug mode and to get the desktop mode permanently. would this tweak also work with "chrome dev"?
[Asus  Eee Pad Transformer Prime] plazma247:
[MENTION=6652132]satand[/MENTION] I cant see why not, although adb command to set debug command would likely need to be:

"adb shell am set-debug-app --persistent com.chrome.dev"
[Asus  Eee Pad Transformer Prime] Nektopoli:
Do we have a similar ZIP for Firefox?

NP
[Asus  Eee Pad Transformer Prime] abelenki:
i wanted to let you know that installing ChromeDE.zip also works for Chromium. it now displays sites in desktop mode, too. thank you!
[Asus  Eee Pad Transformer Prime] abelenki:
some sites like Gmail or Google Drive don't work with such old user agent as in the first post.

here is an updated ChromeDE.zip with latest Chrome version as user agent.

or here is chrome-command-line file contents for manual editing:

chrome --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
[Asus  Eee Pad Transformer Prime] paarkhi:
[MENTION=511296]plazma247[/MENTION], Thanks for the updated method for chrome desktop for N but still there are some sites which doesn't automatically open in desktop mode, one such example is https://www.techenclave.com/community/ Please suggest, thanks
[Asus  Eee Pad Transformer Prime] plazma247:
[MENTION=3484543]paarkhi[/MENTION] it does for me (i see the same thing), did you follow my instructions, what user agent did you use, my updated version? did you set debug mode? The most likely issue is chrome is not in debug mode.
[Asus  Eee Pad Transformer Prime] paarkhi:
followed your instruction to the letter, chrome is in debug mode, I've checked, using your updated file (linux is the useragent), most of the other sites are working but also came through some sites where this didn't work by default.

Please check the attached screenshots

1st is of developer settings

2nd is default load of the said site

3rd is manually putting it in desktop mode

4th is useragent
[Asus  Eee Pad Transformer Prime] plazma247:
likely if debug is on and the useragrent is used its down to resolution, or scale... some websites adjust via detected view port size and not agent, so you could try adjusting the scale factor. when you hit desktop mode in chrome it adjust more than user agent.
[Asus  Eee Pad Transformer Prime] paarkhi:
should I increase the scale factor?
[Asus  Eee Pad Transformer Prime] plazma247:
The issue is the website dynamically loads based on view port width, switch landscape and portrait and you see... scale factor 2 works best for me in testing @ 1080p on my devices and the websites i use, try other scale factors by editing the command line file.

Instead of scale factor of 2 try 1.
[Asus  Eee Pad Transformer Prime] paarkhi:
thanks 1 works perfectly, strange I too have fhd screen
[Asus  Eee Pad Transformer Prime] plazma247:
Its most likely they are setting width badly to squash in more adverts... 1 will give you fhd, 2 will give you essentially half, but on smaller screens 2 is a better level for most websites.. with a larger screen 1 may not be so bad due to the physical size of the screen.

:) glad it worked for you.
[Asus  Eee Pad Transformer Prime] paarkhi:
yes, my phone's screen is 6.4" (Mi Max)
[Asus  Eee Pad Transformer Prime] Nswattamwar:
how to revert this
[Asus  Eee Pad Transformer Prime] plazma247:
Delete the /data/local/tmp/chrome-command-line and unset chrome as the debug app, then either reboot or force close chrome and relaunch it.
[Asus  Eee Pad Transformer Prime] kobe1326:
Does anybody know how to make this work for Yandex browser, unrooted device here, managed to get it working for Chrome but if we place it in the folder for chrome it does not unfortunately.
[Asus  Eee Pad Transformer Prime] locolyric:
This might work on Oreo too?
[Asus  Eee Pad Transformer Prime] plazma247:
[MENTION=1077218]locolyric[/MENTION] i cant see why not, the largest limiting factor is the chrome app its self, assuming the command line folder stays the same and were still allowed developer mode (being able to select a debug app).
[Asus  Eee Pad Transformer Prime] Spir4:
Great, but unfortunately for me it doesn't work with every website.

I use a Samsung Galayxy Note 3 with Android 4.4.1.

Anything I might try to get it to work for every page?
[Asus  Eee Pad Transformer Prime] plazma247:
With kitkat it maybe it uses the old location for tmp.

its unlikely its working for some and not others, check a website that verifies the user agent, if this says its correct, and your issue is due to the increased resolution you will need to manually adjust the zoom factor in the tmp file, ive you flick back a few pages i advised someone else how to so this.

This issue comes as some websites load based on display port size, many wordpress websites do this, so adjusting the scale factor will mean you make better use of your resolution and hence get served the desktop version.

On my phone i frequently see desktop versions in landscape, but switch to portrait and many websites try and feed me mobile versions due to the limited width.
[Asus  Eee Pad Transformer Prime] Spir4:
Alright thanks I'll try that!
[Asus  Eee Pad Transformer Prime] CDJKuznec:
Hello. It is not work on my bluboo s1. Android 7.0, root, s-off. Help me please?
[Asus  Eee Pad Transformer Prime] Nektopoli:
Setting permission is done via TWRP.

ADVANCED> FILE MANAGER>

navigate to file, then select file. In TWRP you will see 6 "squares" at the bottom AND the File you are setting in the upper left.

Select the button that says "chmod 755" and it will set permission.

ONE THING. When you first load TWRP you might have to MOUNT the system partition to be able to access all the files.

NP
[Asus  Eee Pad Transformer Prime] satand:
can anyone confirm [MENTION=511296]plazma247[/MENTION]'s mod is still working on oreo?
[Asus  Eee Pad Transformer Prime] plazma247:
i cant see why not as chrome is whats looking for the command line file, other than ensuring as in my instructions, setting chrome as the debug app it should work fine... try it and let us know :)

The version i posted is old now so it could do with a new chrome build number for the user agent, but it still works as it is.
[Asus  Eee Pad Transformer Prime] bsg411:
I'm running 8.1.0 rom and flashed the chrome zip.... It's not working.
[Asus  Eee Pad Transformer Prime] plazma247:
did you follow my instructions, re developer mode? also have you double check the user agent using a whats my user agent type website, a few people have reported it wasnt working, where it was and the websites look at the view port size to set which version the user is seeing, so adjusting this in the command line overcomes it.
[Asus  Eee Pad Transformer Prime] bsg411:
I just flashed the zip....not sure where the instructions are about how to get into developer mode. I did check my user agent...it's not desktop.
[Asus  Eee Pad Transformer Prime] plazma247:
The original zip the the op stopped working a long time ago, see my post here
[Asus  Eee Pad Transformer Prime] bsg411:
I enabled developer mode and flashed the new zip and enabled force zoom. Does the Canaan live changes still need to be made or is the zip good enough? Should my user agent actually say desktop?
[Asus  Eee Pad Transformer Prime] plazma247:
Ensure you set chrome as the debug app, just enabling developer options alone wont force chrome to use the command line file.
[Asus  Eee Pad Transformer Prime] bsg411:
Now I ran into another problem... Now that I have the desktop chrome working, the Google app feed only opens amps web links and not real website links and amps only works for mobile devices and since my phone is being seen as a desktop it won't open the links. Have you encountered this? Do you know of any work around for this?
[Asus  Eee Pad Transformer Prime] plazma247:
Sorry its not an issue ive ran into, the best solution i can suggest would be to unset the default applications for urls/web links and then to install chrome beta alongside (which wont be set in dev mode) and use that for the app feed urls (select application) on launch. But obviously your going to have do this every time you open a link, if it works that is.
[Asus  Eee Pad Transformer Prime] bsg411:
Just tried that before reading your post.... It works for a second then received back to but working. Will have to go back to mobile mode
[Asus  Eee Pad Transformer Prime] 77cows:
[MENTION=511296]plazma247[/MENTION] works on Android Oreo 8.0, Samsung S8 T-Mobile USA. Thanks for all your help. Quick question, if I turn off USB debugging, does it mean this mod no longer works?
[Asus  Eee Pad Transformer Prime] plazma247:
if usb debugging is turn off i belive (not tested) this then disables the app running in debug mode... that is with the exception of a rom that is marked as debug, most are not, however i was previously on a rom the developer had left flagged as debug and when i switched to a new rom the device old method was no longer working, which is how i eventually worked out how and what was required to make chrome read the command line options again...

That said all builds (unless the developer has broken then) should run an approved device list of debugging, so even thought you have debugging turned on, you can be charged jacked over usb as the device your connected to is not approved... unless your stupid enough to say yes allow this ominious and evilooking usb charger to be approved for debugging.

... its pretty sad google still cant give us a way to set desktop mode all the time in the app... they just keep on adding more hoops to jump through.

If i get a chance over the next few days i will update the build to include a later user agent string.. anyone out there want to shoot me over what screen resolution and size screen and what scale factor your using, i may make a couple of builds this time to compensate for higher resolutions.

Also after trying to contact the original poster to instead update or link to my builds and having no luck i may fork the new build onto a new thread to make it easier to find.

Anyone want to make a youtube video of installing it and setting debug mode for me to include?
[Asus  Eee Pad Transformer Prime] plazma247:
Moved to a new home (thread)

Hey everyone and future people searching for how to get chrome to stay in desktop mode, the Android N and above compatible upto date version, which includes my view port scale factor tweak, has now moved over to a new thread here:

https://xdaforums.com/android/general/how-to-load-desktop-websites-t3771982

See you over there.
[Asus  Eee Pad Transformer Prime] abelenki:
some sites like Gmail or Google Drive don't work with such old user agent as in the first post.

here is an updated ChromeDE.zip with latest Chrome version as user agent.

or here is chrome-command-line file contents for manual editing:

chrome --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36"
[Asus  Eee Pad Transformer Prime] dj84423:
it says permission denies

when I give command adb push /chrome-command-line /data/local/chrome-command-line through adb it says permission denies why is this and how can i overcome with this problem. please someone help me out.
[Asus  Eee Pad Transformer Prime] kRel:
for you and for all . . .

the new command line :

Adb push chrome-command-line /data/local/tmp/chrome-command-line

(as reported here: https://xdaforums.com/android/general/how-to-load-desktop-websites-t3771982 )
[Asus  Eee Pad Transformer Prime] eremitein:
... Help somebody ...

This method not worked in Android 6.0.1 Lineage 13.0 :(

Steps to reproduce the problem:

1. Create file /data/local/chrome-command-line (or /data/local/tmp/chrome-command-line) with content "chrome --user-agent="UA_SAMPLE_STRING""

2. Run Chrome or Chromium app

3. See in browser "chrome://version" or go to Google search "what my user-agent"

What is the expected behavior?

Normally, Chrome must set UA from "--user-agent" string and using this value to processing sites

What went wrong?

Chrome app get "--user-agent" value from /date/local/chrome-command-line, show it in "chrome://version" in "Command line", but field "User Agent" is blank. And all sites define Chrome's UA like non-existent.

If using /data/local/tmp/chrome-command-line then nothing changed, all setting are stay default.

I'm tested some another apps: Chromium 70, Bromite 68 and Chrome 5x - behavior repeated for all of them.
[Asus  Eee Pad Transformer Prime] starfall88:
Works for me on my non-rooted Tab s4. Very useful on DeX mode.
[Asus  Eee Pad Transformer Prime] jxlee0215:
I have tried the push command but says destination doesnt exist. On note 9 android 8.1
[Asus  Eee Pad Transformer Prime] Tim J.:
thanks a lot for this!!!
[Asus  Eee Pad Transformer Prime] altafharsh60:
Doesn't work for me.

Tried pasting the file

Also tried flashing the zip.

No luck
[Samsung Infuse 4G] kitarodo:
I try to install many apps LED flash light on ICS but no one can use. I wanna use when I missed call or sms ?

can anyone tell me about this, plz :)
[Samsung Infuse 4G] wickedninjalo:
I was looking for this too (even just for gingerbread where everything works), but I don't think it exists