nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.06k stars 1.74k forks source link

Device credentials bypass due to Settings crash #3277

Closed erikhubers closed 5 years ago

erikhubers commented 5 years ago

Steps to reproduce

  1. Make sure you set Lock mechanism to "Device credentials"
  2. Make sure you start app for first time (i.e. by first killing it via Android Settings).
  3. Hold phone in landscape mode
  4. Start NextCloud app. (Settings crashed).
  5. Press "Open again"
  6. Voila, NextCloud app starts without unlocking.

Video demo

Expected behaviour

App should open only after valid unlock.

Actual behaviour

App opens without any unlock validation

Server configuration detail

Operating system: Linux 4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64

Webserver: Apache (fpm-fcgi)

Database: mysql 5.7.24

PHP version:

7.1.24-1+ubuntu18.04.1+deb.sury.org+1 Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, intl, json, exif, mcrypt, msgpack, mysqli, pdo_mysql, pdo_sqlite, apc, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Phar, memcached, Zend OPcache

Nextcloud version: 14.0.3 - 14.0.3.0

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status Array ( )
List of activated apps ``` Enabled: - accessibility: 1.0.1 - activity: 2.7.0 - admin_audit: 1.4.0 - afterlogic: 1.2.1 - apporder: 0.5.0 - audioplayer: 2.4.1 - bruteforcesettings: 1.2.0 - calendar: 1.6.3 - checksum: 0.4.1 - cloud_federation_api: 0.0.1 - comments: 1.4.0 - contacts: 2.1.7 - dav: 1.6.0 - deck: 0.5.0 - facerecognition: 0.5.6.2 - federatedfilesharing: 1.4.0 - federation: 1.4.0 - files: 1.9.0 - files_downloadactivity: 1.3.0 - files_pdfviewer: 1.3.2 - files_sharing: 1.6.2 - files_texteditor: 2.6.0 - files_trashbin: 1.4.1 - files_versions: 1.7.1 - files_videoplayer: 1.3.0 - firstrunwizard: 2.3.0 - gallery: 18.1.0 - groupfolders: 1.3.3 - issuetemplate: 0.4.0 - logreader: 2.0.0 - lookup_server_connector: 1.2.0 - metadata: 0.8.0 - nextcloud_announcements: 1.3.0 - notifications: 2.2.1 - oauth2: 1.2.1 - password_policy: 1.4.0 - previewgenerator: 2.0.0 - provisioning_api: 1.4.0 - richdocuments: 3.0.5 - serverinfo: 1.4.0 - sharebymail: 1.4.0 - socialsharing_email: 1.0.4 - support: 1.0.0 - survey_client: 1.2.0 - systemtags: 1.4.0 - tasks: 0.9.7 - theming: 1.5.0 - twofactor_backupcodes: 1.3.1 - twofactor_totp: 1.5.0 - twofactor_u2f: 1.6.1 - updatenotification: 1.4.1 - workflowengine: 1.4.0 Disabled: - encryption - files_automatedtagging - files_external - files_retention - files_snapshots - polls - user_external - user_ldap ```
Configuration (config/config.php) ``` { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "xin.erikhubers.nl", "nextcloud.erikhubers.nl" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "https:\/\/xin.erikhubers.nl\/nextcloud", "dbtype": "mysql", "version": "14.0.3.0", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "loglevel": 0, "maintenance": false, "theme": "", "memcache.local": "\\OC\\Memcache\\APCu", "memcached_servers": [ [ "localhost", 11211 ] ], "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpauth": 1, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "updater.release.channel": "stable", "mail_smtpsecure": "tls" } ```

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption:

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Android: 8.1.0 (LineageOS 15.1)

Operating system:

Logs

