FORUMS
Remove All Ads from XDA

How to move app from asec to /data/app

81 posts
Thanks Meter: 66
 
By chinabull, Member on 29th November 2012, 05:11 PM
Post Reply Email Thread
Never mind.
Should have done my homework before posting.
Apparently it has something to do with app encryption in JB.
But still, I could successfully copy the pkg.apk from the asec mount and install it later on.

================================================== ==========================
Hope this is not a repost.
I am running CM10.1. I think the stock does the same.

Can anybody educate me why Android decide to install the apps into the mounted asec device /dev/block/dm-XX rather than /data/app after a few apps installed?
What is the benefit of doing this?
My understanding is that this is for the phones that has external SD card.
On galaxy nexus we have none. Unless there is performance benefit, I don't see the point of doing this.

Is there an easy way to revert them back to the /data/app?

Thanks a lot.
2nd December 2012, 06:44 PM |#2  
jellydroid13's Avatar
Senior Member
Thanks Meter: 188
 
More
Quote:
Originally Posted by chinabull

Never mind.
Should have done my homework before posting.
Apparently it has something to do with app encryption in JB.
But still, I could successfully copy the pkg.apk from the asec mount and install it later on.

================================================== ==========================
Hope this is not a repost.
I am running CM10.1. I think the stock does the same.

Can anybody educate me why Android decide to install the apps into the mounted asec device /dev/block/dm-XX rather than /data/app after a few apps installed?
What is the benefit of doing this?
My understanding is that this is for the phones that has external SD card.
On galaxy nexus we have none. Unless there is performance benefit, I don't see the point of doing this.

Is there an easy way to revert them back to the /data/app?

Thanks a lot.

How did you pull the app?
12th December 2012, 02:13 AM |#3  
chinabull's Avatar
OP Member
Flag ottawa
Thanks Meter: 66
 
More
First you have root your phone to do this. (Assuming you have done it already).

For example, I had "world of goo" installed.

[email protected]:/ # mount |grep goo
/dev/block/dm-2 /mnt/asec/com.twodboy.worldofgoofull-1 ext4 ro,dirsync,nosuid,nodev,noatime,barrier=1 0 0

Then you go directly to the asec mounted directory:

[email protected]:/ # cd /mnt/asec/com.twodboy.worldofgoofull-1
[email protected]:/mnt/asec/com.twodboy.worldofgoofull-1 # ls -l
drwxr-xr-x system system 2012-12-08 01:47 lib
drwx------ root root 1969-12-31 19:00 lost+found
-rw-r----- system all_a113 48148276 2012-12-08 01:47 pkg.apk
-rw-r--r-- system system 117558 2012-12-08 01:47 res.zip

The pkg.apk is the one you want.

Cheers!
The Following 2 Users Say Thank You to chinabull For This Useful Post: [ View ] Gift chinabull Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes