Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by rahul.s · Apr 19, 2013 at 04:37 PM · androidplugin

Burstly Integration with Unity Android giving java.lang.securityException

I am trying to create a plugin for Burstly for Unity Android. I first created a sample android native app for it and it worked fine. Then I made the necessary changes in the project [like changing Activity to UnityPlayerActivity] and made a jar out of it. Put this and the BurstlySdk.jar in the Assets/Plugins/Android folder along with the AndroidManifest.xml which had the required permissions. But when trying to run the genereated .apk on the android device I am getting the following error-

04-19 17:13:37.857: E/AndroidRuntime(17587): Caused by: java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10111 nor current process has android.permission.READ_PHONE_STATE. 04-19 17:13:37.857: E/AndroidRuntime(17587): at android.os.Parcel.readException(Parcel.java:1327) 04-19 17:13:37.857: E/AndroidRuntime(17587): at android.os.Parcel.readException(Parcel.java:1281) 04-19 17:13:37.857: E/AndroidRuntime(17587): at com.android.internal.telephony.IPhoneSubInfo$Stub$Proxy.getDeviceId(IPhoneSubInfo.java:190) 04-19 17:13:37.857: E/AndroidRuntime(17587): at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:219) 04-19 17:13:37.857: E/AndroidRuntime(17587): at com.burstly.lib.util.Utils.getRawDeviceId(Utils.java:1128) 04-19 17:13:37.857: E/AndroidRuntime(17587): at com.burstly.lib.util.Utils.getDeviceSHA1Id(Utils.java:1035) 04-19 17:13:37.857: E/AndroidRuntime(17587): at com.burstly.lib.util.Utils.getDeviceId(Utils.java:994) 04-19 17:13:37.857: E/AndroidRuntime(17587): at com.burstly.lib.ui.BurstlyView.configureRequestData(BurstlyView.java:341)**

This permission [android.permission.READ_PHONE_STATE] is already present in the AndroidManifest.xml but it is still not able to pick it up. The version of Unity which I am using is 4.1.0f4. Can I get some pointers what the issue might be?

Thanks Rahul Saxena

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by alexmiyamura · Apr 25, 2013 at 01:28 PM

Hi,

I'm Alex from Burstly. I'm wondering if you included the permissions in both the AndroidManifest.xml file in your jar as well. I'm currently working on a Unity plugin internally and have gotten Unity and Burstly working well by creating a jar containing an AndroidManifest.xml file (see below for an example) and, as you said, subclassing UnityPlayerActivity and including Burstly functionality in my own activity.

  • Alex

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Game Thrive (One Signal) causes game to crash when calling init method. 1 Answer

Plugin Current Activity 3 Answers

Access app_icon from an Android Plugin 2 Answers

Android plugin segfaults before constructor is called 0 Answers

How do I correctly install the Facebook SDK plugin? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges