#991828 xperia-flashtool: fails to prepare flash-files and flash them

#991828#5
Date:
2021-08-02 19:28:25 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?
   - I was unable to use the flashtool from Flashtool.net due to "outdated"
     glibc in Debian buster. I fell back to the Debian package version
     which I did not know of until then. Using the Debian version seemed
     like the best solution to me.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   - I tried to flash a Sony Xperia Z2 Sirius stock ROM via Flashtool.
   - The good:
   	- gui: started
	- connection to the device via USB in flashmode/fastboot was
	  possible
	- flash preparation could start but: it is known, or at least
	  was known, that the linux version needs an external Xperifirm
	  version to download the needed firmware. So I used Xperifirm,
	  via mono, to fetch und unpack the needed firmware (worked) and
	  loaded it to ~/.flashTool/firmwares/downloads to build the
	  flash-list via the "XF-Button" in flashtool.

   * What was the outcome of this action?
   - Nothing happend, there was no list build and therefore the flash-preparation
     could not start nor be finished, the software did nothing.
   - This is reproducible
   - I used an old version of Flashtool to build a flash-list and
     afterwards could proceed to the flash-preparation where the
     software finally fully hung-up and did nothing more

   * What outcome did you expect instead?
   - I expected that the flash-preparation would finish and I will be
     asked to conncet my device in flash-mode and then would get my
     device flashed. This did not happen.
   - I added the terminal output
---
	$ flashtool -gui
	2021-08-02 20:11:52,888 main ERROR No ScriptEngine found for language bsh. Available languages are: nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript
	2021-08-02 20:11:52,890 main ERROR No ScriptEngine found for language bsh. Available languages are: nashorn, Nashorn, js, JS, JavaScript, javascript, ECMAScript, ecmascript
	2021-08-02 20:11:52,897 main ERROR No script with name selector has been declared.
	2021-08-02 20:11:52,900 main ERROR No script with name selector has been declared.
	2021-08-02 20:11:52,908 main ERROR No script with name selector has been declared.
	2021-08-02 20:11:52,911 main ERROR No script with name isconsole has been declared.
	2021-08-02 20:11:52,912 main ERROR No script with name isconsole has been declared.
	<- This level is successfully initialized
	JAVA_HOME : /usr/lib/jvm/java-11-openjdk-amd64
	Flashtool 0.9.33.0
	libusb version 1.0.24
	Searching for a web proxy
	A proxy has been found. Using it as default
	cannot connect to daemon at tcp:5037: Connection refused
	adb: Kein Prozess gefunden
	Loading devices database
	Loaded 131 devices
	Starting phone detection
	Device disconnected
	Creating bundle from ftf file : /home/klodwig/.flashTool/firmwares/D6503_23.5.A.1.291_Customized CE1.ftf
	Added this entry to the bundle list : loader.sin
	Added this entry to the bundle list : amss_fsg.sin
	Added this entry to the bundle list : amss_fs_1.sin
	Added this entry to the bundle list : amss_fs_2.sin
	Added this entry to the bundle list : apps_log.sin
	Added this entry to the bundle list : auto-boot.ta
	Added this entry to the bundle list : boot_delivery.xml
	Added this entry to the bundle list : cache.sin
	Added this entry to the bundle list : cust-reset.ta
	Added this entry to the bundle list : elabel.sin
	Added this entry to the bundle list : fota-reset.ta
	Added this entry to the bundle list : fotakernel.sin
	Added this entry to the bundle list : kernel.sin
	Added this entry to the bundle list : osv-restriction.ta
	Added this entry to the bundle list : partition-image.sin
	Added this entry to the bundle list : system.sin
	Added this entry to the bundle list : userdata.sin
	Selected Bundle for Sony Xperia Z2(D6503). FW release : 23.5.A.1.291. Customization : Customized CE1
	Preparing files for flashing
	^C

Best regards,
Klodwig