Help? copying files and folders to / - Samsung Galaxy Nexus

Hi, i have been trying to copy folders and a few files to the root of my Samsung galaxy nexus. or * / * or where the folders such as system, sbin, sdcard are. when ever i try to do so it copy's, stays there, but when i restart my phone seems to delete its self or disappear?! please does anyone know how to fix this? thanks

First of all, what are you trying to do?
Secondly, on android, / is actually the ramdisk (nothing copied there is persistent).
Sent from my Galaxy Nexus using Tapatalk 2

geoffcorey said:
First of all, what are you trying to do?
Secondly, on android, / is actually the ramdisk (nothing copied there is persistent).
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
well i have a script im trying to run, which involves me going into my terminal and firstly doing
Su
... then
sh test.sh (my test script)
and the only way i can get the terminal to find the directory so it runs is if i have it in the "ramdisk" which of course deletes after a reboot :/ so is their anywhere more permanent i could put it. if you get what im saying. thanks very much

What are you really trying to do though? You say you're trying to run a script, but I have no idea why or what your end need is.
So what is it you are trying to do?
Sent from my Galaxy Nexus using Tapatalk 2

geoffcorey said:
What are you really trying to do though? You say you're trying to run a script, but I have no idea why or what your end need is.
So what is it you are trying to do?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
im trying to get this to work https://github.com/kosborn/p2p-adb

hectorz321 said:
im trying to get this to work https://github.com/kosborn/p2p-adb
Click to expand...
Click to collapse
Have only read the part with the commands, not the whole project. I dislike adding files to the system folders.
A solution could be a cd to change directory to the sd card and run the script from a /sdcard folder.

-star- said:
Have only read the part with the commands, not the whole project. I dislike adding files to the system folders.
A solution could be a cd to change directory to the sd card and run the script from a /sdcard folder.
Click to expand...
Click to collapse
yeah that's what i have ended up doing. as previously when i tried to one way or another using cd command, the script wouldn't run, however after much googling, app installing, command windowig and rom changing i have just about got it to work thanks very much everyone! this thread can be closed now.

Related

Vanilla Lockscreen on Sense?

How can I get that? I like the volume slider, since I have to switch to vibrate the other day (i know it goes to silent but I have an app to make it vibrate instead). If anybody has some tips or a way that'd be helpful.
buffnutz1 said:
How can I get that? I like the volume slider, since I have to switch to vibrate the other day (i know it goes to silent but I have an app to make it vibrate instead). If anybody has some tips or a way that'd be helpful.
Click to expand...
Click to collapse
Just delete htclockscreen.apk
Sent from my ADR6300 using XDA App
I'm on the Skyraider rom, don't know if that makes a difference but I'm deleting it with root explorer then the phone shuts off powers up and the file is right back there again.
Careful if you're on the stock rom and delete the default lockscreen apk, I've heard it makes the lookscreen look really bad. But it works on other roms.
Sent from my HTC Incredible
It looks best on 2.2 but it works on 2.1 just it looks messed up
Sent from my ADR6300 using XDA App
buffnutz1 said:
I'm on the Skyraider rom, don't know if that makes a difference but I'm deleting it with root explorer then the phone shuts off powers up and the file is right back there again.
Click to expand...
Click to collapse
Delete it via adb on your computer. I believe it is rm /system/app/htclockscreen.apk
Sent from my HTC Incredible
i would just use astro file mgr on the phone, remove the files from the rom, and flash it again with all changes applied
Sent from my ADR6300 using XDA App
The only way you can delete a file in system, is if you've used unrevoked forever to unlock nand. Then in root explorer, change system to rw (read/write), then I'd rename the app instead of deleting just in case you need to put it back.
Sent from Incredible using Tapatalk.
i meant just to edit the rom.zip on the sd card and then just reflash the rom
Sent from my ADR6300 using XDA App
jdkoreclipse said:
i would just use astro file mgr on the phone, remove the files from the rom, and flash it again with all changes applied
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I don't think this is possible unless he has Forever installed cause what.he described happened to me like 2 weeks ago, I had to use adb
Sent from my HTC Incredible
Didn't see that, but yeah that will work too. Either way will work just fine.
Sent from my HTC Incredible
Please don't Delete files...
TheWhiteBandito said:
Delete it via adb on your computer. I believe it is rm /system/app/htclockscreen.apk
Sent from my HTC Incredible
Click to expand...
Click to collapse
Please don't rm files from your phone...
Why not
Boot in to recover
Mount System
From you computer (if you on Linux or MAC open a terminal window from Windows open a CMD window) at the prompt type:
ADB Shell
cd /system
mkdir app.backup
mv /system/app/htclockscreen.apk /system/app.backup
You never know when you may need one of files you "RM" into oblivion...
Sent from my MAC looking at my Sky Raider 2.5.2 Incredibly Rooted Phone..
oldman_58 said:
Please don't rm files from your phone...
Why not
Boot in to recover
Mount System
From you computer (if you on Linux or MAC open a terminal window from Windows open a CMD window) at the prompt type:
ADB Shell
cd /system
mkdir app.backup
mv /system/app/htclockscreen.apk /system/app.backup
You never know when you may need one of files you "RM" into oblivion...
Sent from my MAC looking at my Sky Raider 2.5.2 Incredibly Rooted Phone..
Click to expand...
Click to collapse
Yes I aplogize for the poor suggestion, moving the file to an alternate folder is a much better solution.
Sent from my HTC Incredible
Ok, I'm trying to do either way but it say it's a read only file. how do I change that?
buffnutz1 said:
Ok, I'm trying to do either way but it say it's a read only file. how do I change that?
Click to expand...
Click to collapse
If you're in recovery, you have to mount system under the partions menu first.
Edit: or might be sd card & storage menu depending on version of clockworkmod you're running.
Sent from Incredible using Tapatalk.
I've used better terminal emulator to remove the lock screen.
Use this line:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
To mount system.
Then:
cd system/app
rm HtcLockScreen.*
(Case sensitive)
Worked great, had to reboot though and it stuck. Until then the old one stayed.
Thanks to adrynalyne for the mount line.
Sent from my ADR6300 using XDA App
Ok did exactly what you said, then like said it would it rebooted. Comes back up as the HTC one. Am I the only it's done this for? Why won't it just erase?
I just removed mine with adb and it worked without a hitch. Word of caution though if you use your alarm, you need install another clock app otherwise you won't be able to turn the alarm off without pulling the battery. I just installed the stock android desk clock and all is well again.
Sent from somewhere
lgldrgdlr said:
I just removed mine with adb and it worked without a hitch. Word of caution though if you use your alarm, you need install another clock app otherwise you won't be able to turn the alarm off without pulling the battery. I just installed the stock android desk clock and all is well again.
Sent from somewhere
Click to expand...
Click to collapse
Where did you find it? I usually use my alarm clock. :/
I can upload it at some point today. Not sure when I'll be home to do so though.
Sent from somewhere

Removing Apps and Audio files

Hello devs.. i am trying to use adb while im in the clockwork recovery screen to remove some apps and some unwanted audio files. Everything is ok as far as being rooted and getting a number sign and the adb commands. The issue im having is that i cannot cd to the app folder. I can cd to the system folder and sdcard folders with no problem. But when i cd into the system, and then i use the list command "ls" to show me what im working wit it says app. But when i try " cd /system/app or cd /app " it says directory doesnot exist. Is there something im doing wrong here? I have installed, removed, pushed and pulled many apps using abd perfectly and i am not a noob.. but it seems like its a whole new ball game when it comes to the slide.. the super user tasks managers no longer work, a dev named roman told me they no longer work and i would have to use adb in clockwork recovery mode to execute any changes to the phones files. But im stuck at this point. Any suggestions? Also i have tried to remove the files directly with a command like " adb rm /system/app/Gallery3D.apk or rm /system/app/Gallery3D.apk" with no results. Is there a way using adb to delete the contents of an entire directory without deleting the directory itself? Thanks in advance devs
bbbblack said:
Hello devs.. i am trying to use adb while im in the clockwork recovery screen to remove some apps and some unwanted audio files. Everything is ok as far as being rooted and getting a number sign and the adb commands. The issue im having is that i cannot cd to the app folder. I can cd to the system folder and sdcard folders with no problem. But when i cd into the system, and then i use the list command "ls" to show me what im working wit it says app. But when i try " cd /system/app or cd /app " it says directory doesnot exist. Is there something im doing wrong here? I have installed, removed, pushed and pulled many apps using abd perfectly and i am not a noob.. but it seems like its a whole new ball game when it comes to the slide.. the super user tasks managers no longer work, a dev named roman told me they no longer work and i would have to use adb in clockwork recovery mode to execute any changes to the phones files. But im stuck at this point. Any suggestions? Also i have tried to remove the files directly with a command like " adb rm /system/app/Gallery3D.apk or rm /system/app/Gallery3D.apk" with no results. Is there a way using adb to delete the contents of an entire directory without deleting the directory itself? Thanks in advance devs
Click to expand...
Click to collapse
You probably forgot to mount /system. You can do so via the CWM Recovery partitions menu.
ohhhhhh...ok thanks alot.. i did miss that.
bbbblack said:
ohhhhhh...ok thanks alot.. i did miss that.
Click to expand...
Click to collapse
Better way of doing it is using 7zip and removing/addin files that way,than flashin that rom,its cleaner and faster.
lviv73 said:
Better way of doing it is using 7zip and removing/addin files that way,than flashin that rom,its cleaner and faster.
Click to expand...
Click to collapse
Not sure I agree, but to each their own.
This is kind of a cross post from the Apps forum, but I am getting no response there. CM6 uses a different music app than the stock HTC player, and the stock player works with the included headphones that have the control buttons. Which ROM can I steal the HTC player from and push back to my phone?
fermunky said:
This is kind of a cross post from the Apps forum, but I am getting no response there. CM6 uses a different music app than the stock HTC player, and the stock player works with the included headphones that have the control buttons. Which ROM can I steal the HTC player from and push back to my phone?
Click to expand...
Click to collapse
You could try to push the HTCMusic app from the OTA update. But I think it might be odexed so you might run into a problem. I haven't checked it out yet
Sent from my SuperFast Slide using XDA App
fermunky said:
This is kind of a cross post from the Apps forum, but I am getting no response there. CM6 uses a different music app than the stock HTC player, and the stock player works with the included headphones that have the control buttons. Which ROM can I steal the HTC player from and push back to my phone?
Click to expand...
Click to collapse
I doubt this will work with CM6 but it is worth a try. It says its for 2.1 and I havent tried it but I thought I would throw it out as a idea. http://forum.xda-developers.com/showthread.php?t=679707
lstevens86 said:
You could try to push the HTCMusic app from the OTA update. But I think it might be odexed so you might run into a problem. I haven't checked it out yet
Sent from my SuperFast Slide using XDA App
Click to expand...
Click to collapse
Yeah, I tried pushing the HtcMusic.apk/.odex files to the /system/app folder with no luck (I do not know what being odex'ed means to being able to do this). Any other thoughts?
HebrewToYou said:
You probably forgot to mount /system. You can do so via the CWM Recovery partitions menu.
Click to expand...
Click to collapse
Do you think it's best to do it from clockwork recovery? What I have been doing is just doing a delete from inside the rom with win rar before installing.
You can use Android Commander which also works for the slide. You just need to be in recovery with both your system and cache mounted so it will make changes otherwise it'll look like it did on the computer but actually when you restart the program you find it did nothing. lol Don't forget to open the program with Administrator Rights. I think the program makes things much easier.
http://forum.xda-developers.com/showthread.php?t=597098
thanks the commander worked perfectly! any reason why apps that i push dont show up in the phones app list when i boot up again?

I thought ICS would enable us to transfer apps to SD Card

Or is that an Acer issue?
Ptackley said:
Or is that an Acer issue?
Click to expand...
Click to collapse
Does kinda suck that you can't do that by default. If it's any consolation...why not do the memory swap from Crossix (if you haven't done so alreaedy)? I use a 32 gb with no issues at all on any rom...it takes all of two seconds...
The mod by Crossix would be great but I'm not rooted and don't really have the confidence to try.
Ptackley said:
The mod by Crossix would be great but I'm not rooted and don't really have the confidence to try.
Click to expand...
Click to collapse
You have nothing to worry about man...the tool from this site makes it completely simple...
but its up to you...keep reading the tutorials/guides in each of the post and you'll see that most of your concerns have been probably asked and answered...
I think the move to sdcard is a gingerbread thing. HC and ICS does not have this feature. You will have to root and use crossix mod for HC or the other ICS method derived from crossix mod.
Sent from my Transformer Prime TF201 using Tapatalk 2
aznmode said:
I think the move to sdcard is a gingerbread thing. HC and ICS does not have this feature. You will have to root and use crossix mod for HC or the other ICS method derived from crossix mod.
Sent from my Transformer Prime TF201 using Tapatalk 2
Click to expand...
Click to collapse
Maybe this feature is disabled in tablet versions of ICS? My Nexus S phone is running ICS and I still can move apps to sdcard (usb storage) which is the internal sdcard like what this tablet has.
Sent from my A100 using xda premium
Maybe I will try it. I do read a lot, and it seems there are many different ways to root. But I also have spend time on the Droid Razr site so maybe I get confused between all the info between the two.
Can you tell me specifically the tool you are referring to that makes rooting the absolute easiest possible?
Thanks!
Ptackley said:
Maybe I will try it. I do read a lot, and it seems there are many different ways to root. But I also have spend time on the Droid Razr site so maybe I get confused between all the info between the two.
Can you tell me specifically the tool you are referring to that makes rooting the absolute easiest possible?
Thanks!
Click to expand...
Click to collapse
Wrong thread?
But here you go.
If your tab is on ICS..
http://forum.xda-developers.com/showthread.php?p=23285307
If your tab is on HC..
http://forum.xda-developers.com/showthread.php?p=16540743
Sent from my Nexus S using xda premium
App to SD
I have been trying to use the mod by Crossix in order to move apps to my sd, but am so far unable to do so.
Using:
Acer Iconia A100
Android Version: 4.0.3
Kernel Version: 2.6.39.4-ICSOCTest+
Build Number: FLEX-100-REAPER-RF1-EXTREME-EDITION
I noticed that in the direction for installing the mod by Crossix, it shows the file as install_recovery.sh in the directions but is referenced as install-recovery.sh in a later/earlier post. The file I downloaded is the latter, install-recovery.sh
Someone please help?
nhedgpeth said:
I have been trying to use the mod by Crossix in order to move apps to my sd, but am so far unable to do so.
Using:
Acer Iconia A100
Android Version: 4.0.3
Kernel Version: 2.6.39.4-ICSOCTest+
Build Number: FLEX-100-REAPER-RF1-EXTREME-EDITION
I noticed that in the direction for installing the mod by Crossix, it shows the file as install_recovery.sh in the directions but is referenced as install-recovery.sh in a later/earlier post. The file I downloaded is the latter, install-recovery.sh
Someone please help?
Click to expand...
Click to collapse
It's install-recovery.sh and sits in /system/etc with permissions of
XXX
XXX
XXO
Works fine for me on any rom on the acer, and I've tried them all.
The concept is it tricks the Acer rom, by design it runs this script every boot to replace the stock recovery if a non stock or outdated recovery is detected, crossix just uses that design to run the mount swap instead, but can be used on any ROM, like CM9, with some slight changes.
After checking, that file is not in my tab anywhere... I have an init.goldfish.sh in my /etc folder, but no install-recovery.sh
my init.goldfish.sh file permissions are:
RWE
xox
xox
ooo
any suggestions? I'm down to 700mb of internal memory...
nhedgpeth said:
After checking, that file is not in my tab anywhere... I have an init.goldfish.sh in my /etc folder, but no install-recovery.sh
my init.goldfish.sh file permissions are:
RWE
xox
xox
ooo
any suggestions? I'm down to 700mb of internal memory...
Click to expand...
Click to collapse
The file has to be added on modded roms like flex reaper, its removed so recovery isn't overwritten.
Tapatalked from my Galaxy S II.
Ahh, OK. So, copy & paste to root of internal storage, copy to /etc & rename, adjust permissions then reboot and wait for results...? Is there anything else? I did try to adjust permissions on the external SD, but can't. Also, when rebooting, I'm shutting down and then powering back on, is that right?
Sent from my A100 using xda premium
nhedgpeth said:
Ahh, OK. So, copy & paste to root of internal storage, copy to /etc & rename, adjust permissions then reboot and wait for results...? Is there anything else? I did try to adjust permissions on the external SD, but can't. Also, when rebooting, I'm shutting down and then powering back on, is that right?
Sent from my A100 using xda premium
Click to expand...
Click to collapse
Shouldn't need to rename it, and yes it goes into /system/etc. You can just reboot, you don't need to power down. Apps like quick boot will let you reboot without powering down, no clue why Acer left that option off.
So, copy install-recovery.sh to /system/etc. Check and set permissions like I said before, X checked O not checked, save permissions, reboot. Once you're back up wait about 30-45 seconds then check storage for internal to show your new storage.
Tapatalked from my Galaxy S II.
It worked!!!
Thanks for the help! renaming it was obviously my misstep in the process.
Now to move everything from "external" to "internal" storage.
Thanks again for the Help!
I just did the Crossix mod and it worked fine for the most part. I lost all of my pics and videos. Also, when I try to change the Camera to the Storage Source of SD Card i get "insert SDcard before using the camera". Has anyone experienced this issue before and is there a fix?
Thanks.
gerkym said:
I just did the Crossix mod and it worked fine for the most part. I lost all of my pics and videos. Also, when I try to change the Camera to the Storage Source of SD Card i get "insert SDcard before using the camera". Has anyone experienced this issue before and is there a fix?
Thanks.
Click to expand...
Click to collapse
Didn't mention which ROM this is on, that does play a part in it.
Sent from my Galaxy Nexus using Tapatalk 2

Confused with the file structure on my phone [picture]

Can someone help my understand what's going on with my file structure?
This is what I see in CWM, but I can't access the clockworkmod folder when connected to my computer or in Android.
It seems everything related to android is within /0.
So basically, how do I transfer my CWM backups off my phone? Thanks
Use adb to pull the folder
Sent from my Nexus 4 using Tapatalk 2
3rdstring said:
Use adb to pull the folder
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
Any reason why my phone is partitioned like this? Or is this how it is on the gnex? The cwm folder was within the android partition on my Nexus S.
cpufreak3 said:
Any reason why my phone is partitioned like this? Or is this how it is on the gnex? The cwm folder was within the android partition on my Nexus S.
Click to expand...
Click to collapse
It's 4.2+ file system. Administrator for multiuser is /0.
063_XOBX said:
It's 4.2+ file system. Administrator for multiuser is /0.
Click to expand...
Click to collapse
Ah okay makes sense. Thanks

Galaxy nexus custom rom problem

I tried to install a custom rom on my Gnex(codename android) and i'm stuck at some point. I enter in recovery mode,do a backup,wipe data and when i select install zip from sdcard i can't find the .zip file. What's the problem ?
Sorry for my bad english.
Just put the zip file in the "sdcard" without unziping it.
joooe said:
Just put the zip file in the "sdcard" without unziping it.
Click to expand...
Click to collapse
As you probably now, gnex doesn't have a micro sd card slot. I just have "internal storage", i watched a tutorial and did exactly like that guy.
Search youtube for "How To Load a Custom ROM on the Samsung Galaxy Nexus" i'm not allowed to post url's
Adb works in recovery, if you used fastboot to unlock the bootloader of your device you should have adb:
Code:
adb push <rom_name.zip> /sdcard/
In a terminal/CMD on your computer with your device plugged in
R: Galaxy nexus custom rom problem
http://forum.xda-developers.com/showthread.php?t=1529058
From Gnex with Tapatalk 2
I think he is really new to the Android platform and gnex,
Exactly like he said dont unzip
Sent from my Galaxy Nexus using xda app-developers app
I'm not REALLY new..
I have my phone unlcoked and rooted. I tried with adb push but it doesn't work. Any other solutions ? I did not unzip it.
When you select install zip from sdcard, do you get a list of all your folders on your SD card? Do you know how to navigate to the location of your .zip? If it doesnt show up, then your either in the wrong location or its not a .zip file. Thats really the only two things it could be.
No
I don't have a list of all my folders. I'm pretty sure i'm not in the wrong location and yes,it is a zip file.
Xhexus said:
I don't have a list of all my folders. I'm pretty sure i'm not in the wrong location and yes,it is a zip file.
Click to expand...
Click to collapse
Well something is wrong if you aren't getting a list of all your folders on your SD card. What exactly happens when you select "install from SD card"? Just a blank screen?
Sounds like he wiped /data instead of doing a factory reset
Sent from my Galaxy Nexus
Xhexus said:
I have my phone unlcoked and rooted. I tried with adb push but it doesn't work. Any other solutions ? I did not unzip it.
Click to expand...
Click to collapse
What do you mean it "doesn't work"? What error comes up?
Sent from my Galaxy Nexus using Tapatalk HD

Categories

Resources