ammetto la mia più profonda ignoranza del settore..cos'è il root?:)
Visualizzazione stampabile
ammetto la mia più profonda ignoranza del settore..cos'è il root?:)
non so perche' la sim non ce l'ho...ho avuto in regalo questa chiavetta e volevo vedere se era supportata cmq dovrebbe in ogni caso riconoscerla o no?
GRAZIEEEEEEEEEEEEEEEEEEEEEEEEEEEEE PAOPAD
CE L'ABBIAMO FATTA
Elenco i passaggi che ho eseguito per aiutare gli altri:
Ho eseguito quello che hai detto tu e mi ha dato errore, ecco il log:
Allora ho rieseguito lsusb ed ho notato che la mia chiavetta non era 12d1:1001 ma con tute le prove che ho fatto è diventata 12d1:1520codice:app_47@android:/ # usb_modeswitch.sh /system/etc/usb_modeswitch.d/12d1_1001
Reading config file: /system/etc/usb_modeswitch.d/12d1_1001
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.6 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1001
TargetVendor= not set
TargetProduct= not set
TargetClass= 0xff
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=1
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint= not set
MessageContent=""
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 12d1:1520
found matching vendor ID
searching devices, found USB ID 1d6b:0002
No devices in default mode found. Nothing to do. Bye.
Ecco lsusb:
Allora ho eseguito usb_modeswitch.sh /system/etc/usb_modeswitch.d/12d1_1520 ed ecco il log:codice:app_47@android:/ # lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 12d1:1520
adesso la connessione c'è.codice:app_47@android:/ # usb_modeswitch.sh /system/etc/usb_modeswitch.d/12d1_1520
Reading config file: /system/etc/usb_modeswitch.d/12d1_1520
* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.6 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)
! PLEASE REPORT NEW CONFIGURATIONS !
DefaultVendor= 0x12d1
DefaultProduct= 0x1520
TargetVendor= 0x12d1
TargetProduct= 0x1465
TargetClass= not set
TargetProductList=""
DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00
InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode disabled
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
Looking for target devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 12d1:1520
found matching vendor ID
searching devices, found USB ID 1d6b:0002
No devices in target mode or class found
Looking for default devices ...
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 12d1:1520
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0002
Found devices in default mode, class or configuration (1)
Accessing device 002 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
USB error: could not get bound driver: No data available
No driver found. Either detached before or never attached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
USB error: could not clear/halt ep 129: No such device
Error resetting endpoint: -19
Resetting message endpoint 0x01
USB error: could not clear/halt ep 1: No such device
Error resetting endpoint: -19
USB error: could not release intf 0: No such device
Device is gone, skipping any further commands
Checking for mode switch (max. 20 times, once per second) ...
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
searching devices, found USB ID 1d6b:0002
searching devices, found USB ID 12d1:1465
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0002
Found target device, now opening
Found target device 003 on bus 001
Target device description data
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Found correct target device
Mode switch succeeded. Bye.
rotfl:D:);)
Grazie mille paopad
Per curiosità: il comando usb_modeswitch.sh cosa fa? cosa switcha?
lol bene !!!
il comando usb_modeswitch serve proprio a disabilitare il cdrom e il lettore card che hanno ste chiavette 3g
su windows queste cose le fanno i driver ma su linux (e quindi di conseguenza android) alcune chiavette vengono appunto riconosciute come cdrom...con questo comando si disattiva tutto e si fa riconoscere al sistema il modem
non sono sicurissimo ma credo che devi lanciare questo comando ogni volta che scolleghi e ricolleghi la chiavetta o se spegni il tablet
il root serve per avere i permessi di amministratore...permette di fare molte cose che altrimenti non potresti fare (ad esempio la disinstallazione delle app di sistema...ma è solo un esempio, è utile per molte altre cose)
cmq prova il comando con cui ha risolto ale12a, probabilmente va bene anche per te :)
usb_modeswitch.sh /system/etc/usb_modeswitch.d/12d1_1520
paopad, c'è un problema, se stacco la chiavetta e la riattacco non funziona più, devo rieseguire ogni volta il comando usb_modeswitch.sh.
Questo significa che ogni volta devo scrivere sull'emulatore tutto il comando, e non è una cosa pratica, c'è un modo di fixare questo problema?
La prima cosa che mi vien in mente è creare uno script .sh che esegua questo comando, dalla poca conoscenza di linux che ho penso non sia una cosa difficile.
Oppure c'è qualche file di configurazione che posso modificare per fargli fare l'usb_modeswitch in automatico?
Grazie
il problema è che il comando va eseguito nel momento che metti la chiavetta e non per esempio quando avvii il tablet
la cosa più veloce da fare è usare qualche app tipo scriptmanager o gscript con cui farti uno scriptino con quel comando e mettere l'icona sulla home, così inserisci la chiavetta e tappi sull'icona