Hi all,
after the building setup update (if I’ve properly understood) of F-Droid and concurrent update of the version and libraries of my app (moved to React Native 0.68.3, NPM 8.19.2, NodeJS 16.17.1 and Android NDK r23c)adb, it seems I’m not able to run the downloaded version(s) anymore.
TKCompanionApp 4.0.0 and 4.0.1 crashes on startup when downloaded from F-Droid and using the locally-built APK, while debug mode works fine.
The error I see through ADB is something related to a missing Java class, but I have no idea why it’s missing… I mean, except updating the libraries I’ve not changed other things.
10-17 07:52:13.715 25761 25761 W System.err: java.lang.ClassNotFoundException: name.bresciani.marco.tkcompanionapp.ReactNativeFlipper
The “full” ADB error, with its surroundings:
10-17 07:52:13.508 25761 25761 V fb-UnpackingSoSource: starting syncer worker
10-17 07:52:13.510 25761 25761 V fb-UnpackingSoSource: releasing dso store lock for /data/user/0/name.bresciani.marco.tkcompanionapp/lib-main (from syncer thread)
10-17 07:52:13.511 25761 25761 V fb-UnpackingSoSource: not releasing dso store lock for /data/user/0/name.bresciani.marco.tkcompanionapp/lib-main (syncer thread started)
10-17 07:52:13.528 25761 25761 D SoLoader: libjscexecutor.so not found on /data/data/name.bresciani.marco.tkcompanionapp/lib-main
10-17 07:52:13.528 25761 25761 D SoLoader: libjscexecutor.so found on /data/app/~~DH2Uqv-AxzpONkgk-OM_-g==/name.bresciani.marco.tkcompanionapp-SgaAOni7xn23AW7fd9J95A==/lib/arm64
10-17 07:52:13.528 25761 25761 D SoLoader: Not resolving dependencies for libjscexecutor.so
10-17 07:52:13.589 25761 25761 D JavaScriptCore.Version: 250230.2.1
10-17 07:52:13.641 32627 25439 I TrackerControl.VPN: Get uid local=/10.1.10.1:60854 remote=/147.92.191.123:443
10-17 07:52:13.643 32627 25439 I TrackerControl.VPN: Get uid=10338
10-17 07:52:13.696 3894 5834 I AppsFilter: interaction: PackageSetting{98bb6f3 name.bresciani.marco.tkcompanionapp/10601} -> PackageSetting{f88fae com.motorola.motosignature.app/10151} BLOCKED
10-17 07:52:13.705 821 821 I Accelerometer: batch: handle:0, flag:0,samplingPeriodNs:66667000 maxBatchReportLatencyNs:0
10-17 07:52:13.706 821 821 I Accelerometer: enable: handle:0, en:1
10-17 07:52:13.715 25761 25761 W System.err: java.lang.ClassNotFoundException: name.bresciani.marco.tkcompanionapp.ReactNativeFlipper
10-17 07:52:13.715 25761 25761 W System.err: at java.lang.Class.classForName(Native Method)
10-17 07:52:13.715 25761 25761 W System.err: at java.lang.Class.forName(Class.java:454)
10-17 07:52:13.715 25761 25761 W System.err: at java.lang.Class.forName(Class.java:379)
10-17 07:52:13.715 25761 25761 W System.err: at name.bresciani.marco.tkcompanionapp.MainApplication.initializeFlipper(MainApplication.java:65)
10-17 07:52:13.715 25761 25761 W System.err: at name.bresciani.marco.tkcompanionapp.MainApplication.onCreate(MainApplication.java:47)
10-17 07:52:13.715 25761 25761 W System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
10-17 07:52:13.715 25761 25761 W System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6886)
10-17 07:52:13.715 25761 25761 W System.err: at android.app.ActivityThread.access$1500(ActivityThread.java:252)
10-17 07:52:13.715 25761 25761 W System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1999)
10-17 07:52:13.715 25761 25761 W System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
10-17 07:52:13.715 25761 25761 W System.err: at android.os.Looper.loop(Looper.java:250)
10-17 07:52:13.715 25761 25761 W System.err: at android.app.ActivityThread.main(ActivityThread.java:7886)
10-17 07:52:13.715 25761 25761 W System.err: at java.lang.reflect.Method.invoke(Native Method)
10-17 07:52:13.715 25761 25761 W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
10-17 07:52:13.715 25761 25761 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:970)
10-17 07:52:13.716 25761 25761 W System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "name.bresciani.marco.tkcompanionapp.ReactNativeFlipper" on path: DexPathList[[zip file "/data/app/~~DH2Uqv-AxzpONkgk-OM_-g==/name.bresciani.marco.tkcompanionapp-SgaAOni7xn23AW7fd9J95A==/base.apk"],nativeLibraryDirectories=[/data/app/~~DH2Uqv-AxzpONkgk-OM_-g==/name.bresciani.marco.tkcompanionapp-SgaAOni7xn23AW7fd9J95A==/lib/arm64, /data/app/~~DH2Uqv-AxzpONkgk-OM_-g==/name.bresciani.marco.tkcompanionapp-SgaAOni7xn23AW7fd9J95A==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
10-17 07:52:13.716 25761 25761 W System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
10-17 07:52:13.716 25761 25761 W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
10-17 07:52:13.716 25761 25761 W System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
10-17 07:52:13.716 25761 25761 W System.err: ... 15 more
10-17 07:52:13.718 25790 25790 W getprop : type=1400 audit(0.0:118802): avc: denied { search } for name="mm" dev="sysfs" ino=5470 scontext=u:r:untrusted_app:s0:c89,c258,c512,c768 tcontext=u:object_r:sysfs_mm:s0 tclass=dir permissive=0 app=name.bresciani.marco.tkcompanionapp
10-17 07:52:13.727 25761 25796 D libMEOW : meow reload base cfg path: na
10-17 07:52:13.727 25761 25796 D libMEOW : meow reload overlay cfg path: na
10-17 07:52:13.753 25761 25796 D libMEOW : applied 1 plugins for [name.bresciani.marco.tkcompanionapp]:
10-17 07:52:13.753 25761 25796 D libMEOW : plugin 1: [libMEOW_gift.so]:
10-17 07:52:13.833 25761 25761 W .tkcompanionap: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
10-17 07:52:13.833 25761 25761 W .tkcompanionap: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
10-17 07:52:13.857 25761 25761 D libMEOW : applied 1 plugins for [name.bresciani.marco.tkcompanionapp]:
10-17 07:52:13.857 25761 25761 D libMEOW : plugin 1: [libMEOW_gift.so]:
10-17 07:52:13.857 25761 25761 I InputTransport: Create ARC handle: 0xb400007778e75fe0
10-17 07:52:13.865 25761 25761 W unknown:ReactNative: Packager connection already open, nooping.
10-17 07:52:13.872 903 1384 I BufferQueueConsumer: [](id:38700001d3e,api:0,p:-1,c:903) connect(): controlledByApp=false
10-17 07:52:13.872 903 1384 I BufferQueue: [unnamed-903-7486](this:0xb4000074fbdadc58,id:7486,api:0,p:-1,c:-1) BufferQueue core=(903:/system/bin/surfaceflinger)
10-17 07:52:13.874 3894 6473 V WindowManager: Changing focus of displayId=0 to Window{ee30c86 u0 name.bresciani.marco.tkcompanionapp/name.bresciani.marco.tkcompanionapp.MainActivity} from null
10-17 07:52:13.881 25761 25794 D libMEOW : applied 1 plugins for [name.bresciani.marco.tkcompanionapp]:
10-17 07:52:13.881 25761 25794 D libMEOW : plugin 1: [libMEOW_gift.so]:
10-17 07:52:13.890 553 553 I hwservicemanager: getTransport: Cannot find entry android.hardware.configstore@1.0::ISurfaceFlingerConfigs/default in either framework or device manifest.
10-17 07:52:13.893 25761 25794 I libMEOW_gift: ctx:0xb40000772309c928, ARC not Enabled.
10-17 07:52:13.903 25761 25794 E ion : ioctl c0044901 failed with code -1: Invalid argument
10-17 07:52:13.964 814 814 I hwcomposer: [HWCDisplay] [Display_0 (type:1)] fps:60.405380,dur:1009.84,max:21.78,min:14.24
10-17 07:52:14.017 903 1384 W ServiceManager: Permission failure: android.permission.ACCESS_SURFACE_FLINGER from uid=10601 pid=25761
10-17 07:52:14.017 3894 3915 I LaunchCheckinHandler: MotoDisplayed name.bresciani.marco.tkcompanionapp/.MainActivity,cp,ca,1005
10-17 07:52:14.017 903 1384 D PermissionCache: checking android.permission.ACCESS_SURFACE_FLINGER for uid=10601 => denied (283 us)
10-17 07:52:14.018 3894 3915 I WindowManager: SURFACE show Surface(name=name.bresciani.marco.tkcompanionapp/name.bresciani.marco.tkcompanionapp.MainActivity)/@0xb5fd4e0 on display:0
10-17 07:52:14.021 3894 3925 I ActivityTaskManager: Displayed name.bresciani.marco.tkcompanionapp/.MainActivity: +1s39ms
10-17 07:52:14.024 3894 3915 I InputTransport: Destroy ARC handle: 0xb4000077060c0f60
10-17 07:52:14.036 29734 29734 I InputTransport: Create ARC handle: 0xb40000771b264da0
Could someone help me with some hints?
Meanwhile, I’m going to bisect between 3.1.2 and 4.0.0 version to understand the mess I possibly did with RN update…
Thanks,
Marco