seemoo-lab / nexmon

The C-based Firmware Patching Framework for Broadcom/Cypress WiFi Chips that enables Monitor Mode, Frame Injection and much more
GNU General Public License v3.0
2.44k stars 454 forks source link

Samsung Galaxy S7 (bcm43596a0) #189

Open cyrus104 opened 6 years ago

cyrus104 commented 6 years ago

I do not see any instructions on building for this device. I also could not find a version.mk file that is in all of the other patch folders. I created one based on what I saw in the others: version.mk : FW_PATH=$(NEXMON_ROOT)/firmwares/bcm43596a0/9.96.4_sta_c0

There is no instruction on how to preload the libnexmon.so file and can not find where that file would be transferred to the device.

The app has a tool for libfakeioctl but what about an option for selecting the preload.

Thanks

ghost commented 6 years ago

Just find out the version clone the repo build it and replace it in the place(In your case /system/etc/WiFi/bcmdhd_state.bin)the bins in /system/bin or /system/xbin/ and libs in /system/lib/.And run terminal grant root and preload using export LD_PRELOAD=system/lib/libfakeioctl.so Also don't forget to unset and to set permissions on the utils in /system/bin

Yzverg commented 5 years ago

I also crated version.mk, but i'm getting this problem: COLLECTING STATISTICS read ~/nexmon/STATISTICS.md for more information COMPILING src/ioctl.c => obj/ioctl.o (details: log/compiler.log)

:1:55: fatal error: ~/nexmon/patches/include/firmware_version.h: No such file or directory compilation terminated. :1:55: fatal error: ~/nexmon/patches/include/firmware_version.h: No such file or directory compilation terminated. I've checked, /nexmon/patches/include/firmware_version.h, is right there. Am I dooing something wrong?