Moving a file with terminal emulator - Eee Pad Transformer General

I really need some help with moving a file to system/app
Not good at this kind of stuff.
Its in the root of my SD card
Sent from my SGH-T959 using XDA App

Code:
su
mv /Removeable/MicroSD/file.whatever /system/app/
Easy peezy
sassafras

Hahah thanks. Another easy question, any way to turn wifi off when you put in sleep mode? Big battery saver. Thanks
Sent from my SGH-T959 using XDA App

gobluewolverines4 said:
Hahah thanks. Another easy question, any way to turn wifi off when you put in sleep mode? Big battery saver. Thanks
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Go to settings -> wireless and networks -> wifi sleep policy
sassafras

Ok...noob here..what is the purpose of making at app a "system app"?
And then another question comes to mind; can you go back and make one of those system apps just a regular old app?

rpavich said:
Ok...noob here..what is the purpose of making at app a "system app"?
And then another question comes to mind; can you go back and make one of those system apps just a regular old app?
Click to expand...
Click to collapse
System apps are essentially going to be 'firmware' because unless you're rooted (which is not by design) they cannot be modified. If you make an app a system app, it theoretically can run better, though that is debatable, it will survive factory wipes and cannot be accidentally deleted. What you lose though is the ability to upgrade it in the market.
In all, it's not really necessary 90% of the time. The easiest way to make an app a system app, if you're interested, is to use Titanium Backup Pro. Not only will it copy the .apk over, but it will reassign the permissions of its /data folder as well.
sassafras

Thank you very much Sassafrass....that was informative.

sassafras_ said:
Code:
su
mv /Removeable/MicroSD/file.whatever /system/app/
Easy peezy
sassafras
Click to expand...
Click to collapse
Ive attempted this from the /sdcard/ and /Removable/MicroSD/
both attemps fail with a msg of "cross device link"
And suggestions???

Drukan said:
Ive attempted this from the /sdcard/ and /Removable/MicroSD/
both attemps fail with a msg of "cross device link"
And suggestions???
Click to expand...
Click to collapse
Cross device link occurs when you're attempting to move a file across storage devices due to the way mv works (it only rereferences the inode, not moving the actual data). Instead, use cp to copy it to the sd.

LightI3ulb said:
Cross device link occurs when you're attempting to move a file across storage devices due to the way mv works (it only rereferences the inode, not moving the actual data). Instead, use cp to copy it to the sd.
Click to expand...
Click to collapse
Exactly.
More specifically though, the mv binary included with android. The GNU mv tool included in any modern linux can tell if the data needs to be moved to different mounted devices and will do it if need be.
sassafras

Related

Deleting Bloatware ERROR!!

Im new to forum but Ive been trolling for the past couple days. I currently rooted my Vibrant with One Click GalaxyRooter. Then purchased Root Explorer to view the hidden files and folders that I need to get to in order to remove some of the stock .apk and odex files.
Im currently in the /system/app directory and the first thing that I want to remove is that avatar icon and files. I long press the file in root explorer to delete it and it allows me to. Only problem is that when I go back or refresh the directory everything is still there even when I reboot my phone.
Any suggestion.
AnthonyJFranks said:
Im new to forum but Ive been trolling for the past couple days. I currently rooted my Vibrant with One Click GalaxyRooter. Then purchased Root Explorer to view the hidden files and folders that I need to get to in order to remove some of the stock .apk and odex files.
Im currently in the /system/app directory and the first thing that I want to remove is that avatar icon and files. I long press the file in root explorer to delete it and it allows me to. Only problem is that when I go back or refresh the directory everything is still there even when I reboot my phone.
Any suggestion.
Click to expand...
Click to collapse
When using Root Explorer, on the top part of the screen, press [Mount R/O] and try again. I think that might solve the issue. Post up the results!
Why didn't you just uninstall the files via titanium backup?
Masterâ„¢ said:
Why didn't you just uninstall the files via titanium backup?
Click to expand...
Click to collapse
Forget what I said, use Mater's method. lol
I do see the Mount R/O in the top right hand section of the screen and I pressed it but it seems like it didnt do anything. It just shows my memory used / free and r/w [ Mount R/O]
I tried deleting a file still was there when I came back into the directory
How do I access the file directory in Titanium Backup
AnthonyJFranks said:
How do I access the file directory in Titanium Backup
Click to expand...
Click to collapse
You don't access the file directory. Titanium Backup will show you a list of ALL apps installed. You simply click and press uninstall. Simple, no fuss. You can even make a backup before you uninstall it in case you need it later. Done.
Use Titanium Backup like everyone said, I also had the same problem with other Root Explorers. Also be sure to delete the .zip file because it might cause problems later. Also do you know what trolling means? I think you meant lurking, because trolling implies you've been trying to get people angry.
I didn't even notice he said he had been trolling LOL. Get back troll! My brain automatically assumed lurking.
AnthonyJFranks said:
Im new to forum but Ive been trolling for the past couple days. I currently rooted my Vibrant with One Click GalaxyRooter. Then purchased Root Explorer to view the hidden files and folders that I need to get to in order to remove some of the stock .apk and odex files.
Im currently in the /system/app directory and the first thing that I want to remove is that avatar icon and files. I long press the file in root explorer to delete it and it allows me to. Only problem is that when I go back or refresh the directory everything is still there even when I reboot my phone.
Any suggestion.
Click to expand...
Click to collapse
Your system is set to read only.
Follow the instructions found in this post (forgive me i'm too new to post links, and i want to give credit to the solution):
hxxp://forum.xda-developers.com/showpost.php?p=8643744&postcount=6
Code:
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
Run the command from terminal, and you should then be able to delete the files that you want.
Here do this I had this happen awhile back this worked
AustinKnight45 said:
Download busybox from market then run it and update it then after it updates and you have the latest busybox go back to root explorer and delete the bloat ware dont know why this works but it does.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
AustinKnight45 said:
Here do this I had this happen awhile back this worked
Click to expand...
Click to collapse
sentences without periods are hard to read.... ha
This didnt work
Sent from my SGH-T959 using XDA App
eatspaper said:
Your system is set to read only.
Follow the instructions found in this post (forgive me i'm too new to post links, and i want to give credit to the solution):
hxxp://forum.xda-developers.com/showpost.php?p=8643744&postcount=6
Code:
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
Run the command from terminal, and you should then be able to delete the files that you want.
Click to expand...
Click to collapse
I tried this and it didn't work as well I got a error message that said operation not permitted
Sent from my SGH-T959 using XDA App
Any suggestion on whats going on, I know its rooted the super user always pops up when ever a couple apps or on
Sent from my SGH-T959 using XDA App
AnthonyJFranks said:
I tried this and it didn't work as well I got a error message that said operation not permitted
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Did you SU in the terminal first before you ran the command?

[Q] .sh script help

Hey guys, need some help with this one from some of you with more android/linux experience than me.
In my continuing quest to make Blackhole as customizable as possible I've been working on a way for users to easily install paid apps (legally downloaded of course), and stuff that I don't have available in rom manager in one easy step at the same time the rom is installed. In pursuit of this goal I've found that it's possible for the update-script file inside a clockworkmod zip to call a script in the zip as well. I've gotten it to say it's run the script, but it doesn't do what it's supposed to. here's what i've got:
#! /bin/
busybox cp /sdcard/app/* /system/app/
When I type the command into a terminal on the phone it works. When I open an adb shell and type "bash install.sh" it works. But when I get the update.zip to run the script, or run it in root explorer it just says it's run it, but doesn't do anything.
Is there something I'm missing about how to call the script? Do I need to somehow add the bash program to the zip file so it can run the script right? Has anyone ever done something like this who can point me in the right direction?
do you have an output you can show us?
Sent from my SCH-I500 using XDA App
This is a shot in the dark but does writing to /system/app require root permissions? It could be that you've given your terminal app root, so it runs under su. But when the script is being executed it does not have root and fails, but perhaps the output is being held back a bit and you're not seeing the permission denied.
Steve_ ?!
whoa, didn't expect it to be you of all people
Anyhoo, this is a bit off topic, but I've got a small request, can you somehow make BlackHole 2.4 an option on Rom manager? I don't have DL09 so I can't use 3.0, but I really like the ability to select everything to customize, instead of me going and installing one thing at a time....
Why not just add the following to the end of the update-script:
Code:
copy_dir /sdcard/app SYSTEM:
Also, is the SDCard mounted by default when the phone boots to recovery? If it isn't, or it isn't mounted while the update is processing, that will also cause the problem.
wizang said:
This is a shot in the dark but does writing to /system/app require root permissions? It could be that you've given your terminal app root, so it runs under su. But when the script is being executed it does not have root and fails, but perhaps the output is being held back a bit and you're not seeing the permission denied.
Click to expand...
Click to collapse
Could very well be, it's not showing me any output when i run it the two ways it doesn't work, just says it's been run.
vegittoss15 said:
Steve_ ?!
whoa, didn't expect it to be you of all people
Anyhoo, this is a bit off topic, but I've got a small request, can you somehow make BlackHole 2.4 an option on Rom manager? I don't have DL09 so I can't use 3.0, but I really like the ability to select everything to customize, instead of me going and installing one thing at a time....
Click to expand...
Click to collapse
Haha, caught me. I was trying to remain incognito Yeah, i'll get 2.4 loaded back up on rom manager for you today. But if you flash 3.0 it will upgrade you to DL09 and the DJ05 kernels and modem are compatible, or at least no one i know of has had issues.
imnuts said:
Why not just add the following to the end of the update-script:
Code:
copy_dir /sdcard/app SYSTEM:
Also, is the SDCard mounted by default when the phone boots to recovery? If it isn't, or it isn't mounted while the update is processing, that will also cause the problem.
Click to expand...
Click to collapse
sdcard is mounted when you go to recovery, because it's got to access the update.zip file on it to install anything. I'll try your code, do you know what to put after SYSTEM: to make it go to the /app directory? thanks for the idea, it's a different way to go, i didn't think about the fact the update-script could access the device if you don't use the "package" tag.
Don't you need to add "sh" to the bin directory and define the script as so:
#! /bin/sh
if you want it to execute properly..
dcow90 said:
Don't you need to add "sh" to the bin directory and define the script as so:
#! /bin/sh
if you want it to execute properly..
Click to expand...
Click to collapse
normally yes, but there doesn't seem to be a /bin/sh directory on my fascinate, only /bin and that's where the cp and mv and cat, etc. are.
I made a script to do this forever ago on my G1 when it first came out... Let me see if I can find it.
This has been done lots of times before. If you look around on xda there are some backup scripts which do the same thing.
Sent from my SCH-I500
imnuts said:
Why not just add the following to the end of the update-script:
Code:
copy_dir /sdcard/app SYSTEM:
Also, is the SDCard mounted by default when the phone boots to recovery? If it isn't, or it isn't mounted while the update is processing, that will also cause the problem.
Click to expand...
Click to collapse
Well I gave that a shot, and i think it could work, but the recovery wouldnt do it. it says "non-package source path not yet supported" good idea tho.
yutsoku said:
I made a script to do this forever ago on my G1 when it first came out... Let me see if I can find it.
Click to expand...
Click to collapse
If you can that would be great.
n0yd said:
This has been done lots of times before. If you look around on xda there are some backup scripts which do the same thing.
Sent from my SCH-I500
Click to expand...
Click to collapse
I spent a good bit of time searching and most of the scripts I found were much more complex than what i need, or were written to run on a computer, which i've already done.
sonofskywalker3 said:
normally yes, but there doesn't seem to be a /bin/sh directory on my fascinate, only /bin and that's where the cp and mv and cat, etc. are.
Click to expand...
Click to collapse
Thats not the point. You need to set a shell interpreter, not a path. Cwm uses busybox sh, which is in /bin in recovery mode. Google search shebang
Sent from my SCH-I500 using XDA App
jt1134 said:
Thats not the point. You need to set a shell interpreter, not a path. Cwm uses busybox sh, which is in /bin in recovery mode. Google search shebang
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
Going to go ahead and parade my stupidity in front of everyone here:
so does that mean i'm right using #! /bin/ or that it should be #! /bin/sh/ or something else entirely? I'm so confused.
sonofskywalker3 said:
Going to go ahead and parade my stupidity in front of everyone here:
so does that mean i'm right using #! /bin/ or that it should be #! /bin/sh/ or something else entirely? I'm so confused.
Click to expand...
Click to collapse
#!/bin/sh for scripts in recovery. #!/system/bin/sh for scripts in android.
Sent from my SCH-I500 using XDA App

Deactivate the screenshot button

Hello dear Samsung Tab Lovers ;-)
I have a question for the touchwhiz firmware of the Samsung Galaxy Tab 10.1.
Can someone tell me how to deactivate the screenshot button in the task bar?
I just hate this button cause I always accidently press it.
Is there a way to get ride of it??
The same question
Thanks!
uninstall screencaptureservice.apk via root explorer (system/app) or titanium backup
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to General
Can this be done using adb commands?
paradoxni said:
Can this be done using adb commands?
Click to expand...
Click to collapse
Just do it via root explorer. Its on sale for.99 cents today from amazon. Its a one day sale, so get in on it, its a must have app...
Sent from my Galaxy Tab!
task650 said:
uninstall screencaptureservice.apk via root explorer (system/app) or titanium backup
Click to expand...
Click to collapse
When we delete iit, will the menu icon slide over or will there be a gap?
Sent from my Galaxy Tab!
mroneeyedboh said:
When we delete iit, will the menu icon slide over or will there be a gap?
Sent from my Galaxy Tab!
Click to expand...
Click to collapse
The button will still be there, just won't take the screenshots
Sent from my GT-P7510 using xda premium
paradoxni said:
Can this be done using adb commands?
Click to expand...
Click to collapse
You can get titanium backup free in the market. It will allow you to uninstall screencapture. You need root for it as well as for root explorer.
Sent from my GT-P7510 using xda premium
Thanks for the suggestion and I can stop those stupid screen capture !
You don't need to uninstall it with Titanium Backup, just freeze it. I have no idea what mad scientist at Samsung thought there was the dying need to make screenshotting an ever-present feature button.
paradoxni said:
Can this be done using adb commands?
Click to expand...
Click to collapse
It can be done using adb.
I'm assuming that the system apps are located in /system/app/ like my phone (I don't have a tab yet, though hopefully I will soon).
If that is true then a
Code:
adb rm /system/app/screencaptureservice.apk
should remove it. I have an inkling that there might be some capital letters in there (Like I said, I dont have the tab so I cant check), if the above code gives you an error about the file not being found type
Code:
adb ls /system/app/
which will show you the list of all files in /system/app/ and change part of the first code to reflect any capital letters.
I would suggest not deleting the file but renaming it or moving it somewhere (so it can be restored afterwards. Both are done with the same command mv (short for move)
The following code would rename the file and add renamed to the beginning:
Code:
adb mv /system/app/screencaptureservice.apk /system/app/renamedscreencaptureservice.apk
Or alternatively:
Code:
adb shell
cd /system/app/
mv screencaptureservice.apk renamedscreencaptureservice.apk
Whether renaming/moving or deleting I suggest rebooting after completing the task.
This will be great for my not-so-tech parents Tab, they would be so confused by the false "screenshot" screen if they would be pressing this endlessly.
Worked great thanks, don't know why this button exists.
Overly complicated since there's a setting in (ICS) it to change it: Settings -> Display -> Quick launch.
Sent from my Nexus S using xda premium
On my ICS rom which is based on the stock touchwiz, in settings>display>quick launch. You should be able to change what the button does or to remove it completely. Hope this helps if you have the same options.
scoffyburito said:
Overly complicated since there's a setting in (ICS) it to change it: Settings -> Display -> Quick launch.
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
Turned out to be pretty simple. Thanks a bunch!

How to delete Nandroid backups?

How i delete them? I cant seem to find them...
jackdonogy said:
How i delete them? I cant seem to find them...
Click to expand...
Click to collapse
the answer to you question is in an hour old topic already asked in this section. cwm backup storage.
jackdonogy said:
How i delete them? I cant seem to find them...
Click to expand...
Click to collapse
they're in sdcard/data/media
eep2378 said:
they're in sdcard/data/media
Click to expand...
Click to collapse
I cant find the /data folder using ES File explorer...
jackdonogy said:
I cant find the /data folder using ES File explorer...
Click to expand...
Click to collapse
They are in /data/media but you can only view that folder with superuser priviledge. If ES File Explorer has an option of getting superuser permission in settings then you can view them or you can use Root Explorer App.
If you have adb then you can view them in adb shell and then become superuser and then view that location.
as i said. the fix for this is one or two posts below this one. why is it so hard for people to understand engrish?
go to android /mnt/shell/emulate and you will see your nandroid their I had same problem until I found it:thumbup:
Sent from my Nexus 4 using xda premium
phermey said:
as i said. the fix for this is one or two posts below this one. why is it so hard for people to understand engrish?
Click to expand...
Click to collapse
probably because 1 or 2 post below is not helpful at all. Im not sure if you are aware but threads are in order of the most recent comment. So, by posting a reply you are now changing that from 1 or 2 posts below to some other number.
whooda said:
probably because 1 or 2 post below is not helpful at all. Im not sure if you are aware but threads are in order of the most recent comment. So, by posting a reply you are now changing that from 1 or 2 posts below to some other number.
Click to expand...
Click to collapse
heard. the point is its on the same page. it isnt pages deep where you would need a search. the op can get away with not caring about a search. but to read this thread and see that the fix is only a couple of clicks away... why would you take the time to post that you are having the same issue.
gauravsri said:
They are in /data/media but you can only view that folder with superuser priviledge. If ES File Explorer has an option of getting superuser permission in settings then you can view them or you can use Root Explorer App.
If you have adb then you can view them in adb shell and then become superuser and then view that location.
Click to expand...
Click to collapse
I see the nandroid backup in /data/media/clockkworkmod/backup and in /mnt/shell/emulated/clockworkmod/backup. I am using root browser lite.
When I try to delete the nandroid it doesn't work with this app. How can I delete?
Use Solid Explorer, browse files and delete. I do this since forever with CWM and now TWRP
calanizzle said:
Use Solid Explorer, browse files and delete. I do this since forever with CWM and now TWRP
Click to expand...
Click to collapse
I hadn't heard of that browser before. Worked llike a charm. Thank you
ok, so - say i want to copy these nandroids to my computer before i delete them from my nexus 4 / and vice-versa. how would i find it using windows explorer or finder?
i understand that the nandroids for CWM are stored in:
/data/media/clockworkmod
and when you plug your phone into the computer, it shows an emulated sdcard, but whats a quick and easy way of getting to the root of the device for copying from the computer?
apologies if this has been covered before, but i just stumbled upon this thread when looking for it, and this had the latest activity.
thanks
Normally I don't recommend tool kits as people should learn, but I would give one a shot as there is a feature to just pull backup and save to PC.
Sent from my Nexus 4 using xda premium
aimetti said:
Normally I don't recommend tool kits as people should learn, but I would give one a shot as there is a feature to just pull backup and save to PC.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Just to clarify:
Nandroid is stored in the phone's internal storage not the internal sdcard.
When you connect to the computer, windows explorer shows the internal sdcard only.
A file browser app that allows manipulation of the internal storage will show the nandroid. You could copy it to your sdcard and move it to your computer with windows explorer, airdroid, etc. Or you can us the tool kit.
Hope this helps
AW: How to delete Nandroid backups?
In CWM itself you have the possibility to delete them, too. I think this is worth mentioning. To my mind this is the easiest way.
Copying them to your PC is also possible via ADB (if present and activated)
Code:
adb pull /data/media/clockworkmod/
Sent from my Nexus 4 using xda premium
fkrone said:
In CWM itself you have the possibility to delete them, too. I think this is worth mentioning. To my mind this is the easiest way.
Copying them to your PC is also possible via ADB (if present and activated)
Code:
adb pull /data/media/clockworkmod/
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Awesome thanks, so i'm assuming that will copy the data to whatever directory i am currently in in the Terminal. we'll just assume we are in C:\?
Then also i would assume the command to put that nandroid from my PC to the phone would be
Code:
adb push C:/clockworkmod/ /data/media/clockworkmod/
??
thanks

Need to get CWM Nandroid off of my phone. Can't find in mnt, data, backups... WTF!?

I've read all of the similar threads, can't find it in mtn/shell, data/ only has starbucks and titanium, backups folder. Between Storage, SD, 0/, emulated, and legacy folders, something's gotta be hiding.
When I boot into recovery I'll find it in the restore options, but I need it off of the phone to flash to a replacement device. Any help?
I'm going through the exact situation /;
Sent from my Nexus 4 using xda app-developers app
theedon323 said:
I'm going through the exact situation /;
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
You can use Root Explorer to go to /data/media or use adb shell and then run "su" to get root privileges and then the directory will be visible.
The directory is not visible as a normal user and need superuser permissions.
I LOVE THIS MAN/WOMAN. I'd like to give you a present. A hard written card. A bumper. A piece of chocolate.
gauravsri said:
You can use Root Explorer to go to /data/media or use adb shell and then run "su" to get root privileges and then the directory will be visible.
The directory is not visible as a normal user and need superuser permissions.
Click to expand...
Click to collapse
Do I need the blobs? Never seen em before...
FishFan319 said:
I LOVE THIS MAN/WOMAN. I'd like to give you a present. A hard written card. A bumper. A piece of chocolate.
Click to expand...
Click to collapse
FishFan319 said:
Do I need the blobs? Never seen em before...
Click to expand...
Click to collapse
Yes, you need to copy the blobs as well as backup directory.
From what I understand, Backup directory is now very small in size and backups are done incrementally by pointing to blobs (which are the actual data).

Categories

Resources