adb push - Nexus One Q&A, Help & Troubleshooting

Do u have to have root to push a file?

jm1999 said:
Do u have to have root to push a file?
Click to expand...
Click to collapse
Si... It's needed

i think you can still push to the sdcard without, however thats probably not what youre looking to do

Root refers to superuser level commands. ADB, DDMS are all development tools independent of user privileges.

disgustip8ted said:
i think you can still push to the sdcard without, however thats probably not what youre looking to do
Click to expand...
Click to collapse
Or to any of the folders on the device with write access. Just not system folders (or any folder that's read only, or doesn't even give you read access), which as far as I can tell is the only reason why you'd use adb commands instead of a file browser like astro.

Related

How to put ringonte (.mp3) into phone memory?

As above. Anyone knows?
bryant_16 said:
As above. Anyone knows?
Click to expand...
Click to collapse
put it in the media>ringtone folder.
bryant_16 said:
As above. Anyone knows?
Click to expand...
Click to collapse
Ok... I'll bite. Ringdroid from the market. Any other answer will take some info.
As in, the ringroid will put the ringtones in the sd card memory not the phone memory, i tried copy paste over but fail.
To place them into the phone memory you will need to either copy them using the terminal or push them through adb.
using adb, place the file(s) in your tools folder
Code:
adb push filename.mp3 /system/media/audio/ringtones
In the terminal, if you place them in the root of your sdcard
Code:
cp /sdcard/filename.mp3 /system/media/audio/ringtones
I am not sure if you need to remount or not to push/copy into the folder or not.
It says read-only file system as the error.
jairomeo said:
To place them into the phone memory you will need to either copy them using the terminal or push them through adb.
using adb, place the file(s) in your tools folder
Code:
adb push filename.mp3 /system/media/audio/ringtones
Click to expand...
Click to collapse
Try:
Code:
adb remount
That should fix the "read only" problem.
i'm not using adb... I'm using the second method which is in the terminal.
Do yourself a favor and go get Root Explorer from the market. It lets you move any file to anywhere.
Move your files to /system/media/audio/ringtones and remember to check to see if the files that are there are .ogg or .mp3. If they are .ogg just rename your files after you move them.
What you mean I have to rename the files after i move them?
What's the exact application name? I tried searching on market but could not find any.
bryant_16 said:
What's the exact application name? I tried searching on market but could not find any.
Click to expand...
Click to collapse
I like SUFBS but ES (or estrong) file explorer is good also. SUFBS cost a buck or 2 but I think it is worth it. Either way your phone needs to be rooted for this. You do have root right?
Yeah, phone is rooted. I tried ES Strong Explorer but cannot work, it says something about permission or something like that..
bryant_16 said:
What you mean I have to rename the files after i move them?
Click to expand...
Click to collapse
I'm not sure if it's a "hero thing" but sometimes the file extensions in the ringtones folder are not .mp3. They are .ogg. If you look into the folder and see .ogg files just change the extension and you'll be all good.
As for the apps. Look for "Root Explorer". I believe there are both free and paid options. The paid one isn't very much $$ so, considering how much easier it makes things, give up the loot and support a dev.
I tried searching under market, but cant find it..
id use terminal with cmds, would be a tad faster and a bit more reliable, in my opinion, but as of searching on your behalf i have found root explorer a paid version and estrongs free version by searching "root" while in the market. estrongs sounds unstable. If your going to pay for a good file explorer get SU file manager&terminal. (and...SAA?ror)
How do I use terminals? I tried but that say permission thingy..
Did you mount the system?
OK dude. If you're rooted I assume you have somebody's recovery. Boot to recovery and go into console (Alt+x). Now do this.
<enter>
mount /system <enter> (maybe mount /system/media if just /system doesn't work)
mount /sdcard <enter>
cp /sdcard/yourfolder/yourringtone.mp3 /system/media/audio/ringtones <enter>
reboot
You should be good to go.
Can I do that in terminal? As in one of the application in my HTC Dream?

[Q] [AOKP] Cannot access root files to install boot animation

So, I've rooted my captivate and have installed build 32 of aokp.
I'm trying to install a custom boot animation. However i cannot access /system/media from my computer and when i try to copy and paste the .zip from the sdcard, file manager won't let me. /data/local does not exist.
I should mention i'm running blue infinium.
Any help? I'm pretty sure i'm being stupid but i've tried everything i can think of and read a bunch of threads.
Thanks in advance,
JSP
jsb_front said:
So, I've rooted my captivate and have installed build 32 of aokp.
I'm trying to install a custom boot animation. However i cannot access /system/media from my computer and when i try to copy and paste the .zip from the sdcard, file manager won't let me. /data/local does not exist.
I should mention i'm running blue infinium.
Any help? I'm pretty sure i'm being stupid but i've tried everything i can think of and read a bunch of threads.
Thanks in advance,
JSP
Click to expand...
Click to collapse
Unless I'm mistaken, you actually want to put your boot animation in /system/media.
And if you have ADB installed, you can just reboot to recovery, hook up the USB cable, put your bootanimation.zip into the /platform-tools folder where ADB resides, and issue this command:
adb push bootanimation.zip /system/media/bootanimation.zip
If you don't have ADB, you'll need to get a root-level file manager (ES File Explorer, Root Explorer, etc) to move the file.
Noob mode activated:
I'm assuming ADB is an app, and the code i'm supposed to enter is entered on the phone through a terminal program?
Otherwise thanks, makes sense. Anyway to access /system files through windows explorer?
Thanks again
*EDIT* Also, thats what i've been trying to do with the file manager. But when the file is selected/cut/copied, i cannot access the root files. I have tried several different root file systems.
jsb_front said:
Noob mode activated:
I'm assuming ADB is an app, and the code i'm supposed to enter is entered on the phone through a terminal program?
Otherwise thanks, makes sense. Anyway to access /system files through windows explorer?
Thanks again
Click to expand...
Click to collapse
ADB is on the computer, you run it in terminal or command prompt. There isn't a way to access /system through windows explorer
Sent from my CM9 ICS i897 Captivate
korockinout13 said:
ADB is on the computer, you run it in terminal or command prompt. There isn't a way to access /system through windows explorer
Sent from my CM9 ICS i897 Captivate
Click to expand...
Click to collapse
Alright, thank you. Also, does terminal=cmd? I understand terminal can be on the phone, but i always thought, on windows anyway, that terminal is synonymous with command prompt.
Thank you all for the help
jsb_front said:
Noob mode activated:
I'm assuming ADB is an app, and the code i'm supposed to enter is entered on the phone through a terminal program?
Otherwise thanks, makes sense. Anyway to access /system files through windows explorer?
Thanks again
*EDIT* Also, thats what i've been trying to do with the file manager. But when the file is selected/cut/copied, i cannot access the root files. I have tried several different root file systems.
Click to expand...
Click to collapse
ADB is Android Debug Bridge - it's part of the Android SDK that you have to download and install from Google. It's a pretty handy tool to have.
As korockinout13 pointed out, no dice with the Windows Explorer seeing the root files, and terminal does equal cmd/command prompt.
With the explorer app on your phone, you'll have to look around and find a setting that will tell Android to mount your /system folder as read-write. I believe in Root Explorer there's a button near the top that switches read-only and read-write.
Looked around on explorer and couldn't find the setting. Root explorer costs 4$ and I've tried a couple others. All giving me the read only memory error. I'll just have to wait till I get home to do it over adb. Thanks for all the help.
root access wont let you "see" your root folders when you mount your phone as SD card.
adb is one of many options.
copy to sdcard, then use a root level manager to move
wait!! there was this on the portal today.... Quick ADB Pusher.. adb file pusher GUI
http://www.xda-developers.com/android/push-files-to-your-device-with-quick-adb-pusher/
Got it to work with Ghost Commander. There's an option to remount files as ro/rw.
Works great. Thanks for your help!
That bootanimation is screwed up - it's not zip, files are stored. It took me a while to figure it out.

[Q] Need way to get deeper root access to be able to move Nandroid deeper for CWM

Hi i created a Nandroid but the CWM will not see it because it is on the SD card. Unfortunately CWM's mounting doesn't work nor can i get down deep enough with a root explorer. Anything else i can do?
Thanks
Danw20 said:
Hi i created a Nandroid but the CWM will not see it because it is on the SD card. Unfortunately CWM's mounting doesn't work nor can i get down deep enough with a root explorer. Anything else i can do?
Thanks
Click to expand...
Click to collapse
To move the nandroid backup up one level without root, you can use ADB:
Code:
adb shell mv /sdcard/clockworkmod /mnt/shell/emulated
If you can't do that, you can boot to recovery (no need to mount anything) and run this command:
Code:
adb shell mv /data/media/0/clockworkmod /data/media/
Neither command seem to be working. The top one says failed on '/sdcard/clockworkmod' - Directory not empty. And the one in recovery just says device not found. I do have root but i need to be on the deepest directory because that is the only place unfortunately that you can restore Nandroids
No root explorer will show directories any lower than /. That is technically bottom but there is one even lower than that. Nandroids must be stored there to be recognised. I'm sure this canbe more than easily fixed by changing a line of code in cwm or is it more complex than that? I am s-off which may be the reason I can see that low.
Danw20 said:
No root explorer will show directories any lower than /. That is technically bottom but there is one even lower than that. Nandroids must be stored there to be recognised. I'm sure this canbe more than easily fixed by changing a line of code in cwm or is it more complex than that? I am s-off which may be the reason I can see that low.
Click to expand...
Click to collapse
I have never heard of a directory lower than /?
pivotraze said:
I have never heard of a directory lower than /?
Click to expand...
Click to collapse
In the ROM the lowest directory shown in /. But cwm you can get into an even lower one which has 3 I think folders in it. And the only way you can install a nandroid is if it is placed in that directory
The one below the 0 folder to be more specific
Shown as sdcard/0 in cwm
Danw20 said:
The one below the 0 folder to be more specific
Click to expand...
Click to collapse
No, /sdcard/0 is not the root directory of android. That is the root folder of your files
/ has way more.
pivotraze said:
No, /sdcard/0 is not the root directory of android. That is the root folder of your files
/ has way more.
Click to expand...
Click to collapse
Okay but is there a way to move a nandroid below the 0 folder?
??
Danw20 said:
??
Click to expand...
Click to collapse
how about adb pull?
No that doesn't seem to do anything either :/
ClockworkMod need to remove the folder restriction on nandroids, and let you choose the install location. Its a problem for devices like the One
Danw20 said:
No that doesn't seem to do anything either :/
ClockworkMod need to remove the folder restriction on nandroids, and let you choose the install location. Its a problem for devices like the One
Click to expand...
Click to collapse
not sure, what you mean, but maybe check this, if you wanna create a symlink: http://forum.xda-developers.com/showthread.php?t=1991657 (works just fine for me)
TWRP has issues with permissions, not CWM. AFAIK.
Are you on an older HBOOT? Because mounting of any kind doesn't work in recoveries at the moment, i did the ADB shell command in recovery and say no device found, did in the ROM and it works

[Q] Root Explorer no R/W option on /system/app

Hi,
just installed GALACTUSMOD 4.2 XXLT5, i wanted to push/move stock FMRADIO.APK and EMAIL.APK. I already installed Root Explorer to be able to push .apk. but i have one problem. /system has RW option, /system/app no RW option. i tried the other way of pushing using terminal yet still cant locate it. does anyone can fix this? or does anyone can make a tutorial to enable the RW option for /system/app so i could able to move apk's I wanted to have on my phone.
You can't locate what? Check in /preload/symlink/system/app folder. I still don't get what you are trying to achieve. Push apk to phone from pc or?
nokiamodeln91 said:
You can't locate what? Check in /preload/symlink/system/app folder. I still don't get what you are trying to achieve. Push apk to phone from pc or?
Click to expand...
Click to collapse
Hi sir,
Im trying to push Email.apk and FM.apk to GalactusMOD ROM, I'm using root explorer I can locate /preload/symlink/sysmtem/app and system/app but the prob is, there is no R/W option. I cant push or move those APKs. Hope you can help me. thank you
Not sure of the method you are using, but try this.
1. enable USB debugging. Connect phone to PC and open terminal / cmd.
2. run command adb devices to make sure the device is listed.
3. adb root.
4. adb remount
5. adb push Email.apk /system/app
then manually change the permission of the app using root explorer or use chmod command.
nokiamodeln91 said:
Not sure of the method you are using, but try this.
1. enable USB debugging. Connect phone to PC and open terminal / cmd.
2. run command adb devices to make sure the device is listed.
3. adb root.
4. adb remount
5. adb push Email.apk /system/app
then manually change the permission of the app using root explorer or use chmod command.
Click to expand...
Click to collapse
Hello sir,
I've read again all the details of GALACTUSMOD, it says
"My ROM no longer uses System/app! this has all been symlinked to Preload.
so any MODS/THEMES Etc need to be Preload ONLY!!!"
i guess im not gonna able to push or either move apk to system/app
You still can.
nokiamodeln91 said:
You still can.
Click to expand...
Click to collapse
anyway, I got kitkat email, and spirit fm unlocked. thanks for your response. i really dont know how to push apk. using adb no time to read about it. i just know root explorer. maybe someday if i got time. i really need my phone for my clients they're calling and texting.

[Q] How Check Full ROOT on Z1?

Hey Guys,
I got a simply question, I got root but I don't know if I got FULL ROOT, How to check that?
Yes, on Play Store there are 1000 of apps but I don't trust them.
Any commands from Terminal to Determine if I have Full Root?
eclyptos said:
Hey Guys,
I got a simply question, I got root but I don't know if I got FULL ROOT, How to check that?
Yes, on Play Store there are 1000 of apps but I don't trust them.
Any commands from Terminal to Determine is I have Full Root?
Click to expand...
Click to collapse
Uhm open a terminal and make a file in "/system" I guess. You can do that using the following command: "touch /system/roottest.txt".
Better answer provided here.
B1nny said:
Uhm open a terminal and make a file in "/system" I guess. You can do that using the following command: "touch /system/roottest.txt".
Click to expand...
Click to collapse
I executed that command but I don't get anything, not even the file in Device>System..
See the Pic..
eclyptos said:
I executed that command but I don't get anything, not even the file in Device>System..
See the Pic..
Click to expand...
Click to collapse
Get root in terminal first by typing
Code:
su
Then mount system as RW and make a directory by typing
Code:
mount -o remount,rw system
mkdir /system/test
or, mount system using root explorer and then do this
Code:
su
mkdir /system/test
Trust me, you have full root....
Ok.
I just Check in.
gregbradley said:
Get root in terminal first by typing
Code:
su
Then mount system as RW and make a directory by typing
adb shell mount -o remount,rw system
mkdir /system/test[/code]
Trust me, you have full root....
Click to expand...
Click to collapse
A bit confused here with that code....
adb shell mount -o remount,rw system
mkdir /system/test[/code]
It have to be like that in Terminal?
eclyptos said:
I just Check in.
A bit confused here with that code....
adb shell mount -o remount,rw system
mkdir /system/test[/code]
It have to be like that in Terminal?
Click to expand...
Click to collapse
Check his post again, he corrected himself.
I edited my post
@gregbradley
I think I have a problem, what you think? It tells me that system/test is Read-Only..
use root explorer to mount system then try the mkdir again
or just root explorer to mount system..as soon as you can do that you have root.....
Full root just means you keep root after a reboot and the security of the RIC has been disabled
gregbradley said:
use root explorer to mount system then try the mkdir again
or just root explorer to mount system..as soon as you can do that you have root.....
Full root just means you keep root after a reboot and the security of the RIC has been disabled
Click to expand...
Click to collapse
I am not familiar with that, which Root Explorer are you referring too?
eclyptos said:
I am not familiar with that, which Root Explorer are you referring too?
Click to expand...
Click to collapse
root explorer
look on the play store
or use any explorer that can gain root...and just modify something in system...change permission, delete or make a file...
if you just reboot your phone and run an app that requires root and it works then you have full root.
gregbradley said:
if you just reboot your phone and run an app that requires root and it works then you have full root.
Click to expand...
Click to collapse
ok...I will try...at the moment I was using ES File Explorer and it not allow me to make or paste any file in system folder...
..I will keep you updated...
eclyptos said:
ok...I will try...at the moment I was using ES File Explorer and it not allow me to make or paste any file in system folder...
Click to expand...
Click to collapse
then you have root, and if you reboot and can still do this you have "full" root
..I will keep you updated...
Click to expand...
Click to collapse
There is no need... I am really unsure on why you are asking this. Seeing as you have posted loads of help posts about this I would expect you to know the difference and know that you have full root.
Trust me, you have it.
eclyptos said:
ok...I will try...at the moment I was using ES File Explorer and it not allow me to make or paste any file in system folder...
..I will keep you updated...
Click to expand...
Click to collapse
If you are not allowed to modify system that's because is not mounted as Rw. Go to ES, make sure you have turned on root explorer and then click on root explorer. A pop up will appear, then select where says mount system as Rw.
gregbradley said:
then you have root, and if you reboot and can still do this you have "full" root
Click to expand...
Click to collapse
This I don't get it...
gregbradley said:
There is no need... I am really unsure on why you are asking this. Seeing as you have posted loads of help posts about this I would expect you to know the difference and know that you have full root.
Trust me, you have it.
Click to expand...
Click to collapse
I know, sometime I cooking my brain instead of my phone and I missing stupid things...and learn small thing.
luis4ever said:
If you are not allowed to modify system that's because is not mounted as Rw. Go to ES, make sure you have turned on root explorer and then click on root explorer. A pop up will appear, then select where says mount system as Rw.
Click to expand...
Click to collapse
You see! OMG! That was the stupid thing...sooo stupid! You are the man. Now everything is working.
ES was granted by Su and it now allow me to modified System files and folders.
After executing the commands in Terminal I find a new folder named "test" in System. Thanx to @gregbradley
Thank you all!
You see! OMG! That was the stupid thing...sooo stupid! You are the man. Now everything is working.
ES was granted by Su and it now allow me to modified System files and folders.
After executing the commands in Terminal I find a new folder named "test" in System.
Thank you all!
Click to expand...
Click to collapse
Glad you solved the problem
wow....
gregbradley said:
wow....
Click to expand...
Click to collapse
lol...

Categories

Resources