Browsed by
Tag: android

Random notes on building Android

Random notes on building Android

This is mostly a note to myself. The easy way to build a profilable image for Android (e.g. Gingerbread). I am applying the patch from the bottom to build with framepointers. I am build an unstripped image, I use the environment script and then launch the emulator. With the default engineering mode opcontrol and oprofiled will be installed only the events will be missing from the image. $ make TARGET_STRIP_MODULE=false$ . ./build/envsetup.sh$ help$ setpaths$ ./out/host/linux-x86/bin/emulator diff –git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mkindex ae1997c..66e55fd…

Read More Read More

HTC Desire/Android GSM Protocol Issue

HTC Desire/Android GSM Protocol Issue

I was playing with ASN1 and Supplementary Services over the Weekend. My goal was to provide extended user information during a call setup. So the first step was searching for information of how it could look like, this involved going through the GSM Spec, the 2nd part was wrestling with asn1c to generate some dummy data (as I couldn’t find a trace doing that), the 3rd part was being able to generate that from OpenBSC and send it to the…

Read More Read More

Adding a route with android’s route

Adding a route with android’s route

Today I needed to add a route on the android shell but was greated with “Invalid Argument” failures, there is no “-h”, no man page. So we will have to use the sourcecode. First of all the code is in /system/core/toolbox/route.c and it supports three types of argument.. route add default dev DEVICE route add default gw IP dev DEVICE route add -net IP netmask NETMASK gw IP

Android mediaserver segfault

Android mediaserver segfault

Hmm… we just want to stream some video… giving android a MPEG TS stream does not work, giving it a HTTP Pantos, does not work, giving it a ms3u playlist segfaults the mediaserver. fun

Android and Java

Android and Java

I am now playing with the Android UI/Java Code and right now I have something really really simple to do. Over time I have a bunch of URIs to GET or POST and after it is done I want to have the status and the data. On top of that it should not block the UI thread. Android is using the HttpComponents of the apache project. The good thing about it is that Google was not reinventing the wheel, the…

Read More Read More