Conan Troutman · Jan 20, 2013 at 10:30 pm

Fix for Empty App-Mounted Directories in Android 4.2

With the release of Android 4.2 came many new features, one of which was the support for multiple user accounts on the same device. Unfortunately this addition had a rather undesirable effect on a feature that many people found much more useful than being able to create a separate user account. As of version 4.2, apps such as CIFS manager and Mountpoint no longer function as they should, due to changes that prevented Dalvik apps from mounting file systems to be shared with other apps. The directories will appear to be absolutely fine from within the app that initially mounted them. However, when attempting to view the contents from another app, well, you won’t be able to. Certain aspects of this issue have been addressed by XDA Elite Recognized Developer Chainfire‘s Stickmount, which is compatible with 4.2. However, until now there hasn’t yet been a resolution that doesn’t rely on a third party application.

The crux of the issue is that to ensure separation between user accounts, the system mounts everything under “/” (which is everything) as a recursive slave mountspace. In laymans terms, linking between apps across the filesystem is somewhat borked. Fortunately for those of you who would like to rectify this and regain that functionality, XDA Recognized Developer mkasick has come up with not just one but two different methods of remedying this issue. Please note though that these fixes are primarily aimed at developers looking to integrate them into 4.2-based ROMs.

Both fixes are composed of two parts, one of which is a modification to the boot ramdisk init.rc. The preferable method of patching this issue is by applying a change to Dalvik, which restricts the slave mountspace to  “/system” and “/mnt/shell/emulated”. The second option does the same thing at kernel level for ROMs that don’t/can’t use the preferred fix. These commits are in the process of being evaluated for inclusion into CyanogenMod, but at the moment still need to be applied manually.

Check out the original forum thread for a much more technical evaluation of the problem and links to the relevant gerrit/github pages for these patches.


_________
Want something on the XDA Portal? Send us a tip!
TAGS:
Mario Tomás Serrafero · Mar 3, 2015 at 04:29 pm · 1 comment

Five New Forums for Latest Phones, Tablet and Smartwatch

The Galaxy S6 Edge, Huawei Watch, Xperia Z4 Tablet, Moto E 2015 and Xperia M4 Aqua all have gotten new forums here at XDA. If you want the latest and greatest in hardware as of now, the Galaxy S6 Edge's top-tier processor, memory, and camera will most likely fulfill your everyday needs with blazing speed, and extra screen-space to boot. Huawei seems to have nailed the smartwatch with their new Huawei Watch, a classy-looking but also durable and powerful Android Wear...

XDA NEWS
Mario Tomás Serrafero · Mar 3, 2015 at 04:00 pm · no comments

Cross-Platform Encrypted Messaging with Signal 2.0

Privacy and security are two increasingly important factors in today's globalized world, and with the surge of internet spying by government agencies and third parties, wiretaps are an everyday thing that don't just concern James Bond anymore. Encryption made its way to the semi-mainstream messaging world with the Telegram platform, but while millions flocked to it, it is still clear that convenience beats privacy for most of smartphone users. After all, with the huge user bases boasted by Whatsapp and the...

XDA NEWS
Mario Tomás Serrafero · Mar 3, 2015 at 03:43 pm · 1 comment

Best of Matias Duarte – “Ask Me Anything” Summary

Matias Duarte, VP of Design at Google, is perhaps one of the most prolific software designers of recent times: Material Design, the highest exponent of Android beauty, is Matias' own brainchild. Without him and his creation, the biggest Android update of all time wouldn't have been what it was and our favorite platform would still carry a look that many deemed outdated even before Material Design was shown. With an internet following that spawned several internet memes and even a weird community,...

XDA NEWS
Share This