chylek / FakeWifi

Make android apps believe Wifi is connected. Handy in situations where there is a (non wifi) connection, but some app won't do its thing unless it thinks it's on wifi.
Other
31 stars 13 forks source link

To determine whether this is a system app. #3

Closed donething closed 6 years ago

donething commented 6 years ago

By "(p.versionName == null)" to determine whether this is a system app, it seems invalid.
On my cell phone, for "null" only these three:

Thank you for your attention

chylek commented 6 years ago

Yeah, these are the remnants of the old code that are no longer being used. The condition if ((!getSysPackages) && (p.versionName == null)) is never met (getSysPackages is always true). Apparently this code is from an answer on Stack Overflow https://stackoverflow.com/a/8052835/1120225 and there are also alternatives how to get system apps. Thanks for pointing that out.

donething commented 6 years ago

Thank you, get it.