microg-unofficial-installer
microg-unofficial-installer copied to clipboard
Failed to copy custom-setup-a5k on latest crdroid
ERROR 98: Failed to copy dir content from '/tmp/custom-setup-a5k/files/app' to '/mnt/system/system/app'
crDroidAndroid-13.0-20230526-lemonadep-v9.5
I think that the problem is probably the missing free space.
The main problem is that microG GmsCore is growing a lot recently but the thing that grow much is not the microG GmsCore itself but mainly the Maps libray included inside it.
I have to find a way to fix the problem but this need some time. In the meanwhile you could try to manually remove some apps that you don't need from the system partition.
Can confirm that there is not enough free space on the system
partition.
But enough on the product
.
OnePlus9Pro:/ $ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 5.4G 1.7M 5.4G 1% /dev
tmpfs 5.4G 936K 5.4G 1% /mnt
/dev/block/dm-2 925M 897M 13M 99% /
/dev/block/dm-3 1.0G 0.9G 11M 99% /system_ext
/dev/block/dm-1 1.3G 530M 788M 41% /product
/dev/block/dm-4 649M 647M 0 100% /vendor
/dev/block/dm-5 29M 29M 0 100% /vendor_dlkm
/dev/block/dm-0 1.1G 1.1G 0 100% /odm
magisk 5.4G 4.8M 5.4G 1% /dev/nuxpztyivjxr
tmpfs 5.4G 8.0K 5.4G 1% /apex
/dev/block/sde14 59M 41M 16M 72% /vendor/dsp
/dev/block/dm-6 221G 7.1G 214G 4% /data
worker 5.4G 0 5.4G 0% /system/bin
/dev/fuse 221G 7.1G 214G 4% /storage/emulated
I successfully created a sideload zip that installs f-droid, aurora and gmsCore, based on org.fdroid.fdroid.privileged.ota_2130.zip
. I mount /dev/block/mapper/product_[ab]
and copy files there.
But I faced another problem: the update doesn't survives ota update. Moreover neither org.fdroid.fdroid.privileged.ota_2130.zip
nor Magisk-v26.1.zip
survives ota and needs to be reinstalled.
Using addon.d for preserve apps in the product partition is an additional complication and not all ROMs support it since it was introduced later. I have never looked at it and I don't have time currently but I will surely support it in the future.
@532910 Could you please mount the system partition, run these commands and post the results?
ls -la /mnt/system/system/priv-app
ls -la /mnt/system/system/app
Maybe I can find some unnecessary Google apps that can be removed to reduce the problem until there is a better fix.
1|OnePlus9Pro:/ # ls -la /system/priv-app
total 164
drwxr-xr-x 41 root root 4096 2009-01-01 03:00 .
drwxr-xr-x 14 root root 4096 2009-01-01 03:00 ..
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 BackupRestoreConfirmation
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 BlockedNumberProvider
drwxr-xr-x 4 root root 4096 2009-01-01 03:00 BuiltInPrintService
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 CalendarProvider
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 CallLogBackup
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 CellBroadcastLegacyApp
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 ContactsProvider
drwxr-xr-x 2 root root 4096 2009-01-01 03:00 CtsShimPrivPrebuilt
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 DocumentsUI
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 DownloadProvider
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 DownloadProviderUi
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 DynamicSystemInstallationService
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 ExternalStorageProvider
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 FaceUnlockService
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 FusedLocation
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 InputDevices
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 IntentResolver
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 LiveWallpapersPicker
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 LocalTransport
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 ManagedProvisioning
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 MediaProviderLegacy
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 MmsService
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 MtpService
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 NetworkStack
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 NetworkStackNext
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 ONS
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 PackageInstaller
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 ProxyHandler
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 SettingsProvider
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 SharedStorageBackup
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 Shell
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 SoundPicker
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 StatementService
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 Tag
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 TeleService
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 Telecom
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 TelephonyProvider
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 UserDictionaryProvider
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 VpnDialogs
OnePlus9Pro:/ # ls -la /system/app
total 92
drwxr-xr-x 23 root root 4096 2009-01-01 03:00 .
drwxr-xr-x 14 root root 4096 2009-01-01 03:00 ..
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 BasicDreams
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 BluetoothMidiService
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 BookmarkProvider
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 CameraExtensionsProxy
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 CaptivePortalLogin
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 CarrierDefaultApp
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 CertInstaller
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 CompanionDeviceManager
drwxr-xr-x 2 root root 4096 2009-01-01 03:00 CtsShimPrebuilt
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 EasterEgg
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 ExtShared
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 HTMLViewer
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 KeyChain
drwxr-xr-x 4 root root 4096 2009-01-01 03:00 NfcNci
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 PacProcessor
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 PrintRecommendationService
drwxr-xr-x 4 root root 4096 2009-01-01 03:00 PrintSpooler
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 SecureElement
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 SimAppDialog
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 Stk
drwxr-xr-x 3 root root 4096 2009-01-01 03:00 WallpaperBackup
OnePlus9Pro:/ #
I "fixed" the issue installing all on /product
:
https://github.com/532910/microg-fdroid-aurora
About updates: only OTA updates are survived. Trying to do Local update
will remove installed apps.
I will do these things:
- [x] Display the exact error in case of failure
- [x] Reduce general microG GmsCore size: https://github.com/microg/GmsCore/pull/2000 (76,3 MB => 35,8 MB)
- [x] Install only the strictly required libraries to reduce size on the system partition
- [x] Rollback optional apps to reclaim free space if needed
- [ ] Remove more unneded Google apps
- [ ] Install on product partition if there isn't enough space on the system partition
The last point will come later since it is the most complicated.
This new code should alleviate the problem on some devices: