01-05-2016 05:35 PM
2,975 ... 1415161718 ...
tools
  1. cbucz24's Avatar
    im wondering if maybe rmnet0 drivers in the kernel need updating? here's logcat from what happens during wifi hotspot tethering:

    Code:
    D/DHCP    ( 1800): configuring rmnet0
    D/ConnectivityService( 1910): ConnectivityChange for mobile: CONNECTED/CONNECTED
    D/ConnectivityService( 1910): ConnectivityChange for mobile_hipri: CONNECTED/CONNECTED
    W/NetworkStats( 1910): dropping UID delta from unknown iface: iface=wl0.1 uid=0 set=DEFAULT tag=0x0 rxBytes=0 rxPackets=0 txBytes=56 txPackets=1 operations=0
    W/NetworkStats( 1910): dropping UID delta from unknown iface: iface=rmnet0 uid=0 set=DEFAULT tag=0x0 rxBytes=612 rxPackets=2 txBytes=76 txPackets=1 operations=0
    E/SecondaryTablController( 1798): ip route add failed: /system/bin/ip route add 28.194.86.161/32 via 0.0.0.0 dev rmnet0 table 60
    W/FrameworkListener( 1798): Handler 'interface' error (No such device)
    E/ConnectivityService( 1910): Exception trying to add a route: java.lang.IllegalStateException: Unable to communicate with native daemon to add routes - com.android.server.NativeDaemonConnectorException: Cmd {interface route add rmnet0 secondary 28.194.86.161 32 0.0.0.0} failed with code 400 : {ip route modification failed (No such device)}
    E/SecondaryTablController( 1798): ip route add failed: /system/bin/ip route add 0.0.0.0/0 via 28.194.86.161 dev rmnet0 table 60
    W/FrameworkListener( 1798): Handler 'interface' error (No such device)
    E/ConnectivityService( 1910): Exception trying to add a route: java.lang.IllegalStateException: Unable to communicate with native daemon to add routes - com.android.server.NativeDaemonConnectorException: Cmd {interface route add rmnet0 secondary 0.0.0.0 0 28.194.86.161} failed with code 400 : {ip route modification failed (No such device)}
    D/NetworkPolicy( 1910): applying policy NetworkPolicy[NetworkTemplate: matchRule=MOBILE_ALL, subscriberId=valid]: cycleDay=19, warningBytes=2147483648, limitBytes=-1, lastSnooze=-1 to ifaces [rmnet0, rmnet0]
    D/NetworkPolicy( 1910): applying policy NetworkPolicy[NetworkTemplate: matchRule=MOBILE_ALL, subscriberId=valid]: cycleDay=19, warningBytes=2147483648, limitBytes=-1, lastSnooze=-1 to ifaces [rmnet0, rmnet0]
    D/ConnectivityService( 1910): NetTransition Wakelock for WifiStateMachine released by timeout
    I/GTalkService/c( 2063): [AndroidEndpoint@1092301488] connect: acct=1000000, state=CONNECTING
    D/Tethering( 1910): TetherModeAliveState.processMessage what=3
    D/Tethering( 1910): chooseUpstreamType(true), preferredApn =5, got type=0
    D/TetherController( 1798): setDnsForwarders(0 = '68.28.230.132')
    D/TetherController( 1798): setDnsForwarders(1 = '68.28.231.132')
    D/TetherController( 1798): Sending update msg to dnsmasq [update_dns:68.28.230.132:68.28.231.132]
    I/dnsmasq ( 3284): using nameserver 68.28.231.132#53
    I/dnsmasq ( 3284): using nameserver 68.28.230.132#53
    D/Tethering( 1910): notifying tethered with iface =rmnet0
    D/Tethering( 1910): TetheredState.processMessage what=12
    E/NatController( 1798): IP rule -6 rule add from fe80::/64 table 60 got 65024
    D/PicasaSyncManager( 2817): active network: NetworkInfo: type: mobile[CDMA - EvDo rev. A], state: CONNECTED/CONNECTED, reason: (unspecified), extra: , roaming: false, failover: true, isAvailable: true
    D/PicasaSyncManager( 2817): background data: true
    E/NatController( 1798): IP route route add fe80::/64 dev wlan0 table 60 got 65024
    I/MediaUploader( 2844): No need to wake up
    E/NatController( 1798): Error setting forward rules
    E/NetworkManagementService( 1910): enableNat got Exception com.android.server.NativeDaemonConnectorException: Cmd {nat enable wlan0 rmnet0 2 fe80::/64 192.168.43.0/24} failed with code 400 : {Nat operation failed (No such device)}
    E/Tethering( 1910): Exception enabling Nat: java.lang.IllegalStateException: Unable to communicate to native daemon for enabling NAT interface
    E/WifiStateMachine( 1910): Tethering reports wifi as untethered!, shut down soft Ap
    full logcat:

    tetherbroke - Pastebin.com
    ok, im not able to code...but what is the 0.0.0.0? what does that refer to? is that a dns address? a blank address isnt going to go anywhere in dhcp or dns. only a guess, but with this address, maybe this is where its looking for the device that it cant communicate with?
    07-08-2012 07:22 PM
  2. tdm's Avatar
    ok, im not able to code...but what is the 0.0.0.0? what does that refer to? is that a dns address? a blank address isnt going to go anywhere in dhcp or dns. only a guess, but with this address, maybe this is where its looking for the device that it cant communicate with?
    0.0.0.0 is an empty or null address. It can be valid for certain uses but probably not in this case.
    07-08-2012 07:36 PM
  3. tdm's Avatar
    Code:
    Inter-|   Receive                                                |  Transmit
     face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
        lo:    1440      20    0    0    0     0          0         0     1440      20    0    0    0     0       0          0
    dummy0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    rmnet0:     612       2    0    0    0     0          0         0      764       4    0    0    0     0       0          0
    rmnet1:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    rmnet2:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    rmnet3:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    rmnet4:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    rmnet5:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    rmnet6:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    rmnet7:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
      usb0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
      sit0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    ip6tnl0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
     wlan0:  405658     596    0    0    0     0          0         0    75066     612    0    0    0     0       0          0

    I wonder if this commit might have anything to do with it(reguarding channel names):
    https://github.com/marc1706/desire_k...bcad7f9d684428


    nope. not a channel issue.
    So it does exist. Those routes looked screwy though.
    07-08-2012 07:39 PM
  4. magus7091's Avatar
    Here's a logcat that started at boot, ended at desktop, while /sdcard was mounting...
    log2
    07-08-2012 07:44 PM
  5. HurrrDurrrDURP's Avatar
    Can we please focus on one thing. Give tdm a break
    magus7091 likes this.
    07-08-2012 07:47 PM
  6. magus7091's Avatar
    I'm having trouble updating. Can someone please explain the process/ what apps to use.
    It depends on what you're updating, but going under the assumption that you're new to this whole process, just read (word for word; I read about 4 guides like this word for word when I first upgraded my HTC Hero), and religiously follow this guide:
    http://forums.androidcentral.com/opt...tart-here.html
    It should have everything you need to get started, then you'll also know enough of the basics to explain any issues you're having with the process. That's not intended as snarky, but if you need a walkthrough, go there, or if you need something particular you'll have to be more specific in order for us to know what you need.
    07-08-2012 07:49 PM
  7. tdm's Avatar
    Here's a logcat that started at boot, ended at desktop, while /sdcard was mounting...
    log2
    Looks good, says it relocated both apps and dalvik. The output of the mount command should show both mounted on mmcblk0p2.
    07-08-2012 07:51 PM
  8. magus7091's Avatar
    Can we please focus on one thing. Give tdm a break
    If you have any ideas to help jump on in and give tdm that well needed break
    Seriously, anyone who has any ideas for me to try can chime on in, I just don't have the knowledge to know where to look for issues in this particular case. Unfortunately I'm not a dev...
    07-08-2012 07:53 PM
  9. HurrrDurrrDURP's Avatar
    If you have any ideas to help jump on in and give tdm that well needed break
    Seriously, anyone who has any ideas for me to try can chime on in, I just don't have the knowledge to know where to look for issues in this particular case. Unfortunately I'm not a dev...
    I'm a linux dev, I can only do POSIX/UNIX/Linux work.
    07-08-2012 07:54 PM
  10. magus7091's Avatar
    Looks good, says it relocated both apps and dalvik. The output of the mount command should show both mounted on mmcblk0p2.
    And yet,
    Attachment 29886
    Attachment 29887

    Sent from my LG-VM670 using Android Central Forums
    07-08-2012 08:07 PM
  11. tdm's Avatar
    I'm a linux dev, I can only do POSIX/UNIX/Linux work.
    Me too. It can make it kinda hard to tell folks how to diagnose issues when they run windows though.
    tcrider84 likes this.
    07-08-2012 08:10 PM
  12. magus7091's Avatar
    And yes, I know that's an hdpi theme, it just happened to be the first thing I found large enough..
    [EDIT]
    Thanks, by the way, for helping with this..

    Sent from my LG-VM670 using Android Central Forums
    07-08-2012 08:10 PM
  13. tcrider84's Avatar
    So it does exist. Those routes looked screwy though.
    im gonna fire up iho and see if it uses the same routing commands and post the logcat
    07-08-2012 08:13 PM
  14. tdm's Avatar
    Can we please focus on one thing. Give tdm a break
    Thanks for the concern but I can multitask. I got 3 phones x 2 flavors and more to come.
    mlson likes this.
    07-08-2012 08:28 PM
  15. tcrider84's Avatar
    this is odd. remember me mentioning that the OV is an omap device? well, the omap chip is the 3610, which includes wilink support. going through IHO, i noticed the Access Point ssid name default is AndroidAP, SO

    i find . -type f | xargs grep -l "AndroidAP"


    ./hardware/ti/wlan/mac80211/config/hostapd.conf
    ./hardware/ti/wlan/wl1271_softAP/config/hostapd.conf
    ./hardware/ti/wlan/wl1283_softAP/config/hostapd.conf
    ./system/netd/SoftapController.cpp

    which means it's NOT using bcm4325 to create an ap, only to create wifi.. just to be sure, I did a check in gingerbread's system/hardware/libhardware_legacy/wifi/wifi.c

    AND SURE ENOUGH:
    Code:
    #ifndef WIFI_AP_DRIVER_MODULE_NAME
    #define WIFI_AP_DRIVER_MODULE_NAME      "tiap_drv"
    #endif
    #ifndef WIFI_AP_DRIVER_MODULE_PATH
    #define WIFI_AP_DRIVER_MODULE_PATH      "/system/lib/modules/tiap_drv.ko"
    #endif
    #ifndef WIFI_AP_DRIVER_MODULE_ARG
    #define WIFI_AP_DRIVER_MODULE_ARG       ""
    #endif
    #ifndef WIFI_AP_FIRMWARE_LOADER
    #define WIFI_AP_FIRMWARE_LOADER         "wlan_ap_loader"
    SO IHO is using the TI omap wilink driver for hotspot.. i think. unless AndroidAP is the default name no matter what due to netd. idk -_-
    tdm likes this.
    07-08-2012 08:28 PM
  16. tcrider84's Avatar
    also here's the logcat from IHO:


    --------- beginning of /dev/log/system I/Vold ( 111): Vold 2.1 (the revenge - Pastebin.com

    ok, maybe the routes are just messed up, because tiap_drv.ko is nowhere in the iho rom
    07-08-2012 08:36 PM
  17. jayleekay's Avatar
    I used to get insufficient space errors when attempting to download hdpi(not for our phone) .apks as well. I just decided not to do that and problem solved hah.

    Sent from my LG-VM670
    tdm likes this.
    07-08-2012 08:48 PM
  18. HurrrDurrrDURP's Avatar
    Me too. It can make it kinda hard to tell folks how to diagnose issues when they run windows though.
    BIG TIME, For android and general OS problems. Windows has the worst logging system I have EVER seen, it tells you nothing.

    I'll do some Android dev stuff as soon as I understand how the whole thing works a bit more... just joined the android train 2 months ago


    Thanks for the concern but I can multitask. I got 3 phones x 2 flavors and more to come.
    Just want to make sure you dnt die from all the work, I want that kernel
    tcrider84 likes this.
    07-08-2012 09:21 PM
  19. tcrider84's Avatar
    I FIXED BUILT IN WIFI HOTSPOT HOLY .

    @TDM compile using cm9 gingerbread android_external_iptables

    IT IS WORKING PERFECTLY.

    ok maybe not so perfectly. it still has a bug where if you turn hotspot off, it doesnt want to bring wifi or the hotspot back up to normal and may cause a reboot, BUT it IS atleast working now partially without immediately shutting off.

    edit 2: seems like it only works using the open setting without security. i added wpa2-psk and it flicked on and off again. rebooted and tried open, stayed on again. so weve got some kinks to work out BUT IT WORKS!

    edit 3: regular wpa-psk security works fine, so im pretty sure its a config setting that needs to be updated. ^.^
    07-08-2012 10:41 PM
  20. HurrrDurrrDURP's Avatar
    I FIXED BUILT IN WIFI HOTSPOT HOLY .

    @TDM compile using cm9 gingerbread android_external_iptables

    IT IS WORKING PERFECTLY.

    ok maybe not so perfectly. it still has a bug where if you turn hotspot off, it doesnt want to bring wifi or the hotspot back up to normal and may cause a reboot, BUT it IS atleast working now partially without immediately shutting off.

    edit 2: seems like it only works using the open setting without security. i added wpa2-psk and it flicked on and off again
    This is a kernel issue, it does the same thing on bluetooth tether, we will need to wait for the 3.0 kernel.
    07-08-2012 10:50 PM
  21. tdm's Avatar
    Great work tcrider very impressive. I think hdd is probably right though, once we get the new kernel it should work or at least be close. The problem is likely that iotables is closely matched to the kernel, and it might be fixable. But I really don't want to make a frankenstein iptables unless I need to.
    07-08-2012 11:09 PM
  22. ganggreen30's Avatar
    I've been waiting patiently for this Rom I'm on Godzilla for now honestly how much better or worse is AOKP. What r the perks of this compared to Godzilla?

    Sent from my LG-VM670 using Xparent Pink Tapatalk 2
    07-08-2012 11:16 PM
  23. HurrrDurrrDURP's Avatar
    Great work tcrider very impressive. I think hdd is probably right though, once we get the new kernel it should work or at least be close. The problem is likely that iotables is closely matched to the kernel, and it might be fixable. But I really don't want to make a frankenstein iptables unless I need to.
    IPtables is a pain in the @$$ enough, last thing we need is some crazy hybrid @-@
    07-08-2012 11:17 PM
  24. tcrider84's Avatar
    Great work tcrider very impressive. I think hdd is probably right though, once we get the new kernel it should work or at least be close. The problem is likely that iotables is closely matched to the kernel, and it might be fixable. But I really don't want to make a frankenstein iptables unless I need to.
    well another option would be to check the differences between ics and gingerbread's iptables to see what went wrong, at the moment its just a temp solution
    07-08-2012 11:21 PM
  25. grosskum's Avatar
    Hey, is there any progress on getting the ICS voice search to work, rather than getting the gingerbread one? I'm not sure if that is the reason for Google now not working for voice search, I got it from [App] Google Now for ICS Roms - xda-developers
    not sure if it not being AOSP is the cause or the voice search not quite working correctly.
    07-08-2012 11:28 PM
2,975 ... 1415161718 ...
LINK TO POST COPIED TO CLIPBOARD