学习android JNI的那些事儿--------4. Field & Method --> Accessing Field

本文详细介绍了如何使用JNI访问Java中的非静态成员变量和静态成员变量,并提供了具体的代码示例。

现在我们知道了怎样使用native code访问简单的数据类型和引用参考类型(string,array),下面我们来介绍怎样让jni代码去访问java中的成员变量和成员函数,然后可以再jni中回调java中的方法。

-------------------------------------------------------------------------------------

Accessing fields

java提供2中成员,静态成员和非静态成员,JNI支持了怎么样去get和set这些静态以及非静态成员的方法,下面来举一个例子。

先来访问非静态成员。

我们先在类中声明一个非静态的成员变量:

public class MyJNI extends Activity {
    /** Called when the activity is first created. */
	//declear a instance field
	private String s="123";

在点击按钮的时候我们把title的textview的字符串改成s,

				MyJNI mj = new MyJNI();

				mj.accessField();
				tv.setText(mj.s);

java代码很简单,只要实现我们的功能就好了,下面来看jni是如何进入class中的成员变量的:

Java_com_android_jni_MyJNI_accessField(JNIEnv *env,jobject obj)
{
	jfieldID fid;
	jstring jstr;
	const char *str;

	//get a reference to obj's class
	jclass cls = (*env)->GetObjectClass(env,obj);
//	jclass cls = (*env)->FindClass(env,"com/android/jni/Native");
	__android_log_print(ANDROID_LOG_INFO,"-JNI-","here in native C!");
	//look for the instance field in cls
	fid = (*env)->GetFieldID(env,cls,"s",
			"Ljava/lang/String;");
	if(fid == NULL){
		__android_log_print(ANDROID_LOG_INFO,"-JNI-","can not find field");
		return;
	}
	//read the instance field s
	jstr = (*env)->GetObjectField(env,obj,fid);
	str = (*env)->GetStringUTFChars(env,jstr,NULL);
	if(str == NULL)
		return;
	(*env)->ReleaseStringUTFChars(env,jstr,str);
	//create a new string and overwrite the instance field
	jstr = (*env)->NewStringUTF(env,"abc");
	if(jstr == NULL)
		return; //out of memory
	(*env)->SetObjectField(env,obj,fid,jstr);
}

为了访问目标类中的成员变量,要做2步,首先呼叫GetFieldID从类中来得到一个field ID,根据成员的名字和描述:

fid = (*env)->GetFieldID(env,cls,"s",
"Ljava/lang/String;");

然后根据这个field ID来访问这个成员:

jstr = (*env)->GetObjectField(env,obj,fid);

因为在java中string是对象,所以这边呼叫的是GetObjectField函数。

最后运行模拟器,点击按钮的时候textView会变成JNI中修改的“abc”



ok,这部分结束,下面来看如何访问静态成员变量。

同样的java代码中:

public class MyJNI extends Activity {
    /** Called when the activity is first created. */
	//declear a instance field
	private static int si=100;
	private String s="123";


我们定义一个静态的整形变量si初始化为100,当我们点击按钮的时候通过jni访问static field来改变si的值,然后再title的textView中显示出来。

				MyJNI mj = new MyJNI();

				mj.accessStaticField();
				tv.setText(mj.si+"");

我们来看下如何进入static field:

void
Java_com_android_jni_MyJNI_accessStaticField(JNIEnv *env,jobject obj)
{
	jfieldID fid;	//store the field id
	jint si;

	//get a reference to obj's class
	jclass cls = (*env)->GetObjectClass(env,obj);
	__android_log_print(ANDROID_LOG_INFO,"-JNI-","here in native C!");
	
	//look for the static field si in lcs
	fid = (*env)->GetStaticFieldID(env,cls,"si","I");
	if(fid == NULL)
		return; //field not found
	//access the static field si
	si = (*env)->GetStaticIntField(env,cls,fid);
	(*env)->SetStaticIntField(env,cls,fid,200);
}

大家可以看到只是调用的方法不一样,多了一个static,和非静态的使用方法一样。

-------------------------------------------------------------------------------------------------------

jni中访问class 中的field就到此结束,下面一篇会介绍如何访问java中class 的method。


---------------------------- PROCESS ENDED (4596) for package com.kotei.fusionpositiondemo.debug ---------------------------- 2025-08-05 15:13:33.804 4972-4972 nativeloader com.kotei.fusionpositiondemo.debug D Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok 2025-08-05 15:13:33.899 4972-4972 nativeloader com.kotei.fusionpositiondemo.debug D Load /data/user/0/com.kotei.fusionpositiondemo.debug/code_cache/startup_agents/9758b833-agent.so using system ns (caller=<unknown>): ok 2025-08-05 15:13:33.929 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug W hiddenapi: DexFile /data/data/com.kotei.fusionpositiondemo.debug/code_cache/.studio/instruments-07dd17c6.jar is in boot class path but is not in a known location 2025-08-05 15:13:34.006 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug W Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled. 2025-08-05 15:13:34.006 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug W Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled. 2025-08-05 15:13:34.039 4972-4972 CompatChangeReporter com.kotei.fusionpositiondemo.debug D Compat change id reported: 242716250; UID 10216; state: ENABLED ---------------------------- PROCESS STARTED (4972) for package com.kotei.fusionpositiondemo.debug ---------------------------- 2025-08-05 15:13:34.216 4972-4972 nativeloader com.kotei.fusionpositiondemo.debug D Configuring clns-9 for other apk /data/app/~~iRz61aG51jr6IKfcBO13Pw==/com.kotei.fusionpositiondemo.debug-NtZ59R1bU1VaYYMSRrjpBA==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~iRz61aG51jr6IKfcBO13Pw==/com.kotei.fusionpositiondemo.debug-NtZ59R1bU1VaYYMSRrjpBA==/lib/x86_64:/data/app/~~iRz61aG51jr6IKfcBO13Pw==/com.kotei.fusionpositiondemo.debug-NtZ59R1bU1VaYYMSRrjpBA==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.kotei.fusionpositiondemo.debug 2025-08-05 15:13:34.220 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I AssetManager2(0x70d598f55878) locale list changing from [] to [en-US] 2025-08-05 15:13:34.222 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I AssetManager2(0x70d598f52cb8) locale list changing from [] to [en-US] 2025-08-05 15:13:34.229 4972-4972 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V Currently set values for: 2025-08-05 15:13:34.229 4972-4972 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V angle_gl_driver_selection_pkgs=[] 2025-08-05 15:13:34.229 4972-4972 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V angle_gl_driver_selection_values=[] 2025-08-05 15:13:34.230 4972-4972 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V com.kotei.fusionpositiondemo.debug is not listed in per-application setting 2025-08-05 15:13:34.230 4972-4972 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V ANGLE allowlist from config: 2025-08-05 15:13:34.230 4972-4972 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V com.kotei.fusionpositiondemo.debug is not listed in ANGLE allowlist or settings, returning default 2025-08-05 15:13:34.230 4972-4972 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V Neither updatable production driver nor prerelease driver is supported. 2025-08-05 15:13:34.236 4972-4972 ActivityThread com.kotei.fusionpositiondemo.debug W Application com.kotei.fusionpositiondemo.debug is suspending. Debugger needs to resume to continue. 2025-08-05 15:13:34.237 4972-4972 System.out com.kotei.fusionpositiondemo.debug I Sending WAIT chunk 2025-08-05 15:13:34.237 4972-4972 System.out com.kotei.fusionpositiondemo.debug I Waiting for debugger first packet 2025-08-05 15:13:35.002 536-536 adbd adbd E failed to connect to socket 'localabstract:/com.kotei.fusionpositiondemo.debug-0/platform-1754378014920.sock': could not connect to localabstract address 'localabstract:/com.kotei.fusionpositiondemo.debug-0/platform-1754378014920.sock' 2025-08-05 15:13:36.788 4972-4976 nativeloader com.kotei.fusionpositiondemo.debug D Load libjdwp.so using system ns (caller=<unknown>): ok 2025-08-05 15:13:36.988 4972-4972 System.out com.kotei.fusionpositiondemo.debug I Debug.suspendAllAndSentVmStart 2025-08-05 15:13:37.347 4972-4972 System.out com.kotei.fusionpositiondemo.debug I Debug.suspendAllAndSendVmStart, resumed 2025-08-05 15:13:37.400 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/view/WindowManagerGlobal;->getInstance()Landroid/view/WindowManagerGlobal; (runtime_flags=0, domain=platform, api=unsupported) from Lcurtains/internal/WindowManagerSpy$windowManagerInstance$2; (domain=app) using reflection: allowed 2025-08-05 15:13:37.401 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/view/WindowManagerGlobal;->mViews:Ljava/util/ArrayList; (runtime_flags=0, domain=platform, api=unsupported) from Lcurtains/internal/WindowManagerSpy$mViewsField$2; (domain=app) using reflection: allowed 2025-08-05 15:13:37.401 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/app/ActivityThread;->mH:Landroid/app/ActivityThread$H; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 15:13:37.402 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/app/ActivityThread;->currentActivityThread()Landroid/app/ActivityThread; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher$activityThreadInstance$2; (domain=app) using reflection: allowed 2025-08-05 15:13:37.402 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/os/Handler;->mCallback:Landroid/os/Handler$Callback; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 15:13:37.402 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/util/Singleton;->mInstance:Ljava/lang/Object; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 15:13:37.402 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/util/Singleton;->get()Ljava/lang/Object; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 15:13:37.403 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/app/ActivityManager;->IActivityManagerSingleton:Landroid/util/Singleton; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 15:13:37.431 4972-5040 DisplayManager com.kotei.fusionpositiondemo.debug I Choreographer implicitly registered for the refresh rate. 2025-08-05 15:13:37.438 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I AssetManager2(0x70d598f52678) locale list changing from [] to [en-US] 2025-08-05 15:13:37.483 4972-4972 AppCompatDelegate com.kotei.fusionpositiondemo.debug D Checking for metadata for AppLocalesMetadataHolderService : Service not found 2025-08-05 15:13:37.484 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I AssetManager2(0x70d598f55558) locale list changing from [] to [en-US] 2025-08-05 15:13:37.506 4972-4972 ashmem com.kotei.fusionpositiondemo.debug E Pinning is deprecated since Android Q. Please use trim or other methods. 2025-08-05 15:13:37.809 4972-5038 itiondemo.debug com.kotei.fusionpositiondemo.debug W Verification of void leakcanary.RemoteWorkManagerHeapAnalyzer.onEvent(leakcanary.EventListener$Event) took 299.711ms (517.16 bytecodes/s) (0B arena alloc) 2025-08-05 15:13:38.107 4972-5038 LeakCanary com.kotei.fusionpositiondemo.debug D LeakCanary is currently disabled: Waiting for debugger to detach. 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getAllProviders: passive 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getAllProviders: network 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getAllProviders: fused 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getAllProviders: gps 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders true: passive 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders true: fused 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders true: gps 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders false: passive 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders false: network 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders false: fused 2025-08-05 15:13:38.112 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders false: gps 2025-08-05 15:13:38.113 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getGnssHardwareModelName: Android Studio Emulator GPS 2025-08-05 15:13:38.185 4972-5040 EGL_emulation com.kotei.fusionpositiondemo.debug I Opening libGLESv1_CM_emulation.so 2025-08-05 15:13:38.185 4972-5040 EGL_emulation com.kotei.fusionpositiondemo.debug I Opening libGLESv2_emulation.so 2025-08-05 15:13:38.190 4972-5040 HWUI com.kotei.fusionpositiondemo.debug W Failed to initialize 101010-2 format, error = EGL_SUCCESS 2025-08-05 15:13:38.261 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug W Verification of void com.kotei.fusionpositioningengine.FusionPositionManager$3.onLocationChanged(android.location.Location) took 145.249ms (1184.17 bytecodes/s) (0B arena alloc) 2025-08-05 15:13:38.298 4972-4972 DesktopModeFlags com.kotei.fusionpositiondemo.debug D Toggle override initialized to: OVERRIDE_UNSET 2025-08-05 15:13:38.347 4972-4972 HWUI com.kotei.fusionpositiondemo.debug W Image decoding logging dropped! 2025-08-05 15:13:38.351 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (runtime_flags=0, domain=platform, api=unsupported) from Landroidx/appcompat/widget/ViewUtils; (domain=app) using reflection: allowed 2025-08-05 15:13:38.351 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (runtime_flags=0, domain=platform, api=unsupported) from Landroidx/appcompat/widget/ViewUtils; (domain=app) using reflection: allowed 2025-08-05 15:13:38.374 4972-4972 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Lcom/android/internal/policy/DecorView;->mWindow:Lcom/android/internal/policy/PhoneWindow; (runtime_flags=0, domain=platform, api=unsupported) from Lcurtains/internal/WindowSpy$windowField$2; (domain=app) using reflection: allowed 2025-08-05 15:13:38.376 4972-4972 HWUI com.kotei.fusionpositiondemo.debug W Unknown dataspace 0 2025-08-05 15:13:38.895 4972-4977 itiondemo.debug com.kotei.fusionpositiondemo.debug I Compiler allocated 5042KB to compile void android.view.ViewRootImpl.performTraversals() 2025-08-05 15:13:39.047 4972-4972 InsetsController com.kotei.fusionpositiondemo.debug D hide(ime(), fromIme=false) 2025-08-05 15:13:39.047 4972-4972 ImeTracker com.kotei.fusionpositiondemo.debug I com.kotei.fusionpositiondemo.debug:b7546c62: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN 2025-08-05 15:13:39.122 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager onSatelliteStatusChanged: 6 2025-08-05 15:13:40.092 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager onSatelliteStatusChanged: 6 2025-08-05 15:13:41.092 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager onSatelliteStatusChanged: 6 2025-08-05 15:13:42.095 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager onSatelliteStatusChanged: 6 2025-08-05 15:13:42.103 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager GPS_PROVIDER getLatitude: 37.421998333333335 2025-08-05 15:13:42.104 4972-4972 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager GPS_PROVIDER getLongitude: -122.084 2025-08-05 15:13:42.122 4972-4972 System.out com.kotei.fusionpositiondemo.debug I 2025-08-05 15:13:42.121 [com.kotei.fusionpositionengine.FusionPosition] 初始化融合定位引擎 2025-08-05 15:13:42.235 4972-4972 nativeloader com.kotei.fusionpositiondemo.debug D Load /data/app/~~iRz61aG51jr6IKfcBO13Pw==/com.kotei.fusionpositiondemo.debug-NtZ59R1bU1VaYYMSRrjpBA==/base.apk!/lib/x86_64/libkoteiLocationJni.so using class loader ns clns-9 (caller=/data/app/~~iRz61aG51jr6IKfcBO13Pw==/com.kotei.fusionpositiondemo.debug-NtZ59R1bU1VaYYMSRrjpBA==/base.apk!classes2.dex): ok 2025-08-05 15:13:42.257 4972-4972 AndroidRuntime com.kotei.fusionpositiondemo.debug D Shutting down VM 2025-08-05 15:13:42.259 4972-4972 AndroidRuntime com.kotei.fusionpositiondemo.debug E FATAL EXCEPTION: main Process: com.kotei.fusionpositiondemo.debug, PID: 4972 com.kotei.fusionpositionengine.NativeException: Failed to set CarMsg message at com.kotei.fusionpositionengine.FusionPosition.setCarMsg(FusionPosition.java:153) at com.kotei.fusionpositioningengine.FusionPositionManager$3.onLocationChanged(FusionPositionManager.java:101) at android.location.LocationListener.onLocationChanged(LocationListener.java:63) at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3303) at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3300) at com.android.internal.listeners.ListenerExecutor.lambda$executeSafely$0(ListenerExecutor.java:127) at com.android.internal.listeners.ListenerExecutor$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) at android.os.Handler.handleCallback(Handler.java:995) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loopOnce(Looper.java:248) at android.os.Looper.loop(Looper.java:338) at android.app.ActivityThread.main(ActivityThread.java:9067) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932) Caused by: java.lang.RuntimeException: Field mAccuracy not found at com.kotei.fusionpositionengine.FusionPositionJNI.setCarMsg(Native Method) at com.kotei.fusionpositionengine.FusionPosition.setCarMsg(FusionPosition.java:150) ... 14 more 2025-08-05 15:13:42.266 4972-4972 Process com.kotei.fusionpositiondemo.debug I Sending signal. PID: 4972 SIG: 9 ---------------------------- PROCESS ENDED (4972) for package com.kotei.fusionpositiondemo.debug ---------------------------- 2025-08-05 15:13:42.280 714-809 InputDispatcher system_server E channel 'e97d02e com.kotei.fusionpositiondemo.debug/com.kotei.fusionpositioningengine.MainActivity' ~ Channel is unrecoverably broken and will be disposed! 2025-08-05 15:13:42.290 714-735 AppOps system_server E Operation not started: uid=10216 pkg=com.kotei.fusionpositiondemo.debug(null) op=GPS 以逻辑图方式总结log
最新发布
08-06
2025-08-05 14:56:55.227 4304-4304 nativeloader com.kotei.fusionpositiondemo.debug D Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok 2025-08-05 14:56:55.272 4304-4304 re-initialized> com.kotei.fusionpositiondemo.debug W type=1400 audit(0.0:98): avc: granted { execute } for path="/data/data/com.kotei.fusionpositiondemo.debug/code_cache/startup_agents/9758b833-agent.so" dev="dm-55" ino=361267 scontext=u:r:untrusted_app:s0:c216,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c216,c256,c512,c768 tclass=file app=com.kotei.fusionpositiondemo.debug 2025-08-05 14:56:55.286 4304-4304 nativeloader com.kotei.fusionpositiondemo.debug D Load /data/user/0/com.kotei.fusionpositiondemo.debug/code_cache/startup_agents/9758b833-agent.so using system ns (caller=<unknown>): ok 2025-08-05 14:56:55.296 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug W hiddenapi: DexFile /data/data/com.kotei.fusionpositiondemo.debug/code_cache/.studio/instruments-07dd17c6.jar is in boot class path but is not in a known location 2025-08-05 14:56:55.415 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug W Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled. 2025-08-05 14:56:55.415 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug W Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled. 2025-08-05 14:56:55.421 4304-4304 CompatChangeReporter com.kotei.fusionpositiondemo.debug D Compat change id reported: 242716250; UID 10216; state: ENABLED ---------------------------- PROCESS STARTED (4304) for package com.kotei.fusionpositiondemo.debug ---------------------------- 2025-08-05 14:56:55.571 4304-4304 nativeloader com.kotei.fusionpositiondemo.debug D Configuring clns-9 for other apk /data/app/~~uvNMhw23neOo_A1NTEkLtA==/com.kotei.fusionpositiondemo.debug-p0bOkHYIGwiXe_JjzTFaBg==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~uvNMhw23neOo_A1NTEkLtA==/com.kotei.fusionpositiondemo.debug-p0bOkHYIGwiXe_JjzTFaBg==/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.kotei.fusionpositiondemo.debug 2025-08-05 14:56:55.575 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I AssetManager2(0x70d598f55878) locale list changing from [] to [en-US] 2025-08-05 14:56:55.577 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I AssetManager2(0x70d598f52cb8) locale list changing from [] to [en-US] 2025-08-05 14:56:55.581 4304-4304 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V Currently set values for: 2025-08-05 14:56:55.581 4304-4304 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V angle_gl_driver_selection_pkgs=[] 2025-08-05 14:56:55.581 4304-4304 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V angle_gl_driver_selection_values=[] 2025-08-05 14:56:55.581 4304-4304 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V com.kotei.fusionpositiondemo.debug is not listed in per-application setting 2025-08-05 14:56:55.581 4304-4304 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V ANGLE allowlist from config: 2025-08-05 14:56:55.581 4304-4304 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V com.kotei.fusionpositiondemo.debug is not listed in ANGLE allowlist or settings, returning default 2025-08-05 14:56:55.581 4304-4304 GraphicsEnvironment com.kotei.fusionpositiondemo.debug V Neither updatable production driver nor prerelease driver is supported. 2025-08-05 14:56:55.583 4304-4304 ActivityThread com.kotei.fusionpositiondemo.debug W Application com.kotei.fusionpositiondemo.debug is suspending. Debugger needs to resume to continue. 2025-08-05 14:56:55.583 4304-4304 System.out com.kotei.fusionpositiondemo.debug I Sending WAIT chunk 2025-08-05 14:56:55.584 4304-4304 System.out com.kotei.fusionpositiondemo.debug I Waiting for debugger first packet 2025-08-05 14:56:58.311 536-536 adbd adbd E failed to connect to socket 'localabstract:/com.kotei.fusionpositiondemo.debug-0/platform-1754377016312.sock': could not connect to localabstract address 'localabstract:/com.kotei.fusionpositiondemo.debug-0/platform-1754377016312.sock' 2025-08-05 14:57:03.533 4304-4307 nativeloader com.kotei.fusionpositiondemo.debug D Load libjdwp.so using system ns (caller=<unknown>): ok 2025-08-05 14:57:03.746 4304-4304 System.out com.kotei.fusionpositiondemo.debug I Debug.suspendAllAndSentVmStart 2025-08-05 14:57:04.472 4304-4304 System.out com.kotei.fusionpositiondemo.debug I Debug.suspendAllAndSendVmStart, resumed 2025-08-05 14:57:04.611 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/view/WindowManagerGlobal;->getInstance()Landroid/view/WindowManagerGlobal; (runtime_flags=0, domain=platform, api=unsupported) from Lcurtains/internal/WindowManagerSpy$windowManagerInstance$2; (domain=app) using reflection: allowed 2025-08-05 14:57:04.611 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/view/WindowManagerGlobal;->mViews:Ljava/util/ArrayList; (runtime_flags=0, domain=platform, api=unsupported) from Lcurtains/internal/WindowManagerSpy$mViewsField$2; (domain=app) using reflection: allowed 2025-08-05 14:57:04.611 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/app/ActivityThread;->mH:Landroid/app/ActivityThread$H; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 14:57:04.611 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/app/ActivityThread;->currentActivityThread()Landroid/app/ActivityThread; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher$activityThreadInstance$2; (domain=app) using reflection: allowed 2025-08-05 14:57:04.612 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/os/Handler;->mCallback:Landroid/os/Handler$Callback; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 14:57:04.612 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/util/Singleton;->mInstance:Ljava/lang/Object; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 14:57:04.612 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/util/Singleton;->get()Ljava/lang/Object; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 14:57:04.612 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Landroid/app/ActivityManager;->IActivityManagerSingleton:Landroid/util/Singleton; (runtime_flags=0, domain=platform, api=unsupported) from Lleakcanary/ServiceWatcher; (domain=app) using reflection: allowed 2025-08-05 14:57:04.699 4304-4376 DisplayManager com.kotei.fusionpositiondemo.debug I Choreographer implicitly registered for the refresh rate. 2025-08-05 14:57:04.705 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I AssetManager2(0x70d598f55558) locale list changing from [] to [en-US] 2025-08-05 14:57:04.948 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug W Verification of android.content.Context androidx.appcompat.app.AppCompatDelegateImpl.attachBaseContext2(android.content.Context) took 107.951ms (1593.30 bytecodes/s) (0B arena alloc) 2025-08-05 14:57:05.412 4304-4304 AppCompatDelegate com.kotei.fusionpositiondemo.debug D Checking for metadata for AppLocalesMetadataHolderService : Service not found 2025-08-05 14:57:05.413 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I AssetManager2(0x70d598f58a78) locale list changing from [] to [en-US] 2025-08-05 14:57:05.462 4304-4304 ashmem com.kotei.fusionpositiondemo.debug E Pinning is deprecated since Android Q. Please use trim or other methods. 2025-08-05 14:57:05.526 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getAllProviders: passive 2025-08-05 14:57:05.526 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getAllProviders: network 2025-08-05 14:57:05.526 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getAllProviders: fused 2025-08-05 14:57:05.526 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getAllProviders: gps 2025-08-05 14:57:05.526 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders true: passive 2025-08-05 14:57:05.526 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders true: fused 2025-08-05 14:57:05.526 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders true: gps 2025-08-05 14:57:05.527 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders false: passive 2025-08-05 14:57:05.527 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders false: network 2025-08-05 14:57:05.527 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders false: fused 2025-08-05 14:57:05.527 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getProviders false: gps 2025-08-05 14:57:05.527 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager getGnssHardwareModelName: Android Studio Emulator GPS 2025-08-05 14:57:05.530 4304-4375 LeakCanary com.kotei.fusionpositiondemo.debug D LeakCanary is currently disabled: Waiting for debugger to detach. 2025-08-05 14:57:05.532 4304-4376 EGL_emulation com.kotei.fusionpositiondemo.debug I Opening libGLESv1_CM_emulation.so 2025-08-05 14:57:05.532 4304-4376 EGL_emulation com.kotei.fusionpositiondemo.debug I Opening libGLESv2_emulation.so 2025-08-05 14:57:05.537 4304-4376 HWUI com.kotei.fusionpositiondemo.debug W Failed to initialize 101010-2 format, error = EGL_SUCCESS 2025-08-05 14:57:05.691 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug W Verification of void com.kotei.fusionpositioningengine.FusionPositionManager$3.onLocationChanged(android.location.Location) took 159.490ms (1078.43 bytecodes/s) (0B arena alloc) 2025-08-05 14:57:05.706 4304-4304 DesktopModeFlags com.kotei.fusionpositiondemo.debug D Toggle override initialized to: OVERRIDE_UNSET 2025-08-05 14:57:05.761 4304-4304 HWUI com.kotei.fusionpositiondemo.debug W Image decoding logging dropped! 2025-08-05 14:57:05.764 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (runtime_flags=0, domain=platform, api=unsupported) from Landroidx/appcompat/widget/ViewUtils; (domain=app) using reflection: allowed 2025-08-05 14:57:05.764 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (runtime_flags=0, domain=platform, api=unsupported) from Landroidx/appcompat/widget/ViewUtils; (domain=app) using reflection: allowed 2025-08-05 14:57:05.783 4304-4304 itiondemo.debug com.kotei.fusionpositiondemo.debug I hiddenapi: Accessing hidden field Lcom/android/internal/policy/DecorView;->mWindow:Lcom/android/internal/policy/PhoneWindow; (runtime_flags=0, domain=platform, api=unsupported) from Lcurtains/internal/WindowSpy$windowField$2; (domain=app) using reflection: allowed 2025-08-05 14:57:05.785 4304-4304 HWUI com.kotei.fusionpositiondemo.debug W Unknown dataspace 0 2025-08-05 14:57:06.288 4304-4308 itiondemo.debug com.kotei.fusionpositiondemo.debug I Compiler allocated 5042KB to compile void android.view.ViewRootImpl.performTraversals() 2025-08-05 14:57:06.422 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager onSatelliteStatusChanged: 6 2025-08-05 14:57:06.501 4304-4304 InsetsController com.kotei.fusionpositiondemo.debug D hide(ime(), fromIme=false) 2025-08-05 14:57:06.501 4304-4304 ImeTracker com.kotei.fusionpositiondemo.debug I com.kotei.fusionpositiondemo.debug:31c4fb58: onCancelled at PHASE_CLIENT_ALREADY_HIDDEN 2025-08-05 14:57:06.990 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager onSatelliteStatusChanged: 6 2025-08-05 14:57:07.976 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager onSatelliteStatusChanged: 6 2025-08-05 14:57:08.979 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager onSatelliteStatusChanged: 6 2025-08-05 14:57:09.979 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager onSatelliteStatusChanged: 6 2025-08-05 14:57:09.987 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager GPS_PROVIDER getLatitude: 37.421998333333335 2025-08-05 14:57:09.987 4304-4304 com.kotei....ionManager com.kotei.fusionpositiondemo.debug D initLocationManager GPS_PROVIDER getLongitude: -122.084 2025-08-05 14:57:10.022 4304-4304 System.out com.kotei.fusionpositiondemo.debug I 2025-08-05 14:57:10.022 [com.kotei.fusionpositionengine.FusionPosition] 初始化融合定位引擎 2025-08-05 14:57:10.023 4304-4304 nativeloader com.kotei.fusionpositiondemo.debug D Load libkoteiLocationJni.so using class loader ns clns-9 (caller=/data/app/~~uvNMhw23neOo_A1NTEkLtA==/com.kotei.fusionpositiondemo.debug-p0bOkHYIGwiXe_JjzTFaBg==/base.apk!classes2.dex): dlopen failed: library "libkoteiLocationJni.so" not found 2025-08-05 14:57:10.024 4304-4304 AndroidRuntime com.kotei.fusionpositiondemo.debug D Shutting down VM 2025-08-05 14:57:10.074 4304-4304 AndroidRuntime com.kotei.fusionpositiondemo.debug E FATAL EXCEPTION: main Process: com.kotei.fusionpositiondemo.debug, PID: 4304 java.lang.UnsatisfiedLinkError: dlopen failed: library "libkoteiLocationJni.so" not found at java.lang.Runtime.loadLibrary0(Runtime.java:1090) at java.lang.Runtime.loadLibrary0(Runtime.java:1012) at java.lang.System.loadLibrary(System.java:1765) at com.kotei.fusionpositionengine.FusionPositionJNI.<clinit>(FusionPositionJNI.java:7) at com.kotei.fusionpositionengine.FusionPosition.<init>(FusionPosition.java:42) at com.kotei.fusionpositionengine.FusionPosition.<init>(FusionPosition.java:18) at com.kotei.fusionpositionengine.FusionPosition$MInstanceHolder.<clinit>(FusionPosition.java:52) at com.kotei.fusionpositionengine.FusionPosition.getInstance(FusionPosition.java:60) at com.kotei.fusionpositioningengine.FusionPositionManager$3.onLocationChanged(FusionPositionManager.java:94) at android.location.LocationListener.onLocationChanged(LocationListener.java:63) at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3303) at android.location.LocationManager$LocationListenerTransport$1.operate(LocationManager.java:3300) at com.android.internal.listeners.ListenerExecutor.lambda$executeSafely$0(ListenerExecutor.java:127) at com.android.internal.listeners.ListenerExecutor$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) at android.os.Handler.handleCallback(Handler.java:995) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loopOnce(Looper.java:248) at android.os.Looper.loop(Looper.java:338) at android.app.ActivityThread.main(ActivityThread.java:9067) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:932) 2025-08-05 14:57:10.081 4304-4304 Process com.kotei.fusionpositiondemo.debug I Sending signal. PID: 4304 SIG: 9 2025-08-05 14:57:10.091 714-809 InputDispatcher system_server E channel '8dca3a2 com.kotei.fusionpositiondemo.debug/com.kotei.fusionpositioningengine.MainActivity' ~ Channel is unrecoverably broken and will be disposed! ---------------------------- PROCESS ENDED (4304) for package com.kotei.fusionpositiondemo.debug ----------------------------
08-06
--------- beginning of main --------- beginning of system 2025-06-05 19:19:52.875 2778-2778 Zygote com.example.diaryapp I seccomp disabled by setenforce 0 2025-06-05 19:19:52.876 2778-2778 xample.diaryap com.example.diaryapp I Late-enabling -Xcheck:jni 2025-06-05 19:19:52.893 2778-2778 xample.diaryap com.example.diaryapp W Unexpected CPU variant for X86 using defaults: x86_64 2025-06-05 19:19:53.227 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden field Landroid/os/Trace;->TRACE_TAG_APP:J (light greylist, reflection) 2025-06-05 19:19:53.227 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (light greylist, reflection) 2025-06-05 19:19:53.258 2778-2778 AppCompatDelegate com.example.diaryapp D Checking for metadata for AppLocalesMetadataHolderService : Service not found 2025-06-05 19:19:53.273 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking) 2025-06-05 19:19:53.273 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking) 2025-06-05 19:19:53.273 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking) 2025-06-05 19:19:53.273 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking) 2025-06-05 19:19:53.293 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection) 2025-06-05 19:19:53.294 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection) 2025-06-05 19:19:53.298 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/graphics/FontFamily;-><init>()V (light greylist, reflection) 2025-06-05 19:19:53.298 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z (light greylist, reflection) 2025-06-05 19:19:53.298 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z (light greylist, reflection) 2025-06-05 19:19:53.298 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/graphics/FontFamily;->freeze()Z (light greylist, reflection) 2025-06-05 19:19:53.298 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/graphics/FontFamily;->abortCreation()V (light greylist, reflection) 2025-06-05 19:19:53.299 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;Ljava/lang/String;II)Landroid/graphics/Typeface; (light greylist, reflection) 2025-06-05 19:19:53.400 2778-2778 OpenGLRenderer com.example.diaryapp D Skia GL Pipeline 2025-06-05 19:19:53.417 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden field Landroid/view/WindowInsets;->CONSUMED:Landroid/view/WindowInsets; (light greylist, reflection) 2025-06-05 19:19:53.417 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/view/View;->getViewRootImpl()Landroid/view/ViewRootImpl; (light greylist, reflection) 2025-06-05 19:19:53.417 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden field Landroid/view/View$AttachInfo;->mVisibleInsets:Landroid/graphics/Rect; (light greylist, reflection) 2025-06-05 19:19:53.417 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden field Landroid/view/ViewRootImpl;->mAttachInfo:Landroid/view/View$AttachInfo; (light greylist, reflection) 2025-06-05 19:19:53.429 2778-2820 <no-tag> com.example.diaryapp D HostConnection::get() New Host Connection established 0x7f2e2dac31c0, tid 2820 2025-06-05 19:19:53.429 2778-2820 <no-tag> com.example.diaryapp W Process pipe failed 2025-06-05 19:19:53.431 2778-2820 ConfigStore com.example.diaryapp I android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 2025-06-05 19:19:53.431 2778-2820 ConfigStore com.example.diaryapp I android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0 2025-06-05 19:19:53.431 2778-2820 OpenGLRenderer com.example.diaryapp I Initialized EGL, version 1.4 2025-06-05 19:19:53.431 2778-2820 OpenGLRenderer com.example.diaryapp D Swap behavior 1 2025-06-05 19:19:53.432 2778-2820 EGL_adreno com.example.diaryapp E CreateContext rcMajorVersion:3, minorVersion:2 2025-06-05 19:19:53.440 2778-2820 EGL_adreno com.example.diaryapp D eglCreateContext: 0x7f2e2da45b20: maj 3 min 2 rcv 3 2025-06-05 19:19:53.440 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:19:53.440 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:19:53.472 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:19:53.472 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:19:53.473 2778-2820 vndksupport com.example.diaryapp D Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace. 2025-06-05 19:19:53.473 2778-2820 vndksupport com.example.diaryapp D Loading /vendor/lib64/hw/gralloc.gmin.so from current namespace instead of sphal namespace. 2025-06-05 19:19:53.476 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:19:53.476 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2db09100, error=EGL_BAD_MATCH 2025-06-05 19:19:53.902 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (light greylist, reflection) 2025-06-05 19:19:53.902 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (light greylist, reflection) 2025-06-05 19:19:53.902 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden method Landroid/os/Trace;->traceCounter(JLjava/lang/String;I)V (light greylist, reflection) 2025-06-05 19:19:58.602 2778-2845 ProfileInstaller com.example.diaryapp D Installing profile for com.example.diaryapp 2025-06-05 19:22:51.307 2778-2778 Choreographer com.example.diaryapp I Skipped 32 frames! The application may be doing too much work on its main thread. 2025-06-05 19:22:51.377 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:22:51.377 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:22:51.401 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:22:51.401 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2a73b480, error=EGL_BAD_MATCH 2025-06-05 19:22:52.875 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:22:52.875 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:22:52.879 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@b70dda7 2025-06-05 19:22:52.882 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:22:52.882 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2db09880, error=EGL_BAD_MATCH 2025-06-05 19:22:53.180 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:22:53.180 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:22:53.197 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:22:53.197 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2a73b480, error=EGL_BAD_MATCH 2025-06-05 19:22:53.203 2778-2778 Glide com.example.diaryapp W Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored 2025-06-05 19:22:59.515 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@dee6c34 2025-06-05 19:22:59.547 2778-2783 xample.diaryap com.example.diaryapp I Compiler allocated 4MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int) 2025-06-05 19:22:59.572 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:22:59.572 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:22:59.586 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:22:59.586 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2db09b80, error=EGL_BAD_MATCH 2025-06-05 19:23:07.999 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:23:07.999 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:23:08.013 2778-2778 xample.diaryap com.example.diaryapp W Accessing hidden field Landroid/view/View;->mAccessibilityDelegate:Landroid/view/View$AccessibilityDelegate; (light greylist, reflection) 2025-06-05 19:23:08.015 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:23:08.015 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2a73b280, error=EGL_BAD_MATCH 2025-06-05 19:23:10.088 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@a431ad9 2025-06-05 19:23:10.141 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:23:10.141 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:23:10.160 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:23:10.160 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2da27800, error=EGL_BAD_MATCH 2025-06-05 19:23:18.089 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:23:18.089 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:23:18.109 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:23:18.109 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2a736700, error=EGL_BAD_MATCH 2025-06-05 19:23:20.289 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@6e93288 2025-06-05 19:23:20.343 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:23:20.343 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:23:20.364 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:23:20.364 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e1d387d00, error=EGL_BAD_MATCH 2025-06-05 19:23:22.178 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:23:22.178 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:23:22.188 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:23:22.188 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e1d5bf900, error=EGL_BAD_MATCH 2025-06-05 19:23:26.082 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:23:26.082 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:23:26.102 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:23:26.102 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e1d5bf900, error=EGL_BAD_MATCH 2025-06-05 19:27:41.046 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@4c87c69 2025-06-05 19:27:41.111 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:27:41.111 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:27:41.124 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:27:41.124 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e1d4afd00, error=EGL_BAD_MATCH 2025-06-05 19:27:42.651 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:27:42.651 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:27:42.667 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:27:42.667 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e1d4af080, error=EGL_BAD_MATCH 2025-06-05 19:27:42.732 2778-2789 System com.example.diaryapp W A resource failed to call close. 2025-06-05 19:27:42.732 2778-2789 chatty com.example.diaryapp I uid=10062(com.example.diaryapp) FinalizerDaemon identical 1 line 2025-06-05 19:27:42.734 2778-2789 System com.example.diaryapp W A resource failed to call close. 2025-06-05 19:27:44.377 2778-2820 OpenGLRenderer com.example.diaryapp D endAllActiveAnimators on 0x7f2e1623df00 (RippleDrawable) with handle 0x7f2e2dab3800 2025-06-05 19:27:44.393 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:27:44.393 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:27:44.416 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:27:44.416 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e16286180, error=EGL_BAD_MATCH 2025-06-05 19:27:48.098 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@845b71b 2025-06-05 19:27:48.195 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:27:48.195 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:27:48.203 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:27:48.203 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2a73b500, error=EGL_BAD_MATCH 2025-06-05 19:27:49.264 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@a6acb9a 2025-06-05 19:27:49.389 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:27:49.389 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:27:49.397 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:27:49.397 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e16286e00, error=EGL_BAD_MATCH 2025-06-05 19:28:07.132 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@e46c675 2025-06-05 19:28:07.237 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:28:07.237 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:28:07.262 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:28:07.262 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e16286e00, error=EGL_BAD_MATCH 2025-06-05 19:28:08.766 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:28:08.766 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:28:08.772 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@8487834 2025-06-05 19:28:08.777 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:28:08.777 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e162dca00, error=EGL_BAD_MATCH 2025-06-05 19:28:08.811 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:28:08.811 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:28:08.829 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:28:08.829 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2db8d000, error=EGL_BAD_MATCH 2025-06-05 19:28:11.031 2778-2778 ActivityThread com.example.diaryapp W handleWindowVisibility: no activity for token android.os.BinderProxy@4a13060 2025-06-05 19:28:11.094 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:28:11.094 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:28:11.115 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:28:11.115 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e16430500, error=EGL_BAD_MATCH 2025-06-05 19:28:12.651 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:28:12.651 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:28:12.671 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:28:12.671 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e162dc500, error=EGL_BAD_MATCH 2025-06-05 19:28:14.160 2778-2820 OpenGLRenderer com.example.diaryapp D endAllActiveAnimators on 0x7f2e165b7b00 (RippleDrawable) with handle 0x7f2e2db3c200 2025-06-05 19:28:14.178 2778-2820 EGL_adreno com.example.diaryapp E [getAttribValue] Bad attribute idx 2025-06-05 19:28:14.178 2778-2820 EGL_adreno com.example.diaryapp D eglGetConfigAttrib: bad attrib 0x3339 2025-06-05 19:28:14.197 2778-2820 EGL_adreno com.example.diaryapp E tid 2820: eglSurfaceAttrib(1615): error 0x3009 (EGL_BAD_MATCH) 2025-06-05 19:28:14.197 2778-2820 OpenGLRenderer com.example.diaryapp W Failed to set EGL_SWAP_BEHAVIOR on surface 0x7f2e2db8d180, error=EGL_BAD_MATCH
06-06
评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值