From 36b972e87ada7e0e388384aa116479c32efd67aa Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 26 Jul 2019 14:16:10 +0900 Subject: [PATCH 01/16] Update package version to 1.0.21 Change-Id: Ibe2856b5cc3b7c6dfb9ff8422c11964df6510ef2 Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index 1737e75..59769cf 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index 4f9ceea..0c4eeb1 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.20 +Version: 1.0.21 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From e5314007226f49cd2662418f5a87e3afab34ab42 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 22 Aug 2019 14:27:24 +0900 Subject: [PATCH 02/16] Use hash-signer except tv profile Instead of hash-signer, Use a XML Digital Signatures way. Change-Id: I6514127348bb7415e5e1025262cf231d455d657d Signed-off-by: Jihoon Kim --- packaging/org.tizen.autofilld.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index 0c4eeb1..4b4feae 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -7,7 +7,6 @@ License: Apache-2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: tidl -BuildRequires: hash-signer BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(efl) @@ -19,6 +18,15 @@ BuildRequires: pkgconfig(capi-appfw-service-application) BuildRequires: pkgconfig(capi-appfw-preference) BuildRequires: pkgconfig(capi-appfw-app-manager) +%if "%{?profile}" == "tv" + %define __hash_signing 0 +%else + %define __hash_signing 1 +%endif + +%if 0%{?__hash_signing} +BuildRequires: hash-signer +%endif %description Autofill Daemon @@ -57,12 +65,16 @@ make %{?jobs:-j%jobs} rm -rf %{buildroot} %make_install +%if 0%{?__hash_signing} %define tizen_sign 1 %define tizen_sign_base /usr/apps/%{name} %define tizen_sign_level platform %define tizen_author_sign 1 %define tizen_dist_sign 1 - +%else + install -m 0644 sign/tv/author-signature.xml "%{buildroot}"/%{TZ_SYS_RO_APP}/%{name} + install -m 0644 sign/tv/signature1.xml "%{buildroot}"%{TZ_SYS_RO_APP}/%{name} +%endif %post -- 2.7.4 From 7c56a15af6fadd6e41bd3628e8625d334dc29b0e Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 23 Aug 2019 11:24:48 +0900 Subject: [PATCH 03/16] Update package version to 1.0.22 Change-Id: I0119dd02d8035e75df740b7016e6fada35642817 Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index 59769cf..72e3958 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index 4b4feae..32d5a28 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.21 +Version: 1.0.22 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From 95f8bc1b93c4662253afb4ffeef29c6462175aff Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 26 Aug 2019 11:30:08 +0900 Subject: [PATCH 04/16] Add missing public signature files for tv Change-Id: I3367560710c42a98ec57a0f89831ec27ae55d723 Signed-off-by: Jihoon Kim --- sign/tv/author-signature.xml | 74 ++++++++++++++++++++++++++++++++++++++++++++ sign/tv/signature1.xml | 74 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 148 insertions(+) create mode 100644 sign/tv/author-signature.xml create mode 100644 sign/tv/signature1.xml diff --git a/sign/tv/author-signature.xml b/sign/tv/author-signature.xml new file mode 100644 index 0000000..eaabe07 --- /dev/null +++ b/sign/tv/author-signature.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + e2rGZ9lURQWep1IIbrRk2NYMw5EXlejQt2B0bMLUyoc= + + + none + + + +MIIDszCCApugAwIBAgIBAjANBgkqhkiG9w0BAQsFADB/MQswCQYDVQQGEwJLUjEU +MBIGA1UECAwLU291dGggS29yZWExDjAMBgNVBAcMBVN1d29uMSYwJAYDVQQKDB1T +YW1zdW5nIEVsZWN0cm9uaWNzIENvLiwgTHRkLjELMAkGA1UECwwCVkQxFTATBgNV +BAMMDFZEIEF1dGhvciBDQTAeFw0xNjAxMDEwMDAwMDBaFw0yOTEyMzEyMzU5NTla +MIGJMQswCQYDVQQGEwJLUjEOMAwGA1UECBMFU3V3b24xDjAMBgNVBAcTBVN1d29u +MRwwGgYDVQQKExNTYW1zdW5nIEVsZWN0cm9uaWNzMQswCQYDVQQLEwJWRDEvMC0G +A1UEAxMmU2Ftc3VuZyBFbGVjdHJvbmljcyBJbi1Ib3VzZSBEZXZlbG9wZXIwggEi +MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC4/rIDyVO2TwqRqJKW6M/wJx05 +wag57eFNoSfOd+LQEIz5Py1JTlqi+J6RS8DP98OiTPEqQardeTgq29abrdst5V4d +k/kHTwNe+5zOlPZICzvIhqXZOImFRbZ3HX+gcJ6x+mvzUom4JaUrJ4fZ6B2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WRDEVMBMGA1UEAwwMVkQgQXV0aG9yIENBMIIBIjANBgkq +hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1SaxfDNXQMUVE/7tqv/XcaAcgQGXMI/o +o2PF1PH18IBZLnazaA8UOCAooBQO4WJpnj3KouTBmr07bKG6fyJJunzEKsdMNjkS +6orh2KJUtBteD59YB8rh9nLqwsTGANIEKZd4C9BiB0DQnYk6dw1qtdcCcGuEvNk9 +jtxTuvFQo9r0DRPC16mN+sDd1rsxYq9ixZ8axPIxdECawOEOHzBrmyG/Mo7KTjf0 +sUUfanQXhVuajRBX3i28F4BBXt6ruXpm7MNWgKz6mZryJ5MQLetW1YvXS2PXQXty +U8vwxqAChfQiAW0yGunP8o/YNAYcu1bIXKc25RP2ReVZi2+53QwdmQIDAQABoxAw +DjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBB7za36fUCusE6q1Ta +U+0WPz+dkumosXV03HxzcqqcajP/5OumrikQx7LHbRlvLkIPlPOH8yMMS454XCgs +wnSoOxgeorzBchDJll9z+rTaQro7rmCN7TS/N9l2rIEaa/RVEQPUeEeE4yDeMf61 +aDhPEhnNdylV0kyS3YLkJd2KBPedsSKkCWUCi2F9g2bHrnuggkEQtOoP2kTBFKvq +gNAJEzm5q6EdV0Ya0JFescY5oUmtu8ayTc1cBS6OvadXoN/Po62Ir6BOc1JI0tnU +AUlOmJ+Ku5ZRJCrL80ozpbcvz6JU+Xefs4e/uHpmxHSolvHnzTGm866k6JZhj0ug +deAD + + + + + + + + + + + + + + + + diff --git a/sign/tv/signature1.xml b/sign/tv/signature1.xml new file mode 100644 index 0000000..5ce25ec --- /dev/null +++ b/sign/tv/signature1.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + abSCdQC03ZcPoEN8T0eWSILDIhDi2uNziivgdw1gmmQ= + + + none + + + +MIIDrjCCApagAwIBAgIBAjANBgkqhkiG9w0BAQsFADCBkzELMAkGA1UEBhMCS1Ix +FDASBgNVB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QYJKoZIhvcNAQELBQADggEBAAwiXbmi+g7f+id4kUhwAEQZCKV2csLi +mRbcNSQ4OId+RS3Rqy0LrOi1mA8CZlPJbGRXhWol8AX9Y/4a1Ics4yJZGs27CFZh +qksrEfiQcmS+LjrmadC1a/07+DMujmVyexYX9++4BlXxbBGnTQWQtQwiB9B7XD0D +Gi2lce/ikQNOMAnCuhVa7+009RCa78EL1CtbieJuBg7mPN9Lo9nlNWoRIlx/xL2e +/dToQE0FGpAVorpDyGiLs5fvv7QDGm2UggC3/VlSHxoAglZ3LUwELQhAYA6BThv3 +CTH9rvmnUijqNNo45m7AgdaxdLE7lyMcNOy3yb6ErleUXCIPXbibFjY= + + + + + + + + + + + + + + + + -- 2.7.4 From 294e93adbf00fc0f97d936d03a3e72164fa0da1a Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 26 Aug 2019 11:31:26 +0900 Subject: [PATCH 05/16] Update package version to 1.0.23 Change-Id: Iea7247edfbf56e43fc69dfc43a476af07012f4ac Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index 72e3958..2df0ecf 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index 32d5a28..f302f59 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.22 +Version: 1.0.23 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From c0fad77f7307a5661aa2b9ff6d99522a56dae2d1 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 11 Sep 2019 19:25:08 +0900 Subject: [PATCH 06/16] Support interfaces for canceling fill request Change-Id: I5016ad907613cba771227360fa4cab07f2a2e588 Signed-off-by: Jihoon Kim --- src/autofill-daemon.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ tidl/autofill.tidl | 1 + tidl/autofill_service.tidl | 1 + 3 files changed, 47 insertions(+) diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index 5acfa5a..4e762da 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -449,6 +449,50 @@ end: return 0; } +static int __autofill_cancel_fill_request_cb(rpc_port_stub_AutofillAppPort_context_h context, int context_id, rpc_port_autofill_view_info_h vi, void *user_data) +{ + char *sender = NULL; + char *view_id = NULL; + + if (!g_connected) { + LOGW("Not connected to autofill service"); + return 0; + } + + if (!svc_rpc_h) { + LOGW("RPC port for autofill service is not created"); + return 0; + } + + rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender); + rpc_port_autofill_view_info_get_view_id(vi, &view_id); + + LOGD("app id : %s, view id : %s, context id : %d", sender, view_id, context_id); + + rpc_port_autofill_svc_view_info_h svi = NULL; + if (rpc_port_autofill_svc_view_info_create(&svi) != 0) { + goto end; + } + + rpc_port_autofill_svc_view_info_set_app_id(svi, sender); + rpc_port_autofill_svc_view_info_set_view_id(svi, view_id); + + rpc_port_autofill_view_info_foreach_items(vi, __view_info_item_cb, svi); + + rpc_port_proxy_AutofillSvcPort_invoke_cancel_fill_request(svc_rpc_h, context_id, svi); + + rpc_port_autofill_svc_view_info_destroy(svi); + +end: + if (sender) + free(sender); + + if (view_id) + free(view_id); + + return 0; +} + static int __commit_cb(rpc_port_stub_AutofillAppPort_context_h context, int context_id, rpc_port_autofill_save_view_info_h vi, void *user_data) { char *sender = NULL; @@ -948,6 +992,7 @@ bool service_app_create(void *data) __auth_info_request_cb, __autofill_fill_request_cb, __commit_cb, + __autofill_cancel_fill_request_cb }; ret = rpc_port_stub_AutofillAppPort_register(&callback, NULL); diff --git a/tidl/autofill.tidl b/tidl/autofill.tidl index 803697e..58020d4 100644 --- a/tidl/autofill.tidl +++ b/tidl/autofill.tidl @@ -68,4 +68,5 @@ interface AutofillAppPort { int request_auth_info(int context_id, autofill_view_info vi); int send_fill_request(int context_id, autofill_view_info vi); int commit(int context_id, autofill_save_view_info vi); + int cancel_fill_request(int context_id, autofill_view_info vi); } diff --git a/tidl/autofill_service.tidl b/tidl/autofill_service.tidl index 06d1aa3..78241ad 100644 --- a/tidl/autofill_service.tidl +++ b/tidl/autofill_service.tidl @@ -71,4 +71,5 @@ interface AutofillSvcPort { void send_fill_request(int context_id, autofill_svc_view_info vi) async; void commit(int context_id, autofill_svc_save_view_info si) async; void request_terminate() async; + void cancel_fill_request(int context_id, autofill_svc_view_info vi) async; } -- 2.7.4 From e7bf93eb204ab4870b19dc54addac3fde826e92c Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 18 Sep 2019 14:20:55 +0900 Subject: [PATCH 07/16] Update package version to 1.0.24 Change-Id: Idaeac53c36d5649847ca51b18070ddb63e05a0a1 Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index 2df0ecf..b0be0f7 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index f302f59..f17b71c 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.23 +Version: 1.0.24 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From 1f91aafed97c7ad4f1b51b19aea81880919c45e8 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 8 Nov 2019 11:27:14 +0900 Subject: [PATCH 08/16] Apply secure options to compile flags Change-Id: I8eee9e8dabb0faf01698cd70f66a6b4910c8bc8c Signed-off-by: Jihoon Kim --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7613bc..000d611 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ ENDFOREACH(flag) ADD_DEFINITIONS("-DEXPORTED=__attribute__((visibility(\"default\")))") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIE") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,relro -fPIE -pie") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") FIND_PROGRAM(UNAME NAMES uname) -- 2.7.4 From bba8aeba45e8d4839fef73bf345cf9f515a7b587 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 8 Nov 2019 11:27:49 +0900 Subject: [PATCH 09/16] Update package version to 1.0.25 Change-Id: Idddcb5a0a8a626380dfef44641d9246ea3d11962 Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index b0be0f7..810d56c 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index f17b71c..9fa1a3d 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.24 +Version: 1.0.25 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From 3c45bb833ad2d441a52a352ea7331368be279b59 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Tue, 17 Dec 2019 15:59:41 +0900 Subject: [PATCH 10/16] Fix crash on disconnection of client application Change-Id: Ie049625b72d3aea71ee113318c92ba68ee376441 Signed-off-by: Jihoon Kim --- src/autofill-daemon.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index 4e762da..f0bd05b 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -199,6 +199,17 @@ static void __client_create(rpc_port_stub_AutofillAppPort_context_h context, free(sender); } +static gboolean __client_remove_cb(void *data) +{ + rpc_port_stub_AutofillAppPort_context_h context = data; + + LOGD("client remove callback (%p)", context); + + __remove_client(context); + + return false; +} + static void __client_terminate(rpc_port_stub_AutofillAppPort_context_h context, void *user_data) { @@ -212,7 +223,7 @@ static void __client_terminate(rpc_port_stub_AutofillAppPort_context_h context, LOGD("[__RPC_PORT__] sender(%s)", sender); free(sender); - __remove_client(context); + g_idle_add(__client_remove_cb, context); } static int __client_register(rpc_port_stub_AutofillAppPort_context_h context, -- 2.7.4 From 5243d7b2388704a092afae381005eb7dedfd58db Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 26 Dec 2019 13:48:41 +0900 Subject: [PATCH 11/16] Update package version to 1.0.26 Change-Id: Ie3f002cac2827cdc5fdc26f5834bea4a011af0e9 Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index 810d56c..a8a8973 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index 9fa1a3d..63cecd9 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.25 +Version: 1.0.26 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From b52c1706c7b3d55f18af684c3a609bfc5b4cf3d7 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 8 Jan 2020 16:44:22 +0900 Subject: [PATCH 12/16] Add logs for analyzing issues Change-Id: I78e0926731a77127badfed27d7374f31f81e0d51 Signed-off-by: Jihoon Kim --- src/autofill-daemon.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index f0bd05b..a8aa3cf 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -188,7 +188,7 @@ static void __remove_client(rpc_port_stub_AutofillAppPort_context_h context) static void __client_create(rpc_port_stub_AutofillAppPort_context_h context, void *user_data) { - LOGD(""); + LOGD("context : %p", context); char *sender = NULL; rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender); @@ -213,7 +213,7 @@ static gboolean __client_remove_cb(void *data) static void __client_terminate(rpc_port_stub_AutofillAppPort_context_h context, void *user_data) { - LOGD(""); + LOGD("context : %p", context); char *sender = NULL; rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender); @@ -233,7 +233,7 @@ static int __client_register(rpc_port_stub_AutofillAppPort_context_h context, rpc_port_AutofillAppPort_autofill_error_info_received_cb_h error_info_cb, void *user_data) { - LOGD(""); + LOGD("context : %p", context); char *sender = NULL; autofill_client_s *client = NULL; @@ -258,6 +258,7 @@ static int __client_register(rpc_port_stub_AutofillAppPort_context_h context, static void __client_unregister(rpc_port_stub_AutofillAppPort_context_h context, int context_id, void *user_data) { + LOGD("context : %p", context); __remove_client(context); } -- 2.7.4 From ffb61ee1dabcf52a0ed31da9aab68012210f9245 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 8 Jan 2020 16:44:49 +0900 Subject: [PATCH 13/16] Revert "Fix crash on disconnection of client application" This reverts commit 86914360f22cd5b2c9f8ec23158da13eb983c6a7. Change-Id: I5c325c94dd1fac0989ec5886ece564cbb5f503be --- src/autofill-daemon.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index a8aa3cf..5187945 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -199,17 +199,6 @@ static void __client_create(rpc_port_stub_AutofillAppPort_context_h context, free(sender); } -static gboolean __client_remove_cb(void *data) -{ - rpc_port_stub_AutofillAppPort_context_h context = data; - - LOGD("client remove callback (%p)", context); - - __remove_client(context); - - return false; -} - static void __client_terminate(rpc_port_stub_AutofillAppPort_context_h context, void *user_data) { @@ -223,7 +212,7 @@ static void __client_terminate(rpc_port_stub_AutofillAppPort_context_h context, LOGD("[__RPC_PORT__] sender(%s)", sender); free(sender); - g_idle_add(__client_remove_cb, context); + __remove_client(context); } static int __client_register(rpc_port_stub_AutofillAppPort_context_h context, -- 2.7.4 From fb928167a483f5e9e38d03333f6f806fe697be18 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 8 Jan 2020 17:03:25 +0900 Subject: [PATCH 14/16] Update package version to 1.0.27 Change-Id: I34d3328ccced24eb640d0265e250cc2ffe5d3b8a Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index a8a8973..b7b495a 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index 63cecd9..f5d2678 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.26 +Version: 1.0.27 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4 From e40ef01bdc2cd492d65d22449998c6ad72d09517 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 22 Jan 2020 18:54:24 +0900 Subject: [PATCH 15/16] Signing differently in wearable platform Change-Id: I48e9bc8d4e5d95c857c014f65814f17469af9673 Signed-off-by: Jihoon Kim --- packaging/org.tizen.autofilld.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index f5d2678..ba607cf 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -26,6 +26,9 @@ BuildRequires: pkgconfig(capi-appfw-app-manager) %if 0%{?__hash_signing} BuildRequires: hash-signer +%if 0%{?sec_product_feature_profile_wearable} +Requires(post): signing-client +%endif %endif %description @@ -77,6 +80,9 @@ rm -rf %{buildroot} %endif %post +%if 0%{?sec_product_feature_profile_wearable} +/usr/bin/signing-client/hash-signer-client.sh -a -d -p platform %{TZ_SYS_RO_APP}/%{name} +%endif %files %manifest %{name}.manifest -- 2.7.4 From dcbb706ab040619886cade7f9f3f56ea82c0cccc Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 22 Jan 2020 20:11:06 +0900 Subject: [PATCH 16/16] Update package version to 1.0.28 Change-Id: Ifcd80129fcb3bc7316e500a3da456eaa4e917139 Signed-off-by: Jihoon Kim --- org.tizen.autofilld.xml | 2 +- packaging/org.tizen.autofilld.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.tizen.autofilld.xml b/org.tizen.autofilld.xml index b7b495a..7832c3c 100644 --- a/org.tizen.autofilld.xml +++ b/org.tizen.autofilld.xml @@ -1,5 +1,5 @@ - + Jihoon Kim autofilld diff --git a/packaging/org.tizen.autofilld.spec b/packaging/org.tizen.autofilld.spec index ba607cf..fcb5e4e 100644 --- a/packaging/org.tizen.autofilld.spec +++ b/packaging/org.tizen.autofilld.spec @@ -1,6 +1,6 @@ Name: org.tizen.autofilld Summary: Autofill Daemon -Version: 1.0.27 +Version: 1.0.28 Release: 1 Group: Graphics & UI Framework/Input License: Apache-2.0 -- 2.7.4