[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #26573 [Applications/Tor Browser]: TBA: Cleanup logging on < API 21



#26573: TBA: Cleanup logging on < API 21
------------------------------------------+------------------------
     Reporter:  sysrqb                    |      Owner:  tbb-team
         Type:  enhancement               |     Status:  new
     Priority:  Medium                    |  Milestone:
    Component:  Applications/Tor Browser  |    Version:
     Severity:  Normal                    |   Keywords:  tbb-mobile
Actual Points:                            |  Parent ID:
       Points:                            |   Reviewer:
      Sponsor:                            |
------------------------------------------+------------------------
 Compiling with localWithGeckoBinariesNoMinApiPhotonDebug (or another
 NoMinApi variant), these methods don't exist when using the lower APIs and
 can't be revolved at run-time. It'd be nice we can avoid this in the the
 situations where we know it won't work. This only happens in onCreate from
 GeckoApp, but the errors are misleading. These errors are not fatal.

 These errors generally come from `Hardwareutils.isSystemSupported()`, I
 haven't tracked down where the getDrawable*() methods are used.

 {{{
 12-31 19:06:13.340 2133-2133/org.torproject.torbrowser I/GeckoApplication:
 zerdatime 373344 - application start
 12-31 19:06:20.390 2133-2133/org.torproject.torbrowser W/dalvikvm: VFY:
 unable to resolve virtual method 466:
 Landroid/content/Context;.checkSelfPermission (Ljava/lang/String;)I
 12-31 19:06:20.770 2133-2133/org.torproject.torbrowser D/dalvikvm: DexOpt:
 couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
 12-31 19:06:20.770 2133-2133/org.torproject.torbrowser W/dalvikvm: VFY:
 unable to resolve static field 173 (SUPPORTED_ABIS) in Landroid/os/Build;
 12-31 19:06:20.810 2133-2133/org.torproject.torbrowser I/dalvikvm: Could
 not find method android.system.Os.uname, referenced from method
 org.mozilla.gecko.util.HardwareUtils.isX86System
 12-31 19:06:20.810 2133-2133/org.torproject.torbrowser W/dalvikvm: VFY:
 unable to resolve static method 19531: Landroid/system/Os;.uname
 ()Landroid/system/StructUtsname;
 12-31 19:06:23.260 2133-2133/org.torproject.torbrowser D/dalvikvm: DexOpt:
 couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
 12-31 19:06:23.290 2133-2133/org.torproject.torbrowser W/dalvikvm: VFY:
 unable to resolve static field 173 (SUPPORTED_ABIS) in Landroid/os/Build;
 12-31 19:06:24.260 2133-2133/org.torproject.torbrowser W/dalvikvm: VFY:
 unable to find class referenced in signature (Landroid/view/SearchEvent;)
 12-31 19:06:24.260 2133-2133/org.torproject.torbrowser I/dalvikvm: Could
 not find method android.view.Window$Callback.onSearchRequested, referenced
 from method
 android.support.v7.view.WindowCallbackWrapper.onSearchRequested
 12-31 19:06:24.260 2133-2133/org.torproject.torbrowser W/dalvikvm: VFY:
 unable to resolve interface method 20450:
 Landroid/view/Window$Callback;.onSearchRequested
 (Landroid/view/SearchEvent;)Z
 12-31 19:06:24.290 2133-2133/org.torproject.torbrowser I/dalvikvm: Could
 not find method android.view.Window$Callback.onWindowStartingActionMode,
 referenced from method
 android.support.v7.view.WindowCallbackWrapper.onWindowStartingActionMode
 12-31 19:06:24.290 2133-2133/org.torproject.torbrowser W/dalvikvm: VFY:
 unable to resolve interface method 20454:
 Landroid/view/Window$Callback;.onWindowStartingActionMode
 (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
 12-31 19:06:25.370 2133-2133/org.torproject.torbrowser I/dalvikvm: Could
 not find method android.content.res.Resources.getDrawable, referenced from
 method android.support.v7.widget.ResourcesWrapper.getDrawable
 12-31 19:06:25.370 2133-2133/org.torproject.torbrowser W/dalvikvm: VFY:
 unable to resolve virtual method 696:
 Landroid/content/res/Resources;.getDrawable
 (ILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
 12-31 19:06:25.380 2133-2133/org.torproject.torbrowser I/dalvikvm: Could
 not find method android.content.res.Resources.getDrawableForDensity,
 referenced from method
 android.support.v7.widget.ResourcesWrapper.getDrawableForDensity
 12-31 19:06:25.380 2133-2133/org.torproject.torbrowser W/dalvikvm: VFY:
 unable to resolve virtual method 698:
 Landroid/content/res/Resources;.getDrawableForDensity
 (IILandroid/content/res/Resources$Theme;)Landroid/graphics/drawable/Drawable;
 }}}

 [[https://developer.android.com/reference/android/content/Context.html#checkSelfPermission(java.lang.String)|android.content.Context.checkSelfPermission()]]
 - added in API level 23
 [[https://developer.android.com/reference/android/os/Build.html#SUPPORTED_ABIS|android.os.Build.SUPPORTED_ABIS]]
 - added in API level 21
 [[https://developer.android.com/reference/android/system/Os.html#uname()|android.system.Os.uname()]]
 - added in API level 21
 [[https://developer.android.com/reference/android/view/SearchEvent|android.view.SearchEvent]]
 - added in API level 23
 [[https://developer.android.com/reference/android/view/Window.Callback.html#onWindowStartingActionMode(android.view.ActionMode.Callback,%20int)|android.view.Window.Callback.onWindowStartingActionMode]]
 - added in API level 23
 [[https://developer.android.com/reference/android/content/res/Resources.html#getDrawable(int,%20android.content.res.Resources.Theme)|android.content.res.Resources.getDrawable()]]
 - added in API level 21
 [[https://developer.android.com/reference/android/content/res/Resources.html#getDrawableForDensity(int,
 int,
 android.content.res.Resources.Theme)|android.content.res.Resources.getDrawableForDensity()]]
 - added in API level 21

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26573>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs