Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
thefunkygibbon
Old
#11  
Senior Member
Thanks Meter 6
Posts: 597
Join Date: Sep 2004
i'm up to step 6 . it was pretty clear up to then. a) i dont have a 3Gsupport.conf file in there b) i guess the bit in the [code ] box isnt what you need to do to edit it c) presuming you mean just open the 3Gsupport file and edit that, am i just replacing all instances of vendor and product or also the VendorID /ProductID bits too?
 
nenadr
Old
(Last edited by nenadr; 5th February 2011 at 12:52 AM.)
#12  
Senior Member - OP
Thanks Meter 40
Posts: 275
Join Date: Feb 2008
Location: Belgrade
Quote:
Originally Posted by thefunkygibbon View Post
i'm up to step 6 . it was pretty clear up to then. a) i dont have a 3Gsupport.conf file in there b) i guess the bit in the [code ] box isnt what you need to do to edit it c) presuming you mean just open the 3Gsupport file and edit that, am i just replacing all instances of vendor and product or also the VendorID /ProductID bits too?
Yup I've made a mess in that part of tutorial (wrong path/name of config file, not clear enough explanation):

You have to edit file '/system/etc/uruk.conf/3Gsupport' and it should look something like:

service_enabled=1
enable=on
vendor=12d1
product=1446
port=0

I've corrected that part of initial post. Thanks.
 
cajl
Old
#13  
cajl's Avatar
Senior Member
Thanks Meter 163
Posts: 827
Join Date: May 2008
Location: near PARIS (94)

 
DONATE TO ME
Pictures of this "exploit"


The old man of Archos
All Archos from JUKEBOX 6000 to GEN XX
see that
http://www.jbmm.fr/2010/10/23/ma-folie-archosienne/
THANKS for your THANKS
 
Meen
Old
#14  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Aug 2008
I've good news for Huawei E176 user, The modem doesn't require to switch mode.
So we just only need to edit ther_usb start and stop .sh
and here is the code for E176

/system/bin/tether_start_usb.sh
Code:
#!/bin/sh

# $1 is the user (not a mandatory argument)
# $2 is the password (not a mandatory argument)

setprop "3Gmod.enable" "on"
setprop "3Gmod.defVendorID" "12d1"
setprop "3Gmod.defProductID" "1003"
setprop "3Gmod.usbPort" "0"

rmmod usbserial
sleep 1

insmod /lib/modules/usbserial.ko vendor=0x12d1 product=0x1003
sleep 1

SUPPORT3G=`getprop "3Gmod.enable"`
VENDOR3G=`getprop "3Gmod.defVendorID"`
PRODUCT3G=`getprop "3Gmod.defProductID"`
PORT3G=`getprop "3Gmod.usbPort"`

if [ ${SUPPORT3G} != on ]; then

   insmod /lib/modules/musb_hdrc.ko mode_default=1
   insmod /lib/modules/cdc-acm.ko

   if [ $# -eq 0 ]
   then
       /system/bin/pppd /dev/ttyACM0 460800 call tether
   else
       /system/bin/pppd /dev/ttyACM0 460800 name $1 password $2 debug call tether
   fi
else
   if [ $# -eq 0 ]; then
       /system/bin/pppd /dev/ttyUSB${PORT3G} 921600 call tether
   else
       /system/bin/pppd /dev/ttyUSB${PORT3G} 921600 name $1 password $2 call tether
   fi
fi
/system/bin/tether_stop.sh
Code:
#!/bin/sh

SUPPORT3G=`getprop "3Gmod.enable"`

if [ $1 = "DUN" ]
then
    /system/xbin/dund --killall
elif  [ $1 = "PAN" ]
then
    /system/bin/pand --killall
else
    if [ ${SUPPORT3G} != on ]; then
	kill -9 $(pidof pppd)
	/system/bin/rmmod cdc_acm
	/system/bin/rmmod musb_hdrc
    else
	killall -15 pppd
    fi
fi
 
nenadr
Old
#15  
Senior Member - OP
Thanks Meter 40
Posts: 275
Join Date: Feb 2008
Location: Belgrade
Quote:
Originally Posted by Meen View Post
I've good news for Huawei E176 user, The modem doesn't require to switch mode.
So we just only need to edit ther_usb start and stop .sh
and here is the code for E176
Thanks for the info on Huawei E176. I'll make some chaneges in original scripts, for those users that have modems that don't require switching, to be able to use original scripts. It'll be in 0.3 in next day or so.
 
thefunkygibbon
Old
(Last edited by thefunkygibbon; 6th February 2011 at 06:42 PM.)
#16  
Senior Member
Thanks Meter 6
Posts: 597
Join Date: Sep 2004
Quote:
Originally Posted by cajl View Post
Pictures of this "exploit"

could you please post some bigger pictures? I'm not sure its big enough for people to see.


ok nenadr, I'll try the rest of the process tonight cant wait to try it. have you managed to get an idea of the sort of battery drain using one of these? ie is it much worse than using wifi?
 
thefunkygibbon
Old
(Last edited by thefunkygibbon; 6th February 2011 at 09:04 PM.)
#17  
Senior Member
Thanks Meter 6
Posts: 597
Join Date: Sep 2004
I'm getting the following on step 7 . I am using uruk 0.5 I it makes any difference

/system/xbin/3Gmodem_init.sh 12d1 1003
No 3G USB dongle support detected. Will try to initialize modem.
Found USB 3Gmodem dongle in default mode connected to device. Starting modeswitch.
ERROR: Module option does not exist in /proc/modules
ERROR: Module usbserial does not exist in /proc/modules
ERROR: Module usb_storage does not exist in /proc/modules

Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No devices in default mode found. Nothing to do. Bye.

sh: 1003: unknown operand
Found new Product ID: 0002
1003
0001
0a19 for Vendor ID: .
Loading 3G modem kernel driver with adeqate configuration
insmod: error inserting '/lib/modules/usbserial.ko': -1 Invalid parameters
Kernel module load failed. Exiting.
#
 
nenadr
Old
#18  
Senior Member - OP
Thanks Meter 40
Posts: 275
Join Date: Feb 2008
Location: Belgrade
Quote:
Originally Posted by thefunkygibbon View Post
I'm getting the following on step 7 . I am using uruk 0.5 I it makes any difference
Please, take a look couple of posts up, for an alternate solution, because it seems that your vendorID and productID doesn't need mode-switching. I'll fix the scripts, and tutoral for that case tomorrow.

Sent from my A101IT using Tapatalk
 
thefunkygibbon
Old
#19  
Senior Member
Thanks Meter 6
Posts: 597
Join Date: Sep 2004
lol. oh yeah. sorry. i didnt know mine was a E176 and as such i skimmed over those posts sorry for appearing to be a bit of a idiot. cant wait for the new script.

btw has $auron shown any interest in incorporating this into his rom. would be useful to have all the legwork done automatically and maybe urukconfig could do some of the stuff that isnt able to be done automatically
 
nenadr
Old
#20  
Senior Member - OP
Thanks Meter 40
Posts: 275
Join Date: Feb 2008
Location: Belgrade
Quote:
Originally Posted by thefunkygibbon View Post
btw has $auron shown any interest in incorporating this into his rom. would be useful to have all the legwork done automatically and maybe urukconfig could do some of the stuff that isnt able to be done automatically
yes, his shown interest but this code is stll not mature (and tested on) enough devices to be merged with uruk.... meybe for some later urukdroid, who knows

Sent from my A101IT using Tapatalk

 
Post Reply+
Tags
3g usb modem, archos, howto, mod, rndis
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...