Execute Android Java code as a root user

You can find a lot of ways on StackOverflow about executing shell commands as root in Android. Which goes as follows : Process process = Runtime.getRuntime().exec(“su”); os = new DataOutputStream(process.getOutputStream()); os.writeBytes(commandToExecute + “\n”); os.writeBytes(“exit\n”); os.flush(); process.waitFor(); What if you want to execute some Java code which uses Android APIs as a root user ? This…

Dig into this

GSoC 2015 – The Processing Foundation

GSoC 2015 has come to an end. I was lucky to have such an intelligent mentor, Andres Colubri. I worked on maintaining the Android mode of Processing. My GSoC project was around the following main goals : Update the Android Mode to work with the updated processing base code. Move PApplet from Activity to Fragment so…

Dig into this

Using variadic templates in C++

I’ve lately been working on C++ and my main task was to improve the design of the code and make it as generic as possible, removing the redundant code and so. To achieve this aim Templates and void pointers helped me a lot. In the following post I’m going to explain about variadic templates in…

Dig into this

How to install an app to /system partition ?

Note : This article is for you if you’re making an app for rooted android devices. The normal behavior being that the android’s package manager installs the apk file to /data partition. But for accessing hidden APIs and having extra privileges one may want the app to be installed in /system partition. For pre-kitkat devices the…

Dig into this

My work at Cube26

Cube26 has it’s innovations in the areas of Image Processing, Machine Vision, Machine Learning. They basically focus on gesture and image based controlling of the device. At this time Cube26 has partnerships with 6 Indian phone manufacturers including Micromax, Intex and Spice. I’m in the Android development team of Cube26. At the time of writing this…

Dig into this

My “Expected” GSoC Project Proposal to phpMyAdmin

Project :- Interface improvements Umair Khan Email :  omerjerk@gmail.com Location : Delhi, India (GMT +5:30) Education : 2nd year Undergraduate Student, Delhi Technological University, Delhi, India IRC nick : omerjerk Github fork : https://github.com/omerjerk/phpmyadmin/ Blog : omerjerk.in Synopsis :- phpMyAdmin is around 15 years old now. Since then a lot of features have been added to it. And…

Dig into this