Android 6.0 Marshmallow for Nexus 4
Simple fix for app force close and bootloop issues in Android 6.0 with SD card as internal storageXDA

Android 6.0 Marshmallow brings the unique ability to double up your SD card as internal storage. This new feature allows budget devices like Android One with limited storage capacity, to install apps directly on the SD card.

Apps force closing issue

It is reported that some apps may force close after setting up your SD card as an internal storage. Here is what you should do to fix this issue:

  • After setting up your SD card as internal storage, you will need to authorise or allow permission to format the SD card and then you can transfer the apps to it.
  • Once you have moved the apps to SD card, you may encounter random force close issues with some installed apps when you are using them. Just restart the device to fix the problem.

Files cannot be accessed in open apps

Although the device restart might just fix the app force close issue, it will not let you access the files within open apps. You need to install a custom kernel such as Thunderzap, install ES File manager and then give root permission via its Settings to fix this problem.

How to fix bootloop issues

Transferring apps back from SD card to device's internal storage after setting up the SD card to store apps will, result in device bootlooping. Consequently, users are advised to avoid making any system-storage changes to their device after setting up SD card as internal storage.

However, if you have accidentally got into the bootloop problem, then you need to format the data partition to fix the problem. Here is how you do it:

  • Disconnect the device from computer and boot it into recovery mode: Power off the device and then wait for about 4-5 seconds after the display turns off.
  • Press and hold Power and Volume Down buttons together until the device boots into bootloader screen with FASTBOOT logo displayed at the top.
  • Hit Volume Up/ Down for 2-3 times to launch recovery menu and then hit the Power button to select it. The device should now boot into TWRP recovery.
  • In TWRP, hit Wipe and then perform the swipe action from the bottom of the screen to confirm the same. Finally, restart the device by tapping on Reboot System.
  • Alternatively, you can use the default stock 3e recovery to perform a wipe data/factory reset. You can use Volume buttons to scroll through the options and Power button to select it. Choose Yes on next screen to confirm the action. Then hit 'reboot system now' button to restart the device.

[Source: Reddit via The Android Soul]