[Q] - General Questions and Answers

How to open .asec file on my samsung galaxy s i9000 ?

The ASEC file extension is associated with the Google Android operating system. Android from version 2.2 Froyo supports installation of applications to memory card. Applications moved to memory card are encrypted and use ASEC file extension. ASEC files can be found in .android_secure folder saved on memory card.
Applications stored in ASEC encrypted file format cannot be modified by other applications installed in phone, or computer. Applications installed on SD card are paired with Android phone, where they have been installed. It is not possible to put SD card to other Android phone and run applications installed on SD card.
Only Android SDK Emulator that is a part of Android SDK Tools is able to run applications installed on SD card in ASEC encrypted format, if the Android phone with SD card is connected to the computer.
If you move application back from SD card to phone's local storage, Android also decrypted ASEC package file to standard APK application package.
I hope this helps.
Source: http://www.file-extensions.org/asec-file-extension

YoursTruly98 said:
The ASEC file extension is associated with the Google Android operating system. Android from version 2.2 Froyo supports installation of applications to memory card. Applications moved to memory card are encrypted and use ASEC file extension. ASEC files can be found in .android_secure folder saved on memory card.
Applications stored in ASEC encrypted file format cannot be modified by other applications installed in phone, or computer. Applications installed on SD card are paired with Android phone, where they have been installed. It is not possible to put SD card to other Android phone and run applications installed on SD card.
Only Android SDK Emulator that is a part of Android SDK Tools is able to run applications installed on SD card in ASEC encrypted format, if the Android phone with SD card is connected to the computer.
If you move application back from SD card to phone's local storage, Android also decrypted ASEC package file to standard APK application package.
I hope this helps.
Source: http://www.file-extensions.org/asec-file-extension
Click to expand...
Click to collapse
how can i open and edit the content please???

tunjicool said:
how can i open and edit the content please???
Click to expand...
Click to collapse
You need the key which you can find here /data/misc/systemkeys/AppsOnSD.sks
If the app has already been decrypted by the system, you should find the apk file in /mnt/asec/APPNAME.
Otherwise proceed as follows.
Read the key with the unix command
Code:
od -t x1 AppsOnSD.sks
Output should be something like
Code:
ab cd 12 34 56 ab cd 12 34 ab cd 12 34 09 47 a1
Now log into your phone via adb and mount the app by following these steps:
Code:
adb shell
vdc asec list #should output all asec apps
vdc asec mount org.foopackage-1 abcd123456abcd1234abcd12340947a1 1000 #1000 is the system UID
Now the app should be mounted and can be found in /mnt/asec/APPNAME
See this blog for more detailed information: nelenkov blogspot using-app-encryption-in-jelly-bean
Sorry, link was disabled, so just ask google for the blog.

tuxware said:
You need the key which you can find here /data/misc/systemkeys/AppsOnSD.sks
If the app has already been decrypted by the system, you should find the apk file in /mnt/asec/APPNAME.
Otherwise proceed as follows.
Read the key with the unix command
Code:
od -t x1 AppsOnSD.sks
Output should be something like
Code:
ab cd 12 34 56 ab cd 12 34 ab cd 12 34 09 47 a1
Now log into your phone via adb and mount the app by following these steps:
Code:
adb shell
vdc asec list #should output all asec apps
vdc asec mount org.foopackage-1 abcd123456abcd1234abcd12340947a1 1000 #1000 is the system UID
Now the app should be mounted and can be found in /mnt/asec/APPNAME
See this blog for more detailed information: nelenkov blogspot using-app-encryption-in-jelly-bean
Sorry, link was disabled, so just ask google for the blog.
Click to expand...
Click to collapse
What if you have lost the keys? I've recently did a dirty backup of my S7 Edge before flashing a new ROM, and didn't know that I needed to save the keys in /data/misc/systemkeys/AppsOnSD.sks. I may have lost that file permanently, unless by some strange magic it was backed up somewhere that the factory reset didn't touch. How can I open the ASEC files now?
To be perfectly clear, I don't intend to promote piracy. I had bought some of the apps from Google Play. I know the ASEC files have them, but I can't access them on the device. I need some way to break the encryption so that I can move the apps and their data back to their respective folders.

Related

