Alle Beiträge von Tom

PREREQUISITES CHECK FOR DOMAIN CONTROLLER: Verification FAILED. CHECK TCP/IP

As i have set up a windows 2019 trial server for testing some stuff some days ago, i configured the virtual machine (under virtual box) as a domain controller.

So i configured the role for DNS and AD services as i got the window for prerequisites check. it failed!

The error “Verification of prerequisites for Domain Controller promotion failed. The TCP/IP networking protocol must be properly configured. Complete the configuration before you proceed.”

Sounds dramatically bad! But keep up that your virtual network card is connected to a virtual switch or is bridged to your host. And keep up further that you set up a fix ip adress with subnet and routing target and and dns server.

So that worked for me.

After php update: “Using $this when not in object context” in joomla, Hotfix

For a riding stable, i run and administrate a website since many years with joomla. So, i did this until a few days ago until joomla update assistant said, that my php 5.x is too old. i have contacted the provider and they moved it to a server with php 7.4.15.

Unfortunately, the frontend of the site was offline:

The error was: “Using $this when not in object context”.

The kind of the error is not joomla-like, more it is php-like as you will see Fortunately, the backend was still online. At first, i logged on to the backend and switched on (from: Nein->Ja means from No -> Yes) the debugging mode in the server settings in global configurations (the german word “Fehlersuche” means “Debugging”), dont forget to save the new configuration:

The Debugging-Mode gives more informative data to the frontend. I changed to the frontend and pressed F5 for refreshing and i have got this site:

The special error information is this:

It seems so, that the file CMSApplication.php occurs problems and with the information in the line after, the SiteApplication.php seems also is to be involved.

I copied booth and found following code:

CMSApplication.php:

SiteApplication.php:

The line “return parent::getMenu($name, $options)” in the SiteApplication calls the function getMenu(…) in the CMSApplication. The original error points to the kind of calling the function: “using $this when not in object” means, that parent::getMenu is a static call. But the function getMenu in the CMSApplication is prepared to work with classes and objects and so you need an object orientated codeset for this kind of view.

I think, this error is ther since a long time (joomla version 3.3 in comments) and php 5.x was not configured to spill out error messages like this. rest assure: the error was there before, too. As a hotfix, you can comment out this line.

