-
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 Ethernet 802.1X…
-
Mount and Unmount QCOW2 images
READ MORE →: Mount and Unmount QCOW2 imagesMount :- Install qemu-utils and enable ndb module [code lang=”bash”] sudo apt-get install qemu-utils sudo modprobe nbd [/code] Connect the image to the first nbd device [code lang=”bash”] sudo qemu-nbd -c /dev/nbd0 xyz.qcow2 [/code] Mount the image. For nbd0, see all the devices…
-
PEM from and to P12
READ MORE →: PEM from and to P12Convert between PEM and P12 PEM It is an ASCII format and can be opened with a text editor. It is used by most SSL-based tools. Key and certificate are two separate files. P12 Acutally: Pkcs12 is used by most browsers. Key and…
-
Error: base operand of ‘->’ has non-pointer type ‘JNIEnv’
READ MORE →: Error: base operand of ‘->’ has non-pointer type ‘JNIEnv’You are using the C variant, but are compiling with g++, which invokes the C++ compiler (even if your source file has a .c extension). Either change the C variants like [code lang=”c”] (*env)->FindClass(env, …) [/code] to the C++ variants, like [code lang=”c”]…
-
OpenSL ES example in Android
READ MORE →: OpenSL ES example in AndroidThis examples shows to use of OpenSL ES framework in native files to play audio. Include following two header files in your project. [code lang=”c”] #include <SLES/OpenSLES.h> #include <SLES/OpenSLES_Android.h> [/code] Now, create necessary class objects. [code lang=”c”] // engine interfaces static SLObjectItf engineObject…
-
Compile, decompile and sign APK using Apktool utility
READ MORE →: Compile, decompile and sign APK using Apktool utilityDownload latest apktool version. Download the batch file and aapt.exe. Create a folder anywhere in the PC and put all the apktool.jar, aapt.exe and the batch script in that folder. Open command prompt. Navigate to the folder where you placed apktool.jar, batch script…
-
Convert ARGB8888 to YUV420sp
READ MORE →: Convert ARGB8888 to YUV420spThe below example show to conversion from ARGB8888 to YUV420sp in sunxi. [code lang=”c”] #include <g2d_driver.h> g2d_blt blit_para; int err; blit_para.src_image.addr[0] = smem_start; /* Physical address of start point */ blit_para.src_image.w = width; /* src buffer width in pixel units */ blit_para.src_image.h =…
-
How to extract and join files xxx.zip, xxx.z01 and xxx.z02
READ MORE →: How to extract and join files xxx.zip, xxx.z01 and xxx.z02[code lang=”bash”] cp /xyz_path\ 1.z01 ~/temp/xyz\ 1.z01 cp /xyz_path\ 1.zip ~/temp/xyz\ 1.zip zip -FF xyz\ 1.zip –out xyz\ 1.zip.fixed mkdir xyz\ 3 unzip -d xyz\ 3/ xyz\ 1.zip.fixed du –total xyz\ 3 >> 10466048 (~10.5 GB => success) [/code] zip -FF should be…








