yashsingh1/xdaforums huggingface dataset:
[Acer Iconia A500] JFDee:
The pppwidget folder on /sdcard as well as the unpacking of the binaries should happen on the first call of the widget (actually placing it on the "desktop"), right after the root check. Did you do that successfully?

The binaries are not in their "standard directories". The widget does not intrude any system folders - one of my goals is to leave the system alone apart from using the "su" tool. There is only the app tree in /data/data and the folder in /sdcard.
[Acer Iconia A500] Rusty_Gunn:
thanks for the reply! i installed the apk, and ive tried both 0.95 and 0.96. i plug in my wireless stick, it asks if i would like to open it with pppwidget, i hit ok, then it gives and error and exits. su never pops up for permission, and the pppwidget dir is never created.

nice work on not intruding on the system dirs.
[Acer Iconia A500] JFDee:
I'm still wondering: do you have the widget open on your screen? Don't plug in before you see its message "No modem".

I probably have to amend the documentation.
[Acer Iconia A500] superhotluv:
This is probably because you must be already having another driver installed , like some of the custom ROMs provide RIL based drivers for Huawei 3g modems.
[Acer Iconia A500] Kratoschile:
It works!!!!

I'm using the stock ics and a Huawei E176 modem

Thanks you for your excellent work :D

Enviado desde mi A500 usando Tapatalk 2
[Acer Iconia A500] aranna:
Unable to download app on google play or others but web pages working well normal ?
[Acer Iconia A500] Rusty_Gunn:
that fixed it, thanks. i didnt realize i had to add the wiget to my home screen.

i tried two modems, one worked perfectly, the second the wiget just said 'search or modem...' no matterhow long i waited. i assume that means the modem is unsupported?
[Acer Iconia A500] superhotluv:
same problem here

Moreover if I try the apps like teamviewer or skype, they both don't work

I believe only HTTP based services are working. :crying:
[Acer Iconia A500] landscapelinux:
It works!!!

My experience is as follows:

I first installed the apk.

After that I had to rebbot the Iconia, because I couldn't find the widget.

After the rebbot, it was in the widget section. I moved on the desktop, and it asked me for SU permissions.

I changed the parameters, basically only the APN internet.wind (I'm in Italy,) and put a username and a password.

I connected my USB dongle which is a ONDA MT503HSA, pushed connect, and it worked. I can only use it with stock browser, and sometimes I have to reload some pages, but it basically works fine for me.

I'm on civato's Re-Flexx Rev_4

Thanks...
[Acer Iconia A500] JFDee:
To all users who are wondering about some programs not working:

Every app that relies on the Android OS' online state information before connecting will think the device is offline.

Every app that just goes ahead and tries to access the network will happily work.

I spent the better part of the week's evenings exploring the Android source code to figure out a way to make the OS change its network awareness. So far, there seems to be no way in the Iconia stock ROM.

This is a well known problem. If there will not be a change in coming versions of Android, then we know that this restriction is intended.
[Acer Iconia A500] JFDee:
To stay on the positive side of things, here are some of my apps that work flawlessly:

Opera Browser (downloading works well)

K-9 Mail

Google Earth

YouTube

probably thousands of others ...
[Acer Iconia A500] csk213:
try using TTY_PPP
[Acer Iconia A500] JFDee:
Hmm, thanks for your reply, but it is a little cryptic. Even Google could not help ...
[Acer Iconia A500] Falcon1:
It does not work

No, I am also on civato's Re-Flexx Rev_4 and I do not have any Ril-daemon software installed previously and furthermore I have tried with 2 custom roms and the same thing happens with both. A window appears saying "The aplication has stopped" and does not work anymore.

---------- Post added at 01:17 PM ---------- Previous post was at 01:15 PM ----------

How does TTY_PPP work. Could you please make a very little manual ! !!! thanks
[Acer Iconia A500] a.child:
would a usb-ethernet cable plugged into a modem/router work too? If it does, I will give you money.
[Acer Iconia A500] haytham-88:
It Works ,and i'm using android 4.1.1

CM-10-20120723-unofficial-a500

THANK YOU !!!!
[Acer Iconia A500] nifterific:
In the first post when it says you can connect via phone, thats USB tethering right? Because I installed the app, gave it SU permissions, dropped it on my home screen, and it constantly tells me its not connected even when I plug my phone into the USB slot and enable USB tethering. It finds nothing.
[Acer Iconia A500] JFDee:
No, not exactly.

Android's USB tethering is intended to pass its own active Internet connection (WiFi or Mobile) on to a connected PC/laptop computer.

AFAIK, this is using a USB network protocol.

PPP Widget expects a phone or a stick with a modem interface that it can send "AT"commands to.

So you have to set up your phone to provide a modem mode. Don't enable "Tethering" on your tablet.
[Acer Iconia A500] JFDee:
This would depend on the availability of the USB Ethernet driver on the tablet. Frankly, I don't know ...
[Acer Iconia A500] nifterific:
I wasn't enabling tethering on my tablet, I enabled it on my phone to see if it would pass the connection through USB to the tablet like it does my PC. My carrier doesn't block USB or wifi tethering, so if it was going to work, it should have. Oh well, wifi tethering works, I was more testing this out of curiosity.

If anyone was curious, I'm running Tegraowners v170.
[Acer Iconia A500] JFDee:
This might work on the tablet as well, provided there is a USB ethernet driver available in your kernel.
[Acer Iconia A500] JFDee:
To all:

If you like you can test the new version 0.97.

It has experimental full network access through a mock WiFi interface (disabling "real" WiFi before dialing is necessary).

Also I made some attempts to get rid of the "long time" crashes.

See top post for link.
[Acer Iconia A500] Falcon1:
News for pppwidget 3g dongle lovers!!!!!

There is some news regarding the pppwidget app, it seems that the great developer of this application has a new release 0.97 version. the only issue is when downloading the app I have the same 0.96 version. See the link for details::confused:

http://www.draisberghof.de/android/pppwidget.html
[Acer Iconia A500] JFDee:
My bad, the file is there but I did not update the link.

Corrected now.
[Acer Iconia A500] Laz35:
0.97 is great!

I've been testing this and the "wifi" is now working. I can download in browser, use google maps and do whatever I normally do when on real wifi. Thanks a bunch for this excellent release. I also no longer get crashes of the widget when unplugging and reinserting the dongle.
[Acer Iconia A500] antukubo:
I know this app is for Acer Iconia A500 and working well on stock ROM. Anyway, I installed v0.96 & v0.97 on my A200 (stock ROM) for testing purpose. Everything seems ok because i got connected (Huawei E220 modem). The problem is i got no data at all. Can't browse anything. I believe this issue is due to DNS entry. Tried manually change the DNS on resolv.conf file but it will revert back to default values. Is there any way to change DNS permanently?
[Acer Iconia A500] Rusty_Gunn:
a few items consideration

-it sometimes doesn't install correctly, and i have to uninstall, and reinstall a second time. when it doesnt install correctly, the apps list list it size as 832kb, not the full 1.44mb.

-it use to crash every time i rebooted, which would force me to reinstall (usually twice). the new version 0.97 seems to of fixed that.

-no support for sierra usb 306 or sierra usb 598 (product id 68a3 and 0025 respectively), i tired adding the appropriate product id number to the sierra config file within the apk (1199.0fff), and resigned/installed the apk, but it still wouldn't see them.

-i did test with a nokia stick as well, which worked perfectly.

keep up the good work!

using an acer a510 for reference.
[Acer Iconia A500] JFDee:
Can you describe the effect of not "installing correctly"?

Are there any error messages? What is not working?

I encourage everyone to report unsupported devices at the USB_ModeSwitch site. This will help ALL Linux users worldwide.

To check if your device is known to work you can have a look into the current version of the usb-modeswitch-data package. It contains the device configs as small files named from the device ID before mode-switching.

More info here:

http://www.draisberghof.de/usb_modeswitch/
[Acer Iconia A500] JFDee:
There is a new version online (see top post).

It allows to add custom/modified config files; just put them into /sdcard/pppwidget/cfg and they take precedence of the internal config files.

You can use the config files from the latest usb_modeswitch data package and try your modifications. There is only one little thing which has to be done for the files you use: edit the file name and replace all colons ":" with dots ".". So 19d2:2000 becomes 19d2.2000.
[Acer Iconia A500] Rusty_Gunn:
thanks! ill give it a try and report back.

edit:

thats great! took me about 2 minutes to get the sierra 306 working, just edited an existing config to match my modem, dropped it into the cfg directory and it connected with no issues!
[Acer Iconia A500] May.Assem:
Oh my god, it's working! I can't even begin to tell you how much I love you right now! I'm posting this using a usb modem and it makes me so happyyyyyyyy! :D

Thank you so so so much!

Sent from either my Iconia-A500 or my LG-P990, depending.
[Acer Iconia A500] JFDee:
If you tell me the values that you tested, I'll include them in the next release to support these devices out-of-the-box.
[Acer Iconia A500] williegomezt:
Thank you very much for this.

I have an Iconia A200 with stock rom and I'm using a Hauwei E1556 and it works fine.
[Acer Iconia A500] May.Assem:
In my excitement I forgot to mention that my device is Iconia A500 running Thor's JB custom ROM v8, and USB modem is ZTE MF190S.

Sent from either my Iconia-A500 or my LG-P990, depending.
[Acer Iconia A500] Falcon1:
Good news!!!!!

There is another release of the application pppwidget 0.98. You can download it from the link http://www.draisberghof.de/android/pppwidget.html

For the developer: After 1 hour of using 3g pppwidget I found a bug that consists on going offline with the blue light indicator flashing with the dongle usb connected, when trying to disconnect from internet with the button option just does not work.!!!!!! I am using flexreaper stryker 6.0. Big Thanks anyway.:D
[Acer Iconia A500] soul_0830:
Hi JFDee,

Just wanted say thanks for the best app ever.

Works really well on my rooted Acer A500 running stock ICS. The best part is it doesn't drain the battery too much, from what I ve noticed, the battery consumption is equal or less then the wifi usage.

Again big thanks for your app.
[Acer Iconia A500] Laz35:
problem with 0.98 on cm10

On cm10 the tab reboots as soon as you try to launch something after having initiated the connection. Im not sure how to provide logs in this case since the tab reboots?

Edit: it still works on older versions so im pretty sure it has to do with the wifi emulation that the later version have incorporated.
[Acer Iconia A500] sphynxoid:
need PPPwidget0.96.apk

Same pb here with pppwidget 0.98 and cm10

Please can you give me link to 0.96 version of th app to test it
[Acer Iconia A500] JFDee:
Hmm, I have only stock ROMs to test. Don't know the modifications of alternative ROMs. I guess this report should go to the CM developers.

BTW, it might still be possible to catch the moment of crash with a logcat from a PC. I suspect it's not a full reboot you are seeing.

Version 0.96 is still on my server. Just edit the version number in the download link.
[Acer Iconia A500] JFDee:
Note that the widget's energy consumption can be neglected compared to that of a mobile data stick. These things are typically using the full 500mA that a USB port may provide max according to the specs.

So it's rather due to the good battery of the Iconia that you don't see an immediate major drain.

On my Archos 70, I have to employ a powered hub to make sticks work at all ...
[Acer Iconia A500] sphynxoid:
:laugh: Youpiiiii version 0.96 is working on CM10

Thank you OP :good:

---------- Post added at 03:46 PM ---------- Previous post was at 03:23 PM ----------

Try version 0.96 it solved my pb now its working for me on CM10 :laugh:
[Acer Iconia A500] JFDee:
Anyone running CM: please help by catching that error !!

It may show up with logcat, even when rebooting shortly after. You know you can redirect to file with "(adb) logcat > anyfilename.log", right?
[Acer Iconia A500] drapper:
I have the Flexreaper rev 5.2 and pppwidet 0.98. Can you please help on how to get the mock wifi option?

The widget installs and connects perfectly without any connection disruptions. When I check the log it shows an ip assigned but I am still not able to download anything or use playstore updates, googlemaps, etc. Browsing works fine and apps like tapatalk, etc.

Below is the log:

ATZ

OK

AT+CFUN=1

OK

AT+CGDCONT=1,"IP","internet"

OK

ATD*99***1#

CONNECT

Report from chat: Aug 21 19:34:54 CONNECT

Serial connection established.

using channel 1

Using interface ppp0

Connect: ppp0 <--> /dev/ttyUSB0

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x105b22d0>]

rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x6ac175> <pcomp> <accomp>]

sent [LCP ConfRej id=0x0 <pcomp> <accomp>]

rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x105b22d0>]

rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x6ac175>]

sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x6ac175>]

rcvd [LCP DiscReq id=0x2 magic=0x6ac175]

rcvd [CHAP Challenge id=0x1 <f0ed2400a22781787c3a5167e2d7d605>, name = "UMTS_CHAP_SRVR"]

sent [CHAP Response id=0x1 <c5b2f0b93b7b30b3ab9d614ad571f7a9>, name = "Qaz"]

rcvd [CHAP Success id=0x1 ""]

CHAP authentication succeeded

CHAP authentication succeeded

sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]

rcvd [IPCP ConfNak id=0x1 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]

sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

rcvd [IPCP ConfNak id=0x2 <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins 10.11.12.14>]

sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns3 10.11.12.14>]

rcvd [IPCP ConfReq id=0x0]

sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>]

rcvd [IPCP ConfNak id=0x3 <addr 62.74.204.178> <ms-dns1 213.249.17.10> <ms-dns3 213.249.39.29>]

sent [IPCP ConfReq id=0x4 <addr 62.74.204.178> <ms-dns1 213.249.17.10> <ms-dns3 213.249.39.29>]

rcvd [IPCP ConfReq id=0x1]

