yashsingh1/xdaforums huggingface dataset:
[Asus  Eee Pad Transformer Prime] omac_ranger:
Hey guys, I wrote an article over on our site that shows a quick walkthrough on how to display full desktop websites permanently on Chrome for Android Mobile so that you don't have to visit the mobile site, then hit "request desktop site" button any more. Considering Chrome is an awesome browser with full sync, and works very well on Jelly Bean, this might be of use to all of you. I know I was sick of having to constantly click the button.

Article: How To – Permanently Have Desktop Mode on Chrome Mobile for Android

Rooted device Instructions:

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.

Flashable .zip, for the lazy:

You should know how to use this by now. Grab the attached ChromeDE.zip provided by XDA user djmcnz and flash away! (Thanks!) You can also drop him a thanks by visiting a post of his later in this thread.

ADB Instructions (for non-rooted devices):

Place the chrome-command-line.txt file in the root directory of your PC and rename it to 'chrome-command-line', then make sure your device is connected to your computer. When connected, issue this command:

adb push /chrome-command-line /data/local/chrome-command-line

You can also set the path on your computer where the file is located by replacing the first '/chrome-command-line' with the file location.

Cheers! Hopefully we'll see a better implementation of this in the upcoming 4.2 release.
[Asus  Eee Pad Transformer Prime] C64c:
Very useful. Instructions were clear and precise, Nice one!
[Asus  Eee Pad Transformer Prime] b3ava:
thank you very well apreciated:) is there any chance you can write 1 on how to make it more stable?:P
[Asus  Eee Pad Transformer Prime] omac_ranger:
Thanks guys, glad I could help. Wish I knew how to make it more stable! It seems that it runs much better on Jelly Bean, but us ICS users are still stuck with it being really slow and buggy
[Asus  Eee Pad Transformer Prime] bunnybash:
I am stuck trying to figure out what "set permissions to 755" means...

it seems in the video you just tick different boxes, how does that relate to 755??
[Asus  Eee Pad Transformer Prime] omac_ranger:
I'm using solid explorer off of the market (a free file manager) which allows you to set the permissions of a file. In solid explorer, they are set by ticking the correct boxes, whereas in other applications they are typed in by number..
[Asus  Eee Pad Transformer Prime] rockky:
Hey thanks for this....huge chrome pet peeve of mine...

Can you write a command for FULL screen!!

When i click the download command file (on Nexus)it just opens to a large field with text...nothing downloads.

Suggestion?

thanks
[Asus  Eee Pad Transformer Prime] omac_ranger:
You can just copy the text and paste it into the correct location in a file called "chrome-command-line"
[Asus  Eee Pad Transformer Prime] rockky:
Thanks very much...got it.

Hey, (cough ;), hate to push a good thing) do you think you could produce a similar command to enable full screen on chrome mobile?!!

QUOTE=omac_ranger;30213316]You can just copy the text and paste it into the correct location in a file called "chrome-command-line"
[Asus  Eee Pad Transformer Prime] omac_ranger:
Don't think it works that way mate. That one was built into Chrome, just enabled by the file.
[Asus  Eee Pad Transformer Prime] zionwolf:
great guide. thanks for this. having to keep requesting desktop had become a bug bear for me :)
[Asus  Eee Pad Transformer Prime] omac_ranger:
Exactly! Glad I could help!
[Asus  Eee Pad Transformer Prime] djmcnz:
Good tip but it can be improved.

You don't need root to write to /data/local/ so in theory this trick will work for everyone, might pay to update the article.
[Asus  Eee Pad Transformer Prime] omac_ranger:
No? When testing with a Nexus 7 unrooted you cannot navigate to Data/local through Solid Explorer. Naturally I thought it had to be rooted. If you have had success with a different file manager (or pushed it through ADB) then letting me know what worked would be great.
[Asus  Eee Pad Transformer Prime] djmcnz:
You'll be able to get to it in a terminal window or adb - not sure what's up with Solid, equally an update.zip will work without root.

/data/local/ is r/w for the local user and shell.

try - echo test > /data/local/test.txt on a non-rooted device, it'll work.

Actually, now that think about it more - Solid probably can't list the contents of / (root) so you can't navigate to sub directories. Can you type a path into Solid? That should work.
[Asus  Eee Pad Transformer Prime] omac_ranger:
I'll definitely test that out and put a guide for newbies on there. Solid displays the root directory, but will not allow you to navigate to a folder inside of it. I was thinking about ease of access for the user, and assumed they wouldn't want to go the adb route. My bad, but thank you for the heads up.
[Asus  Eee Pad Transformer Prime] djmcnz:
If you want it as easy as possible you could provide an update.zip for those with a custom recovery - that's going to be the simplest way. If you want to do that and need some help let me know.
[Asus  Eee Pad Transformer Prime] tony_man:
does what is says on the tin

well spotted and thanks for posting
[Asus  Eee Pad Transformer Prime] omac_ranger:
Yeah I would love some help with that. I've never tried to compile my own before. I have a few tools bookmarked, but haven't gone through with testing them too thoroughly.

No problem. Mind dropping a thanks? Waiting at 99 is a huge pain the arse.
[Asus  Eee Pad Transformer Prime] djmcnz:
No worries, I can whip one up in a few minutes when I get home.

In the meantime you can have a look at some here: http://djmcnz.batteryboss.org/GNexus/mods/StockLauncher/v4/

If you want to have a play and look at the script. It will need to be different for you of course, least of all because we'll be mounting /data instead.

I'll send you a PM later on once I'm home (I'm in Europe/CET).

PS - 100 ;)
[Asus  Eee Pad Transformer Prime] abelenki:
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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36"
[Asus  Eee Pad Transformer Prime] kiritoxda:
Stopped working on the latest version, Can you update the zip?
[Asus  Eee Pad Transformer Prime] abelenki:
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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
[Asus  Eee Pad Transformer Prime] bsg411:
I tried to flash this using magisk but it failed. Is this a flashable zip?
[Asus  Eee Pad Transformer Prime] abelenki:
yes, it is. it can be flashed with recovery, not Magisk.
[Asus  Eee Pad Transformer Prime] bsg411:
Oh ok....I don't have the twrp for Android 10 installed. I ended up doing the manual method. Thanks.
[Asus  Eee Pad Transformer Prime] Barkuti:
Hello! :)

Is this working at all right now? :unsure: In my experience it's not, at least for the latest versions of Chrome.

This may be due to certain changes in Chrome. Check the following article for more information:

Chrome on Android can now always open desktop Sites by default @Techdows

But hey! The good thing is that Chrome now has a flag to set the default user agent as desktop. This is a win, although it still is a flag, not a permanent option in the application menu yet.

So please people, activate this desktop flag as much as possible in your devices. Make ourselves heard, so we can see this as an option in the menu of Chrome soon. Like a self-locking switch, for example, sort of like the Opera browser does.

Cheers everyone.
[Asus  Eee Pad Transformer Prime] omac_ranger:
Great. That would.be awesome and I'll be taking a look at that.

You rock.
[Asus  Eee Pad Transformer Prime] banvetor:
So, now that this thread is on the XDA portal page... any chance that guide for non-rooted devices is coming out?

Thanks!

Leo.
[Asus  Eee Pad Transformer Prime] zok-star:
great thanks heaps!!
[Asus  Eee Pad Transformer Prime] abumaha:
where put this string ?
[Asus  Eee Pad Transformer Prime] pinkman1:
i wise Google will make a option for this, i like some site in mobile mode.

TNX
[Asus  Eee Pad Transformer Prime] omac_ranger:
You should be able to push the file using ADB. Ill write up a guide for it as soon as possible and place it in the OP

Sent from my GT-N7000
[Asus  Eee Pad Transformer Prime] fauna:
Worked like a charm! Thank you for sharing.
[Asus  Eee Pad Transformer Prime] meethere:
great one. congrats for featuring on homepage.

I have one request, i want a click/vibrate sound or a background colour when we click a link, like a stock browser.. main problem with chrome is we dont know whenther our click was recorded or not.
[Asus  Eee Pad Transformer Prime] omac_ranger:
It's been updated for use with non-rooted devices, as well as including a flashable .zip. Let me know how it works for you!
[Asus  Eee Pad Transformer Prime] padlad:
Nice one! I uninstalled Chrome from my Note 2 because of the UA problem. Now it's back on because of this ;) I just used Root Explorer to copy over the file (my Note 2 is rooted) Many thanks!
[Asus  Eee Pad Transformer Prime] la0tzu:
Cheers OP, works perfectly, such an improvement to Chrome, nice simple easy to follow instructions too. :good:
[Asus  Eee Pad Transformer Prime] acultr:
can be used my htc desire s?ROM:cm10
[Asus  Eee Pad Transformer Prime] omac_ranger:
Glad I was able to help!

Yup. As long as you're able to run Chrome, you should be able to use this trick.
[Asus  Eee Pad Transformer Prime] zweeper:
great work

Installed as easy as 123 on my Xoom. THANKS!
[Asus  Eee Pad Transformer Prime] abraham.ramirez:
Ahahahahahaha...

This gave me a whole bunch of issues with my tmobile service and my "free" tethering

Great tweak though, works perfectly. (just wanted to be clear that there is no sarcasm, it really works)
[Asus  Eee Pad Transformer Prime] noyz2k:
it does not work for me..

D:\android-sdk\platform-tools>adb push chrome-command-line /data/local/chrome-command-line

failed to copy 'chrome-command-line' to '/data/local/chrome-command-line': Permission denied
[Asus  Eee Pad Transformer Prime] omac_ranger:
Which device are you running?

Sent from my GT-N7100
[Asus  Eee Pad Transformer Prime] Radimus:
I'm trying to do this with Tasker.. create the file and such, with the intent of making a desktop toggle button for it.

However, It doesn't seem to be making any difference (the file does get created and seems to contain the exact text)

New Tasker Task: Chrome to Desktop Mode
+Run Shell "chmod 0777 /data/local"
+Write File "../../data/local/chrome-command-line", 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", no append
+Run Shell "chmod 775 data/local/chrome-command-line

I've ended the browser task but, no change. If I click the request desktop site the page displays as expected

EDIT: Nevermind. I has assumed that "browser" was actually Chrome. I installed Chrome and it works as expected.
[Asus  Eee Pad Transformer Prime] omac_ranger:
Wow. Very cool idea. I'm glad that it worked in the end!

Sent from my GT-N7100
[Asus  Eee Pad Transformer Prime] tkelly0727:
is there anyway to revert back to normal setting if we want ?
[Asus  Eee Pad Transformer Prime] omac_ranger:
If you want the normal setting you simply need to delete the chrome command line file and it will revert to normal

Sent from my GT-N7100
[Asus  Eee Pad Transformer Prime] vinaaa:
is the hdmi audio working?

edit: sorry, wrong post
[Asus  Eee Pad Transformer Prime] omac_ranger:
... what?

Sent from my GT-N7100
[Asus  Eee Pad Transformer Prime] bmdixon:
I'm having the same problem, on Nexus 7 OS: 4.1.2 not rooted. Any advice anyone? :(
[Asus  Eee Pad Transformer Prime] omac_ranger:
It might be an issue with JB and the new build. It worked just fine with an unrooted GS3..