Type in an reason for this. Then, do a backup of the old file or rename it at serverside. Do an upload of the changed file to the server (e.g. via ftp and change the ftp-password then) and deactivate the debugging mode. Just try to click through the website frontend for seeking an further error and contact the developer (e.g. https://developer.joomla.org/security/contact-the-team.html)

Mit diskpart partitionen löschen

In bestimmten Fällen kann man auf USB-Sticks erstellte Images und Partitionen nicht mehr vollständig mit dem Datenträgermanager (bei Windows 10) entfernen. Es treten Fehlermeldungen beim Entfernen auf wie z.B. “Die Datei konnte nicht gefunden werden”. Das kann an versteckten Partitionen liegen, die beim Ausrollen von .ISO-Files auf den Datenträger entstehen da eben im Image Partitonen existieren und mit dem “imagen” auf den mobilen Datenspeicher gelangen oder dort partitioniert werden.

Zuletzt hatte ich einen solchen Fall beim Aufbereiten eines USB-Datenträgers, auf dem Desinfect 2019 partitioniert und installiert gewesen ist. Das muss nicht am Datenträger oder am Image selbst liegen.

Wie entfernt man diese Partitionen wenn der Datenträgermanager diese Laufwerke nicht mehr behandeln kann? Ansätze: cmd.exe starten, Befehle Diskpart eingeben und bestätigen. Es öffnet sich nun eine Kommandozeile für die Verwaltung von Partitionen. Befehl “list disk”, danach “select disk <nr>” wobei nr = die ID aus obigen list-Befehl. Danach dito mit Partitionen: “list partition” und “select partition <nr>” wobei nr= die ID aus obigen list-Befehl. Danach “delete partition”.

Eine weitere Möglichkeit ist Linux und hier das Programm gparted. Damit kann auch die Partitionstabelle resettet werden und neu initialisiert werden. Auch Formatierungen als ntfs sind möglich.

javafx: FXMLLoader.load throws a nullpointerexception

Because i have seen it several times during study at University of applied science Trier (and loading code to the ASB Automatische Software Bewertung), i decided to write few lines. Maybe you can save time.

If you have a java IDE like eclipse or IntelliJ and you write code forJavaFX and you try to get a pre-defined layout from a fxml-File (like you get it from JavaFX Scene Builder 2 or newer), you can use the static load-Method to get in a guilayout.fxml like this:

Pane root = FXMLLoader.load(getClass().getResource("guilayout.fxml"));

In this example you get a Pane-Object, is betted in your file. In several resources, you can read, that the guilayout.fxml must be in the same direcotry like your .class-Files are. Yes. Thats right, but not right enough. If you start your program you will get an Error:

java.lang.NullPointerException: Location is required.

Solution: Just make a copy of your fxml-File and delete it from this folder. Then open your GUI and drag and drop the backuped file directly in your package. Thats the solution. With the advice “the fxml has to be in the same folder like the using class-File” means the documentation the eclipse-folder (and not primary the operating system folders). So just do an d&d and you will see: it works and you have automatically done the copy-command at your os.

installing raspberry: kernel panic 179,2

I just copied a image file of raspbian buster lite to a micro sd card. I used the image program Win32DiskImages under windows 10 64Bit for this job. Not the first time i go on with this stuff, i removed the sd card caddy with the micro sd card from the card reader and put it to the raspberry4. I got following error:

Kernel panic – not syncing: VFS: Unable to mount the root fs on unknown-block (179,2)

No matter with how many Cards you will try this, you could find similar results in the web.(https://www.raspberrypi.org/forums/viewtopic.php?t=12245)

At the end: after writing the image,  removed the card at first via windows function: remove card with icon you can find lower right near the watch/datetime.


Is co2 the only warming-up driver?

Based on the current studies and discussion, since many years, the co2 – carbon dioxyd – level will raise on because fireing fossil fuels. Thats not new to us. Co2 prevents emitting of leaving radiations during back-reflections to the ground (…earth). There are more oxyds, reacting more or less stronger or weaker, like e.g. methan ch4. And its very critical if the co2 value goes against 400 ppm – parts of co2 per million. That means, that a tiny value of 0,04% and more leads to a higher temperature and advanged the greenhouse effect.

A common process: transfer co2

We know, thats a common process. The co2 is taken by components in fauna, like leafs. The “c” of co2 is going to matter “carbon”, wood, something, and the o2 is passing the leaf as new clean air “o2”. This example and other, more complexe transfers in weather and oceans care for a level with 200 to 300 ppm in a balance. But through taken and fireing up old carbon and oil from the grounds, we increase the ppm up to 413 (Source: https://en.wikipedia.org/wiki/Keeling_Curve,  2013)

Complex system of transferation warm air to the space

We live in a natural circle of increasing and declining temperatures. On the day-side of the earth, the sun warms up earth and hours later, the warmed up earth emits the the space. Prof. Schellnhuber describs this mechanism in his book “Selbstverbrennung”, published in year 2015 (page 69ff)  like a complex mechanism, in which lower athmospheric layer give because of saturation the warmness up to higher shifts until it is transfered to the space.

But there are other drivers than co2? Hows about this…

Hows about the following adoption: we get cole and gas from the inside of our earth – which was never planned for burning up again – and fire it up. And so it gets warmer… remember: the main failure, you can believe is, that energy (no matter what or where the source is) can not be consumed, i repeat: CAN NOT BE CONSUMED. Energy can only be transfered from one condition to an other condition. You fire up gas: you transfer matter from chemical, liquid state to radiant head energy “warmess”. Based on this complicated (yes, if you think about, its getting very complicated) process of transformation, i will describe a well-known application: the car with a combustion engine. In german-speaking countries, we know the word “combustor” – in german “Verbrenner”.

The basics of combusting fuel in a simple car

In all modern cars (yes, lorries, trucks, and so on) you have a system, which is detecting if you are driving “economical” enough. It checks everytime, if your engine is firing up fuel with the “best” value of air. This device is called the “oxygen sensor” or “lambda sensor”.

Lambda Sensor or Oxygen Sendor
Lambda Sensor or Oxygen Sensor, Source: wikipedia.com

The lambda sensor checks up the parts of oxygen outside the car and inside the exhaust pipe and the relation of fuel and oxygen. You are driving good, it means that your mix with fuel and air is good, if the value of lambda is simply “1”. It means again,  that your engine is needing a relation of 14 to 1. For each 1 kg of Fuel, you need about 14 kg of more or less clean air.  In some cases, a lower or higher value of air is possible, depends on several scenaries.  The sensor can give a power signal to a controller which correct values of fuel and air so the combuster works with perfect performances. But at all, you need 14 kg of air for 1 kg fireing up fuel. And another important thing is, that the optimal working temperature of your lambda sensor is around 800 °C. Remember this: this stuff in your exhaust pipe does have a temperature of about 800°C.

Think further: the consumption of fuel in a car

Nowadays, common cars in the western hemisphere need between 4 and 10 Liters of fuel. Let us take a value of 6 Liters per 100 km. Btw: i know, real us cars will need 6 Liters for starting up the engine and driving through the town. 🙂 Muscle Cars and SUVs (in europe, too) will need a lot of more. But lets start with a common car.

Think further: how much is 1 kg of fuel?

If we think about this stuff, you need to know: thats the matter of thermo dynamics, a wide field in science. But we need just a little of it. Because of fuel is lighter than water, 1 Liter does mean 0.775 kg and 1 kg does make 1.29 Liter. We need this values later.

1 kg of fuel does have chemical energy, can be convertet to a other form of energy. For our example, we convert 1 kg of fuel from chemical energy in thermal energy, a well known form.

1 Liter (means 0.775 kg) of fuel does have 34.7 Megajoule[MJ] of energy . With this formula, you can calculate the head difference.

Formula:

Delta T is the temperature difference, the result by devide out Delta Q by the product of m and c . It means, if you set up a lot of enery (Delta Q in Joule [J]) to a material with a specific weight (the mass m in kilogram [kg]) and with a effective heat capacity (c in J/kg), you will get the difference in temperature Kelvin (K). Simple you can say you set up energy in Joule against mass of material and inertia (… the “Trägheit”). And as a result, you will get the delta – the difference – between the old and new temperature.

Lets take the example with water. If you have a swimming pool with a size of 3 meter to 5 meter and a depth of 2 meter, you will get 35.000 liters or kilogram of water (kg and liter of water are the same, thats the m). Water does have a effective heat capacity of 4184 J/kgK (=c). And if you put in a energy of 1 Liter of fuel, that means 34.000.000 Joule (Delta Q), so you will get a result of Delta T = 0,237 ° Kelvin. If the pool water had a temperature of 20.0 °C, now it will have 20.237 °C – in theory.

If we go further with our example above of 6 Liters of fuel, we will get 34 MJoule * 6 = 204.000.000 Joule [Delta Q]. The numerator in our formula is raising up and we will get a plus of 1.423 °C – in theory. It means, that with a value of 6, you can drive about 100 km or heat up a pool up to 1.423 °C.

Think further: heat up air with 6 Liters of fuel.

Lets take a other example with air. If we go on with it, we need to know, that 1 cubic meter of air (1m * 1m * 1m) does have a weight of 1.25 kg – so we have the mass m. The effective heat capacity of air is 1005 J/kgK – so we have the c. By the way, c means the possibility to save heat energy. And to fire up this stuff, we take the same energy like above:  1 Liter of fuel with the power of 34.000.000 J. Now imaging: if you fire up 1 cubic meter of air with 1 Liter of fuel, you will get a delta of 28.814 °C – in theory.  And if we put in 6 liters of fuel, we have a heat box of 172.885 °C – in theory.

Now we take a view to our lambda sensor. If the sensor meassure up 1 kg of fuel (remember above: thats 1.29 Liter) to 14 kg of air, you can say that 6 Liters of fuel are 4.65 kg.  And if 1.25 kg is 1 cubic meter, it means that 14 kg are a volume like 11.2 cubic meter of air. Imaging: 11.2 cubic meter is the same like a room in the size about 3 m * 2 m and 2 m in height. This value of air you need to fire it to drive about 100 km. And awsome is the temperature.

If we take our formula above, we have a energy power of 4.65 kg fuel with 34,7 MJ * 4.65 = 161.587.000 Joule (the Delta Q). This power we set against the air’s effecive heat capacity of 1005 J/kgK (= c) and the mass of air 4.65 kg. After this we get a Delta in Temperature of 1.429,18 °C.

That means: if we heat up about 12 cubic meter of air with 6 Liters of fuel, the temperaure raises up Delta T = 1.429,18 °C – in theory.

Think further: how much is 100 km you drive with 6 Liters of fuel?

The distance of 100 km is like you drive a route of 30 km to work and back with a shopping stop in the neighbour town, or what else. Day by day. Every time you start your engine and do a road trip with 100 km, you heat up air.

Think further: there was never a plan to fire up fossil fuels.

As i mentioned above. There was never a plan to burry out old fossil fuels and fire it up. But thats what we doing day by day since about 100 years.

Maybe you recognize, that i wrote more times “in theory”. Yes, that ar calculated values based on science’s formulars. But they dont lie. We know the effective heat capacity of air and the mass of air. Against this product, we set the power in Joule. Thats quite simple.

Just imagine this… if you put your car in a well isolated glass room with which you can drive – yes thats quite creative – and from which no one degree for power disipation can go out or be lost: there should be after 100 km a temperature like calculated above.

After you put out your engine, all the heat of it (remember the 800°C working temperatur of the lambda sensor – thats the working temperature of your engine) can not be consumed. It can only transfered from one chemical status to a second chemical status and that means for the car: heat energy. And the dissipation factor means that heat is going to spread out them self to the environment. Your car would have a temperator on 800°C, it would glow in a right red color!

The main message, i want give to you:

  • energy can not be consumed; it can only be transfered
  • e.g. from chemical energy like fuel to heat energy like warmness
  • a consumption engine is like a heater with a car you can drive
  • driving 100 km is like the same as heating up a room to 1.429 °C.

Now, decide for your self. Is co2 the only warming driver or is there a possibility to think about higher temperatures by fireing up fuel and diesel…

Think further…

Windows 10 on a 8 years old lifebook? yes, it works.

View days ago, a mate gave me a laptop (Fujitsu Lifebook E736) with a windows 7 pro and asked me to remove a malicious program, his virus scanner was the opinion of a infected system. Ok. Done. That was not the matter.

We discussed the situation after February 2020 – windows 7 will not be longer supported by microsoft.

The notebook is (as i mentioned above) a Fujitsu Lifebook E736 with an i3-Processor and 4 GB RAM.  The first look was at Fujitsus Website for drivers. Hm. There just Windows 7 ones for download. So installing and configuring windows 10 on this hardware would be an intressting small project. If all goes right and setup will recognize the hardware, the owner could get a machine for surfing, doing office and multimedia and the laptop goes further as a usefull tool. Lets start.

I have changed the hdd with a Sandisk 670 EVO SSD with 512 GB. Then i downloaded a windows 10 64bit Image from microsoft and installed it via a DVD onto the ssd. During the installation, i choosed the windows 10 home verison (i did not mentioned, how simple was the activation later). The installation was fine, so i downloaded the media creators tool and pushed the current version 1909 on it. Fine. After this i checked the driver via the computer management, and i – astonnished – recognized, that nearly all drivers were found by microsoft native setup installations. Except the card reader is not working.

Windows 10 on a 8 years old laptop - see the desktop
Windows 10 on a 8 years old laptop – see the desktop

The start menue is working very fast, starting the computer management via the start menue takes about 2 seconds. The memory wth a size of 4 GB is about at 50%.

But hows about the actvation? On the lower side of the machine, there is a windows 7 license key sticker. I choosed the activation app of windows, typed in the key and two intresting things happened: first was that microsoft activated with the key the windows 10 and second, it moved from windows 10 home to windows 10 pro.

This action took just view hours on time and the result is very welcome. Now we have a sensfull job for a aged machine with a new windows, for years until maybe the hardware will be unrepairable damaged.

The disadvantage is maybe the battery-power. Batteries of older devices mostly giving power for just few minutes. In this case, we have a such Battery: Plugging off the power cord and few minutes later, the laptop is powered off.

But in the same case, there is no matter. This device works all the time on a desk, power, mouse and keyboard and a external monitor plugged in.

My advice: 1-take a try and install a windows 10 on old machines. Important is the update setup to a current version like 1909 or newer. It might be possibel that on newer devices, you will get a better driver support. So you will have a reliable system for coming jobs like browsing, office, small/medium multimedia, programming, and so on. And you are doing good because you releave the environment. 2-the lifebook E-series is like for office or pro use. If you keep off the next time again and spend a little much more for your device, the change to work longer without problems is better because office and pro devices are builded with a higher quality standard and the driver support is more sustainable.

 

Prof. Dr. Lesch in Kemnath – eine tolle Persönlichkeit

Es war im Jahr 1999. Ich bilde mir ein, dass das Wort “Zappen” in letzter Zeit mehr und mehr in Vergessenheit gerät. Der Grund dafür dürfte sein, dass nicht mehr gezappt sondern gestreamed oder man schlicht online ist. Man “zappte” durch die Fernsehsender (called “Röhre”) und wechselte schnell von Programm zu Programm. Man blieb dann “hängen” in mehr oder minder wichtigen oder unwichtigen Sendungen, verstrickt, “zappte” dann weiter, nach meist wenigen Sekunden. So konnte man bei TV via Satellit mit über 30 Kanälen mehrere Minuten bis zur nächsten Runde verbringen.

Zapp, zapp – es war an einem Sonntag – Zapp und halt. Ein vermutlich Mitte Vierziger (jetzt weiß ich: als JG 60 war er damals schon Ende der 40er) erklärte Dinge in einer Klassenraum-Kulisse. Ich bin mir sicher: es ging um Eta Carinae. Was oder besser: wer war das? Die Sendung fesselte nicht nur mich. Jeden Sonntag alle zwei Wochen lauschten wir dem Mann, dem es leicht fällt – noch heute – komplexte Themen einfach zu erklären.

Über praktisch 2 Jahrzehnte folge ich nun dem Prof. Harald Lesch aufmerksam und interessiert. Er brachte einen zum Nachdenken – sicherlich eines seiner wichtigsten Ziele –  mit seinen Serien “Frag den Lesch”, den “Terra X”-Folgen oder eben über fast 10 Jahre mit “Alpha Centauri”. Dann war er mit dem Dr. Gassner unterwegs und teilte Sendezeit mit Diskussionen über Gott und seiner Welt mit dem katholischen Pfarrer Thomas Schwartz. Seit langem höre ich auch regelmäßig seinen Vorträgen über Streamingkanäle. Seine kritischen Bücher gehören regelmäßig zu den Bestsellern. Seien es Quantenphysik, Schwarze Löcher, den Naturkonstanten, Zeitreisen, Themen über Umwelt: Er inspiriert definitiv und über ihn kommt man in Kontakt mit Weizenbaum, Schellnhuber oder auch Einstein oder Hawking.

Und heute war es soweit: die “Neuen Energien West” unter Wolfgang Haberberger schafften es, Prof. Dr. Harald Lesch in die Oberpfalz nach Kemnath in die Mehrzweckhalle einladen zu können.

www-thomas-zehrer-de_lesch-eintritt
Eintrittskarte Harald Lesch, gezeichnet, 20.07.2019

Er fuhr vor – mit einem roten Kleinstwagen mit Münchener Autonummer, ich erinnere mich an einen Clio oder Aygo – mit zwei Türen. Er packte seine Tasche und ging ganz locker durch die Menge, verblieb kurz für ein Selfie mit einem Fan, ging dann weiter, an den Schlangen vorbei, grüßte die Besucher, und hinein in die Mehrzweckhalle Kemnath.

Dann verbaute er sein Laptop vom Typ SONY VAIO, unterhielt sich mit dem Organisator Haberberger, sprach mit einigen der Gäste, testet die Technik, schenkte sich sein alkoholfreies Bier ein und fertig. Ein ganz normaler Typ, aus der Ferne sehr sympatisch – eben so, wie wir ihn aus seinen Serien kennen lernen durften.

Harald Lesch Mehrzweckhalle Kemnath
Harald Lesch in der Mehrzweckhalle Kemnath am 20.07.2019

Um 19.00 Uhr stellte Haberberger die Gästeliste vor, erklärte Sinn und Zweck von “Neue Energien West e.G” (lesen Sie bitte nach, die Sache macht absolut Sinn!) und übergab dann an Lesch. Der Vortrag war sehr interessant. Kennt man seine Vorträge, die über Streamingdienste bereit gestellt werden, findet man sich wieder. Aber stets bringt Lesch keine alten Kalauer-Fakten: An Board hatte er die neusten Ergebnisse der Copernikus-Satelliten aus Juni und Juli 2019 sowie die CO2-Ergebnisse der Referenzstationen Mauna Loha, Hawaii. Die zeigen, dass die CO2-Emissionen erstmals den (wiederum) kritischen Wert von 400 ppm erreichten.

Auch nach seinem Vortrag mit gut 1 Stunde stand Lesch noch für viele Fragen zur Verfügung, auf die er wie immer ausgiebig antwortetet. Selbst nach der Fragerunde, als Haberberger die Runde schloß und die Besucher verabschiedete, stellte er sich Selifies, persönlichen Worten und Autogrammen. Man geht gerne hin zu ihm, man hat keine Scheu einige Worte mit ihm zu wechseln, er ist nahbar für seine Umwelt. Danach startete er den roten Kleinwagen und fuhr in aller Ruhe weg.

Highlights: Er verlangte für den Vortrag keine Gage. Der Veranstalter spendete den Betrag für einen guten Zweck (www.meals4hope.org), es waren ca. 800-1000 Besucher anwesend. Er beteuerte wiederum, dass sich keine merkbaren Änderungen im CO2-Verhalten einstellen. Erstmal maß man in 2019 auf Hawaii über 400 ppm. (Anmerkung von mir: in einschlägiger Literatur wurde vor 10 Jahren schon vor der Grenze bis 380 ppm hinsichtlich des Kippelementes gewarnt).  Wir kippen keine Dominosteine mehr, dessen Auswirkungen wir als gering erachten bzw. nicht einschätzen können, wir kippen einen ganzen Tisch mit vielen Dominosteinen. Wiederum sprach er die SUVs mit einem Gewicht von 2t an um Kindersitze mit 20 kg Nachwuchs sicher in die Schule bringen zu können.

Fazit: in “echt” sind seine Vorträge kurzweilig mitunter zum Schmunzeln, lehrreich. Ach. Was sage ich: Ein toller Mensch.

LineageOS at Samsung Galaxy S7

In this blog I want to descripe my experience to flash a Samsung Galaxy S7 with a LineageOS. Why a old S7? Because you can get a lot of Accessories like bumber cases or armored display protections and the costs are reasonable in relation to technical specifications. And the main reason is that you can get fully developed mods like LineageOS. I’ve had more smartphones in the past e.g. the sony experia Z or the sony experia Z3 – all flashed with cyanogenmod you can compare nowadays to LineageOS. Sony supported in former times a innovative “open device” program and installed a default recovery image. yes, you lost support but you got a possibility to flash Android without tricky preperations. Please read the computer news for this historical stuff.

I can say that all flash operations with former sony were tricky. No one time was flashing withouth problems. For example on experia Z i installed cyanogen – so far so good – and after this i crypted the internal store. finally, through the encryption, the system was not able to decrypt the file(s)  with provider data. I had a smartphone just only for data connections…  i had to make the decission to use a young and buggy “nightly” version, that was the solution – and so on!

So i decided to use a samsung s7 for the next years. And because i got a lot of errors the last 2 weeks: here is the progress of flashing and a possible solution that worked for my devices.

Please understand this blog as a part or as addition-blog to the official sites of LineageOS. If you are localized in DACH and can not go on with english sites, just take a translational software like google… (Sollten Sie der engl. Sprache nicht mächtig sein, kopieren Sie den Text einfach in einen Online-Übersetzer wie google…)

I will take no warranty to steps you will do basically at this howto. See it like a additional summary of experience.

Requirements -what do you need?

  • Unboxed Samsung Galaxy S7 type G930F
  • The original USB-Cable of your box (so you can exclude test procedures)
  • Load the battery nearly full to 100% (some devices are just flashable with a high battery status)
  • Put in a large SD card with min 16 GB of size
  • 1 day of free time

First Todos

  • Switch on the S7, step through the starting procedure
  • go to Settings an switch the developer mode on with tabbing at lesat 7 times to the build number in the smartphones properties
  • now you can see the developer mode options in the settings
  • go there to the dev options
  • set OEM dislocking ON, USB Debugging ON
  • shut down the device

What does the common LineageOS say?

At first, go to the official site of LineageOS and read the manual steps. As a summary, you can say that there are three steps. Samsung provides the flashing of there devices. And this is the first step: there is a small part on your smartphone like a bootloader with name “Download mode”. This software package does have no really usable functions but you can start it if you press on the switched off device three keys together: VOL-DOWN, HOME-BUTTON and SWITCH-ON-BUTTON. After seconds you will reach the “Download mode”. Accept the warning and you will see a screen it seems to be waiting for a action from outside the smartphone. You can restart the download mode at every time: just hold the three buttons again and you will see that the device is rebooting – hold further on the buttons and you will land in the same screen again. Easy. But as I say, the “Download mode” can nothing as download something. Here is the second step: you have to change this part of software with a software with more functions. I have used the flash custom recoery of the TWRP (called: Team WIN)  group.  This custom recovery software does have more functions as the default samsung part. LineageOS does descripe this step with Team Win too. And with the software we reach the third step: change the OS.

First problems – the connection with the device.

My first problem startet with step 1: to transfer the custom recovery flash to the waiting device was not doable. The LineageOS manual said: use the haimdall-Suite to install driver and transfer the image. Installing the driver should be possible with another software programm called zadiag.exe which is a part of the heimdall suite. In summary, that was the problem. The manual said: as a driver use the samsung usb composite device and if you will not find this one, try the gadged serial device in zadiag  to install the driver. For my part i took the gadged serial one because there was no stuff like samsung… After installing the driver, you can simple test the connection with the command heimdall device for detecting and then heimdall print-pit   to download the device specificatio (by the way: just use the –verbose parameter to ge a more detailed log). I got this errors and warnings: “ERROR: Failed to access device. libusb error -12”, “WARNING: Control transfer #1 failed -1”, “ERROR: libusb error -7 whilst receiving packet -7”. With the -7 error it came: “ERROR: Failed to receive PIT file size!” and “ERROR: Failed to download PIT file!”. In my environment worked the libusb0-driver with the “best” results: the s7 was detectable but print-pit said 6 warnings with control transfer failed. The other 2 drivers stopped working at “initializing” status. I have tried more days and many hours to go find a solution. I have tried a virtualbox with a old windows xp and a windows 7 32bit and of course a windows 10 64bit, too. I read a lot of internet articles about thes three errors: -7, -1, -12. Many others had same problems but no finally solutions. The advices hang around: Change the cable, try to reboot several times, load up the battery. At the end, i did a really complex-structured trial-and-test day just find a solution. My opinion now go around the operating system. The main problem is: the device is findably with the “device” parameter but you can get no transfer-connection the it. probably it should work if you have physical windows 7 with 32 bit with unlocked driver signature surveillance.

The solution – change the transfer software

In my case, through reading many sites i find the TWRP group. As i mentioned above, they developed a custom recovery suite to change the default of samsung and replace it with a more functional flash part. TWRP just not only give the image, they developed a transfer software called ODIN (like heimdall), too. I have downloaded the ODIN 3.12.3 and started it and plugged in the AP-Box the TWRP-Tar-Image file (you can find it here – btw: “herolte” means the S7, like a developement project name)

thomas-zehrer-de_ODIN-Transfer-Herolte-TWRP-Image

As i said, the phone was with the default image in waiting status. Then START and without problems, i transfered the image to the smartphone. SIMPLE. READY. NO PROBLEMS! Why? The connection should be realized through the former installed Samsung Composite Drivers.

First Restart

After this, i restarted the device by holidng VOL-UP, HOME-BUTTON and SWITCH-ON-BUTTON and got to the new Image of TWRP. Here you can see a screenshot from ther HP.thomas-zehrer-de_twrp-software-image

There are a lot of functions to do. At first, you should make a backup with go to Backup-Tab and swipe a backup to the external card. Takes about 2 hours. At second, wipe the complete storage with Wipe and Advanced Wipe.  Choose “Davlik Cache”, “System , Data”, “Cache”, “Android Secure” and swipe the wipe button. Takes about 10 minutes. Now, you can start your phone in default Waiting Mode with VOL-DOWN + POWER + HOME and in the new TWRP recovery Image with VOL-UP + POWER + HOME. From here you can later start some nice features: backup a complete image, go to the encrypted store, copy files… – all possible with adb.

Last step: Transfer the LineageOS to the phone.

Go to Advanced and set the device to listening mode again. Its called sideload. With the sideload mode you can transfer from your pc or laptop a file for installing to the device, similar a waiting status. Now you need on the windows side a Android well knows software called “android debugging bridge” or adb. Just download this part from google site and start the command line like this: adb sideload LineageOD.zip – you can see the transmission from windows to the S7 on booth sides. After this go to to restart and restart the device. The new Image will be rolled out.

Summary

Finally, it worked for me. You need a sum of software and todos, i try to list it. so i did not use the heimdall suite. (the links are working at Jan, 19, if you need the files: just contact me).

  • At first the Samsung Composite Drivers from here and install this ones at your windows system.
  • Then create a directory and download following files:
    • The herolte Image: the alternative custom image of TWRP as a tar-File
    • The ODIN-Software to transfer the herolte image-tar-File
    • The ADB Suite (called android plattform tools) for transfering the LineageOS to the device and unpack it.
    • The LineageOS package from the website and copy it in the same directory as the adb.

Then set your phone in listen mode, start ODIN, choose in AP-box the tar-file and send it. Then restart phone holding three buttons VOL-UP_POWER_HOME and the TWRP recovery is starting. Do a backup of your current system, format / wipe the storage and set the device in sideload mode. Do in your windows the adb sideload command and transfer the image to the device.

So flashing a device can make a lot of fun because you learn a lot of your device. What could be the next steps after flashing? Crypting the storage, loading apps from f-droid. You have a unbounded fresh Android with no needless apps you never use or need.

Have a nice day.

Android Develpoment Studio 3.2, AVD: ERROR: x86 emulation currently requires hardware acceleration

Today, i fixed following error by getting an AVD under Android Develpoment Studio 3.2 (latest in Sept. 2018): “ERROR: x86 emulation currently requires hardware acceleration”. In this case i tried to change my AVDs from arm to intelx86 virtual CPU. The reason was a new development environment by changeing from AMD Phenom to an i7.

So I setted up the new dev environment, installed latest updates to 3.2 and configured like many times the new AVDs with some API-levels from 19 to 28 with intels x86 support. Yes, I enabled the hardware virtualization option in the BIOS of my laptop… but starting the new AVD the event log console in the android studio said that “ERROR: x86 emulation currently requires hardware acceleration” – nothing more.

At first i took a look to the android sdk manager. but during installation, i have already activated the HAXM which can accelerate the x86 emulators by hardware.

thomas-zehrer-de_blog_haxm-android-studio1

thomas-zehrer-de_blog_haxm-android-studio2

The solution at the end was following step i found in the web:  By cmd.exe go to:

C:\users\%youruser%\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\

and start the executable intelhaxm-android.exe.

After this, a tiny installer installes the haxm module.  Then I restarted android studio again. That was the solution! wow.

In former times, my experience was that the emulators were quite slow in starting and executing commands. But now i have a powerful and fast environment to go on with some emulators at the same time. Enjoy it!