Android ADB log ``` Android ADB Logging: 11-20 20:04:46.184 1278-4529/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.nextcloud.client/com.owncloud.android.ui.activity.FileDisplayActivity (has extras)} from uid 10149 11-20 20:04:46.239 1278-4529/? I/ActivityManager: Start proc 27990:com.nextcloud.client/u0a99 for activity com.nextcloud.client/com.owncloud.android.ui.activity.FileDisplayActivity 11-20 20:04:46.267 26216-27434/? I/PBSessionCacheImpl: Deleted sessionId[115300730005456032] from persistence. 11-20 20:04:46.274 26216-26216/? W/SearchServiceCore: Abort, client detached. Abort, client detached. 11-20 20:04:46.340 27990-27990/? I/MultiDex: VM with version 2.1.0 has multidex support Installing application VM has multidex support, MultiDex support library is disabled. 11-20 20:04:46.366 27990-27990/? D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization. com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization. 11-20 20:04:46.367 27990-27990/? D/FirebaseApp: com.google.android.gms.measurement.AppMeasurement is not linked. Skipping initialization. 11-20 20:04:46.367 27990-27990/? I/FirebaseInitProvider: FirebaseApp initialization successful 11-20 20:04:46.396 27990-27990/? D/Debug: start logging 11-20 20:04:46.408 27990-27990/? I/JobManager: Found pending job request{id=4575, tag=FilesSyncJob, transient=false}, canceling 11-20 20:04:46.413 27990-28011/? I/zygote64: The ClassLoaderContext is a special shared library. 11-20 20:04:46.433 27990-28011/? V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 287 native methods... 11-20 20:04:46.434 27990-27990/? D/JobProxy26: Schedule periodic jobInfo success, request{id=4579, tag=FilesSyncJob, transient=false}, interval 00:15:00, flex 00:05:00 11-20 20:04:46.456 27990-28011/? D/NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: false 11-20 20:04:46.460 27990-28011/? I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL 11-20 20:04:46.463 27990-27990/? D/ContactsPreferenceActivity: start daily contacts backup job 11-20 20:04:46.464 27990-27990/? D/ContactsPreferenceActivity: disabling existing contacts backup job for account: user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:46.468 27990-27990/? I/JobManager: Found pending job request{id=4576, tag=ContactsBackupJob, transient=false}, canceling 11-20 20:04:46.470 27990-28015/? D/NetworkUtils: Searching known-servers store at /data/user/0/com.nextcloud.client/files/knownServers.bks 11-20 20:04:46.473 27990-28016/? D/ThumbnailsCacheManager: create dir: /storage/emulated/0/Android/data/com.nextcloud.client/cache/thumbnailCache 11-20 20:04:46.473 27990-28015/? D/OwnCloudClient #0: Creating OwnCloudClient 11-20 20:04:46.476 27990-28015/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:46.477 27990-28015/? D/OwnCloudClient #0: REQUEST GET /index.php/204 11-20 20:04:46.483 27990-28015/? D/AdvancedSslSocketFactory: Creating SSL Socket with remote removed_for_privacy.nl:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@f5c8239 ... with connection timeout 60000 and socket timeout 60000 11-20 20:04:46.487 26518-26558/? I/Finsky: [606] com.google.android.finsky.bp.an.run(6): Stats for Executor: Db-verify_apps.db com.google.android.finsky.bp.ao@b6c328e[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1] 11-20 20:04:46.498 27990-28015/? I/ServerNameIndicator: SSLSocket implementation: com.google.android.gms.org.conscrypt.Java8FileDescriptorSocket SNI done, hostname: removed_for_privacy.nl 11-20 20:04:46.518 27990-27990/? D/JobProxy26: Schedule periodic jobInfo success, request{id=4580, tag=ContactsBackupJob, transient=false}, interval 00:00:00 (+1 day), flex 00:00:00 (+1 day) 11-20 20:04:46.522 27990-27990/? I/JobManager: Found pending job request{id=4577, tag=MediaFoldersDetectionJob, transient=false}, canceling 11-20 20:04:46.544 27990-27990/? D/JobProxy26: Schedule periodic jobInfo success, request{id=4581, tag=MediaFoldersDetectionJob, transient=false}, interval 00:15:00, flex 00:05:00 11-20 20:04:46.580 27990-27990/? V/FileDisplayActivity: onCreate() start 11-20 20:04:46.582 4057-4057/? W/Notification: Use of stream types is deprecated for operations other than volume control 11-20 20:04:46.583 4057-4057/? W/Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 11-20 20:04:46.585 27990-27990/? D/FileDisplayActivity: onCreate(Bundle) starting 11-20 20:04:46.620 27990-27990/? I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead. 11-20 20:04:46.727 27990-27990/? D/FileDisplayActivity: onStart() starting 11-20 20:04:46.727 1278-2654/? I/ActivityManager: START u0 {flg=0x20000 cmp=com.nextcloud.client/com.owncloud.android.ui.activity.RequestCredentialsActivity} from uid 10099 11-20 20:04:46.790 27990-27990/? D/OpenGLRenderer: HWUI GL Pipeline 11-20 20:04:46.796 27990-28020/? D/OwnCloudClient #1: Creating OwnCloudClient 11-20 20:04:46.796 27990-28020/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:46.798 27990-28021/? D/OwnCloudClient #2: Creating OwnCloudClient 11-20 20:04:46.798 27990-28021/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:46.822 27990-28020/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:46.822 27990-28021/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:46.827 27990-28021/? D/OwnCloudClient #2: REQUEST GET /ocs/v1.php/cloud/users/user_removed_for_privacy 11-20 20:04:46.827 27990-28021/? D/AdvancedSslSocketFactory: Creating SSL Socket with remote removed_for_privacy.nl:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@fe351c2 ... with connection timeout 60000 and socket timeout 60000 11-20 20:04:46.829 27990-28021/? I/ServerNameIndicator: SSLSocket implementation: com.google.android.gms.org.conscrypt.Java8FileDescriptorSocket SNI done, hostname: removed_for_privacy.nl 11-20 20:04:46.830 27990-28020/? D/Avatar: URI: https://removed_for_privacy.nl/index.php/avatar/user_removed_for_privacy/384 11-20 20:04:46.834 27990-27990/? D/FileDisplayActivity: Initializing Fragments in onAccountChanged.. 11-20 20:04:46.834 27990-27990/? E/FileDisplayActivity: Access to unexisting list of files fragment!! Still have a chance to lose the initializacion of list fragment >( 11-20 20:04:46.835 27990-28020/? D/OwnCloudClient #1: REQUEST GET /index.php/avatar/user_removed_for_privacy/384 11-20 20:04:46.835 27990-28020/? D/AdvancedSslSocketFactory: Creating SSL Socket with remote removed_for_privacy.nl:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@80b5310 ... with connection timeout 60000 and socket timeout 60000 11-20 20:04:46.836 27990-28020/? I/ServerNameIndicator: SNI done, hostname: removed_for_privacy.nl 11-20 20:04:46.887 27990-28022/? D/ExternalLinks: links disabled 11-20 20:04:46.904 27990-28024/? D/OwnCloudClient #2: REQUEST GET /ocs/v1.php/cloud/users/user_removed_for_privacy 11-20 20:04:46.904 27990-28024/? D/AdvancedSslSocketFactory: Creating SSL Socket with remote removed_for_privacy.nl:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@a97eeff ... with connection timeout 60000 and socket timeout 60000 11-20 20:04:46.905 27990-28024/? I/ServerNameIndicator: SNI done, hostname: removed_for_privacy.nl 11-20 20:04:46.964 27990-27990/? E/FileDisplayActivity: Access to unexisting list of files fragment!! 11-20 20:04:46.973 27990-27990/? V/FileDisplayActivity: onResume() start 11-20 20:04:46.973 27990-27990/? D/FileDisplayActivity: onResume() starting 11-20 20:04:46.973 27990-27990/? I/OCFileListFragment: onAttach 11-20 20:04:46.987 27990-27990/? I/OCFileListFragment: onCreateView() start 11-20 20:04:46.987 27990-27990/? D/ExtendedListFragment: onCreateView 11-20 20:04:47.054 27990-28015/? D/OwnCloudClient #3: Creating OwnCloudClient 11-20 20:04:47.056 27990-27990/? I/OCFileListFragment: onCreateView() end onActivityCreated() start 11-20 20:04:47.056 27990-28015/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:47.058 27990-28015/? D/OwnCloudClient #3: REQUEST GET /index.php/204 11-20 20:04:47.192 26518-26558/? I/Finsky: [606] com.google.android.finsky.bp.an.run(6): Stats for Executor: Db-scheduler com.google.android.finsky.bp.ao@c4cfaaf[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 3] 11-20 20:04:47.208 27990-27990/? V/FileDisplayActivity: onResume() end 11-20 20:04:47.231 27990-28027/? D/OwnCloudClient #4: Creating OwnCloudClient 11-20 20:04:47.231 27990-27990/? D/OperationsService: Creating service 11-20 20:04:47.233 1278-1477/? W/ActivityManager: Activity pause timeout for ActivityRecord{c3c49f9 u0 com.nextcloud.client/com.owncloud.android.ui.activity.FileDisplayActivity t4603} 11-20 20:04:47.235 27990-28027/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:47.236 27990-28027/? D/OwnCloudClient #4: REQUEST GET /index.php/204 11-20 20:04:47.241 27990-28028/? D/OwnCloudClient #5: Creating OwnCloudClient 11-20 20:04:47.241 2407-28026/? W/GAv4-SVC: Network compressed POST connection error: java.net.ConnectException: Failed to connect to ssl.google-analytics.com/127.0.0.1:443 11-20 20:04:47.245 27990-28028/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:47.246 27990-28028/? D/OwnCloudClient #5: REQUEST GET /index.php/204 11-20 20:04:47.260 27990-27990/? D/FileDownloader: Creating service 11-20 20:04:47.276 27990-27990/? D/FileUploader: Creating service 11-20 20:04:47.284 27990-27990/? V/UploadsStorageManager: Updating state of any killed upload 11-20 20:04:47.290 27990-27990/? V/UploadsStorageManager: No upload was killed 11-20 20:04:47.293 27990-27990/? V/FileDisplayActivity: onPause() start 11-20 20:04:47.294 27990-27990/? D/FileDisplayActivity: onPause() ending 11-20 20:04:47.294 27990-27990/? V/FileDisplayActivity: onPause() end 11-20 20:04:47.333 27990-28034/? D/PlatformJobService: Run job, request{id=4580, tag=ContactsBackupJob, transient=false}, waited 00:00:00, interval 00:00:00 (+1 day), flex 00:00:00 (+1 day) 11-20 20:04:47.334 27990-28034/? I/JobExecutor: Executing request{id=4580, tag=ContactsBackupJob, transient=false}, context PlatformJobService 11-20 20:04:47.339 27990-28016/? D/PlatformAlarmService: Run job, request{id=4582, tag=MediaFoldersDetectionJob, transient=false}, waited 00:00:00, delay 00:00:00 11-20 20:04:47.345 27990-28036/? D/ContactsBackupJob: last execution less than 24h ago 11-20 20:04:47.345 27990-28036/? I/JobExecutor: Finished job{id=4580, finished=true, result=SUCCESS, canceled=false, periodic=true, class=ContactsBackupJob, tag=ContactsBackupJob} 11-20 20:04:47.349 27990-27990/? D/RequestCredentialsActivity: onCreate(Bundle) starting 11-20 20:04:47.351 26518-26558/? I/Finsky: [606] com.google.android.finsky.bp.an.run(6): Stats for Executor: InstallQueueDatabaseManager com.google.android.finsky.bp.ao@3823ebc[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1] 11-20 20:04:47.356 27990-28016/? I/JobExecutor: Executing request{id=4582, tag=MediaFoldersDetectionJob, transient=false}, context PlatformAlarmService 11-20 20:04:47.357 27990-27990/? D/RequestCredentialsActivity: onStart() starting 11-20 20:04:47.358 27990-27990/? D/RequestCredentialsActivity: onResume() starting 11-20 20:04:47.363 27990-28034/? D/PlatformJobService: Finished job, request{id=4580, tag=ContactsBackupJob, transient=false} SUCCESS 11-20 20:04:47.366 1278-2654/? I/ActivityManager: START u0 {act=android.app.action.CONFIRM_DEVICE_CREDENTIAL flg=0x20000000 pkg=com.android.settings cmp=com.android.settings/.password.ConfirmDeviceCredentialActivity (has extras)} from uid 10099 11-20 20:04:47.376 1278-1287/? I/zygote64: Background concurrent copying GC freed 39825(1994KB) AllocSpace objects, 20(1336KB) LOS objects, 42% free, 22MB/39MB, paused 162us total 195.795ms 11-20 20:04:47.394 27990-28037/? D/MediaProvider: Reading images for 1x 11-20 20:04:47.405 27990-27990/? D/FileActivity: Operations service connected 11-20 20:04:47.405 27990-27990/? D/FileDisplayActivity: Download service connected 11-20 20:04:47.406 27990-28037/? D/MediaProvider: Reading images for 2x 11-20 20:04:47.420 27990-28027/? D/OwnCloudClient #6: Creating OwnCloudClient 11-20 20:04:47.421 27990-28037/? D/MediaProvider: Reading images for Artwork 11-20 20:04:47.423 27990-28027/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:47.424 27990-28027/? D/OwnCloudClient #6: REQUEST GET /index.php/204 11-20 20:04:47.433 27990-28037/? D/MediaProvider: Reading images for Camera 11-20 20:04:47.445 27990-28037/? D/MediaProvider: Reading images for Camera 11-20 20:04:47.449 27990-27990/? D/FileDisplayActivity: Upload service connected 11-20 20:04:47.453 27990-28037/? D/MediaProvider: Reading images for Cover 11-20 20:04:47.472 27990-28037/? D/MediaProvider: Reading images for Download 11-20 20:04:47.488 27990-28037/? D/MediaProvider: Reading images for Hangouts 11-20 20:04:47.492 27990-27990/? D/RequestCredentialsActivity: onPause() ending 11-20 20:04:47.519 27990-28037/? D/MediaProvider: Reading images for KopieID 11-20 20:04:47.519 27990-28041/? I/Adreno: QUALCOMM build : dceea4a, Iedf7298c8c Build Date : 02/19/18 OpenGL ES Shader Compiler Version: EV031.22.00.01 Local Branch : Remote Branch : Remote Branch : Reconstruct Branch : 11-20 20:04:47.523 1278-8205/? I/ActivityManager: START u0 {flg=0x2000000 cmp=com.android.settings/.password.ConfirmLockPassword (has extras)} from uid 1000 11-20 20:04:47.530 613-621/? E/SurfaceFlinger: Failed to find layer (Splash Screen com.nextcloud.client#0) in layer parent (no-parent). 11-20 20:04:47.536 27990-28041/? I/Adreno: PFP: 0x005ff087, ME: 0x005ff063 11-20 20:04:47.550 27990-28028/? D/OwnCloudClient #7: Creating OwnCloudClient 11-20 20:04:47.551 27990-28037/? D/MediaProvider: Reading images for Microsoft Teams 11-20 20:04:47.554 27990-28041/? I/zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 1 11-20 20:04:47.554 27990-28028/? D/AccountUtils: Restoring cookies for user_removed_for_privacy@removed_for_privacy.nl 11-20 20:04:47.555 27990-28041/? I/OpenGLRenderer: Initialized EGL, version 1.4 11-20 20:04:47.555 27990-28041/? D/OpenGLRenderer: Swap behavior 2 11-20 20:04:47.556 27990-28028/? D/OwnCloudClient #7: REQUEST GET /index.php/204 11-20 20:04:47.574 27990-28037/? D/MediaProvider: Reading images for OpenCamera 11-20 20:04:47.586 4057-4057/? W/Notification: Use of stream types is deprecated for operations other than volume control See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 11-20 20:04:47.591 27990-28037/? D/MediaProvider: Reading images for Photo Metadata Remover 11-20 20:04:47.607 27990-28037/? D/MediaProvider: Reading images for Pictures 11-20 20:04:47.623 27990-28037/? D/MediaProvider: Reading images for Scan 11-20 20:04:47.640 27990-28037/? D/MediaProvider: Reading images for Screenshots 11-20 20:04:47.655 27990-28037/? D/MediaProvider: Reading images for Telegram 11-20 20:04:47.655 27874-27874/? D/AndroidRuntime: Shutting down VM --------- beginning of crash 11-20 20:04:47.656 27874-27874/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.android.settings, PID: 27874 java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.password.ConfirmLockPassword}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setAlpha(float)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3581) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3621) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2862) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setAlpha(float)' on a null object reference at com.android.settings.password.ConfirmLockPassword$ConfirmLockPasswordFragment.prepareEnterAnimation(ConfirmLockPassword.java:249) at com.android.settings.password.ConfirmDeviceCredentialBaseActivity.prepareEnterAnimation(ConfirmDeviceCredentialBaseActivity.java:138) at com.android.settings.password.ConfirmDeviceCredentialBaseActivity.onResume(ConfirmDeviceCredentialBaseActivity.java:115) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1355) at android.app.Activity.performResume(Activity.java:7117) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3556) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3621) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2862) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 11-20 20:04:47.659 1278-8205/? W/ActivityManager: Force finishing activity com.android.settings/.password.ConfirmLockPassword 11-20 20:04:47.662 27874-27894/? W/TileUtils: Found com.android.settings.backup.BackupSettingsActivity for intent Intent { act=com.android.settings.action.SETTINGS pkg=com.android.settings } missing metadata com.android.settings.category 11-20 20:04:47.664 27874-27894/? W/TileUtils: Found org.lineageos.lineageparts.trust.TrustPreferences for intent Intent { act=org.lineageos.lineageparts.action.SETTINGS pkg=org.lineageos.lineageparts } missing metadata 11-20 20:04:47.668 1278-1477/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver 11-20 20:04:47.673 1278-1478/? I/ActivityManager: Showing crash dialog for package com.android.settings u0 11-20 20:04:47.681 27874-27894/? D/Settings: No enabled state changed, skipping updateCategory call 11-20 20:04:47.683 27990-28037/? D/MediaProvider: Reading images for WhatsApp Images 11-20 20:04:47.701 27990-28037/? D/MediaProvider: Reading images for WhatsApp Profile Photos 11-20 20:04:47.710 1278-3642/? I/OpenGLRenderer: Initialized EGL, version 1.4 11-20 20:04:47.710 1278-3642/? D/OpenGLRenderer: Swap behavior 2 11-20 20:04:47.716 27990-28037/? D/MediaProvider: Reading images for custom 11-20 20:04:47.730 27990-28037/? D/MediaProvider: Reading images for drawable-hdpi 11-20 20:04:47.745 27990-28037/? D/MediaProvider: Reading images for drawable-mdpi 11-20 20:04:47.760 27990-28037/? D/MediaProvider: Reading images for drawable-xhdpi 11-20 20:04:47.773 27990-28037/? D/MediaProvider: Reading images for drawable-xxhdpi 11-20 20:04:47.786 27990-28037/? D/MediaProvider: Reading images for drawable-xxxhdpi 11-20 20:04:47.835 27990-28037/? D/MediaProvider: Reading videos for removed_for_privacy 11-20 20:04:47.857 27990-28037/? D/MediaProvider: Reading videos for removed_for_privacy 11-20 20:04:47.871 27990-28037/? D/MediaProvider: Reading videos for removed_for_privacy 11-20 20:04:47.883 27990-28037/? D/MediaProvider: Reading videos for removed_for_privacy 11-20 20:04:47.895 27990-28037/? D/MediaProvider: Reading videos for removed_for_privacy 11-20 20:04:47.902 27990-28037/? D/MediaProvider: Reading videos for removed_for_privacy 11-20 20:04:47.908 27990-28037/? D/MediaProvider: Reading videos for removed_for_privacy 11-20 20:04:47.914 27990-28037/? D/MediaProvider: Reading videos for removed_for_privacy 11-20 20:04:47.925 27990-28037/? D/MediaProvider: Reading videos for removed_for_privacy 11-20 20:04:47.930 27990-28037/? D/MediaProvider: Reading videos for Download 11-20 20:04:47.949 27990-28037/? V/ArbitraryDataProvider: Updating arbitrary data with cloud id: global key: media_folders value: {"imageMediaFolders":["/storage/emulated/0/Download/1x","/storage/emulated/0/Download/2x",removed_for_privacy"],"videoMediaFolders":[]} 11-20 20:04:47.965 27990-28037/? I/JobExecutor: Finished job{id=4582, finished=true, result=SUCCESS, canceled=false, periodic=false, class=MediaFoldersDetectionJob, tag=MediaFoldersDetectionJob} 11-20 20:04:47.966 27990-28016/? D/PlatformAlarmService: Finished job, request{id=4582, tag=MediaFoldersDetectionJob, transient=false} SUCCESS 11-20 20:04:48.162 1278-1477/? W/ActivityManager: Activity pause timeout for ActivityRecord{b498447 u0 com.android.settings/.password.ConfirmLockPassword t4603 f} 11-20 20:04:48.289 27990-27990/? D/DrawerActivity: PassCodeManager cancelled 11-20 20:04:48.589 4057-4057/? W/Notification: Use of stream types is deprecated for operations other than volume control See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 11-20 20:04:48.598 1278-8205/? I/ActivityManager: Killing 27874:com.android.settings/1000 (adj 700): crash 11-20 20:04:48.598 1278-1479/? W/zygote64: kill(-27874, 9) failed: No such process 11-20 20:04:48.623 1278-8205/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10300000 cmp=com.nextcloud.client/com.owncloud.android.ui.activity.FileDisplayActivity bnds=[168,619][562,815] (has extras)} from uid 10149 11-20 20:04:48.626 26216-26216/? W/SearchServiceClient: Starting with NO_SESSION handoverId is deprecated. Just don't. You will break. com.google.android.apps.gsa.shared.util.common.f: SearchServiceClient: Starting with NO_SESSION handoverId is deprecated. Just don't. You will break. at com.google.android.apps.gsa.shared.util.common.e.a(SourceFile:43) at com.google.android.apps.gsa.shared.util.common.e.f(SourceFile:6) at com.google.android.apps.gsa.search.shared.service.SearchServiceClient.a(SourceFile:119) at com.google.android.apps.gsa.search.shared.service.SearchServiceClient.mg(SourceFile:103) at com.google.android.hotword.service.c.af(SourceFile:18) at com.google.android.hotword.service.d.run(SourceFile:3) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6494) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) 11-20 20:04:48.627 1278-1479/? W/zygote64: kill(-27874, 9) failed: No such process 11-20 20:04:48.630 26216-26216/? E/PBSessionCacheImpl: sessionId[115300730005456032] not persisted. 11-20 20:04:48.633 26216-24494/? I/PBSessionCacheImpl: Deleted sessionId[115300730005456032] from persistence. 11-20 20:04:48.634 1278-1479/? W/zygote64: kill(-27874, 9) failed: No such process 11-20 20:04:48.635 1278-4529/? I/WifiService: getConnectionInfo uid=10042 11-20 20:04:48.636 1278-4529/? D/WifiPermissionsUtil: Denied: no location permission Denied: The current config is not for an open network. 11-20 20:04:48.638 1278-4529/? I/WifiService: getWifiEnabledState uid=10042 11-20 20:04:48.644 1278-4529/? E/ActivityManager: applyOptionsLocked: Unknown animationType=0 11-20 20:04:48.648 1278-8205/? I/WifiService: getConnectionInfo uid=10042 11-20 20:04:48.649 1278-8205/? D/WifiPermissionsUtil: Denied: no location permission Denied: The current config is not for an open network. 11-20 20:04:48.651 1278-8205/? I/WifiService: getWifiEnabledState uid=10042 11-20 20:04:48.656 1278-1479/? W/zygote64: kill(-27874, 9) failed: No such process 11-20 20:04:48.661 26216-26216/? I/MicroDetectionState: Keep running hotword in interactor process 11-20 20:04:48.668 1278-1800/? W/InputDispatcher: channel '5028a94 com.android.settings/com.android.settings.applications.InstalledAppDetails (server)' ~ Consumer closed input channel or an error occurred. events=0x9 11-20 20:04:48.668 1278-1800/? E/InputDispatcher: channel '5028a94 com.android.settings/com.android.settings.applications.InstalledAppDetails (server)' ~ Channel is unrecoverably broken and will be disposed! 11-20 20:04:48.677 26216-27434/? I/PBSessionCacheImpl: Deleted sessionId[115300730005456032] from persistence. 11-20 20:04:48.677 26216-26216/? W/SearchServiceCore: Abort, client detached. Abort, client detached. 11-20 20:04:48.685 27990-27990/? V/FileDisplayActivity: onCreate() start 11-20 20:04:48.685 1278-4354/? I/WindowManager: WIN DEATH: Window{5028a94 u0 com.android.settings/com.android.settings.applications.InstalledAppDetails} 11-20 20:04:48.685 1278-4354/? W/InputDispatcher: Attempted to unregister already unregistered input channel '5028a94 com.android.settings/com.android.settings.applications.InstalledAppDetails (server)' 11-20 20:04:48.693 1278-1486/? W/ActivityManager: setHasOverlayUi called on unknown pid: 27874 11-20 20:04:48.694 27990-27990/? D/FileDisplayActivity: onCreate(Bundle) starting 11-20 20:04:48.699 1278-1479/? W/zygote64: kill(-27874, 9) failed: No such process 11-20 20:04:48.699 1278-1479/? I/zygote64: Successfully killed process cgroup uid 1000 pid 27874 in 100ms 11-20 20:04:48.717 27990-27990/? I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead. 11-20 20:04:48.762 1278-1750/? W/AppOps: Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0 11-20 20:04:48.840 27990-27990/? D/FileDisplayActivity: onStart() starting 11-20 20:04:48.893 27990-28053/? D/OwnCloudClient #2: REQUEST GET /ocs/v1.php/cloud/users/user_removed_for_privacy 11-20 20:04:48.894 1278-1287/? I/zygote64: Background concurrent copying GC freed 24397(1288KB) AllocSpace objects, 6(408KB) LOS objects, 42% free, 22MB/39MB, paused 311us total 220.763ms 11-20 20:04:48.900 27990-28020/? D/Avatar: URI: https://removed_for_privacy.nl/index.php/avatar/user_removed_for_privacy/384 11-20 20:04:48.906 27990-28020/? D/OwnCloudClient #2: REQUEST GET /index.php/avatar/user_removed_for_privacy/384 11-20 20:04:48.919 27990-27990/? D/FileDisplayActivity: Initializing Fragments in onAccountChanged.. 11-20 20:04:48.919 27990-27990/? E/FileDisplayActivity: Access to unexisting list of files fragment!! Still have a chance to lose the initializacion of list fragment >( 11-20 20:04:48.968 27990-28057/? D/ExternalLinks: links disabled 11-20 20:04:48.981 27990-28058/? D/OwnCloudClient #2: REQUEST GET /ocs/v1.php/cloud/users/user_removed_for_privacy 11-20 20:04:49.028 27990-27990/? E/FileDisplayActivity: Access to unexisting list of files fragment!! 11-20 20:04:49.035 27990-27990/? V/FileDisplayActivity: onResume() start 11-20 20:04:49.035 27990-27990/? D/FileDisplayActivity: onResume() starting 11-20 20:04:49.036 27990-27990/? I/OCFileListFragment: onAttach 11-20 20:04:49.049 27990-27990/? I/OCFileListFragment: onCreateView() start 11-20 20:04:49.049 27990-27990/? D/ExtendedListFragment: onCreateView 11-20 20:04:49.115 27990-27990/? I/OCFileListFragment: onCreateView() end onActivityCreated() start 11-20 20:04:49.163 1278-4354/? I/WifiService: getWifiEnabledState uid=10029 11-20 20:04:49.164 1278-4354/? I/WifiService: getConnectionInfo uid=10029 11-20 20:04:49.165 1278-4354/? D/WifiPermissionsUtil: Denied: no location permission Denied: The current config is not for an open network. 11-20 20:04:49.166 1278-4354/? I/WifiService: getWifiEnabledState uid=10029 11-20 20:04:49.167 1278-6998/? I/WifiService: getConnectionInfo uid=10029 11-20 20:04:49.168 1278-6998/? D/WifiPermissionsUtil: Denied: no location permission Denied: The current config is not for an open network. 11-20 20:04:49.168 1278-6998/? I/WifiService: getWifiEnabledState uid=10029 11-20 20:04:49.169 1278-6998/? I/WifiService: getConnectionInfo uid=10029 11-20 20:04:49.169 1278-6998/? D/WifiPermissionsUtil: Denied: no location permission Denied: The current config is not for an open network. 11-20 20:04:49.169 1278-6998/? I/WifiService: getWifiEnabledState uid=10029 11-20 20:04:49.170 1278-6998/? I/WifiService: getConnectionInfo uid=10029 11-20 20:04:49.170 1278-6998/? D/WifiPermissionsUtil: Denied: no location permission Denied: The current config is not for an open network. 11-20 20:04:49.171 1278-6998/? I/WifiService: getWifiEnabledState uid=10029 11-20 20:04:49.172 1278-6998/? I/WifiService: getConnectionInfo uid=10029 11-20 20:04:49.173 1278-6998/? D/WifiPermissionsUtil: Denied: no location permission Denied: The current config is not for an open network. 11-20 20:04:49.174 1278-6998/? I/WifiService: getWifiEnabledState uid=10029 getConnectionInfo uid=10029 11-20 20:04:49.174 1278-6998/? D/WifiPermissionsUtil: Denied: no location permission Denied: The current config is not for an open network. 11-20 20:04:49.252 27990-27990/? V/FileDisplayActivity: onResume() end 11-20 20:04:49.261 27990-27990/? D/FileActivity: Operations service connected 11-20 20:04:49.261 27990-27990/? D/FileDisplayActivity: Download service connected 11-20 20:04:49.310 27990-27990/? D/FileDisplayActivity: Upload service connected 11-20 20:04:49.592 4057-4057/? W/Notification: Use of stream types is deprecated for operations other than volume control See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 11-20 20:04:49.671 27990-28060/? D/OwnCloudClient #2: REQUEST GET /status.php 11-20 20:04:49.671 1278-1486/? I/ActivityManager: Displayed com.nextcloud.client/com.owncloud.android.ui.activity.FileDisplayActivity: +1s20ms (total +3s442ms) 11-20 20:04:49.692 27990-27990/? D/FileDisplayActivity: onStop() ending 11-20 20:04:49.701 27990-28060/? W/HttpMethodBase: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended. 11-20 20:04:49.714 27990-27990/? D/FileDisplayActivity: onDestroy() ending 11-20 20:04:49.718 27990-27990/? D/RequestCredentialsActivity: onStop() ending 11-20 20:04:49.719 27990-27990/? D/RequestCredentialsActivity: onDestroy() ending 11-20 20:04:49.721 27990-28060/? D/UpdateOCVersionOperation: Got new OC version 14.0.3.0 11-20 20:04:49.721 27990-28060/? I/UpdateOCVersionOperation: Check for update of Nextcloud server version at https://removed_for_privacy.nl/remote.php/webdav: Operation finished with HTTP status code -1 (success) 11-20 20:04:49.725 27990-28060/? D/OwnCloudClient #2: REQUEST GET /ocs/v1.php/cloud/capabilities 11-20 20:04:49.862 27990-28060/? D/GetRemoteCapabilitiesOperation: Successful response: {"ocs":{"meta":{"status":"ok","statuscode":100,"message":"OK","totalitems":"","itemsperpage":""},"data":{"version":{"major":14,"minor":0,"micro":3,"string":"14.0.3","edition":""},"capabilities":{"core":{"pollinterval":60,"webdav-root":"remote.php\/webdav"},"bruteforce":{"delay":0},"activity":{"apiv2":["filters","filters-api","previews","rich-strings"]},"ocm":{"enabled":true,"apiVersion":"1.0-proposal1","endPoint":"https:\/\/removed_for_privacy.nl\/index.php\/ocm","shareTypes":[{"name":"file","protocols":{"webdav":"\/public.php\/webdav\/"}}]},"dav":{"chunking":"1.0"},"files_sharing":{"api_enabled":true,"public":{"enabled":true,"password":{"enforced":false},"expire_date":{"enabled":false},"send_mail":false,"upload":true,"upload_files_drop":true},"resharing":true,"user":{"send_mail":false,"expire_date":{"enabled":true}},"group_sharing":true,"group":{"enabled":true,"expire_date":{"enabled":true}},"default_permissions":31,"federation":{"outgoing":true,"incoming":true,"expire_date":{"enabled":true}},"sharebymail":{"enabled":true,"upload_files_drop":{"enabled":true},"password":{"enabled":true},"expire_date":{"enabled":true}}},"richdocuments":{"mimetypes":["application\/vnd.oasis.opendocument.text","application\/vnd.oasis.opendocument.spreadsheet","application\/vnd.oasis.opendocument.presentation","application\/vnd.openxmlformats-officedocument.wordprocessingml.document","application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application\/vnd.openxmlformats-officedocument.presentationml.presentation"]},"notifications":{"ocs-endpoints":["list","get","delete","delete-all","icons","rich-strings"],"push":["devices","object-data"],"admin-notifications":["ocs","cli"]},"password_policy":{"minLength":8,"enforceNonCommonPassword":true,"enforceNumericCharacters":false,"enforceSpecialCharacters":false,"enforceUpperLowerCase":false},"theming":{"name":"Nextcloud","url":"https:\/\/removed_for_privacy.nl","slogan":"a safe home for all your data","color":"#0082c9","color-text":"#ffffff","color-element":"#0082c9","logo":"https:\/\/removed_for_privacy.nl\/core\/img\/logo.svg?v=1","background":"https:\/\/removed_for_privacy.nl\/core\/img\/background.png?v=1","background-plain":false,"background-default":true},"files":{"bigfilechunking":true,"blacklisted_files":[".htaccess"],"undelete":true,"versioning":true}}}}} 11-20 20:04:49.863 27990-28060/? D/GetRemoteCapabilitiesOperation: *** Added version 11-20 20:04:49.864 27990-28060/? D/GetRemoteCapabilitiesOperation: *** Added core *** Added files_sharing *** Added files *** Added theming *** Added notifications 11-20 20:04:49.865 27990-28060/? D/GetRemoteCapabilitiesOperation: *** Get Capabilities completed ```
nextcloud-android-bot commented 5 years ago

GitMate.io thinks possibly related issues are https://github.com/nextcloud/android/issues/3166 (Unable to disable Device credentials), https://github.com/nextcloud/android/issues/1491 (App crashes if user enters wrong credentials), https://github.com/nextcloud/android/issues/2687 (NPE Crash after fresh installation due to #2680), https://github.com/nextcloud/android/issues/3151 (Client crashes after entering login credentials), and https://github.com/nextcloud/android/issues/1758 (Device credentials and pincode / fingerprint).

tobiasKaminsky commented 5 years ago

Wow, very tricky one. I can reproduce it with my Android 8.1, LineageOS, OnePlus 3, BUT I do not get access to the app, it is just crashing over and over again…

Can you retry it with latest version on gplay?

This is the stacktrace:

2019-01-18 09:52:59.374 11692-11692/com.android.settings E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.android.settings, PID: 11692
    java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.password.ConfirmLockPassword}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setAlpha(float)' on a null object reference
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3581)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3621)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2862)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setAlpha(float)' on a null object reference
        at com.android.settings.password.ConfirmLockPassword$ConfirmLockPasswordFragment.prepareEnterAnimation(ConfirmLockPassword.java:249)
        at com.android.settings.password.ConfirmDeviceCredentialBaseActivity.prepareEnterAnimation(ConfirmDeviceCredentialBaseActivity.java:138)
        at com.android.settings.password.ConfirmDeviceCredentialBaseActivity.onResume(ConfirmDeviceCredentialBaseActivity.java:115)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1355)
        at android.app.Activity.performResume(Activity.java:7117)
erikhubers commented 5 years ago

Hey @tobiasKaminsky,

Unfortunately I can't reproduce this anymore as I have upgraded my phone to Android 9 and can't access an Android 8.1 phone with fingerprint scanner anymore. Android 9 doesn't seem to have this issue though.

tobiasKaminsky commented 5 years ago

Thanks for the feedback. At least the crash is fixed, so I close this issue.