Skip to content

Decoded & rebuilt application throws NullPointerException on ArrayAdapter.createViewFromResource() #520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
iBotPeaches opened this issue Mar 18, 2015 · 2 comments

Comments

@iBotPeaches
Copy link
Owner

Original issue 409 created by Spawarotti on 2013-02-13T17:33:15.000Z:

What steps will reproduce the problem?

  1. Decode the attached .apk with the following command:

java -jar (...)\apktool.jar decode --force <path_to_the_attached_apk> <path_to_decoded_apk>

  1. Build the apk with the following ocmmand:

java -jar (...)\apktool.jar build <path_to_the_decoded_apk> <path_to_the_built_apk>

  1. Sign the build apk with the debug key
    jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore (...)\debug.keystore -storepass android -keypass android <path_to_the_built_apk> androiddebugkey
  2. Run the application on the device and do the following:
    4.1. close the update screen if any
    4.2. click the settings menu (upper right corner)
    4.3. click "settings"
    4.4. click "History Size..."

What is the expected output? What do you see instead?

Expected output: a menu with history sizes to choose
Actual output: exception is thrown. See the attached logcat output.

What version of the product are you using? On what operating system?
ApkTool: 1.5.2
OS: Windows 7 Pro x64
Apk meta data: see attachement.
https://play.google.com/store/apps/details?id=uk.co.nickfines.RealCalc

Please provide any additional information below.
N/A

@iBotPeaches
Copy link
Owner Author

Comment #1 originally posted by connor.tumbleson on 2013-02-14T03:41:04.000Z:

The first array in values/arrays.xml should be a string-array, not array.

Obviously Apktool is having problems detecting that.

Duplicated, problem found. Not fixed yet.

@iBotPeaches
Copy link
Owner Author

Comment #2 originally posted by connor.tumbleson on 2014-05-25T17:40:18.000Z:

c29dffe

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant