[Xperia Z3 Compact Original Android Development] pleko:
A thing to fix in twrp

Hi everyone,

we are many to have some trouble to flash new roms on the Z3C because of that code include in roms :

(!less_than_int(1483795813, getprop("ro.build.date.utc"))) || abort("E3003: Can't install this package (Sat Jan 7 14:30:13 CET 2017) over newer build (" + getprop("ro.build.date") + ").");
(getprop("ro.product.device") == "D5803" || getprop("ro.build.product") == "D5803" ||
getprop("ro.product.device") == "D5833" || getprop("ro.build.product") == "D5833" ||
getprop("ro.product.device") == "z3c" || getprop("ro.build.product") == "z3c" ||
getprop("ro.product.device") == "aries" || getprop("ro.build.product") == "aries") || abort("E3004: This package is for "D5803,D5833,z3c,aries" devices
this is a "" + getprop("ro.product.device") + "".");

A solution is to unzip the rom modify the script and zip the rom again.

But I'm not satisfy by such a solution, because it need to do this for every new rom !

so I start to search into the files (~ # ls -R *.prop ) and I get default.prop

#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=0
ro.allow.mock.location=1
ro.debuggable=1
ro.zygote=zygote32
dalvik.vm.image-dex2oat-Xms=64m
dalvik.vm.image-dex2oat-Xmx=64m
dalvik.vm.dex2oat-Xms=64m
dalvik.vm.dex2oat-Xmx=512m
ro.dalvik.vm.native.bridge=0
debug.atrace.tags.enableflags=0
#
# BOOTIMAGE_BUILD_PROPERTIES
#
ro.bootimage.build.date=Sat Sep 17 19:49:06 EDT 2016
ro.bootimage.build.date.utc=1474156146
ro.bootimage.build.fingerprint=Sony/omni_z3c/z3c:6.0.1/MOB30M/14:eng/test-keys
persist.sys.usb.config=adb

# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=MOB30M
ro.build.display.id=omni_z3c-eng 6.0.1 MOB30M 14 test-keys
ro.build.version.incremental=14
ro.build.version.sdk=23
ro.build.version.preview_sdk=0
ro.build.version.codename=REL
ro.build.version.all_codenames=REL
ro.build.version.release=6.0.1
ro.build.version.security_patch=2016-06-01
ro.build.version.base_os=
ro.build.date=Sat Sep 17 19:48:53 EDT 2016
ro.build.date.utc=0
ro.build.type=eng
ro.build.user=jenkins
ro.build.host=build
ro.build.tags=test-keys
ro.build.flavor=omni_z3c-eng
ro.product.brand=Sony
ro.product.board=D5803
# ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
# use ro.product.cpu.abilist instead.
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.manufacturer=Sony
ro.product.locale=en-US
ro.wifi.channels=
ro.board.platform=msm8974
ro.build.characteristics=default
ro.omni.device=z3c
# end build properties
#
# from device/sony/shinano-common/system.prop
#
#
# rqbalance specific values
#

cpuquiet.low.min_cpus=1
cpuquiet.low.max_cpus=2
rqbalance.low.balance_level=80
rqbalance.low.up_threshold=200 450 550 580 600 640 750 4294967295
rqbalance.low.down_threshold=0 120 320 400 440 500 550 700

cpuquiet.normal.min_cpus=2
cpuquiet.normal.max_cpus=4
rqbalance.normal.balance_level=40
rqbalance.normal.up_threshold=100 300 400 500 525 600 700 4294967295
rqbalance.normal.down_threshold=0 100 300 400 425 500 600 650

#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.sf.lcd_density=320
ro.usb.pid_suffix=1BB
dalvik.vm.dex2oat-threads=2
dalvik.vm.image-dex2oat-threads=4
persist.data.qmi.adb_logmask=0
service.adb.tcp.port=5555
persist.sys.debug.multi_window=true
ro.use_data_netmgrd=true
persist.data.netmgrd.qos.enable=true
ro.data.large_tcp_window_size=true
persist.radio.add_power_save=1
persist.radio.apm_sim_not_pwdn=1
persist.radio.oem_socket=false
ro.telephony.call_ring.multiple=false
telephony.lteOnCdmaDevice=0
persist.hwc.mdpcomp.enable=true
ro.hwui.texture_cache_size=72
ro.hwui.layer_cache_size=48
ro.hwui.r_buffer_cache_size=8
ro.hwui.path_cache_size=32
ro.hwui.gradient_cache_size=1
ro.hwui.drop_shadow_cache_size=6
ro.hwui.texture_cache_flushrate=0.4
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=1024
drm.service.enabled=true
vidc.debug.level=1
persist.audio.fluence.voicecall=true
persist.audio.fluence.voicecomm=true
persist.audio.fluence.voicerec=false
persist.audio.fluence.speaker=true
media.aac_51_output_enabled=true
audio.deep_buffer.media=1
persist.debug.wfd.enable=1
persist.sys.wfd.virtual=0
wifi.interface=wlan0
ro.bt.bdaddr_path=/data/etc/bluetooth_bdaddr
ro.nfc.port=I2C
camera.disable_zsl_mode=0
persist.camera.HAL3.enabled=0
persist.camera.ois.disable=0
persist.debug.sensors.hal=0
debug.qualcomm.sns.daemon=0
debug.qualcomm.sns.hal=0
debug.qualcomm.sns.libsensor1=0
ro.build.selinux=1
ro.com.google.clientidbase=android-google
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html
ro.com.android.wifi-watchlist=GoogleGuest
ro.setupwizard.enterprise_mode=1
persist.sys.root_access=1
ro.modversion=OmniROM-6.0.1-20160917-z3c-HOMEMADE
ro.omni.version=6.0.1-20160917-z3c-HOMEMADE
rild.libpath=/vendor/lib/libril-qc-qmi-1.so
ril.subscription.types=NV,RUIM
ro.opengles.version=196608
ro.qti.sensors.max_accel_rate=false
ro.qti.sensors.max_gyro_rate=false
ro.qti.sensors.max_mag_rate=false
ro.qti.sensors.max_geomag_rotv=50
ro.qti.sdk.sensors.gestures=false
ro.qti.sensors.pedometer=false
ro.qti.sensors.step_detector=false
ro.qti.sensors.step_counter=false
ro.qti.sensors.pam=false
ro.qti.sensors.scrn_ortn=false
ro.qti.sensors.smd=true
ro.qti.sensors.game_rv=false
ro.qti.sensors.georv=false
ro.qti.sensors.cmc=false
ro.qti.sensors.bte=false
ro.qti.sensors.fns=false
ro.qti.sensors.qmd=false
ro.qti.sensors.amd=false
ro.qti.sensors.rmd=false
ro.qti.sensors.vmd=false
ro.qti.sensors.gtap=false
ro.qti.sensors.tap=false
ro.qti.sensors.facing=false
ro.qti.sensors.tilt=false
ro.qti.sensors.tilt_detector=false
ro.qti.sensors.dpc=false
ro.qti.sensors.wu=false
dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=192m
dalvik.vm.heapsize=512m
dalvik.vm.heaptargetutilization=0.75
dalvik.vm.heapminfree=512k
dalvik.vm.heapmaxfree=8m
keyguard.no_require_sim=true
ro.com.android.dataroaming=true
ro.config.ringtone=Ring_Synth_04.ogg
ro.config.notification_sound=pixiedust.ogg
ro.carrier=unknown
ro.config.alarm_alert=Argon.ogg
telephony.lteOnGSMDevice=1
persist.sys.dalvik.vm.lib.2=libart
dalvik.vm.isa.arm.variant=krait
dalvik.vm.isa.arm.features=default
ro.kernel.android.checkjni=1
dalvik.vm.lockprof.threshold=500
dalvik.vm.image-dex2oat-filter=verify-at-runtime
dalvik.vm.dex2oat-filter=verify-at-runtime
dalvik.vm.usejit=true
net.bt.name=Android
dalvik.vm.stack-trace-file=/data/anr/traces.txt

As you can see none of the prop that the script is looking for are in the default.prop file so I start to modify this file but with no succes until now.

If anyone got an idea of what to do fix permantly the error7 "this package is for "D5803 ... ?