chromium-aw icon indicating copy to clipboard operation
chromium-aw copied to clipboard

java.lang.ClassNotFoundException: Didn't find class "org.chromium.device.sensors.PlatformSensorProvider"

Open jackxuechen opened this issue 3 years ago • 2 comments

when h5 has video

java.lang.ClassNotFoundException: Didn't find class "org.chromium.device.sensors.PlatformSensorProvider" on path: DexPathList[[dex file "/data/data/com.ridi.awdemo/code_cache/.overlay/base.apk/classes2.dex", zip file "/data/app/~~CO6rrmjpsJUS_RwBDlvXxA==/com.ridi.awdemo--iTFBJk4w45C3Nx9UKL3OQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~CO6rrmjpsJUS_RwBDlvXxA==/com.ridi.awdemo--iTFBJk4w45C3Nx9UKL3OQ==/lib/arm64, /data/app/~~CO6rrmjpsJUS_RwBDlvXxA==/com.ridi.awdemo--iTFBJk4w45C3Nx9UKL3OQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64, /system/product/lib64, /vendor/lib64]]

jackxuechen avatar Sep 28 '21 03:09 jackxuechen

I found PlatformSensorProvider(and PlatformSensor) in chromium repo Modifying copy.js to copy sensor folder into target could make work.

 {
  name: 'services/sensors',
  action: Action.COPY,
  src: [
    'src/services/device/generic_sensor/android/java/src/org/chromium/device/sensors'
  ],
  dest: 'src/main/java/org/chromium/services/sensors',
}

Not tested. Please make pull request if it works

roaigen-robot avatar Nov 18 '21 02:11 roaigen-robot

Hmm... it still crashes. (Test page: https://tekeye.uk/html/html5-video-test-page)

Let's check again.

DavinAhn avatar Jan 18 '22 18:01 DavinAhn