[myTouch 3G, Magic General] CorticalBug:
Hello,

I managed to revive my Magic's G-Sensor by pulling the akmd_set.txt from an old nandroid backup, using the unyaffs tool.

Paste the text below into a blank text file and call it "akmd_set.txt", then run

adb push akmd_set.txt /data/misc/akmd_set.txt

and your G-Sensor might now work :D

//-----Int16-----//

STATUS_HDOEPRMS=1

HDA.x=139

HDA.y=129

HDA.z=161

HDA_STATUS0.x=0

HDA_STATUS0.y=0

HDA_STATUS0.z=0

HDA_STATUS1.x=139

HDA_STATUS1.y=129

HDA_STATUS1.z=161

HGA.x=8

HGA.y=7

HGA.z=10

HOF.x=11

HOF.y=-306

HOF.z=217

HOF_STATUS0.x=0

HOF_STATUS0.y=0

HOF_STATUS0.z=0

HOF_STATUS1.x=11

HOF_STATUS1.y=-306

HOF_STATUS1.z=217

HSE.x=814

HSE.y=782

HSE.z=800

HDST=3

HDST0=0

HDST1=3

KSTE.x=12452

KSTE.y=12452

KSTE.z=12452

ASE_EE.x=732

ASE_EE.y=724

ASE_EE.z=708

TTBL00_GAINDAC.x=3973

TTBL00_GAINDAC.y=4102

TTBL00_GAINDAC.z=3977

TTBL00_SENS.x=732

TTBL00_SENS.y=724

TTBL00_SENS.z=708

TTBL00_OFFSET.x=14

TTBL00_OFFSET.y=-96

TTBL00_OFFSET.z=-39

TTBL00_TEMPLEVEL=2050

TTBL01_GAINDAC.x=3973

TTBL01_GAINDAC.y=4102

TTBL01_GAINDAC.z=3977

TTBL01_SENS.x=628

TTBL01_SENS.y=621

TTBL01_SENS.z=607

TTBL01_OFFSET.x=-96

TTBL01_OFFSET.y=-645

TTBL01_OFFSET.z=125

TTBL01_TEMPLEVEL=-22527

TTBL02_GAINDAC.x=3973

TTBL02_GAINDAC.y=4102

TTBL02_GAINDAC.z=3977

TTBL02_SENS.x=645

TTBL02_SENS.y=638

TTBL02_SENS.z=624

TTBL02_OFFSET.x=-78

TTBL02_OFFSET.y=-554

TTBL02_OFFSET.z=98

TTBL02_TEMPLEVEL=-18431

TTBL03_GAINDAC.x=3973

TTBL03_GAINDAC.y=4102

TTBL03_GAINDAC.z=3977

TTBL03_SENS.x=662

TTBL03_SENS.y=655

TTBL03_SENS.z=641

TTBL03_OFFSET.x=-60

TTBL03_OFFSET.y=-462

TTBL03_OFFSET.z=70

TTBL03_TEMPLEVEL=-14335

TTBL04_GAINDAC.x=3973

TTBL04_GAINDAC.y=4102

TTBL04_GAINDAC.z=3977

TTBL04_SENS.x=680

TTBL04_SENS.y=672

TTBL04_SENS.z=658

TTBL04_OFFSET.x=-41

TTBL04_OFFSET.y=-371

TTBL04_OFFSET.z=43

TTBL04_TEMPLEVEL=-10239

TTBL05_GAINDAC.x=3973

TTBL05_GAINDAC.y=4102

TTBL05_GAINDAC.z=3977

TTBL05_SENS.x=697

TTBL05_SENS.y=690

TTBL05_SENS.z=674

TTBL05_OFFSET.x=-23

TTBL05_OFFSET.y=-279

TTBL05_OFFSET.z=15

TTBL05_TEMPLEVEL=-6143

TTBL06_GAINDAC.x=3973

TTBL06_GAINDAC.y=4102

TTBL06_GAINDAC.z=3977

TTBL06_SENS.x=726

TTBL06_SENS.y=704

TTBL06_SENS.z=697

TTBL06_OFFSET.x=-8

TTBL06_OFFSET.y=-142

TTBL06_OFFSET.z=-29

TTBL06_TEMPLEVEL=-622

TTBL07_GAINDAC.x=3973

TTBL07_GAINDAC.y=4102

TTBL07_GAINDAC.z=3977

TTBL07_SENS.x=730

TTBL07_SENS.y=706

TTBL07_SENS.z=693

TTBL07_OFFSET.x=-7

TTBL07_OFFSET.y=-120

TTBL07_OFFSET.z=-41

TTBL07_TEMPLEVEL=258

TTBL08_GAINDAC.x=3973

TTBL08_GAINDAC.y=4102

TTBL08_GAINDAC.z=3977

TTBL08_SENS.x=749

TTBL08_SENS.y=741

TTBL08_SENS.z=725

TTBL08_OFFSET.x=32

TTBL08_OFFSET.y=-5

TTBL08_OFFSET.z=-67

TTBL08_TEMPLEVEL=6145

TTBL09_GAINDAC.x=3973

TTBL09_GAINDAC.y=4102

TTBL09_GAINDAC.z=3977

TTBL09_SENS.x=767

TTBL09_SENS.y=758

TTBL09_SENS.z=742

TTBL09_OFFSET.x=50

TTBL09_OFFSET.y=86

TTBL09_OFFSET.z=-94

TTBL09_TEMPLEVEL=10241

TTBL10_GAINDAC.x=3973

TTBL10_GAINDAC.y=4102

TTBL10_GAINDAC.z=3977

TTBL10_SENS.x=784

TTBL10_SENS.y=776

TTBL10_SENS.z=758

TTBL10_OFFSET.x=68

TTBL10_OFFSET.y=178

TTBL10_OFFSET.z=-122

TTBL10_TEMPLEVEL=14337

TTBL11_GAINDAC.x=3973

TTBL11_GAINDAC.y=4102

TTBL11_GAINDAC.z=3977

TTBL11_SENS.x=802

TTBL11_SENS.y=793

TTBL11_SENS.z=775

TTBL11_OFFSET.x=87

TTBL11_OFFSET.y=269

TTBL11_OFFSET.z=-149

TTBL11_TEMPLEVEL=18433

TTBL12_GAINDAC.x=3973

TTBL12_GAINDAC.y=4102

TTBL12_GAINDAC.z=3977

TTBL12_SENS.x=819

TTBL12_SENS.y=810

TTBL12_SENS.z=792

TTBL12_OFFSET.x=105

TTBL12_OFFSET.y=361

TTBL12_OFFSET.z=-177

TTBL12_TEMPLEVEL=22529

//-----String-----//