micro5k / microg-unofficial-installer

microG unofficial installer - it installs microG on Android
https://forum.xda-developers.com/showthread.php?t=3432360
GNU General Public License v3.0
162 stars 20 forks source link

Failed to copy custom-setup-a5k on latest crdroid #63

Open 532910 opened 1 year ago

532910 commented 1 year ago
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

ale5000-git commented 1 year ago

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.

532910 commented 1 year ago

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.

ale5000-git commented 1 year ago

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.

ale5000-git commented 11 months ago

@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.

532910 commented 11 months ago
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:/ # 
532910 commented 11 months ago

I "fixed" the issue installing all on /product: https://github.com/532910/microg-fdroid-aurora

532910 commented 11 months ago

About updates: only OTA updates are survived. Trying to do Local update will remove installed apps.

ale5000-git commented 11 months ago

I will do these things:

The last point will come later since it is the most complicated.

ale5000-git commented 10 months ago

This new code should alleviate the problem on some devices: free-space-autorecovery