Skip to content

Instantly share code, notes, and snippets.

View khallaghi's full-sized avatar
🇳🇱

Mohammad Khallaghi khallaghi

🇳🇱
View GitHub Profile
@khallaghi
khallaghi / android-x86-marshmallow-custom-sdk.md
Last active March 18, 2024 09:50
Make a custom API and SDK under Android-x86-marshmallow

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);
@khallaghi
khallaghi / beautiful-terminal.md
Last active July 11, 2021 06:12
How to make your terminal life beautiful

How to make your terminal life beautiful

BAT - A cat(1) clone with syntax highlighting and Git integration.

bat repository
installation: sudo apt install bat

bpytop - Linux/OSX/FreeBSD resource monitor

bpytop repository
Installation: pip3 install bpytop --upgrade

@khallaghi
khallaghi / minicase.md
Last active February 14, 2019 00:33
Answer to Mini Case Challenge of Winter House

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.

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.