yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] mynamesriz:
Cool!

Thanks for the reply, I'll give this a go in the next day or so and let you know how it goes.

Thanks again!
[Nexus 7 Android Development] Mjamocha:
If you need a tester - let me know. I'm looking at the Huawei -EC122 3G MODEM-EVDO-CDMA.

Any way to make a flashable zip that makes your changes. Much like an development overlay?

Edit - the EC122 is not a voice modem.
[Nexus 7 Android Development] trevd:
Hi, Thanks for the offer, I've just been looking over the code as It stands there's no CDMA at the moment. However I'm currently giving the whole project the once-over so I'll add the CDMA functionality to the todo list ;
[Nexus 7 Android Development] Mjamocha:
I found a dongle that is 3g cdma voice modem and compat with android edvo. Should get it in about 10days. I'm wondering if I add the module to my custom overlay(to load it) and make the framework/booleen tweaks ....? PS thanks for your help with the JB image awesome!
[Nexus 7 Android Development] trevd:
LOL :o

I didn't "twig" the name sorry buddy :D With all those kernel modules you probably already have it.... The CDMA functionality has been done, it appears, in the original version of the libhuaweigeneric-ril by derArtem, I just stripped it back in my version.. It's not too much of an issue to throw back in for a bit of testing.

Also there's a little trick you can do so you don't have to modify the original framework-res. Is it on the Nexus 7 or are you casually roaming other device forums? :laugh:
[Nexus 7 Android Development] Mjamocha:
LOL, just casually roaming forums dealing with similar tweaks such as yours- I really want to get some voice action for the xoom (cdma), but im at a loss on the implementation.
[Nexus 7 Android Development] mailbinoy:
Got this working on a Huawei EC156 on CDMA network (Tata Telecom - India) . I had to add username and password to /system/etc/ppp/peers/gprs and change the ATDT number to #777 in /system/etc/chatscripts/gprs_start

Has anybody been able to get the google apps working?

P.S Stock Rom, rooted Nexus 7
[Nexus 7 Android Development] trevd:
Wow, That's a pleasant surprise. Good Woork :good: You may also need to add /etc/permissions/android.hardware.telephony.cdma.xml for good measure. What do you mean exactly by google apps ; gmail, play etc or something different? I'm not at all familiar with CDMA operations but do you have a signal Icon and did you get the cdma version of the Mobile Networks System Settings UI?

Any chance of a screen shot?

Once again , Great Work
[Nexus 7 Android Development] mailbinoy:
Thanks. I will report in a few minutes.

Soft bricked my tablet trying to edit build.prop. damn text editors. Does anyone know what the default permisisons , line encoding and text encoding is used for build.prop
[Nexus 7 Android Development] trevd:
A noble cause, and without a device :good:

Not quite, have you read the second post in this thread? In all the excitement you may have missed the note at the top of the first post ;)

The second post contains the rest of the details pertaining to the full implementation and a download which has the file additions in.

Thanks
[Nexus 7 Android Development] trevd:
I've done that a couple of times already.... It's irritating to say the least especially as It was fine on ICS and I've not looked into it properly yet. I worked around it by editing the build.prop on the device directly until I work out exactly what's causing it.

I presume you're changing the ro.telephony.default_network=4 for the CDMA network type?
[Nexus 7 Android Development] Mjamocha:
hmmm .....
[Nexus 7 Android Development] trevd:
Should be alright. here's the proper one ( androidxref ) so you can double check

From the screenshot it looks like you're natively connected but android won't know about it, If I recall there are some additional changes to the framework-res.apk that need to be made to switch to the CDMA Mobile Networks SettingsUI as you're still seeing the GSM ones. I'll have a look into it. You can also double check this by trying to use a non google app that requires an internet connection. If the app fails it means you're only connected on the native side.

I've just noticed that, It's a bit of a dirty trick by google. Do you have any backups? an advanced restore of only the data partition will restore your account info. I'm about to do a "clean" test of this functionality so I'll see if it work overs over mobile data, if it does then once full CDMA is recognised by the android you may just be in luck :)
[Nexus 7 Android Development] mailbinoy:
I have a nandroid backup. But I am not restoring it for now. Feel free to use me as a cdma testing dummy

Some apps work and some don't.

For e.g YouTube asks me to login to a google account but I can skip that and watch a video without issues.

Chrome works, I am typing this on my nexus 7

Ted shows the videos, but when I click play it asks me to connect to a network

Apps like Facebook work without issues
[Nexus 7 Android Development] tocixxx:
Just tested this out with a E160 Dongle. Works partially, native connection is OK. Everything else is broken. Store is not working. I'll look into it.
[Nexus 7 Android Development] zozor:
Does it work for all phone ? I am a incredible 2 user
[Nexus 7 Android Development] rags_2489:
does huawei E1731 work with nexus 7?
[Nexus 7 Android Development] trevd:
Hi.

The general rule is. If it works on the linux desktop then there's a good chance it will work on the nexus 7. The whole point of this thread is to give people the tools and the information to allow them to test whatever dongle they have themselves.

Do you have an E1731?

Do you have a Nexus 7?

Do you have a USB OTG Cable?

If the answer to the above 3 questions is yes, you have everything you need to find out yourself.
[Nexus 7 Android Development] mateorod:
Hey trevd, there isn't a file corresponding to system/bin/ppd, in the package you sent or my latest download of your attachment.

Is that needed?
[Nexus 7 Android Development] trevd:
/system/bin/pppd is what you're looking for, it is included in android as standard, for some reason the libhuaweigeneric-ril.so needs to run it as root.
[Nexus 7 Android Development] mateorod:
Yeah, I just had it on your copy files list. Since the permission changes are now slated to be done through the updater script, it no longer needs to be there in any form, I guess.

I will yank it from the list.

Thanks.
[Nexus 7 Android Development] rags_2489:
i have the dongle and i am planning to get nexus 7. hence my question. Thanks for the reply anyways. :cyclops:
[Nexus 7 Android Development] trevd:
Ah, Ok, fair enough :) I'd encourage you to read the full thread and take a look at the usb_modeswitch web site, that will at least tell you if the dongle works on the linux desktop. Like I mentioned, The general rule I work by is if it works on the Linux Desktop it probably can be made to work in android.

Thanks
[Nexus 7 Android Development] trevd:
Hi Folks

Just a quick note on those who wanted a more "noob" friendly way of installing this mod, Check out the AutoPatcher Utility in this very forum.
[Nexus 7 Android Development] bbc0:
I just tried to d/l ApG and couldn't access the website.
[Nexus 7 Android Development] Cetin:
I have K3565-Z it´s made by ZTE.

I´m not a dev. Just can do adb and fastboot commands.

Is it possible to make this great idea work for me too?

Edit: Sry, saw the AutoPatcher thing too late.

I will read about AutoPatcher. I´m on ParanoidAndroid with Franco Kernel.

Is it possible to patch via AutoPatcher this configuration?
[Nexus 7 Android Development] cooljais:
tried on Huawei CDMA modem. (EC156)

Did all the steps as mentioned in the post #1 and also did the changes fro CDMA models.

Still getting the following error

FIX ME! implement ttyname() bionic/libc/bionic/stubs.c:460
/system/bin/pppd: no device specified and stdin is not a tty

P.S. Noob here in terms of android development.
[Nexus 7 Android Development] rufh_s:
By mistake
[Nexus 7 Android Development] trevd:
Hi there,

It appears that the ril.pppd_tty property has not been set. Can you follow the directions for troubleshooting in the second post please as this will me get a better overview of the current system state

Thanks
[Nexus 7 Android Development] rufh_s:
I have simply added 'username internet" in mentioned file on post 76

I know there's something wrong there,also the atd no #777

Please see attached

"u0_a81@android:/ # su

u0_a81@android:/ # /system/etc/ppp/init_pppd_gprs

/system/bin/pppd: In file /etc/ppp/peers/gprs: unrecognized option 'Username'

u0_a81@android:/ #"

Using huawei CDMA tata photon plus India

Thanks
[Nexus 7 Android Development] cooljais:
Do not capitalize U or P in username and password.

write like this

username internet

password internet

NO CAPS, linux is case sensitive AFAIK

Let me know if you get any signal after this.
[Nexus 7 Android Development] rufh_s:
well as far i remember I tried that too, infact first i tried with no caps,will try it once more but as of now i am softbricked trying to edit build.prop

guess i am close now as only those have softbricked are able to get thru this..lol

EDIT: can anyone please share build.prop (screenshot will do) thanks
[Nexus 7 Android Development] cooljais:
I've attached the log files.

TIA
[Nexus 7 Android Development] trevd:
That's excellent, thanks.... Looks like from the logcat hotplugd binary is lacking execute permissions, This is the system service which detects when you plug a usb stick in.

To check the permissions, do the following

adb shell ls -l /system/bin/hotplugd

That will give you details of the file permissions, the result should look something like this ( I suspect It will be different though )

-rwxr-xr-x root root 9520 2012-08-06 11:37 hotplugd

Assuming this is your problem, you can change the permissions on the file with the following command

adb shell chmod 755 /system/bin/hotplugd

Then just give the tablet a reboot and see if that cures your problem :fingers-crossed:

I suspect what has happened is, the permissions were not retained when the file was sent to the device, I also seemed to have missed that one off my permission check list in the second post, Something I will sort out now.....

Thanks
[Nexus 7 Android Development] rufh_s:
Nope..lower case username didn't solved my problem

Please see my attached logs.. its quite similar to "cooljais" but chmod hotplugd didn't fixed it either

"09-12 10:01:07.360 E/MobileDataStateTracker(346): default: Ignoring feature request because could not acquire PhoneService

09-12 10:01:07.360 E/MobileDataStateTracker(346): default: Could not enable APN type "default"

Not sure why APN's not saving

Guess will have to try gsm only,BTW will it be possible to switch b/w gsm and cdma

(If both's working of course) similar to global phone by setting value to 7

Anyways first need to get working will experiment things latter

I m not sure though what's wrong here

Can you please confirm if I am adb pushing your latest package /system to my device do I still need to rebuild framework-res.apk?

No matter what rebuilding via apktool is giving me error I ll post error log if you want?

and I couldn't find any changes in array.xml except "translatable=false" at two places

Thanks
[Nexus 7 Android Development] trevd:
no, i don't think it will do ; the parameter is user not username......Not really anything to do with my mod that one, you went the extra mile of breaking that all by yourself :laugh: , If your going to throw anything else at it I'd suggest you RTFM for pppd before hand, It saves waiting for a sarcastic bastard like me to reply. ;) :laugh:

You don't have to anything with the framework-res, not at the moment....... Oh course, you're using CDMA! You'll only be able to use the google apps at the minute ( Gmail, Youtube ,Chome etc ) as it still needs to be full implemented.... I'd forgotten all about it :o ...... Too Much Droid, not enough sleep..... Obviously Not having CDMA, I'm kind of working blind, I think it's something todo with prefferred networks. I'll have a poke around today........ see what I can find. Dam you kids and your freaky modems LOL *shakes fist*
[Nexus 7 Android Development] cooljais:
Did this, the command runs without any errors, but still not getting any signal. Checking logs to see if something shows up.

HERE is a tablet which supports the CDMA dongle we are trying to get to work. Maybe this could help. :confused:
[Nexus 7 Android Development] trevd:
Yeah, It's no real problem, to get full cdma going on, I just haven't yet :) I will grab of couple of those funbook roms though, It's always interesting to see other ways of doing things and I'll have a quick look at their framework-res aswell.

Chuck some more logs up if you get stuck, You shouldn't be see a permission denied for hotplugd anymore on the logcst at least.....

EDIT: I've been having a "scout" about and the device could be using a different dataflow device aswell..... The assumption is made that /dev/ttyUSB0 and /dev/ttyUSB2 are used, where as it looks like sometime /dev/ttyUSB3 could be used instead.
[Nexus 7 Android Development] AfftarN:
Hi all!

First of all thanks for great instruction! Awesome work!

Now I have working 3G but I have new problem. :( WiFi now doesn't connect. Device finds WiFi network but I can't connect. When I try connect nothing happens. No error or something else just does not connect. Can anyone say me whats wrong?
[Nexus 7 Android Development] AfftarN:
Looks like the problem with 'framework file'. Before I replace built in 'framework file' WiFi is works, after replace only 3G works fine, WiFi doesn't connect. After flash stock firmware and full erase data WiFi works fine. But I could be wrong.
[Nexus 7 Android Development] trevd:
Hmmmm, Strange....It's not something I've seen but It could well be the case. Is there anything "special" about you wifi setup? or is it all wifi's? also what is the model number etc of you dongle?

You can change the priority of the networks in the framework-res which will probably sort you out.....Not sure of the settings without looking into it.
[Nexus 7 Android Development] rufh_s:
Thanks really! Running internet via my USB dongle :) screenshot attached don't know really what caused it to NOT work and now how it works?made several changes (took help from internet) ...will make the backup first up and figure out..lol and post it

Next is using gsm dongle

As expected only Google apps works with twitter but that's enough for time being

You made this "kid" to play in playground now..ha

Thanks again
[Nexus 7 Android Development] Cetin:
This apk gave me so far full 3g connection with zte k3536-z dongle http://xdaforums.com/showthread.php?p=31455547

It's so easy. Maybe we can combine these developments to get it all work easier.

The one thing I'm missing is the device support for mobile data.

Maybe I can just add them onto? Should I try the framework solution from stage 2/ second post?

NEXUS 7
[Nexus 7 Android Development] AfftarN:
Thanx for the reply!

I have:

Google Asus Nexus 7 8Gb Android 4.1.1 JRO03D

WiFi settings:

13 channel, 802.11 N-only, Greenfield mode, WPA2 (but I turned off it, and no effect).

I'm doing so as described in the instructions, after reboot I've no problem with 3G connection. WiFi works and I can see my network but no connection is established.
[Nexus 7 Android Development] trevd:
Hi I've "Jigged" the priorities around in the network attributes list so wifi has priority over 3g, they should play nice with each other. You might try those new settings ( in the first post ).....If you're still having problems and need some assistance then I'm going to need more than

Mainly because my mystic powers aren't all that great today..... I think it might be the weather LOL :silly: but seriously, post your logs, let me know what you tried, does it work off coldboot? have you tried both with the dongle plugged in and unplugged, I'm sure you get the picture.
[Nexus 7 Android Development] trevd:
May as well give it a shot, as a good buddy of mine says "Get Involved!". The info is there for all to use how they please. :good:

I've been playing around with the PPPWidget, I've not got it working yet but my modems are having a sulk I think! :rolleyes:

Personally I'm not a fan of external apps/widgets doing the work the platform is designed to do and already has built in, but meh! If it works and your happy with it then happy days! :laugh:
[Nexus 7 Android Development] radkor:
Huawei E3131s-2 (GSM/HSPA+) working fine here. :)
[Nexus 7 Android Development] AfftarN:
Hi!

Thanks for you help!

I was obliged to lend up my Nexus for my girlfriend on a trip. :) A few days later I will be able check it again and post logs.
[Nexus 7 Android Development] mrruin:
works very well, thanks! Huawei E173
[Nexus 7 Android Development] Nexus Phreak:
Fully tested and working great without issues with the following ZTE 3G dongles:

- MF190J

- MF190

- MF636

- MF626
[Nexus 7 Android Development] trevd:
Just had a couple of dongles lying around the place eh? LOL. The RIL Library must be more of the generic than huawei side of things. I will update the thread title and first post with the Info,

Thanks
[Nexus 7 Android Development] Nexus Phreak:
Yes, I have all of these right here and a few more lying around, actually. I used to test and review tech stuff for a local mag. :D

Thank YOU, mate.
[Nexus 7 Android Development] sert00:
yai!wonderful 3ad,always look for this kind of 3ad in very wifi tab i bought..and i wonder if anyone discovered anything yet on this device.i have a huawei usb web pen,model k3765.i'm thinkin if it could works or not..anyone have already tried this type of web key?it was originally from vodafone IT,but already erased all the sodtware inside and driver via putty app in windows an year ago to have it working with my previous transfomrer.in the meantime,i buy an adaptor and when arrives i'll try this mod.very corious to see if works..:victory:
[Nexus 7 Android Development] matius44:
Hello! First let me say this one of the most useful mods that I've ever seen! Thanks very much for it mate

Secondly, I'm not that much informed in network technicalities so apologies in advanced for not helping so much, that's why I did not try this mod until now.

I've successfully got my Huawei Mobile Broadband E177u-1 working on my Nexus 7 using Auto Patcher with the exception of 2 issues:

1. It's fully connected ti the internet but only to GPRS even though the stick supports HSPA up to 7.1 Mbps. I've tried to install any dialer application so to access the service menu to no avail, and couldn't find a service menu code for the Nexus 7 in the first place (like dialling *#*#4636#*#* in Samsung devices)

2. Wifi stopped working. Tried rebooting and running in airplane mode without success, eventually a backup returned it to normal

I'm running AOKP build 3 with no custom kernel..

If there is anything I can do to help identify the solution for those 2 issues I will gladly help :)

Kudos for this amazing mod, extremely helpful..
[Nexus 7 Android Development] trevd:
Hi There,

For HSPA you can try changing the build.prop set the telephony.default_network=11 it might be call ro.telephony.default_network, if you're going to pull it off the device make sure you "adb shell chmod 644 /system/build.prop" after you've push it back, otherwise it will fail to boot.

As far a wifi not working goes, you're not the first person to report that so it may be an issue regarding some devices although it is a bit weird. :confused: In the first instance I'm going to have to get a look at some logcats when your attempting to connect to the wifi, a dmesg output would probably be pretty useful. It might throw up something obvious.....

Thanks
[Nexus 7 Android Development] eugenechiuu:
May I know what's the difference between this mod and directly using PPP widget?

https://play.google.com/store/apps/...SwxLDMsImRlLmRyYWlzYmVyZ2hvZi5wcHB3aWRnZXQiXQ

I just tried that app out and it works fine with an O2 labelled Huawei E160 without needing any modifications..
[Nexus 7 Android Development] unrandomsam:
You can disable the cdrom part on these modems (So it is initialised properly without usb_modeswitch) with QPST. Think you might be able to do it with revskills as well. (Or perhaps just connecting the DFU comport). You are much better off without it anyway (In pretty much all circumstances I can think of other than lending it to someone using Windows XP who knows nothing about computers).

http://3g-modem.wetpaint.com/page/ZTE+K3565-Z+(Vodafone)

The hard method works on all I have tried (Same method Huawei or ZTE)

---------- Post added at 07:20 PM ---------- Previous post was at 07:18 PM ----------

http://3g-modem.wetpaint.com/page/ZTE+AT-commands

http://3g-modem.wetpaint.com/page/Huawei+AT-commands
[Nexus 7 Android Development] trevd:
Hi There,

Good Question! I suppose the main difference between this mod and the PPP Widget is the level of integration with the core os, It breaks down like this.

The PPP Widget:

Automatic Modem ModeSwitching

A Visual Configuration UI

If there's anything I've missed here please point it out as I've only had a quick look at the pppwidget

The Mod:

Automatic Modem ModeSwitching

Data Usage Statistics and Management

Integrated Mobile Network and APN Selection

Automatic Connection Configuration

Ability To Disallow Roming

Signal Strength and Network Type Notification Bar Icon

Named Network In Notification Drop Down

Ability To Run as Non Root

Sms Support

It uses exactly the same method and has exactly the same features that every GSM Android Phone has with regards data connectivity.

Obviously the end result is the same and looking at it now, Switching the Dongle into modem mode and establishing the connection and routing is fairly straight forward, The mod just puts lipstick on that pig :) and it really depends on how OCD you are about actually putting Android to work. :laugh:

To be quite honest, If your a non technical user who just wants to a "Stick" connected then the PPPWidget is the way the go and I wouldn't even give this mod a second thought, Also

There's nothing to stop anyone mashing the 2 together and having the best of both worlds all the technical details are laid out in the first and second posts of this thread and free for anyone to do with as they please, I'm not going to "precious" about my ability to enable existing features in the operating system. LOL :)

I hope that clears things up for you!

Onwards! :good: :D
[Nexus 7 Android Development] Linexus:
I did not fully understood what does it do.

If I apply that, what gonna happend?
[Nexus 7 Android Development] 57op:
It works on my Huawei E169 dongle.

I can surf the net, send sms but i can't receive sms.

Great work :D
[Nexus 7 Android Development] rufh_s:
Anybody with this mod able to get to 4.1.2 ota and the new bootloader?

I am reading on various forums that you need to be completely stock and then update to 4.1.2? ( otherwise many users are reporting errors that they can't get back to recovery )

What do I do to restore my nexus to original state, should I just reflash the stock boot.img via fastboot

Lastly will I able to update this mod in 4.1.2, anybody tested?

Thanks and sorry if its a bit offtopic
[Nexus 7 Android Development] Cetin:
I did this with zip from second post and following commands:

fastboot flash boot boot-jro03d-3.1.10-g52027f9.img

adb remount /system

this should be just root directory, imo

adb push /Users/***me***/Documents/Nexus\ 7\ 3G\ mod/system /

adb shell chmod 6755 /system/bin/pppd

Btw, I´m on stock 4.1.1 with "motley kernel/ jays recipe".

When back from booting the apps having issues with visibility and freezing/chrashing afterwards. So I went back with nandroid (twrp).

I think there´s is something wrong with the adb command to push the whole modded system folder at once to the right folder. The right folder is system in the root of device. So I have to push it to root to put the contents in device´s system folder.

What I am doing wrong?