File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -458,14 +458,15 @@ function _getApi () {
458458 temporaryApi . artRuntime = artRuntime ;
459459 const runtimeSpec = getArtRuntimeSpec ( temporaryApi ) ;
460460 const runtimeOffset = runtimeSpec . offset ;
461- const instrumentationOffset = runtimeOffset . instrumentation ;
462- temporaryApi . artInstrumentation = ( instrumentationOffset !== null ) ? artRuntime . add ( instrumentationOffset ) : null ;
463461
464- // todo: figure out better detection of https://android.googlesource.com/platform/art/+/17c7ed2de734cf892b005b1d15b3db9855506f14
462+ const instrumentationOffset = runtimeOffset . instrumentation ;
463+ let artInstrumentation = ( instrumentationOffset !== null ) ? artRuntime . add ( instrumentationOffset ) : null ;
464+ // TODO: Figure out better detection of https://android.googlesource.com/platform/art/+/17c7ed2de734cf892b005b1d15b3db9855506f14
465465 const instrumentationIsPointer = apiLevel > 35 ;
466- if ( instrumentationIsPointer && temporaryApi . artInstrumentation != null ) {
467- temporaryApi . artInstrumentation = temporaryApi . artInstrumentation . readPointer ( ) ;
466+ if ( instrumentationIsPointer && artInstrumentation != = null ) {
467+ artInstrumentation = artInstrumentation . readPointer ( ) ;
468468 }
469+ temporaryApi . artInstrumentation = artInstrumentation ;
469470
470471 temporaryApi . artHeap = artRuntime . add ( runtimeOffset . heap ) . readPointer ( ) ;
471472 temporaryApi . artThreadList = artRuntime . add ( runtimeOffset . threadList ) . readPointer ( ) ;
You can’t perform that action at this time.
0 commit comments