Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 4 of 4
  1. Thread Author  Thread Author    #1  

    Question Help Please - ADB Copy Fails!

    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!
  2. #2  
    wizzrah's Avatar

    Posts
    4,677 Posts
    Global Posts
    4,693 Global Posts
    Carrier
    Kitkat

    Default Re: Help Please - ADB Copy Fails!

    Quote Originally Posted by Maypo View Post
    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?
  3. #3  
    Rukbat's Avatar

    Posts
    20,118 Posts
    Global Posts
    20,120 Global Posts
    Carrier
    Modified Stock 4.4.2

    Default Re: Help Please - ADB Copy Fails!

    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.
  4. Thread Author  Thread Author    #4  

    Default Re: Help Please - ADB Copy Fails!

    @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? ;-)

Similar Threads

  1. help! my note 3 turned into a brick
    By Eric Bentley in forum Verizon Samsung Galaxy Note 3
    Replies: 4
    Last Post: 05-26-2014, 02:28 PM
  2. help please - screen flickering issue
    By Gavvykinz in forum LG G2
    Replies: 6
    Last Post: 04-17-2014, 01:52 AM
  3. help
    By Ajardi13 in forum Samsung Galaxy S4 Mini
    Replies: 3
    Last Post: 03-17-2014, 02:48 PM
  4. Kindle Fire root/TWRP HELP!!
    By ryanbart in forum Amazon Kindle Fire
    Replies: 0
    Last Post: 03-17-2014, 01:29 PM
  5. Help! JellyBAM Can't Connect to Camera!
    By SheldDaaady in forum AT&T Galaxy S3 Rooting, ROMs, and Hacks
    Replies: 1
    Last Post: 03-16-2014, 06:04 PM

Posting Permissions