[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?

[HACK] How to move games' SD card data to internal memory

I recently bought ShadowGun and N.O.V.A 2 from Google Play and discovered that my SD card didn't have enough room with all of my music (10+ GB) and misc. other stuff, and I had around 6 GB of extra space on my internal memory, so I figured this out.\
Pre-requisites:
Plenty of space on your internal memory
Root access
Note: This has only been tested with SD card data that was already downloaded, but you should be able to download directly to internal memory. Also, this has only been tested on my Droid X running MIUI.
Step 1.
First, find your game's data location. ShadowGun's is at
Code:
/sdcard/Android/data/com.madfingergames.shadowgun
and N.O.V.A 2's is at
Code:
/sdcard/gameloft/games/GloftN2HM
Step 2.
Next, create the new folders in /data/data and /data/local for the Market cache. (Without this, the Market gives a "insufficient storage" error.)
Code:
adb shell
su
mkdir /data/data/ShadowGun
mkdir /data/data/GloftN2HM
mkdir /data/local/cache
Step 3.
If you haven't downloaded the game's data yet, skip this step.
If it's already on your SD card, then move the data from the folders we found before to the folders you just created.
Code:
mv /sdcard/Android/data/com.madfingergames.shadowgun/* /data/data/ShadowGun/
mv /sdcard/gameloft/games/GloftN2HM/* /data/data/GloftN2HM/
Step 4.
Finally, copy the following commands into a shell script:
Code:
mount -o bind /data/data/ShadowGun /sdcard/Android/data/com.madfingergames.shadowgun
mount -o bind /data/data/GloftN2HM /sdcard/gameloft/games/GloftN2HM
mount -o bind /data/local/cache /data/data/com.android.vending/cache
If other apps are crashing with insufficient storage errors, just link them all to /data/local/cache.
You can find whatever way you want to run this script every time you boot, but the easiest way is to download Script Manager from Google Play and set it to use su and to run at boot.
Step 5.
For those who haven't downloaded the SD data yet, download it and see if it takes up any more space on your SD card. I haven't tried it before, so no guarantees.
Uninstalling:
To uninstall, just move files back to SD card, disable script running at boot, and reboot.
I AM NOT RESPONSIBLE IF YOUR PHONE BLOWS UP, YOUR DOG GETS WORMS, OR WW3 STARTS. Thank you.
Can I do this with GPS iGO data (about 400 MB)?
worked on my xperia U! tried dead trigger game
The files will be at internal memory but also show at sd like they are there.. for exemple if we delete it on sd it will delet the file in internal memory!
Going to try with more games
Why is good do this?
i did the factory reset and i have all games on my SD like FIFA 12 etc.
is it possible to do it that way?
+ i am little mixed up with the code, where should i do it?
i can create folders and move data through file managers but not sure about the mount and bind action.
i downloaded scrip manager and console was showing Shell...is it the one i should write the commands as mentioned?

[TOOL][SCRIPT] SD2Internal - Swap your real SD card and Internal memory

[Internal2SD] for Rooted Xperia E (STOCK JELLYBEAN)
Run this batch file to swap SD card (ext_card - Real SD card) and Internal memory (sdcard - Internal 4 GB SD card) storage locations.
How to use this?
I assume you have already set 'adb' in path and rooted the phone.
1. Download the Attached File!
2. Extract the zip file.
3. Click on SD2Internal.bat script
4. Move apps if you need to move existing apps to the new location (Real SD card).
With MTP set as transfer mode you will be able to use both storage locations from PC.
Why I made this?
I have lots of data (maps, games and apps) on my 8 GB SD card which will not fit on the internal SD card. Using my real SD card is essential for me so that I can make real use of my phone.
Installing prerequisites
1. Install 'adb' using instructions from here. You only need to install 'adb' and not the whole Android SDK if you are not an Android developer.
2. If you are sure you have proper root access then check if a latest version of busybox (now v1.21.1) is installed. Create links for 'mount', 'umount' commands in the advanced install section.
Install Busybox using Busybox Installer by JRummy Apps.
3. If you face any errors with 'choice' command on your Windows machine please download it from here. Place this file in '\Windows\System32' folder.
What are the limitations?
- No known limitations as of now
Hope some of you will find this useful.
Enjoy!
****READ FOR PEOPLE WHO WANT THIS FOR OTHER DEVICES*****
IF YOU WANT THIS MOD ON YOUR DEVICE PLEASE SEND ME YOUR VOLD.FSTAB FOUND IN /system.etc VIA A PM - PLEASE MAKE SURE YOU ARE ON LATEST STOCK ROM BEFORE YOU DO SO!
29-11-2013 #UPDATE NO NEED TO DO STEP ON (GET ADB PATH) DOWNLOAD SD2INTERNALV2.ZIP AND JUST RUN THE BAT FILE.

Can you mount BOTH Android internal & external storage onto Windows as a drive letter over Wi-Fi using a SINGLE WebDAV server?

Can you mount BOTH Android internal & external storage onto Windows as a drive letter over Wi-Fi using a SINGLE WebDAV server?
This works:
1. I can easily mount my Android INTERNAL storage (including the read-only root hierarchy!) on Windows using any free WebDAV server and the Windows "net use" command over Wi-Fi to make that half of Android a drive letter.
WebDav Android Home Directory: /
[This gives read access to root at / and read/write access to internal storage at /storage/emulated/0]
Windows Mount Command: net use Y: \\[email protected]\DavWWWRoot /USER:username password
This works:
2. At the same time, I can just as easily mount my Android EXTERNAL storage (i.e., the entire external sd card) on Windows using any second free WebDAV server and the Windows "net use" command over Wi-Fi to make that other half of Android a different drive letter.
WebDav Android Home Directory: /storage/0000-0001
[This gives read/write access to external storage at /storage/0000-0001]
Windows Mount Command: net use Z: \\[email protected]\DavWWWRoot /USER:username password
This fails:
3. But I can't seem to get just one WebDAV server to mount ALL of android (the root file system, plus read/write on the internal sdcard and read/write on the external sdcard) as a single Windows drive letter using that single WebDAV server over Wi-Fi.
WebDav Android Home Directory: /
[I believe this should access to the entire Android phone but it doesn't. Why not?]
Windows Mount Command: net use Z: \\[email protected] /USER:username password
My questions are:
a. Can you mount the entire Android phone (all three partitions) onto Windows over Wi-Fi as a single drive letter using a single WebDav server?
b. If so, how did you do it?
c. Why can't I?
Details:
My phone is Android 12; not rooted; Samsung Galaxy A32-5G; & the free WebDav servers I'm using are:
a. WebDAV Server, by The Olive Tree, Free, +ads, requires gsf, rated 3.5, 100K+ installs
b. WebDAV Server - BestDAV by ZQ Software, Free, ad free, gsf free, rated 3.4, 10K+ installs
GalaxyA325G said:
Can you mount BOTH Android internal & external storage onto Windows as a drive letter over Wi-Fi using a SINGLE WebDAV server?
This works:
1. I can easily mount my Android INTERNAL storage (including the read-only root hierarchy!) on Windows using any free WebDAV server and the Windows "net use" command over Wi-Fi to make that half of Android a drive letter.
WebDav Android Home Directory: /
[This gives read access to root at / and read/write access to internal storage at /storage/emulated/0]
Windows Mount Command: net use Y: \\[email protected]\DavWWWRoot /USER:username password
This works:
2. At the same time, I can just as easily mount my Android EXTERNAL storage (i.e., the entire external sd card) on Windows using any second free WebDAV server and the Windows "net use" command over Wi-Fi to make that other half of Android a different drive letter.
WebDav Android Home Directory: /storage/0000-0001
[This gives read/write access to external storage at /storage/0000-0001]
Windows Mount Command: net use Z: \\[email protected]\DavWWWRoot /USER:username password
This fails:
3. But I can't seem to get just one WebDAV server to mount ALL of android (the root file system, plus read/write on the internal sdcard and read/write on the external sdcard) as a single Windows drive letter using that single WebDAV server over Wi-Fi.
WebDav Android Home Directory: /
[I believe this should access to the entire Android phone but it doesn't. Why not?]
Windows Mount Command: net use Z: \\[email protected] /USER:username password
My questions are:
a. Can you mount the entire Android phone (all three partitions) onto Windows over Wi-Fi as a single drive letter using a single WebDav server?
b. If so, how did you do it?
c. Why can't I?
Details:
My phone is Android 12; not rooted; Samsung Galaxy A32-5G; & the free WebDav servers I'm using are:
a. WebDAV Server, by The Olive Tree, Free, +ads, requires gsf, rated 3.5, 100K+ installs
b. WebDAV Server - BestDAV by ZQ Software, Free, ad free, gsf free, rated 3.4, 10K+ installs
Click to expand...
Click to collapse
They can be displayed as separate drives but not as a single drive unless you have the adoptable storage option set up on your device, in that case, it would see your internal and external as a single integrated drive. One thing to note when using adoptable storage, the device will not boot with the sdcard removed.
There are also apps like Link2SD for rooted devices that can partition a portion of your external sdcard and use it as if it were part of the system partition so that you can move system apps to that partition even if your device would not normally allow you to move those apps to external sdcard. A couple of things to note about using such a partition as if it were part of the system partition, the moved apps will load and operate slower and the device won't boot without the external sdcard inserted or can even brick the device if the linked partition or external sdcard becomes corrupted.
Droidriven said:
They can be displayed as separate drives but not as a single drive unless you have the adoptable storage option set up on your device....
Click to expand...
Click to collapse
Thank you for explaining why the "internal storage" (both / and /sdcard/) have to be one mount point while my external storage sdcard (named /storage/0000-0001/) has to be a second separate mount point.
The good news is that with two webdav servers, they can each be mounted as a drive letter each over onto Windows over Wi-Fi.
Droidriven said:
There are also apps like Link2SD for rooted devices that can partition a portion of your external sdcard and use it as if it were part of the system partition
Click to expand...
Click to collapse
Thanks for that advice but I'm not rooted and T-Mobile still owns the phone (as they gave it to me for free) so I think they've disabled rooting.
The one problem that remains is I don't seem to have WRITE permission at the TOP LEVEL of the external sdcard from Windows over Wi-Fi when the external storage sdcard (named /storage/0000-0001/) is mounted as a drive letter onto Windows.
Strangely enough, using Windows with the sdcard mounted as a drive letter, I can write to any directory on that external sdcard that I had created on the phone (e.g., /storage/0000-0001/0001/) but I can't write to the top level of that external sdcard itself (i.e., /storage/0000-0001/).
I haven't debugged that write-permission problem yet as I was trying first to mount both the internal storage and external storage as a single Windows drive letter.
GalaxyA325G said:
Thank you for explaining why the "internal storage" (both / and /sdcard/) have to be one mount point while my external storage sdcard (named /storage/0000-0001/) has to be a second separate mount point.
The good news is that with two webdav servers, they can each be mounted as a drive letter each over onto Windows over Wi-Fi.
Thanks for that advice but I'm not rooted and T-Mobile still owns the phone (as they gave it to me for free) so I think they've disabled rooting.
The one problem that remains is I don't seem to have WRITE permission at the TOP LEVEL of the external sdcard from Windows over Wi-Fi when the external storage sdcard (named /storage/0000-0001/) is mounted as a drive letter onto Windows.
Strangely enough, using Windows with the sdcard mounted as a drive letter, I can write to any directory on that external sdcard that I had created on the phone (e.g., /storage/0000-0001/0001/) but I can't write to the top level of that external sdcard itself (i.e., /storage/0000-0001/).
I haven't debugged that write-permission problem yet as I was trying first to mount both the internal storage and external storage as a single Windows drive letter.
Click to expand...
Click to collapse
I'm not familiar with connectivity and drive protocols with what you're doing as I've never had the need for such a process.
I'm not even sure what to look up in order to get familiar enough to troubleshoot your setup.
Also, your attachments can't be viewed correctly, the attachment feature here is quirky. It is better to upload your photos to an image hosting site and then link them here.
Droidriven said:
I'm not familiar with connectivity and drive protocols with what you're doing as I've never had the need for such a process.
Click to expand...
Click to collapse
No problem. I've used ALL the freeware servers & clients on Android to interface with Windows, and I've found that WebDav works the best since it mounts Android as a drive letter over Wi-Fi.
To be clear, Ferro's FTPUse will also (supposedly) mount Android as a Windows drive letter over Wi-Fi but I find FTPUse even more problematic than WebDAV is.
Also of course SMB/Cifs/Samba "should" work best with Windows, but an unrooted Android phone can't use port 445 while Windows insists on serving SMB shares on port 445 (so all you can use are SMB clients on unrooted Android and not the SMB servers).
There are other connection methods (e.g., libmtp, kdeconnect, nitroshare, etc.), but I find WebDav to be the easiest and most functional in my tests over the years.
Droidriven said:
I'm not even sure what to look up in order to get familiar enough to troubleshoot your setup.
Click to expand...
Click to collapse
No problem. Currently I run two commands and that mounts everything; but I was just wondering why I can't do it with one.
a. I can mount the internal storage (including / & /sdcard)
b. I can mount the external storage (/storage/0000-0001)
I was hoping someone else would try it on another phone so that we can compare results. It's a very powerful feature to be able to save directly to Windows from Android and vice versa.
Droidriven said:
Also, your attachments can't be viewed correctly, the attachment feature here is quirky. It is better to upload your photos to an image hosting site and then link them here.
Click to expand...
Click to collapse
Sorry about that. Here are the images posted to an image site.
Both sdcards mounted
Permissions are the same
My Files has permission
File Manager has permission
X-plore has no permission
WebDav has no sd permission
Let me know if the images show up more easily that way as I normally include them but I'm all for making life easier for folks to see them.
I found one Android app - file manager+. Seems buggy but beautifully do the integration before being automatically disconnected. Maybe my network setup has something to do I'm not sure.
This thread is great! I'm trying to repurpose an old Samsung Galaxy Tab A tablet as a network drive on my home network. Ive been able to get BestDAV and WebDAV running on the tablet...but both give access to only the root directory of the tablet. I want the external SDCARD to be visible. Ive tried to specify this in the Website home directory setting, but Im clearly doing something wrong........can anyone help with the correct setting? Many thanks!!!

[How to Guide] Moving data files after Android 11 to the external sdcard

Many people install apps on the internal storage where those apps have large amounts of data that most people wish to store on the external sdcard, but on Android 11, Google changed the associated external sdcard storage access APIs available to app developers.
This change has caused problems for users of a variety of tools such as OsmAnd~, Total Commander, MapFactor Navigator, HereWeGo Maps, etc., where I just went through the process and want to document it so that others can follow the steps more easily than it took me to figure it out just now.
What I'll do below is document with detailed screenshots the steps I used to migrate the OsmAnd~ map data from non-rooted Android 12 internal storage (where map data is stored by default) to the external sdcard storage.
These are the basic steps as documented in the OsmAnd FAQ.
Go to Settings (on the start screen) --> OsmAnd Settings --> Data storage folder
Change the value to a path pointing to the external SD card, on many Android systems it may contain /storage/extSdCard or similar.
Please note that some versions of Android strictly limit your choice of which path will be write-accessible for apps.
You are then asked if the contents of the OsmAnd data folder should be moved from internal memory to the external SD card.
You may also perform this manually using a built-in file manager app on the device, or via connecting the device to a computer as external storage and performing the move from there.
Following _those_ directions, it seemed to work fine to move my OsmAnd~ 313.26MB of data storage from my internal sdcard to my external sdcard.
OLD: External storage 1
/storage/emulated/0/Android/data/net.osmand.plus/files
NEW: External storage 2
/storage/0000-0001/Android/data/net.osmand.plus/files
Here are the screenshots of that migration process:
First I updated OsmAnd~ to 4.1.11
Then I checked the OsmAnd~ Data storage folder settings
I then migrated the data using the OsmAnd~ Move to ext sdcard command
This moved the internal map data to the external sdcard
I doublechecked using the X-plore file manager
Which showed a path of /storage/0000-0001/Android/data/net.osmand.plus/files
Which were also mounted over Wi-Fi onto the Windows 10 PC as a drive letter
Showing that the files were successfully migrated to the external sdcard
And which Windows adb clearly shows over Wi-Fi using "shell" commands
The Windows drive letter which is the entire Android 12 sdcard, was mounted
over Wi-Fi using the native Windows 10 "NET USE" command, as follows:
C:\> net use Z: \\[email protected]\DavWWWRoot /USER:foobar snafu
Where "foobar" is an arbitrary username set up for read/write in the WebDav server running on Android, and "snafu" is the arbitrary password for it.​
Note: The Android 12 phone doesn't have any login account whatsoever & the Windows 10 PC has a username that is different, & which has no password.​
The Windows adb commands I just now used for that screenshot were these:
1. This shows the Android phone is connected over Wi-Fi via tcp.
C:\> adb devices
adb-serialnumber._adb-tls-connect._tcp. device​
2. This shows Windows adb can read the internal Android storage over Wi-Fi.
C:\> adb shell ls /storage/emulated/0/Android/data/net.osmand.plus
cache​
files​
C:\> adb shell ls /storage/emulated/0/Android/data/net.osmand.plus/files
tiles​
tracks​
3. This shows Windows adb can read the external Android storage over Wi-Fi.
C:\> adb shell ls /storage/0000-0001/Android/data/net.osmand.plus/files
Us_california_san-francisco_northamerica.obf​
World_basemap_mini.obf​
backup​
favourites.gpx​
fonts​
ind.cache​
itinerary.gpx​
regions.ocbf​
rendering​
roads​
routing​
sounds​
tiles​
tracks​
travel​
voice​
In summary, the screenshots I created show the process graphically that I followed just now with the FOSS OsmAnd~ app to recover from the changes Google made in Android 11 and up to the storage model for apps saving data onto the external sdcard. As far as I know, the recovery process for similar apps should use similar steps.
Please let me know if you need more information about how this was done as I'm trying to help others by documenting these steps.
Note:
The phone is an unrooted Android 12 Samsung Galaxy A32-5G with both an internal storage card /storage/emulated/0 and an external storage card /storage/0000-0001 (where the external sdcard was formatted with that easy-to-remember 0000-0001 identifier years ago using a Windows PC).

Categories

Resources