GithubHelp home page GithubHelp logo

Comments (7)

bohdansushchak avatar bohdansushchak commented on May 31, 2024

I have the same issue
"jail-monkey": "^2.3.3",
"react-native": "0.61.5",

Samsung Galaxy Note9, Android 10
Samsung Galaxy S9+, Android 10

from jail-monkey.

hwq0521 avatar hwq0521 commented on May 31, 2024

I have the same issue
"jail-monkey": "^2.3.2",
"react-native": "0.61.5",

Galaxy Note10+, Android 10
Galaxy Note9, Android 10
Galaxy S20+, Android 11

from jail-monkey.

nzankich avatar nzankich commented on May 31, 2024

Getting this issue as well. It seems to be exclusive to Samsung devices.

It comes in as
Exception in HostObject::get(propName:JailMonkey): java.lang.NullPointerException: Attempt to get length of null array
sometimes as well

from jail-monkey.

nzankich avatar nzankich commented on May 31, 2024

my team only uses the mocked location and rooted check so it must be from one of those. If I had to guess it's coming from the mocked location check here:

                    pm.getInstalledApplications(PackageManager.GET_META_DATA);

Android docs say that it can't come back as null
https://developer.android.com/reference/android/content/pm/PackageManager#getInstalledApplications(int)

BUT I do see some cases online where people say it's coming back as null if permission settings are wrong. it's just a guess though. Almost everything else in there is covered by try/catches

from jail-monkey.

mountainfirefly avatar mountainfirefly commented on May 31, 2024

@nzankich If at the android side it is coming as null, does it mean it is not a rooted device?

from jail-monkey.

nzankich avatar nzankich commented on May 31, 2024

@mountainfirefly if anything it would be the opposite. maybe the rooted device is disrupting/blocking that check?

I don't think there is any correlation though. I think Samsung devices have a bug/are just doing something against Android specs

from jail-monkey.

pke avatar pke commented on May 31, 2024

Had this problem today too and came here via google. Samsung device. Any idea what could cause it?
Could be our JM version is too old, this seems to have been fixed in 2.6.0
2492b47

from jail-monkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.