Page : 2/3

First Page     Prev. Page     Next Page     Last Page


Tuesday, 4 Oct 2011 (Only #Android)

So AndroidPolice is going pretty mental at the moment about /system/app/HtcLoggers.apk which was a service that appears to be used to generate bug reports and submit them to either HTC or the carriers.

Basically this service listens on the local loopback address and can be sent instructions and return a lot of information about the device. The problem is any application that has INTERNET permissions can talk to this service.

To check if you are vulnerable simply either install the apk listed in the article, or connect to the Android Debug Bridge (ADB) like so:
"C:\Program Files (x86)\Android\android-sdk\platform-tools\adb" shell

Then type "cd /system/app" and then "ls HtcLog*" (case is important). If you see HtcLoggers.apk then you are vulnerable.

Monday, 30 May 2011 (Only #Android)

If there is one thing that is missing from my Android devices that really bugs me is a decent Windows Live Messenger (formerly MSN Messenger) client.

Fear not Microsoft France press release to the rescue or translated if your French is a little rusty. Which links to the android market!

However the UK market is not set to get this yet (the official miyowa blog should help keep you up to date). The third party company that released this, miyowa, look set to release it to the rest of the world soon. The files have been leaked online elsewhere but I am not sure about giving my password to a program of dubious origin.

However turns out booting an emulated android with a system.img with marketplace and running the following commands:

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell
# su
su
# setprop gsm.sim.operator.numeric 20800
setprop gsm.sim.operator.numeric 20800

Gets you the program (well it to appear in the market place and let you download it!). Run wireshark to capture the download (it is chunked which makes retrieving it a little annoying) and save off the APK or run:

C:\Program Files (x86)\Android\android-sdk\platform-tools>adb pull /data/app/miyowa.android.microsoft.wlm-1.apk
105 KB/s (1527236 bytes in 14.158s)

Thanks to the list of GSM codes and this site.

If you feel like trusting me, I have provided the file here and I appear to have miyowa's unofficial blessing :
"we’ve only released the app in France so far (if you got it in another country it wasn’t us who made it available there). Saying that, we’re really happy for anyone to use the app!"
(Source: Miyowa Blog)

Update: There is a known server side error in which you may repeatedly receive "The application encounters an unexpected Error (code -8). [-8]", so your mileage may vary.
Update 2: I have now updated this to the latest version (2.0.16-1201). They also appear to have fixed the server issues long ago.
Update 3: This is now available on the normal market place but rebadged as "Messenger WithYou" (http://market.android.com/details?id=miyowa.android.microsoft.wlm )

Sunday, 17 Apr 2011 (Only #Android)

I was experiencing routine disconnects (after around 7 minutes) from the Internet on my computer while using Android 2.2's USB tethering on my HTC Wildfire until I turned off the setting in Winamp for Android marked :

"Enable auto-mount
Automatically set device to USB drive mode when connected via USB"

It would appear running programs on Android are able to cause tethering to disconnect.

Tuesday, 22 Feb 2011 (Only #Android)

1. EditText not re-drawing correctly when the on-screen keyboard is activated.

For a simple app such as:

Bug.java:
package com.matthew1471.bugtest;

import android.app.Activity;
import android.os.Bundle;

public class bug extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}


Main.xml:
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <EditText android:id="@+id/example" android:layout_width="200.0dip" android:layout_height="wrap_content"/>
    <EditText android:layout_width="200.0dip" android:layout_height="wrap_content"/>
    <EditText android:layout_width="200.0dip" android:layout_height="wrap_content"/>
    <EditText android:layout_width="200.0dip" android:layout_height="wrap_content"/>
    <EditText android:layout_width="200.0dip" android:layout_height="wrap_content"/>
    <EditText android:layout_width="200.0dip" android:layout_height="wrap_content"/>
    <EditText android:layout_width="200.0dip" android:layout_height="wrap_content" />
</LinearLayout>


Manifest.xml :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.matthew1471.bugtest"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="BugTest">
        <activity android:name=".bug"
                  android:label="BugTest">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
</manifest>

While this shows in the console:

[2011-02-22 01:25:02 - BugTest] WARNING: Application does not specify an API level requirement!
[2011-02-22 01:25:02 - BugTest] Device API version is 8 (Android 2.2.1)
[2011-02-22 01:25:02 - BugTest] Uploading BugTest.apk onto device 'HT<<REMOVED>>'
[2011-02-22 01:25:02 - BugTest] Installing BugTest.apk...

The 5th EditText and onwards when selected and text is entered do not redraw to include the text until the on screen keyboard is closed. For some reason specifying :

    <uses-sdk android:minSdkVersion="4"></uses-sdk>

Just before the <application.. tag fixes it. In my application I specified minSdkVersion 8, though anything 4 (Android 1.6, http://developer.android.com/guide/appendix/api-levels.html) and above fixes the redraw issue. By default the Android system defaults to 1 if not specified (http://developer.android.com/guide/topics/manifest/uses-sdk-element.html). There must have been something released in Android 1.6 that causes the screen to properly redraw when the on-screen keyboard is activated. The full API change list is documented on the developer site (http://developer.android.com/sdk/api_diff/4/changes.html)

2. SetText to an integer causes a misleading force close.

Adding
EditText text = ((EditText)(this.findViewById(R.id.example)));
text.setText(text.getHeight());
to the main part of the above program results in a non-descriptive force close.

02-22 01:48:02.107: WARN/dalvikvm(6248): threadid=1: thread exiting with uncaught exception (group=0x40028a00)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): FATAL EXCEPTION: main
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.matthew1471.bugtest/com.matthew1471.bugtest.bug}: android.content.res.Resources$NotFoundException: String resource ID #0x0
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2781)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2797)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.app.ActivityThread.access$2300(ActivityThread.java:135)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2132)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.os.Handler.dispatchMessage(Handler.java:99)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.os.Looper.loop(Looper.java:143)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.app.ActivityThread.main(ActivityThread.java:4914)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at java.lang.reflect.Method.invokeNative(Native Method)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at java.lang.reflect.Method.invoke(Method.java:521)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at dalvik.system.NativeStart.main(Native Method)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.content.res.Resources.getText(Resources.java:201)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.widget.TextView.setText(TextView.java:2828)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at com.matthew1471.bugtest.bug.onCreate(bug.java:15)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1065)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2745)
02-22 01:48:02.117: ERROR/AndroidRuntime(6248): ... 11 more
02-22 01:48:02.127: WARN/ActivityManager(102): Force finishing activity com.matthew1471.bugtest/.bug


Which would make you think it cannot find the example EditText in the layout. However changing the second line to :
text.setText("" + text.getHeight());
resolves all the issues. setText is not happy casting an int to a string because usually when an int is specified it corresponds to a program's string in the strings.xml file unless tricked into dealing with strings. There is also seemingly no .tostring() method on an int but there is one for Integer.toString();

The same force close exists with:
int five = 5;
text.setText(five);

Thursday, 23 Dec 2010 (Only #Android)

Froyo for HTC Wildfire Asia has now been released as of a few hours ago.

Taking me from 1.25.707.1 CL227575 release-keys to 2.24.707.1.

"Update: Android 2.2 update 59.56 MB

You can now download the latest software update for new features and improved performance. It won't delete any of your content and we'd recommend using a Wi-Fi connection as this is a large update. If not, standard data connection charges may apply. Any questions? Contact us via www.htc.com"

Your phone should auto update soon, to ask it to check earlier go to your home screen, tap menu, go to "Settings" select "About Phone" then "System software updates" then select "Check now".

Europe users (including the UK) would have already received this update a few days ago, however a lot of phones bought on-line may have the phone's software (firmware) from another region.

Manual download link (I believe this would need to be saved to the SD Card as update.zip) : http://fotadl.htc.com/OTA_Buzz_Froyo_hTC_Asia_WWE_2.24.707.1-1.25.707.1_release_161166pv4uxzm3rnr4swsl.zip

More information: http://www.htc.com/sea/support.aspx