Skip to content

纯Java实现的uhid模拟HID设备!A HID device simulation implemented purely in Java!

Notifications You must be signed in to change notification settings

WuDi-ZhanShen/AndroidUHidPureJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

AndroidUHidPureJava

A HID device simulation implemented purely in Java!

How it works

Starting from Android 6.0.1, the "hidcommand_jni" library is built into the system. We can load this library and use the JNI functions provided in it.

How to use

Once you open the app, it will automaticly unzip the classes.dex from its apk file to /sdcard/Android/data/uhid.purejava/files/classes.dex. Then you can use this command to launch uhid simulation:

export CLASSPATH=/sdcard/Android/data/uhid/purejava/files/classes.dex;app_process / com.android.commands.hid.Hid

Note: Adb or Root permission is required.

Note: you can also manually unzip classes.dex from apk file. Just remember to change the filePath parameter in the launch command.

Support range

Android 6.0.1 ~ Android 15

About

纯Java实现的uhid模拟HID设备!A HID device simulation implemented purely in Java!

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages