Little bits and pieces for Motorola Milestone and Android

FLAC support for Motorola Milestone

Updated libraries:
29 June 2010: fixed the flac duration reported by the mediascanner (fixes also the flac seeking in the bTunes player)

(media database needs to be rebuilt for this fix to have an effect on the flac files already present on your SD card: menu>Settings>Applications>Manage applications>menu>Filter>All>Media Storage>Clear data - custom ringtones will need to be reassigned afterwards)
26 June 2010: applied FLAC decoder lock contention fix by Glenn Maynard

Native support for the Free Lossless Audio Codec in Android system. FLAC files can be used also as ring tones.
FLAC files will play in the Music.apk and any other players that use the standard system services.

Fix for non-working Internet on Milestone (2.36.0/2.38.0)

UPDATE: Simple script for OpenRecovery added

Fix for seemingly intermittent Internet connectivity issues after upgrade to 2.36.0/2.38.0 system.

Add the following lines to /system/default.prop
net.dns1=8.8.8.8
net.dns2=8.8.4.4
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4

The values of these properties actually do not matter. The simple fact that the properties are initially defined at all seems to solve the issue. Anyway, I've chosen the google DNS services.

Background info:

nfs modules for Milestone

NFS modules for Milestone as requested.
Compiled from Motorola sources.
You need to insmod sunrpc.ko first, then lockd.ko, then nfs.ko.
Use busybox mount.

Example:
insmod /system/lib/modules/sunrpc.ko
insmod /system/lib/modules/lockd.ko
insmod /system/lib/modules/nfs.ko
busybox mount -t nfs -o nolock 192.168.1.17:/mnt/Spajz /sdcard/nfs

Root for X10 mini (pro)

This hack http://c-skills.blogspot.com/2010/07/android-trickery.html is almost universal.
I've compiled and tested a version for X10 mini.
Download: exploid_x10mini.zip
- download and extract the archive...

You will need ADB from Android SDK and USB drivers for X10 mini (part of Sony Ericsson PC Companion).

Interactive governor

This is an adaptation of the new CPUfreq interactive governor, backported as module for the 2.6.29 kernel (with Milestone specific defaults).

From governors.txt:
Advantages:
+ significantly more responsive to ramp cpu up when required (UI interaction)
+ more consistent ramping, existing governors do their cpu load sampling in a workqueue context, the 'interactive' governor does this in a timer context, which gives more consistent cpu load sampling.
+ higher priority for cpu frequency increase, rt_workqueue is used for scaling up, giving the remaining tasks the cpu performance benefit, unlike existing governors which schedule rampup work to occur after your performance starved tasks have completed.

New android hacker on the scene?

Nah... too soon to tell.

She might be more into a cracking of the dolphin communication system instead of digging up some extinct mobile OS...

Landscape orientation lock for Milestone

Update 17 July 2010: Simple application added

The phone can be locked to the landscape orientation by simulating the HW keyboard slide-out, while the keyboard can be actually slid-in.

Samba mount - cifs kernel module for Milestone

Compiled from Motorola kernel sources.

Allows to mount a samba (windows) share, so you can e.g. play avi movies over wi-fi directly from a remote shared folder using e.g. RockPlayer.

Unlike the samba support in the ES Explorer, no downloading to a temp file on the SD card takes place and there's no waiting for the download to finish before the playback begins. When using this kernel module, from the applications' point of view, there's no difference between the network files and the local files on the SD card.

Keyboard layout changer for OpenRecovery 1.14 / GOT 1.02

A simple modification for the OpenRecovery 1.14 and G.O.T.'s OpenRecovery 1.02 that allows to change the HW keyboard layout (QWERTY/QWERTZ/AZERTY) using a menu in the OpenRecovery GUI.
UPDATE: it's included in G.O.T.'s OpenRecovery since 1.03 version.

Milestone overclocking - patch: CPUfreq statistics fix for the overclock module

link: milestone-overclock

UPDATED on 27 August, 2010: the patch has been incorporated in the new 1.4 version of the milestone-overclock module by tiagosousa, therefore this modified version is no longer needed.

This patch fixes two issues of the original overclock module (v1.2):
1. broken CPUfreq statistics
2. freq_table_addr and mpu_opps_addr not set by echo to /proc/overclock/omap2_clk_init_cpufreq_table_addr (Issue 30)

Syndicate content