5,598,820 Members 33,334 Now Online
XDA Developers Android and Mobile Development Forum

Android 4.4 Sensors - Backwards compatibility with old blobs

Tip us?
 
Entropy512
Old
#1  
Senior Recognized Developer - OP
Thanks Meter 23407
Posts: 12,779
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Default Android 4.4 Sensors - Backwards compatibility with old blobs

This is going to be for discussion of various issues with using older sensor HAL blobs on 4.4, and how to properly implement backwards compatibility.

To participate in this thread, you MUST have the Sensor Kinetics and Z-DeviceTest apps installed.
https://play.google.com/store/apps/d...sensorkinetics - Sensor Kinetics
https://play.google.com/store/apps/d...an.zdevicetest - Z-DeviceTest

Current status:
Oppo Find 5
In Sensor Kinetics, 3D and Scalar sensors work. Derived sensors such as "Rotation Vector" do not work.

This manifests itself with a number of user-facing issues:
1) No compass in Ingress
2) No level/compass function in GPS Status and Toolbox

Fixes tried:
So far - None

Samsung Galaxy S4 family
I do not own this device. This section is based on reports from jumoog and others.

Some sensors don't work. I have yet to have anyone tell me which ones work and which ones don't. I need this information (especially if the behavior matches what I described above for Find 5)

If a number of sensorservice patches from 4.4 are reverted, some or all sensors begin working:
https://github.com/TEAM-Gummy/androi...re/Sensor.java
(need to find the rest, out of time)

It is unknown what happens if only some of the sensor patches are reverted. Some of them seem benign and unlikely to cause issues
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
The Following 2 Users Say Thank You to Entropy512 For This Useful Post: [ Click to Expand ]
 
jumoog
Old
(Last edited by jumoog; 14th November 2013 at 04:02 PM.)
#2  
Senior Member
Thanks Meter 196
Posts: 136
Join Date: Jul 2013
Location: Munich

 
DONATE TO ME
Sensors that dont work on: jflte (Samsung Galaxy S4)

All Sensor's detected
But this Sensor's give no value back:



Hardware

Gyroscope
K330 Gyroscope Sensor

Magnetometer
YAS532 Magnetic Sensor

Proximity Sensor
MAX88920

Barometer Sensor
Bosch

Software

Gravatiy Sensor
Linear Acceleration
Rotation Sensor
 
Entropy512
Old
#3  
Senior Recognized Developer - OP
Thanks Meter 23407
Posts: 12,779
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
OK, so it's worse than find5 (raw mag/prox/gyro/accel work on find5) - do ANY sensors work?
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
jumoog
Old
(Last edited by jumoog; 14th November 2013 at 10:00 PM.)
#4  
Senior Member
Thanks Meter 196
Posts: 136
Join Date: Jul 2013
Location: Munich

 
DONATE TO ME
Quote:
Originally Posted by Entropy512 View Post
OK, so it's worse than find5 (raw mag/prox/gyro/accel work on find5) - do ANY sensors work?
Working Sensors:
Accelerometer
Ambient Temperature
Light Sensor
Pressure Sensor
Relativ Humidity

With TEAM-Gummy patch: broken left (only software Sensors)
Gravatiy Sensor
Linear Acceleration
Rotation Sensor
 
Entropy512
Old
#5  
Senior Recognized Developer - OP
Thanks Meter 23407
Posts: 12,779
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Ok, so your hacks bring it, at best, to a state where it matches the find5
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
jumoog
Old
#6  
Senior Member
Thanks Meter 196
Posts: 136
Join Date: Jul 2013
Location: Munich

 
DONATE TO ME
Quote:
Originally Posted by Entropy512 View Post
Ok, so your hacks bring it, at best, to a state where it matches the find5
Maybe this works with find5 too
 
MWisBest
Old
#7  
Senior Member
Thanks Meter 884
Posts: 331
Join Date: Dec 2010
Location: Green Bay, WI

 
DONATE TO ME
Just to make sure, you are aware that there's more to sensors than just frameworks/base, such as hardware/libhardware, right?
VZW Galaxy Nexus (Current):
FML-4.4

LG Vortex (x2) (Retired):
CM-9.0
 
jumoog
Old
(Last edited by jumoog; 15th November 2013 at 12:19 PM.)
#8  
Senior Member
Thanks Meter 196
Posts: 136
Join Date: Jul 2013
Location: Munich

 
DONATE TO ME
Quote:
Originally Posted by MWisBest View Post
Just to make sure, you are aware that there's more to sensors than just frameworks/base, such as hardware/libhardware, right?
thats true but dont need a patch for me

i use this https://github.com/chenxiaolong/huds...c532d1339cf0d2
 
Entropy512
Old
#9  
Senior Recognized Developer - OP
Thanks Meter 23407
Posts: 12,779
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Quote:
Originally Posted by MWisBest View Post
Just to make sure, you are aware that there's more to sensors than just frameworks/base, such as hardware/libhardware, right?
What do you think I meant by "need to find the rest, out of time"?
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
MWisBest
Old
#10  
Senior Member
Thanks Meter 884
Posts: 331
Join Date: Dec 2010
Location: Green Bay, WI

 
DONATE TO ME
Quote:
Originally Posted by Entropy512 View Post
What do you think I meant by "need to find the rest, out of time"?
Ah, my apologies, I missed that! If you need some help finding things I'd be more than willing to assist, I learned quite a bit about the sensors when I added an ambient temperature sensor to the Galaxy Nexus (albeit somewhat unuseful due to the heat pollution from the rest of the phone's components >.<).
VZW Galaxy Nexus (Current):
FML-4.4

LG Vortex (x2) (Retired):
CM-9.0

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes