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 8218381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:46:29+00:00 2026-06-07T12:46:29+00:00

I am in the process of creating a program that will automate the packaging,

  • 0

I am in the process of creating a program that will automate the packaging, signing and installing of an apk file.

I have 3 terminal commands listed below that I am unsure how to place into my Java program. This section of the program must be able to open a terminal, call these commands, and at one point allow the user to enter the password all from a Java IDE.

  aapt package -u -f -F "/home/jay/testing_FILES.apk" "/home/jay/testing_FILES"

  jarsigner -verbose -digestalg SHA1 -sigalg MD5withRSA -keystore my-release-key.keystore "/home/jay/testing_FILES.apk"

 zipalign -f -v 4 "/home/jay/testing_FILES.apk" "/home/jay/filesystem.apk"

Does anyone know how to make these run through a JAVA IDE? Thanks.

  • 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-06-07T12:46:31+00:00Added an answer on June 7, 2026 at 12:46 pm

    Assuming that you can get the password through command line and somehow patch this as part of your command execution process, you can then call use Runtime.exec() to call these functions from your java program. You can consult the javadoc to get more information on this option

    The other option is to use Plexus Utils. Have a look at this stackoverflow link

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

Sidebar

Related Questions

I'm creating a small program that will read a text file, which contains a
I am in the process of creating a Java program that goes on the
I have a computational terminal program that I need to interact with using a
I have a folder that will contain a temporary file that will be created
I have a program that is responsible for reading data, formatting it and creating
Suppose that a process is creating a mutex in shared memory and locking it
I am in the process of creating an iPhone app that requires to interact
I am in the process of creating a site that i would like to
I'm in the process of creating a web service that uses XML to handle
I'm in the process of creating a double-linked list, and have overloaded the operator=

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.