Help Please - ADB Copy Fails!

Maypo

Member
Feb 5, 2011
22
0
0
Visit site
I am trying to get Chrome to come up in desktop mode permanently on my non-rooted Xperia Tablet Z. Multiple sources tell me that on an un-rooted device I need to use ADB to copy a file containing the 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"

to the /data/local directory.

So I dropped that line into a file (called chrome-command-line) on the root of my c: drive and run ADB like so:

c:\Android-SDK\sdk\platform-tools>adb push /chrome-command-line /data/local/chrome-command-line

It immediately fails with the following message:
failed to copy '/chrome-command-line' to '/data/local/chrome-command-line': Permission denied

Any idea how I can perform this ADB copy operation without rooting?
Thanks!
 

wizzrah

Retired Ambassador
Jul 27, 2013
4,686
0
0
Visit site
I am trying to get Chrome to come up in desktop mode permanently on my non-rooted Xperia Tablet Z. Multiple sources tell me that on an un-rooted device I need to use ADB to copy a file containing the 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"

to the /data/local directory.

So I dropped that line into a file (called chrome-command-line) on the root of my c: drive and run ADB like so:

c:\Android-SDK\sdk\platform-tools>adb push /chrome-command-line /data/local/chrome-command-line

It immediately fails with the following message:
failed to copy '/chrome-command-line' to '/data/local/chrome-command-line': Permission denied

Any idea how I can perform this ADB copy operation without rooting?
Thanks!

You have USB Debugging on, right?
 

Rukbat

Retired Moderator
Feb 12, 2012
44,529
28
0
Visit site
1) Anything under /data usually requires root access.

2) In Chrome, in the menu, there's a 'Request desktop site' item. Check that and you're permanently in desktop mode.
 

Maypo

Member
Feb 5, 2011
22
0
0
Visit site
@wizzrah: Yes USB debugging is on. ADB sees the device fine.

@Rukbat:
1) That is what I figured but I don't understand why multiple forums/web sites recommend this as the "solution"
2) Incorrect. It only sets desktop mode for that session. You think I would be going through all this if a simple setting in the browser worked? ;-)
 

Forum statistics

Threads
943,924
Messages
6,920,668
Members
3,159,306
Latest member
xenomorf