Opened 11 months ago

#26573 new enhancement

TBA: Cleanup logging on < API 21

Reported by: sysrqb Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords: tbb-mobile
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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;

android.content.Context.checkSelfPermission() - added in API level 23
android.os.Build.SUPPORTED_ABIS - added in API level 21
android.system.Os.uname() - added in API level 21
android.view.SearchEvent - added in API level 23
android.view.Window.Callback.onWindowStartingActionMode - added in API level 23
android.content.res.Resources.getDrawable() - added in API level 21
android.content.res.Resources.getDrawableForDensity() - added in API level 21

Child Tickets

Change History (0)

Note: See TracTickets for help on using tickets.