-
Configuring Ethernet 802.1x on Android
READ MORE →: Configuring Ethernet 802.1x on AndroidWhat is 802.1x? 802.1x is a network access control protocol that provides authentication for devices trying to connect to a LAN or WLAN. It’s commonly used in enterprise environments to secure Ethernet and Wi-Fi networks. The authentication is usually performed using RADIUS servers.…
-
Setup testing environment to test Android Ethernet 802.1x
READ MORE →: Setup testing environment to test Android Ethernet 802.1xSetting up a testing environment to test Android Ethernet 802.1x requires a combination of hardware and software configurations. Below are the steps to create and configure the environment: Hardware Requirements Software Requirements Overall connection diagram is shown below. Note: Here TPLink TL-SG2210 switch…
-
SSH server support in AOSP Android
READ MORE →: SSH server support in AOSP AndroidFollow the below steps to add SSH Server support in AOSP Android source code. Download the OpenSSH source code and replace it with existing source code inside external folder. Add below code in device make file (e.g. device.mk). Download ssh.rc file. Add below…
-
802.1x Authentication over Ethernet in AOSP Android
READ MORE →: 802.1x Authentication over Ethernet in AOSP AndroidIn today’s enterprise environments, secure wired network access is essential—especially in sectors like education, government, and large corporations. IEEE 802.1X, a port-based Network Access Control (PNAC) protocol, provides a robust mechanism for authenticating devices connected via Ethernet. However, native support for wired IEEE…
-
Set/Get CPU affinity
READ MORE →: Set/Get CPU affinity[code lang=”c”] #define _GNU_SOURCE #include [/code] Set :- [code lang=”c”] cpu_set_t mask; CPU_ZERO(&mask); pid_t pid = gettid(); // Thread. For pid, use getpid() CPU_SET(1, &mask); if(sched_setaffinity(pid, sizeof(mask), &mask) == -1) { LOGE(“set affinity failed, cpu: 1″); } [code] Get :- [code lang=”c”] cpu_set_t…
-
How to extract kernel config from uImage
READ MORE →: How to extract kernel config from uImageGet extract-ikconfig in kernel-source/scripts/ [code lang=”bash”] $mkdir extract-uImage $cd extract-uImage $cp {kernel-source}/scripts/extract-ikconfig [/code] Dump uImage skip 1024 bytes [code lang=”bash”] $cp {uImage/what/you/want} uImage $dd if=uImage of=dd_uImage bs=1024 skip=1 $./extract-ikconfig dd_uImage > config [/code]
-
Create, Build and Run new Cocos2dx project
READ MORE →: Create, Build and Run new Cocos2dx projectCreate A New Project Download and extract Cocos2dx. Open command prompt and navigate to Cocos2dx extracted folder. [code lang=”bash”] cd cocos2d-x $ ./setup.py $ source ~/.bash_profile # may be ~/.bash_login or ~/.profile, depends on your environemnt $ cocos new MyGame -p com.MyCompany.MyGame -l…
-
Android.mk, include all cpp files
READ MORE →: Android.mk, include all cpp files[code lang=”text”] FILE_LIST := $(wildcard $(LOCAL_PATH)/[DIRECTORY]/*.cpp) LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%) [/code]
-
Convert View to Drawable
READ MORE →: Convert View to Drawable[code lang=”java”] Bitmap snapshot = null; Drawable drawable = null; view.setDrawingCacheEnabled(true); view.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_AUTO); // Quality of the snpashot try { view.layout(0, 0, 110, 110); snapshot = Bitmap.createBitmap(view.getDrawingCache(true)); // You can tell how to crop the snapshot and whatever in this method drawable = new…
-
Change Global settings through ADB
READ MORE →: Change Global settings through ADBGet current global time zone: [code lang=”text”] adb shell settings get global time_zone [/code] Set a time zone: [code lang=”text”] adb shell settings put global time_zone Europe/Madrid [/code] This way, developers can change other global settings too.
-
Android Input Keyevent
READ MORE →: Android Input Keyeventusage: input [text|keyevent] [code lang=”text”] input text <string> input keyevent <event_code> [/code] Codes:- [code lang=”text”] 0 –> “KEYCODE_UNKNOWN” 1 –> “KEYCODE_MENU” 2 –> “KEYCODE_SOFT_RIGHT” 3 –> “KEYCODE_HOME” 4 –> “KEYCODE_BACK” 5 –> “KEYCODE_CALL” 6 –> “KEYCODE_ENDCALL” 7 –> “KEYCODE_0” 8 –> “KEYCODE_1” 9…







