Porting B2G for coconut - MAC Address problem - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

I'm porting B2G to Live With Walkman.
Kernel is based on semc-kernel-msm7x30 from Cyanogenmod's Github Account
I've added wl12xx modules from Cyanogenmod 9, etc. and loaded their (modules are also loaded in init.rc of course). But WiFi still doesn't working. While I'm trying run it manualy ("netcfg wlan0 up"), I got error:
Code:
[email protected]:/system/lib/modules # netcfg wlan0 up
action 'up' failed (Cannot assign requested address)
['code]
netcfg returns:
[code]
[email protected]:/system/lib/modules # netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
dummy0 DOWN 0.0.0.0/0 0x00000082 8e:9d:59:3d:15:e7
rmnet0 DOWN 0.0.0.0/0 0x00001002 7e:7e:23:63:92:38
rmnet1 DOWN 0.0.0.0/0 0x00001002 0e:a7:c3:52:69:b9
rmnet2 DOWN 0.0.0.0/0 0x00001002 5e:75:da:27:64:f9
rmnet3 DOWN 0.0.0.0/0 0x00001002 fe:2a:0d:6c:68:d7
rmnet4 DOWN 0.0.0.0/0 0x00001002 be:af:14:3b:50:01
rmnet5 DOWN 0.0.0.0/0 0x00001002 06:10:c4:c0:b7:b5
rmnet6 DOWN 0.0.0.0/0 0x00001002 e2:00:f4:a4:15:d4
rmnet7 DOWN 0.0.0.0/0 0x00001002 86:6b:ae:9d:1f:77
rmnet_sdio0 DOWN 0.0.0.0/0 0x00001002 ea:af:b7:63:f2:b9
rmnet_sdio1 DOWN 0.0.0.0/0 0x00001002 7e:bb:36:03:48:91
rmnet_sdio2 DOWN 0.0.0.0/0 0x00001002 5a:cb:ed:5c:c8:7e
rmnet_sdio3 DOWN 0.0.0.0/0 0x00001002 96:c9:ff:c1:3b:3c
rmnet_sdio4 DOWN 0.0.0.0/0 0x00001002 be:51:d2:70:20:91
rmnet_sdio5 DOWN 0.0.0.0/0 0x00001002 46:6b:84:f8:aa:4c
rmnet_sdio6 DOWN 0.0.0.0/0 0x00001002 ca:26:5b:c2:78:d2
rmnet_sdio7 DOWN 0.0.0.0/0 0x00001002 7e:85:5c:f4:bc:a2
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
wlan0 DOWN 0.0.0.0/0 0x00001002 00:00:00:00:00:00 <<<<<<<<<<<<<<<<<<<
I see, wlan0's MAC Address is invalid. Someone had this problem? And yes, dmesg returns my valid MAC Address:
Code:
/system/bin # dmesg | grep wifi
<5>Kernel command line: console=ttyMSM2,115200n8 androidboot.hardware=semc totalmem=0x200 startup=0x00000030 serialno=BX902UAD70 bt0.ieee_addr=5c:b5:24:bf:e8:f7 wifi0.eth_addr=5c:b5:24:5b:06:2b
/system/bin #
And sorry for my mistakes, English is not ma native language.

Siprah123 said:
I'm porting B2G to Live With Walkman.
Kernel is based on semc-kernel-msm7x30 from Cyanogenmod's Github Account
I've added wl12xx modules from Cyanogenmod 9, etc. and loaded their (modules are also loaded in init.rc of course). But WiFi still doesn't working. While I'm trying run it manualy ("netcfg wlan0 up"), I got error:
Code:
[email protected]:/system/lib/modules # netcfg wlan0 up
action 'up' failed (Cannot assign requested address)
['code]
netcfg returns:
[code]
[email protected]:/system/lib/modules # netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
dummy0 DOWN 0.0.0.0/0 0x00000082 8e:9d:59:3d:15:e7
rmnet0 DOWN 0.0.0.0/0 0x00001002 7e:7e:23:63:92:38
rmnet1 DOWN 0.0.0.0/0 0x00001002 0e:a7:c3:52:69:b9
rmnet2 DOWN 0.0.0.0/0 0x00001002 5e:75:da:27:64:f9
rmnet3 DOWN 0.0.0.0/0 0x00001002 fe:2a:0d:6c:68:d7
rmnet4 DOWN 0.0.0.0/0 0x00001002 be:af:14:3b:50:01
rmnet5 DOWN 0.0.0.0/0 0x00001002 06:10:c4:c0:b7:b5
rmnet6 DOWN 0.0.0.0/0 0x00001002 e2:00:f4:a4:15:d4
rmnet7 DOWN 0.0.0.0/0 0x00001002 86:6b:ae:9d:1f:77
rmnet_sdio0 DOWN 0.0.0.0/0 0x00001002 ea:af:b7:63:f2:b9
rmnet_sdio1 DOWN 0.0.0.0/0 0x00001002 7e:bb:36:03:48:91
rmnet_sdio2 DOWN 0.0.0.0/0 0x00001002 5a:cb:ed:5c:c8:7e
rmnet_sdio3 DOWN 0.0.0.0/0 0x00001002 96:c9:ff:c1:3b:3c
rmnet_sdio4 DOWN 0.0.0.0/0 0x00001002 be:51:d2:70:20:91
rmnet_sdio5 DOWN 0.0.0.0/0 0x00001002 46:6b:84:f8:aa:4c
rmnet_sdio6 DOWN 0.0.0.0/0 0x00001002 ca:26:5b:c2:78:d2
rmnet_sdio7 DOWN 0.0.0.0/0 0x00001002 7e:85:5c:f4:bc:a2
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
wlan0 DOWN 0.0.0.0/0 0x00001002 00:00:00:00:00:00 <<<<<<<<<<<<<<<<<<<
I see, wlan0's MAC Address is invalid. Someone had this problem? And yes, dmesg returns my valid MAC Address:
Code:
/system/bin # dmesg | grep wifi
<5>Kernel command line: console=ttyMSM2,115200n8 androidboot.hardware=semc totalmem=0x200 startup=0x00000030 serialno=BX902UAD70 bt0.ieee_addr=5c:b5:24:bf:e8:f7 wifi0.eth_addr=5c:b5:24:5b:06:2b
/system/bin #
And sorry for my mistakes, English is not ma native language.
Click to expand...
Click to collapse
Everything works except Wifi?

danutzgtx480 said:
Everything works except Wifi?
Click to expand...
Click to collapse
Nope, I just fixed SD Card. Mobile Network, WiFi, Camera still doesn't works, but now I'm trying run WiFi

can you upload the zip for coconut?(including kernel) I have smultron and i want to port & try it

Sure, here you are: speedyshare .com /CFpej/boot2gecko-coconut.zip
But it's problem with running recovery, when I'm trying run it while phone starting, it doesn't works. But "adb reboot recovery" works perfectly.

after diedb
By the way. I fixed GSM and SD Card. I'll publish it soon

Siprah123 said:
By the way. I fixed GSM and SD Card. I'll publish it soon
Click to expand...
Click to collapse
good:good::good::good:

I fixed too Battery Indicator and Green LED (thanks @danutzgtx480 for send me a patch! :good: ). I'm going to publish it now (when my new user restriction will be removed)

Related

Need Help From HOX+ Users To Help Development!

So this thread will only be used to get additional help from users. No discussion that is off topic.
This post will be for posting the information answered from what devs request.
And here is the first thing we need.
I need an AT&T/Telus user that knows how to use adb. Turn your data on.
Type in adb shell netcfg. Post your results here.
Hi, everyone like hasoon said I am looking for any user to simply use adb and use the command
Code:
adb shell netcfg
while on data and post the output. I am working on CM10 for the AT&T One X+ you can find my git Here
hasoon2000 said:
And here is the first thing we need.
I need an AT&T/Telus user that knows how to use adb. Turn your data on.
Type in adb shell netcfg. Post your results here.
Click to expand...
Click to collapse
sportsstar89 said:
Hi, everyone like hasoon said I am looking for any user to simply use adb and use the command
Code:
adb shell netcfg
while on data and post the output. I am working on CM10 for the AT&T One X+ you can find my git Here
Click to expand...
Click to collapse
I'm using an At&t version. I can not wait for CM10 man. Keep up the good work .
Code:
c:\AndroidSDK\tools>adb shell netcfg
adb server is out of date. killing...
* daemon started successfully *
lo UP 127.0.0.1/8 0x00000049 00:00:00:
00:00:00
dummy0 DOWN 0.0.0.0/0 0x00000082 0a:14:3c:
e5:6f:a1
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
p2p0 UP 0.0.0.0/0 0x00001003 ea:99:c4:
68:02:86
wlan0 UP 192.168.1.27/24 0x00001043 e8:99:c4:
68:02:86
rmnet_usb0 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb1 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb2 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb3 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
c:\AndroidSDK\tools>
XSafire said:
I'm using an At&t version. I can not wait for CM10 man. Keep up the good work .
Code:
c:\AndroidSDK\tools>adb shell netcfg
adb server is out of date. killing...
* daemon started successfully *
lo UP 127.0.0.1/8 0x00000049 00:00:00:
00:00:00
dummy0 DOWN 0.0.0.0/0 0x00000082 0a:14:3c:
e5:6f:a1
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
p2p0 UP 0.0.0.0/0 0x00001003 ea:99:c4:
68:02:86
wlan0 UP 192.168.1.27/24 0x00001043 e8:99:c4:
68:02:86
rmnet_usb0 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb1 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb2 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb3 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
c:\AndroidSDK\tools>
Click to expand...
Click to collapse
Are you on data? Because the wlan0 interface has an IP address
sportsstar89 said:
Are you on data? Because the wlan0 interface has an IP address
Click to expand...
Click to collapse
Oops. It was on but so was Wi-fi. Sorry about that.
Code:
c:\AndroidSDK\tools>adb shell netcfg
adb server is out of date. killing...
* daemon started successfully *
lo UP 127.0.0.1/8 0x00000049 00:00:00:
00:00:00
dummy0 DOWN 0.0.0.0/0 0x00000082 0a:14:3c:
e5:6f:a1
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
p2p0 DOWN 0.0.0.0/0 0x00001002 ea:99:c4:
68:02:86
wlan0 DOWN 0.0.0.0/0 0x00001002 e8:99:c4:
68:02:86
rmnet_usb0 UP 10.4.80.79/27 0x00000041 00:00:0
0:00:00:00
rmnet_usb1 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb2 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb3 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
c:\AndroidSDK\tools>
XSafire said:
Oops. It was on but so was Wi-fi. Sorry about that.
Code:
c:\AndroidSDK\tools>adb shell netcfg
adb server is out of date. killing...
* daemon started successfully *
lo UP 127.0.0.1/8 0x00000049 00:00:00:
00:00:00
dummy0 DOWN 0.0.0.0/0 0x00000082 0a:14:3c:
e5:6f:a1
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
p2p0 DOWN 0.0.0.0/0 0x00001002 ea:99:c4:
68:02:86
wlan0 DOWN 0.0.0.0/0 0x00001002 e8:99:c4:
68:02:86
rmnet_usb0 UP 10.4.80.79/27 0x00000041 00:00:0
0:00:00:00
rmnet_usb1 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb2 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb3 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
c:\AndroidSDK\tools>
Click to expand...
Click to collapse
Just as i thought thank you
Hello again everyone could i get the battery capacity in mah and all the available cpu speeds use
Code:
adb shell
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
and post the output. thank you. Also could someone get me all the mount points for the device
sportsstar89 said:
Hello again everyone could i get the battery capacity in mah and all the available cpu speeds use
Code:
adb shell
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
and post the output. thank you. Also could someone get me all the mount points for the device
Click to expand...
Click to collapse
Code:
[email protected]:/ # cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
51000 625232
102000 202319
204000 90778
340000 303168
475000 442561
640000 12087
760000 11277
910000 24889
1000000 23665
1150000 25575
1300000 7912
1400000 11667
1500000 4930
1600000 114343
1700000 27325
[email protected]:/ #
I believe hasoon2000 already got the mount points and the partition layout in this thread
http://forum.xda-developers.com/showthread.php?t=1964518
Edit: I got them off my phone just in case, here's what I got
Code:
dev: size erasesize name
mmcblk0p5: 00800000 00001000 "recovery"
mmcblk0p4: 00800000 00001000 "boot"
mmcblk0p16: 60000000 00001000 "system"
mmcblk0p17: 10000000 00001000 "cache"
mmcblk0p20: 00200000 00001000 "misc"
mmcblk0p1: 00600000 00001000 "wlan"
mmcblk0p2: 00200000 00001000 "WDM"
mmcblk0p25: 00200000 00001000 "pdata"
mmcblk0p3: 00600000 00001000 "radiocab"
mmcblk0p18: e00000000 00001000 "userdata"
mmcblk0p24: 01a00000 00001000 "devlog"
mmcblk0p19: 00200000 00001000 "extra"
mmcblk0p14: 03400000 00001000 "mdm9k"
mmcblk0p15: 00800000 00001000 "mdm9k_config"
mmcblk0p21: 00800000 00001000 "modem_st1"
mmcblk0p22: 00800000 00001000 "modem_st2"
Can use basic adb commands ..have hox and hox plus....all about new roms in neway...esp cyanogenmod...
Sent from my HTC One X+ using xda premium
XSafire said:
Code:
[email protected]id:/ # cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
51000 625232
102000 202319
204000 90778
340000 303168
475000 442561
640000 12087
760000 11277
910000 24889
1000000 23665
1150000 25575
1300000 7912
1400000 11667
1500000 4930
1600000 114343
1700000 27325
[email protected]:/ #
I believe hasoon2000 already got the mount points and the partition layout in this thread
http://forum.xda-developers.com/showthread.php?t=1964518
Edit: I got them off my phone just in case, here's what I got
Code:
dev: size erasesize name
mmcblk0p5: 00800000 00001000 "recovery"
mmcblk0p4: 00800000 00001000 "boot"
mmcblk0p16: 60000000 00001000 "system"
mmcblk0p17: 10000000 00001000 "cache"
mmcblk0p20: 00200000 00001000 "misc"
mmcblk0p1: 00600000 00001000 "wlan"
mmcblk0p2: 00200000 00001000 "WDM"
mmcblk0p25: 00200000 00001000 "pdata"
mmcblk0p3: 00600000 00001000 "radiocab"
mmcblk0p18: e00000000 00001000 "userdata"
mmcblk0p24: 01a00000 00001000 "devlog"
mmcblk0p19: 00200000 00001000 "extra"
mmcblk0p14: 03400000 00001000 "mdm9k"
mmcblk0p15: 00800000 00001000 "mdm9k_config"
mmcblk0p21: 00800000 00001000 "modem_st1"
mmcblk0p22: 00800000 00001000 "modem_st2"
Click to expand...
Click to collapse
thank you the only point i missing is the rfs one
Code:
/dev/block/platform/sdhci-tegra.3/by-name/RFS /rfs ext4 noatime,rw
sportsstar89 said:
thank you the only point i missing is the rfs one
Code:
/dev/block/platform/sdhci-tegra.3/by-name/RFS /rfs ext4 noatime,rw
Click to expand...
Click to collapse
I pushed to the RFS file to my computer, but I have no idea what to do with it. If you could point me in the right direction so I can get the point I need that would be great.
hasoon2000 said:
And here is the first thing we need.
I need an AT&T/Telus user that knows how to use adb. Turn your data on.
Type in adb shell netcfg. Post your results here.
Click to expand...
Click to collapse
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\Charlie>adb devices
List of devices attached
HT2AYW300163 device
C:\Users\Charlie>adb shell cfg
/system/bin/sh: cfg: not found
C:\Users\Charlie>adb shell netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:
00:00:00
dummy0 DOWN 0.0.0.0/0 0x00000082 9e:f3:d2:
4d:5b:59
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
p2p0 DOWN 0.0.0.0/0 0x00001002 ea:99:c4:
67:3b:31
wlan0 DOWN 0.0.0.0/0 0x00001002 e8:99:c4:
67:3b:31
rmnet_usb0 UP 10.82.132.217/30 0x00000041 00:00:0
0:00:00:00
rmnet_usb1 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb2 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb3 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
C:\Users\Charlie>
Im on AT&T by the way
XSafire said:
I pushed to the RFS file to my computer, but I have no idea what to do with it. If you could point me in the right direction so I can get the point I need that would be great.
Click to expand...
Click to collapse
thats what i'm trying to figure out it doesn't appear in the mount points and i can't mess with the device yet
Hello everyone i have a build of cm10 for the evitareul (AT&T HTC One X+) http://goo.im/devs/Sportsstar89/evitareul/CM10 it's completely untested as i don't have the device yet it may not even boot however either way i need a logcat. Also the AT&T kernel source isn't out yet so it's using the sense kernel so by some wizardry it boots it will be quite bugged
Telus HOX+
Code:
lo UP 127.0.0.1/8 0x00000049 00:00:00:
00:00:00
dummy0 DOWN 0.0.0.0/0 0x00000082 8a:f6:e9:
63:97:5b
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:
00:00:00
p2p0 DOWN 0.0.0.0/0 0x00001002 ea:99:c4:
68:6c:c5
wlan0 DOWN 0.0.0.0/0 0x00001002 e8:99:c4:
68:6c:c5
rmnet_usb0 UP 10.110.119.248/30 0x00000041 00:00:0
0:00:00:00
rmnet_usb1 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb2 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
rmnet_usb3 DOWN 0.0.0.0/0 0x00000000 00:00:0
0:00:00:00
Code:
51000 148448
102000 32890
204000 10703
340000 44471
475000 137427
640000 16605
760000 16743
910000 17011
1000000 20243
1150000 18584
1300000 7734
1400000 6628
1500000 2465
1600000 56991
1700000 13961
sportsstar89 said:
Hello everyone i have a build of cm10 for the evitareul (AT&T HTC One X+) http://goo.im/devs/Sportsstar89/evitareul/CM10 it's completely untested as i don't have the device yet it may not even boot however either way i need a logcat. Also the AT&T kernel source isn't out yet so it's using the sense kernel so by some wizardry it boots it will be quite bugged
Click to expand...
Click to collapse
i flashed the boot.img and the rom but got no boot. will try to provide logcat
hox+ att
bstephens2u said:
i flashed the boot.img and the rom but got no boot. will try to provide logcat
hox+ att
Click to expand...
Click to collapse
I'm missing something here... What is the difference between the AT&T/Telus verses the International to where we can't use ROMs vise versa?
Why can't we just install Llior's CM10 on our AT&T devices?
Thanks,
Irish
We can't use the same ROMs because while the hardware is pretty much the same, there's different kernels/radios. The AT&T has LTE while the int'l I think doesn't. It's not a major problem, but right now it's what is needed.

[Q] Android Wifi : How to change network interface used by android

When I boot up my Android Device and go to Wifi settings,the status of wifi remains "Turning Wi-Fi on" forever.I looked up in logcat logs,below is the error that I see.
E/wpa_supplicant( 1713): nl80211: Could not set interface 'wlan0' UP
E/wpa_supplicant( 1713): wlan0: Failed to initialize driver interface
E/wpa_supplicant( 1713): Could not read interface wlan0 flags: No such device
Below is some useful information.
Code:
[email protected]:/ # netcfg
netcfg
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
gannet0 DOWN 0.0.0.0/0 0x00001082 1e:e9:6e:bf:45:f7
dummy0 DOWN 0.0.0.0/0 0x00000082 ba:ad:f6:ae:6a:09
rmnet0 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet1 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet2 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet3 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet4 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet5 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet6 DOWN 0.0.0.0/0 0x00000000 00:00:00:00:00:00
rmnet7 DOWN 0.0.0.0/0 0x00000001 00:00:00:00:00:00
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
Contents of /system/etc/wifi/wpa_supplicant.conf:
Code:
update_config=1
ctrl_interface=wlan0
eapol_version=1
ap_scan=1
fast_reauth=1
Question: How can I enable android to use some other interface other than wlan0 ?
Things tried:
1)I tried to edit ctrl_interface parameter in /system/etc/wifi/wpa_supplicant.conf usiny adb pull and push to other interfaces shown by netcfg but android still tries to use wlan0.
2)I also tried to start wpa_supplicant daemon using below command.
Code:
/system/bin/wpa_supplicant -Dnl80211 -idummy0 -c/system/etc/wifi/wpa_supplicant.conf
but this gives error.
Code:
E/wpa_supplicant( 5390): dummy0: Failed to initialize driver interface

[Q] Droidsheep issues

Hey guys I am kind of a noon when it comes to rooting and debugging can some help me fix droidsheep
Here is the debugging code:
DEBUG SESSION START! Mon Jun 08 18:21:13 PDT 2015
Droidsheep path: /data/data/de.trier.infsec.koch.droidsheep/files/droidsheep
ARPSPoof Path: /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof
Testing SU
BusyBox v1.23.2 (2015-03-30 10:55:10 ICT) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list[-full]
or: busybox --install [-s] [DIR]
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, ash, awk, base64, basename, blkid, bunzip2, bzcat, bzip2, cal,
cat, chat, chattr, chgrp, chmod, chown, chroot, chrt, cksum, comm, cp,
crond, crontab, cut, date, dd, depmod, devmem, df, diff, dirname,
dmesg, dnsd, dnsdomainname, dos2unix, du, echo, egrep, env, ether-wake,
expand, expr, fakeidentd, fatattr, fbset, fdflush, fdformat, fgrep,
find, fold, free, freeramdisk, fsck, fstrim, fsync, ftpd, ftpget,
ftpput, fuser, getopt, grep, groups, gunzip, gzip, hd, head, hexdump,
hostid, hostname, httpd, hwclock, id, ifconfig, ifenslave, inotifyd,
insmod, install, ionice, iostat, ip, ipaddr, ipcalc, iplink, iproute,
iprule, iptunnel, kill, killall, killall5, last, less, ln, logname,
losetup, ls, lsattr, lsmod, lsof, lsusb, lzop, lzopcat, md5sum,
microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.vfat, mknod,
mkswap, modinfo, modprobe, more, mount, mountpoint, mt, mv, nameif,
nanddump, nandwrite, nc, netstat, nice, nmeter, nohup, nslookup, ntpd,
od, patch, pgrep, pidof, ping, pkill, pmap, powertop, printenv, printf,
ps, pscan, pwd, rdate, rdev, readahead, readlink, realpath, renice,
rev, rfkill, rm, rmdir, rmmod, route, run-parts, script, scriptreplay,
sed, seq, setsid, sh, sha1sum, sha256sum, sha3sum, sha512sum, shuf,
sleep, smemcap, sort, split, start-stop-daemon, stat, strings, stty,
sum, swapoff, swapon, sync, sysctl, tac, tail, tar, tee, telnet,
telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute,
tty, ttysize, tunctl, umount, uname, uncompress, unexpand, uniq,
unix2dos, unlink, unlzop, unzip, uptime, users, usleep, uudecode,
uuencode, vconfig, vi, watch, wc, wget, which, who, whoami, whois,
xargs, zcat
-rwxrwxrwx app_89 app_89 116992 2015-06-08 18:21 droidsheep
-rwxrwxrwx app_89 app_89 32256 2015-06-08 18:21 arpspoof
executing command: chmod 777 /data/data/de.trier.infsec.koch.droidsheep/files/droidsheep
executing command: chmod 777 /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof
executing command: killall droidsheep
executing command: chmod 777 /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof
executing command: chmod 777 /data/data/de.trier.infsec.koch.droidsheep/files/droidsheep
Error with command: chmod 777 /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof: killall: droidsheep: no process killed
executing command: echo 1 > /proc/sys/net/ipv4/ip_forward
executing command: iptables -F
executing command: /data/data/de.trier.infsec.koch.droidsheep/files/droidsheep
executing command: iptables -t nat -F
executing command: iptables -t nat -I POSTROUTING -s 0/0 -j MASQUERADE
executing command: iptables -P FORWARD ACCEPT
executing command: /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof -s 1 -i wlan0 192.168.1.1
command: /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof -s 1 -i wlan0 192.168.1.1line: e0:b9:a5:a:82:3e ff:ff:ff:ff:ff:ff 0806 42: arp reply 192.168.1.1 is-at e0:b9:a5:a:82:3e
command: /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof -s 1 -i wlan0 192.168.1.1line: e0:b9:a5:a:82:3e ff:ff:ff:ff:ff:ff 0806 42: arp reply 192.168.1.1 is-at e0:b9:a5:a:82:3e
command: /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof -s 1 -i wlan0 192.168.1.1line: e0:b9:a5:a:82:3e ff:ff:ff:ff:ff:ff 0806 42: arp reply 192.168.1.1 is-at e0:b9:a5:a:82:3e
command: /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof -s 1 -i wlan0 192.168.1.1line: e0:b9:a5:a:82:3e ff:ff:ff:ff:ff:ff 0806 42: arp reply 192.168.1.1 is-at e0:b9:a5:a:82:3e
command: /data/data/de.trier.infsec.koch.droidsheep/files/arpspoof -s 1 -i wlan0 192.168.1.1line: e0:b9:a5:a:82:3e ff:ff:ff:ff:ff:ff 0806 42: arp reply 192.168.1.1 is-at e0:b9:a5:a:82:3e

Share openvpn connection over wifi hotspot

Hello!
Trying to share openvpn connection over wifi hotspot, but nothing helps me
This programs doesn't help me
play.google.com/store/apps/details?id=com.ardadem.tethervpn
play.google.com/store/apps/details?id=com.ilmubytes.tethernet
play.google.com/store/apps/details?id=com.cryptotel.tethercontrol
play.google.com/store/apps/details?id=com.tetherunlocker
My netcfg in terminal
Code:
Connection over Wi-Fi without openvpn
[email protected]:/ # netcfg
ccmni2 DOWN 0.0.0.0/0 0x00000080 8a:4f:b2:cb:ce:b1
ccmni1 DOWN 0.0.0.0/0 0x00000080 1e:1a:4b:cd:da:bf
ccmni0 DOWN 0.0.0.0/0 0x00000080 5e:2b:32:c8:db:a3
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ifb1 DOWN 0.0.0.0/0 0x00000082 02:12:82:7f:7c:61
ifb0 DOWN 0.0.0.0/0 0x00000082 e6:3f:1c:93:62:9f
p2p0 UP 0.0.0.0/0 0x00001003 56:ef:92:36:f7:90
wlan0 UP 192.168.2.191/24 0x00001043 54:ef:92:36:f7:90
tunl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
[email protected]:/ #
===================================================
openvpn connection only, via carrier
[email protected]:/ $ su
[email protected]:/ # netcfg
ccmni2 DOWN 0.0.0.0/0 0x00000080 8a:4f:b2:cb:ce:b1
ccmni1 DOWN 0.0.0.0/0 0x00000080 1e:1a:4b:cd:da:bf
ccmni0 UP 172.17.184.14/16 0x000000c1 5e:2b:32:c8:db:a3
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
tun0 UP 172.27.232.123/21 0x00000051 00:00:00:00:00:00
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ifb1 DOWN 0.0.0.0/0 0x00000082 02:12:82:7f:7c:61
ifb0 DOWN 0.0.0.0/0 0x00000082 e6:3f:1c:93:62:9f
tunl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
[email protected]:/ #
===================================================
wifi hotspot on + openvpn connection only, via carrier
[email protected]:/ $ su
[email protected]:/ #
[email protected]:/ # nwtcfg
k_shell/10094:8630: nwtcfg: not found
127|[email protected]:/ # netcfg
ccmni2 DOWN 0.0.0.0/0 0x00000080 8a:4f:b2:cb:ce:b1
ccmni1 DOWN 0.0.0.0/0 0x00000080 1e:1a:4b:cd:da:bf
ccmni0 UP 172.17.184.14/16 0x000000c1 5e:2b:32:c8:db:a3
lo UP 127.0.0.1/8 0x00000049 00:00:00:00:00:00
ap0 UP 192.168.43.1/24 0x00001043 56:ef:92:36:f7:90
tun0 UP 172.27.232.123/21 0x00000051 00:00:00:00:00:00
sit0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ifb1 DOWN 0.0.0.0/0 0x00000082 02:12:82:7f:7c:61
ifb0 DOWN 0.0.0.0/0 0x00000082 e6:3f:1c:93:62:9f
wlan0 DOWN 0.0.0.0/0 0x00001002 54:ef:92:36:f7:90
tunl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00
ip6tnl0 DOWN 0.0.0.0/0 0x00000080 00:00:00:00:00:00

