Hello,

I`m new in android so please help me how to do it. :(

... I`ve got a Huawei E3131 modem to connect to internet, so i need to 
usb_modeswitch the device to force it work.
It`s working when I`m doing commands through terminal, but i need to do it 
automatically when starting a system on my tablet.

My device is Goclever Tab R974 has android ver. 4.1.

I have a root access to the device and busybox installed.

What i need is to start a script in a boot time (init), lets call it 
huawei.sh:

echo "12d1 1506" > /sys/bus/usb-serial/drivers/option1/new_id
> usb_modeswitch -v 12d1 -p 14fe -V 12d1 -P 1506 -M 
> "55534243123456780000000000000011062000000100000000000000000000"
>
>
I tried to add those to /init.goldfish.rc on the device, later pop and push 
it through adb but it isnt working,* any changes I made is disappear after 
reboot of tablet ... why ???*

 service huawei-by-wasyl /system/bin/busybox ash 
> /mnt/sdcard/download/huawei.sh
>     class main
>     oneshot
>
> start huawei-by-wasyl
>

 

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to