SetAPN

August 5, 2026 ยท View on GitHub

SetAPN is an Android application designed to manage Access Point Names (APNs) within the system's telephony.db. It provides a user interface to view, search, add, and delete APN configurations, which are typically restricted in standard Android settings.

๐Ÿš€ Key Features

  • Search APNs: Quickly find APN configurations by entering Mobile Country Code (MCC) and Mobile Network Code (MNC).
  • View Details: Display all stored parameters for APNs associated with a specific MCC/MNC pair in a tabular format.
  • Add New APNs: Create custom APN entries with specific Name, Type, and Protocol settings.
  • Preferred APN: Option to set a newly created APN as the preferred one for the device.
  • Delete APNs: Remove obsolete or incorrect APN entries directly from the list.

โš ๏ธ Basic Requirement: UICC Carrier Privileges

To interact with the TelephonyProvider and modify APN settings, this app MUST have UICC Carrier Privileges.

Standard Android security policies prevent third-party applications from modifying APNs. Carrier privileges are granted based on the certificate of the app matching the certificate stored on the inserted SIM card (UICC).

If the app does not have these privileges, it will display an "Access Denied" message and functionality will be restricted.

๐Ÿ› ๏ธ Tech Stack

  • Language: Java
  • UI Components: Android Material Design (FloatingActionButton, TableLayout)
  • API: Android Telephony API (TelephonyManager, TelephonyProvider)

๐Ÿ“– How to Use

  1. Launch the App: You will start at the Search screen.
  2. Search: Enter the MCC (3 digits) and MNC (2-3 digits) for the carrier you want to manage.
  3. Manage List:
    • Tap Search APNs to view existing configurations.
    • Use the Delete button next to any entry to remove it.
  4. Add APN:
    • Tap the Floating Action Button (+) on the list screen.
    • Fill in the APN details.
    • Check "Set as preferred APN" if you want the device to use this new configuration immediately.
    • Tap Add APN.

๐Ÿ“„ Disclaimer

This tool interacts directly with system telephony databases. Use with caution, as incorrect APN settings can lead to loss of data connectivity.