FORUMS
Remove All Ads from XDA

[ROM] HTC Magic Vodafone Spain Official Froyo 2.2.1 update aim3 [2011-05-09]

40 posts
Thanks Meter: 11
 
By airadier, Member on 25th December 2010, 01:27 AM
Post Reply Email Thread
Updated 2011-05-09 (New version aim3)

So now that Vodafone Spain finally released a Froyo OTA upgrade for HTC Magic, I've built a cooked ROM from the official OTA upgrade. The ROM tries to ressemble the stock ROM, but including the following extras:

Version aim1:
  • /system/etc/install-recovery.sh is removed, so it won't overwrite your recovery on every boot, as the stock ROM does
  • This ROM is rooted. Superuser.apk is installed on system.
  • Included apns-conf.xml from Cyanogen, so APNs from all operators are available, not just from Vodafone.
  • Google applications updated to the latest release: Maps, StreetView, Gmail, Market and Youtube
  • Replaced keyboard with Gingerbread (Android 2.3) newer keyboard.
  • Removed the Vodafone Live application and shortcut

Version aim2:
  • Removed Gingerbread keyboard, better install as separate package if you want it (see link)
  • Updated Google Maps and Market to latest versions.
  • Include busybox, it's needed for some root applications
  • Deodexed (takes some time on first boot, saves space on /system)
  • Re-signed (needed to include STK)
  • Included STK (Sim-Toolkit) application ("Servicios SIM" in Spanish). Required for some virtual operatos to work in Roaming
  • Added Sound Recorder icon in Launcher (application was there, but only accessible from MMS when adding a sound)
  • Added support for scripts in /system/etc/init.d (useful for adding compcache, swap, etc).

Version aim3:
  • Removed the "assert shappire" line on installation script. Should allow installation on Dream/G1
  • Revert some re-signed packages to allow Google applications updated via Market
  • Load ipv6 module to have Google Goggles working
  • Replace stock kernel with a custom kernel for better performance and memory tweaks
  • Enable compcache (compressed in-RAM swap memory) on boot by default, to get some extra free MB on magic 32B, which makes the system much more usable (applications and launcher are not killed all the time). Tweaks can be customized using setprop (see later)
  • Overclock CPU on boot. Can be tweaked using setprop (see later)
  • Include support for Live Wallpapers

Please note that this ROM is only for HTC Magic 32B (not for 32A or Dream). You'll need to use the System-Only ROM and a different kernel and/or SPL for 32A or for HTC Dream.


This latest update (version aim3) includes:
About the SPL and Radio: This is a perfect SPL, so it won't allow you to flash unsigned images from fastboot. Please make sure you have a custom recovery image. The new 2.22.28 radio won't work with other older SPLs, but it's worth the additional RAM (15MB). Also, if you want to install another kernel, it must be compatible with this radio version.

Requeriments and pre-installation

You'll need a custom recovery that allows you to flash the update.zip file. Clockworkmod recovery or AmonRA should do the job.

Make sure you have a good battery level, and make a full backup before installing.

Disclaimer: I won't take any responsibility if this bricks or damages your device.

Upgrading

Due to resigning, you can't update from previous version. A full wipe is required, sorry. However, if you backup your data and apps with Titanium Backup, and then restore them, it should work if coming from a previous version of this ROM, or if coming from the stock versions. There are no guarantees if coming from other non-official ROMs

Installation (Two-step)

This is the way the official OTA is done. First, the HBOOT (SPL) is updated to 1.33.0013. Then, the system, kernel and radio are updated. If you want to make the installation this way:

1. SPL Update. First download http://dl.dropbox.com/u/3658919/andr...hboot_0013.zip (Mirror: http://content.wuala.com/contents/ai..._0013.zip?dl=1) and apply update from recovery (copy to the SD Card, then choose Apply .zip from SDCard, and choose the zip file). It will reboot a few times during the upgrade. Finally it should boot the system with the previous version, but the SPL will be upgraded.
2. System+Radio+Kernel update. Download http://dl.dropbox.com/u/3658919/andr..._nohboot_s.zip (Mirror: http://content.wuala.com/contents/ai...oot_s.zip?dl=1) and from recovery wipe Data and Cache. Apply update from recovery, the same way. It should reboot a few times and finally boot the system, updated to Froyo.

Installation (System-only installation)

If you already have SPL 1.33.0013 or 1.33.0013d, and radio 2.22.27.08 or 2.22.28.25, and want to install only the system files, then download http://dl.dropbox.com/u/3658919/andr..._nohboot_s.zip (Mirror: http://content.wuala.com/contents/ai...oot_s.zip?dl=1), and apply update from Recovery.

If you have an 32A, you should be able to use the System-only installation, and when finished, flash an appropiate kernel (the included kernel is for Magic 32B).

Tweak configuration

Latest version includes some performance tweaks which are applied on boot. There's no GUI for changing these settings, but they can be easily changed using a command line (for example adb shell).

First, get a root shell (adb shell, then su). Then you can use the command:

Quote:

getprop propertyname

to get the current value of a setting, and the command:

Quote:

setprop propertyname newvalue

to set a new value. The available setting parameters (Replace propertyname are:
  • persist.tweaks.ramzenabled: Enabled (if 1) or disabled (if 0) the compressed RAM swap. If not set, it defaults to 1 (enabled).
  • persist.tweaks.ramzsize: The size of the compressed in RAM swap memory, in KB. If not set, it defaults to 32768 (32MB). Don't try anything higher than the amount of memory in your system. I wouldn't recommend more than 65536 (64M).
  • persist.tweaks.swappiness: The swappiness parameter. A avlue between 0 and 100, defaults to 10. Tells the system how agressively try to move memory pages to the swap. I keep it to a low value, so pages are not swapped until more free RAM is needed.
  • persist.tweaks.cpuminfreq: The minimum CPU frequency. If not set, it defaults to 245760 (245Mhz). See the list of available frequencies with command:
    Quote:

    cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies

  • persist.tweaks.cpumaxfreq: The maximumCPU frequency. If not set, it defaults to 595200 (595Mhz). That's a bit overclocking, but I find it perfectly stable. With higher frequencies (614Mhz) I get random reboots.
  • persist.tweaks.cpugovernor: The CPU frequency governor. Defaults to interactive, but you can try ondemand too.

Any change will require rebooting the system. If you get stuck with a change (phone can't boot), try using adb shell from recovery, mount /data partition, and remove the offending setting file from /data/property/persist.tweaks.xxxx

Add-ons

Versions and updates
  • aim1 - 2010/12/25 (Christmas gift) - Initial release
  • 2010/12/27 - Added "Revert to Froyo keyboard" add-on
  • 2010/12/27 - Added mirrors for files
  • 2011/01/09 - Removed one-step install, seems it's not working
  • aim2 - 2011/05/01 - New version
  • aim3 - 2011/05/09 - New version
The Following 4 Users Say Thank You to airadier For This Useful Post: [ View ] Gift airadier Ad-Free
 
 
26th December 2010, 01:16 AM |#2  
aca85's Avatar
Senior Member
Thanks Meter: 51
 
More
Hmm,sounds good,how about some screenshots?
But i'm a bit skeptical about the SPL and Radio flash-ing,cuz i almost once bricked my phone
26th December 2010, 11:03 AM |#3  
Junior Member
Flag Atlanta
Thanks Meter: 0
 
More
Exclamation Bad First Try
Quote:
Originally Posted by airadier

Installation (Two-step version)

This is the way the official OTA is done. First, the HBOOT (SPL) is updated to 1.33.0013. Then, the system, kernel and radio are updated. If you want to make the installation this way:

So after many attempts of trying to get my phone back to "factory" for OTA updates, I gave up very very late in the night and decided I'd just try this new ROM. I know I'm crazy since no one else has written of their attempts to try it - meaning I'm probably the first - and I'm a little worried at what I'm seeing. I followed your instructions for the 2-step version using Clockworkmod recovery and my right now my phone is stuck in the black loading screen that says "ANDROID". Its been on this screen for over half an hour. I'm pretty sure it shouldn't take that long so I thought I'd go ahead and ask for tips now so I can work in it tomorrow. My T-Mobile myTouch 3G original (HTC Magic 32 B) phone was on CM6 (Froyo 2.2) before I revered it to factory 1.6 because of frustrations with Cyanogen's slow mod. T-Mobile's OTA updates weren't working because of recovery image issues so I figured I'd give you version a go. Yes, I realize this is the Vodafone version. Hablo espaƱol.

So should I try to reset my phone? Take the battery out? Am I bricked?
26th December 2010, 03:12 PM |#4  
OP Member
Flag Zaragoza
Thanks Meter: 11
 
More
I don't think it's bricked, it just seems to be failing to boot the system. A logcat (adb logcat command) would help to diagnose the problem.

You should be able to boot to recovery. Did you wipe data and cache partitions?

Did the previous version boot after flashing first step? You can check the SPL on this step was correctly flashed by entering fastboot (vol down + power) and checking if Hboot version is 1.33.0013

I've tried the 2 step version successfuly in 2 htc magic by now.

Let me know about any progress.

Greets.

Sent from my HTC Magic using XDA App
The Following User Says Thank You to airadier For This Useful Post: [ View ] Gift airadier Ad-Free
26th December 2010, 03:19 PM |#5  
Member
Flag Barcelona
Thanks Meter: 1
 
More
I can't download any chance. Can you post them in another way?
26th December 2010, 03:58 PM |#6  
jvmonjo's Avatar
Junior Member
Valencia
Thanks Meter: 0
 
More
I can't download from phone neither.

Sent from my HTC Magic using XDA App
26th December 2010, 04:55 PM |#7  
jvmonjo's Avatar
Junior Member
Valencia
Thanks Meter: 0
 
More
I finally download it from computer, but I can't flash it. I've got this error:
Code:
E:Failure at line 6: assert getprop("ro.product.device") == "sapphire" || getprop("ro.build.product") == "saphire"
26th December 2010, 06:47 PM |#8  
Junior Member
Flag Atlanta
Thanks Meter: 0
 
More
Thumbs up It works!
It works! Here's how...

It had been 6 hours and it was still stuck on the loading screen, so I pulled the battery.

I wipped my data and cache partitions again using the bootloading, although I'm pretty sure I had already done this. I must have needed to do it again.

The logcat seemed to have tons of errors, more than I could list here. A small copy-paste:

W/PackageManager(30347): Permission com.noshufou.android.su.RESPOND from package com.noshufou.android.su ignored: no gro
up null
I/PackageManager(30347): /system/app/TelephonyProvider.apk changed; collecting certs
D/dalvikvm(30347): GC_FOR_MALLOC freed 5701 objects / 392080 bytes in 124ms
W/PackageManager(30347): Signature mismatch for shared user : SharedUserSetting{435ad3a8 android.uid.phone/1001}
E/PackageManager(30347): Package com.android.providers.telephony has no signatures that match those in shared user andro
id.uid.phone; ignoring!
I/PackageManager(30347): /system/app/UserDictionaryProvider.apk changed; collecting certs
W/PackageManager(30347): Signature mismatch for shared user : SharedUserSetting{435f7a48 android.uid.shared/10010}
E/PackageManager(30347): Package com.android.providers.userdictionary has no signatures that match those in shared user
android.uid.shared; ignoring!
W/PackageManager(30347): Permission com.android.vending.CHECK_LICENSE from package com.android.vending ignored: no group
null
W/PackageManager(30347): Permission com.android.vending.BILLING from package com.android.vending ignored: no group null
I/PackageManager(30347): /system/app/VpnServices.apk changed; collecting certs
W/PackageManager(30347): Signature mismatch for shared user : SharedUserSetting{435ad158 android.uid.system/1000}
E/PackageManager(30347): Package com.android.server.vpn has no signatures that match those in shared user android.uid.sy
stem; ignoring!


Anyway, after restarting twice the phone loaded! Froyo who-hoo! And I love the Gingerbread keyboard addition! This ROM is elegant - almost official OTA with just a touch of fixes. Cyangen's ROMs are over the top for me.

The only thing we've noticed after 30 minutes of testing is that it suggests Gmail be installed in the market, even though its already installed. Obviously this is because we have the newer version of gmail. But does this mean we will no longer get updates for Google applications? This concerns me - I don't want to have to rehack my phone every month - especially since I'm giving this to my brother.

Thanks for the great work and cool simple ROM.
26th December 2010, 11:38 PM |#9  
OP Member
Flag Zaragoza
Thanks Meter: 11
 
More
Quote:
Originally Posted by waffleguy4

It works! Here's how...

I wipped my data and cache partitions again using the bootloading, although I'm pretty sure I had already done this. I must have needed to do it again.


The logcat seemed to have tons of errors, more than I could list here. A small copy-paste:

Strange. I'm quite sure a Data + Cache wipe is needed except if you're coming from stock 1.6. The errors in the logcat seem to confirm this.

Quote:
Originally Posted by waffleguy4

It works! Here's how...

The only thing we've noticed after 30 minutes of testing is that it suggests Gmail be installed in the market, even though its already installed. Obviously this is because we have the newer version of gmail. But does this mean we will no longer get updates for Google applications? This concerns me - I don't want to have to rehack my phone every month - especially since I'm giving this to my brother.

I think you should get the updates anyways. The only difference is, instead of having Maps 4.6 in SYSTEM partition, you have 5.0. The day Maps 5.x is out, it should show an update is available. I think showing it in the market as "Installed" is the normal behavior since the google apps were extracted in Froyo, or Eclair, I can't remember

I might be adding some optional packages (as updates.zip) soon. For example, I'm thinking of adding a patched version of Google Maps to force using Vector and 3D graphics instead of bitmap tiles. Also, maybe an update to revert to the standard Froyo keyboard.

I hope you enjoy it.
26th December 2010, 11:59 PM |#10  
OP Member
Flag Zaragoza
Thanks Meter: 11
 
More
Quote:
Originally Posted by jvmonjo

I finally download it from computer, but I can't flash it. I've got this error:

Code:
E:Failure at line 6: assert getprop("ro.product.device") == "sapphire" || getprop("ro.build.product") == "saphire"

The update script is checking that the installed ROM device or product is "sapphire", and it's failing. Maybe the ROM you're using right now uses another device identifier?

I could remove the check, but it was included in the original updater, and I think it's safer this way. You could try flashing cyanogenmod or the stock vodafone 1.6 first, then updating.

Greets.
27th December 2010, 01:50 AM |#11  
OP Member
Flag Zaragoza
Thanks Meter: 11
 
More
Quote:
Originally Posted by maverickcri

I can't download any chance. Can you post them in another way?

I've added a mirror for all files.

Greets.
Post Reply Subscribe to Thread

Tags
magic, rom, sapphire, vodafone

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes