Sunday, September 9, 2012

So what's going on?

I'll let this speak for itself. Those thinking I'm dead, think again. Dragons are coming... That is all.

Monday, August 13, 2012


Sorry guys, I'll try to sort this shortly. Today was my first day at my new job so, you can imagine that it's not the best timing for this kind of issue.


Monday, July 23, 2012

Lack of contact...

I feel as though I must apologize for the lack of communication recently, as I'm sure you have heard, life has gotten in the way of hobbies. I had sever major vehicle malfunctions all almost simultaneously to the tune of some 3000 bucks or more (transmissions are bastards btw). Additionally I have been talking to a rather major company about a new job so I might be making a change here soon professionally, which should be for the better, but it's consuming a bit of my off time as I have to bone up on the product a bit.

Progress on the hobby projects still goes, just quite a bit more slowly and leaving not much time for the social aspects of it I'm afraid. Those of you with kids full time jobs and spouses I'm sure can relate. I have 4 kids so you can do the math time wise. Anyhow, things are moving, I'm paying close attention to Jelly Bean developments, and still in contact with many great developers, including mazdarider23 who's working on the cm10 port, among other projects. So sit back relax, don't fret, good things are coming.


Thursday, July 5, 2012

Ubuntu 12.04 LTS - Java 6

So a conversation with smelkus sparked my interest in discovering just what is the best and most proper method. So without further adeu:

chmod +x jdk-6u33-linux-x64.bin
sudo chown root. -R jdk1.6.0_33/ 
sudo mkdir /usr/lib/jvm
sudo mv jdk1.6.0_33/ /usr/lib/jvm/

sudo update-alternatives --install "/usr/bin/java" "java" \
"/usr/lib/jvm/jdk1.6.0_33/bin/java" 1

sudo update-alternatives --install "/usr/bin/javac" "javac" \
"/usr/lib/jvm/jdk1.6.0_33/bin/javac" 1

sudo update-alternatives --install "/usr/bin/javaws" "javaws" \
"/usr/lib/jvm/jdk1.6.0_33/bin/javaws" 1

sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws

This should be adjusted to the i586 if you're on 32bit.

You can download the bin here. I'm thinking of wrapping that up into a self downloading script that allows you to swap them on the fly, which would be nice for many things not the least of which is android development. It's not that many of us are still doing froyo building, but hey you never know. It'll also determine the arch automatically, clean out the old stuff etc ala slackware slackbuild style, which I'll post a little later.

Thursday, June 28, 2012

Batch snippet to check ip address.

Little bit of code to grab the current ip address. Made so that I can adjust the proxy settigns based on network location. Sure there are better ways to do this, but my deployment options are limited be corporate.

@echo off
for /f "usebackq tokens=2 delims=:" %%f in (`ipconfig ^| findstr /c:"IP Address"`) do (
    echo %IP% |find "10.45." > nul
    if errorlevel 1 goto :external

    REG add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /d "<local>" /f
    REG add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d /f
    REG add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f

    REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /d "<local>" /f
    REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d /f
    REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f

    REG export "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" c:\oldconfig.reg

    goto :eof


REG add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /f
REG add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f
REG add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyOverride /f
REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /f
REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f

Meh... That export in the end is where I started to deal with my hacking of the binary, that part is a work in progress. This fix doesn't do anything for firefox users, however, so I have to write something else to fix that as well.

Info regarding HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettings

Stuff that I've learned so far about the connection settings binary, I'm placing it here in for my reference later so I don't forget.

1) Byte number zero always has a 3C or 46 - I couldn't find more information about this byte.The next three bytes are zeros.

2) Byte number 4 is a counter used by the 'Internet Options' property sheet (Internet explorer->Tools->Internet Options...).
As you manually change the internet setting (such as LAN settings in the Connections tab), this counter increments.Its not very useful byte.But it MUST have a value.I keep it zero always.The next three bytes are zeros (Bytes 5 to 7).
3) Byte number 8 can take different values as per your settings.
The value is :
09 when only 'Automatically detect settings' is enabled
03 when only 'Use a proxy server for your LAN' is enabled
0B when both are enabled
05 when only 'Use automatic configuration script' is enabled
0D when 'Automatically detect settings' and 'Use automatic configuration script' are enabled
07 when 'Use a proxy server for your LAN' and 'Use automatic configuration script' are enabled
0F when all the three are enabled.
01 when none of them are enabled.
The next three bytes are zeros (Bytes 9 to B).
4) Byte number C (12 in decimal) contains the length of the proxy server address.For example a proxy server '' has length 12 (length includes the dots and the colon).The next three bytes are zeros (Bytes D to F).

