Question: I'm really keen to develop a web browser application for Android Wear devices. To make such application I need a **WebView** object, but the major problem is that Google has made the **android.webkit** API unavailable in that OS.

Since Android is open-source, is it technically possible to manually include the needed libraries, by coping them from the android source code on GitHub into my project? Are they going to work like as in a normal Android device, and is it legal?

[Here](https://github.com/android/platform_frameworks_base/tree/master/core/java/android/webkit) is the link to the API I'd like to use.

Answer: 
Setup:

* Debian 8.2 (Jessie)
* PHP version: 7.0.0-4 | from Sid
* lighttpd/1.4.35 (ssl)
* 10.0.19-MariaDB-log | mysqlnd 5.0.12-dev - 20150407

Tested with phpMyAdmin versions 4.4.7, 4.5.2 & 4.6.0-dev using a socket connection.

Encountered the same problem as you and traced it to the secure connection to the MySQL-Server.

**Temporary fix:**

In your config.inc.php (phpMyAdmin) comment 

```
$cfg['Servers'][$i]['ssl'] = true;

```

which determines if ssl would be used for the connection between phpMyAdmin and the MySQL-Server.

*On the side:*

The patch Marc Delisle wrote will most likely throw an error in that state, correct would be:

```
    error_log(var_export($this->_extension->getError(null), true));

```

your web server will then log something like this:

```
    (mod_fastcgi.c.2695) FastCGI-stderr: PHP message: '#2006 - MySQL server has gone away'

```

which is more like a false positive in this case

**Update 1:**

There seems to be a problem with the *MYSQLI\_CLIENT\_SSL* constant which sets *$client\_flags* in */libraries/dbi/DBIMysqli.class.php* at row 176. As soon as these get set, the connection will be dropped.
It might be just me and maybe I'm missing something but in your upper script you don't appear to be passing a user unlike in the testscript, same goes for password.

```
$cfg['Servers'][$i]['user']='root';
$cfg['Servers'][$i]['password']='mysupersecretpassword';

```

Perhaps adding that will work.