custom service Crashed in Android 9

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

custom service Crashed in Android 9

Jump to solution
4,909 Views
vinothkumars
Senior Contributor IV

Dear NXP,

 

I am working on i.MX 6Quad SABRE-SD with Android 9. I developed the custom service to start OBD. But after some time the process closed by tomestone service.

10-01 07:13:47.883 1246 1246 D com.indiev.vehicledata.core.VehicleDataService: registerForClimateControlData : IClimateControl
10-01 07:13:47.883 1246 1246 D com.indiev.vehicledata.core.VehicleDataService: registerForClimateControl_obdDataHandler : IClimateControl
10-01 07:13:47.886 1246 1246 D com.indiev.vehicledata.core.VehicleDataService: registerForVehicleBatteryData : IVehicleBattery
10-01 07:13:47.886 1246 1246 D com.indiev.vehicledata.core.VehicleDataService: registerForVehicleBatteryData_obdDataHandler : IVehicleBattery
10-01 07:13:47.886 1246 1246 D com.indiev.vehicledata.core.OBDDataHandler: registerForVehicleBatteryData : IVehicleBattery
10-01 07:13:47.888 1246 1246 D com.indiev.vehicledata.core.VehicleDataService: registerForVehicleMotorData : IVehicleMotor
10-01 07:13:47.888 1246 1246 D com.indiev.vehicledata.core.VehicleDataService: registerForVehicleMotorData_obdDataHandler : IVehicleMotor
10-01 07:13:47.888 1246 1246 D com.indiev.vehicledata.core.OBDDataHandler: registerForVehicleMotorData : IVehicleMotor
10-01 07:13:47.860 1246 1246 I Thread-8: type=1400 audit(0.0:105): avc: denied { write } for name="vcan" dev="tmpfs" ino=12330 scontext=u:r:untrusted_app:s0:c44,c256,c512,c768 tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=1
10-01 07:13:47.949 542 542 W System : ClassLoader referenced unknown path:
10-01 07:13:47.983 390 486 D NotificationSQLiteLog: Pruned event entries: 0
10-01 07:13:47.860 267 267 I obd : type=1400 audit(0.0:107): avc: denied { read } for path="socket:[12325]" dev="sockfs" ino=12325 scontext=u:r:usb-update:s0 tcontext=u:r:usb-update:s0 tclass=can_socket permissive=1
10-01 07:13:48.578 250 250 E /vendor/bin/hw/android.hardware.health@2.0-service.imx: /sys/block/mmcblk0/stat: ReadFileToString failed.
10-01 07:13:48.579 277 321 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
10-01 07:13:49.187 267 282 F libc : FORTIFY: memcpy: prevented 255-byte write into 50-byte buffer
10-01 07:13:49.187 267 282 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 282 (obd), pid 267 (obd)
10-01 07:13:49.277 1278 1278 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
10-01 07:13:49.278 288 288 I /system/bin/tombstoned: received crash request for pid 282
10-01 07:13:49.280 1278 1278 I crash_dump32: performing dump of process 267 (target tid = 282)
10-01 07:13:49.283 1278 1278 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-01 07:13:49.283 1278 1278 F DEBUG : Build fingerprint: 'Android/sabresd_6dq/sabresd_6dq:9/2.2.0-ga-rc3/pradeep09271927:userdebug/dev-keys'
10-01 07:13:49.283 1278 1278 F DEBUG : Revision: '0'
10-01 07:13:49.283 1278 1278 F DEBUG : ABI: 'arm'
10-01 07:13:49.283 1278 1278 F DEBUG : pid: 267, tid: 282, name: obd >>> /system/bin/obd <<<
10-01 07:13:49.283 1278 1278 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------

Thanks & Regards,

VinothS.

Regards,
Vinothkumar Sekar
Labels (2)
0 Kudos
1 Solution
3,943 Views
vinothkumars
Senior Contributor IV

There is a temporary solutions to fix this problem to increase the buffer size.

FORTIFY: memcpy: prevented 255-byte write into 50-byte buffer

As per this content , I increased the buffer size.

Thanks & Regards,

VinothS.

Regards,
Vinothkumar Sekar

View solution in original post

0 Kudos
3 Replies
3,944 Views
vinothkumars
Senior Contributor IV

There is a temporary solutions to fix this problem to increase the buffer size.

FORTIFY: memcpy: prevented 255-byte write into 50-byte buffer

As per this content , I increased the buffer size.

Thanks & Regards,

VinothS.

Regards,
Vinothkumar Sekar
0 Kudos
3,943 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Developing custom Android services is out of our scope of support. Since is more related to the App creation than to our Android BSP. I apologize for the inconvenience this could give you.

Best regards,

Diego.

0 Kudos
3,943 Views
vinothkumars
Senior Contributor IV

Thank you Diego. I am working on that. 

VinothS.

Regards,
Vinothkumar Sekar
0 Kudos