Showing posts with label solve. Show all posts
Showing posts with label solve. Show all posts

Wednesday, 27 July 2016

[Xposed] [Testers needed] Trying to solve Light sensor bug



Hi, may be some of you have experienced the bug when an auto-brightness is on and you're in the dark place or light sensor is covered by your hand or cardboard and you're trying to watch 360 video on youtube or other required gyroscope thing and there are lags. Watch them on video - https://www.youtube.com/watch?v=XYudbTzIdHU
May be it's already been discussed but I haven't found the solution except turning auto-brightness off which isn't like a perfect solution to me :)
On 4pda user GODKIMOVSK have shared some info regarding this problem. Here few things you should know:
1. There are two different kind of light sensor installed on our devices:
a) Liteon LTR55X ALSPRX
b) Sensortek stk3x1x alsprx
A lot of users with gyro bug have Liteon sensor but there are people with second one as well.
To check what sensor is installed on your device use Sensor Box application.
2) The limits of light sensor usually are 0 - 10000 lux and gyro lags exist only when the data from the sensor is less than 10 lux.
So, the solution is quite simple seems to me. When the sensor read value that is less than 10 lux it becomes 10 lux on the out of the sensor.

I found a xposed module http://repo.xposed.info/module/com.m...er.disableprox - which able to mock all sensor 's values on your device. But I haven't tried it yet cause my boot is still locked and I don't want to unlock it unofficially so I'm waiting for xiaomi to allow the unlocking.
The module doesn't able to change light sensor measurement limits but it can replace it with one number. And if it actually does that's almost the solution.

THE FIRST TASK.
I need people which have the described gyro bug to test the Sensor Disabler xposed module.
1. Install the module, activate it in xposed installer. Go to the module setting, find the light sensor and mock its values to 50-100 lux . Reboot.
2. Turn on auto-brightness. Install Sensor Box or any other application which can measure light sensor data. If it shows exactly the same value in lux that you set up in the module then it works.
3. Try to experience gyro lag. Go to youtube and try to watch any 360 video with your hand covering light sensor.
4 . Share your results in this thread. Does the module work or not? Does the lags are gone?
Share xposed log too (/data/data/de.robv..../log/ and the file is error.log or something like that) so if the module doesn't work we can identify what is the reason.


THE SECOND TASK.
I saw source code of Sensor Disabler module and built my own module (Light_Fix.apk) with following code which is aimed to solve the gyro bug.
Test my module as well and share log.
Steps are almost the same except 2nd step:
2. If the data can not go less then 10 lux then my module works.


PHP Code:







private void ChangeSensorValues(final LoadPackageParam lpparam) {
      
         
XC_MethodHook mockSensorHook = new XC_MethodHook() {
                @
SuppressWarnings("unchecked")
                @
Override
                
protected void beforeHookedMethod(MethodHookParam param)
                        
throws Throwable {
                                        
                    
int type=(Integer) param.args[0];
                    
float[] sensor_values=(float[]) param.args[1];
                    
                    if ((
type==) & (sensor_values[0]<=10)) //type 5 - LIGHT_SENSOR afaik
                    
{
                        
XposedBridge.log("SOMETHING WORKS!");
                        
XposedBridge.log("type= "param.args[0]);
                        
XposedBridge.log("values= "param.args[1]);
                        
                        
sensor_values[0]=(float) 10;
                        
param.args[1]=sensor_values;
                    }
                    
                }
            };
            
XposedHelpers.findAndHookMethod("android.hardware.SystemSensorManager$SensorEventQueue"lpparam.classLoader"dispatchSensorEvent"int.class, float[].class, int.class, long.class, mockSensorHook);
 } 









I am also open for help from devs and other people. It's just sad that no one hasn't even tried somehow to solve the gyro bug despite so much people have the phone.

To mods: please move that thread if it is not in appropriate place














Attached Files






File Type: apk LightFix_v2.apk -
[Click for QR Code]
(433.0 KB)







Tuesday, 12 July 2016

Please help me to solve micromaxp480 memory proble



im using micromax p480 tab. after rooting still i can not move or install app to sd card. please please help me guez



Wednesday, 6 July 2016

Warning: "Camera failed" imposible to solve but dialing *#0*# the camera works



Hi, I have a problem with my front camera in the Galaxy S7 (SM-G930F). It doesn't work and every time that I enter in the front camera appears the message "Warning: Camera failed"



The Rear camera works perfectly but since I've bought the S7 I never couldn't use the front camera



Here is what I have tried:

- Force Stop, Clear Data, Clear Cache, and Clear Defaults

- Clear Cache Partition in Recovery

- Factory Reset through Settings

- Factory Reset through Recovery

- Installed 3rd party camera app

- Installed another OEM ROM through Odin

- Repite everything



And the camera never work.



But.... by entering *#0*# into the dialer and picking Front cam the camera works perfectly and I can take a pictures. but through the app it doesn't work

Another thing that I can do it is, install the Dual-camera MODE and I can use the both two cameras at the same time although the front camera locks very blurry but it is another problem





I need to know if it is a hardware problem or a softwared problem. I don't know if I replace the front camera It will work.



Monday, 4 July 2016

[GUIDE] Solve first issues



From ZUK Fans eu forum :



Notification :

1) Autostart the apps : SafeCenter > Autostart > Click on "Disabled autostart App(s)" > Click on the icon in the top right corner>Click on the "+" > Add your apps
2) Enable the notifications : Setting > Notifcations & Statusbar > Notification > Enable the 3 options
3) For some apps, you can enable floating window if it's disabled on : Settings > Security & Privacy > Permissions > Apps
5) Lock the apps in RAM : Open the Apps history (press Home button twice by default) and swipe down the apps
4) Reboot

Sync Google Contact :

Install this : http://www.apkmirror.com/apk/google....-apk-download/



How to solve 2% battery bug???



I had flashed latest RR official
Before I had flashed cm13 radios n b20 unlock zip clean wiped everything
After that flashed RR still 2% battery bug
Not only in RR every up-to-date cm13 ROM flashing getting that 2% bug continuously
Can someone point out me what the exact error am doing???
Thanks

Sent from my One Plus 3 using XDA-Developers mobile app 😜