Are you over 18 and want to see adult content?
More Annotations

Fili- SEO expert, ex-Google engineer & speaker
Are you over 18 and want to see adult content?

Grupo Vips- Conoce Nuestras Marcas y Valores
Are you over 18 and want to see adult content?

Moja Gear • Your hub for all things rock climbing.
Are you over 18 and want to see adult content?

Club Fitness - 20+ Gyms Bringing Fitness to Every BODY in St. Louis
Are you over 18 and want to see adult content?

Water Heaters - Boilers - Pool Heaters - Lochinvar - Lochinvar
Are you over 18 and want to see adult content?

Radio Streaming Services - Sharpstream
Are you over 18 and want to see adult content?
Favourite Annotations

Vibbo – Alt om der du bor - En tjeneste fra OBOS
Are you over 18 and want to see adult content?

Thick Vinyl Backdrops 100- No Wrinkle Photography Backdrops Rolled – Foxbackdrop
Are you over 18 and want to see adult content?

A complete backup of https://advaita.org.uk
Are you over 18 and want to see adult content?

Protein for all. In plants we trust. - No Evil Foods
Are you over 18 and want to see adult content?

Artistas y arte. Artistas de la tierra
Are you over 18 and want to see adult content?

AboutLawsuits.com - Recalls, Class Action and Personal Injury News
Are you over 18 and want to see adult content?

SLA & Uptime calculator- How much downtime corresponds to 99.9 - uptime
Are you over 18 and want to see adult content?
Text
* Home
* Work
* Projects
* About Me
A WORK BLOG AROUND ANDROIDBY UMAIR
Getting the instance of a system service without an applicationcontext in Android
GETTING THE INSTANCE OF A SYSTEM SERVICE WITHOUT AN APPLICATIONCONTEXT IN ANDROID
__ JULY 29, 2017
__
OMERJERK __COMMENTS 0COMMENT
I have been working on a project where I am supposed to execute some Java code, which uses Android APIs, outside the application environment. This means I don’t have access to any Android component i.e. Activity, Service, Broadcast Receiver etc. I was supposed to get the display’s width and height. Hence arose the need for hacking a way to achieve what is mentioned in the title, i.e. getting the instance of a system service without having an application context.Normally, you…
Read More Read More
Create touch events programmatically in Android CREATE TOUCH EVENTS PROGRAMMATICALLY IN ANDROID__ NOVEMBER 7, 2016
__
OMERJERK __COMMENTS 0COMMENT
Creating a touch event in Android is pretty easy. Although, is the easy way the best? Let’s find out! The simplest way is to use the “input” binary which you can use to create touch events all over the screen (via the shell user). The command to create a simple tap event is as simple as – adb shell input tap x y. However, there’s a latency of more than 1 second while executing this command. If we’re making some…Read More Read More
Take screenshot programmatically without root in Android TAKE SCREENSHOT PROGRAMMATICALLY WITHOUT ROOT IN ANDROID__ MARCH 3, 2016
__
OMERJERK __COMMENTS 0COMMENT
Here’s another post related to Android hacking. One can find a lot of ways over the internet which will tell you how take the screenshot of your own app, and that’s like pretty easy too. That’s also allowed by the Android framework. Note that here I’m not talking about the screenshots you take (as a user) by pressing Power + Volume down keys (that screenshot is taken by the SystemUI which has extra privileges). Let’s talk about the case if…Read More Read More
Execute Java code as a root user in Android EXECUTE JAVA CODE AS A ROOT USER IN ANDROID__ OCTOBER 16, 2015
__
OMERJERK __COMMENTS 0COMMENT
You can find a lot of ways on StackOverflow about executing shell commands as root in Android, and it 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();1
2
3
4
5
6
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 is not as straightforward as executing a shell command with root. The idea is to compile the Java class with a static main method just like a normal apk is compiled. First of all, we needto…
Read More Read More
GSoC 2015 – The Processing Foundation GSOC 2015 – THE PROCESSING FOUNDATION__ AUGUST 15, 2015
__
OMERJERK __COMMENTS 0COMMENT
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 that it can be embedded inside other apps. Create a video library for the Android Mode of Processing. Let’s start with the first sub task….Read More Read More
Using variadic templates in C++ USING VARIADIC TEMPLATES IN C++__ JANUARY 3, 2015
__
OMERJERK __COMMENTS 0COMMENT
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 C++. Let’s me first give a brief intro about what templates actually are before moving on to variadic templates. Quoting from Wikipedia “Templates are a…Read More Read More
How to install an app to /system partition ? HOW TO INSTALL AN APP TO /SYSTEM PARTITION ?__ AUGUST 18, 2014
__
OMERJERK __COMMENTS 0COMMENT
Note : This article is for you if you’re making an app for rooted android devices. The normal behaviour 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 extra privileges folder is /system/app whereas for kitkat and post-kitkat devices the extra privileges folder is /system/priv-app. The trick to install your app to /system…Read More Read More
Getting video stream from Android’s display GETTING VIDEO STREAM FROM ANDROID’S DISPLAY__ JULY 15, 2014
__
OMERJERK __COMMENTS 6COMMENTS
This is something that has been tried to be achieved in various ways. What other people usually do is to take screenshots at regular intervals and stitch them together to make a video out of it. What I’m doing here is pretty different an much better than that approach. And so I also present a way to capture video frames from Android’s default display and do further processing as one pleases. I’ll broadly use two main APIs viz. MediaCodec (added in…Read More Read More
Make HTTP requests from SIM300 GSM module MAKE HTTP REQUESTS FROM SIM300 GSM MODULE__ APRIL 11, 2014
__
OMERJERK __COMMENTS 4COMMENTS
SIM300 is a GSM module by Simcom. And believe me it’s no less than a piece of shit. I was unlucky enough to have my hands on it. I spent 3-4 days figuring out and testing the correct sequence of AT commands that must be used to make HTTP request via this module. In the following post I’m going to explain how to use it with the Arduino to send and receive data to a web server over HTTP. Let’s start…Read More Read More
My work at Cube26
MY WORK AT CUBE26
__ APRIL 5, 2014
__
OMERJERK __COMMENTS 0COMMENT
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 blog I’m working on the release of Micromax A290. We currently don’t have access to the whole source but some parts of the OS. Below…Read More Read More
POSTS NAVIGATION
OLDER POST__
Search for: Search
RECENT POSTS
* Getting the instance of a system service without an applicationcontext in Android
* Create touch events programmatically in Android * Take screenshot programmatically without root in Android * Execute Java code as a root user in Android * GSoC 2015 – The Processing FoundationRECENT COMMENTS
* Doraslito on Projects * omerjerk on Getting video stream fromAndroid’s display
* Anirudha on Getting video stream from Android’s display * omerjerk on Make HTTP requests from SIM300 GSMmodule
* saratkrishna on Make HTTP requests from SIM300 GSM moduleARCHIVES
* July 2017
* November 2016
* March 2016
* October 2015
* August 2015
* January 2015
* August 2014
* July 2014
* April 2014
* February 2014
CATEGORIES
* Android
* Arduino
* C++
* Cube26
* GSOC
* Uncategorized
2020 | Proudly Powered by WordPress | Theme: Nisarg by Falguni Desai .Details
Copyright © 2023 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0