S7 Slim g-sensor fix - Linux

MyWorld

Executive Member
Joined
Mar 24, 2004
Messages
5,001
Reaction score
6
Location
Wes Transvaal
I did not need the g-sensor fix till I installed Spirit HD from the recent 10 billion download promotion on the market. The sensors would be off by 90 degrees no matter what I tried.

MAKE SURE YOU KNOW WHAT YOU ARE DOING, I TAKE NO RESPONSIBILITY IF YOU MESS UP YOUR DEVICE!

I'm a Linux boy so I had to quickly figure out how to apply the patch from within Linux, and basically you just do everything by hand that is in the script, so here goes:

1. Download the g-sensor fix -> http://www.androidtablets.net/forum...al/20304-g-sensor-fix-s7-classic-s7-slim.html
2. Extract it on your PC

It goes without saying that you should have Android SDK and Android Platform-tools installed, you can do this via your package manager.

3. cd /opt/android-sdk/platform-tools (In Arch Linux)

4. Following the script from this point on:
Code:
adb start-server
adb wait-for-device
adb push /*download location on pc*/psneuter /data/local/
adb shell chmod 777 /data/local/psneuter
adb shell /data/local/psneuter
adb kill-server
adb start-server
adb wait-for-device

adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock2 /system

#Tilt fix for Noogra Nuts and Spirit HD
adb push /*download location on pc*/libsurfaceflinger.so /system/lib
adb shell chmod 644 /system/lib/libsurfaceflinger.so

#Fix for Google Sky Maps
adb push /*download location on pc*/framework.jar /system/framework
adb shell chmod 644 /system/framework/framework.jar

#SRS surround and preset equalizer fix, no idea what this does but it won't hurt trying it
adb push /*download location on pc*/libsrswowhd.so /system/lib
adb push /*download location on pc*/libaudioflinger.so /system/lib
adb push /*download location on pc*/huawei.software.srs_trumedia.xml /system/etc/permissions

adb shell chmod 644 /system/lib/libsrswowhd.so
adb shell chmod 644 /system/lib/libaudioflinger.so
adb shell chmod 644 /system/etc/permissions/huawei.software.srs_trumedia.xml

#USB host permissons, if I'm right this will allow you to connect USB devices to the tablet, I'll HAVE to test this out!
adb push /*download location on pc*/huawei.software.huawei_usb_host.xml /system/etc/permissions
adb shell chmod 644 /system/etc/permissions/huawei.software.huawei_usb_host.xml

adb shell reboot

I will not touch that boot image yet, one of the last options in the script, since I have read some people getting some strange behaviour after a while.

And that should do it. Shout if there are any questions!
 
Last edited:
Thanx for the info, may come in handy. Btw, do you know if the g-sensor fix works with Noogra Nuts?
 
I updated the original post and added some other options available in the script, seems like we can apply everything since it will be relevant to the SA roms.

Just don't apply the boot image (option 5 for Windows users) , I have read that some people had some issues with it.
 
Top
Sign up to the MyBroadband newsletter
X