Go Back   Android Forums > Android Phones > Motorola Droid > Droid - All Things Root
Droid - All Things Root Rooting, ROMS, Overclocking, etc.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

Like Tree1Likes
  • 1 Post By johnlgalt

test: Reply
 
LinkBack Thread Tools
Old October 4th, 2010, 03:12 PM   #1 (permalink)
Member
Thread Author (OP)
 
Join Date: Dec 2009
Posts: 280
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 3 Times in 3 Posts
Default Apps2sd location?

So I have moved several apps from internal memory to my SD card using the 'Move app to sdcard' option in managing programs. My question is where does it actually move the apps? I know by default the apps get installed to /system/app but where is the sdcard location?

SirVilhelm is offline  
Reply With Quote
sponsored links
Old October 4th, 2010, 03:16 PM   #2 (permalink)
Senior Member
 
Lock-N-Load's Avatar
 
Join Date: Feb 2010
Location: WestSiiiide
Posts: 2,309
 
Device(s): Moto Droid VZW
Carrier: Not Provided

Thanks: 33
Thanked 197 Times in 151 Posts
Default

I asked this before and never got an answer.

I could only assume it makes some "hidden" partition on the card as using a file explorer - like Root Explore - never has showed me where they are at.
__________________
/** SGS3 (rooted & stock ROM) **/
/** Asus Prime TF201 (rooted & mildly OC'd) BRICKED BY THE ASUS OTA JB UPATE!**/
/** OG Droid (rooted & OC'd & all hacked up) **/
Lock-N-Load is offline  
Reply With Quote
Old October 4th, 2010, 03:17 PM   #3 (permalink)
Member
Thread Author (OP)
 
Join Date: Dec 2009
Posts: 280
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 3 Times in 3 Posts
Default

Hmmm tricky. There has to be a way to access it
SirVilhelm is offline  
Reply With Quote
Old October 4th, 2010, 03:32 PM   #4 (permalink)
Senior Member
 
Lock-N-Load's Avatar
 
Join Date: Feb 2010
Location: WestSiiiide
Posts: 2,309
 
Device(s): Moto Droid VZW
Carrier: Not Provided

Thanks: 33
Thanked 197 Times in 151 Posts
Default

I would agree. but I have 'show hidden files' turned on and see no place for them. but I wonder if I access it via my USB and mount it to my computer if I turn on hidden files on my desktop maybe I could see it that way.. hmmm

EDIT.. That did it.. they are in a hidden directory .android_secure

odd thing is that Root Explorer shows the directory, but nothing in it even though I have 'show hidden files' turned on. But mounting to desktop showed me what was inside.
Lock-N-Load is offline  
Last edited by Lock-N-Load; October 4th, 2010 at 03:49 PM.
Reply With Quote
Old October 5th, 2010, 04:39 PM   #5 (permalink)
Senior Member
 
Join Date: Jan 2010
Location: Wilmington, DE
Posts: 1,307
 
Device(s): Moto Droid Nook Color
Carrier: Not Provided

Thanks: 114
Thanked 516 Times in 295 Posts
Default

In root explorer, go to /mnt/asec/ and you'll see the data folders, or if you go to /mnt/secure/asec, you'll see the apps, with the extension .asec rather than .apk.
__________________
Droid
Project Elite 6.5 test/CorCor67 PE 1150Mhz SV
Nook Color
Dual boot from eMMC: CM7/Dalingrin OC kernel at 1350Mhz + Nook Color Stock 1.2 rooted
GirLuvsDroid is offline  
Reply With Quote
Old October 5th, 2010, 05:15 PM   #6 (permalink)
Senior Member
 
Lock-N-Load's Avatar
 
Join Date: Feb 2010
Location: WestSiiiide
Posts: 2,309
 
Device(s): Moto Droid VZW
Carrier: Not Provided

Thanks: 33
Thanked 197 Times in 151 Posts
Default

Quote:
Originally Posted by GirLuvsDroid View Post
In root explorer, go to /mnt/asec/ and you'll see the data folders, or if you go to /mnt/secure/asec, you'll see the apps, with the extension .asec rather than .apk.
I have no such directory. I have the above directory.
Lock-N-Load is offline  
Reply With Quote
Old October 5th, 2010, 06:37 PM   #7 (permalink)
Senior Member
 
Join Date: Jan 2010
Location: Wilmington, DE
Posts: 1,307
 
Device(s): Moto Droid Nook Color
Carrier: Not Provided

Thanks: 114
Thanked 516 Times in 295 Posts
Default

Quote:
Originally Posted by Lock-N-Load View Post
I have no such directory. I have the above directory.
Look in the root directory, not /sdcard/.
GirLuvsDroid is offline  
Reply With Quote
Old October 5th, 2010, 06:42 PM   #8 (permalink)
Senior Member
 
Lock-N-Load's Avatar
 
Join Date: Feb 2010
Location: WestSiiiide
Posts: 2,309
 
Device(s): Moto Droid VZW
Carrier: Not Provided

Thanks: 33
Thanked 197 Times in 151 Posts
Default

huh? why would I look in root of the phone? we are talking about apps on the SD card, so why look in the root of the phone.

as I said above, using an app that allows me to see hidden files, I found them... on the SD card

if I were to guess, I would say that what you found are not actual "apps" but a reference on the phone to what apps are located in the above SD card directory I reference. hence the different "-1" extension type on them & the fact they have no KB size listed.
Lock-N-Load is offline  
Reply With Quote
Old October 5th, 2010, 06:54 PM   #9 (permalink)
Senior Member
 
Join Date: Jan 2010
Location: Wilmington, DE
Posts: 1,307
 
Device(s): Moto Droid Nook Color
Carrier: Not Provided

Thanks: 114
Thanked 516 Times in 295 Posts
Default

This is from a tutorial on apps2sd:

where are the apps stored when i use apps2sd?

4o66 wrote: Short answer: Each app stored in /mnt/asec/[appname] is actually stored in an individual encrypted virtual device file

Long answer: (you knew it was coming...)

From a terminal program (or adb, I normally just hop into ConnectBot), if you run "mount", you will see a few lines like so:

/dev/block/dm-[number] /mnt/asec/[app name] vfat ro,dirsync,nosuid,nodev,noexec,relatime,uid=.....

The main thing to pay attention to here is the first two blocks of text.
The first is WHAT is mounted, the second is WHERE it is mounted TO.

In this case, the device known as /dev/block/dm-[number] is referring to a DM (Device Mapper). In linux, this is normally used for either RAID devices or encrypted volumes.

So what is happening is this: To stop the average user from copying and app to sd, then giving it to a friend, they place it in a virtual hard drive, which is encrypted and stored as a file, in a linux partition on the sd card.

Picture like this:

[SD CARD]
[FAT32]
Files you see on the card
[END FAT32]
[EXT4 Linux]
apps2sd files
virtual hard drive file
[DM device (encrypted)]
apk files
[END DM]
[END EXT4]
[END SD CARD]

Now, if you are rooted, this doesn't really stop you. But most users will never know, or care, about rooting their device. They won't even see the EXT partition on their computer if they were to take the sd card out and plug it right in (Windows can't read EXT partitions without some special software). If the user has linux, they will see the files, but the crypto keys are stored in phone protected memory, accessible only to root.

This keeps casual copying from occurring.
Remember this, a lock only keeps and honest man honest.
If I have physical possession of your device, no matter what security you put on it, I will eventually be able to get what I want out of it.
GirLuvsDroid is offline  
Reply With Quote
Old October 5th, 2010, 07:01 PM   #10 (permalink)
Senior Member
 
Lock-N-Load's Avatar
 
Join Date: Feb 2010
Location: WestSiiiide
Posts: 2,309
 
Device(s): Moto Droid VZW
Carrier: Not Provided

Thanks: 33
Thanked 197 Times in 151 Posts
Default

so.. I think I was kind of right if I read this correct

"They won't even see the EXT partition on their computer if they were to take the sd card out and plug it right in (Windows can't read EXT partitions without some special software). "

" they place it in a virtual hard drive, which is encrypted and stored as a file, in a linux partition on the sd card."

I saw it and can see them as I used a special app on my computer to turn on hidden files and that is when I saw them on my SD card in the .android_secure directory. and the apps are being mapped from the SD card to to the phone and seen in the /mnt/asec/ directory which is why they have the "-1" (notice he shows the "-[number]" indicator) as they can't be on the phone and on the SD card as the memory proves as much. so that /mnt/asec/ is the mapping location of the actual apps location on the SD card so the phone knows what and where apps have been moved.
Lock-N-Load is offline  
Reply With Quote
sponsored links
Old December 17th, 2012, 01:39 AM   #11 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 5
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

OK, the thread's over two years old. But I have to correct the above.
The OP looks to be using FA2SD (Froyo/Google official A2SD) which doesn't use
an EXT partition on the SD. It's all FAT/FAT32. The encrypted files (mounted to /mnt/asec/..etc) are stored in .android_secure. You can't see them from the phone but you can see them if you plug the phone to a PC.
humpity is offline  
Reply With Quote
Old December 25th, 2012, 07:32 PM   #12 (permalink)
Antidisestablishmentarian
 
johnlgalt's Avatar
 
Join Date: Oct 2009
Location: 3rd Rock
Gender: Male
Posts: 9,396
 
Device(s): Motorola® DROID® BIONIC®
Carrier: VZW

Thanks: 2,168
Thanked 1,918 Times in 1,362 Posts
Send a message via ICQ to johnlgalt Send a message via MSN to johnlgalt Send a message via Yahoo to johnlgalt Send a message via Skype™ to johnlgalt johnlgalt@gmail.com
Default

Quote:
Originally Posted by humpity View Post
OK, the thread's over two years old. But I have to correct the above.
The OP looks to be using FA2SD (Froyo/Google official A2SD) which doesn't use
an EXT partition on the SD. It's all FAT/FAT32. The encrypted files (mounted to /mnt/asec/..etc) are stored in .android_secure. You can't see them from the phone but you can see them if you plug the phone to a PC.
Sorry, but if you check the dates, it was before Froyo made it onto the Motorola DROID, and well before the CM7 (GB) builds were made for it.

This was a third party apps2sd solution being used b/f we could do it natively in FroYo and GB,
humpity likes this.
__________________

Files for the Motorola® DROID® BIONIC®:
Motorola USB drivers v5.9.0 | Motorola RSD Lite v5.7
My DropBox Referral link
johnlgalt is offline  
Reply With Quote
The Following User Says Thank You to johnlgalt For This Useful Post:
humpity (February 11th, 2013)
Reply


Go Back   Android Forums > Android Phones > Motorola Droid > Droid - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:48 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.