Android O HIDL not available - android

I have problem with Android O HIDL. The failure log shows it can't find out the service.
However I can see it by adb shell ps -A | grep fingerprint
system 18758 1 17408 3276 pipe_wait 7c79e93e08 R android.hardware.biometrics.fingerprint#2.1-service`
Could anyone give me a hint how to solve the problem? I checked https://source.android.com/devices/architecture/hidl/ but could not get the solution.
Error log:
08-21 06:00:35.864 1890 2264 V FingerprintService: mDeamon was null, reconnect to fingerprint
08-21 06:00:35.864 1890 2264 I system_server: Looking for service android.hardware.biometrics.fingerprint#2.1::IBiometricsFingerprint/default
08-21 06:00:35.864 2240 2240 D wpa_supplicant: nl80211: Set mode ifindex 24 iftype 2 (STATION)
08-21 06:00:35.866 566 566 W /system/bin/hwservicemanager: getTransportFromManifest: Cannot find entry android.hardware.biometrics.fingerprint#2.1::IBiometricsFingerprint in either framework or device manifest, using default transport.
08-21 06:00:35.866 1890 2264 E system_server: service android.hardware.biometrics.fingerprint#2.1::IBiometricsFingerprint declares transport method EMPTY but framework expects hwbinder.
08-21 06:00:35.867 1890 2264 E FingerprintService: Failed to get biometric interface
08-21 06:00:35.867 1890 2264 E FingerprintService: android.os.RemoteException: HwBinder Error: (-2147483648)
08-21 06:00:35.867 1890 2264 E FingerprintService: at android.os.HwBinder.getService(Native Method)
08-21 06:00:35.867 1890 2264 E FingerprintService: at android.hardware.biometrics.fingerprint.V2_1.IBiometricsFingerprint.getService(IBiometricsFingerprint.java:44)
08-21 06:00:35.867 1890 2264 E FingerprintService: at com.android.server.fingerprint.FingerprintService.getFingerprintDaemon(FingerprintService.java:239)
08-21 06:00:35.867 1890 2264 E FingerprintService: at com.android.server.fingerprint.FingerprintService$FingerprintServiceWrapper.isHardwareDetected(FingerprintService.java:1198)
08-21 06:00:35.867 1890 2264 E FingerprintService: at android.hardware.fingerprint.IFingerprintService$Stub.onTransact(IFingerprintService.java:156)
08-21 06:00:35.867 1890 2264 E FingerprintService: at android.os.Binder.execTransact(Binder.java:674)
08-21 06:00:35.867 1890 2264 W FingerprintService: fingerprint HIDL not available

I've succeeded in running my fingerprint HAL on Android 8.1 executing on HiKey
96 board after modified files as below.
Firstly, it's necessary that adding HIDL configures to declare a device as a vendor or you would get VTS failed.
About HIDL configures
device/linaro/hikey/manifest.xml
+<hal format="hidl">
<name>android.hardware.biometrics.fingerprint</name>
<transport>hwbinder</transport>
<version>2.1</version>
<interface>
<name>IBiometricsFingerprint</name>
<instance>default</instance>
</interface>
</hal>
Secondly, finger service will be started after you define it in the file below.
device/linaro/hikey/device-common.mk
+#init finger service and copy
android.hardware.biometrics.fingerprint#2.1-service.rc to
system/vendor/etc/init
+PRODUCT_PACKAGES += \
+android.hardware.biometrics.fingerprint#2.1-service
+# copy permission file of finger service
+PRODUCT_COPY_FILES += \
+frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc
/permissions/android.hardware.fingerprint.xml
Finally, check finger service has been started and running in Android system by using terminal commands such as "adb shell" and "ps | grep finger".
Any suggestion is welcome.

I found out that I need to add the code to the manifest.xml
(Ref. https://source.android.com/devices/architecture/vintf/objects )
<hal format="hidl">
<name>android.hardware.biometrics.fingerprint</name>
<transport>hwbinder</transport>
<impl level="generic"></impl>
<version>2.1</version>
<interface>
<name>IBiometricsFingerprint</name>
<instance>default</instance>
</interface>
</hal>

Related

React Native App crashing on release mode but working fine debug mode

My React native app was working fine few days back on both release and debug mode but from yesterday it keeps crashing on start in release mode, but it is working perfectly fine on debug mode.
When i ran
adb logcat *:E
it gave me following logs but i can't find anything on internet related to this
02-17 18:30:56.108 564 595 E libPowerHal: Could not open '/proc/1705/comm'
02-17 18:30:56.108 564 595 E libPowerHal: error : 13, Permission denied
02-17 18:30:56.260 22398 22398 E com.blackhedge: Not starting debugger since process cannot load the jdwp agent.
02-17 18:30:56.282 564 595 E libPowerHal: perfLockRel handle:293
02-17 18:30:56.517 22398 22398 E libc : Access denied finding property "ro.vendor.df.effect.conflict"
02-17 18:30:56.518 534 22445 E ResolverController: No valid NAT64 prefix (105, <unspecified>/0)
02-17 18:30:56.518 534 22447 E ResolverController: No valid NAT64 prefix (105, <unspecified>/0)
02-17 18:30:56.518 534 22446 E ResolverController: No valid NAT64 prefix (105, <unspecified>/0)
02-17 18:30:56.597 564 595 E libPowerHal: perfLockRel handle:294
02-17 18:30:56.716 1204 1687 E WindowManager: App trying to use insecure INPUT_FEATURE_NO_INPUT_CHANNEL flag. Ignoring
02-17 18:30:56.716 534 22467 E ResolverController: No valid NAT64 prefix (105, <unspecified>/0)
02-17 18:30:56.720 22398 22454 E AndroidRuntime: FATAL EXCEPTION: create_react_context
02-17 18:30:56.720 22398 22454 E AndroidRuntime: Process: com.blackhedge, PID: 22398
02-17 18:30:56.720 22398 22454 E AndroidRuntime: java.lang.RuntimeException: Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
02-17 18:30:56.720 22398 22454 E AndroidRuntime: at com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets(Native Method)
02-17 18:30:56.720 22398 22454 E AndroidRuntime: at com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets(CatalystInstanceImpl.java:239)
02-17 18:30:56.720 22398 22454 E AndroidRuntime: at com.facebook.react.bridge.JSBundleLoader$1.loadScript(JSBundleLoader.java:29)
02-17 18:30:56.720 22398 22454 E AndroidRuntime: at com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle(CatalystInstanceImpl.java:268)
02-17 18:30:56.720 22398 22454 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1371)
02-17 18:30:56.720 22398 22454 E AndroidRuntime: at com.facebook.react.ReactInstanceManager.access$1100(ReactInstanceManager.java:136)
02-17 18:30:56.720 22398 22454 E AndroidRuntime: at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1065)
02-17 18:30:56.720 22398 22454 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)
02-17 18:30:56.730 22398 22457 E fullstory: Destroy scanner called twice
02-17 18:30:56.809 1204 1329 E InputDispatcher: channel '81fad7a com.blackhedge/com.blackhedge.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
02-17 18:30:56.812 4731 4790 E PowerKeeper.Event: oops, parse AM_RESTART_ACTIVITY_AI parameter error
02-17 18:30:56.814 1204 1343 E WifiVendorHal: getWifiLinkLayerStats_1_3_Internal(l.927) failed {.code = ERROR_NOT_SUPPORTED, .description = }
02-17 18:30:57.182 1705 1705 E Launcher: changeViewByFsGestureState, view=ShortcutMenuLayer, alpha=1.0, scale=1.0
02-17 18:30:57.233 564 595 E libPowerHal: perfLockRel handle:295
02-17 18:30:59.825 1204 1343 E WifiVendorHal: getWifiLinkLayerStats_1_3_Internal(l.927) failed {.code = ERROR_NOT_SUPPORTED, .description = }
I tried generating logs and searched on internet the errors i was getting on logs but found nothing
this error is caused by the absence of the index.android.bundle file in the ./android/app/src/main/assets directory
First step:
Create the assets folder if it does not exist in the android/app/src/main/ directory
Second step:
Run the following command line:
react-native bundle --platform android --dev false --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res/
Step three:
Compile the application in release mode

Invalid ELF file

if I run my application on Android I always get this error and the application crashes immediately:
03-25 14:29:44.011 1833 7290 I ActivityManager: START u0 {flg=0x10000000 cmp=cz.jech.muzika/.Muzika} from uid 2000
03-25 14:29:44.093 1833 1998 I ActivityManager: Start proc 17399:cz.jech.muzika/u0a464 for activity cz.jech.muzika/.Muzika
03-25 14:29:44.098 17399 17399 E cz.jech.muzika: Not starting debugger since process cannot load the jdwp agent.
03-25 14:29:44.193 1833 2400 I WindowManager: SURFACE show Surface(name=Splash Screen cz.jech.muzika)/#0xbe60fc9: Splash Screen cz.jech.muzika
03-25 14:29:44.298 14007 17395 D InstalledAppProviderSer: insertAppIntoDb cz.jech.muzika
03-25 14:29:44.302 17399 17414 E AndroidRuntime: Process: cz.jech.muzika, PID: 17399
03-25 14:29:44.302 17399 17414 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: invalid ELF file "/data/app/cz.jech.muzika-iMRmvRSnmwPpVhRlaZJJwg==/lib/arm64/libswscale.so" load segment[4]: p_offset (0x41000) + p_filesz (0x0) ( = 0x41000) past end of file (0x40910)
03-25 14:29:44.306 1833 9531 W ActivityManager: Force finishing activity cz.jech.muzika/.Muzika
03-25 14:29:44.327 1833 4076 I ActivityManager: Process cz.jech.muzika (pid 17399) has died: vis TOP
03-25 14:29:44.336 1140 1237 W SurfaceFlinger: Attempting to destroy on removed layer: AppWindowToken{485887d token=Token{1c63ed4 ActivityRecord{a8f0c27 u0 cz.jech.muzika/.Muzika t4527}}}#0
What could be the root cause of the error? The ffmpeg libraries I use are from here. What does the error "invalid ELF file" mean?
The file /lib/arm64/libswscale.so is corrupt. In particular, it has a PT_LOAD segment with offset that is past the end of the file (file size is 0x40910) and has 0 length.
One way the file may have become corrupt is if you did an FTP transfer and forgot to set binary mode. (Of course there are numerous other ways, such as decompressing the archive and running out of disk space.)
Your best bet is to re-extract the archive, check the length and md5sum of the file, and use scp or something other than ASCII FTP transfer, then verify that the md5sum is still the same on the target device.

Page does not render completely and keeps on flickering through appium but renders correctly when done manually

I have a test case scenario to add medicine to a cart as below:
send medicine name in textbox
from the search results select the medicine by clicking ADD button
verify add medicine
Issue: When I click on the add button in step 2, the medicine gets added, but the page starts to flicker i.e. page keeps on rendering or refreshing (I don't know what to call in exactly), and so I am not able to perform the next steps.
One more concern is that the same scenario works perfectly when executed manually. The issue occurs only for execution done via appium. If I stop the appium server at the point where issue occurs, the flickering stops.
So seems to me like appium is messing something up.
My Android app is React Native app.
At the point of failure I can see below failure in adb logs:
Conv2QueryExtension: Conv2Query not enabled due to current app [com.medlife.customer] not in whitelist
ADB logs:
09-19 15:20:05.274 2132 2132 I LatinIme: onActivate() : EditorInfo = Package = com.medlife.customer : Type = Text : Learning = Disable : Suggestion = Hide : AutoCorrection = Disable : Microphone = Show : Incognito = Disable
09-19 15:20:05.690 2132 2132 W Conv2QueryExtension: Conv2Query not enabled due to current app [com.medlife.customer] not in whitelist
09-19 15:20:10.719 2132 2132 I LatinIme: onActivate() : EditorInfo = Package = com.medlife.customer : Type = Text : Learning = Disable : Suggestion = Hide : AutoCorrection = Disable : Microphone = Show : Incognito = Disable
09-19 15:20:10.770 15240 15240 I chatty : uid=10105(com.medlife.customer) expire 5 lines
09-19 15:20:10.784 2132 2132 W Conv2QueryExtension: Conv2Query not enabled due to current app [com.medlife.customer] not in whitelist
09-19 15:20:10.809 2132 2132 I LatinIme: onActivate() : EditorInfo = Package = com.medlife.customer : Type = Text : Learning = Disable : Suggestion = Hide : AutoCorrection = Disable : Microphone = Show : Incognito = Disable
09-19 15:20:10.916 2132 2132 W Conv2QueryExtension: Conv2Query not enabled due to current app [com.medlife.customer] not in whitelist
ADB logs while executing on real device:
09-26 16:11:30.314 775 775 D SurfaceFlinger: duplicate layer name: changing com.medlife.customer/com.medlife.customer.MainActivity to com.medlife.customer/com.medlife.customer.MainActivity#1
09-26 16:11:30.524 30011 30084 I chatty : uid=10273(com.medlife.customer) expire 45 lines
09-26 16:11:30.611 775 1301 W SurfaceFlinger: Attempting to set client state on removed layer: Splash Screen com.medlife.customer#0
09-26 16:11:30.611 775 1301 W SurfaceFlinger: Attempting to destroy on removed layer: Splash Screen com.medlife.customer#0
09-26 16:11:32.669 30011 30132 I chatty : uid=10273(com.medlife.customer) expire 5 lines
09-26 16:11:32.695 30011 30134 I chatty : uid=10273(com.medlife.customer) expire 4 lines
09-26 16:11:32.980 775 1301 W SurfaceFlinger: Attempting to set client state on removed layer: com.medlife.customer/com.medlife.customer.MainActivity#1
09-26 16:11:32.980 775 1301 W SurfaceFlinger: Attempting to destroy on removed layer: com.medlife.customer/com.medlife.customer.MainActivity#1
09-26 16:11:33.313 30011 30022 I chatty : uid=10273(com.medlife.customer) expire 3 lines
09-26 16:11:33.317 30011 30020 I chatty : uid=10273(com.medlife.customer) expire 36 lines
09-26 16:11:43.478 30011 30011 I chatty : uid=10273(com.medlife.customer) expire 12 lines
09-26 16:11:46.282 1451 1644 D ActivityManager: handleProcessStartedLocked mDoneFinishBooting && app.pid != 0 ---> notifyProcessStart, app.processName = android:ui, app.info = ApplicationInfo{58c1294 android}, app.hostingType = activity, getHostingName() = ComponentInfo{android/com.android.internal.app.ChooserActivity}, getIntentFlag() = 0, getIsPackageRunning() = false, app = ProcessRecord{ae3a8d2 30232:android:ui/1000}, getExtraData() = Bundle[{ACTIVITY_TASK_AFFINITY=android, ACTIVITY_INTENT=Intent { act=android.intent.action.CHOOSER flg=0x800000 cmp=android/com.android.internal.app.ChooserActivity (has extras) }, CALLER_PACKAGE=com.medlife.customer, ACTIVITY_INFO=ActivityInfo{382be16 com.android.internal.app.ChooserActivity}}]
09-26 16:11:47.830 1451 1714 D AR_ADV_APPS_USAGE_COL: com.medlife.customer -> resizable apps -> USAGE 17406
09-26 16:11:51.603 30011 30084 I chatty : uid=10273(com.medlife.customer) expire 624 lines
09-26 16:11:54.508 30011 30011 I chatty : uid=10273(com.medlife.customer) expire 1 line
09-26 16:11:54.619 2492 2492 I AndroidIME: PasswordIme.onActivate() : EditorInfo = Package = com.medlife.customer : Type = Text : Learning = Disable : Suggestion = Show : AutoCorrection = Disable : Microphone = Show : NoPersonalizedLearning = Disable
09-26 16:11:54.798 2492 2492 I ConversationToQueryExtension: Conv2Query not enabled due to current app [com.medlife.customer] not in whitelist
09-26 16:11:55.057 2492 2492 I AndroidIME: LatinIme.onActivate() : EditorInfo = Package = com.medlife.customer : Type = Text : Learning = Disable : Suggestion = Hide : AutoCorrection = Disable : Microphone = Show : NoPersonalizedLearning = Disable
09-26 16:11:55.191 2492 2492 I ConversationToQueryExtension: Conv2Query not enabled due to current app [com.medlife.customer] not in whitelist
09-26 16:11:59.524 30011 30020 I chatty : uid=10273(com.medlife.customer) expire 3 lines
09-26 16:12:09.589 30011 30084 I chatty : uid=10273(com.medlife.customer) expire 541 lines
09-26 16:12:23.113 30011 30084 I chatty : uid=10273(com.medlife.customer) expire 21 lines
09-26 16:12:30.807 1451 2766 I ActivityManager: Force stopping com.medlife.customer appid=10273 user=0: from pid 30567
09-26 16:12:30.812 1451 2766 I ActivityManager: Killing 30011:com.medlife.customer/u0a273 (adj 0): stop com.medlife.customer
09-26 16:12:30.818 1451 2766 W ActivityManager: Force removing ActivityRecord{4610f1b u0 com.medlife.customer/.MainActivity t24974}: app died, no saved state
09-26 16:12:30.926 1451 1714 D AR_ADV_APPS_USAGE_COL: com.medlife.customer -> resizable apps -> USAGE 38817
09-26 16:12:31.912 1451 4565 I ActivityManager: Force stopping com.medlife.customer appid=10273 user=0: from pid 30594
09-26 16:13:41.434 3974 31010 D PowerCalculator: topApCounter com.medlife.customer
09-26 16:13:41.434 3974 31010 D PowerCalculator: topApCounter com.medlife.customer
09-26 16:13:41.434 3974 31010 D PowerCalculator: topApCounter com.medlife.customer
ADB logs post after disabling:
09-30 12:43:17.696 1992 3969 I ActivityManager: Force stopping com.medlife.customer appid=10102 user=0: from pid 5797
09-30 12:43:17.697 1992 3969 I ActivityManager: Killing 5609:com.medlife.customer/u0a102 (adj 0): stop com.medlife.customer
09-30 12:43:17.709 1992 3969 W ActivityManager: Force removing ActivityRecord{8440c12 u0 com.medlife.customer/.MainActivity t113}: app died, no saved state
09-30 12:43:18.010 1992 3969 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.medlife.customer/.MainActivity} from uid 2000
09-30 12:43:18.174 1992 2012 I ActivityManager: Start proc 5800:com.medlife.customer/u0a102 for activity com.medlife.customer/.MainActivity
09-30 12:43:18.505 5800 5819 I FA : adb shell setprop debug.firebase.analytics.app com.medlife.customer
09-30 12:43:18.975 5800 5879 I edlife.custome: Thread[44,tid=5879,Native,Thread*=0x75721b54ec00,peer=0x12fd1880,"create_react_context"] recursive attempt to load library "/data/app/com.medlife.customer-3_0cUdZvnpi5RWm0mKBAwA==/lib/x86_64/libfb.so"
09-30 12:43:19.225 5800 5891 D : Successfully queried cache dir: /data/user_de/0/com.medlife.customer/code_cache
09-30 12:43:19.226 5800 5891 D RenderScript: Setting cache dir: /data/user_de/0/com.medlife.customer/code_cache
09-30 12:43:19.433 1928 1928 D SurfaceFlinger: duplicate layer name: changing com.medlife.customer/com.medlife.customer.MainActivity to com.medlife.customer/com.medlife.customer.MainActivity#1
09-30 12:43:19.614 5800 5883 I edlife.custome: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceIdService" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.medlife.customer-3_0cUdZvnpi5RWm0mKBAwA==/base.apk"],nativeLibraryDirectories=[/data/app/com.medlife.customer-3_0cUdZvnpi5RWm0mKBAwA==/lib/x86_64, /data/app/com.medlife.customer-3_0cUdZvnpi5RWm0mKBAwA==/base.apk!/lib/x86_64, /system/lib64]]
09-30 12:43:19.616 5800 5883 I edlife.custome: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceIdService" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.medlife.customer-3_0cUdZvnpi5RWm0mKBAwA==/base.apk"],nativeLibraryDirectories=[/data/app/com.medlife.customer-3_0cUdZvnpi5RWm0mKBAwA==/lib/x86_64, /data/app/com.medlife.customer-3_0cUdZvnpi5RWm0mKBAwA==/base.apk!/lib/x86_64, /system/lib64]]
09-30 12:43:19.694 1992 2018 I ActivityManager: Displayed com.medlife.customer/.MainActivity: +1s549ms
09-30 12:43:21.337 1928 2346 W SurfaceFlinger: Attempting to set client state on removed layer: com.medlife.customer/com.medlife.customer.MainActivity#1
09-30 12:43:21.337 1928 2346 W SurfaceFlinger: Attempting to destroy on removed layer: com.medlife.customer/com.medlife.customer.MainActivity#1
09-30 12:43:23.086 5800 5952 E cr_VariationsUtils: Failed reading seed file "/data/user/0/com.medlife.customer/app_webview/variations_seed": /data/user/0/com.medlife.customer/app_webview/variations_seed (No such file or directory)
09-30 12:43:34.090 2128 2128 I LatinIme: onActivate() : EditorInfo = Package = com.medlife.customer : Type = Text : Learning = Disable : Suggestion = Hide : AutoCorrection = Disable : Microphone = Show : Incognito = Disable
09-30 12:43:34.395 2128 2128 W Conv2QueryExtension: Conv2Query not enabled due to current app [com.medlife.customer] not in whitelist
09-30 12:43:37.846 2128 2128 I LatinIme: onActivate() : EditorInfo = Package = com.medlife.customer : Type = Text : Learning = Disable : Suggestion = Hide : AutoCorrection = Disable : Microphone = Show : Incognito = Disable
09-30 12:43:37.856 2128 2128 W Conv2QueryExtension: Conv2Query not enabled due to current app [com.medlife.customer] not in whitelist
09-30 12:43:38.429 2128 2128 I LatinIme: onActivate() : EditorInfo = Package = com.medlife.customer : Type = Text : Learning = Disable : Suggestion = Hide : AutoCorrection = Disable : Microphone = Show : Incognito = Disable
09-30 12:43:38.465 2128 2128 W Conv2QueryExtension: Conv2Query not enabled due to current app [com.medlife.customer] not in whitelist
09-30 12:46:28.724 1992 2665 I ActivityManager: Force stopping com.medlife.customer appid=10102 user=0: from pid 6074
09-30 12:46:28.724 1992 2665 I ActivityManager: Killing 5800:com.medlife.customer/u0a102 (adj 0): stop com.medlife.customer
09-30 12:46:28.725 1992 2665 W ActivityManager: Force removing ActivityRecord{f56adcb u0 com.medlife.customer/.MainActivity t114}: app died, no saved state
09-30 12:46:29.671 1992 2666 I ActivityManager: Force stopping com.medlife.customer appid=10102 user=0: from pid 6091
You need to increase the RAM and internal storage size that you are assigning to the emulator in order for that exception to go away. You are trying to do some action in the android code that's eating up the emulator's RAM and internal memory.

GasService in android logcat

I've got a few errors in my logcat that keep on repeating every second or so, but I don't understand where they come from ?
1539 1547 E GED : Failed to execute ioctl 3222824709, BridgeID(5), err(-1)
1539 1547 E GasService: Error on query GED info, err=1
1539 1547 E GED : Failed to execute ioctl 3222824709, BridgeID(5), err(-1)
1539 1547 E GasService: Error on query GED info, err=1
1060 1161 E ApplockRunningService.TAG: AppLockService------------->tasks = [android.app.ActivityManager$RunningTaskInfo#40598b4]
1060 1161 E ApplockRunningService.TAG: AppLockService------------->packname = com.android.launcher3
1060 1161 E ApplockRunningService.TAG: getLockFlag------------> c = android.content.ContentResolver$CursorWrapperInner#a210cdd
When listing the android services, there is no such "GasService";
there is also no "Gas" process listed with "ps".
Additional info: the process 1539 is launched by /vendor/bin/ged_srv
which is a binary file that is not visible except by root :-/
So, where do these errors come from ?
Thank you !
GasService see => GpuAppSpectatorService
native:
/system/bin/gas_srv
/system/lib/libgas.so
pkg:
com.mediatek.GpuAppSpectatorService
init:
on property:sys.boot_completed=1
start gas_srv
service gas_srv /system/bin/gas_srv
class core
user system
group system
disabled
se policy:
/system/bin/gas_srv u:object_r:gas_srv_exec:s0

Cannot execute HelloJni app with Valgrind

I am trying to analyse a simple HelloJni project (built in Android Studio) using Valgrind and I am facing some troubles in the final steps when executing the application with Valgrind.
I am developing on a Nexus 4 device with Android 5.1.
Installation info:
I have used the "build_valgrind.sh" script to cross-compile valgrind (for api android-21) and to copy it to /data/local/Inst.
I have also copied "start_valgrind.sh" to /data/local/ folder, giving all permissions ("chmod 777) to the script.
Then I set properties to the HelloJni app.
adb shell "su -c 'setprop wrap.com.example.hellojni \"logwrapper /data/local/start_valgrind.sh \"'"
The actual problem comes when I try to execute the app:
adb shell "su -c 'am start -a android.intent.action.MAIN -n com.example.hellojni/.HelloJni'"
The logcat output I get is posted at the end.
When I execute the HelloJni app without setting logwrapper properties, it executes as expected. I am not sure what I am doing wrong, but it looks as if I have problems with "CheckJNI is OFF". Has someone been able to execute any application with this approach? Any help will be appreciated.
logcat_output
--------- beginning of main
I/Finsky (19498): [1] com.google.android.finsky.services.j.a(148): Installation state replication succeeded.
E/kickstart( 627): Wrote to /sys/power/wake_lock
E/kickstart( 627): Received file "/dev/block/platform/msm_sdcc.1/by-name/m9kefs1"
E/kickstart( 627): 786432 bytes transferred in 0.185s (4.06 MBps)
E/kickstart( 627): Successfully downloaded files from target
E/kickstart( 627): Wrote to /sys/power/wake_unlock
E/kickstart( 627): Sahara protocol completed
D/AndroidRuntime(22076): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
D/AndroidRuntime(22076): CheckJNI is OFF
D/AndroidRuntime(22077): >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
D/AndroidRuntime(22077): CheckJNI is OFF
W/app_process32_o(22077): type=1400 audit(0.0:317): avc: denied { write } for name="system#framework#boot.art" dev="mmcblk0p23" ino=185108 scontext=u:r:shell:s0 tcontext=u:object_r:dalvikcache_data_file:s0 tclass=file
D/AndroidRuntime(22076): Calling main entry com.android.commands.am.Am
--------- beginning of system
I/ActivityManager(18563): START u0 {act=android.intent.action.MAIN flg=0x10000000 cmp=com.example.hellojni/.HelloJni} from uid 0 on display 0
V/WindowManager(18563): addAppToken: AppWindowToken{385169a4 token=Token{13e037 ActivityRecord{2ce09936 u0 com.example.hellojni/.HelloJni t3}}} to stack=1 task=3 at 0
D/AndroidRuntime(22077): Calling main entry com.android.commands.am.Am
I/art (22110): Late-enabling -Xcheck:jni
I/start_valgrind.sh(22127): valgrind: cannot create log file '/sdcard/valgrind.log.22128': Permission denied
I/start_valgrind.sh(22127): start_valgrind.sh terminated by exit(1)
W/Zygote (18317): Error reading pid from wrapped process, child may have died
W/Zygote (18317): java.io.EOFException
W/Zygote (18317): at libcore.io.Streams.readFully(Streams.java:83)
W/Zygote (18317): at java.io.DataInputStream.readInt(DataInputStream.java:103)
W/Zygote (18317): at com.android.internal.os.ZygoteConnection.handleParentProc(ZygoteConnection.java:979)
W/Zygote (18317): at com.android.internal.os.ZygoteConnection.runOnce(ZygoteConnection.java:276)
W/Zygote (18317): at com.android.internal.os.ZygoteInit.runSelectLoop(ZygoteInit.java:788)
W/Zygote (18317): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
I/ActivityManager(18563): Start proc 22110:com.example.hellojni/u0a125 for activity com.example.hellojni/.HelloJni
D/AndroidRuntime(22076): Shutting down VM
I/art (22076): Debugger is no longer active
D/AndroidRuntime(22077): Shutting down VM
I/art (22077): Debugger is no longer active
I/Zygote (18317): Process 22110 exited cleanly (1)
W/ActivityManager(18563): Process ProcessRecord{173c48d3 22110:com.example.hellojni/u0a125} failed to attach
I/ActivityManager(18563): Killing 22110:com.example.hellojni/u0a125 (adj -100): start timeout

Categories

Resources