Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 875153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:13:17+00:00 2026-05-15T11:13:17+00:00

I am trying to create a PHP script to get the app version from

  • 0

I am trying to create a PHP script to get the app version from Android APK file.
Extracting XML file from the APK (zip) file and then parsing XML is one way, but I guess it should be simpler. Something like PHP Manual, example #3.
Any ideas how to create the script?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:13:17+00:00Added an answer on May 15, 2026 at 11:13 am

    If you have the Android SDK installed on the server, you can use PHP’s exec (or similar) to execute the aapt tool (in $ANDROID_HOME/platforms/android-X/tools).

    $ aapt dump badging myapp.apk

    And the output should include:

    package: name='com.example.myapp' versionCode='1530' versionName='1.5.3'

    If you can’t install the Android SDK, for whatever reason, then you will need to parse Android’s binary XML format. The AndroidManifest.xml file inside the APK zip structure is not plain text.

    You would need to port a utility like AXMLParser from Java to PHP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's an idea. I'm trying to create file from PHP script. File may be
I am trying to write a PHP script that retrieves an xml file from
I am trying to send a suggestion from my app to a php file
I'm trying to create a PHP script which pulls xml data (text and images)
I'm currently trying to create a php script were the user has the ability
i'm trying to create nodes and taxonomy terms through a custom php script by
I'm a newbie in php and Wordpress. I'm trying to create a script that
I am trying to create a php file that adds a user and create
I am trying to create a php file that would scan a directory, make
I am trying to create a PHP file to upload images to my website.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.