Sent from my GT-N7100
[Asus  Eee Pad Transformer Prime] bmdixon:
:( Ok, well hopefully there'll be a way on 4.2

Thanks for you help
[Asus  Eee Pad Transformer Prime] Smity123:
I take it this fix is an issue with JB roms currently? Also anyway to stop chrome from autozoom every webpage?
[Asus  Eee Pad Transformer Prime] stradevarius:
Hey guys,

I recently unlocked and rooted my nexus 4 so I could change chrome to always load desktop sites (via this thread) among other reasons. I'm also on the T-Mobile 30 dollar pre-paid. Ever since adding this script, instead of loading my webpage of choice, I load a T-Mobile hotspot page (attached image). This occurs only over 3g/4g and not WiFi. Anyone else experiencing this problem? I tried Dolphin browser with the user agent set to desktop and have yet to experience this problem. I know some of the rooted WiFi hotspot apps make the data you are using with your laptop/device "look" like phone use, would it be possible to adjust this script to do the same? Thanks!

Stradevarius
[Asus  Eee Pad Transformer Prime] romdroid.:
Hi. What do you mean set to 755? I am using es file explorer.
[Asus  Eee Pad Transformer Prime] Simba501:
Permissions. 755 are the necessary permissions. Idk about ES File Explorer, but to access permissions in Root Explorer, you long-press the file. You may have to mount as read/write. Anyone that uses that file manager will be able to elaborate.

Sent from my HTC One X
[Asus  Eee Pad Transformer Prime] robmeik:
Have a look here.

https://service.futurequest.net/ind...w/20/0/how-do-i-change-file-permissions-chmod

I found this by google.... it is very useful! :)
[Asus  Eee Pad Transformer Prime] pivovy:
Launching...

Thanks a lot, but I'm having a hard time launching it...

Copied the file to /data/local/ set the permissions with

chmod 755 chrome-command-line

and it shows as executable from the terminal (ls -l).

All looks perfect. But when I try to launch it by doing

cd /data/local

and then

./chrome-command-line

it tells me that chrome can not be found.

I did the same as root (su) and get that error above.

So that means that the script is working fine, but chrome itself cannot be found for some reason. I do have it installed and force stopped before launching the script.

So strange that no one else is having that issue...
[Asus  Eee Pad Transformer Prime] thepaulpage:
So my being on JB is the reason that I'm getting the "Permission denied" message when I try to push from adb?

Is there any hope?!
[Asus  Eee Pad Transformer Prime] Frank67:
won't work for me.. I tried both, the file and later the flash version..

Device is a Galaxy Tab 8.9 with Android 4.04 and latest Chrome..
[Asus  Eee Pad Transformer Prime] bobbyphoenix:
Just use this: https://play.google.com/store/apps/details?id=com.appo2.ua&hl=en
[Asus  Eee Pad Transformer Prime] poldie:
Still not working for me. Windows 7, Nexus 10, and I'm getting permission denied on the push. Setting permissions to 755 is a Linux thing, so this doesn't apply. My device isn't rooted. Has anyone managed to succeed here?
[Asus  Eee Pad Transformer Prime] pacedrum69:
Worked like a charm. Thanks so much. I was ready to use another browser :cowboy:
[Asus  Eee Pad Transformer Prime] HonZuna:
I really dont understand why Google dont implement option for permanent desktop mode.
[Asus  Eee Pad Transformer Prime] palmcrash:
Doesn't work on Amazon cart

The hack works on Amazon start page, but as soon as you tap the cart button (top right), the mobile cart page loads. There's no "m" in the URL, so the page just seems to be too smart for its own good.
[Asus  Eee Pad Transformer Prime] tarroyo:
Good looks on this! Saved me a lot of trouble looking for the edit.
[Asus  Eee Pad Transformer Prime] spartanhooah:
Is there a way to do this only for specific websites? I'd rather not go full desktop on my phone, but there are some sites whose mobile versions are actually broken.
[Asus  Eee Pad Transformer Prime] logichoops:
tried following your commands, get the following line when running

failed to copy '/chrome-command-line' to '/data/local/chrome-command-line': Permission denied

this is on a galaxy note 3 non rooted, any ideas?
[Asus  Eee Pad Transformer Prime] Summit1:
Excellent!! This is what has kept me from using Chrome browser. Now if they would add LastPass extension!
[Asus  Eee Pad Transformer Prime] tee_pot:
works perfectly on my rooted moto g - but ES file explorer wouldn't let me navigate to /data/local, so used FX explorer and it worked fine :)

Thanks!

xTx
[Asus  Eee Pad Transformer Prime] MaxHitZ:
chaian you

I can't seem to get this site working, would someone mind testing it for me, cheers

Gumtree dotcom.au
[Asus  Eee Pad Transformer Prime] tee_pot:
Still showing the mobile page for me... Even if I request the desktop site in the chrome menu :/

I've noticed a few sites not working as expected showing the desktop version since upgrading my moto g to 4.4.2... Dunno if it's a different version of chrome or what the problem is, tbh...

For example, http://news.BBC.co.UK is fine as desktop version, http://Halifax.co.UK is always the mobile version, even if I request the desktop version :(
[Asus  Eee Pad Transformer Prime] morfraen:
A lot of web sites these days use 'responsive web design'. They pick the layout based on your device width and DPI, so changing the useragent has no effect since they aren't even checking it. Changing the DPI on your phone or just for chrome will change those sites. Set it to 160 for a 1:1 full resolution desktop type mode. By default web sites work as if your phone has a resolution of only 320-360 pixels wide.
[Asus  Eee Pad Transformer Prime] padlad:
This still works for me on my Note 3 running 4.4.2, just went to halifax.co.uk and it loaded up the desktop version.
[Asus  Eee Pad Transformer Prime] Razorwindmo46:
Worked like a champ but, did show 2 errors installing the .zip on my Sprint SGS3. The first one I remember and the second one said something like, does not match ????? I have no problems so far looking up websites that start in desktop mode. If I find any I will edit this post.

1. footer error

2. ?????
[Asus  Eee Pad Transformer Prime] captainmidnight:
Works great on my M8 media streamer android TV box, thank you.:D
[Asus  Eee Pad Transformer Prime] FinKing:
I flashed the zip package but Youtube videos aren't working on desktop mode. How do I undo this flash? I was stuoid and didn't took backup before flashing in recovery.
[Asus  Eee Pad Transformer Prime] Rycon33:
^^ via root explorer, access your /data/local folder and remove the script there that is named "chrome-command-line"
[Asus  Eee Pad Transformer Prime] SouthOkanagan:
Chrome Desktop Mode

I'm about to try your Chrome Android Desktop mode workaround, I hope this works, I'm doing the non-rooted one, when Installing the ADT bundle I keep coming up with "path too long" errors when unzipping it, seems to be only readme files this is happening to so I don't think it'll be an issue if I just "skip" them...

So this trick will force my tablet to open desktop versions of sites while using Chrome?

And can I open the chrome-command-line file and change the UserAgent string thats in the file? I noticed there are alot of useragent strings online to choose from, or should I just leave it alone and it'll be fine for showing Desktop versions of sites ONLY while I browse?

Thanks for this page/post you put up about this, I'm just waiting for the ADT program to unzip, anything special I need to do to the tablet before doing the ADT step? Like enabling any sort of debug mode or developer mode?

Thanks for your help.
[Asus  Eee Pad Transformer Prime] asso24:
permission denied

I have a NEXUS 5 with android 4.4.4 not rooted, I have tried with ADB mode, but Setup fails because it tells me "permission denied":crying::crying:... any ideas?
[Asus  Eee Pad Transformer Prime] flan lucky:
Permission denied

Same here : I have a Galaxy Note pro 12' with android 4.4.2 not rooted, I have tried with ADB mode, but Setup fails because it tells me "permission denied"... any ideas?

Thanks a lot
[Asus  Eee Pad Transformer Prime] ryandedelee@gmail.com:
been looking for this, thx a lot.. :good:
[Asus  Eee Pad Transformer Prime] maryhadalamb17:
Same issue as non-rooted users

Device: Galaxy Tab S 10"

Android: Kitkat

Issue: Permission denied error

My Procedure:

A)

1. Copied .txt file to C:\

2. Connected device to computer

3. Turned on USB debugging mode (otherwise I get "device not found" error when I try to copy over)

4. Type in command exactly as given per instruction

B)

Same as (A), added .txt into the command line where it says "chrome-command-line"

C)

Same as (A), removed .txt extension on the file on my computer

D)

Same as (A) in Steps 1-3

4. Copied chrome-command-line.txt to device SD Card

5. Used Root Browser to copy file over to /data/local ("local" subfolder does not exist (???))

6. "Operation failed" error

E)

Same as (E), removed .txt extension within the Root Browser app, then copy over

Same error

Any insights?
[Asus  Eee Pad Transformer Prime] igidu:
Thanks a lot! I have needed this since last year! :D

I flashed to rooted Samsung note 10.1
[Asus  Eee Pad Transformer Prime] ilmojk:
thanks for helping :)
[Asus  Eee Pad Transformer Prime] tsegro:
Very useful trick.

Thanks so much for this, saved me a lot of time for separately choosing "Request desktop site".

Been using it for a month now and without any problems.

The procedure it's a little confusing for us newbies, but here is what can you do (If you have rooted permisions of course):

1. Create a text document in your pc and name it chrome-command-line.

2. Open that text dokument and inside past these sentence 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".

3. Save the text document, then remove the .txt extension from it and then save it.

4. Transfer this file then to any folder on the internal storage of the phone.

5. Then use the "File Explorer PlusRoot" to move the file to "System (Root)/data/local"

6. Then we press and hold to the chrome-command-line file and select "Details", and then click on "Ownership and Permissions" table.

7. Then we complete the "Read", "Write" and "Exec" like in the images below and click ok.

8. Then we go to Chrome and Force Stop-it.

There we go :)
[Asus  Eee Pad Transformer Prime] roebling:
Doesn't work on Moto G (XT1028:Verizon pre-paid). "Permission denied."
[Asus  Eee Pad Transformer Prime] fridgeS3:
Is there a Chance to force Chrome on Android to use mobile website on a tablet. Some news sites a easier to read in mobile version
[Asus  Eee Pad Transformer Prime] jdmst77:
Wish that I had seen this workaround sooner

I've been opening bookmarks, quickly and frustratingly reloading pages in desktop mode (on my tablets) for years.

This still works to date, well at least in KK 4.4.2
[Asus  Eee Pad Transformer Prime] plainbum:
Great tip thanks for the zip file:)
[Asus  Eee Pad Transformer Prime] luigidk:
CORRECTION: - Upon further review - My txt file was corrupted.
[Asus  Eee Pad Transformer Prime] redline2097:
For chrome there is an app in the market called user agent for Google Chrome which will automate this for rooted devices.
[Asus  Eee Pad Transformer Prime] Joe333x:
Thanks!
[Asus  Eee Pad Transformer Prime] Polarbearking:
Confirmed this still works with the flash zip.

-on rooted verizon note 3 with Jasmin rom 5.0.2

I tried the txt file first, and it did not work. I was able to place the file and set permissions, etc. But I did not reboot, that may be why it did not work via txt. (Yes I removed the txt ext). So if you want to try that route first, remember to reboot. I flashed the zip via flash fire and when it rebooted my phone, I now only get desktop versions, woohoo.
[Asus  Eee Pad Transformer Prime] Asif76:
Is possible any code for add in website page and they redirect to desktop site ?
[Asus  Eee Pad Transformer Prime] lenlennart:
Hey,

i have no access to /data/local with adb (non-rooted) :(

i only manage to get it to /data/local/tmp...

Any ideas?

Cheers!