Sunday, January 13, 2013

HTC Sensation 4G - TMobile stuck on ICS

HTC and T-Mobile pretty much gave the finger to HTC Sensation 4G users. No Jelly Bean update. While it is infuriating to browse the countless Google Search results of garbage results, i.e.: how "monkey-balls" and "super-duper" solve your problems, I really just wanted simple, step by step guide on how to upgrade once and forget it.

Apps like Gmail should be run the way Google intended it to. HTC is better off devoting their resources to making some killer apps and monetizing on those efforts rather than making bunch of f* "glossy widgets".

Best, no-nonsense guide on how to effectively put Jelly Bean 4.2 (ok, OpenSensation is at 4.1.2, still far better than HTC stock image) on your phone:

Basic run down of steps:
  • Pay attention in guides to your phone's firmware version. The guide and links below mostly mention on how to do this without replacing the existing firmware.
  • Backup your phone. The adb command offers backup options as cli argument.
If you are reading this and thinking I need to spend $5 on Android backup software, just stop here and have your tech savvy friends take care of this "upgrade").
  • Unlock your HTC Bootloader from HTC Dev
  • Install 4EXT Recovery Image (see the 1st link, its basically a "high level, boot loader/rescue CD"  for your desktop computer)
  • Download the custom image you want (link 1 from supporting links) and place it as zip on your sdcard.
  • Reboot into recovery (see guide 1st link) and navigate within the 4EXT to install from zip. (Make sure here you wipe any "cached" settings and format the system partitions. Getting this right means the difference between a stable phone and bunch of random resets and lockups.
  • Get the gapps (3rd supporting link) for your image/version.
Optional next steps:

Fed up with T-Mobile horrible service (your service is probably OK if you live in a dense, urban area)? Changing providers?
  1. Get your phone IMEI # (behind battery)
  2. Call them up while you have service, request your phone be unlocked. Classic excuse would be "traveling internationally".
  3. Cancel service when you are ready. Verify that new sim works with your existing phone.
My cancelation fee per line is in ~$100-$150 (~half-off), so in most cases the earlier you cancel and start with some conservative plan, you will save money. ( $monthBill * 24 months > paying $100 a year of services like H20, Virgin Mobile or even (yes!) TMobile prepaid).

Update: Feb 27 2013

Jumping off carriers did not work for me as planned. The TMobile and HTC partnership goes through great lengths to lock you down to a network. Firmware on the phone is designed with that partnership in mind. It does some work to ensure that business is as usual. Best choices, I think, at this point are to get the $30 - unlimited data/text, 100 mins from TMobile. Its "month-to-month" still far better than my current bill of $130. Other "virtual operators" leasing TMobile service are probably good choices too.

Update: March 27 2013
Only issues so far is location. There were instances where enabling location without a phone reboot "dead locked" to the phone. Instant hangups and long pauses. The only "workaround" for this was to enable location and reboot the phone right away. Otherwise, there have been occasional lock ups but nothing major. Phone has been operating well for weeks.

Update: Jul 15 2013
Cancelled T-Mobile - after prepaid having essentially no "internet" data available this plan was ridiculous - for a smartphone. But TMobile knows this very well, that's why these plans are designed this way.
What am I using now? (with a new affordable phone from Ting.com)
Ting.com. ~$25/month - pay for what you use at very reasonable rates. 12 * $25 = $300 < 12 * $120 = $1440.

Update: Nov 6 2013
Looks like LycaMobile might get your GSM phone down to $16-20 monthly cost range. $8 for the sim/shipping. Know only 1 person that uses this, not sure what the service quality is.


Read carefully:
http://forum.xda-developers.com/showthread.php?t=1631861

Supporting links:
http://tips4droid.com/top-5-custom-rom-for-t-mobile-htc-sensation-4g/
http://forum.xda-developers.com/showthread.php?t=1494373
http://goo.im/gapps
http://forum.xda-developers.com/showthread.php?t=1494373
http://files.tamcore.eu/android/?dir=pyramid

Good luck,

Saturday, October 13, 2012

Choppy audio in Ubuntu 12.04

This problem seems to affect ALC XXXX chips, it has to do with some wrong settings for pulse-audio.  Try this to move forward:

Edit /etc/modprobe.d/alsa-base.conf:
And append this:
options snd-hda-intel model=generic

or try this one-liner:
echo "options snd-hda-intel model=generic" >> /etc/modprobe.d/alsa-base.conf

How do you know if you have this card?

bgs@dev1:~/Desktop$ dmesg | grep intel
[    1.103778] intel_idle: MWAIT substates: 0x1120
[    1.103793] intel_idle: v0.4 model 0x1E
[    1.103794] intel_idle: lapic_timer_reliable_states 0x2
[   20.411326] snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[   20.411378] snd_hda_intel 0000:00:1b.0: irq 50 for MSI/MSI-X
[   20.411403] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
[   20.465477] snd_hda_intel 0000:01:00.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[   20.465480] hda_intel: Disabling MSI
[   20.465508] snd_hda_intel 0000:01:00.1: setting latency timer to 64
bgs@dev1:~/Desktop$ lsmod | grep intel
snd_hda_intel          32765  6 
snd_hda_codec         109562  2 snd_hda_codec_hdmi,snd_hda_intel
snd_pcm                80845  5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd                    62064  24 snd_usb_audio,snd_usbmidi_lib,snd_hda_codec_hdmi,snd_rawmidi,snd_seq,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer,snd_seq_device
snd_page_alloc         14108  2 snd_hda_intel,snd_pcm
bgs@dev1:~/Desktop$ 



Friday, May 18, 2012

Logitech Revue PS3 media server config

Can't quite get the integration between Google TV and PS3 Media Server?

Here is a renderer file that worked for me:

$ cat ps3mediaServer/renderers/LogitechRevue.conf

RendererName=Revue
RendererIcon=android.png
UserAgentSearch=MediaPlayer
Video=true
Audio=true
Image=true
SeekByTime=false
TranscodeVideo=MPEGAC3
TranscodeAudio=LPCM
TranscodeFastStart=false
DefaultVBVBufSize=true
MuxH264ToMpegTS=true
MuxDTSToMpeg=false
WrapDTSIntoPCM=false
MuxLPCMToMpeg=false
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
H264Level41Limited=true
MimeTypesChanges=audio/wav=audio/L16
TranscodeExtensions=dts
StreamExtensions=mkv,m4v,mov,flv,mts,mt2s,ts,avi,mp42,mp3,mp4,m4a,wma,flac
mediainfo=true

Saturday, April 28, 2012

facebook-android-sdk\facebook\build.xml:46: sdk.dir is missing


Why:
Missing local.properties in the facebook library project folder. (need to provide the sdk.dir env variable, this solution describes how to make the local.properties)

Dependencies:
Path to tools batch files:
C:\<path_to_location_of_your_android_sdk>\android-sdks\tools

Fix:
Open CMD to the directory of downloaded facebook library:
(Windows) $ android.bat update lib-project -p .
(Linux) $ android update lib-project -p .

This will generate local.properties to keep you going.

local.properties:
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.

# location of the SDK. This is only used by Ant
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=C:\\
<path_to_location_of_your_android_sdk>\\android-sdks

You can also write this file to that project directory and be done.