File explorer via DDMS doesn't work - G1 Android Development

When I try and use the file explorer in DDMS for my device it just comes up as blank. I am am running JF ADP1.5 on the device and the 1.5SDK on Mac OS X.
Can someone please confirm that DDMS file explorer works for JF ADP1.5 (preferably on Mac).
Anyone have any other suggestions?

it never worked on 1.5 for me...

This is because you are using a modified firmware.
You have to replace the busybox ls file with the toolbox ls file.

but my ls is linked to toolbox ?
just had another go, it appears you have to close the file explorer and open it again

Ah ok thanks. I didn't know that. What is the easiest way for me to get a file out of an application directory then. I want to get the sqlite database from an app I am writing off the phone.
I'm using apps2sd so I thought the application data should reside in /system/sd/app but if I navigate there in linda or astro it is blank. /data/app is also blank.

BGH80 said:
I'm using apps2sd so I thought the application data should reside in /system/sd/app but if I navigate there in linda or astro it is blank. /data/app is also blank.
Click to expand...
Click to collapse
/data/data

jashsu said:
/data/data
Click to expand...
Click to collapse
/data is also empty

Have you tried opening it with Term Emu or adb instead of a file manager?

Well I'm a bit stuck now.
I got thinking my apps 2 sd wasn't working so I just decided to switch to the unionfs method.
Now my phone is looping. I don't want to do a wipe and I don't have access to ADB here at work so I can't copy a new update.zip ROM to my phone.
So I can't check anything until I get home and can reflash my phone which will hopefully fix the problem.

Ah what a nightmare. The unionfs apps2sd didn't work on the first attempt so I ended up having to reformat, wipe, reinstall etc. I'm back up and running now and was able to get the file I wanted via adb pull.
How come file managers don't show the contents of folders such as /data/data/ ?

BGH80 said:
Ah what a nightmare.
Click to expand...
Click to collapse
Welcome to A2SD.

Related

Backup apps????

Is there a way to save some of my apps before I flash a new ROM? I have a few that I installed while the were free but now they are paid apps or no longer in the market. (Tether apps) I am going to flash one of the Haykuro roms but want to keep these apps to install on the new ROM. Thank for any suggestions!!
Some options:
- Look on the Market for a backup app
- Look for a file manager app and copy the stuff out of /data/app and /data/app-private
- Hook up Dream to a desktop and adb pull it to the computer
- Reboot into recovery and create a nandroid backup
Thanks for the tips, when using the file mgr, when I click on data, nothing is in the file. Am i looking in the wrong area???
jordanjf86 said:
Thanks for the tips, when using the file mgr, when I click on data, nothing is in the file. Am i looking in the wrong area???
Click to expand...
Click to collapse
They're hidden files. You must show hidden files, first.
ivanmmj2 said:
They're hidden files. You must show hidden files, first.
Click to expand...
Click to collapse
No, they're not hidden files. The problem is that /data is a protected directory. The file manager doesn't have permission to access it.
jashsu said:
No, they're not hidden files. The problem is that /data is a protected directory. The file manager doesn't have permission to access it.
Click to expand...
Click to collapse
Is there any way around that?
setuid, but that's insecure and a little bit of a hassle. I'd go the adb pull way.
You could also do it all manually inside the Terminal Emulator. Use su to gain root then cp /data/app/* /sdcard/somewhere
thanks!!!!

Compcache userinit.sh tutorial for Cyanogen 367

Here is a simple tutorial to get compcache ramswap running on the new Cyanogen 3.6.7 rom. Thanks to Cyanogen we now have a functioning swap that is fast and will not cause SSD wear.
Please make sure you have adb installed and functioning before you continue, as this tutorial will utilize adb to push the required files to the phone. Also your sd card should have a 500megish ext(2,3,4) partition as the second partition for this to work.
Download the userinit.sh.txt file attached here then:
Rename it to userinit.sh
create a directory c:\userinit
copy userinit.sh to c:\userinit
open CMD prompt
adb push c:\userinit\userinit.sh /system/sd
adb shell chmod 755 /system/sd/userinit.sh (not sure if needed being safe)
adb shell reboot
( This completes the compcache setup )
++++++++++++++++++++++++++++++++++++++++++++
To see if it is working enter: cat /proc/ramzswap in the terminal console app on the phone. You should have a XX% GoodCompress listed if it is working properly.
Hope this helps a bit. Please correct me if I made mistakes.
edit: re-uploaded the script with swappiness set to 60. You can re-push the new one the same way.
edit: removed media info from post and userinit.sh to simplify things.
edit: the following may help for those unable to get adb working. Make sure you place userinit.sh on the root of your sd (fat32 partition)
in terminal emulator:
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/userinit.sh /system/sd
chmod 755 /system/sd/userinit.sh
thanks...very helpful tuttorial
Just did the audio push and it moved all 3 folders
Does this mean we no longer need the linux swap partition?
DOHCtor said:
Does this mean we no longer need the linux swap partition?
Click to expand...
Click to collapse
It is no longer needed. Compcache should work better, but time will tell I guess.
bkmo said:
It is no longer needed. Compcache should work better, but time will tell I guess.
Click to expand...
Click to collapse
I'll just leave my linux swap partition there for now then.
I notice when I run #free it shows total swap size around 24mb. With the linux swap, I get 32mb.
P_Dub_S said:
Just did the audio push and it moved all 3 folders
Click to expand...
Click to collapse
so you are saying on your sd card you now have:
/system/sd/media with subfolders of ringtones, alarms, notifications, ui ?
thanks for the tutorial
thanks for the tutorial. one questions remains. how do we disable the sd-swap?
Thank you so much for this. Seems to be working perfectly on 3.6.7.1. Cheers!
DOHCtor said:
I'll just leave my linux swap partition there for now then.
I notice when I run #free it shows total swap size around 24mb. With the linux swap, I get 32mb.
Click to expand...
Click to collapse
Good, it is working fine then. I believe that the 24mb is pre-compiled by Cyanogen and is not user configurable right now.
endolin said:
thanks for the tutorial. one questions remains. how do we disable the sd-swap?
Click to expand...
Click to collapse
if you used the attached userinit.sh then it is not enabled. The partition is now unused. You now will not be wearing down your sd with swap.
I just looked into your userinit.sh file. There's a line in there that seems to remove the media files from the phone memory. Why would you do that?
DOHCtor said:
I just looked into your userinit.sh file. There's a line in there that seems to remove the media files from the phone memory. Why would you do that?
Click to expand...
Click to collapse
I didn't write the initial script so I can only speculate that it is clearing the directory that the os is looking in before linking it to the sd. I really have not pondered on it. It has been working fine on my phone ever since I implemented it though.
bkmo said:
so you are saying on your sd card you now have:
/system/sd/media with subfolders of ringtones, alarms, notifications, ui ?
Click to expand...
Click to collapse
I just checked and no they didn't get created but the cmd prompt showed all the files being pushed?
In cyans images, the media dir is empty. Its being deleted so it can then be symlinked to the one in the sd dir.
DOHCtor said:
I just looked into your userinit.sh file. There's a line in there that seems to remove the media files from the phone memory. Why would you do that?
Click to expand...
Click to collapse
P_Dub_S said:
I just checked and no they didn't get created but the cmd prompt showed all the files being pushed?
Click to expand...
Click to collapse
Hmm can't debug it now, but will try to get adb running on a windowz box tomorrow. Just don't remove the media files from the fat32 partition until it is proven the files are copied to the sd properly. goodnight all
dwang said:
In cyans images, the media dir is empty. Its being deleted so it can then be symlinked to the one in the sd dir.
Click to expand...
Click to collapse
I know, but doesn't the phone auto search for it in those folders? I use ringdroid and it creates a fold hierarchy just like that already. Is it really neccessary to add the symlinks?
Yes but all those music files show up in the music app which is annoying.
This method gets rid of that problem.
Its not strictly neccessary but I wrote it for that reason
DOHCtor said:
I know, but doesn't the phone auto search for it in those folders? I use ringdroid and it creates a fold hierarchy just like that already. Is it really neccessary to add the symlinks?
Click to expand...
Click to collapse
dwang said:
Yes but all those music files show up in the music app which is annoying.
This method gets rid of that problem.
Its not strictly neccessary but I wrote it for that reason
Click to expand...
Click to collapse
Actually, it doesn't if you put it in the media folder and within the media fold you have other sub folders (ringtone, notification etc.), which ringdroid already creates for you. Like I said, I don't understand the reason to do a symlink for them.
dwang said:
Yes but all those music files show up in the music app which is annoying.
This method gets rid of that problem.
Its not strictly neccessary but I wrote it for that reason
Click to expand...
Click to collapse
Hey, I almost forgot that you wrote it initially. I shared it here because I think it is a much cleaner way of putting the audio on sd. I now dont have to see all this junk in my music library. Great job on the script BTW

Root Explorer not copying

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

[Q] .apk file install not working?

So I flashed the MikShift ROM onto my phone a few days ago, but I noticed that sprint tv, and also sprint navigator are missing. I found the .apk files in the mikshift folder, but when I try to install them, it says application not installed. I also tried installing it using the android sdk with no luck.
My next thought, which I am afraid to try (unless its right) is to unzip the rom on my comp, copy the sprint tv and navigator .apks into the system folder, re-compress is, then try flashing that rom. (I can't copy the files with it compressed)
What is the correct way to do this? I know it can be done, or the .apk wouldn't still be in the file, right?
Please help a noob out.
7zip will allow you to move files into the archive without extracting. Not 100%, but on my moment files needed to be zipped in a special way. If you absolutely have to extract it then I'm pretty sure you have to change compression settings to no compression. I'm also fairly sure that if you mess up CWM won't let you flash it.
Mount your /system as rw
Download terminal emulator and type
Su
Mount -o rw,remount -t ext3 /dev/block/mmcblk3p26 /system
Then install
Sent from my PG06100 using XDA App
i believe i did everything as instructed, but the file still didn't install.
I can't get the files moved with 7zip either. I'm pretty sure thats not the correct way of doing it anyway.
Follow the remount command above, then copy it to system, don't install
cp /sdcard/whateverFolder/blah.apk /system/app/
Sent from my PG06100 using XDA App
IT LIVES!!! Thank you very much.
I understand the the copy command that I did through terminal emulator, but what is the first command? I can at least figure out that i'm telling the emulator to mount the phone as r/w, then remounting it for edit i think, but i'm not sure what the "ext3 /dev/block/mmcblk3p26 /system" part means. Could someone explain that? I really want to get more involved in my phone, so i'm trying to learn all I can.
I'll walk you through it.
mount = the base command
-o = with options
rw, remount = add the read/write option, and remount
-t = using file system type
ext3 = the file system type
/dev/block/mmcblk0p26 = the absolute path to the special device file that points to that partition
/system = when you mount that partition call it /system (which it already was, hence the remount option earlier)
Sent from my PG06100 using XDA App
Awesome, thank you very much.
Where did you find the mikshift folder you are talking about on here? I would like to install Sprint TV as well. Thanks.
J_Mod45 said:
So I flashed the MikShift ROM onto my phone a few days ago, but I noticed that sprint tv, and also sprint navigator are missing. I found the .apk files in the mikshift folder, but when I try to install them, it says application not installed. I also tried installing it using the android sdk with no luck.
My next thought, which I am afraid to try (unless its right) is to unzip the rom on my comp, copy the sprint tv and navigator .apks into the system folder, re-compress is, then try flashing that rom. (I can't copy the files with it compressed)
What is the correct way to do this? I know it can be done, or the .apk wouldn't still be in the file, right?
Please help a noob out.
Click to expand...
Click to collapse
Sorry about that wished I'd seen this post earlier. Was busy most of the morning . But if your on MikShifted and want the Stock Sprint apps, go HERE. The thread should have the ones your looking for .

Delete system ringtones/notifications/alarms?

I have a bunch of different notifications and ringtones I'd like to use, but I cant insert them into the default directory along with the other ringtones. Is there anyway to do this?
Are you rooted? If so, you can use root explorer or es file explorer to mount /system as writable (I assume you are rooted if you know where to put the files) then copy your files.
Sent from my LG-P999 using xda premium
Волк said:
Are you rooted? If so, you can use root explorer or es file explorer to mount /system as writable (I assume you are rooted if you know where to put the files) then copy your files.
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
So through Clockwork, I know how to mount /system, but then what? Do i start the phone as normal to get to the OS, and do my file swapping from there?
Or do I need to do something else?
**** i didnt see the part about Root Explorer. I'm download ES right now.
Why do you want to put it in your system folder and not on your SD card? Every time you flash a new nightly or release you'll have to put them there again.
No one ever uses ADB anymore for some reason, but if you're running windows you can create a batch file to delete the stuff you don't want and the push your files to the media folder. I have a batch file I run after every nightly to remove a lot of junk, here is the commands I use for the sounds. I don't push any sounds to the media folder b/c they are all on my sd card.
Code:
adb shell rm -f /system/media/audio/ui/camera_click.ogg
adb shell rm -f /system/media/audio/ringtones/*.ogg
adb shell rm -f /system/media/audio/notifications/*.ogg
stevew84 said:
I have a bunch of different notifications and ringtones I'd like to use, but I cant insert them into the default directory along with the other ringtones. Is there anyway to do this?
Click to expand...
Click to collapse
You can put them on your External SD in Folders named ringtones and notifications. The rom should read it from there, or mine does. I am using Xborders GB 1.0.
Cant delete an audio file !!
I installed an audio app from the market. It gave options to "Set as ringtone" for its sounds. I set a tone. But now i cant remove it from my system/media/audio/ringtones !!. Its so irritating. I have a rooted xperia mini ( ROM - Jelly Vanilla Ex 2.1) ... I even flashed the stock firmware, wiped data and everything, but every time i set a new ringtone, it is present in the SOUND PICKER !. Can anyone please help me in this ??? Is this a virus or anythin >???? :crying:

Categories

Resources