efidroid / projectmanagement

EFIDroid Project Management
118 stars 12 forks source link

freeze during gapps installation #50

Closed M1cha closed 7 years ago

M1cha commented 7 years ago

When I try to flash gapps my Motorola/falcon freezes on "skipping md5 file"

muertead commented 7 years ago

Opengapps 7.1 freezes on removing obsolete apps. Device OnePlusOne, twrp tugapower, twrp 3020. Not of 7.1 gapps working

M1cha commented 7 years ago

while installing to a multiboot system or to the internal one? does it make a difference when you use adb sideload vs choosing the zip from the device?

muertead commented 7 years ago

I was trying to install on multiboot system. Internal rom is COS13.1.2, I dont need to install gapps on internal rom. Maybe there is opportunity to swap roms and then i will try flash gapps on internal rom. Sorry didn't tried adb sideload, cause i dont know how to do it

M1cha commented 7 years ago

you don't need to try adb sideload then since it would only make a difference the other way around. I'll have a look to find out what's causing this.

sub77-2016 commented 7 years ago

i can confirm that on moto g falcon with all variants and sdks of opengapps while delta gapps do a proper installation. a workaround is to use twrps built busybox instead of bb provided by opengapps.

M1cha commented 7 years ago

Unfortunately I'm unable to reproduce this with

I need more information:

xakep666 commented 7 years ago

So, I reproduced this situation. Made 3 experiments.

Experiment 1: What`s used:

Result: gapps flashed successfully without any errors/warnings

Experiment 2: Used:

Result: flashing stucks on "Performing system space calculations" /tmp/recovery.log containment

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting TWRP 3.0.2-0 on Fri Jan  9 10:30:02 1970
 (pid 211)
BOARD_HAS_NO_REAL_SDCARD := true
RECOVERY_SDCARD_ON_DATA := true
TW_NO_USB_STORAGE := true
TW_INCLUDE_CRYPTO := true
I:Found brightness file at '/sys/class/leds/lcd-backlight/brightness'
I:Got max brightness 255 from '/sys/class/leds/lcd-backlight/max_brightness'
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:LANG: en
Starting the UI...fb0 reports (possibly inaccurate):
  vi.bits_per_pixel = 32
  vi.red.offset   =   0   .length =   8
  vi.green.offset =   8   .length =   8
  vi.blue.offset  =  16   .length =   8
setting GGL_PIXEL_FORMAT_RGBA_8888
framebuffer: 3 (1080 x 1920)
Using overlay graphics.
Skipping adf graphics because TW_TARGET_USES_QCOM_BSP := true
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:Loading package: splash (/twres/splash.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/splash.xml' directly
I:Checking resolution...
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page splash
I:Switching packages (splash)
=> Linking mtab
Renaming regular /etc/recovery.fstab -> /etc/recovery.fstab.bak
Moving /etc/twrp.fstab -> /etc/recovery.fstab
=> Processing recovery.fstab
I:Processing '/firmware'
I:Created '/firmware' folder.
I:Processing '/boot'
I:Processing '/system'
I:Processing '/data'
I:Setting up '/data' as data/media emulated storage.
I:Created '/sdcard' folder.
I:mount -o bind '/data/media' '/sdcard' process ended with RC=0
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:mount -o bind '/data/media/0' '/sdcard' process ended with RC=0
I:Processing '/cache'
I:Processing '/misc'
I:Processing '/recovery'
I:Processing '/usb_otg'
I:Created '/usb_otg' folder.
I:Backup folder set to '/data/media/0/TWRP/BACKUPS/94f110a2'
I:Settings storage is '/data/media/0'
I:Decrypt adopted storage starting
I:PageManager::LoadFileToBuffer loading filename: '/data/system/storage.xml' directly
I:successfully loaded storage.xml
Updating partition details...
I:Data backup size is 5383MB, free: 16380MB.
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Unmounting main partitions...

Partition Logs:
/firmware | /dev/block/mmcblk0p1 | Size: 63MB Used: 56MB Free: 7MB Backup Size: 56MB
   Flags: Can_Be_Mounted Can_Be_Wiped IsPresent Mount_To_Decrypt 
   Primary_Block_Device: /dev/block/mmcblk0p1
   Display_Name: firmware
   Storage_Name: firmware
   Backup_Path: /firmware
   Backup_Name: firmware
   Backup_Display_Name: firmware
   Storage_Path: /firmware
   Current_File_System: vfat
   Fstab_File_System: vfat
   Backup_Method: files
   Mount_Flags=0x       1, Mount_Options=

/boot | /dev/block/mmcblk0p7 | Size: 16MB
   Flags: Can_Be_Backed_Up IsPresent Can_Flash_Img 
   Primary_Block_Device: /dev/block/mmcblk0p7
   Display_Name: Boot
   Storage_Name: boot
   Backup_Path: /boot
   Backup_Name: boot
   Backup_Display_Name: Boot
   Storage_Path: /boot
   Current_File_System: emmc
   Fstab_File_System: emmc
   Backup_Method: dd

/system | /dev/block/mmcblk0p14 | Size: 1303MB Used: 1197MB Free: 105MB Backup Size: 1197MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_Available_in_GUI IsPresent 
   Primary_Block_Device: /dev/block/mmcblk0p14
   Display_Name: System
   Storage_Name: System
   Backup_Path: /system
   Backup_Name: system
   Backup_Display_Name: System
   Storage_Path: /system
   Current_File_System: ext4
   Fstab_File_System: ext4
   Backup_Method: files

/data | /dev/block/mmcblk0p28 | Size: 56241MB Used: 5383MB Free: 16380MB Backup Size: 5383MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent Can_Be_Encrypted Has_Data_Media Can_Encrypt_Backup Use_Userdata_Encryption Is_Storage Is_Settings_Storage 
   Symlink_Path: /data/media/0
   Symlink_Mount_Point: /sdcard
   Primary_Block_Device: /dev/block/mmcblk0p28
   Crypto_Key_Location: /dev/block/platform/msm_sdcc.1/by-name/reserve4
   Display_Name: Data
   Storage_Name: Internal Storage
   Backup_Path: /data
   Backup_Name: data
   Backup_Display_Name: Data
   Storage_Path: /data/media/0
   Current_File_System: ext4
   Fstab_File_System: ext4
   Backup_Method: files
   MTP_Storage_ID: 65537

/cache | /dev/block/mmcblk0p16 | Size: 503MB Used: 8MB Free: 495MB Backup Size: 8MB
   Flags: Can_Be_Mounted Can_Be_Wiped Can_Be_Backed_Up Wipe_During_Factory_Reset Wipe_Available_in_GUI IsPresent 
   Primary_Block_Device: /dev/block/mmcblk0p16
   Display_Name: Cache
   Storage_Name: Cache
   Backup_Path: /cache
   Backup_Name: cache
   Backup_Display_Name: Cache
   Storage_Path: /cache
   Current_File_System: ext4
   Fstab_File_System: ext4
   Backup_Method: files

/misc | /dev/block/mmcblk0p21 | Size: 1MB
   Flags: IsPresent 
   Primary_Block_Device: /dev/block/mmcblk0p21
   Display_Name: misc
   Storage_Name: misc
   Backup_Path: /misc
   Backup_Name: misc
   Backup_Display_Name: misc
   Storage_Path: /misc
   Current_File_System: emmc
   Fstab_File_System: emmc
   Backup_Method: dd

/recovery | /dev/block/mmcblk0p17 | Size: 16MB
   Flags: IsPresent Can_Flash_Img 
   Primary_Block_Device: /dev/block/mmcblk0p17
   Display_Name: Recovery
   Storage_Name: recovery
   Backup_Path: /recovery
   Backup_Name: recovery
   Backup_Display_Name: Recovery
   Storage_Path: /recovery
   Current_File_System: emmc
   Fstab_File_System: emmc
   Backup_Method: dd

/usb_otg |  | Size: 0MB Used: 0MB Free: 0MB Backup Size: 0MB
   Flags: Can_Be_Mounted Can_Be_Wiped Wipe_Available_in_GUI Removable Is_Storage 
   Primary_Block_Device: /dev/block/sda1
   Alternate_Block_Device: /dev/block/sda
   Display_Name: USB-OTG
   Storage_Name: USB-OTG
   Backup_Path: /usb_otg
   Backup_Name: usb_otg
   Backup_Display_Name: USB-OTG
   Storage_Path: /usb_otg
   Current_File_System: vfat
   Fstab_File_System: vfat
   Backup_Method: files
   MTP_Storage_ID: 65538

I:Loading package: TWRP (/data/media/0/TWRP/theme/ui.zip)
I:Loading zip theme
I:Loading package: TWRP (/twres/ui.xml)
I:Load XML directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_TW.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/zh_CN.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/uk.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/tr.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sv.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/sk.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ru.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pt_BR.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/pl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/nl.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/ja.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/it.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/hu.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/fr.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/es.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/de.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/cz.xml' directly
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:PageManager::LoadFileToBuffer loading filename: '/twres/ui.xml' directly
I:Checking resolution...
I:Loading resources...
I:Failed to load image from indeterminate013, error -1
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Including file: /twres/portrait.xml...
I:PageManager::LoadFileToBuffer loading filename: '/twres/portrait.xml' directly
I:Loading resources...
I:Loading variables...
I:Loading mouse cursor...
I:Loading pages...
I:Loading page main
I:Loading page main2
I:Loading page install
I:Loading page flash_confirm
I:Loading page flash_zip
I:Loading page flash_done
I:Loading page flashimage_confirm
I:Loading page clear_vars
I:Loading page confirm_action
I:Loading page action_page
I:Loading page singleaction_page
I:Loading page action_complete
I:Loading page filecheck
I:Loading page rebootcheck
I:Loading page wipe
I:Loading page advancedwipe
I:Loading page formatdata
I:Loading page formatdata_confirm
I:Loading page checkpartitionlist
I:Loading page partitionoptions
I:Loading page refreshfilesystem
I:Loading page selectfilesystem
I:Loading page backup
I:Loading page backup_options
I:Loading page backupname1
I:Loading page backupname2
I:Loading page backupencryption
I:Loading page backupencryption2
I:Loading page checkbackuppassword
I:Loading page backup_run
I:Loading page restore
I:Loading page restore_read
I:Loading page restore_decrypt
I:Loading page try_restore_decrypt
I:Loading page restore_select
I:Loading page renamebackup
I:Loading page restore_run
I:Loading page mount
I:Loading page usb_mount
I:Loading page usb_umount
I:Loading page system_readonly_check
I:Loading page reboot
I:Loading page system_readonly
I:Loading page settings
I:Loading page settings_timezone
I:Loading page settings_screen
I:Loading page settings_vibration
I:Loading page settings_language
I:Loading page advanced
I:Loading page partsdcardsel
I:Loading page partsdcardcheck
I:Loading page partsdcard
I:Loading page htcdumlock
I:Loading page lock
I:Loading page filemanagerlist
I:Loading page filemanageroptions
I:Loading page choosedestinationfolder
I:Loading page filemanagerrenamefile
I:Loading page filemanagerrenamefolder
I:Loading page filemanagerchmod
I:Loading page filemanagerconfirm
I:Loading page filemanageraction
I:Loading page decrypt
I:Loading page decrypt_pattern
I:Loading page trydecrypt
I:Loading page terminalcommand
I:Loading page sideload
I:Loading page fixcontexts
I:Loading page installsu
I:Loading page slideout
I:Loading page select_storage
I:Loading page select_language
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Switching packages (TWRP)
SELinux contexts loaded from /file_contexts
Full SELinux support is present.
Startup Commands: 
af.fast_track_multiplier=1
av.streaming.offload.enable=true
mm.enable.smoothstreaming=true
ro.cm.build.version.plat.rev=0
ro.cm.build.version.plat.sdk=5
ro.cm.device=bacon
ro.cm.display.version=13.0-20160404-UNOFFICIAL-bacon
ro.cm.version=13.0-20160404-UNOFFICIAL-bacon
ro.cm.releasetype=UNOFFICIAL
ro.qc.sdk.audio.fluencetype=fluence
ro.qc.sdk.camera.facialproc=true
ro.qc.sdk.gestures.camera=false
ro.sf.lcd_density=480
ro.com.google.clientidbase=android-oneplus
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=false
ro.com.android.wifi-watchlist=GoogleGuest
ro.gps.agps_provider=1
ro.qti.sdk.sensors.gestures=true
ro.qti.sensors.bte=true
ro.qti.sensors.vmd=true
ro.qti.sensors.gtap=true
ro.qti.sensors.ir_proximity=true
ro.ril.ext.ecclist=112,911,999,110,122,119,120,000,08,118
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html
ro.boot.emmc=true
ro.boot.mode=reboot
ro.boot.selinux=permissive
ro.boot.baseband=msm
ro.boot.hardware=bacon
ro.boot.serialno=94f110a2
ro.boot.bootdevice=msm_sdcc.1
ro.boot.hw_version=12
ro.boot.rf_version=99
ro.boot.startupmode=pwrkey
ro.data.large_tcp_window_size=true
ro.hwui.path_cache_size=32
ro.hwui.layer_cache_size=48
ro.hwui.texture_cache_size=72
ro.hwui.gradient_cache_size=1
ro.hwui.r_buffer_cache_size=8
ro.hwui.drop_shadow_cache_size=6
ro.hwui.text_large_cache_width=2048
ro.hwui.text_small_cache_width=1024
ro.hwui.text_large_cache_height=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.texture_cache_flushrate=0.4
ro.twrp.boot=1
ro.twrp.version=3.0.2-0
ro.wifi.channels=
ro.allow.mock.location=1
ro.board.platform=msm8974
ro.build.id=MMB29M
ro.build.date=Mon Apr  4 11:46:23 EDT 2016
ro.build.date.utc=1459784783
ro.build.host=build
ro.build.tags=test-keys
ro.build.type=eng
ro.build.user=jenkins
ro.build.expect.trustzone=TZ.BF.2.0-2.0.0123|TZ.BF.2.0-2.0.0134
ro.build.flavor=cm_bacon-eng
ro.build.display.id=bacon-eng 6.0.1 MMB29M aeb62fd855 test-keys
ro.build.product=A0001
ro.build.selinux=1
ro.build.version.sdk=23
ro.build.version.base_os=
ro.build.version.release=6.0.1
ro.build.version.codename=REL
ro.build.version.incremental=aeb62fd855
ro.build.version.preview_sdk=0
ro.build.version.all_codenames=REL
ro.build.version.security_patch=2015-12-01
ro.build.description=bacon-user 5.1.1 LMY48B YOG4PAS1N0 release-keys
ro.build.fingerprint=oneplus/bacon/A0001:5.1.1/LMY48B/YOG4PAS1N0:user/release-keys
ro.build.characteristics=default
ro.config.ringtone=Orion.ogg
ro.config.alarm_alert=Helium.ogg
ro.config.notification_sound=Argon.ogg
ro.dalvik.vm.native.bridge=0
ro.kernel.android.checkjni=1
ro.secure=0
ro.vendor.extension_library=libqti-perfd-client.so
ro.zygote=zygote32
ro.carrier=unknown
ro.cmlegal.url=https://cyngn.com/legal/privacy-policy
ro.product.cpu.abi=armeabi-v7a
ro.product.cpu.abi2=armeabi
ro.product.cpu.abilist=armeabi-v7a,armeabi
ro.product.cpu.abilist32=armeabi-v7a,armeabi
ro.product.cpu.abilist64=
ro.product.name=bacon
ro.product.board=MSM8974
ro.product.brand=oneplus
ro.product.model=A0001
ro.product.device=A0001
ro.product.locale=en-US
ro.product.manufacturer=OnePlus
ro.baseband=msm
ro.bootmode=reboot
ro.hardware=bacon
ro.opengles.version=196608
ro.qualcomm.cabl=0
ro.qualcomm.perf.cores_online=2
ro.revision=0
ro.serialno=94f110a2
ro.bootimage.build.date=Mon Apr 4 11:47:30 EDT 2016
ro.bootimage.build.date.utc=1459784850
ro.bootimage.build.fingerprint=oneplus/bacon/A0001:6.0.1/MMB29M/aeb62fd855:eng/test-keys
ro.telephony.call_ring.multiple=0
ro.telephony.default_network=9
ro.alarm_boot=false
ro.bootloader=unknown
ro.debuggable=1
ro.modversion=13.0-20160404-UNOFFICIAL-bacon
ro.rommanager.developerid=cyanogenmod
ro.recovery_id=0x2325bb377827d10257b5b609785128030f7d07eb000000000000000000000000
ro.setupwizard.enterprise_mode=1
ro.use_data_netmgrd=true
net.bt.name=Android
net.change=net.bt.name
sys.io.scheduler=bfq
sys.usb.ffs.ready=1
sys.listeners.registered=true
use.voice.path.for.pcm.voip=true
init.svc.adbd=running
init.svc.healthd=running
init.svc.ueventd=running
init.svc.qseecomd=running
init.svc.recovery=running
init.svc.set_permissive=stopped
rild.libpath=/system/vendor/lib/libril-qc-qmi-1.so
twrp.crash_counter=0
twrp.action_complete=0
wifi.interface=wlan0
wifi.supplicant_scan_interval=15
audio.offload.pcm.16bit.enable=true
audio.offload.pcm.24bit.enable=true
audio.offload.video=true
audio.offload.buffer.size.kb=32
audio.offload.gapless.enabled=true
audio.offload.multiple.enabled=false
audio.deep_buffer.media=true
debug.atrace.tags.enableflags=0
media.sf.omx-plugin=libffmpeg_omx.so
media.sf.extractor-plugin=libffmpeg_extractor.so
media.aac_51_output_enabled=true
dalvik.vm.isa.arm.variant=krait
dalvik.vm.isa.arm.features=default
dalvik.vm.usejit=true
dalvik.vm.heapsize=512m
dalvik.vm.lockprof.threshold=500
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
dalvik.vm.heapmaxfree=8m
dalvik.vm.heapminfree=2m
dalvik.vm.heapstartsize=16m
dalvik.vm.dex2oat-filter=verify-at-runtime
dalvik.vm.heapgrowthlimit=192m
dalvik.vm.stack-trace-file=/data/anr/traces.txt
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
dalvik.vm.image-dex2oat-filter=verify-at-runtime
dalvik.vm.heaptargetutilization=0.75
camera2.portability.force_api=1
persist.gps.qc_nlp_in_use=0
persist.hwc.mdpcomp.enable=true
persist.sys.dun.override=0
persist.sys.usb.config=adb
persist.sys.dalvik.vm.lib.2=libart.so
persist.sys.root_access=0
persist.sys.recovery_update=false
persist.data.netmgrd.qos.enable=true
persist.data.tcpackprio.enable=true
persist.audio.fluence.voicecall=true
persist.radio.add_power_save=1
persist.radio.apm_sim_not_pwdn=1
persist.timed.enable=true
service.adb.root=1
keyguard.no_require_sim=true
recovery.perf.mode=0
audio_hal.period_size=192
bluetooth.hfp.client=1
telephony.lteOnGsmDevice=1

I:Copying file /cache/recovery/log to /cache/recovery/last_log
tw_get_context got selinux context: u:object_r:media_rw_data_file:s0
I:Got default contexts and file mode for storage files.
I:Attempt to load settings from settings file...
I:InfoManager loading from '/data/media/0/TWRP/.twrps'.
I:Backup folder set to '/data/media/0/TWRP/BACKUPS/94f110a2'
I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab
I:Version number saved to '/cache/recovery/.version'
I:Unable to mount '/usb_otg'
I:Actual block device: '', current file system: 'vfat'
__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT,M3.2.0,M11.1.0!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
I:TWFunc::Set_Brightness: Setting brightness control to 255
I:PageManager::LoadFileToBuffer loading filename: '/twres/languages/en.xml' directly
parsing languageFile
parsing languageFile done
I:Translating partition display names
I:Backup folder set to '/data/media/0/TWRP/BACKUPS/94f110a2'
I:TWFunc::Fixup_Time: Pre-fix date and time: 1970-01-09--05-30-10
I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch
I:TWFunc::Fixup_Time: will attempt to use the ats files now.
I:TWFunc::Fixup_Time: Setting time offset from file /data/time/ats_2, offset 1480245148248
I:TWFunc::Fixup_Time: Date and time corrected: 2016-12-05--15-42-38
I:Enabling MTP during startup
I:Starting MTP
I:sending message to add 65537 '/data/media/0' 'Internal Storage'
I:Message sent, add storage ID: 65537
MTP Enabled
I:Check_Lifetime_Writes result: '1525964'
Starting MTP
I:Switching packages (TWRP)
I:Set page: 'main'
I:Set page: 'clear_vars'
I:Set page: 'main2'
created new mtpserver object
MtpServer::run fd: 18
mtppipe add storage 65537 '/data/media/0'
MtpStorage id: 65537 path: /data/media/0
I:Set page: 'install'
I:Set page: 'flash_confirm'
I:Set page: 'flash_zip'
I:operation_start: 'Flashing'
Installing zip file '/sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: app_densities.txt
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: app_sizes.txt
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: bkup_tail.sh
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: gapps-remove.txt
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: g.prop
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: installer.sh
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: busybox-arm
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: tar-arm
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: unzip-arm
Archive:  /sdcard/fw/open_gapps-arm-7.1-micro-20161205.zip
  inflating: zip-arm

##############################
  _____   _____   ___   ____  
 /  _  \ |  __ \ / _ \ |  _ \ 
|  / \  || |__) | |_| || | \ \
| |   | ||  ___/|  __/ | | | |
|  \ /  || |    \ |__  | | | |
 \_/ \_/ |_|     \___| |_| |_|
       ___   _   ___ ___  ___ 
      / __| /_\ | _ \ _ \/ __|
     | (_ |/ _ \|  _/  _/\__ \
      \___/_/ \_\_| |_|  |___/
##############################

Open GApps micro 7.1 - 20161205

- Mounting  /system

- Gathering device & ROM information

- Performing system space calculations

Segmentation fault
/tmp/installer.sh: line 1978: can't fork
Segmentation fault

Experiment 3: Used:

Result: gapps flashed succesffully without errors and warnings

M1cha commented 7 years ago

@xakep666 thx for the detailed information. I extracted the kernel of the broken recovery and it'S name is '3.4.110-cyanogenmod-g537566c' which means it was compiled with commit '537566c'. I can't find this commit anywhere though, can you research/ask the maintainers where the kernel comes from?

M1cha commented 7 years ago

@xakep666 can you add the flag '-x' to the interpreter line in installer.sh and try again? this should show the exact commands so we see what exactly is causing the segmentation fault.

z3ntu commented 7 years ago

I believe I experience the same similar issue on the Fairphone 2... I currently hangs at Removing existing/obsolete Apps or: Updater process ended with ERROR: 2

dmesg:

<7>[   88.229674] busybox-arm: unhandled page fault (11) at 0x00000a15, code 0x817
<1>[   88.229681] pgd = f271c000
<1>[   88.231397] [00000a15] *pgd=33bcb831, *pte=00000000, *ppte=00000000
<4>[   88.237677] 
<4>[   88.239156] Pid: 2561, comm:          busybox-arm
<4>[   88.243835] CPU: 2    Not tainted  (3.4.0-g4e3542c #1)
<4>[   88.248978] PC is at 0x148704
<4>[   88.251884] LR is at 0x14c484
<4>[   88.254863] pc : [<00148704>]    lr : [<0014c484>]    psr: 20000010
<4>[   88.254865] sp : bee81fa8  ip : 00000001  fp : bee81fe4
<4>[   88.266425] r10: 0019b1d8  r9 : 001a4490  r8 : 00000000
<4>[   88.271545] r7 : 00000078  r6 : 0006be64  r5 : ffffffff  r4 : 00121480
<4>[   88.278039] r3 : 00000a01  r2 : 00000000  r1 : 0019b9cc  r0 : 001a01a4
<4>[   88.284602] Flags: nzCv  IRQs on  FIQs on  Mode USER_32  ISA ARM  Segment user
<4>[   88.291905] Control: 10c5787d  Table: 3271c06a  DAC: 00000015
<4>[   88.297537] [<c010bee0>] (unwind_backtrace+0x0/0x11c) from [<c0111cf0>] (__do_user_fault+0xfc/0x148)
<4>[   88.306644] [<c0111cf0>] (__do_user_fault+0xfc/0x148) from [<c0960edc>] (do_page_fault+0x34c/0x3e0)
<4>[   88.315884] [<c0960edc>] (do_page_fault+0x34c/0x3e0) from [<c010038c>] (do_DataAbort+0x134/0x240)
<4>[   88.324577] [<c010038c>] (do_DataAbort+0x134/0x240) from [<c095f774>] (__dabt_usr+0x34/0x40)
<4>[   88.332987] Exception stack(0xf2a8ffb0 to 0xf2a8fff8)
<4>[   88.337974] ffa0:                                     001a01a4 0019b9cc 00000000 00000a01
<4>[   88.346100] ffc0: 00121480 ffffffff 0006be64 00000078 00000000 001a4490 0019b1d8 bee81fe4
<4>[   88.354391] ffe0: 00000001 bee81fa8 0014c484 00148704 20000010 ffffffff

Huh now it worked... Still the recovery log with the set +x commands: http://pastebin.com/eL481DQt

M1cha commented 7 years ago

@z3ntu thx for this useful report.

It looks like it's some fork/clone race condition. For reference, the following script can reproduce the bug with any busybox.

#!/sbin/ash

set -e

complete_gapps_list() {
  cat <<EOF
EOF
}

while :; do complete_gapps_list; done
M1cha commented 7 years ago

this issue should be fixed now.

xakep666 commented 7 years ago

Gapps installation is working on my device, tested with different recoveries.