Search Feedback

1
votes

Android support for extractNativeLibs=false

Platforms

-

-

Recent versions of Android support direct access of native library files (.so) from the APK on the filesystem. This is significant to reduce install size, as well as simplifying the case where an app is pre-installed on the phone (i.e. only .apk file needed).

Requirements are that the .so files be stored uncompressed in the zip, and properly aligned.

Unity Android build appears hard-coded to store .so files compressed. Would like an option to store them uncompressed, and perhaps also apply the zipalign tool and set extractNativeLibs=false in the manifest.

Comments (1)

  1. Fcccf2d267014f041631241b96f5cf7b?d=mm

    jbelmonte

    Mar 01, 2017 18:07

    Noting that Unity already applies zipalign.

    The best way to go about this is probably for Unity to detect extractNativeLibs=false in the manifest and in that case store the .so's uncompressed. This is similar to how other Android toolchains work.

    However there is a separate runtime bug blocking the use of extractNativeLibs=false. Namely libmono and libunity appear to be loaded directly from C++ dlopen and bypass Android's support for using libraries within an APK.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(8365)

2D

(197)

Ads

(31)

AI & Navigation

(50)

Analytics

(80)

Animation

(275)

Asset Store

(189)

Assets

(474)

Audio

(145)

Cloud Build

(86)

Collaborate

(11)

Docs & Tutorials

(172)

Editor

(1936)

Everyplay

(13)

Game Performance Reporting

(10)

General

(751)

Graphics

(699)

GUI

(335)

Input

(138)

Licensing

(68)

Networking

(141)

Physics

(314)

Platforms

(394)

Profiling & Optimization

(63)

Runtime

(146)

Scripting

(942)

Terrain

(149)

WebGL

(126)