Skip to content

Instantly share code, notes, and snippets.

Avatar
🏄‍♂️

Mohammad Khallaghi khallaghi

🏄‍♂️
View GitHub Profile
@khallaghi
khallaghi / minicase.md
Last active Feb 14, 2019
Answer to Mini Case Challenge of Winter House
View minicase.md

The Winter Camp Mini Case Challange

This is python script code for Winter Camp mini case challange. ( If you are familiar with question you can skip the Question part and directly go to the Solution part.

Question

A Sens’it V2 device has been installed in the Sigfox Paris office, outside area. Your goal is to find the lowest temperature reported by the Sens’it V2 between January 18th, 2019, 18:00 (UTC) and January 25th, 2019, 18:00 (UTC). Your answer will have to be sent by email to hey@thehackinghouse.com with the following information: • Lowest Temperature measured in Celsius • Date and time (UTC) when this temperature was measured If you have multiple measurements with the exact same lowest temperature, you can return the value with its most recent timestamp.

@khallaghi
khallaghi / android-x86-marshmallow-custom-sdk.md
Last active Feb 5, 2021
Make a custom API and SDK under Android-x86-marshmallow
View android-x86-marshmallow-custom-sdk.md

Building custom SDK

Logs of building custom SDK

first: modifying proper files to add new API

I want to modify the setWifiEnabled function in WifiManager class in framework. actually I want to add new function with same name but with different input variables to get password string too. default signature of function is:

public boolean setWifiEnabled(boolean enabled);
View android-ia-build.md

Building android-ia source code

To build android-ia source you could use this link below:
https://github.com/android-ia/manifest/wiki
but you may face with some issues so this document is here to help. All the experiments done on a Ubuntu 14.04 x64 machine with 16GB of RAM and 6 cores of CPU.
The machine was placed in Netherland/Amesterdam under Digital Ocean network.

Java Development Kit

You have to use OpenJDK 8 to build source successfully if you use other versions or use Oracle Java Development Kit you get some error about it.