sent [IPCP ConfAck id=0x1]

rcvd [IPCP ConfAck id=0x4 <addr 62.74.204.178> <ms-dns1 213.249.17.10> <ms-dns3 213.249.39.29>]

Could not determine remote IP address: defaulting to 10.64.64.64

local IP address 62.74.204.178

remote IP address 10.64.64.64

primary DNS address 213.249.17.10

secondary DNS address 213.249.39.29

Script /data/data/de.draisberghof.pppwidget/app_bin/ip-up started (pid 1686)

Script /data/data/de.draisberghof.pppwidget/app_bin/ip-up finished (pid 1686), status = 0x0

Thanks in advance for any help
[Acer Iconia A500] Laz35:
Logcat for cm10

Hi JFDee

I have gathered a logcat which I hope will be helpful to you. I did a "adb shell logcat > ppp-logcat.txt" before I plugged in my 3G stick and then I pressed connect at which time it rebooted (or at least I got the boot animation). After I was returned to the home screen I terminated the logcat.
[Acer Iconia A500] JFDee:
Indeed it is! Thanks.

I think the moment of problems is at or around this line:

"DexOpt: mismatch dep name: '/cache/dalvik-cache/system@framework@android.policy.jar@classes.dex' vs. '/cache/dalvik-cache/system@framework@framework2.jar@classes.dex'"

As I said, I could only test on the stock ROM. There may be different dependencies in the core classes on CM.

So, maybe you can help again ... Can you post a listing of all files that sit in your folder "/system/framework"? Best to do that with a simple "ls" via adb shell.

