Search Unity

Android M bugs

Discussion in 'Scripting' started by alexkring, Oct 1, 2015.

  1. alexkring

    alexkring

    Joined:
    May 5, 2011
    Posts:
    368
    So far I have been unsuccessful in getting Android M to work with Unity 4.6.7p4. Has anyone had any success with Android M? Here are the repro steps for the bug I am seeing. Unity QA is currently investigating the issue.

    Repro: create a blank Unity 4.6.7p4 project, with an AndroidManifest.xml that targets sdk version 23. Launch game on a Nexus 6 with Android 6.0.

    The following error log appears on startup.

    E linker : readlink('/proc/self/fd/39') failed: Permission denied [fd=39]

    I believe this log error message is the reason that we are unable to load libraries, based on the following log that we are seeing in our game.

    E linker : readlink('/proc/self/fd/61') failed: Permission denied [fd=61]
    E linker : warning: unable to get realpath for the library "/data/app/com.company.app-1/lib/arm/libjni.so". Will use given name.
    E linker : readlink('/proc/self/fd/61') failed: Permission denied [fd=61]
    E linker : warning: unable to get realpath for the library "/data/app/com.company.app-1/lib/arm/libjni.so". Will use given name.
    E Unity : Unable to find jni
    E linker : readlink('/proc/self/fd/61') failed: Permission denied [fd=61]
    E linker : warning: unable to get realpath for the library "libjni.so". Will use given name.
    E Unity : Unable to find jni
    I Unity : DllNotFoundException: jni
    I Unity : at (wrapper managed-to-native) JavaVM:AttachCurrentThread ()
    I Unity : ClearNotifications () [0x00000] in <filename unknown>:0
    I Unity : ClearNotifications () [0x00000] in <filename unknown>:0
    I Unity : at LocalNotificationManager.ClearNotificationsFromOS () [0x00000] in <filename unknown>:0
    I Unity : at LocalNotificationManager.Start () [0x00000] in <filename unknown>:0

    Notes:
    The game runs find on the same Android device, when targeting sdk 22.
    I successfully granted myself the following permissions (the only group permissions we use) through the new Android 6.0 permissions system, and I still receive the same errors.
    android.permission.GET_ACCOUNTS
    android.permission.READ_PHONE_STATE
    android.permission.WRITE_EXTERNAL_STORAGE
     
  2. aaefiikmnnnr

    aaefiikmnnnr

    Joined:
    Aug 21, 2014
    Posts:
    12
  3. aaefiikmnnnr

    aaefiikmnnnr

    Joined:
    Aug 21, 2014
    Posts:
    12
    Last edited: Oct 13, 2015
  4. tto2015

    tto2015

    Joined:
    Mar 15, 2015
    Posts:
    2
    Hi, I also experience this issue. I cannot push obb files anymore when using split apk using the Unity3d editor 'run'. On my Android M device the obb downloader neither works also related to the permissions. Unfortunately I have to keep the targetSDK to 23 since I want to use the latest android facebook sdk.

    I also voted on your report and also found this which might be related: http://issuetracker.unity3d.com/iss...-to-push-obb-file-onto-adnroid-6-dot-0-device
     
  5. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
  6. aaefiikmnnnr

    aaefiikmnnnr

    Joined:
    Aug 21, 2014
    Posts:
    12
  7. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
  8. TitanUnity

    TitanUnity

    Joined:
    May 15, 2014
    Posts:
    180
    Ugg, we're having this issue in 5.1.4, but are unable to upgrade to 5.2+ due to several other bugs and problems we've encountered. Is there a way to get this fix in 5.1.4?
     
  9. TitanUnity

    TitanUnity

    Joined:
    May 15, 2014
    Posts:
    180
    Looks like we can get away with this right now by disabling split binary... will use that for now.
     
  10. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
  11. breaker2005

    breaker2005

    Joined:
    Feb 22, 2013
    Posts:
    26
    I update unity to 4.6.9p3 and there is still this problem. I want to save image on External but nothing happens, apk don't have permission but i add it in manifest. On older version ( < 6.0) works fine.
     
  12. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    @breaker2005 : 4.6.9p3 should have the fix.
    If the permission is in manifest, and it is considered "unsafe" by Google, - we should ask for it at startup.
    If it's not the case - please report a bug, attach the project and post the case #.
     
    aaefiikmnnnr likes this.
  13. GH-Spencer

    GH-Spencer

    Joined:
    Jun 6, 2013
    Posts:
    4
    Was this fix added to any version of 5.X? We are having this issue currently. I am running 5.2.3f1.
     
  14. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    All "M" fixes available at the moment should be available in:
    - final 4.x (4.7?) version
    - 5.2.4 final
    - 5.3.0p1 has most fixes but one small feature missing.
     
  15. GH-Spencer

    GH-Spencer

    Joined:
    Jun 6, 2013
    Posts:
    4
    Is there a release window for 5.2.4?
     
  16. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
  17. bluescrn

    bluescrn

    Joined:
    Feb 25, 2013
    Posts:
    642