[Q] ADB Copy Fails - Help Please! - General Questions and Answers

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! (bump)

Bump
Anyone, anyone, Bueller?

maypo said:
Anyone, anyone, Bueller?
Click to expand...
Click to collapse
anyone??? i need answer to this too!!

@maypo @doggmeister
You're getting the Permission Denied error because, very simply, you're not rooted. ADB can't access the /data/local directory without root, and will therefore give an error instead.
I don't know who told you that you can ADB push files to that directory without root, but they are mistaken.

NOOK!E said:
@maypo @doggmeister
You're getting the Permission Denied error because, very simply, you're not rooted. ADB can't access the /data/local directory without root, and will therefore give an error instead.
I don't know who told you that you can ADB push files to that directory without root, but they are mistaken.
Click to expand...
Click to collapse
Several guides online mentions it as a way to get permanent desktop mode in chrome on a non-rooted phone. And I just thinks its bloody mindnumbingly stupid why WE as the users can't decide what a browser should identify as....

Related

permission denied after root droid x

so the other day i rooted my phone by using the one button root and downloaded the wifi tether to check and make sure it works. everything worked fine. i also downloaded terminal emulator and checked to see if i can type in su. i did and that worked. a while back i read an article on how to edit the xml file on robo defense. says copy the xml file to sdcard which i was able to do then modify it and then stick it back in /data/data/com.magicwach.rdefense/shared_prefs. however everytime i try to copy it back it says permission denied using adb. so then i tried typing su in the command prompt after running adb shell. it then says permission denied. can anyone shine some light on this for me or what i may be doing wrong here? thanks in advance

How to copy file to phone directory?

Dear all members,
I have tried many file explorers like Astro & EStrong but there is no way I can copy file to the phone system directory.
I understand that I will need to modify the permission so that I can copy file to the file system but how do I do that?
I really appreciate your kind advice, thanks.
A possible workaround if it is a contact list is that you on your computer could try to import the phone directory to Google Contacts and sync it over to your phone.
Ludolf71 said:
A possible workaround if it is a contact list is that you on your computer could try to import the phone directory to Google Contacts and sync it over to your phone.
Click to expand...
Click to collapse
Brother, thanks for your reply.
I was trying to copy the modified version of the YouTube.apk to the phone directory but I cannot do it so checking anyone know to get around it?
chongbh said:
Dear all members,
I have tried many file explorers like Astro & EStrong but there is no way I can copy file to the phone system directory.
I understand that I will need to modify the permission so that I can copy file to the file system but how do I do that?
I really appreciate your kind advice, thanks.
Click to expand...
Click to collapse
Root explorer
No need to move it manually I guess. Mount your SD-card, transfer the file to your phone and download Apps Installer or similar to install the application. If that don't work, you can move files with adb.
thor2002ro said:
you need adb....
and do this...
Code:
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
adb push YouTube.apk /sdcard/YouTube.apk
adb shell dd if=/sdcard/YouTube.apk of=/system/app/YouTube.apk
adb shell rm /sdcard/YouTube.apk
adb shell reboot
Click to expand...
Click to collapse
From the other thread you asked in - forum.xda-developers.com
Ludolf71 said:
No need to move it manually I guess. Mount your SD-card, transfer the file to your phone and download Apps Installer or similar to install the application. If that don't work, you can move files with adb.
Click to expand...
Click to collapse
Hi, I try to find adb in the marketplace but cannot find.
Any kind advice from fellow members, thanks.
chongbh said:
Hi, I try to find adb in the marketplace but cannot find.
Any kind advice from fellow members, thanks.
Click to expand...
Click to collapse
I am saying this again in this thread. Root Explorer
also adb is not a application you can download from market. You have to download the android sdk and set up environmental variables.
Is your dev Rooted???
you will need android SDK and follow the directions given above by XperiaX10iUser
to know more about SDK and to download SDK go here

[Q] Read/Write File System

Hello I was recently trying to push the framework-res.apk (the UAString one) by sangreal06 and after replacing the framework-res.apk (used root explorer) I shut my Xoom off. When I turned it back on it was stuck at the Dual Core Technology image. I found out my computer still recognized the Xoom and adb commands work. I am trying to push through adb the original framework-res.apk to see if that works but, the file system is read only. How do you make the file system read/write? Any help would be appreciated.
TLDR: How do you make the file system read/write?
adb remount
Sparticuz said:
adb remount
Click to expand...
Click to collapse
Feel a little stupid now but thx! Worked perfectly.

simple question (adb)

If I want to copy and replace a file in system folder via adb, do I need to root my phone or does adb temporarily root my phone when connected?
i don't know. the only way it would work is if you mount system as read/write first. try that and see what it says. i assume you need to be rooted though since you need superuser permissions. check the adb website for proper commands cuz you might have to open up a shell and such first blah blah blah lol.
Thanks for reply, any else have an idea?
root is a MUST !
You must have root/superuser permissions to have read/write access to your phones system folder.
Sent from my Hero that never dies! ;D

[Q] Adb shell at runtime

I need to change the stock audio.primary.exynos4.so from /system/lib/hw folder with a modified version, obviously on rooted device and after the user authorize it.
I don't know really how to get the root permission and proceed with the copy (probably using adb shell).
Someone can help me?
Thank you in advance,
Giuseppe
adb remount
Greets!
uniprof said:
I need to change the stock audio.primary.exynos4.so from /system/lib/hw folder with a modified version, obviously on rooted device and after the user authorize it.
I don't know really how to get the root permission and proceed with the copy (probably using adb shell).
Someone can help me?
Thank you in advance,
Giuseppe
Click to expand...
Click to collapse
adb remount
adb push <PATH_TO_MODIFIED_exynos> /system/lib/hw/audio.primary.exynos4
Greets!
Hi mDroidd,
I need to do it from app runtime, and I am using roottools to get the access.
My problem is that I don't know the commands to use to copy the files.
Thank you

Categories

Resources