Booting Androidthings on RaspberryPi3

Follow below steps to boot the Androidthings on Raspberry Pi3 Download the prebuilt image from https://developer.android.com/things/preview/download.html wget -c https://dl.google.com/dl/androidthings/rpi3/devpreview/1/androidthings_rpi3_devpreview_1.zip unzip androidthings_rpi3_devpreview_1.zip this will unzip and create iot_rpi3.img image which we need to install on SD card. sudo dd bs=1M if=./iot_rpi3.img of=/dev/sdb where /dev/sdb is assumed to be device name of SD card which we needs … Read more

Android.mk variable to link system or external library during compilation

LOCAL_LDLIBS This variable contains the list of additional linker flags for use in building your shared library or executable. It enables you to use the -l prefix to pass the name of specific system libraries. For example, the following example tells the linker to generate a module that links to /system/lib/libz.so at load time: LOCAL_LDLIBS … Read more

How to install Android NDK on Ubuntu 16.04 / 18.04

The Android NDK is a toolset that lets you implement parts of your app in native code, using languages such as C and C++. For certain types of apps, this can help you reuse code libraries written in those languages. To install and configure the NDK, follow these steps:Download android ndk suitable for your platform … Read more

How to create a native daemon and run from init.rc in Android

Android’s init is located at the root of the filesystem i.e. /init and also it uses different naming conventions than normal linux init, so its advised to first try and understand the details of android init Language, from system/core/init/readme.txt you can also check in the source code you have or click the link here. Now, … Read more

Mounting android system partition as read/write or read-only

Android’s system partition is by default mounted as read only, but if you are looking to modify some system files or applications, then if you try as is, you will not be able to do so due to restricted user permissions, hence first thing we need to do is mount the system partition as read/write … Read more

Replacing old android application in Google Play [ Possible Errors ]

I had a previous application in google play at https://play.google.com/store/apps/details?id=com.wAgriConnect which need to be updated, I faced following issues after developing new application, 1) The new app should have same package name as old app, so I had to change code to use package name as com.wAgriConnect in new application source. 2) You can’t download the … Read more

How Android Bluetooth Profiles are enabled & Services activated ?

How Android Bluetooth profiles are enabled ? Ans: Check packages/apps/Bluetooth/res/values/config.xml <resources> 16 <bool name=”profile_supported_a2dp”>true</bool> 30</resources> If you want to disable the above profile, change from “true” to “false” Check related lxr The above flags are used during initialisation as below, in file, packages/apps/Bluetooth/src/com/android/bluetooth/btservice/Config.java Resource flag to indicate whether profile is supported or not. private static … Read more

Compiling Android application as part of AOSP source code

This post details about how you can integrate your Android application as part of Android OpenSource Build system to get it compiled using command line. Normally Android applications are developed using Android Studio and it generates build.gradle to configure and compile the application, but when you want to get this same application compiled as part … Read more