5) Byte 10 (or 16 in decimal) contains the proxy server address - like '' (where 80 is obviously the port number)

6) the byte immediatley after the address contians the length of additional information.The next three bytes are zeros. For example if the 'Bypass proxy server for local addresses' is ticked, then this byte is 07,the next three bytes are zeros and then comes a string i.e. '<local>' (<local> indicates that you are bypassing the proxy server.Now since <local> has 7 characters, the length is 07!).
You will have to experiment on your own for finding more about this.
If you dont have any additional info then the length is 0 and no information is added.

7) The byte immediately after the additional info, is the length of the automatic configuration script address (If you dont have a script address then you dont need to add anything,skip this step and goto step 8).The next three bytes are zeros,then comes the address.

8) Finally, 32 zeros are appended.(I dont know why! Presumably to fill the binary blob, perhaps it is expected to be a certain length by something, don't you wish windows had some source?)

It's been quiet.

Yep I know haven't heard much from me lately. My work ( the stuff I do for a living ) changed buildings last Friday about a mile from where we were previously. Sooo it's pruddy much chaos, I'm typing to you now from a workstation covered in boxs and what not. Our network stuff is dodgy at best, lot's of things not working, so I have been tied up in that, along with our dodgy avaya phone system that is giving me greif.

I actually had to write a batch script yesterday to make internet on the new system work for our laptop users because the visual basic stuff the corporate IT department has ( which is a questionable hack at best ) doesn't work correctly. If you aren't familiar let me tell you, findstr is no substitute for sed and hacking windows registry binary entries with a batch file? Yeah... Fun stuff.

There still enough blocked at the upper corporate level that are tools that our HR department use a on daily basis, that I actually make another proxy here that utilizes tor , polipo, and squid, so people can actually get work done.

Ill get back to hacking phones, but frankly this move thing has occupied almost all my real free time.

Wednesday, June 13, 2012

The first of the RC5's

So some of you may have looked into the testbuild yesterday, it was a precursor to the RC5's being pushed out. We are getting super close to a 15 final so, you might also notice a couple cosmetic changes, and naming changes, version number changes.

What's in RC5 you ask, well I drug in a ton of good caf code. This means changes to all kinds of things, power management, i/o, adjustments across the board here. This also means this kernel should support the more recent evervolv stuff that Mason stopped working on a while ago when they merged up newer kgsl code. Additionally updated some of the governor code that was getting dated, and unified some things to do it our way. RC5 might be the last RC for this point release. You'll note that the numbering pattern went from v0.15 to 0.1.5. I think I understand now why Linus went to that scheme. It's really the only way to track changes.

Thanks to smelkus and mazdarider23 from Team D.I.R.T for taking that kgsl test build for a early spin for me, you can thank them for doing the leg work to make RC5's drop today as opposed to sometime later this week.

If you want to help the project along and want to test, I higly recommend you drop into #masonic on IRC freenode and idle there, so that I can reach you easy. I'm on too many forums and in too many places, to coordinate that kind of thing via PM. My gtalk has too many people to keep strait, much easier to just ask for a tester on IRC and respond to whoever sticks their hand up.

Mason EI 0.1.5 RC5 sbc


Tuesday, June 12, 2012

AOKP Progress

So I have been playing around with a few different builds, I finally decided to continue with the evervolv tree, and merge in the good stuff from theplayground. There are any number of reasons for this, but the primary one is, drewis is a mad genius and throws some crazy hacks out that boggle my mind for the 8x50 which is you supersonic people. So much good stuff is coming out of caf at the moment, I feel like that's where the future is for the supersonic so there it is.

That said, I still have a ton of work to do, AOKP has been plagued by random reboots in so many places, I'm trying to resolve some of them. So just because your seeing updates to Mason doesn't mean I'm not working on AOKP, quite the opposite, some of the changes coming to Mason are a direct result of working on the AOKP supersonic tree. So there it is, keep the faith, you'll be hearing from me soon.

When there is something worth testing publicly, you'll here it here first.


Testbuild with new Evervolv caf additions

So this build is based off Mason  I 15, but it has all that fun stuff you may have been hearing about from evervolv that may be making things not work on a couple roms that are based off the very current evervolv. So here's your chance to give my latest stab and making that all work, so hit it if your one of the people plagued by that issue. Yes this is ICS only, you're out of luck Mason G users almost none of this applies to you.

I fergot to mention there there are some small tidbits that will be in RC5 across the board cause that branch wasn't entirely clean cause I'm lazy.


Thats all for now.