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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:46:08+00:00 2026-06-10T16:46:08+00:00

Well, I know the title is not well-written, but my case is as complicated

  • 0

Well, I know the title is not well-written, but my case is as complicated as that! I searched for this case here but other similar questions really differ from mine.

Here is my problem:

  • I have written an Android program which displays contents (text, images, etc. in raw format) that is stored in “assets” folder. Now I want to deliver this app along with a windows application (also written by me) to end users, which lets them add contents to “assets” folder of the apk file and output the modified apk with their desired name (to appear on their phone).

Now what is best solution to do this and which tools and commands I should use? I mean which tools (aapt, jarsigner, …) I should include in my software and which commands must be launched by my software to do this?

More info about my case:

  • My users aren’t advanced and don’t know anything about Android programming and modifying apk, and I want them to only use my client windows application.
  • I want not to use JDK, JRE, … on client’s machine.
  • Modification process includes: replacing AndroidManifest.xml and drawable\icon.png and adding some files to assets folder.
  • I would distribute my keystore file and unsigned original apk file along with my software to be signed at the end of process.

P.S:
OK, after some hours I nearly found solution in 9 steps and got final custom-signed-zip-aligned apk file and installed on device without errors! But now the problem is: all of apk files that would be produced by my users would have same package name (com.MyName.MyApp) and would cause problem if someone installs 2 or more of them on their phones. Should I try “aapt –rename-manifest-package” for this problem? and how to use it?

  • 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-10T16:46:09+00:00Added an answer on June 10, 2026 at 4:46 pm

    I finally have ended up with this working solution, I put it here for anyone interested.

    1- Extract “original.apk” (source.apk) to a temp folder (ie. TempFolder)

    2- Put user-generated files in “assets” and “res\drawable” folders under TempFolder

    3- generate AndroidManifest.xml and put in TempFolder

    4- Run this command:
    aapt package -f -M “PathToManifest” -S “PathToResFolder” -I android.jar -F “NearlyFinal.apk” -A “PathToAssetsFolder”

    5- copy “classes.dex” to folder where NearlyFinal.apk exists.

    6- run this command:
    aapt add -f NearlyFinal.apk classes.dex jad.properties

    7- sign apk file:
    jarsigner -storepass [keystorePass] -keystore KeyStoreFile.key NearlyFinal.apk [KeyStoreName]

    8- zipalign apk file:
    zipalign 4 NearlyFinal.apk “Final.apk”

    9- rename and move Final.apk according to user’s pref’s.

    FINISH

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

Sidebar

Related Questions

Folks, I know I didn't phrase that title very well, but here's the scenario.
This sounds like a weird title and probably not stated too well. But here's
I know SQL well but I must be missing something really dumb here. This
Well I don't know if the title for this question is appropriate or not,
Well maybe this is not the best title; but it's hard to convey my
The title to this question isn't written very well. Sorry 'bout that. I'm curious
my first time here, title is bad i know :) Well, this is what
I really don't know how to explain it well in the title, but here's
Well I know some kinds of UML's diagrams, but I haven't heard about this
Well I think I know the answer to this, but I would appreciate anybody

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.