Initial import of Brizzi HCE project

This commit is contained in:
2026-05-03 10:23:41 +07:00
commit 9994823fb3
693 changed files with 51541 additions and 0 deletions

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="24dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/messageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/main_message"
android:textAppearance="@style/TextAppearance.MaterialComponents.Body1" />
<TextView
android:id="@+id/apduLogHeader"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="Log APDU (terkini)"
android:textStyle="bold" />
<Button
android:id="@+id/clearApduLogButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:text="Clear Log APDU" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginTop="8dp">
<TextView
android:id="@+id/apduLogView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?attr/colorOnBackground"
android:textIsSelectable="true"
android:fontFamily="monospace"
android:textSize="11sp"
android:text="Belum ada log APDU." />
</ScrollView>
</LinearLayout>
</FrameLayout>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="aid_group_description">AID routing for BRIZZI HCE</string>
<string name="app_name">BRIZZI HCE</string>
<string name="main_message">BRIZZI HCE emulation app for card transaction command handling.</string>
<string name="service_description">BRIZZI HCE service</string>
<style name="Theme.BrizziHce" parent="Theme.MaterialComponents.DayNight.NoActionBar"/>
</resources>

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/service_description"
android:requireDeviceUnlock="false">
<!--
TESTING ONLY:
Gunakan kategori other agar Android tidak memicu payment app chooser.
File ini hanya dipakai pada buildType debug.
Kembali ke model produksi dengan payment category di main/apdu_service.xml.
-->
<aid-group
android:category="other"
android:description="@string/aid_group_description">
<aid-filter android:name="325041592E5359532E4444463031" />
<aid-filter android:name="F0010203040506" />
<aid-filter android:name="5A000003" />
<aid-filter android:name="A000000003" />
<aid-filter android:name="A000000004" />
<aid-filter android:name="A00000000301000000" />
<aid-filter android:name="A00000000303000000" />
<aid-filter android:name="5A00000301000000" />
<aid-filter android:name="5A00000303000000" />
<!--
Tambahan untuk membantu debug terhadap berbagai AID dari reader.
-->
<aid-filter android:name="0000000000000001" />
<aid-filter android:name="A000424E49100001" />
<aid-filter android:name="A0000005714E4A43" />
<aid-filter android:name="D3600000030003" />
<aid-filter android:name="A0000000180F0000018001" />
<aid-filter android:name="D4100000030001" />
<aid-filter android:name="D360" />
<aid-filter android:name="D410" />
<aid-filter android:name="A000424E49" />
<aid-filter android:name="A000000571" />
<aid-filter android:name="A000000018" />
<aid-filter android:name="D276" />
</aid-group>
</host-apdu-service>

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="false" />
</network-security-config>