I'm currently trying to browse through the files on the G1 and I go into astro and go into the data folder and there should be a hidden folder called app-private right under that folder but I cant see it, is there a special command I should be putting into a terminal emulator or something to see the hidden folders?
Any help is greatly appreciated.
Edit: Forgot to mention that I should have the root access, I did follow all steps in rooting the g1 so that I'd be able to put themes on it.
I dont thing you can see the content of data/app and data/app-private using astro, you can see it once you back it up to your sd
I don't think Astro can do it. You can browse normally via the terminal as root using ls.
derfolo said:
I don't think Astro can do it. You can browse normally via the terminal as root using ls.
Click to expand...
Click to collapse
I'm not familiar with any of the commands so would you be able to tell me which commands to use to browse through folders and copy documents or point me in the dirrection of where to look for those commands?
mappydamouse said:
I'm not familiar with any of the commands so would you be able to tell me which commands to use to browse through folders and copy documents or point me in the dirrection of where to look for those commands?
Click to expand...
Click to collapse
search for linux commands:
ls -l /data
is a good place to start .. but if you're not familiar with the commands i would recommend becoming familiar with file structures first .. you can "ls -l" anything you want
ls -l /data/app
ls -l /data/app-private
just for starters .. other commands are there .. most of what works on linux will work on the G1 .. JF has provided busybox commands as well which further simplify the Terminal
Ok thank you for the help I was using cd and ls to move through and look at files but as I'm more familiar with windows commands and not at all with linux anymore I couldn't figure out the copy and paste commands.
mappydamouse said:
Ok thank you for the help I was using cd and ls to move through and look at files but as I'm more familiar with windows commands and not at all with linux anymore I couldn't figure out the copy and paste commands.
Click to expand...
Click to collapse
in that case .. if you ARE familiar with the file structure and C:\> then try this:
http://www.yolinux.com/TUTORIALS/unix_for_dos_users.html
LucidREM said:
in that case .. if you ARE familiar with the file structure and C:\> then try this:
http://www.yolinux.com/TUTORIALS/unix_for_dos_users.html
Click to expand...
Click to collapse
Sweetness, this helps out a hell of alot, thank you very much.
Related
I was wondering if there could be a collection of commands for mainly backing up data, so that those of us that can't figure out the programming could reap on all the benefits that all of you have made possible.
One easy to use database? Copy, paste, list name of files in a directory to start? Please?
Well, i'm not quite sure what data you want to back up (metadata? or actual file data?) but there is a lot you can do with combinations of the *nix shell commands and piping/redirecting. For example, if you wanted to create a list of installed user apps you might enter
Code:
ls -al /data/app > dir.txt
If you wanted to only list apps created by Koush, then you might modify that to
Code:
ls -al /data/app | grep "koushikdutta" > koushapps.txt
There are many more commands and an infinite number of ways to combine them. To list them all would require a very long posting indeed.
O i c
I didn't realize it was that complicated. So basically I have to look through the extensive list of commands and try to piece together commands that will work for what I want?
Basically I am trying to copy apps. I saw that astro has a method of doing it, but being that the the phone has been hooked up with the functionality I figured I would try and get the hang of it.
Thanks for the info.
Ssantos6981 said:
I didn't realize it was that complicated. So basically I have to look through the extensive list of commands and try to piece together commands that will work for what I want?
Basically I am trying to copy apps. I saw that astro has a method of doing it, but being that the the phone has been hooked up with the functionality I figured I would try and get the hang of it.
Thanks for the info.
Click to expand...
Click to collapse
Copying is pretty simple. Just cp <source> <destination>
So if you wanted to copy all the userapps made by Koush to sdcard, you could use
Code:
cp /data/app/*koush* /sdcard/
Once you get the hang of working with the basic shell commands and stringing them together in useful ways, you can save it all into a script file and just execute that whenever you want to perform a task.
For example you might have a small script that copies all the com.koushikdutta apps from the data partition to a backup folder in the sdcard, create a manifest containing a list of those apps along with their MD5 checksums, and then display onscreen how many megabytes were copied.
You can get pretty far just reading tutorials on the internet, but I recommend getting a primer from your local library or bookstore on *nix shell command and shell scripting. Also finding your local linux user group could help as well.
Was just wondering if anyone has deleted ringtones, notification or alarms successfully? `ould love to get rid of them if possible. Tried making a copy of jf rc30, deleting them and amazon apk then installing but didn't work gave me error message.
i removed unused ringtones w/o any issues
If you have JF's RC30 1.31 installed you should be able to just delete them. Astro should let you goto where they are saved and just delete em. You may need to use DroidSans Tweak tools to remount /system as read/write first.
Hmmm, changing to read/write and trying to use Astro gave me "error deleting file"
Any other ideas?
Dharkaron said:
If you have JF's RC30 1.31 installed you should be able to just delete them. Astro should let you goto where they are saved and just delete em. You may need to use DroidSans Tweak tools to remount /system as read/write first.
Click to expand...
Click to collapse
No neither of those work but thanks for the effort to help. I tried those when i first got root. Im gonna try deleting the same way as i did amazon and see if it works.
stats555 said:
No neither of those work but thanks for the effort to help. I tried those when i first got root. Im gonna try deleting the same way as i did amazon and see if it works.
Click to expand...
Click to collapse
Word let me know if this works. I asked in another thread how to do it but no one answered. All I got was the "yes you can delete them" response
I deleted all of my ringtones without any issues. Just use adb shell and remove them. You can also "pull" them first if want to have a backup. In adb shell type "cd /system/media/audio/ringtones". Now you are in the ringtones folder, now type "ls" and then a list of all the ringtones will display. Once you know the name of the one you want to delete just type "rm filename.ogg" and thats it.
BlueBoar said:
I deleted all of my ringtones without any issues. Just use adb shell and remove them. You can also "pull" them first if want to have a backup. In adb shell type "cd /system/media/audio/ringtones". Now you are in the ringtones folder, now type "ls" and then a list of all the ringtones will display. Once you know the name of the one you want to delete just type "rm filename.ogg" and thats it.
Click to expand...
Click to collapse
Worked great thanks!
No problem, that was one of the first things I did was to change all of the ringtones. Couldn't stand the ones that came with it.
BlueBoar said:
No problem, that was one of the first things I did was to change all of the ringtones. Couldn't stand the ones that came with it.
Click to expand...
Click to collapse
Yeah i hear you on that, just a bunch of crap taking up space. I use mp3's for ringtones so no need to waste system space on them! I just learned how to use adb thank god!
Update - deleted most of the ringtones and 4 notifications, freed up 2mb's
BlueBoar said:
I deleted all of my ringtones without any issues. Just use adb shell and remove them. You can also "pull" them first if want to have a backup. In adb shell type "cd /system/media/audio/ringtones". Now you are in the ringtones folder, now type "ls" and then a list of all the ringtones will display. Once you know the name of the one you want to delete just type "rm filename.ogg" and thats it.
Click to expand...
Click to collapse
Sweet worked like a charm! Thanks a bunch
Ok I read how to delete the ringtones but what is ADB Shell? Lke where do i go to type in all those commands?
My phone is rooted JF1.41 with the latest RC33 modded update.
Cargo75 said:
Ok I read how to delete the ringtones but what is ADB Shell? Lke where do i go to type in all those commands?
My phone is rooted JF1.41 with the latest RC33 modded update.
Click to expand...
Click to collapse
You can do it all right from the phone with Terminal.
Type
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
cd /system/media/sounds/(whichever directory you want)
ls
rm (whichever .ogg file you want)
The .ogg files are case sensitive, so beatplunker.ogg isn't the same as BeatPlunker.ogg
Also the .ogg extension has to be at the end of each file you rm.
If you want to save a backup on your sd card I just typed this before I started removing things. Good luck
Code:
cp /system/media/sounds /sdcard
Beast84 said:
You can do it all right from the phone with Terminal.
Type
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
cd /system/media/sounds/(whichever directory you want)
ls
rm (whichever .ogg file you want)
The .ogg files are case sensitive, so beatplunker.ogg isn't the same as BeatPlunker.ogg
Also the .ogg extension has to be at the end of each file you rm.
If you want to save a backup on your sd card I just typed this before I started removing things. Good luck
Code:
cp /system/media/sounds /sdcard
Click to expand...
Click to collapse
wow, thank you!
Cargo75 said:
wow, thank you!
Click to expand...
Click to collapse
No problem. Just figured I'd pass some of the knowledge these fine peeps here have passed on to me
Cargo75 said:
Ok I read how to delete the ringtones but what is ADB Shell? Lke where do i go to type in all those commands?
My phone is rooted JF1.41 with the latest RC33 modded update.
Click to expand...
Click to collapse
In the future, you may what to do this through your PC to prevent carpel tunnel... You can download the Android SDK from here: http://developer.android.com/sdk/1.1_r1/index.html
Extract it to your drive. Navigate to that folder in a command prompt window then "tools". Once there you can run(make sure the G1 is plugged in the usb):
adb remount (remounts the system read/write)
adb shell (this drops you into the shell to interact with your phone)
cd /system/media/audio/
From there you should be able to follow the proceeding directions.
I went and did all this and even went the extra mile and pushed some of my custom mp3's to the file (about 3 meg worth). Is this going to cause problems with updating in the future?
You don't need to remount the system to read/write manually if it already has been done with DroidSans do you?
I usuall y do the mount through Terminal emulator.
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm -r /system/media/audio/ringtones
rm -r /system/media/audio/notifications
bam gone!
I tried to copy and after mounting I typed:
cd /system/media/audio/
ls
then got:
alarms
ringtons
notifications
ui
then I typed: cp /system/media/audio /sdcard
and got this message:
cp: omitting directory '/system/media/audio'
is it something small and dumb that I'm doing or are the files copied?
Please emal me at if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
My version of appstosd
There will be a folder in your sdcard called apps(MK47) and it has all your app from the market(free and also paid). This is good for when you wipe your Dream.
here is the scripts.
Might want to update your OP with the attachment and bold the commands so its easier to read Nice work
mohsinkhan47 said:
Please emal me at [email protected] if you have a problem.
Thank you alritewhadeva with chmod
Cp the files to /system/bin.
Then chmod 755 (filenames)
Cleartmp
Clears all files in a chosen directory in a certain amount of days. You can chose the directory and the amount days.
Rename
You can rename all files or selected files.
Rmemptydir
Remove empty directories
Search
Search for files and folders
Grepcat
Is like a combination of egrep and cat.
Click to expand...
Click to collapse
this can come in handy for the hero roms if u use the facebook feature quite often under the people app. i know i tend to show people certain pics of me or friends and it just eats up internal memory. all i do is clear the cache but if i can use this script to do so it'd save me that lil bit of hassle i have to go thru myself, appreciate the script, just curious tho... anyone know where to find where the albums cache is stored? i kno how to brose thru folders but i much rather have somebody that KNOWS rather than me THINKING i know... lol thanks in advance.
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
cx92001 said:
Thanks for the scripts. Can you repost the appstosd? The one you posted was empty.
Click to expand...
Click to collapse
I won't be on a computer until Saturday so gtalk to me at
[email protected] invte me and I will give u the app2sd
I can't reach the clutch..
Hi,
I've been looking for a shell search tool for my SE Xperia X10 Android 1.6 phone to search the file system, and this has been the only resource I have found thus far. I have managed to download and copy the scripts to my Android device, but I am unsure on how to execute the .asc scripts on the Android shell.
I was unable to adb push the file to \system\bin. I pushed the file to \data but even mounting the system volume as RW I am unable to mv the scripts to the \system\bin folder.
adb shell
$ su
# mount -o remount,rw /dev/mtdblock3 /system
# mv /data/searh.asc /system/bin
mv /data/searh.asc /system/bin
failed on '/data/searh.asc' - Cross-device link
I tried running the chmod 755 search.asc command anyway, and execute it using ./search.asc, but receive the message:
basename: not found
getopt: not found
[: not found
shift: can't shift that many
Edit: I have now tried this in recovery mode and mounting the /system folder with RW permissions, still no joy.
Could someone please clarify what is required to get these scripts to operate?
I have only dabbled in linux so I am most likely missing something fundamentally obvious here.
Temp-n00b-usr
I managed to find a work around.
I was attempting to locate the Creatouch.apk which was not in /system/app or /data/app. It was infact in /data/app-private. I have manged to pull the .apk for a backup and removed this from the phone now.
I just used the file explorer in Droid Screencast to locate the file by browsing the system.
It would still be handy to be able to search the file system from a PC environment however.
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
Hi,
I tried to copy an API to /system/app, but when I did that, the screen just blinks, and the file is not pasted into the directory.
I had temp root, and had remounted R/W.
I eventually was able to do the copy by using ES Explorer, but not with RE itself.
Does anyone have any idea what might be wrong?
Thanks,
Jim
Don't know if this helps but... I recently tried to do some copying of files using AndRootFile, and RootExplorer. And like you they did not "take". I finally figured out that after I selected a file to copy, I would use the back arrow button to move to the target folder. This was the problem. When I used the Parent folder icon instead to move back out of the folder, and move to the destination folder without using the back arrow button. the file copied just fine. Hope this helps.
Reggie,
Thanks for the suggestion, but, no, I wasn't using the "back" to get to the /system/app directory. I was clicking on the parent dir, etc.
Jim
I also am having that problem. I tried both the back buttons and the parent directory. Ive tried factor data reset as well. I wander if it has anything to do with the update yesterday?
Until we/someone figures why, you can use root explorer to mount, then the built in es explorer to do the copy...
Jim
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native 'cp' command, so you have to use 'busybox cp' instead. I wonder if that's why the RE copy/paste doesn't work?
Jim
SOLVED - it was no native 'cp'
jimcpl said:
I've been doing some stuff w/command line, and I noticed that my stock Gtab doesn't have a native Cp command, so you have to use 'busybox cop's instead. I wonder if that's why the RE copynpasre doesn't work?
Jim
Click to expand...
Click to collapse
Hi,
I just tried a test, where I created a softlink for 'busybox cp':
ln -s /system/bin/busybox /sbin/cp
I then was able to use RE to copy/paste into /system/app !
CAVEAT: I don't know if busybox is on Gtab by default...
Jim
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
NMCBR600 said:
At the command line us cp vs Cp. If you want to copy an entire directory, use cp -R /indirectory /outdirectory .
Click to expand...
Click to collapse
Hi,
That was a typo on my part. The 'cp' command (lowercase c) was really missing in my Gtab .
I've been experimenting w/alternate keyboards, and keep making typos ...
Jim
P.S. I fixed the typos ...
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
butchconner said:
jimcpl,
I was just working on putting Market onto my stock machine and I am having the exact same problem. So far as I can see I have set it up right and followed procedure -- but files just won't move.
Now that I have read y'all's comments, I will try again a time or two.
Rev
Click to expand...
Click to collapse
Hi,
BTW, to create the softlink (using ln), you'll need to use adb shell. Or, you could use a terminal, if one's installed (kind of catch 22, since you'd need market to get a terminal).
Otherwise, what might work is:
- z4root to get root
- root explorer to make /system R/W
- kill then restart es file explorer and use that to copy the apks to /system/app
Jim
SIGH ... softlink doesn't survive a reboot
It looks like the softlink that I created disappears after a reboot... then RE can't copy again.
Sorry...
Jim