Edit: Also, I'd like to see the result of the shell command "echo $BOOTCLASSPATH".
[Acer Iconia A500] JFDee:
The connection log looks good, and the "ip-up" script which should start the mock WiFi connection terminates without an error.

I don't know this custom ROM so the same request applies as in similar cases: I need a logcat output for the moment of connection.
[Acer Iconia A500] Laz35:
Here you go.

u0_a37@android:/ $ cd /system/framework/

u0_a37@android:/system/framework $ ls -l

-rw-r--r-- root root 16981 2008-08-01 14:00 am.jar

-rw-r--r-- root root 144309 2008-08-01 14:00 android.policy.jar

-rw-r--r-- root root 72038 2008-08-01 14:00 android.test.runner.jar

-rw-r--r-- root root 549357 2008-08-01 14:00 apache-xml.jar

-rw-r--r-- root root 6562 2008-08-01 14:00 bmgr.jar

-rw-r--r-- root root 360181 2008-08-01 14:00 bouncycastle.jar

-rw-r--r-- root root 2473 2008-08-01 14:00 bu.jar

-rw-r--r-- root root 2781 2008-08-01 14:00 com.android.future.usb.accessory.jar

-rw-r--r-- root root 3216 2008-08-01 14:00 com.android.location.provider.jar

-rw-r--r-- root root 163351 2008-08-01 14:00 com.google.android.maps.jar

-rw-r--r-- root root 35859 2008-08-01 14:00 com.google.android.media.effects.jar

-rw-r--r-- root root 577 2008-08-01 14:00 com.google.widevine.software.drm.jar

-rw-r--r-- root root 6398 2008-08-01 14:00 content.jar

-rw-r--r-- root root 11624 2008-08-01 14:00 core-junit.jar

-rw-r--r-- root root 1289745 2008-08-01 14:00 core.jar

-rw-r--r-- root root 1082112 2008-08-01 14:00 ext.jar

-rw-r--r-- root root 9202551 2008-08-01 14:00 framework-res.apk

-rw-r--r-- root root 4282400 2008-08-01 14:00 framework.jar

-rw-r--r-- root root 120223 2008-08-01 14:00 framework2.jar

-rw-r--r-- root root 3318 2008-08-01 14:00 ime.jar

-rw-r--r-- root root 2934 2008-08-01 14:00 input.jar

-rw-r--r-- root root 25277 2008-08-01 14:00 javax.obex.jar

-rw-r--r-- root root 47765 2008-08-01 14:00 monkey.jar

-rw-r--r-- root root 15549 2008-08-01 14:00 pm.jar

-rw-r--r-- root root 4195 2008-08-01 14:00 requestsync.jar

-rw-r--r-- root root 968084 2008-08-01 14:00 services.jar

-rw-r--r-- root root 4314 2008-08-01 14:00 svc.jar

-rw-r--r-- root root 34017 2008-08-01 14:00 uiautomator.jar

u0_a37@android:/system/framework $ echo $BOOTCLASSPATH | tr ':' '\n'

/system/framework/core.jar

/system/framework/core-junit.jar

/system/framework/bouncycastle.jar

/system/framework/ext.jar

/system/framework/framework.jar

/system/framework/framework2.jar

/system/framework/android.policy.jar

/system/framework/services.jar

/system/framework/apache-xml.jar

u0_a37@android:/system/framework $
[Acer Iconia A500] JFDee:
There we are ... This file is not in the stock ROM but seems to be a dependency on CM.

Now let's try to get rid of the crash. I see you know your way around the command line and the file system.

In the data folder of pppwidget there is a subfolder called "app_bin". The full path is "/data/data/de.draisberghof.pppwidget/app_bin". It should contain scripts "ip-up" and "ip-down".

Edit these scripts and change the line with BOOTCLASSPATH. Add "$base/framework2.jar:" just after "$base/framework.jar", as you have seen in your system variable.

See if there is a change in behaviour ...
[Acer Iconia A500] JFDee:
Thanks for the report and the new log.

The same code works fine on the stock ROM. Well, that's modding for you ... Now I have to dive into the source code of CM. No guarantee though that I will find a solution.

Anyway, in the next release I'll retrieve the BOOTCLASSPATH properly, no matter the ROM. Unfortunately, the "ip" scripts are started up with a stripped environment; I'll think of something.
[Acer Iconia A500] JFDee:
I think I found the culprit and it's not the modders' fault.

In Jelly Bean (as well as CM 10), the method in question has an additional parameter. So I have to introduce a fork for 4.1

That's what you get for employing undocumented tricks, but then I had no choice ...

Thanks for giving me a trace - stay tuned for version 0.99 !
[Acer Iconia A500] drapper:
I try "adb shell logcat > ppp-logcat.txt" but I get a device not found error from the terminal emulator of my tablet (not connected to my PC). Am I doing something wrong?
[Acer Iconia A500] Laz35:
If you're doing from the tablet itself you don't need to write adb shell ...

Just write logcat > file.txt
[Acer Iconia A500] JFDee:
Laz35 and others running a system based on Jelly Bean:

I have attached a new version of the "bc" tool that I use for making Android network-aware. If you want, test it by replacing the existing version.

It is supposed to go in the existing installation of PPPWidget.

The folder is "/data/data/de.draisberghof.pppwidget/app_bin".

Please don't spread it around, it's only for testing. Once it works, I will include it into a new release of course.

Edit: Exception caught, file removed, work is ongoing.
[Acer Iconia A500] meduza:
Hallo JFDee

I`m on TEGRAOWNERS JB and using your widget, it doesn't recognize my huawei E1550 but but if I disable automatic recognition it works, I can connact to the internet :)

I tryed this file bc.jar but it didn't work sometimes the tab rebootet and sometimes it connected and disconnected again.

So I returned to the original file.

m.
[Acer Iconia A500] Laz35:
No dice first time around.

It rebooted but I hope the log can give some insights :)
[Acer Iconia A500] Laz35:
Might have messed up

It occurred to me that I probably didn't have the right permissions on the file the first time around so her's another one (in case it mattered).
[Acer Iconia A500] JFDee:
Nah, the exception is not related to permissions. Thanks anyway for your logs, they are helping!

More Jelly Bean specialties to chew on, but not a dead end. Will take annother evening ...
[Acer Iconia A500] csk213:
It is a good effort for the modem ppp connection. Keep up the good work. Few thoughts though.

1. The PPP Widget uses automatic or manual detection. It will be good if the widget checks all the ttyUSBs automatically for the data connection. Check first for the ttyUSB0 for the ppp data connection. if no connection, then check for ttyUSB1, ttyUSB2, ttyUSB3. At max modems have 4 ports. ttyUSB0, 1, 2, 3. By this way user need not worry about any ttyUSB.

2. In some ROMs the libreference-ril.so will initiate the data connection by default to some ttyUSBs prebuilt by the vendor. So we have to disable those connections prior to making new connection. So try this code:

stop ril-daemon

killall pppd

exec /system/bin/sleep 5

start ril-daemon

3. The apn-conf.xml file contains mostly all the latest apns. we can use the apn from it, by matching the mnc and mcc.
[Acer Iconia A500] JFDee:
I don't think users have to worry about actual ports now. I am indeed checking every available port and automatically choosing the one providing the actual connection. This is done for all devices and OS versions, even if you have to start the USB discovery manually.

The manual override of the port selection is only a last fallback and only recommended if nothing else works.

The PPPWidget was created with tablets in mind which don't have any mobile connection option. The Iconia 500 for instance has all telephony functions disabled by default.

I will test your proposal and will adapt it if there are no side effects on my device. What is your device, BTW? Would you be prepared to run a test version on it?

Up to now, there is no exchange with the modem/phone other than through the "chat" tool when connecting. This keeps things simple.

I'll look into your proposal though.