Geez, I'm having trouble getting a proper build out for the NFC fix. I had "fixed" it by adding two library files and making the logcat errors go away, but after adding it to the compiled ROM, I think I had messed up the kernel, because now the option for NFC does not appear in the Settings menu. I'm rebuilding from scratch again. That takes a few hours, but I am at work now anyway.
In the meantime, I was getting a lot of errors while flashing this morning, mainly to do with the backuptool.sh that's in the updater-script commands. But it would also exit from random places and the ROM wouldn't get fully flashed. ?? I had to do a nandroid restore and flash the CM9 rom again.
For those who want to help out but are not into downloading the source, here are some things that you can do to hack around with the files -
1) Install the SDK and get adb working (e.g. adb devices, adb logcat)
2) To copy files to the /system partition:
Code:
adb shell mount -o rw,remount /dev/block/mmcblk0p24 /system
adb push <name of file on pc> /system/<path to destination on phone>
e.g.
adb push sensors.default.so /system/lib/hw/
I need help on the front camera and the sensors.
Camera (front and rear?) involves:
/system/lib/liboemcamera.so
/system/lib/hw/camera.msm8660.so
(among others)
Sensors (proximity, ambient light, capacitive touch) involve:
/system/lib/hw/sensors.default.so
(Some ROMs have /system/lib/hw/sensors.msm8660.so)
I think there is also a file called lights.msm8660.so (or similar) that controls the backlight and capacitive lights. I didn't try changing that.
MSM8660 is the SoC (chipset) that Qualcomm uses for this device, commonly used by the other SGS2 LTE variants (not the I9100 which is not LTE) and several HTC devices.
I've tried pushing the sensor and camera files from other devices like the Skyrocket and Hercules, as well as from our GB stock ROM, but no luck.
BTW, use logcat a lot to see what's going on. One way to save to file without copy and pasting the terminal output is:
I believe the above works for Mac/Linux and Windows
To see the current kernel configuration (hardware specs that were provisioned) on the device:
Code:
adb pull /proc/config.gz
gunzip config.gz <--- Linux/Mac only; use 7zip in Windows to unzip
You will get a file called "config"
EDIT: I was just wondering if someone could try the camera libs from the stock SHV-120L ICS ROM (Asian SGS2 HD)
EDIT2: Or the camera and sensor libs from the Galaxy Note (versions without the middle button)