Skip to content

undefined method `unpack' for nil:NilClass #22

Description

@ohaleck

I've been trying to open the APK file linked below with apktools 0.7.2, and get the following error from the constructor:

> ApkXml.new('/tmp/com.google.android.gms_11.9.51_(248-177350961)-11951248_minAPI21(arm64-v8a,armeabi-v7a)(480dpi)_apkmirror.com.apk')
NoMethodError: undefined method `unpack' for nil:NilClass
	from /Users/ohaleck/.rvm/gems/ruby-2.3.6@updateserver/gems/apktools-0.7.2/lib/apktools/apkresources.rb:399:in `read_string'
	from /Users/ohaleck/.rvm/gems/ruby-2.3.6@updateserver/gems/apktools-0.7.2/lib/apktools/apkresources.rb:447:in `parse_stringpool'
	from /Users/ohaleck/.rvm/gems/ruby-2.3.6@updateserver/gems/apktools-0.7.2/lib/apktools/apkresources.rb:157:in `initialize'
	from /Users/ohaleck/.rvm/gems/ruby-2.3.6@updateserver/gems/apktools-0.7.2/lib/apktools/apkxml.rb:118:in `new'
	from /Users/ohaleck/.rvm/gems/ruby-2.3.6@updateserver/gems/apktools-0.7.2/lib/apktools/apkxml.rb:118:in `initialize'
	from (irb):2:in `new'

Now it seems that, inside read_string, the offset is much higher than the size of data 5412929698 compared to 16357888.

https://www.apkmirror.com/apk/google-inc/google-play-services/google-play-services-11-9-51-release/google-play-services-11-9-51-248-177350961-android-apk-download/download/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions