Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR 91: Failed to copy 'etc/org.fdroid.fdroid' to the device #112

Open
kz8937492 opened this issue Feb 8, 2025 · 5 comments
Open

ERROR 91: Failed to copy 'etc/org.fdroid.fdroid' to the device #112

kz8937492 opened this issue Feb 8, 2025 · 5 comments
Assignees
Labels

Comments

@kz8937492
Copy link

What happened?

Asked to open this as a separate defect from #108

Version

microg-unofficial-installer-v1.3.1.74-alpha-1c27c31-oss-LOG-by-ale5000-signed.zip

Android version

15

Custom ROM

crdroid 11.1

Relevant log output

Starting main script...
Parsing local settings...

System mountpoint list:
/mnt/system
/system_root
/tmp/custom-setup-a5k/system_mountpoint
Mounting system...
Mounted: /system_root
Timeout is legacy BusyBox: true
Using: input event
INFO: Press the VOLUME + key to enable live setup.

Waiting input for 3 seconds...
Found gpio-keys device at: /dev/input/event4
Missing keylayout: '/system_root/system/usr/keylayout/gpio-keys.kl'
Killing: 1375

Key: No key pressed

INFO: The '/vendor' mount point is read-only, it will be remounted

WARNING: Remounting of '/vendor' failed
microG unofficial installer
v1.3.1.74-alpha
(by ale5000)

Brand: Xiaomi
Manufacturer: Xiaomi
Model: Mi 9T Pro
Device: raphael
Product: raphael
Emulator: false

First installation: true
Boot mode: false
Sideload: false
Zip install: false
Recovery API ver: 3

Android API: 35
64-bit CPU arch: arm64-v8a
32-bit CPU arch: false
ABI list: arm64-v8a

Verity mode: enforcing
Dynamic partitions: true
Current slot: no slot
Recov. fake system: true

System mount point: /system_root
System path: /system_root/system
Priv-app path: /system_root/system/priv-app
Android root ENV: /system
Fake signature: false

Starting installation...

Extracting...
Configuring...

Enabling: microG Maps v1 API
Verifying...

/tmp/custom-setup-a5k/origin/framework/com.google.android.maps.jar
OK

Enabling: microG Services
Verifying...

/tmp/custom-setup-a5k/origin/priv-app/GmsCore.apk
OK
Extracting libs from priv-app/GmsCore/GmsCore.apk...
Selecting libraries => arm64-v8a

Enabling: microG Services Framework Proxy
Verifying...

/tmp/custom-setup-a5k/origin/priv-app/GsfProxy.apk
OK

Enabling: microG Companion (FakeStore)
Verifying...

/tmp/custom-setup-a5k/origin/priv-app/FakeStore.apk
OK

Skipping: UnifiedNlp (legacy)

Enabling: F-Droid Privileged Extension
Verifying...

/tmp/custom-setup-a5k/origin/priv-app/FDroidPrivilegedExtension.apk
OK

Disabling: Aurora Services

Enabling: NewPipe
Verifying...

/tmp/custom-setup-a5k/origin/app/NewPipe.apk
OK

Enabling: My Location
Verifying...

/tmp/custom-setup-a5k/origin/app/MyLocation.apk
OK

Enabling utility: MinUtil
Segmentation fault

Waiting...Segmentation fault

Preparing installation...
Processing ACCESS_BACKGROUND_LOCATION...
etc/default-permissions/google-permissions.xml
Done

Moving apps into subfolders...

Disk space required: 78.47 MB
Segmentation fault
Free disk space: 380.45 MB (380.45 MB)

Installing...
Copying the 'etc/zips' folder to the device...
Copying the 'etc/permissions' folder to the device...
Copying the 'framework' folder to the device...
Copying the 'etc/default-permissions' folder to the device...
Copying the 'etc/org.fdroid.fdroid' folder to the device...

Filesystem 512-blocks Used Available Capacity Mounted on
/dev/block/dm-0 4626208816 36028314689258189 114576599936 100% /system_root

Filesystem Type Size Used Available Use% Mounted on
/dev/block/dm-0 ext4 2.2T 16.0E 53.4T 100% /system_root

Segmentation fault
Free disk space: 380.27 MB (380.27 MB)
ERROR 91: Failed to copy 'etc/org.fdroid.fdroid' to the device due to => cp: can't create '/system_root/system/etc/org.fdroid.fdroid/additional_repos.xml': No space left on device
@kz8937492 kz8937492 added bug needs triage Pending review to ensure they are relevant, actionable and contain all necessary information labels Feb 8, 2025
@ale5000-git
Copy link
Member

ale5000-git commented Feb 11, 2025

I have made a build with additional debug.
Could you please try it and post the debug-a5k.log?

Edit: Link removed.

@ale5000-git ale5000-git removed the needs triage Pending review to ensure they are relevant, actionable and contain all necessary information label Feb 11, 2025
@kz8937492
Copy link
Author

My phone is also my daily driver - I can try the build but would you be able to help me in flashing it in a way that won't install anything just to see? Or does it need to install?
Since posting the defect I've flashed the beta version instead and upgraded gmscore and companion via fdroid to a more up to date version - can I flash the debug you had posted without issue?
What I don't want to run into is having to reinstall everything again mid work week as I need it for work.

@ale5000-git
Copy link
Member

ale5000-git commented Feb 13, 2025

My phone is also my daily driver - I can try the build but would you be able to help me in flashing it in a way that won't install anything just to see? Or does it need to install? Since posting the defect I've flashed the beta version instead and upgraded gmscore and companion via fdroid to a more up to date version - can I flash the debug you had posted without issue? What I don't want to run into is having to reinstall everything again mid work week as I need it for work.

Wait, I will post a different a different build later today.

@ale5000-git
Copy link
Member

ale5000-git commented Feb 13, 2025

This one should just mount partitions and do some tests without installing/removing apps: https://share.freepro.com/a701c639-25f6-48fc-a984-41feaa977abf
It is always good to have backup of data but this build exit before the real installation start.

Could you please try it and post the debug-a5k.log?

@kz8937492
Copy link
Author

Thanks, I appreciate making the adjustment so it doesn't install anything. You can see the log below.

debug-a5k.log

Starting main script...
Parsing local settings...

System mountpoint list:
/mnt/system
/tmp/custom-setup-a5k/system_mountpoint

Mounting system...
Found 'mapper/system' block at: /dev/block/dm-0
Mounted: /mnt/system
Timeout is legacy BusyBox: true
Using: input event

INFO: Press the VOLUME + key to enable live setup.

Waiting input for 3 seconds...
Found gpio-keys device at: /dev/input/event4
VOLUME_UP found at 115
VOLUME_DOWN found at 114
HOME found at 102
FOCUS found at 528
CAMERA found at 766
AI found at 689

Key: No key pressed

Mounting data...
mount: '/dev/block/bootdevice/by-name/userdata'->'/data': Invalid argument
Found 'userdata' block at: /dev/block/sda31
mount: /dev/block/sda31: need -t
WARNING: Not mounted => /data
WARNING: The data partition cannot be mounted, so updates of installed / removed apps cannot be automatically deleted and their Dalvik cache cannot be automatically cleaned. I suggest to manually do a factory reset after flashing this ZIP.
Found 'mapper/product' block at: /dev/block/dm-2
Mounted: /product
Found 'mapper/vendor' block at: /dev/block/dm-1
Mounted: /vendor
Found 'mapper/system_ext' block at: /dev/block/dm-4
Mounted: /system_ext
Found 'mapper/odm' block at: /dev/block/dm-3
Mounted: /odm

microG unofficial installer
v1.3.1.74-alpha
(by ale5000)

Brand: Xiaomi
Manufacturer: Xiaomi
Model: Mi 9T Pro
Device: raphael
Product: lineage_raphael
Emulator: false

First installation: false
Boot mode: false
Sideload: true
Zip install: false
Recovery API ver: 3

Android API: 34
64-bit CPU arch: arm64-v8a
32-bit CPU arch: false
ABI list: arm64-v8a

Verity mode: enforcing
Dynamic partitions: true
Current slot: no slot
Recov. fake system: true

System mount point: /mnt/system
System path: /mnt/system/system
Priv-app path: /mnt/system/system/priv-app

Android root ENV: /system
Fake signature: false

Starting installation...

Extracting...
Configuring...

Enabling: microG Maps v1 API
Verifying...

/tmp/custom-setup-a5k/origin/framework/com.google.android.maps.jar
OK

Enabling: microG Services
Verifying...

/tmp/custom-setup-a5k/origin/priv-app/GmsCore.apk
OK
Extracting libs from priv-app/GmsCore/GmsCore.apk...
Selecting libraries => arm64-v8a

Enabling: microG Services Framework Proxy
Verifying...

/tmp/custom-setup-a5k/origin/priv-app/GsfProxy.apk
OK

Enabling: microG Companion (FakeStore)
Verifying...

/tmp/custom-setup-a5k/origin/priv-app/FakeStore.apk
OK

Skipping: UnifiedNlp (legacy)

Enabling: F-Droid Privileged Extension
Verifying...

/tmp/custom-setup-a5k/origin/priv-app/FDroidPrivilegedExtension.apk
OK

Disabling: Aurora Services

Enabling: NewPipe
Verifying...

/tmp/custom-setup-a5k/origin/app/NewPipe.apk
OK

Enabling: My Location
Verifying...

/tmp/custom-setup-a5k/origin/app/MyLocation.apk
OK

Enabling utility: MinUtil

Preparing installation...
Processing ACCESS_BACKGROUND_LOCATION...
etc/default-permissions/google-permissions.xml
Done

Moving apps into subfolders...

Disk space required: 78.47 MB

  • get_free_disk_space_of_partition /mnt/system/system
  • local _stat_result
  • stat -f -c '%a * %S' -- /mnt/system/system
    Segmentation fault
  • _stat_result=
  • test -n /system/bin/stat
  • PATH=/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin /system/bin/stat -f -c '%a * %S' -- /mnt/system/system
  • _stat_result='68787 * 4096'
  • :
  • test -n '68787 * 4096'
  • printf '%s\n' 281751552
  • return 0
  • _free_space_bytes=281751552
  • test -n 281751552
  • convert_bytes_to_mb 281751552
  • awk -v 'n=281751552' -- 'BEGIN{printf "%.2f\n", n/1048576.0}'
  • convert_bytes_to_human_readable_format 281751552
  • local '_skip_tb=false'
  • local '_fallback_to_gb=false'
  • test 1099511627776 -gt 0
  • test false '=' false
  • test 281751552 -ge 1099511627776
  • test false '=' true
  • test 281751552 -ge 1073741824
  • test 281751552 -ge 1048576
  • awk -v 'n=281751552' -- 'BEGIN{printf "%.2f MB\n", n/1048576.0}'
  • ui_msg 'Free disk space: 268.70 MB (268.70 MB)'
  • test true '=' true
  • _show_text_on_recovery 'Free disk space: 268.70 MB (268.70 MB)'
  • test true '!=' true
  • test -e /proc/self/fd/22
  • printf 'ui_print %s\nui_print\n' 'Free disk space: 268.70 MB (268.70 MB)'
  • test 1 -eq 1
  • printf '%s\n' 'Free disk space: 268.70 MB (268.70 MB)'
    Free disk space: 268.70 MB (268.70 MB)
  • set +x
    umount: can't unmount /product: Invalid argument
    WARNING: Failed to unmount '/product'
    umount: can't unmount /vendor: Invalid argument
    WARNING: Failed to unmount '/vendor'
    umount: can't unmount /system_ext: Invalid argument
    WARNING: Failed to unmount '/system_ext'
    umount: can't unmount /odm: Invalid argument
    WARNING: Failed to unmount '/odm'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants