{ "id": "171002", "key": "AC-5560", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2018-03-21T22:59:19.000+0000", "created": "2018-01-30T09:37:20.000+0000", "labels": [ "android", "android-6", "authentication", "fingerprint", "ti.identity", "touchid" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-22T17:43:59.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "In Ti.identity module, there is an additional step after a fingerprint validation success, which is to try to encrypt some data with the generated key in createKey method .\r\n\r\n[See onAuthenticationSucceeded method in FingerPrintHelper.java|https://github.com/azamouchi/titanium-identity/blob/63e0bd48d234b6211095007dd0750da9bf840d8c/android/src/ti/identity/FingerPrintHelper.java#L149]\r\n\r\n[See tryEncrypt method in FingerPrintHelper.java|https://github.com/azamouchi/titanium-identity/blob/63e0bd48d234b6211095007dd0750da9bf840d8c/android/src/ti/identity/FingerPrintHelper.java#L118]\r\n\r\nThe problem is, on some android devices running Android 6.0 the encryption of the data with the previously generated key raise an exception, which leads to fails the authentification.\r\nAs mentioned in this [stackOverflow thread|https://stackoverflow.com/questions/36043912/error-after-fingerprint-touched-on-samsung-phones-android-security-keystoreexce], the problem seems to be encountered randomly on some android devices running Android 6 like Samsung, OnPlus, in my case i face the problem every time i try to authenticate with [this device|https://www.gsmarena.com/wiko_u_feel_lite-8204.php], which make the fingerprint authentification impossible.\r\n\r\nMy question : Is this encryption step mandatory ? can we make it optional ? since the onAuthenticationSucceeded method has been already called, which means that the fingerprint verification is OK.", "attachment": [ { "id": "64798", "filename": "Samsung_Galaxy_S6_Android_7_0_0.png", "author": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "created": "2018-02-04T19:39:59.000+0000", "size": 47600, "mimeType": "image/png" }, { "id": "64802", "filename": "testTouchId.zip", "author": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "created": "2018-02-04T19:43:44.000+0000", "size": 10014362, "mimeType": "application/zip" }, { "id": "64799", "filename": "Wiko_U_FEEL_LITE_Android_6_0_0.png", "author": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "created": "2018-02-04T19:40:02.000+0000", "size": 32430, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Ti.identity failure to encrypt the data with the generated key.", "creator": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "subtasks": [], "reporter": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "environment": "Titanium SDK : 7.0.1.GA\r\nAndroid : 6.0\r\nDevices : Not on all devices, mostly (Samsung, OnPlus, Nexus, Wiko)", "comment": { "comments": [ { "id": "433891", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you please provide a full reproducible code/project that we can test to validate the issue on some of those mentioned devices? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-01-31T17:51:17.000+0000", "updated": "2018-01-31T17:51:17.000+0000" }, { "id": "434013", "author": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "body": "Hi, Sorry for the delay.\r\n\r\nYou can find attached, a simple project that uses the packaged module version of ti.identity (SKD 7.0.1.GA).\r\ni tested the app on a [Wiko device|https://www.gsmarena.com/wiko_u_feel_lite-8204.php] (Android 6.0.0) and A Samsung Galaxy S6 (Android 7.0.0), the problem occur on Wiko and not on Samsung. (See attached screen shots)\r\n\r\n!Samsung_Galaxy_S6_Android_7_0_0.png|thumbnail! !Wiko_U_FEEL_LITE_Android_6_0_0.png|thumbnail! \r\n\r\nTest project : [^testTouchId.zip] ", "updateAuthor": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "created": "2018-02-04T19:43:51.000+0000", "updated": "2018-02-04T19:44:26.000+0000" }, { "id": "434813", "author": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "body": "Any news ? have you been able to reproduce the problem ?", "updateAuthor": { "name": "azamouchi", "key": "azamouchi", "displayName": "Ayoub Zamouchi", "active": true, "timeZone": "Africa/Lagos" }, "created": "2018-02-23T11:10:01.000+0000", "updated": "2018-02-23T11:10:12.000+0000" }, { "id": "434848", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, So far we are unable to reproduce the issue. We don't have your specific device. Can you run a trace log of the issue? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-02-23T22:24:48.000+0000", "updated": "2018-02-23T22:24:48.000+0000" }, { "id": "435692", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~azamouchi], Can you follow up here? Whats the update of your issue? ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-03-16T22:50:02.000+0000", "updated": "2018-03-16T22:50:02.000+0000" }, { "id": "435852", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I notice you linked to a fork of {{ti.identity}}, are you using this fork? If so, try using the latest [ti.identity-android-2.1.0.zip|https://github.com/appcelerator-modules/titanium-identity/releases/download/android-2.1.0/ti.identity-android-2.1.0.zip] release", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-03-22T17:43:59.000+0000", "updated": "2018-03-22T17:43:59.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }