android-ethernet-adapter

com.github.kopihao:android-ethernet-adapter:1.0.1@aar'

Лицензия

Лицензия

Категории

Категории

Сеть
Группа

Группа

com.github.kopihao
Идентификатор

Идентификатор

android-ethernet-adapter
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

aar
Описание

Описание

android-ethernet-adapter
com.github.kopihao:android-ethernet-adapter:1.0.1@aar'
Ссылка на сайт

Ссылка на сайт

https://github.com/kopihao/android-ethernet-adapter
Система контроля версий

Система контроля версий

https://github.com/kopihao/android-ethernet-adapter

Скачать android-ethernet-adapter

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.kopihao/android-ethernet-adapter/ -->
<dependency>
    <groupId>com.github.kopihao</groupId>
    <artifactId>android-ethernet-adapter</artifactId>
    <version>1.0.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.kopihao/android-ethernet-adapter/
implementation 'com.github.kopihao:android-ethernet-adapter:1.0.1'
// https://jarcasting.com/artifacts/com.github.kopihao/android-ethernet-adapter/
implementation ("com.github.kopihao:android-ethernet-adapter:1.0.1")
'com.github.kopihao:android-ethernet-adapter:aar:1.0.1'
<dependency org="com.github.kopihao" name="android-ethernet-adapter" rev="1.0.1">
  <artifact name="android-ethernet-adapter" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.kopihao', module='android-ethernet-adapter', version='1.0.1')
)
libraryDependencies += "com.github.kopihao" % "android-ethernet-adapter" % "1.0.1"
[com.github.kopihao/android-ethernet-adapter "1.0.1"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

Android Ethernet Adapter

Logo

What's good?

Convenient way to access android.net.EthernetManager that is a hidden Native Android API without complex Android SDK setup.

Java reflections work behind the scene.

Minimal methods to get things work

  • Provides various EthernetManager.class methods:

    1. boolean isSupported();
    2. boolean isEthEnabled();
    3. void setEthEnabled(boolean enable);
    4. void updateEthDevInfo(boolean dhcp, String ip, String gateway, String subnetmask, String dns);
    5. EthernetConfig getSavedEthConfig();
  • EthernetConfig value:

    1. dev_name
    2. ipaddr
    3. netmask
    4. routeAddr
    5. dns
    6. mode
  • Get new instance simply by:

EthernetAdapter ethernetAdapter = new EthernetAdapter(getApplicationContext()); 

Warning

  • Android Ethernet only works with signed application with the system signature
  • Requires declaration of android:sharedUserId="android.uid.system in AndroidManifest.xml
  • Requires signingConfig in build.gradle of application

Demostration

Preview

Please checkout source code

Add to your Android project

dependencies {
  implementation 'com.github.kopihao:android-ethernet-adapter:1.0.1'
} 

More Information

For documentation and additional information please visit official website.
For enquiries and solutions please visit stackoverflow.

License

Licensed under the GNU General Public License v3.0 (the "License");
Copyright 2013 Kopihao.MY

Версии библиотеки

Версия
1.0.1