hotspot with openVpn

hi all
i try to share my vpn from android hotspot
i need some help with this script
Code:
iptables -t filter -F FORWARD
iptables -t nat -F POSTROUTING
iptables -t filter -I FORWARD -j ACCEPT
iptables -t nat -I POSTROUTING -j MASQUERADE
ip rule add from 192.168.43.0/24 lookup 61
ip route add default dev tun0 scope link table 61
ip route add 192.168.43.0/24 dev wlan0 scope link table 61
ip route add broadcast 255.255.255.255 dev wlan0 scope link table 61
than i execute it i can ping everything
ping 192.168.0.1 all machine under this adress ok. it's ok for (local)
ping 10.8.0.1 all machine under this adress ok. it's ok for (vpn)
ping 8..8.8.8 it's ok
ping url ( google.com ) it's ok too
all it's good but i can't acces internet (dns automatic or 8.8.8.8 not work. Both i can see some web page but really slower and not properly)
many time i loose but don't reach my goal, my brain is really hot now:silly:
can i have some help
my ip route and rule by defaut see me this (hotspot and openvpn work)
Code:
# ip route show
10.8.0.0/24 dev tun0 proto kernel scope link src 10.8.0.3
10.228.115.64/29 dev rmnet_data2 proto kernel scope link src 10.228.115.67
100.93.115.212/30 dev rmnet_data1 proto kernel scope link src 100.93.115.213
192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.1
Code:
ip rule show
0: from all lookup local
10000: from all fwmark 0xc0000/0xd0000 lookup legacy_system
10500: from all iif lo oif dummy0 uidrange 0-0 lookup dummy0
10500: from all iif lo oif rmnet_data0 uidrange 0-0 lookup rmnet_data0
10500: from all iif lo oif rmnet_data1 uidrange 0-0 lookup rmnet_data1
10500: from all iif lo oif wlan0 uidrange 0-0 lookup local_network
10500: from all iif lo oif rmnet_data2 uidrange 0-0 lookup rmnet_data2
11000: from all iif tun0 lookup local_network
12000: from all fwmark 0x0/0x20000 iif lo uidrange 0-99999 lookup tun0
12000: from all fwmark 0x0/0x20000 iif lo uidrange 99900000-99999999 lookup tun0
12000: from all fwmark 0xc0066/0xcffff lookup tun0
13000: from all fwmark 0x10063/0x1ffff iif lo lookup local_network
13000: from all fwmark 0xd0001/0xdffff iif lo lookup rmnet_data0
13000: from all fwmark 0x10064/0x1ffff iif lo lookup rmnet_data1
13000: from all fwmark 0xd0065/0xdffff iif lo lookup rmnet_data2
13000: from all fwmark 0x10066/0x1ffff iif lo uidrange 0-99999 lookup tun0
13000: from all fwmark 0x10066/0x1ffff iif lo uidrange 99900000-99999999 lookup tun0
13000: from all fwmark 0x10066/0x1ffff iif lo uidrange 0-0 lookup tun0
14000: from all iif lo oif dummy0 lookup dummy0
14000: from all fwmark 0xc0000/0xc0000 iif lo oif rmnet_data0 lookup rmnet_data0
14000: from all iif lo oif rmnet_data1 lookup rmnet_data1
14000: from all iif lo oif wlan0 lookup local_network
14000: from all fwmark 0xc0000/0xc0000 iif lo oif rmnet_data2 lookup rmnet_data2
14000: from all iif lo oif tun0 uidrange 0-99999 lookup tun0
14000: from all iif lo oif tun0 uidrange 99900000-99999999 lookup tun0
15000: from all fwmark 0x0/0x10000 lookup legacy_system
16000: from all fwmark 0x0/0x10000 lookup legacy_network
17000: from all fwmark 0x0/0x10000 lookup local_network
18000: from all iif wlan0 lookup rmnet_data2
19000: from all fwmark 0x64/0x1ffff iif lo lookup rmnet_data1
21000: from all fwmark 0x66/0x1ffff lookup rmnet_data1
22000: from all fwmark 0x0/0xffff iif lo lookup rmnet_data1
32000: from all unreachable
thank's for help i think i don't need a lot for make it but alone i can't do it
i was trying test remove all app use iptables on my phone
reboot start hotspot and vpn
start my ssh session an type just this
Code:
iptables -t filter -I FORWARD -j ACCEPT
iptables -t nat -I POSTROUTING -j MASQUERADE
ip rule add from 192.168.43.0/24 lookup 61
ip route add default dev tun0 scope link table 61
ip route add 192.168.43.0/24 dev wlan0 scope link table 61
ip route add broadcast 255.255.255.255 dev wlan0 scope link table 61
and now it's work really that's crazy this i loose time for nothing
just see for use my dns with it (actually cloudfare dns of my phone with magisk)
normally at home i've pihole i will see later if i fix it and then i close this post

Categories

Resources