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

  • Home
  • SEARCH
  • 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 8563097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:52:57+00:00 2026-06-11T16:52:57+00:00

There is an old android apk file which is no longer supported by the

  • 0

There is an old android apk file which is no longer supported by the manufacturer.

I figured out what could be wrong it is because it is calling a method from java:

In one of the java files (viewed after dex2jar and viewing with jd-gui)

import com.htc.buletoothconfirm;

All I want to do is to change that to

import com.htc.bluetoothconfirm;

Then recompile it into a .class file.
Then reinsert that .class file into a .jar file.
Then I will rebuild the .apk file.

The thing is I can’t change anything with jd-gui.

If I try to compile a single .java file with javac, it will give me import errors (there are a lot of imports in the file).

I have tried using jad to decompile the class file, and this is what I’m working with.

Although it gave a lot of “cannot fully decompile” errors.

What I think I want to do is just copy & paste the entire java file content from jd-gui into notepad, save it as .java, then compile it into .class, and reinsert it into the .jar file.

But its easier said than done. I don’t know how to compile this new .java file into a .class file, because of all the imports. (eg. where do I get import android.content.intent; etc? and do i really need to keep the directory structures and so on?)

Is there an easier way? I am just trying to change a single line. All the rest can be kept the same.

  • 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-11T16:52:58+00:00Added an answer on June 11, 2026 at 4:52 pm

    You should decompile apk file with some tools like ASM-Android, or Dedexer. If you want to generate a class, you could generate on-device using sdcard and then create a dex. file and its corresponding .jar. I used BCEL and ASM to generate Bytecode on-device.

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

Sidebar

Related Questions

Is there an easy way to compare the file tree of an old git
I've seen a ton of old posts out there on how to try to
I'm converting an old VB form to .NET, and there a few Buttons which
I need help in upgrading apk file. I have apk file developed for android
Is there any possibility to use old Ada code in Android? I have an
I'm back at trying out some Android dev again. I have an old HTC
There is an very old WPF application of Hyper Tree - http://blogs.msdn.com/b/llobo/archive/2007/10/31/mindmap-app-using-hyperbolic-tree.aspx . The
Is there a way of doing the old on error resume next routine in
Is there a way in mercurial to remove old changesets from a database? I
From my old Access days, there was a First() function that allowed you to

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.