LightBlog

mercredi 27 avril 2016

Network Monitoring: How to Get Started and Why You Should Consider it

Security and privacy are of the utmost importance when modifying your device or buying from a third party reseller.  Of course, nothing will ever beat only buying or downloading from trusted sources but if you ever believe your device is sending or receiving information to/from a third party, there are several ways to check.

Image 022The method we’ll look at is primarily developed for Windows; however, official builds do exist for OSX and Linux via mono, alternate software options such as Wireshark are out there but we will be taking a look at Fiddler, which is a free web debugging proxy.  To start you’ll want to download the client from here and (Mac and linux users can grab a build here). Once it has installed we can begin setup, head to Tools > Fiddler Options > Connections and ensure “Allow remote computers to connect” is ticked.

Then head across to the “HTTPs” tab and tick “Decrypt HTTPS traffic” if you would like to see encrypted traffic. Exit the settings and hover over the “Online” indicator which should be in the top right of your display, make a note of the IP address that appears.

The following instructions will differ slightly depending on your ROM or Android version, but for the most part should be similar enough to follow with ease. On your phone head to your WiFi settings and ensure you are connected to the same network as your PC, once connected long press on the connection name and select modify network, then tap show advanced options.

Set your Proxy settings to manual, under hostname type the IP address you copied down earlier and then under Proxy port enter 8888 unless you changed it in the connections menu of Fiddler. Hit save and then in your phone’s browser head to http://ift.tt/1UUXLc6 which should show the Fiddler Echo Service webpage. If you chose to enable decrypted HTTPS traffic earlier you will also want to click the FiddlerRoot Certificate link in your phone’s browser now and install. Once you have completed your testing you can revert your phone’s WiFi connection by heading back to WiFi settings and removing the proxy settings.

You are now all set up and should begin to notice the traffic from your phone appearing in Fiddler. If you are using your PC at the same time you can stop traffic from there showing in Fiddler by right clicking traffic you know is from your PC and then filter, followed by hide process; you should only need to do this for your browser and anything else that is actively connected to the internet. From here you can start testing your device, if you plan on testing your ROM you may want to leave the program running while you use your phone as normal for an extended period of time which should allow you to review the entire log at a later time, to check for any sporadic malicious connections. If, however, you are wanting to check an individual app this can be done quickly by simply using the app and monitoring which connections are made during this time. Fiddler will not prevent these connections, but it will show you what is being sent or received and from where, which brings us to investigating individual connections.

On the right-hand side of the Fiddler client, you will see several tabs, including but not limited to Composer, Log, Filters and Inspectors. Click any traffic that you wish to inspect in the main panel and then inspectors, in the new options that appear below ensure you are in Headers. This should display information such as the version of Android you are running, the make and model of phone you are running. Below this will be the host.

Image 024
Image 021

The entry in the main panel (above, left) shows the URL, host, file size and content type, for example, this .PNG from baidu has been picked up upon my opening of ES File Explorer Pro, the fallen king of file managers. The right-hand side of the client goes more in-depth As you can see from the top panel, I am using a Huawei-AL10 running Marshmallow, which is currently connecting to baidu.com. The bottom panel shows the data that is being sent which in this case can be viewed in the WebView tab, as you can see in this case ES File Explorer Pro is downloading a Christmas image, (Estrongs, if you are reading this thanks for wasting my data on Christmas images in April…). These logs  can then be analyzed to determine a lot about the app in question, in this scenario the accumulation of data and the other traffic from ES file explorer shows that:

A) Even though the Pro version does not come with ads, several MBs worth are still being downloaded just not shown.
B) The app is built poorly with no regard for efficiency.
C) The app is communicating with Baidu constantly.

This method can be used to monitor any data your phone handles over the WiFi connection, thereby making it relatively simple to find out if an app or ROM is sending your data somewhere it shouldn’t be or downloading something that could be malicious. Give it a try sometime, you may be surprised at what you find out.

Footnote:
untit785led u76ntitled untitl8ed untitled un7titled
Just a bit of the pure filth uncovered from ES File Explorer during the network monitoring



from xda-developers http://ift.tt/1WpWsER
via IFTTT

Android N Preview Now Supported in Android Studio 2.1

The Android team released version 2.1 of the Android Studio and there are significant changes in the release. Primarily the release now adds support for the Developer Preview of Android N. Android’s Jack compiler is now supported and now opens the door to Java 8 language features without additional tools or resources.

In addition to Android N support, Instant Run has seen further enhancements since the 2.0 release earlier this month. Java applications are now sped up significantly by incremental compilation, meaning that instead of the entire package being compiled only changes to the package will be recompiled.  The process of creating a dex file from a class has also been migrated from a separate process and into the Gradle daemon process. Because of this the Android team now is advising developers to ensure a minimum of 2GB RAM is available for Gradle. They are also actively soliciting feedback on the Instant Run feature to help refine and improve it. Hopefully those of us in the community using it are sounding off and helping make these tools as good as they can be!

More details can be found on the Android Studio 2.1 announcement yesterday. Want to download it? Head over to the Android Studio download page and pick up 2.1 today!



from xda-developers http://ift.tt/26ug3bH
via IFTTT

HTC 10 with Unlocked Bootloader and TWRP Cannot Download OTA

XDA Recognized Contributor topjohnwu found out that unlocking the HTC10’s bootloader and installing TWRP makes the device incapable of even downloading all OTA’s in the first place.



from xda-developers http://ift.tt/1pFk1MV
via IFTTT

Qualcomm Releases Updated Tools for Vulkan

A lot of people are betting on Vulkan to be huge and recently Qualcomm updated their developer tools to help developers. The Adreno SDK now has a directory with sample Vulkan graphics as an Android Studio project. The Snapdragon Profiler will now show how your apps are taking advantage of the Vulkan API. It alsos track Vulkan API calls to give you GPU timing information.



from xda-developers http://ift.tt/24jSwYO
via IFTTT

Google Redesigns the Homepage of the YouTube App

If you’re an avid user of the YouTube app for Android then you can look forward to an update that will revamp the homepage that you see when you open it up. There’s more to this update than just large images too. Google says they’ve improved the personal recommendation engine that suggests videos it feels you are interested in watching.



from xda-developers http://ift.tt/1rzwymM
via IFTTT

Leaked Photos Allegedly Reveal the Samsung Gear Fit 2 & Gear IconX

Evan Blass was able to get his hands on some photos that allegedly show off two upcoming products from Samsung. First up, we have the Gear IconX Bluetooth earbuds that we see both in and outside of its charging case. Then there’s the Gear Fit 2, a successor to the company’s fitness wearable from back in April of 2014.



from xda-developers http://ift.tt/24jSyA3
via IFTTT

Even Intel wants to Ditch the 3.5mm Jack in Favor of USB Type-C

There’s been rumors of Apple ditching the 3.5mm jack and LeEco did exactly that with their latest batch of devices they released. Now it seems Intel agrees and transition over to the more universal USB Type-C standard. This idea is already a very polarized topic so it will surely spawn heated debates from both sides of the argument.



from xda-developers http://ift.tt/1rzwxPZ
via IFTTT