Java lang illegalargumentexception new installs into asec containers no longer supported

Android

I’m trying to move with Lucky Patcher (also with app2sd and Samsung stock app) some apps from internal to external storage, but everytime with every apps movable I got this message:

java.lang.IllegalArgumentException: New installs into ASEC containers no longer supported

I have a Samsung Galaxy S7 with Android 8.0 and root.

Do you now why this happens? Maybe, Android 8.0 doesn’t allow anymore this?

Up to Lollipop, native app2sd moved .apk files as encrypted .asec files (1) to .android_secure folder in /mnt/sdcard/ or /storage/sdcard[0|1]/ . On every boot these encrypted files were decrypted and placed in a temporary filesystem mounted at /mnt/asec/ (2) by vold , to which the symlinks from app directories in /data/app/ and possibly from library directories in /data/data/ were pointing.

Starting with Marshmallow, the native method of moving apps to external SD card works only if SD card is formatted as Adoptable Storage (3, 4) :

ASEC containers have been deprecated since MNC, which is when we introduced the «adoptable storage» feature. Adoptable storage is a much better user experience, since we move both the APK and private app data together as a single unit.

* MNC is Macadamia Nut Cookie; code name for Android Marshmallow (6.x).

new installs into ASEC containers are no longer supported; use adoptable storage instead.

Adoptable Storage is a Full Disk Encrypted SD card, completely managed by vold , not visible to user as external SD card. See here how it differs from traditional Portable Storage. You can format SD card as partially Adoptable and partially Portable too.

Like the pre-Marshmallow app2sd phenomenon (5) , apps only with installLocation set to preferExternal or auto in app’s manifest are moveable:

Apps can be placed on adopted storage media only when the developer has indicated support through the android:installLocation attribute.

For apps with install location auto , default install location (set using pm set-install-location ) decides where app will be installed. See this answer for details.

If you want to move all apps, use a third party solution like Apps2SD or Link2SD .

PS:
An even better approach is to move /data/media instead of apps. Create an extra partition on external SD card and on post-fs-data mount it to /data/media using an init.d script or Android’s init service. Other bigger directories /data/app or /data/data can also be moved in the same way.

If you want to keep files encrypted on external SD card, this can be achieved through native methods dm-crypt (Android’s FDE ) for block device encryption, ecryptfs for stacked filesystem encryption, or third party solution like EncFS for stacked encryption. New native method of filesystem encryption fscrypt (Android’s FBE ) may also work, but I haven’t tried. See details in this answer.

Источник

Move apps to SD card in Marshmallow without using internal SD Card storage?

For details see Why root cannot access “.android_secure” directory on external SD card? Starting with Marshmallow, the native method of moving apps to external SD card works only if SD card is formatted as (1, 2) Use ext4 file system for partition 2 for apps2sd app to link/unlink apps to SD card.

Move apps to SD card in Marshmallow without using internal SD Card storage?

In previous Android versions is was possible to move apps to the SD card . In Marshmallow, I was prompted to choose if I want to use My Micro SD Card as external storage or to extend internal storage . I chose to use it as external storage because I need to use it in My computer without a cable. In Marshmallow, the option to transfer Apps to SD Card didn’t seen to appear. Someone else I know chose to extend internal storage using the Micro SD Card. On that phone, the option still appears. We both have a Moto G2.

Without root and a 3rd party app like Link2SD, it is not possible in Marshmallow because Google removed that capability from Android. If you accept an OTA from Lollipop to Marshmallow, Apps currently on SD will remain there but no additional apps can be moved to the SD card under Marshmallow.

Newest ‘app2sd’ Questions — Android Enthusiasts Stack, adb 6.0-marshmallow app2sd java sony-xperia-m-dual. Ooker. 444; asked Mar 2, 2017 at 17:15. 1 vote. 0 answers. 33 views. App2sd compatible email app. I have a Casio G’zOne Commando C771 phone. It only has 400 MB of internal storage (. ). I want to connect to my email, but if I use the built in email app, it will very quickly …

How to Move Apps to SD card in Android 6.0

Android Marshmallow 6.0 support Moving Apps to SD card completely without any hassle.. If you mount ur SD card as internal storage you will never see the ins

Android 6.0 Marshmallow

Hey chicos aquí les traigo 3 métodos para poder pasar las apps ala tarjeta SD en Android 6.0 Marshmallow .Los 3 métodos no necesitan acceso root, solo tener A

[EASY STEPS] How To Use SD Card As Adoptable

Subscribe For More: http://bit.ly/TechnoGenuine1==DOWNLOAD LINK==Root Essentials: http://bit.ly/2eolyC7Works For Samsung …

Adoptable storage questions

I recently updated to marshmallow with cyanogenmod 13 to use the «adoptable storage» feature. I was disappointed to find out that that only some apps could be put on the adopted storage. I used link2sd in the past as 11gb of internal is insufficient for my 300 apps. However, Link2sd is broken on marshmallow, and I am limited to 11gb once again, so here are my questions:

    Is there any way to install all apps on the SD card in android marshmallow ? Eg. Method to force all apps to adoptable storage, link2sd fix, Cutsom marshmallow rom, etc. (Or am I just doing things wrong)

  1. Download Apps2SD: All in One Tool
  2. Use Apps2SD: All in One Tool to create Mount scripts on the second partition.
  3. You can now use link2sd normally. You may need to keep Apps2SD if you have mount problems on boot.
  4. If your linked apps disappear after booting, wait for Apps2SD to initialize. It will prompt you to do a soft boot. Click okay, and the second partition should be mounted after soft booting. Your apps will be restored and you can use link2sd again. (You need to do this every time you reboot)

Use partition tool to get rid of SD card corrupt error. Use exFAT file system for partition 1 for SD card to be recognized by the phone. Use ext4 file system for partition 2 for apps2sd app to link/unlink apps to SD card .

If you plan on downloading from YouTube a lot, give yourself appropriate size storage because it only recognizes SDcard recognized by your phone even if YouTube is linked to SD card by apps2sd.

How to move apps from internal to external storage?

I’m trying to move with Lucky Patcher (also with app2sd and Samsung stock app) some apps from internal to external storage, but everytime with every apps movable I got this message:

java.lang.IllegalArgumentException: New installs into ASEC containers no longer supported 

I have a Samsung Galaxy S7 with Android 8.0 and root.

Do you now why this happens? Maybe, Android 8.0 doesn’t allow anymore this?

Native app2sd method — which placed encrypted .asec files in .android_secure folder on external SD card — was available only up to Android 5. For details see Why root cannot access “. android_secure ” directory on external SD card?

Starting with Marshmallow, the native method of moving apps to external SD card works only if SD card is formatted as Adoptable Storage (1, 2) :

ASEC containers have been deprecated since MNC, which is when we introduced the «adoptable storage» feature. Adoptable storage is a much better user experience, since we move both the APK and private app data together as a single unit.

* MNC is Macadamia Nut Cookie ; code name for Android Marshmallow (6.x).
And:

new installs into ASEC containers are no longer supported; use adoptable storage instead.

Adoptable Storage is a Full Disk Encrypted SD card, completely managed by vold , not visible to user as external SD card. See here how it differs from traditional Portable Storage. You can format SD card as partially Adoptable and partially Portable too.

Like the pre-Marshmallow app2sd phenomenon (3) , apps only with installLocation set to preferExternal or auto in app’s manifest are moveable:

Apps can be placed on adopted storage media only when the developer has indicated support through the android:installLocation attribute.

For apps with install location auto , default install location (set using pm set-install-location ) decides where app will be installed. See this answer for details.

If you want to move all apps, use a third party solution like Apps2SD or Link2SD .

PS:
An even better approach is to move /data/media instead of apps. Create an extra partition on external SD card and on post-fs-data mount it to /data/media using an init.d script or Android’s init service. Other bigger directories /data/app or /data/data can also be moved in the same way.

If you want to keep files encrypted on external SD card, this can be achieved through native methods dm-crypt (Android’s FDE ) for block device encryption , ecryptfs for stacked filesystem encryption, or third party solution like EncFS for stacked encryption. New native method of filesystem encryption fscrypt (Android’s FBE ) may also work, but I haven’t tried. See details in this answer.

  • How to free Internal Storage by moving data or using symlink / bind-mount with Adoptable Storage?

Marshmallow Features, Overview. Android 6.0 Marshmallow , is the next major Android release after Android Lollipop. Xamarin.Android supports Android Marshmallow and includes: API 23/Android 6.0 Bindings – Android 6.0 adds many new APIs for the new features described below; these APIs are available to Xamarin.Android …

How to set SD card as default storage on Android Marshmallow?

I have a Lenovo K3 Note (K50a40) and I was running Android 5.0 Lollipop until last week. I had set the default storage as SD Card on lollipop in storage settings, but that option seems to have disappeared in Android 6.0 Marshmallow. It only allows users to » Adopt the SD Card as internal storage «. I do not want to reformat the SD Card as internal, as that will result in encryption of the SD Card. I just want the downloaded data, and the screenshots, Instagram pics, Whatsapp media etc to go to the SD Card , as was the case in Lollipop with SD Card as the default storage.

The applications need to support this in Marshmallow, and as of yet many applications do not support the changes that are needed in their code to allow this to occur in Marshmallow with the SD card setup as external storage.

The answer is that your app developers need to include this functionality in their apps, it is not a blanket Android setting. Unless the code is included in their apps, there is nothing you can do to change it in a stock device.

Frequent ‘app2sd’ Questions — Android Enthusiasts Stack, Q&A for enthusiasts and power users of the Android operating system

Источник

Читайте также:  Html submit button with text
Оцените статью