简体   繁体   English

在 Android 上禁用 usb 驱动程序

[英]Disabling usb driver on Android

I use webusb for printing on POS printer.我使用 webusb 在 POS 打印机上打印。 And in past I had problems in any systems, but now I have solutions for Windows and Linux.过去我在任何系统中都遇到过问题,但现在我有 Windows 和 Linux 的解决方案。 But haven't for Android.但 Android 没有。

On windows I install Zadig driver.在 windows 上,我安装了 Zadig 驱动程序。

On linux i make rule SUBSYSTEM=="usb", ATTRS{idVendor}=="3e33", ATTRS{idProduct}=="0130", MODE="0664", GROUP="plugdev", RUN+="/bin/sh -c 'echo -n $id:1.0 > /sys/bus/usb/drivers/usblp/unbind && echo -n $id:1.0 > /sys/bus/usb/drivers/usbfs/unbind'" on folder /etc/udev/rules.d/在 linux 我制定规则SUBSYSTEM=="usb", ATTRS{idVendor}=="3e33", ATTRS{idProduct}=="0130", MODE="0664", GROUP="plugdev", RUN+="/bin/sh -c 'echo -n $id:1.0 > /sys/bus/usb/drivers/usblp/unbind && echo -n $id:1.0 > /sys/bus/usb/drivers/usbfs/unbind'"在文件夹 /等/udev/rules.d/

On Linux and android, I had the same problem that the usblp driver did not allow to connect to the printer.在 Linux 和 android 上,我遇到了同样的问题,即usblp驱动程序不允许连接到打印机。 But I managed to defeat it on Linux, but I don't know how on android.但我设法在 Linux 上击败了它,但我不知道如何在 android 上击败它。

Is it possible to disable the usblp driver on android?是否可以禁用 android 上的usblp驱动程序?

To my knowledge it is not possible to disable a driver on Android without rooting the device.据我所知,如果不植根设备,就无法禁用 Android 上的驱动程序。

The Android SDK provides the ability to request a "forceful" claim of the interface and I have filed https://crbug.com/1099521 with the Chromium project to consider whether to take advantage of it on Android. The Android SDK provides the ability to request a "forceful" claim of the interface and I have filed https://crbug.com/1099521 with the Chromium project to consider whether to take advantage of it on Android.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM