Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Crash: [java.lang.NumberFormatException: Invalid float: "" ] upon App Load until Fake Fields are Randomized from Default #755

Closed
klau1 opened this issue Nov 13, 2013 · 7 comments
Labels

Comments

@klau1
Copy link

klau1 commented Nov 13, 2013

Crash: [java.lang.NumberFormatException: Invalid float: "" ] upon App Load until Fake Fields are Randomized from Default

xPrivacy version: 1.10.8(175)

Symptoms:

--Apps (ie: Facebook, ebay) will crash upon launch.

--A toast message is displayed: [ java.lang.NumberFormatException: Invalid float: "" ]

Expected Behavior:

Successful load of application without crash

Workaround:

Within the Settings Window of the specific application in xPrivacy. Press "Randomize".

Additional Information:

Attached is the Logcat of the crash.

The file is zipped, but the extension is renamed to jpg.

Note xPrivacy's Bug Log was disabled. Since a reboot is require for activation of this feature, it will have to wait until next time I Reboot the phone.

Additionally, eBay will no longer crash since it's fields have been randomized.

2013-11-13-04-00-48 zip

@danielmmmm
Copy link
Contributor

As I wrote in the XDA forum, I think the problem is that the default values are composed of zeros. Those zeros are interpreted as NULL by some apps (like Sygic GPS Navigation), and not as a string with a certain number of zero characters.

@M66B
Copy link
Owner

M66B commented Nov 14, 2013

11-13 04:01:12.378 E/XPrivacy( 5922): java.lang.NumberFormatException: Invalid float: ""
11-13 04:01:12.378 W/System.err( 5922): java.lang.NumberFormatException: Invalid float: ""
11-13 04:01:12.378 W/System.err( 5922):     at java.lang.StringToReal.invalidReal(StringToReal.java:63)
11-13 04:01:12.378 W/System.err( 5922):     at java.lang.StringToReal.parseFloat(StringToReal.java:289)
11-13 04:01:12.378 W/System.err( 5922):     at java.lang.Float.parseFloat(Float.java:300)
11-13 04:01:12.378 W/System.err( 5922):     at biz.bokhorst.xprivacy.PrivacyManager.getDefacedLocation(PrivacyManager.java:874)
11-13 04:01:12.378 W/System.err( 5922):     at biz.bokhorst.xprivacy.XLocationManager.after(XLocationManager.java:112)
11-13 04:01:12.378 W/System.err( 5922):     at biz.bokhorst.xprivacy.XPrivacy$1.afterHookedMethod(XPrivacy.java:220)
11-13 04:01:12.378 W/System.err( 5922):     at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:494)
11-13 04:01:12.378 W/System.err( 5922):     at android.location.LocationManager.getLastKnownLocation(Native Method)
11-13 04:01:12.378 W/System.err( 5922):     at com.ebay.mobile.util.LocationUtil.getLastKnownLocation(LocationUtil.java:50)
11-13 04:01:12.378 W/System.err( 5922):     at com.ebay.mobile.util.LocationUtil.sendForegroundOrBackgroundEvent(LocationUtil.java:209)
11-13 04:01:12.378 W/System.err( 5922):     at com.ebay.mobile.service.AppForegroundService.onBind(AppForegroundService.java:71)
11-13 04:01:12.378 W/System.err( 5922):     at android.app.ActivityThread.handleBindService(ActivityThread.java:2711)
11-13 04:01:12.378 W/System.err( 5922):     at android.app.ActivityThread.access$1800(ActivityThread.java:159)
11-13 04:01:12.378 W/System.err( 5922):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1409)
11-13 04:01:12.378 W/System.err( 5922):     at android.os.Handler.dispatchMessage(Handler.java:99)
11-13 04:01:12.378 W/System.err( 5922):     at android.os.Looper.loop(Looper.java:137)
11-13 04:01:12.378 W/System.err( 5922):     at android.app.ActivityThread.main(ActivityThread.java:5414)
11-13 04:01:12.378 W/System.err( 5922):     at java.lang.reflect.Method.invokeNative(Native Method)
11-13 04:01:12.378 W/System.err( 5922):     at java.lang.reflect.Method.invoke(Method.java:525)
11-13 04:01:12.378 W/System.err( 5922):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
11-13 04:01:12.378 W/System.err( 5922):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
11-13 04:01:12.378 W/System.err( 5922):     at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115)
11-13 04:01:12.378 W/System.err( 5922):     at dalvik.system.NativeStart.main(Native Method)

@M66B
Copy link
Owner

M66B commented Nov 14, 2013

Too bad that XPrivacy logging was not enabled.
Please enable XPrivacy logging and capture a new logcat next time this occurs, so we can see the offending value.
In any case the latitude or longitude is the problem.
Please also install the latest beta version of XPrivacy, so that the line numbers match with the version I am working on.

@M66B
Copy link
Owner

M66B commented Nov 14, 2013

Did you use manual randomization (by pressing on the button) ? If so, take next time a look at the values generated for the latitude and longitude.

@M66B
Copy link
Owner

M66B commented Nov 14, 2013

Looking again, I guess the problem is with an initial empty latitude/longitude and the problem is solved by pressing the randomize button, right?

@M66B M66B closed this as completed in 1e302b1 Nov 14, 2013
@danielmmmm
Copy link
Contributor

What about other settings than latitude/longitude?

@M66B
Copy link
Owner

M66B commented Nov 14, 2013

Create an issue if you encounter a problem again with version 1.10.13+ (just released).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants