2013年8月7日星期三

APN on android concurrent multi-link problem ~ ~ Online seeking god

Android brother recently to be a project on the switching problem in the APN, APN settings if the phone is set to cmnet then requires only one app can be switched from CMNET to CMWAP, other app still use cmnet, each using their respective complementary impact of network link .


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

seek you android god answer ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
------ Solution ------------------- -------------------------
I now have a question, how do you prove that you cmwap not on the network, not only through performance, is not to push the anti-
1. checks whether the link is established netstate, this according to your previous description should already have rmnet0 and rmnet1
2. check this 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, IP address corresponding to look back if there is data,
said earlier this gateway through 10.0.0.172 to determine this method is not entirely accurate, it may not run off link
now I can only think of these out


------ For reference only ---------------------------------- -----
you want to change the framework of this function code can be achieved, just do not expect a change application
------ For reference only ----------- ----------------------------


Thank you for your reply ~ ~
all of the code, I can change, I tried to add new in Phone Feature, but it seems to change to the framework layer only, not so. Hope to have done similar functions god generosity ~ ~
------ For reference only -------------------------- -------------
their own roof bar ~ ~
Find all network resources, the previous version of the switch APN android way is by modifying the database, but the method in which the efficiency and success rates are relatively low, and later android supports multiple APN parallel link (if the phone is cmnet networking, receive MMS, it does not affect other app using cmnet network link), but I try to set up wap link process MMS, wap can be determined has been created, but would not be able to use to establish a wap link ~
----- - For reference only ---------------------------------------
you can adb ; shell with busybox ifconfig look after is not really there are two links exist, wap and net concurrency to maintain two different links, alteration, or more
------ For reference only ---------------------------------------


Mmm Okay, thank you for your reply, seen before the url of your browser loading process analysis Bowen, it is praise ~ ~
------ For reference only --- ------------------------------------


just cmnet setting, I try to open the browser, the establishment cmwap link using your suggested approach, see the two links exist rmnet0 and rmnet1, and I will establish a network cmwap close, once again look now only rmnet1 a link exists, so there is no problem wap establishment, 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 ~
------ For reference only ---------------------- -----------------
mention guidance ah, but I read your description I have no clue moment, I was wondering if it is wap online, then your data should go through this gateway 10.0.0.172 out, I do not know where your data is away from it? You can view the adb shell using netstat, according to your description link should be established, but now not sure the rest of your DNS settings are correct routing like these, if you are calling source addRoute or modifyRoute These methods should be no problem, it might just go wrong parameters.
------ For reference only -------------------------------------- -


Well thank you for your reply, I passed the log, you can see through ENABLE_MMS cmwap established network CONNECTED
's, 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 see the link must be built up, the agent is also added, but the browser that is not loaded through wap site
------ For reference only ---------------------------------------


these days also check whether it is set up, I compared the process to establish a network of MMS log and tracking code, MMS also like this, but it can. Among ~ very depressed brother can give you other contact, hoping not to disturb the case, to the point of helping ~ Many thanks ~ ~
------ For reference only ------- --------------------------------
not, it seems every time I went back to write your reply Ends Well fast, is with this intention plus QQ: 261379017, During the day I can not reply, only on the night, but your question I'm not really sure, only to try it together

  
  
these days also check whether it is set up, I compared the process to establish a network of MMS log and tracking code, MMS also like this, but it can. Among ~ very depressed brother can give you other contact, hoping not to disturb the case, to the point of helping ~ Many thanks ~ ~  

没有评论:

发表评论