Compile tshark/wireshark for Android

It is a painful process and I would like to record the whole process.. I will provide a script in the end to assist, but the script should be used "AS IS."

To get wireshark working on Android, we will need many many libraries to start with. Most importantly, we need:

  • libpcap
  • glib
  • libiconv
  • libffi
  • gettext

To get these (and compiled correctly), we also need to get libgcrypt, libgpg-error, gmp, nettle, libtasn1, p11-kit, gnutls, xz, and libxml2. First we need to download all these. Navigate to a directory and use the following script to do so. Continue reading Compile tshark/wireshark for Android

Samsung Galaxy S8 Update Issue with Project Fi

I did not find online anyone mentioning about this. But after I update my S8 to Android Oreo (8.0, the latest system version), my Project Fi lost its data connections.

I found this issue after I left home taking an Uber. I was standing outside and there was no WiFi. My S8 behaved as usual until I notice there was no LTE sign in the status bar. I opened the Uber app and it said "No Internet Connections." I tried other apps and finally found my LTE was gone.

Okay, so long story short, if you encounter the same problem as I did, here is the solution. I do not know why it happens, but the update triggers a change in the network access point settings. For S8, if you navigate to

Settings > Connections > Mobile Networks > Access Point Names

You will see Project Fi -Tm is selected (there might be two of them). Click on the one that is already chosen and we'll edit the APN protocol. The update somehow changes the APN protocol to IPv6 only. Now change that to IPv4/IPv6.

Everything now gets back to normal. 😀

Adversarial ML in Wireless?

So far we have seen so many machine learning (ML) papers in computer vision, from object detections to activity recognitions. There have been tons of papers doing the good, and the same that many are doing the bad thing, namely adversarial ML. Many papers are now following the trend to attack existing well-trained ML models. One example is by wearing a glass with special colors designed, the guy can be recognized as someone else, by machines (shown as the figure below). You can find many many papers on this topic. Continue reading Adversarial ML in Wireless?

Convert png to eps with minimal size

Every time I try to convert from png to eps, through commands like convert or via online converters like here, the eps file is always super large. For example, a 50KB png after conversion becomes 3MB eps.

Then I figured a way to reduce the file size. It is still through convert command, but with an additional prefix inside the command. Continue reading Convert png to eps with minimal size

One Day, I Found "Knives Out" Cheat, for real...

I played 'Knives Out' a while, a mobile PUBG game made by NetEase Inc. It is an awesome game, and I love(d) that the game is fair and there is (was) no cheat.

Apparently, I am wrong. One day I was just landing. I turned my camera to various locations just to double check how many people are around me and where they are. Guess what, I saw someone running on the ground. It is not surprising because he/she may land before I did. But then I found something weird. (S)he ran super, super, super fast. It's like just a click, (s)he went from south to north...

I was shocked, so I did some search online and found several places people actually sold the so-called "Knives Out Assistance." And there is one other place publishing a similar hack for free. Continue reading One Day, I Found "Knives Out" Cheat, for real...