Bug 306088

Summary: crash if i try to include QtSystemInfo library
Product: [Unmaintained] Necessitas Reporter: strupfinger
Component: Android Qt4 MobilityAssignee: BogDan Vatra <bogdan>
Status: RESOLVED FIXED    
Severity: crash    
Priority: HI    
Version: alpha4   
Target Milestone: Alpha 4   
Platform: Android   
OS: Android 4.x   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description strupfinger 2012-08-31 15:29:46 UTC
After adding the library to our project, app will die immediately after the Necessitas splash screen. 

log:
I/dalvikvm(22489):   at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm(22489): 
E/dalvikvm(22489): VM aborting
F/libc    (22489): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1)

test project: https://dl.dropbox.com/u/1575961/androtest.zip

Reproducible: Always

Steps to Reproduce:
1. add <item>QtSystemInfo</item> to /android/res/values/libs.xml file
2. add:
CONFIG += mobility
MOBILITY = systeminfo
to *.pro file
3. build and run on adroid 4.x
Comment 1 BogDan Vatra 2012-08-31 17:45:53 UTC
Make sure you add "android.permission.DISABLE_KEYGUARD" permission.
Comment 2 BogDan Vatra 2012-08-31 17:55:49 UTC
Git commit 5977d098ae1b577e684f08d5d3463a968fa4a61f by BogDan Vatra.
Committed on 31/08/2012 at 19:48.
Pushed by vatra into branch 'alpha4'.

Don't crash if DISABLE_KEYGUARD permission is not set.

M  +18   -11   src/android/jar/src/org/kde/necessitas/mobile/QtSystemInfo.java

http://commits.kde.org/android-qt/5977d098ae1b577e684f08d5d3463a968fa4a61f
Comment 3 BogDan Vatra 2012-08-31 17:55:49 UTC
Git commit 5977d098ae1b577e684f08d5d3463a968fa4a61f by BogDan Vatra.
Committed on 31/08/2012 at 19:48.
Pushed by vatra into branch 'alpha4'.

Don't crash if DISABLE_KEYGUARD permission is not set.

M  +18   -11   src/android/jar/src/org/kde/necessitas/mobile/QtSystemInfo.java

http://commits.kde.org/android-qt/5977d098ae1b577e684f08d5d3463a968fa4a61f