java.lang.NullPointerExeption: Attempt to read from field 'java.lang.String android.content.pm.PackageInfo.packageName' on a null object referencePlease post your device manufacturer/model, Android version and custom ROM name, if used.
just tested your app and I tried sending myself and my girlfriend the test sms and both WORKED.
Congratulations, do you need any info, logs?
I am the Meizu guy ;-)
New test app created!
Please run the attached debug app to help me test if the use of a background process is the cause of the issue.
New test app created!
Please run the attached debug app to help me test if the use of sharedUserId (including a background process) is the cause of the issue.
On some devices the SMS send block will fail with the following error:java.lang.NullPointerExeption: Attempt to read from field 'java.lang.String android.content.pm.PackageInfo.packageName' on a null object reference
This is Android or manufacturer ROM bug. It seems to be cause by the app "thread" (ActivityThread) not being properly initialized, cause yet unknown.
The only workaround, for now, is to use the MMS send block instead.
An initial round of testing has been done, conclusion so far:
- It doesn't seem to be caused by sending from a background (non-main) thread.
- It doesn't seem to be caused by the SEND_SMS permission being in the separate add-on app.
Possible causes still to be tested, see attached APKs below:
On some devices the SMS send block will fail with the following error:java.lang.NullPointerExeption: Attempt to read from field 'java.lang.String android.content.pm.PackageInfo.packageName' on a null object reference
This is Android or manufacturer ROM bug. It seems to be cause by the app "thread" (ActivityThread) not being properly initialized, cause yet unknown.
The only workaround, for now, is to use the MMS send block instead.
Conclusion of testing so far:
- It doesn't seem to be caused by sending from a background (non-main) thread.
- It doesn't seem to be caused by the SEND_SMS permission being in the separate add-on app.
- Multiple user profiles (device users) running Automate on the same device.
- The use of sharedUserId, i.e. sharing a single uid (app user space) for multiple apps, as Automate does to facilitate the permissions add-ons.
- The use of a separate process for background work, as Automate does to reduce memory usage.
- Binder caller uid/pid "leakage".
Reportedly affected devices:
- Android 5.1 on a Meizu M2 with Flyme OS 4.5.3.2C
- Doogee X5 with stock ROM v18 and several custom ROMs
- P8000 phone on Android 6 (working on Android 5.1)
- Philips Xenium v377
- Android 6.0 on Lenovo A7000
- acer/T03_emea_gen1/acer_t03:5.1
Please post your device manufacturer/model, Android version and custom ROM name, if used.
Alpha version 1.6.0a1 include a new workaround, please test:
https://play.google.com/apps/testing/com.llamalab.automate
A workaround has been found! Enable the SMS send workaround option if settings.