How do you view the apps installed on sd card?? - G1 Android Development

I'm wondering how do you view the apps installed on the sd card when using the apps2sd application? do you use the terminal emulator for this? if so, what are the commands? is there a way to see the apps installed on sd card and what is installed on the internal memory?
thanks

You can use a file browser if you want but im more of a command line person. the commands would be:
---In terminal window
su
ls /system/sd/app
---using adb from pc
adb remount
adb shell
ls /system/sd/app

thank you very much! exactly what i was looking for.

Related

How to get UMS (for FAT32) only with PC manipulation ?

Hello,
I'am looking for a solution to get the FAT32 partition access as an USB mass storage only by manipulating my PC (of course, after pluging my G1 on USB).
I don't want to use the notification system on my G1.
Through an adb command for example...
A perfect solution would be : an icon to mount, and another icon to unmount.
Any idea ?
I'm not so sure about this one. I'd imagine it would involve a script that begins running adb and mounting your Android's SD card through adb. THEN you'd have to have another icon that recognizes the currently mounted drive and unmount it. I could see how you can associate your SD card to only show up as a certain drive (I have mine set to always come up as the "B:" drive), but there's so much communication involved between your phone and PC it leads me to believe the rest of the process to be an impossiblity. You're sure asking your PC to do a LOT. Considering what you want this "program" to do, it's hardly worth the effort to even attempt writing it.
Simply put, it's like trying to train your dog to unlock and open your house for you when you come home instead of simply using your house key.
PartEdMagic is your key to a FAT32 formatted microSD card
The easiest way to FAT32 your SD card is to boot up your PC with the "gparted Magic" ISO/CD (can do in vmware even), mount your SD card (via phone may work, I used a micro-SD USB card reader) - delete your partition on the SD card and recreate as FAT32, then format it. All can be done in PartEd Magic.
Hope that helps
[email protected]
mattrophy:
... i don't think he wanted to format it
Christopher3712:
Asking his PC to do alot? This is in no way a hard task, it requires 2 calls to adb, thats all...
koxx:
To mount it from your pc run: "adb wait-for-device shell sdutil ums enable", and to unmount "adb shell sdutil ums disable".
So, if you want 2 icons doing that, just make a shortcut that executes the commands above (either with the full path to ADB, or with adb's directory in your PATH var).
Joushou said:
mattrophy:
... i don't think he wanted to format it
Christopher3712:
Asking his PC to do alot? This is in no way a hard task, it requires 2 calls to adb, thats all...
koxx:
To mount it from your pc run: "adb wait-for-device shell sdutil ums enable", and to unmount "adb shell sdutil ums disable".
So, if you want 2 icons doing that, just make a shortcut that executes the commands above (either with the full path to ADB, or with adb's directory in your PATH var).
Click to expand...
Click to collapse
Exactly, I don't want to format my card ... it's already done
Your command works fine ! Thank you very much !
To finish, do I need a windows command to synchronize data before unmount UMS ? (equiv of "windows unmount" operation)

How to get my backed up apps back onto SD card?

So before I resized my partitions I backed up the app and app-private folders on my SD card. Now that I have reformatted the card I am not sure how to get them back onto the card. cp -R command got the files onto the card but they didnt work (in ubuntu had a funny symbol on their icons). So I think I should be able to just copy the files back and have them work again but I cant figure out how to get them copied. And IFS drives didnt help, the SD card doesnt show up.
Ideally I would like to use windows or copying the files from my FAT32 partition onto my ext2 partition.
Code:
adb pull /sdcard/location_of_apks app/
adb push app /system/sd/app
That is working for me but for some reason it keeps hanging on/after copying instamapper. Should I keep waiting or can I do it again and leave out that file?
Ok, so I removed instamapper and tried again and it worked fine. Here is what I used, and thanks again for that command, I was close but had a problem with my syntax
Code:
adb push app /system/sd/app
adb push app-private /system/sd/app-private
brandenk said:
So before I resized my partitions I backed up the app and app-private folders on my SD card. Now that I have reformatted the card I am not sure how to get them back onto the card. cp -R command got the files onto the card but they didnt work (in ubuntu had a funny symbol on their icons). So I think I should be able to just copy the files back and have them work again but I cant figure out how to get them copied. And IFS drives didnt help, the SD card doesnt show up.
Ideally I would like to use windows or copying the files from my FAT32 partition onto my ext2 partition.
Click to expand...
Click to collapse
i've always backed up with "cp -a" and then copy back the same way "cp -a" for the EXT2 partition .. have not yet encountered any troubles with that .. without the "cp -a" you won't have all the permissions set properly
Thanks for the advice! Im starting to get the hang of this.

[Q] Dock SD memory card device name [SOLVED]

What is the dock's SD card (Linux) device name?
Thanks.
Insert one and type "mount" in terminal ?
That really sounds too obvious...
I have the idea that to install a terminal I need to root my system first. Is this true?
Nope, you can install it from market, without need of root (i.e Terminal Emulator)
The only point is you won't have root access of course
Yep. Just a simple "mount" inside a terminal... like in any other Linux system!
(Feeling Dumb)
Thanks

[Q] Moving and linking Folders to external SDCard (eg Google Music cache)

Hello folks,
I am trying to move my google music cache to the external 32GB SD card so that it won't fill up my internal storage but somehow I fail.
Here is what I did so far:
format sdcard as ext2
manually mount sdcard since it won't automatically when ext:
Code:
mkdir /Removable/MicroSD
mount -r -w -t ext2 /dev/block/vold/179\:9 /Removable/MicroSD
mkdir /Removable/MicroSD/GoogleMusicData
Then move all data from /sdcard/Android/data/com.google.android.music/cache to /Removable/MicroSD/GoogleMusicData/cache
I did this with root explorer since I'm not too much of a terminal h4xx0r.
Delete the folder /sdcard/Android/data/com.google.android.music/
Link the new Folder on external MicroSD Card to the original location via this terminal command:
Code:
ln -s /Removable/MicroSD/GoogleMusicData /data/media/Android/data/com.google.android.music
Since /sdcard is already a link like the one I am setting up here, it is not possible to link to this linked location (/sdcard/Android/data/com.google.android.music).
Instead I had to link to the origninal destination of /sdcard which is /data/media.
Now the microSD card is accessible for root explorer. It shows read and write access.
But google music won't find it. It says that it doesn't have enough space to stream music so I figure that it somehow doesn't have access to the sd card.
What could be the issue here?
Also instead of 28GB free memory root explorer shows me only 364,44MB free memory. the command "df" in terminal however confirms 28GB of free memory.
I thought that a reboot might do it. But it doesn't. Instead it gets rid of all the hacking I've done in terminal. So I guess I would have to place a script in /etc/init.d for the link to be set everytime I reboot, right?
Help please?
We don't know how gmusic checks that, but I would suggest checking the perms on the mount, perhaps even mounting somewhere else.
Never done it and don't have the resources but I'm sure with root, making /mnt/sdcard a real microsd is possible.
Sent from my Transformer Prime TF201 using Tapatalk
Maybe this thread will help ?
Thanks for your response!
What do you mean by "checking the perms on the mount"?
I don't want to mount my microsd to /sdcard since then I would have 16 gigs of unused space on my internal memory.
I would rather just link this music folder to my external card and maybe some others later (e.g. DCIM and so on).
I have also tried the mount -o bind command instead of ln but that didn't do the job either. the folder com.google.android.music then only appeared under /data/media/Android/data/ but not under /sdcard/Android/data/ which I totally don't understand how that can happen.
I have root of course.
Does anybody maybe have a script by hand of a similar undertaking so that I can look into that and try to understand how this whole mounting and binding thing works?

[Q] How to mount internal sd card in usb storage mode (for data recovery)

I made a mistake yesterday to wipe the internal sd-card in twrp recovery. There is some data on it which I want to recover (read: undelete). Data recovery itself won't be a problem, but I have troubles accessing the internal sd card from PC.
There is currently no rom installed on my tf (I don't want the internal sd being touched by anything until I recovered data).
I thought it was possible to set the tf101 in USB mass storage mode in the recovery, mounting the internal SD card, but that refuses to work.
What I've tried so far is enabling USB Mass storage mode in a variety of recoveries
- initially in TWRP recovery (v2.2.X.X not sure which version was installed, probably 2.2.2.0)
- cwm-6.0.1.4-notouch-hybrid.zip
- Rogue XM Touch Recovery v1.5.0-R1
- TWRP 2.2.2.1 (flashed by replacing the recoveryblob in a flashable zip from 2.2.0.0 version)
But it seems not possible, i.e. no drive is detected by Windows or Linux machine.
What is the correct way to access the internal sd card over USB?
./adb connection will set you free. as long as you can get an adb connection this is not a problem. once youre connected just rtfm ./adb will pull up all the options.
haxin said:
./adb connection will set you free. as long as you can get an adb connection this is not a problem. once youre connected just rtfm ./adb will pull up all the options.
Click to expand...
Click to collapse
Thanks for your reply.
I'm able to connect through adb. I can access the internal sd card through adb shell. However, I need to have access to it outside adb, so I can use a data recovery tool to access the internal sd.
I still cannot find a solution, not for ICS. (this solution doesn't work for ICS).
Is it possible to enable UMS from ADB or recovery at all?
Tutti-frutti said:
Thanks for your reply.
I'm able to connect through adb. I can access the internal sd card through adb shell. However, I need to have access to it outside adb, so I can use a data recovery tool to access the internal sd.
I still cannot find a solution, not for ICS. (this solution doesn't work for ICS).
Is it possible to enable UMS from ADB or recovery at all?
Click to expand...
Click to collapse
when you access the sdcard in ./adb shell what do you see?
haxin said:
when you access the sdcard in ./adb shell what do you see?
Click to expand...
Click to collapse
The content of the internal sd card (`ls`), which is a single empty recovery dir atm. I need to recover the content (i.e. undelete).
Eventually I'm now dd-ing data from internal sd to a usb drive attached to dock USB. This way I can perform an ordinary data-recovery on the USB drive
What I did was:
- install a ROM with terminal emulator in it
- open terminal emulator (followed by the su command)
- dd with default blocksize (512) from interal to usb drive (after checking mounting points with mount command):
Code:
dd if=dev/block/mmcblk0p7 of=/dev/block/vold/8\:1
There is probably a more efficient way doing this (using ADB), but I'm finally able to recover the data, happy now
S3 internal SD card
I have an Samsun S3 with JB update. Now the internal SD card is no longer visible as USB drive from the PC. It cannot be done based on other threads.
Can I use the following method to get around the UMS issue? Can I use a Terminal Emulator app? can I dump to external SD card and then run recovery SW on it?
My phone is rooted and after su on TE, I can see /mnt with both sdcard and extsdcard mount points..
Tutti-frutti said:
Eventually I'm now dd-ing data from internal sd to a usb drive attached to dock USB. This way I can perform an ordinary data-recovery on the USB drive
What I did was:
- install a ROM with terminal emulator in it
- open terminal emulator (followed by the su command)
- dd with default blocksize (512) from interal to usb drive (after checking mounting points with mount command):
Code:
dd if=dev/block/mmcblk0p7 of=/dev/block/vold/8\:1
There is probably a more efficient way doing this (using ADB), but I'm finally able to recover the data, happy now
Click to expand...
Click to collapse
cell800 said:
I have an Samsun S3 with JB update. Now the internal SD card is no longer visible as USB drive from the PC. It cannot be done based on other threads.
Can I use the following method to get around the UMS issue? Can I use a Terminal Emulator app? can I dump to external SD card and then run recovery SW on it?
My phone is rooted and after su on TE, I can see /mnt with both sdcard and extsdcard mount points..
Click to expand...
Click to collapse
If you can see the mounting points, why not just try it?
In my case, it turned out that a lot of my data was already overwritten. I could recover some pictures and docs.
Hi. Beginner here, Please, how long this command will take to dumb about 29 GiB to a regular Micro SD card? I am waiting for minutes.
dd if=dev/block/mmcblk0p7 of=/dev/block/vold/8
Thanks.

Categories

Resources