Skip to content

OutOfMemoryError for when VM heap is too low #5

@AndroidDeveloperLB

Description

@AndroidDeveloperLB

If the VM heap is 32MB, and you try to load the app of package name "android" (app label is "Android System") and you run it on the emulator, it gets an OOM:

Caused by: java.lang.OutOfMemoryError
at com.jaredrummler.apkparser.parser.ResourceTableParser.readPackage(ResourceTableParser.java:119)
at com.jaredrummler.apkparser.parser.ResourceTableParser.parse(ResourceTableParser.java:67)
at com.jaredrummler.apkparser.ApkParser.parseResourceTable(ApkParser.java:417)
at com.jaredrummler.apkparser.ApkParser.transBinaryXml(ApkParser.java:269)
at com.jaredrummler.apkparser.ApkParser.parseManifestXml(ApkParser.java:207)
at com.jaredrummler.apkparser.ApkParser.parseApkMeta(ApkParser.java:199)
at com.jaredrummler.apkparser.ApkParser.getApkMeta(ApkParser.java:150)
at com.jaredrummler.apkparser.ApkParser.getAndroidManifest(ApkParser.java:140)

Is there a way to overcome this? To somehow minimize memory usage further?

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