Tuesday, February 18, 2014

APN on android concurrent multi-link problem ~ ~ Online Find Great God


Brother recently switched to be a problem on android project in APN if the phone is set to cmnet APN settings, it is only required to switch from one app to CMNET CMWAP, other app still use cmnet, their respective complementary use their influence network link .


I cmwap process established by MMS study for a long time, but without success, to know ConnectivityManager class, there startUsingNetworkFeature (networkType, feature) and requestRouteToHost (int networkType, int hostAddress) can be used, you can see the play log WAP network link has indeed established, but it is not used.

Great God answers you seek android ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
You want to change the framework of this function code can achieve, just do not expect a change application
Reply:
cited a floor baimy1985 reply:
you want to change the framework of this function code can achieve, just do not expect a change application


Thank you for your reply ~ ~
All the code, I can change, I tried to add a new Feature in Phone, but the only change to the framework layer seems not so. Hope to have done a similar function great generosity of God ~ ~
Reply:
Their own roof bar ~ ~
Find all the network resources, before switching APN way is by modifying the android version of the database, but this method efficiency and success rates are relatively low, and later android supports multi-link rear APN parallel (if the phone is cmnet networking, receiving MMS, does not affect the other app using cmnet network link), but I try to establish a wap link process MMS, wap can be determined has been created, but would not be able to use wap link established ~
Reply:
You can use the adb shell busybox ifconfig look is not really there are two links exist, wap and net concurrent to maintain two different links, alteration, or more
Reply:
references, 4th Floor baimy1985 reply:
You can look at the adb shell with busybox ifconfig is not really there are two links exist, wap and net Concurrent to maintain two different links, alteration, or more


Mmm good, thank you very much for your reply before seen your browser's url Bowen loading process analysis, it is like ~ ~
Reply:
references, 4th Floor baimy1985 reply:
You can look at the adb shell with busybox ifconfig is not really there are two links exist, wap and net Concurrent to maintain two different links, alteration, or more


Just cmnet set, I try to open the browser, build cmwap link using your suggested approach, see the two links exist rmnet0 and rmnet1, and I will establish the network after cmwap close, now only rmnet1 a look again there is a link, so wap establishment is no problem, the problem is I have no method to let the browser through wap networking.
Also please feel free to guide us, where is the problem ~
Reply:
Not to mention the guidance ah, but the moment I read your description have no clue, I was wondering if it is wap Internet, your data should be able to go out through this gateway 10.0.0.172, I do not know where your data is to go it? You can use netstat to see in the adb shell, according to your description link should be established, but now you are not sure whether the other settings are correct DNS routing like these, if you are calling source addRoute or modifyRoute these methods should be no problem, Where it might just be wrong parameters.
Reply:
reference to the 7th floor baimy1985 reply:
mention guidance ah, but the moment I read your description have no clue, I was wondering if it is wap Internet , then you should go through the data gateway 10.0.0.172 this out, I do not know where your data is taking it? You can use netstat to see in the adb shell, according to your description link should be established, but now you are not sure whether the other settings are correct DNS routing like these, if you are calling source addRoute or modifyRoute these methods should be no problem, Where it might just be wrong parameters.


Well thank you for your reply, I passed the log, you can see through ENABLE_MMS established networks are CONNECTED
cmwapOf, newLp = InterfaceName: rmnet1 LinkAddress: [10.156.24.210/30] Routes: [0.0.0.0/0-> 10.156.24.209,] DnsAddress: [221.130.33.52.221.130.33.60] httpProxy: [10.0.0.172] 80 With this information, you can definitely see the link is established, the agency also added, but did not pass the wap browser is loading the page
Reply:
reference to the 7th floor baimy1985 reply:
mention guidance ah, but the moment I read your description have no clue, I was wondering if it is wap Internet , then you should go through the data gateway 10.0.0.172 this out, I do not know where your data is taking it? You can use netstat to see in the adb shell, according to your description link should be established, but now you are not sure whether the other settings are correct DNS routing like these, if you are calling source addRoute or modifyRoute these methods should be no problem, Where it might just be wrong parameters.


These two days are set up to check whether the problem is, I compared the log and trace code networking process MMS, MMS is like this, but it can. Among ~ very depressed brother can give you other contact information, hoping not to disturb the case, give some help ~ Many thanks ~ ~
Reply:
Without, it seems every time I finished writing reply back to you all gone then, is with this intention add QQ: 261379017, day I can not reply, only the night, but your question is also not sure I can only try together

reference to the 9th floor Fantasy_116 reply:
Quote: references to the 7th floor baimy1985 reply:

Not to mention the guidance ah, but the moment I read your description have no clue, I was wondering if it is wap Internet, your data should be able to go out through this gateway 10.0.0.172, I do not know where your data is to go it? You can use netstat to see in the adb shell, according to your description link should be established, but now you are not sure whether the other settings are correct DNS routing like these, if you are calling source addRoute or modifyRoute these methods should be no problem, Where it might just be wrong parameters.


These two days are set up to check whether the problem is, I compared the log and trace code networking process MMS, MMS is like this, but it can. Among ~ very depressed brother can give you other contact information, hoping not to disturb the case, give some help ~ Many thanks ~ ~

Reply:
I now have a question, how do you prove that you cmwap not on the network, not only through performance, is not anti-push
1 Check whether the link is established netstate, this according to the description before you should already have rmnet0 and rmnet1
2 Check the two links have the correct IP address, that I do not know if you can use the AT command AT + cgddata such as this should be able to see the link corresponding IP address, the corresponding IP address look back Are there data,
Said earlier this gateway 10.0.0.172 determined by this method is not completely accurate, there may not run off
linkAt present, I can only think of these the


Reply:
We just finished a multi-APN concurrent systems, from data framework to RIL's side business logic processing

No comments:

Post a Comment