[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] multiwirth:
Uhm hi there,

i found an strange issue.

When using a microSD card as internal storage, i´m unable to move apps.

It quits the job with "not enough free space".

I grabbed a log and found a few related error messages:

Is this supposed to work?

I recommended this ROM to an user on reddit and he doesn´t even get the option to format his sdcard as internal storage.

Seems like i have this option, but it´s currently unuseable due to this error.

Any ideas what could cause this?

Btw. the mount path the error messages are refering to indeed exists and is writeable.

10-25 19:05:44.401 1703 2138 I ActivityTaskManager: START u0 {cmp=com.android.settings/.deviceinfo.StorageWizardMoveProgress (has extras)} from uid 1000
10-25 19:05:44.402 1703 1844 V PackageManager: Move 2 created Bundle[{android.intent.extra.PACKAGE_NAME=com.bandcamp.android, android.intent.extra.TITLE=Bandcamp}]
10-25 19:05:44.402 1703 1812 I ActivityManager: Force stopping com.bandcamp.android appid=10109 user=-1: movePackageInternal
10-25 19:05:44.409 1703 2138 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (70447269)
10-25 19:05:44.409 1703 1844 V PackageManager: Move 2 status 10
10-25 19:05:44.412 1703 1703 W NotificationHistory: Attempted to add notif for locked/gone/disabled user 0
10-25 19:05:44.415 1381 21284 D installd: Copying /data/app/~~kjFeF3nKWrQaJ3ejst9yQQ== to /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/app
10-25 19:05:44.422 20408 20408 V SuiSettings: newActivity: com.android.settings.deviceinfo.StorageWizardMoveProgress
10-25 19:05:44.425 20408 20408 I SetupLibrary: [ThemeHelper] Return SudFullDynamicColorTheme_DayNight
10-25 19:05:44.436 2210 2271 D LocalImageResolver: Couldn't use ImageDecoder for drawable, falling back to non-resized load.
10-25 19:05:44.437 2210 2210 W Choreographer: Frame time is 0.267621 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-25 19:05:44.437 1703 1806 W Choreographer: Frame time is 0.267621 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
10-25 19:05:44.454 20408 20427 W Parcel : Expecting binder but got null!
10-25 19:05:44.457 2210 2271 D LocalImageResolver: Couldn't use ImageDecoder for drawable, falling back to non-resized load.
10-25 19:05:44.458 1703 9993 D CoreBackPreview: Window{ba4a892 u0 com.android.settings/com.android.settings.deviceinfo.StorageWizardMoveProgress}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@8310e60, mPriority=-1}
10-25 19:05:44.465 20408 20427 E OpenGLRenderer: Unable to match the desired swap behavior.
10-25 19:05:44.478 1703 1802 I ActivityTaskManager: Displayed com.android.settings/.deviceinfo.StorageWizardMoveProgress: +75ms
10-25 19:05:44.491 1381 21284 E cutils : Failed to mkdir(/mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/user/0/com.bandcamp.android): No such file or directory
10-25 19:05:44.491 1381 21284 E installd: Failed to prepare /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/user/0/com.bandcamp.android: No such file or directory
10-25 19:05:44.491 1381 21284 E installd: Failed to prepare /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/user/0/com.bandcamp.android: No such file or directory
10-25 19:05:44.491 1381 21284 E installd: Failed to create package target: No such file or directory
10-25 19:05:44.493 24259 24259 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3260
10-25 19:05:44.494 24259 24259 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2103 repeatCheckTimes = 0, locked = false
10-25 19:05:44.494 24259 24259 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1894 onStartInput(EditorInfo{EditorInfo{packageName=com.android.settings, inputType=0, inputTypeString=NULL, enableLearning=false, autoCorrection=false, autoComplete=false, imeOptions=0, privateImeOptions=null, actionName=UNSPECIFIED, actionLabel=null, initialSelStart=-1, initialSelEnd=-1, initialCapsMode=0, label=null, fieldId=-1, fieldName=null, extras=null, hintText=null, hintLocales=[]}}, false)
10-25 19:05:44.494 24259 24259 I GoogleInputMethodService: GoogleInputMethodService.updateDeviceLockedStatus():2103 repeatCheckTimes = 1, locked = false
10-25 19:05:44.954 20408 20427 D OpenGLRenderer: endAllActiveAnimators on 0x7d4e94f3c0 (InsetDrawable) with handle 0x7c5e96a8e0
10-25 19:05:44.958 1703 1731 D CoreBackPreview: Window{19052c9 u0 com.android.settings/com.android.settings.deviceinfo.StorageWizardMoveConfirm}: Setting back callback null
10-25 19:05:44.959 1703 2138 W InputManager-JNI: Input channel object '19052c9 com.android.settings/com.android.settings.deviceinfo.StorageWizardMoveConfirm (client)' was disposed without first being removed with the input manager!
10-25 19:05:45.318 1381 21284 E installd: Couldn't opendir /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/user_de/0/com.bandcamp.android: No such file or directory
10-25 19:05:45.318 1381 21284 W installd: Failed to rollback /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/user_de/0/com.bandcamp.android
10-25 19:05:45.318 1381 21284 E installd: Couldn't opendir /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/user/0/com.bandcamp.android: No such file or directory
10-25 19:05:45.318 1381 21284 W installd: Failed to rollback /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/user/0/com.bandcamp.android
10-25 19:05:45.318 1381 21284 E installd: Couldn't opendir /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/misc_ce/0/sdksandbox/com.bandcamp.android: No such file or directory
10-25 19:05:45.318 1381 21284 W installd: Failed to rollback /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/misc_ce/0/sdksandbox/com.bandcamp.android
10-25 19:05:45.318 1381 21284 E installd: Couldn't opendir /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/misc_de/0/sdksandbox/com.bandcamp.android: No such file or directory
10-25 19:05:45.318 1381 21284 W installd: Failed to rollback /mnt/expand/3bb2bc5b-046f-4813-92ad-f200ee0bc9f2/misc_de/0/sdksandbox/com.bandcamp.android
10-25 19:05:45.321 1703 1844 W PackageManager: Failed to move app
10-25 19:05:45.321 1703 1844 W PackageManager: com.android.server.pm.Installer$InstallerException: android.os.ServiceSpecificException: Failed to create package target (code 2)
10-25 19:05:45.321 1703 1844 W PackageManager: at com.android.server.pm.Installer.moveCompleteApp(Installer.java:478)
10-25 19:05:45.321 1703 1844 W PackageManager: at com.android.server.pm.MoveInstallArgs.copyApk(MoveInstallArgs.java:51)
10-25 19:05:45.321 1703 1844 W PackageManager: at com.android.server.pm.InstallParams.processPendingInstall(InstallParams.java:238)
10-25 19:05:45.321 1703 1844 W PackageManager: at com.android.server.pm.InstallParams.handleReturnCode(InstallParams.java:232)
10-25 19:05:45.321 1703 1844 W PackageManager: at com.android.server.pm.HandlerParams.startCopy(HandlerParams.java:59)
10-25 19:05:45.321 1703 1844 W PackageManager: at com.android.server.pm.PackageHandler.doHandleMessage(PackageHandler.java:91)
10-25 19:05:45.321 1703 1844 W PackageManager: at com.android.server.pm.PackageHandler.handleMessage(PackageHandler.java:76)
10-25 19:05:45.321 1703 1844 W PackageManager: at android.os.Handler.dispatchMessage(Handler.java:106)
10-25 19:05:45.321 1703 1844 W PackageManager: at android.os.Looper.loopOnce(Looper.java:201)
10-25 19:05:45.321 1703 1844 W PackageManager: at android.os.Looper.loop(Looper.java:288)
10-25 19:05:45.321 1703 1844 W PackageManager: at android.os.HandlerThread.run(HandlerThread.java:67)
10-25 19:05:45.321 1703 1844 W PackageManager: at com.android.server.ServiceThread.run(ServiceThread.java:44)
10-25 19:05:45.322 1703 1844 V PackageManager: Move 2 status -6
10-25 19:05:45.324 20408 20408 D StorageWizardMoveProgress: Finished with status -6
10-25 19:05:45.370 2210 2303 W Parcel : Expecting binder but got null!