I open a socket and track network calls in the Android application. Currently, I can view the hostname and IP address of the coming network traffic using the DatagramPacket class. Is it possible to get the application id or package name using it? Or is it possible to get the application ID or package name from IPPacket in DNSResolver?
Track application id or package name using DatagramPacket in android
88 Views Asked by FaaiqKhan At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in ANDROID-NETWORKING
- How do I configure my Android Emulator's Network Address Space?
- I want to write a django application that can respond to the HttpClient requests from an android device. Can I have an example code?
- NoConnectionError in android volley
- Cannot connect to native local socket on android 5.1
- Android Volley Library Works on Genymotion Emulator But always return timeouterror on device
- Android : How to add Oauth1 header in Volley Request
- Android Studio - Fast Android Networking Library Upload File to server - error
- New Activity not appearing without any error
- Get Data with HTTP request Android Xamarin C#
- What is the best way in android to check if internet is active continiously(when the internet is inactive)?
- Image download failed when try to download by using IntentService in Android
- Opening a url SSLException using OkHTTP in Android < 5.0 but opens fine in WebView
- What is the strategy to follow to integrate Android Fingerprint scan API to an existing App to enhance security
- Check internet connection in android (not network connection)
- Okhttp3, Hostname cannot be verified in case SSL certificate is issued for IP address
Related Questions in ANDROID-VPN-SERVICE
- Programmatically setting up a vpn on Android
- How to know when Android VPN prepare is ready without Activity?
- i want to read bytes from vpninterface and then write back to it
- intercepting grpc calls for Android app is not working
- React native app doesn't connect to VPN server in android
- How to do DNS outside of VPN in Android VPN app
- Track application id or package name using DatagramPacket in android
- error: cannot find symbol if (!"ovpn3".equals(BuildConfig.FLAVOR))
- "Allow USB debugging?" keeps popping up
- Disconnect the VPN that other apps have enabled in Android
- How to develop an android app that retrieves all the browsing information using VPN api?
- VPN disconnects when removing from recent apps on Xiaomi devices
- On Chromebook getConnectionOwnerUid() return -1 (Process.INVALID_UID) on chrome app
- Can not browse anything after connecting to a tunnel
- Accessing Web-Services from Android which are accessible through VPN on Web
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
After a long search and reading documentation of Android related to networks, I found the solution to get the application ID that the OS assigns. Through this ID it's possible to find the network packet's source. It's not possible to get the package name through
DatagramPacketor any network calls.The ID is an integer before comparing the ID it's important to get the application ID which was assigned by the OS using
PackageManager.Protocol TCP = 6 UDP = 17