<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://sdkwiki.wizarpos.com/index.php?action=history&amp;feed=atom&amp;title=How_to_reset_transport_key%2Fmaster_key</id>
	<title>How to reset transport key/master key - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://sdkwiki.wizarpos.com/index.php?action=history&amp;feed=atom&amp;title=How_to_reset_transport_key%2Fmaster_key"/>
	<link rel="alternate" type="text/html" href="http://sdkwiki.wizarpos.com/index.php?title=How_to_reset_transport_key/master_key&amp;action=history"/>
	<updated>2026-04-09T06:16:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>http://sdkwiki.wizarpos.com/index.php?title=How_to_reset_transport_key/master_key&amp;diff=4847&amp;oldid=prev</id>
		<title>Mahong at 05:13, 4 July 2024</title>
		<link rel="alternate" type="text/html" href="http://sdkwiki.wizarpos.com/index.php?title=How_to_reset_transport_key/master_key&amp;diff=4847&amp;oldid=prev"/>
		<updated>2024-07-04T05:13:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:13, 4 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l88&quot;&gt;Line 88:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 88:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Download ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Download ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please download the [http://ftp.wizarpos.com/advanceSDK/IPINPadManagerService.aidl AIDL file].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Please download the [http://ftp.wizarpos.com/advanceSDK/IPINPadManagerService.aidl AIDL file]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, or the [https://github&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;com/SmartPOSSamples/PINPadMgrDemo Demo]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key media_wiki-wk:diff::1.12:old-2947:rev-4847 --&gt;
&lt;/table&gt;</summary>
		<author><name>Mahong</name></author>
	</entry>
	<entry>
		<id>http://sdkwiki.wizarpos.com/index.php?title=How_to_reset_transport_key/master_key&amp;diff=2947&amp;oldid=prev</id>
		<title>Mahong: Created page with &quot;The system provides the AIDL interface to reset tranport key and master key. When connect the service, the package name is &#039;&#039;&#039;com.wizarpos.wizarviewagentassistant&#039;&#039;&#039;, and the...&quot;</title>
		<link rel="alternate" type="text/html" href="http://sdkwiki.wizarpos.com/index.php?title=How_to_reset_transport_key/master_key&amp;diff=2947&amp;oldid=prev"/>
		<updated>2022-08-12T06:23:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The system provides the AIDL interface to reset tranport key and master key. When connect the service, the package name is &amp;#039;&amp;#039;&amp;#039;com.wizarpos.wizarviewagentassistant&amp;#039;&amp;#039;&amp;#039;, and the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The system provides the AIDL interface to reset tranport key and master key. When connect the service, the package name is &amp;#039;&amp;#039;&amp;#039;com.wizarpos.wizarviewagentassistant&amp;#039;&amp;#039;&amp;#039;, and the class name is &amp;#039;&amp;#039;&amp;#039;com.wizarpos.wizarviewagentassistant.PINPadMgrService&amp;#039;&amp;#039;&amp;#039;. When the application uses the interface, it must import wizarviewagentassistant.&lt;br /&gt;
== API Overview ==&lt;br /&gt;
=== &amp;lt;big&amp;gt;resetMasterKey&amp;lt;/big&amp;gt;===&lt;br /&gt;
   &amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;boolean resetMasterKey(int slot);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Reset master key to default 0x38 of 16 bytes.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wizarpostable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; | Parameters&lt;br /&gt;
|-&lt;br /&gt;
| slot|| &amp;#039;&amp;#039;&amp;#039;int:&amp;#039;&amp;#039;&amp;#039; key index, from 0 to 49.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wizarpostable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; | Returns&lt;br /&gt;
|-&lt;br /&gt;
|  boolean || whether reset successfully.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;big&amp;gt;resetTransferKey&amp;lt;/big&amp;gt;===&lt;br /&gt;
   &amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;boolean resetTransferKey(int slot);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Reset transport key to default 0x38 of 16 bytes.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wizarpostable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; | Parameters&lt;br /&gt;
|-&lt;br /&gt;
| slot|| &amp;#039;&amp;#039;&amp;#039;int:&amp;#039;&amp;#039;&amp;#039; key index, from 0 to 49.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wizarpostable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; | Returns&lt;br /&gt;
|-&lt;br /&gt;
|  boolean || whether reset successfully.&lt;br /&gt;
|}&lt;br /&gt;
== Snippet code ==&lt;br /&gt;
* Bind Service&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
    public void bindPINPadMgrService() {&lt;br /&gt;
        try {&lt;br /&gt;
            boolean result = startConnectService(MainActivity.this,&lt;br /&gt;
                    &amp;quot;com.wizarpos.wizarviewagentassistant&amp;quot;,&lt;br /&gt;
                    &amp;quot;com.wizarpos.wizarviewagentassistant.PINPadMgrService&amp;quot;, this);&lt;br /&gt;
&lt;br /&gt;
            writerInLog(&amp;quot;bind service result&amp;quot; + result, R.id.log_default);&lt;br /&gt;
        } catch (Exception e) {&lt;br /&gt;
            e.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    protected boolean startConnectService(Context mContext, String packageName, String className, ServiceConnection connection) {&lt;br /&gt;
        boolean isSuccess = startConnectService(mContext, new ComponentName(packageName, className), connection);&lt;br /&gt;
        return isSuccess;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    protected boolean startConnectService(Context context, ComponentName comp, ServiceConnection connection) {&lt;br /&gt;
        Intent intent = new Intent();&lt;br /&gt;
        intent.setPackage(comp.getPackageName());&lt;br /&gt;
        intent.setComponent(comp);&lt;br /&gt;
        boolean isSuccess = context.bindService(intent, connection, Context.BIND_AUTO_CREATE);&lt;br /&gt;
        Logger.debug(&amp;quot;bind service (%s, %s)&amp;quot;, isSuccess, comp.getPackageName(), comp.getClassName());&lt;br /&gt;
        return isSuccess;&lt;br /&gt;
    }&lt;br /&gt;
     @Override&lt;br /&gt;
    public void onServiceConnected(ComponentName name, IBinder service) {&lt;br /&gt;
        try {&lt;br /&gt;
            writerInLog(&amp;quot;onServiceConnected:&amp;quot; + service, R.id.log_success);&lt;br /&gt;
            pinPadManagerService = IPINPadManagerService.Stub.asInterface(service);&lt;br /&gt;
        } catch (Exception e) {&lt;br /&gt;
            e.printStackTrace();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    @Override&lt;br /&gt;
    public void onServiceDisconnected(ComponentName name) {&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
    IPINPadManagerService pinPadManagerService;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* API calling&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
  result = pinPadManagerService.resetTransferKey(0);&lt;br /&gt;
  writerInLog(&amp;quot;resetTransferKey(0): result = &amp;quot; + result, R.id.log_default);&lt;br /&gt;
&lt;br /&gt;
  result = pinPadManagerService.resetMasterKey(0);&lt;br /&gt;
  writerInLog(&amp;quot;resetMasterKey(0): result = &amp;quot; + result, R.id.log_default);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
== Download ==&lt;br /&gt;
Please download the [http://ftp.wizarpos.com/advanceSDK/IPINPadManagerService.aidl AIDL file].&lt;/div&gt;</summary>
		<author><name>Mahong</name></author>
	</entry>
</feed>