I am developing an android application which is basically a crossfade media player. The only difference of it from the other mediaplayers is that it has a crossfade functionality which is when the current song is ending it is starting to fade out and the next song is starting fade in.
My problem is when I install my app to the Android TV box (Rockchip MX10 Api 9 RAM: 4GB ROM: 32GB) the device closes my app after nearly 10 seconds.
However my application works on a different Android TV box(Rockchip MX9 Api 7 RAM: 2GB ROM: 16GB)
Additionally the application works on my Samsung Galaxy J8 phone (Api 9)
At first there is a login screen, and the box does not close the app in that screen. But once you log in, and the first song starts, after a few seconds, the box closes my app. So I suspect that is a performance issue.
Following is the logcat. (Not full of it but the rest of it does not contain any error and the time is not changing much, the last line is also written at the same seconds just have a difference as milliseconds)
2019-10-17 11:43:13.910 5323-5323/? I/Zygote: seccomp disabled by setenforce 0
2019-10-17 11:43:13.918 5323-5323/? I/omus.androidap: Late-enabling -Xcheck:jni
2019-10-17 11:43:14.104 5323-5330/? E/omus.androidap: Unable to peek into adb socket due to error. Closing socket.: Connection reset by peer
2019-10-17 11:43:14.183 5323-5323/? I/omus.androidap: The ClassLoaderContext is a special shared library.
2019-10-17 11:43:15.379 5323-5323/com.company.androidapp D/ROCKCHIP: android/app/ResourcesManager.java packageName = com.company.androidapp
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: VM with version 2.1.0 has multidex support
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: Installing application
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: VM has multidex support, MultiDex support library is disabled.
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: Installing application
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: VM has multidex support, MultiDex support library is disabled.
2019-10-17 11:43:15.433 5323-5323/com.company.androidapp I/CrashlyticsInitProvider: CrashlyticsInitProvider skipping initialization
2019-10-17 11:43:15.605 5323-5323/com.company.androidapp I/CrashlyticsCore: Initializing Crashlytics Core 2.7.0.33
2019-10-17 11:43:15.836 5323-5347/com.company.androidapp W/omus.androidap: Long monitor contention with owner Queue (5341) at io.fabric.sdk.android.services.common.AdvertisingInfoStrategy io.fabric.sdk.android.services.common.AdvertisingInfoProvider.getReflectionStrategy()(AdvertisingInfoProvider.java:103) waiters=0 in io.fabric.sdk.android.services.common.AdvertisingInfo io.fabric.sdk.android.services.common.IdManager.getAdvertisingInfo() for 237ms
2019-10-17 11:43:15.839 5323-5350/com.company.androidapp W/omus.androidap: Long monitor contention with owner Queue (5341) at io.fabric.sdk.android.services.common.AdvertisingInfoStrategy io.fabric.sdk.android.services.common.AdvertisingInfoProvider.getReflectionStrategy()(AdvertisingInfoProvider.java:103) waiters=1 in io.fabric.sdk.android.services.common.AdvertisingInfo io.fabric.sdk.android.services.common.IdManager.getAdvertisingInfo() for 176ms
2019-10-17 11:43:15.903 5323-5341/com.company.androidapp D/skia: --- Failed to create image decoder with message 'unimplemented'
2019-10-17 11:43:15.912 5323-5354/br.com.gomus.androidapp I/stetho: Listening on #stetho_br.com.gomus.androidapp_devtools_remote
2019-10-17 11:43:15.937 5323-5341/br.com.gomus.androidapp D/NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: true
2019-10-17 11:43:15.445 5323-5323/br.com.gomus.androidapp D/ROCKCHIP: android/app/ResourcesManager.java packageName = br.com.gomus.androidapp
2019-10-17 11:44:46.165 5323-5323/br.com.gomus.androidapp W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#5fa473f
2019-10-17 11:44:46.190 5323-5323/br.com.gomus.androidapp D/ROCKCHIP: android/app/ResourcesManager.java packageName = br.com.gomus.androidapp
2019-10-17 11:44:46.215 5323-5323/br.com.gomus.androidapp D/ROCKCHIP: android/app/ResourcesManager.java packageName = br.com.gomus.androidapp
2019-10-17 11:44:46.505 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2019-10-17 11:44:46.508 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2019-10-17 11:44:46.535 5323-5323/br.com.gomus.androidapp D/PERMISSION: REQUEST LOG PERMISSION
2019-10-17 11:44:46.570 5323-5323/br.com.gomus.androidapp D/OpenGLRenderer: Skia GL Pipeline
2019-10-17 11:44:46.631 5323-5405/br.com.gomus.androidapp I/mali_so: [File] : hardware/rockchip/mali_so_src_of_utgard/./src/base/arch/arch_011_udd/base_arch_main.c; [Line] : 561; [Func] : deal_with_version_affairs_rk_ext;
arm_release_ver of this mali_so is 'r7p0-00rel1', rk_so_ver is '3#0', built at '14:07:59', on 'Dec 4 2018'.
2019-10-17 11:44:46.632 5323-5405/br.com.gomus.androidapp I/mali_so: [File] : hardware/rockchip/mali_so_src_of_utgard/./src/base/arch/arch_011_udd/base_arch_main.c; [Line] : 574; [Func] : deal_with_version_affairs_rk_ext;
mali_ver_property has been set to 'r7p0-00rel1-5-3#0', to return.
2019-10-17 11:44:46.641 5323-5405/br.com.gomus.androidapp I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2019-10-17 11:44:46.642 5323-5405/br.com.gomus.androidapp I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2019-10-17 11:44:46.642 5323-5405/br.com.gomus.androidapp I/OpenGLRenderer: Initialized EGL, version 1.4
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp D/OpenGLRenderer: Swap behavior 0
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: FindAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: FindAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: ModifyAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: ModifyAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.701 5323-5323/br.com.gomus.androidapp I/RenderThread: type=1400 audit(0.0:347): avc: denied { write } for name="property_service" dev="tmpfs" ino=2385 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=1
2019-10-17 11:44:46.703 5323-5405/br.com.gomus.androidapp D/GRALLOC-ROCKCHIP: RK_GRAPHICS_VER=commit-id:b0c117e
2019-10-17 11:44:48.856 5323-5323/br.com.gomus.androidapp D/splash act: getToken = aGF2YWlhbmFzLmhpbGFsOmhpbGFs
2019-10-17 11:44:48.857 5323-5323/br.com.gomus.androidapp D/splash act: new Random().nextInt() = -2068552007
2019-10-17 11:44:48.874 5323-5323/br.com.gomus.androidapp D/INTENT NAV Splash: Initial Download | value = true
2019-10-17 11:44:48.893 5323-5323/br.com.gomus.androidapp W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#fa84f34
2019-10-17 11:44:48.970 5323-5323/br.com.gomus.androidapp W/before: Logcat save
2019-10-17 11:44:48.974 5323-5323/br.com.gomus.androidapp W/getFilesDir(): /storage/emulated/0/Android/data/br.com.gomus.androidapp/files/TestFolder/Logging.txt
2019-10-17 11:44:49.247 5323-5323/br.com.gomus.androidapp D/LocalDatabaseImpl: br.com.gomus.androidapp.data.local.model.PlaylistSchedulefindRealmObject realmQuery.findAll = []
2019-10-17 11:44:49.290 5323-5421/br.com.gomus.androidapp D/PlaylistMapper: copyFromRealmResults playlist.getName = Havaianas.entrada
2019-10-17 11:44:49.290 5323-5421/br.com.gomus.androidapp D/PlaylistMapper: deepCopy = playlist == NOT null
2019-10-17 11:44:49.571 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;-><init>()V (light greylist, reflection)
2019-10-17 11:44:49.571 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z (light greylist, reflection)
2019-10-17 11:44:49.571 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z (light greylist, reflection)
2019-10-17 11:44:49.572 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;->freeze()Z (light greylist, reflection)
2019-10-17 11:44:49.572 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;->abortCreation()V (light greylist, reflection)
2019-10-17 11:44:49.573 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;II)Landroid/graphics/Typeface; (light greylist, reflection)
2019-10-17 11:44:49.757 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden field Lsun/misc/Unsafe;->theUnsafe:Lsun/misc/Unsafe; (light greylist, reflection)
2019-10-17 11:44:49.762 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: onResume
2019-10-17 11:44:49.763 5323-5323/br.com.gomus.androidapp D/MediaPlaYerRepo: userToken = aGF2YWlhbmFzLmhpbGFsOmhpbGFs
2019-10-17 11:44:49.774 5323-5323/br.com.gomus.androidapp D/LocalDatabaseImpl: br.com.gomus.androidapp.data.local.model.PlaylistSchedulefindRealmObject realmQuery.findAll = []
2019-10-17 11:44:49.775 5323-5323/br.com.gomus.androidapp D/MediaPlayerInteractor: elegiblePlaylists.size() <= 0
2019-10-17 11:44:49.776 5323-5323/br.com.gomus.androidapp D/PlaylistDaoImpl: findFirstAsync =
2019-10-17 11:44:49.796 5323-5423/br.com.gomus.androidapp D/LocalDatabaseImpl: findFirstAsync= Playlist = proxy[{id:20544},{name:Havaianas.entrada},{updateAt:1569951784},{songs:SongsIdResponse},{videos:null},{isVideo:false},{userToken:aGF2YWlhbmFzLmhpbGFsOmhpbGFs},{needShuffle:false}]
2019-10-17 11:44:49.797 5323-5423/br.com.gomus.androidapp D/PlaylistMapper: deepCopy = playlist == NOT null
2019-10-17 11:44:49.799 5323-5423/br.com.gomus.androidapp D/MediaPlayerInteractor: first playlist name = Havaianas.entrada
2019-10-17 11:44:49.811 5323-5423/br.com.gomus.androidapp D/MediaPlayerVM: checkWhatIsFirstScreenByCurrentPlaylist
2019-10-17 11:44:49.834 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: onResume
2019-10-17 11:44:50.072 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (light greylist, reflection)
2019-10-17 11:44:50.072 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, reflection)
2019-10-17 11:44:50.073 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (light greylist, reflection)
2019-10-17 11:44:50.115 5323-5323/br.com.gomus.androidapp D/PreferencesManagerImpl: saveSongs mPendentDownloadItems2PENDENT_DOWNLOAD_ITEMS
2019-10-17 11:44:50.116 5323-5323/br.com.gomus.androidapp D/DownloadRepositoryImpl: calculateSavedProgress mTotalItems0
2019-10-17 11:44:50.116 5323-5323/br.com.gomus.androidapp D/PreferencesManagerImpl: saveSongs mPendentDownloadItems2DOWNLOADED_ITEMS
2019-10-17 11:44:50.117 5323-5323/br.com.gomus.androidapp D/DownloadRepositoryImpl: calculateSavedProgress mItemsDownloaded0
2019-10-17 11:44:50.118 5323-5323/br.com.gomus.androidapp D/DownloadRepositoryImpl: mItemsDownloaded: 0 mTotalItems0
2019-10-17 11:44:50.118 5323-5323/br.com.gomus.androidapp D/DownloadRepositoryImpl: Current progress : 100 %
2019-10-17 11:44:50.154 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: changeToMusicFragment
2019-10-17 11:44:50.190 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: replaceFragment
2019-10-17 11:44:50.197 5323-5323/br.com.gomus.androidapp D/MediaPlayerInteractor: requestCurrentPlaybackInfo is called
2019-10-17 11:44:50.198 5323-5323/br.com.gomus.androidapp D/MediaPlayerVM: mUpdateFinishedNOT
2019-10-17 11:44:50.407 5323-5425/br.com.gomus.androidapp D/PlaylistScheduleService: Avoiding call interactor in a thread without a loop!
2019-10-17 11:44:50.409 5323-5426/br.com.gomus.androidapp D/1stReportService: Trying to send report
2019-10-17 11:44:50.413 5323-5426/br.com.gomus.androidapp D/REPORT: FIRST REPORT | No gps permission!
2019-10-17 11:44:50.415 5323-5425/br.com.gomus.androidapp D/PlaylistScheduleService: Serviço foi reinicializado com 1 minuto DE DELAY!
2019-10-17 11:44:50.421 5323-5424/br.com.gomus.androidapp D/LocalDatabaseImpl: br.com.gomus.androidapp.data.local.model.ScheduleCompoundfindRealmObject realmQuery.findAll = []
2019-10-17 11:44:50.422 5323-5425/br.com.gomus.androidapp D/2ndReportService: Trying to send report
2019-10-17 11:44:50.423 5323-5424/br.com.gomus.androidapp D/SpotSchedulerRepositoryImpl: getSpotsScheduledList[]
2019-10-17 11:44:50.431 5323-5323/br.com.gomus.androidapp D/MusicPlayerFragment: onCreateViewbr.com.gomus.androidappui.main.MediaPlayerActivity
2019-10-17 11:44:50.438 5323-5424/br.com.gomus.androidapp D/SERVICE - SPOT: ACTUAL Current time and date: 2019-10-17 14:44:50 - HOURS: 14:44 - DAYS: 17 - MONTH: 10 - MONTH LENGTH: 2mSpotScheduleList0
2019-10-17 11:44:50.439 5323-5424/br.com.gomus.androidapp D/SpotSchedulerService: Serviço foi reinicializado com 60 SEGUNDOS DE DELAY!
2019-10-17 11:44:50.440 5323-5426/br.com.gomus.androidapp D/REPORT: GomusApplication.getInstance().isPlaying()= false
2019-10-17 11:44:50.441 5323-5426/br.com.gomus.androidapp D/FIRST-REPORT: FIRST REPORT | Id = 1735875982 | Date = 2019-10-17 14:44:50 | AudioPercentage = 20 | Playing = false | Longitude = 0.0 | Latitude = 0.0
2019-10-17 11:44:50.447 5323-5425/br.com.gomus.androidapp D/REPORT: SECOND REPORT | Realm results are not empty!
2019-10-17 11:44:50.448 5323-5424/br.com.gomus.androidapp D/UpdateService: onHandleWorkstartService
2019-10-17 11:44:50.449 5323-5424/br.com.gomus.androidapp D/UpdateService: !hasPendentUpdate()
2019-10-17 11:44:50.449 5323-5424/br.com.gomus.androidapp D/UpdateService: checkUpdates()
2019-10-17 11:44:50.450 5323-5424/br.com.gomus.androidapp D/UpdateService: sendCheckingUpdateBroadcast
2019-10-17 11:44:50.452 5323-5424/br.com.gomus.androidapp D/UpdateContentInteractorImpl: checkHasUpdates
2019-10-17 11:44:50.452 5323-5424/br.com.gomus.androidapp D/UpdateContentRemoteRepositoryImpl: checkHasUpdates=
2019-10-17 11:44:50.459 5323-5424/br.com.gomus.androidapp D/CheckConnectionTask: success HyperLog
2019-10-17 11:44:50.461 5323-5424/br.com.gomus.androidapp D/CheckConnectionTask: doInBackground
2019-10-17 11:44:50.469 5323-5425/br.com.gomus.androidapp D/REPORT: SECOND REPORT | Realm results are empty!
2019-10-17 11:44:50.472 5323-5425/br.com.gomus.androidapp D/SECOND-REPORT: SECOND REPORT | Id = 1735875982 | AppVersion = 1.41.19 | SO Version = 9 | RAM Size = 3,919MB | Space in Disk = 10,849MB | Date = 2019-10-17 14:44:50 | Songs Downloaded = 1 | Execution Details = 0
2019-10-17 11:44:50.486 5323-5424/br.com.gomus.androidapp D/CheckConnectionTask: doInBackground try
2019-10-17 11:44:50.664 5323-5430/br.com.gomus.androidapp D/OkHttp: --> POST http://echo.gomus.com.br/player/player3_report_executions.json
2019-10-17 11:44:50.664 5323-5429/br.com.gomus.androidapp D/OkHttp: --> POST http://echo.gomus.com.br/player/player3_report_ping.json
2019-10-17 11:44:50.664 5323-5429/br.com.gomus.androidapp D/OkHttp: Content-Type: application/json; charset=UTF-8
2019-10-17 11:44:50.664 5323-5430/br.com.gomus.androidapp D/OkHttp: Content-Type: application/json; charset=UTF-8
2019-10-17 11:44:50.665 5323-5429/br.com.gomus.androidapp D/OkHttp: Content-Length: 116
2019-10-17 11:44:50.665 5323-5430/br.com.gomus.androidapp D/OkHttp: Content-Length: 174
2019-10-17 11:44:50.665 5323-5430/br.com.gomus.androidapp D/OkHttp: Authorization: aGF2YWlhbmFzLmhpbGFsOmhpbGFs
2019-10-17 11:44:50.665 5323-5429/br.com.gomus.androidapp D/OkHttp: Authorization: aGF2YWlhbmFzLmhpbGFsOmhpbGFs
2019-10-17 11:44:50.666 5323-5429/br.com.gomus.androidapp D/OkHttp: {"audioPercentage":20,"date":"2019-10-17 14:44:50","id":1735875982,"isPlaying":false,"latitude":0.0,"longitude":0.0}
2019-10-17 11:44:50.666 5323-5429/br.com.gomus.androidapp D/OkHttp: --> END POST (116-byte body)
2019-10-17 11:44:50.666 5323-5430/br.com.gomus.androidapp D/OkHttp: {"appVersion":"1.41.19","date":"2019-10-17 14:44:50","executionDetails":[],"id":1735875982,"ramMemory":"3,919MB","soVersion":"9","songsDownloaded":1,"spaceInDisk":"10,849MB"}
2019-10-17 11:44:50.667 5323-5430/br.com.gomus.androidapp D/OkHttp: --> END POST (174-byte body)
2019-10-17 11:44:50.711 5323-5323/br.com.gomus.androidapp D/MusicPlayerFragment: onCreateView2
2019-10-17 11:44:50.712 5323-5323/br.com.gomus.androidapp D/MusicPlayerViewModel: loadCurrentPlaylist
2019-10-17 11:44:50.713 5323-5323/br.com.gomus.androidapp D/MusicPlayerViewModel: !mInteractor.isStarted()
2019-10-17 11:44:50.713 5323-5323/br.com.gomus.androidapp D/MusicPlayerViewModel: loadPlaylist()
2019-10-17 11:44:50.714 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: startCurrentPlaylist Havaianas.entrada
2019-10-17 11:44:50.714 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: inside checkIfCallbackAttached()
2019-10-17 11:44:50.715 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: 00mMediaPlayerInterface == null || !mMediaPlayerInterface.isPlaybackCallbackDetached()
2019-10-17 11:44:50.715 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: startCurrentPlaylist mCurrentPlaylists Havaianas.entrada
2019-10-17 11:44:50.750 5323-5323/br.com.gomus.androidapp D/MusicPlayerFragment: onResume
2019-10-17 11:44:50.760 5323-5323/br.com.gomus.androidapp I/Choreographer: Skipped 31 frames! The application may be doing too much work on its main thread.
I suspect from these lines:
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: FindAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: FindAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: ModifyAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: ModifyAppHintInFile open fail errno=0x2 (No such file or directory)
And unfortunately there are no enough information about these in internet.
UPDATE
To improve the topic I wanted to add the results of the ./adb shell dumpsys gfxinfo command. As you can see Janky frames: 2 (100.00%). I do not understand, this janky frame is lower in my samsung galaxy j8 device.
Applications Graphics Acceleration Info:
Uptime: 24088494 Realtime: 24088494
** Graphics info for pid 20341 [br.com.gomus.androidapp] **
Stats since: 24075749808985ns
Total frames rendered: 2
Janky frames: 2 (100.00%)
50th percentile: 1000ms
90th percentile: 1000ms
95th percentile: 1000ms
99th percentile: 1000ms
Number Missed Vsync: 2
Number High input latency: 0
Number Slow UI thread: 2
Number Slow bitmap uploads: 0
Number Slow issue draw commands: 2
Number Frame deadline missed: 2
HISTOGRAM: 5ms=0 6ms=0 7ms=0 8ms=0 9ms=0 10ms=0 11ms=0 12ms=0 13ms=0 14ms=0 15ms=0 16ms=0 17ms=0 18ms=0 19ms=0 20ms=0 21ms=0 22ms=0 23ms=0 24ms=0 25ms=0 26ms=0 27ms=0 28ms=0 29ms=0 30ms=0 31ms=0 32ms=0 34ms=0 36ms=0 38ms=0 40ms=0 42ms=0 44ms=0 46ms=0 48ms=0 53ms=0 57ms=0 61ms=0 65ms=0 69ms=0 73ms=0 77ms=0 81ms=0 85ms=0 89ms=0 93ms=0 97ms=0 101ms=0 105ms=0 109ms=0 113ms=0 117ms=0 121ms=0 125ms=0 129ms=0 133ms=0 150ms=0 200ms=0 250ms=0 300ms=0 350ms=0 400ms=0 450ms=1 500ms=0 550ms=0 600ms=0 650ms=0 700ms=0 750ms=0 800ms=0 850ms=0 900ms=0 950ms=0 1000ms=1 1050ms=0 1100ms=0 1150ms=0 1200ms=0 1250ms=0 1300ms=0 1350ms=0 1400ms=0 1450ms=0 1500ms=0 1550ms=0 1600ms=0 1650ms=0 1700ms=0 1750ms=0 1800ms=0 1850ms=0 1900ms=0 1950ms=0 2000ms=0 2050ms=0 2100ms=0 2150ms=0 2200ms=0 2250ms=0 2300ms=0 2350ms=0 2400ms=0 2450ms=0 2500ms=0 2550ms=0 2600ms=0 2650ms=0 2700ms=0 2750ms=0 2800ms=0 2850ms=0 2900ms=0 2950ms=0 3000ms=0 3050ms=0 3100ms=0 3150ms=0 3200ms=0 3250ms=0 3300ms=0 3350ms=0 3400ms=0 3450ms=0 3500ms=0 3550ms=0 3600ms=0 3650ms=0 3700ms=0 3750ms=0 3800ms=0 3850ms=0 3900ms=0 3950ms=0 4000ms=0 4050ms=0 4100ms=0 4150ms=0 4200ms=0 4250ms=0 4300ms=0 4350ms=0 4400ms=0 4450ms=0 4500ms=0 4550ms=0 4600ms=0 4650ms=0 4700ms=0 4750ms=0 4800ms=0 4850ms=0 4900ms=0 4950ms=0
Font Cache (CPU):
Size: 4.84 kB
Glyph Count: 9
CPU Caches:
GPU Caches:
Other:
Buffer Object: 63.00 KB (2 entries)
Image:
Texture: 6.23 KB (1 entry)
Scratch:
Buffer Object: 64.00 KB (2 entries)
RenderTarget: 78.09 KB (7 entries)
Texture: 1.00 MB (1 entry)
Other Caches:
Current / Maximum
VectorDrawableAtlas 0.00 kB / 0.00 KB (entries = 0)
Layers Total 0.00 KB (numLayers = 0)
Total GPU memory usage:
1264959 bytes, 1.21 MB (133.23 KB is purgeable)
Pipeline=Skia (OpenGL)
Layout Cache Info:
Usage: 3/5000 entries
Hit ratio: 6/9 (0.666667)
Profile data in ms:
br.com.gomus.androidapp/br.com.gomus.androidapp.ui.main.MediaPlayerActivity/android.view.ViewRootImpl#a9729ce (visibility=0)
View hierarchy:
br.com.gomus.androidapp/br.com.gomus.androidapp.ui.main.MediaPlayerActivity/android.view.ViewRootImpl#a9729ce
40 views, 45,61 kB of display lists
Total ViewRootImpl: 1
Total Views: 40
Total DisplayList: 45,61 kB
UPDATE:
This is the network section of the Android Studio Profiler. The recent network connections took 734 ms. I do not know if it is good or bad. I was thinking maybe that was the problem. That is the last connection and after that, the app is closed by the device immediately.
I am waiting your ideas. Thanks in advance.
As I understand this is a restriction by the device because my application does not have a google play certification. The only way is rooting the device and let run those apps that does not have that certification too. However rooting this device is also impossible. The device is not root-able. Do not try to pay some services that saying we can root any device. Well they could not had made.
As a result, we left to use that device. This is the end that I have reached.=)
Related
when I try to launch my app it throws the error, I am using cloud firestore for my database.
I have created a custom class object in which it should return the database stored in my firestore database.
The string : 'coffee'
The document Id : 'id'
Collection : name
"new crew member"
srength
100
sugars
"0"
Exception:
Bad state: field does not exist within the DocumentSnapshotPlatform in debug console snippet :
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
D/EGL_emulation(10524): eglMakeCurrent: 0xe3b05780: ver 2 0 (tinfo 0xcbb977f0)
I/OpenGLRenderer(10524): Davey! duration=1640ms; Flags=1, IntendedVsync=21923234495143, Vsync=21924734495083, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=21924742691640, AnimationStart=21924742737640, PerformTraversalsStart=21924743916740, DrawStart=21924756908640, SyncQueued=21924762235840, SyncStart=21924765266540, IssueDrawCommandsStart=21924765562940, SwapBuffers=21924776192940, FrameCompleted=21924877730440, DequeueBufferDuration=27493000, QueueBufferDuration=464000,
Connecting to VM Service at ws://127.0.0.1:51346/EM9iZekSWt8=/ws
D/EGL_emulation(10524): eglMakeCurrent: 0xe0eb0140: ver 2 0 (tinfo 0xcbb97100)
D/eglCodecCommon(10524): setVertexArrayObject: set vao to 0 (0) 1 0
W/DynamiteModule(10524): Local module descriptor class for providerinstaller not found.
I/DynamiteModule(10524): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller(10524): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
W/sloo.coffee_da(10524): Unknown chunk type '200'.
I/sloo.coffee_da(10524): The ClassLoaderContext is a special shared library.
I/sloo.coffee_da(10524): The ClassLoaderContext is a special shared library.
I/sloo.coffee_da(10524): The ClassLoaderContext is a special shared library.
W/sloo.coffee_da(10524): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
V/NativeCrypto(10524): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 294 native methods...
W/sloo.coffee_da(10524): Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (light greylist, reflection)
I/ProviderInstaller(10524): Installed default security provider GmsCore_OpenSSL
════════ Exception caught by provider ══════════════════════════════════════════
The following assertion was thrown:
An exception was throw by _MapStream<QuerySnapshot<Map<String, dynamic>>, List<Coffee>> listened by
StreamProvider<List<Coffee>?>, but no `catchError` was provided.
Exception:
Bad state: field does not exist within the DocumentSnapshotPlatform
════════════════════════════════════════════════════════════════════════════════
W/sloo.coffee_da(10524): Accessing hidden field Ljava/net/Socket;->impl:Ljava/net/SocketImpl; (light greylist, reflection)
W/sloo.coffee_da(10524): Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (light greylist, linking)
W/sloo.coffee_da(10524): Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, linking)
W/sloo.coffee_da(10524): Accessing hidden field Ljava/io/FileDescriptor;->descriptor:I (light greylist, JNI)
W/sloo.coffee_da(10524): Accessing hidden method Ljava/security/spec/ECParameterSpec;->setCurveName(Ljava/lang/String;)V (light greylist, reflection)
W/sloo.coffee_da(10524): Accessing hidden method Ldalvik/system/BlockGuard;->getThreadPolicy()Ldalvik/system/BlockGuard$Policy; (light greylist, linking)
W/sloo.coffee_da(10524): Accessing hidden method Ldalvik/system/BlockGuard$Policy;->onNetwork()V (light greylist, linking)
database.dart file looks like this :
class DatabaseService {
final String uid;
DatabaseService({required this.uid});
final CollectionReference<Map<String, dynamic>> coffeeCollection =
FirebaseFirestore.instance.collection('coffee');
Future updateUserData(String sugars, String name, int strength) async {
return await coffeeCollection.doc(uid).set({
'sugars': sugars,
'name': name,
'srength': strength,
});
}
List<Coffee> _coffeeListFromSnapshot(
QuerySnapshot<Map<String, dynamic>> snapshot) {
return snapshot.docs.map((doc) {
return Coffee(
name: doc.get('name') ?? '',
strength: doc.get('strength') ?? 0,
sugars: doc.get('sugars') ?? '0');
}).toList();
}
Stream<List<Coffee>> get coffee {
return coffeeCollection.snapshots().map(_coffeeListFromSnapshot);
}
}
Simple application that scans Wi-Fi networks.
This one for a reference: Get available wi-fi scan result in customized listview
Just put a ListView in a layout and add ACCESS/CHANGE_WIFI_STATE permissions into manifest.
The problem is that it works on my Samsung J3 (2016), but I don't know why it doesn't on my new Samsung M11. Has it something to do with Android versions? I have already returned a Realme C3 that was having same issues because I thought it was due to Mediatek SOC.
SAMSUNG M11 (Android 10) LOG:
03/28 20:09:56: Launching 'app' on Physical Device.
Install successfully finished in 3 s 220 ms.
$ adb shell am start -n "es.josecarlos.myapplication/es.josecarlos.myapplication.SearchWifi" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 29558 on device 'samsung-sm_m115f-R9JR30FM7HJ'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/s.myapplicatio: Late-enabling -Xcheck:jni
E/s.myapplicatio: Unknown bits set in runtime_flags: 0x8000
D/ActivityThread: setConscryptValidator
D/ActivityThread: setConscryptValidator - put
E/ANDR-PERF: IPerf:: Perf HAL Service is not available.
E/ANDR-PERF: IPerf:: Perf HAL Service is not available.
E/ANDR-PERF: IPerf:: Perf HAL Service is not available.
I/Perf: Connecting to perf service.
I/s.myapplicatio: Starting a blocking GC Alloc
Starting a blocking GC Alloc
I/s.myapplicatio: Waiting for a blocking GC Alloc
I/s.myapplicatio: WaitForGcToComplete blocked Alloc on ClassLinker for 20.796ms
Starting a blocking GC Alloc
D/PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4238 com.android.internal.policy.DecorView.updateColorViews:1490 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3216 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2444
I/MultiWindowDecorSupport: updateCaptionType >> DecorView#9ffef9d[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
D/MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView#9ffef9d[]
W/s.myapplicatio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/s.myapplicatio: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
D/ViewRootImpl#73bc89c[SearchWifi]: setView = com.android.internal.policy.DecorView#9ffef9d TM=true MM=false
D/ViewRootImpl#73bc89c[SearchWifi]: Relayout returned: old=(0,0,720,1560) new=(0,0,720,1560) req=(720,1560)0 dur=14 res=0x7 s={true 3550955520} ch=true
D/OpenGLRenderer: createReliableSurface : 0xd3a8e0c0, 0xd3a74800
I/AdrenoGLES: QUALCOMM build : 2ced3f2, Id01cc02572
Build Date : 12/15/19
OpenGL ES Shader Compiler Version: EV031.27.05.02
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.8.6.2.R1.10.00.00.537.049
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S L 8.0.10 AArch32
D/AbsListView: in onLayout changed
I/AdrenoGLES: PFP: 0x005ff112, ME: 0x005ff066
W/Gralloc3: mapper 3.x is not supported
D/ViewRootImpl#73bc89c[SearchWifi]: MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager: prepareNavigationBarInfo() DecorView#9ffef9d[SearchWifi]
getNavigationBarColor() -855310
D/InputMethodManager: prepareNavigationBarInfo() DecorView#9ffef9d[SearchWifi]
getNavigationBarColor() -855310
V/InputMethodManager: Starting input: tba=es.josecarlos.myapplication ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager: startInputInner - Id : 0
I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
D/ViewRootImpl#73bc89c[SearchWifi]: MSG_RESIZED: frame=(0,0,720,1560) ci=(0,65,0,84) vi=(0,65,0,84) or=1
D/InputMethodManager: prepareNavigationBarInfo() DecorView#9ffef9d[SearchWifi]
D/InputMethodManager: getNavigationBarColor() -855310
V/InputMethodManager: Starting input: tba=es.josecarlos.myapplication ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager: startInputInner - Id : 0
D/ViewRootImpl#73bc89c[SearchWifi]: ViewPostIme pointer 0
D/ViewRootImpl#73bc89c[SearchWifi]: ViewPostIme pointer 1
D/ViewRootImpl#47f6701[Toast]: setView = android.widget.LinearLayout#76759a6 TM=true MM=false
V/Toast: Text: Fsca in android.widget.Toast$TN#b5efe7
D/ViewRootImpl#47f6701[Toast]: Relayout returned: old=(0,65,720,1476) new=(232,1287,488,1364) req=(256,77)0 dur=12 res=0x7 s={true 3550953472} ch=true
D/OpenGLRenderer: createReliableSurface : 0xb8abc140, 0xd3a74000
D/ViewRootImpl#47f6701[Toast]: MSG_RESIZED: frame=(232,1287,488,1364) ci=(0,0,0,0) vi=(0,0,256,77) or=1
D/ViewRootImpl#47f6701[Toast]: dispatchDetachedFromWindow
D/InputTransport: Input channel destroyed: 'c01175c', fd=75
SAMSUNG J3 (Android 5.1) LOG:
03/28 20:19:39: Launching 'app' on Physical Device.
Install successfully finished in 1 m 15 s 28 ms.
$ adb shell am start -n "es.josecarlos.myapplication/es.josecarlos.myapplication.SearchWifi" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 8248 on device 'samsung-sm_j320fn-42000d659a379400'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
W/ResourcesManager: getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication
I/InjectionManager: Inside getClassLibPath + mLibMap{0=, 1=}
D/ResourcesManager: For user 0 new overlays fetched Null
I/InjectionManager: Inside getClassLibPath caller
D/InjectionManager: InjectionManager
fillFeatureStoreMap es.josecarlos.myapplication
I/InjectionManager: Constructor es.josecarlos.myapplication, Feature store :{}
featureStore :{}
W/ResourcesManager: getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication
W/ResourcesManager: getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication
getTopLevelResources: /data/app/es.josecarlos.myapplication-1/base.apk / 1.0 running in es.josecarlos.myapplication rsrc of package es.josecarlos.myapplication
D/ResourcesManager: For user 0 new overlays fetched Null
W/ResourceType: Failure getting entry for 0x01080946 (t=7 e=2374) (error -75)
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
D/PhoneWindow: *FMB* installDecor mIsFloating : false
*FMB* installDecor flags : -2139029248
I/art: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
W/ResourceType: Failure getting entry for 0x01080946 (t=7 e=2374) (error -75)
Failure getting entry for 0x01080946 (t=7 e=2374) (error -75)
D/AbsListView: Get MotionRecognitionManager
E/MotionRecognitionManager: mSContextService = null
motionService = null
D/Activity: performCreate Call Injection manager
I/InjectionManager: dispatchOnViewCreated > Target : es.josecarlos.myapplication.SearchWifi isFragment :false
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: false
D/PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
*FMB* isFloatingMenuEnabled return false
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Get maximum texture size. GL_MAX_TEXTURE_SIZE is 4096
Enabling debug mode 0
I/InjectionManager: dispatchCreateOptionsMenu :es.josecarlos.myapplication.SearchWifi
dispatchPrepareOptionsMenu :es.josecarlos.myapplication.SearchWifi
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
setTypeface with style : 0
I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#117c6e4b time:365818
D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
D/TextView: setTypeface with style : 0
D/TextView: setTypeface with style : 0
setTypeface with style : 0
D/TextView: setTypeface with style : 0
D/InputMethodManager: windowDismissed mLockisused = false
Solved. I had to add FINE_LOCATION to the manifest and:
Manually give location permissions in Settings.
or
Make a popup that asks for location permissions the first time the user launch the app.
Running Android 9 (28) in an emulator, and can't seem to get my application to download anything. I've made sure the correct permissions are assigned, but it still says "Download unsuccessful."
package com.example.download_test;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.app.DownloadManager;
import android.content.Context;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
Log.d("dm","We in bois");
super.onCreate(savedInstanceState);
// setContentView(R.layout.activity_main);
getZipFile();
Log.d("dm","it should have worked yikes");
}
private int REQUEST_WRITE_EXTERNAL_STORAGE = 1;
private String extension;
public void getZipFile() {
int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (permissionCheck != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_WRITE_EXTERNAL_STORAGE);
Log.e("dm","Permissions no worky");
} else {
//TODO
if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {
Log.v("dm","Permission is granted");
//File write logic here
extension =".zip";
Uri uri = Uri.parse("http://ipv4.download.thinkbroadband.com/5MB.zip");
Log.d("dm","URI Parsed");
DownloadManager downloadmanager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
DownloadManager.Request request = new DownloadManager.Request(uri);
request.setTitle("5MB.zip");
request.allowScanningByMediaScanner();
request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "5MB" + extension);
request.setMimeType("application/zip");
request.setNotificationVisibility(1);
downloadmanager.enqueue(request);
Log.i("dm", "Download requested");
}
}
}
}
Here's the error:
My apologies if this is trivial, I'm just trying to learn about Android.
Edit: I should have mentioned this originally, but Android Studio doesn't output an error when compiling.
Edit 2: I tried with a small txt file (https://www.w3.org/TR/PNG/iso_8859-1.txt) and it worked! I also found that trying to download a small txt over regular HTTP does not work. A ZIP file over HTTPS still doesn't work either, though.
Logcat output with 5MB ZIP file over HTTP:
2020-10-12 10:26:01.427 3955-3955/? I/e.download_tes: Not late-enabling -Xcheck:jni (already on)
2020-10-12 10:26:01.444 3955-3955/? W/e.download_tes: Unexpected CPU variant for X86 using defaults: x86_64
2020-10-12 10:26:01.752 3955-3955/com.example.download_test D/dm: We in bois
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
2020-10-12 10:26:01.773 3955-3955/com.example.download_test V/dm: Permission is granted
2020-10-12 10:26:01.773 3955-3955/com.example.download_test D/dm: URI Parsed
2020-10-12 10:26:01.807 3955-3955/com.example.download_test I/dm: Download requested
2020-10-12 10:26:01.807 3955-3955/com.example.download_test D/dm: it should have worked yikes
2020-10-12 10:26:01.931 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2020-10-12 10:26:01.932 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2020-10-12 10:26:01.946 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden method Landroid/widget/TextView;->getTextDirectionHeuristic()Landroid/text/TextDirectionHeuristic; (light greylist, linking)
2020-10-12 10:26:01.970 3955-3955/com.example.download_test D/OpenGLRenderer: HWUI GL Pipeline
2020-10-12 10:26:02.025 3955-3984/com.example.download_test I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-10-12 10:26:02.025 3955-3984/com.example.download_test I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-10-12 10:26:02.025 3955-3984/com.example.download_test I/OpenGLRenderer: Initialized EGL, version 1.4
2020-10-12 10:26:02.025 3955-3984/com.example.download_test D/OpenGLRenderer: Swap behavior 1
2020-10-12 10:26:02.026 3955-3984/com.example.download_test W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2020-10-12 10:26:02.026 3955-3984/com.example.download_test D/OpenGLRenderer: Swap behavior 0
2020-10-12 10:26:02.061 3955-3984/com.example.download_test D/EGL_emulation: eglCreateContext: 0x715ffe6444a0: maj 2 min 0 rcv 2
2020-10-12 10:26:02.088 3955-3984/com.example.download_test D/EGL_emulation: eglMakeCurrent: 0x715ffe6444a0: ver 2 0 (tinfo 0x715ffe60dc20)
2020-10-12 10:26:02.168 3955-3984/com.example.download_test D/EGL_emulation: eglMakeCurrent: 0x715ffe6444a0: ver 2 0 (tinfo 0x715ffe60dc20)
2020-10-12 10:26:17.002 3955-3984/com.example.download_test D/EGL_emulation: eglMakeCurrent: 0x715ffe6444a0: ver 2 0 (tinfo 0x715ffe60dc20)
and Manifest Permissions:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
Edit 3: Looks like I can download any size file (zip or txt) over HTTPS, but not over HTTP. Not sure if this is just standard behavior for DownloadManager.
I'm trying to display my admob ads in my app natively with the flutter_native_admob package but for some reason the test ad never loads.
I get the following errors.
I/ple.XXXXXXXXap( 6263): The ClassLoaderContext is a special shared library.
I/chatty ( 6263): uid=10091(com.example.XXXXXXXXapp) identical 1 line
I/ple.XXXXXXXXap( 6263): The ClassLoaderContext is a special shared library.
I/DynamiteModule( 6263): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21400
I/DynamiteModule( 6263): Selected remote version of com.google.android.gms.ads.dynamite, version >= 21400
D/DynamitePackage( 6263): Instantiated singleton DynamitePackage.
D/DynamitePackage( 6263): Instantiating com.google.android.gms.ads.ChimeraAdLoaderBuilderCreatorImpl
D/NetworkSecurityConfig( 6263): No Network Security Config specified, using platform default
I/Ads ( 6263): This request is sent from a test device.
W/ple.XXXXXXXXap( 6263): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
I/DynamiteModule( 6263): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21400
I/DynamiteModule( 6263): Selected remote version of com.google.android.gms.ads.dynamite, version >= 21400
I/ple.XXXXXXXXap( 6263): The ClassLoaderContext is a special shared library.
I/WebViewFactory( 6263): Loading com.android.chrome version 69.0.3497.100 (code 349710067)
I/ple.XXXXXXXXap( 6263): The ClassLoaderContext is a special shared library.
I/ple.XXXXXXXXap( 6263): Background concurrent copying GC freed 32981(5MB) AllocSpace objects, 16(340KB) LOS objects, 49% free, 3MB/6MB, paused 81.243ms total 180.818ms
E/FA ( 6263): GoogleService failed to initialize, status: 10, Missing google app id value from from string resources with name google_app_id.
I/FA ( 6263): App measurement is starting up, version: 18102
I/FA ( 6263): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA ( 6263): To enable faster debug mode event logging run:
I/FA ( 6263): adb shell setprop debug.firebase.analytics.app com.example.XXXXXXXXapp
E/FA ( 6263): Missing google_app_id. Firebase Analytics disabled. See https://goo(.)gl/NAOOOI
E/FA ( 6263): Uploading is not possible. App measurement disabled
I/cr_LibraryLoader( 6263): Time to load native libraries: 2 ms (timestamps 6211-6213)
I/chromium( 6263): [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader( 6263): Expected native library version number "69.0.3497.100", actual native library version number "69.0.3497.100"
E/cr_VariationsUtils( 6263): Failed reading seed file "/data/user/0/com.example.XXXXXXXXapp/app_webview/variations_seed": /data/user/0/com.example.XXXXXXXXapp/app_webview/variations_seed (No such file or directory)
W/cr_ChildProcLH( 6263): Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
I/cr_BrowserStartup( 6263): Initializing chromium process, singleProcess=false
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
D/ ( 6263): HostConnection::get() New Host Connection established 0x71de949fcf60, tid 6511
W/cr_media( 6263): Requires BLUETOOTH permission
E/chromium( 6263): [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/EGL_emulation( 6263): eglCreateContext: 0x71de947c2d60: maj 2 min 0 rcv 2
D/EGL_emulation( 6263): eglMakeCurrent: 0x71de947c2d60: ver 2 0 (tinfo 0x71de919c6660)
I/Choreographer( 6263): Skipped 33 frames! The application may be doing too much work on its main thread.
W/VideoCapabilities( 6263): Unrecognized profile 4 for video/hevc
I/VideoCapabilities( 6263): Unsupported profile 4 for video/mp4v-es
W/cr_MediaCodecUtil( 6263): HW encoder for video/avc is not available on this device.
W/cr_CrashFileManager( 6263): /data/user/0/com.example.XXXXXXXXapp/cache/WebView/Crash Reports does not exist or is not a directory
I/System.out( 6263): onAdFailedToLoad errorCode = 0
I/Ads ( 6263): Ad failed to load : 0
E/chromium( 6263): [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/EGL_emulation( 6263): eglCreateContext: 0x71de9b1ded80: maj 2 min 0 rcv 2
D/EGL_emulation( 6263): eglMakeCurrent: 0x71de9b1ded80: ver 2 0 (tinfo 0x71de919c6660)
I already added the
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-XXX~YYYY"/>
inside my application tag.
And I made sure to include the classpath 'com.google.gms:google-services:4.3.0' dependency and apply plugin: 'com.google.gms.google-services' in my build.gradle. I'm not quite sure how to resolve this.
I've been trying to use record espresso for a few hours now, but I just can't make it work on the project.
I've added:
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
And I press run Record Espresso Test, and the screen just freezes at the first screen. It doesn't finish the activity, because it is a Splash screen. Even if I set another screen as a first activity it just freezes, it makes a request but doesn't show any results, or changes screen. I have animations turned off.
03/18 08:29:20: Launching TestRecorderapp
$ adb push C:\ProjectsGit\somelink\app\build\outputs\apk\debug\app-debug.apk /data/local/tmp/com.company.someapp.debug
$ adb shell pm install -t -r "/data/local/tmp/com.company.someapp.debug"
Success
APK installed in 1 s 593 ms
$ adb shell pm clear com.company.someapp.debug
$ adb shell am start -n "com.company.someapp.debug/com.company.someapp.views.activities.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.company.someapp.debug | com.company.someapp.debug.test
Waiting for application to come online: com.company.someapp.debug | com.company.someapp.debug.test
Connecting to com.company.someapp.debug
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/tcar.someapp.debu: The ClassLoaderContext is a special shared library.
W/ActivityThread: Application com.company.someapp.debug is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/System.out: Debugger has connected
waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8602', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/chatty: uid=10222(com.company.someapp.debug) identical 5 lines
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1385)
I/tcar.someapp.debu: The ClassLoaderContext is a special shared library.
I/Perf: Connecting to perf service.
I/MultiDex: VM with version 2.1.0 has multidex support
Installing application
VM has multidex support, MultiDex support library is disabled.
V/FA: Registered activity lifecycle callback
D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
I/FirebaseInitProvider: FirebaseApp initialization successful
V/Font: Change font:2
W/zze: Application name is not set. Call Builder#setApplicationName.
V/FA: Collection enabled
V/FA: App package, google app id: com.company.someapp.debug, 1:820332358974:android:deb7661ca6fda492
I/FA: App measurement is starting up, version: 14711
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.company.someapp.debug
D/FA: Debug-level message logging enabled
V/FA: Persisting first open: 1552894248164
I/CrashlyticsCore: Initializing Crashlytics 2.6.7.30
V/FA: Updating deferred analytics collection: false
W/com.company.someapp.debug: type=1400 audit(0.0:5835047): avc: denied { read } for comm=45474C20496E6974 name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "vendor.debug.egl.profiler"
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
V/FA: Checking service availability
V/FA: onActivityCreated
V/FA: Service available
Setting useService: true
V/FA: Connecting to remote service
V/FA: Connection attempt already in progress
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
W/tcar.someapp.debu: Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (light greylist, reflection)
Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, reflection)
Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (light greylist, reflection)
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#6a839d6
V/FA: onActivityCreated
W/tcar.someapp.debu: Accessing hidden field Landroid/view/LayoutInflater;->mConstructorArgs:[Ljava/lang/Object; (light greylist, reflection)
W/tcar.someapp.debu: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
W/tcar.someapp.debu: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
I/FloatingActionButton: Setting a custom background is not supported.
I/chatty: uid=10222(com.company.someapp.debug) identical 1 line
I/FloatingActionButton: Setting a custom background is not supported.
W/tcar.someapp.debu: Accessing hidden field Lsun/misc/Unsafe;->theUnsafe:Lsun/misc/Unsafe; (light greylist, reflection)
D/OkHttp: --> GET https://api.somelink.com/api/settings
Accept-Language: en
x-client-type: android
x-api-version: 4.1.0
--> END GET
W/tcar.someapp.debu: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setAlpnProtocols([B)V (light greylist, reflection)
D/OkHttp: --> GET https://api.somelink.com/
D/OkHttp: Accept-Language: en
x-client-type: android
x-api-version: 4.1.0
--> END GET
W/MixpanelAPI.RsrcReader: Can't load names for Android view ids from 'com.company.someapp.debug.R$id', ids by name will not be available in the events editor.
W/MixpanelAPI.ConfigurationChecker: You can't have more than one service handling "com.google.firebase.MESSAGING_EVENT" intent filter. Android will only use the first one that is declared on your AndroidManifest.xml. If you have more than one push provider you need to crate your own FirebaseMessagingService class.
I/DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
W/tcar.someapp.debu: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->getAlpnSelectedProtocol()[B (light greylist, reflection)
I/FA: Tag Manager is not found and thus will not be used
D/OkHttp: <-- 401 Unauthorized https://api.somelink.com(392ms)
Date: Mon, 18 Mar 2019 07:30:46 GMT
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,PATCH,OPTIONS
D/OkHttp: Access-Control-Allow-Headers: content-type,x-requested-with,authorization, accept, accept-language,x-client-type,x-client-build,x-api-version
Access-Control-Max-Age: 86400
Access-Control-Allow-Credentials: true
Vary: Origin
X-Request-ID: d7775f53-3ec9-4dae-ad96-0789e672ece9
X-Kong-Upstream-Latency: 29
X-Kong-Proxy-Latency: 0
Via: kong/0.9.8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
D/OkHttp: Unauthorized
D/OkHttp: <-- END HTTP (12-byte body)
D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=ACCarSharingDrawerActivity, firebase_screen_id(_si)=2030554288779527060}]
E/SensorManager: registerListenerImpl sensorName:lsm6ds3c Accelerometer Non-wakeup,isWakeUpSensor:false,callingApp: com.company.someapp.debug,callingPid:7032,callingUid:10222
D/OkHttp: <-- 200 OK https://LINK.TO.API (545ms)
Date: Mon, 18 Mar 2019 07:30:46 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
D/OkHttp: Access-Control-Allow-Methods: GET,POST,PUT,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: content-type,x-requested-with,authorization, accept, accept-language,x-client-type,x-client-build,x-api-version
Access-Control-Max-Age: 86400
Access-Control-Allow-Credentials: true
ETag: "4e4-7xR+HT/mxMa+pp02AdQTyyq5xFM"
Vary: Origin
D/OkHttp: X-Request-ID: ae38af60-0eab-45a0-a63b-0a1ae4a8bc18
X-Kong-Upstream-Latency: 57
X-Kong-Proxy-Latency: 0
Via: kong/0.9.8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
D/OkHttp: {"Some response"}
<-- END HTTP (1252-byte body)
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 2325227289
D/OkHttp: --> GET https://link.to.api
D/OkHttp: Accept-Language: en
x-client-type: android
x-api-version: 4.1.0
--> END GET
D/OpenGLRenderer: Skia GL Pipeline
I/Choreographer: Skipped 61 frames! The application may be doing too much work on its main thread.
D/OkHttp: <-- 401 Unauthorized https://api.somelink.com/api(143ms)
Date: Mon, 18 Mar 2019 07:30:46 GMT
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: content-type,x-requested-with,authorization, accept, accept-language,x-client-type,x-client-build,x-api-version
D/OkHttp: Access-Control-Max-Age: 86400
Access-Control-Allow-Credentials: true
Vary: Origin
X-Request-ID: c0112419-5fde-41b7-b940-c28a002e615a
X-Kong-Upstream-Latency: 77
X-Kong-Proxy-Latency: 0
Via: kong/0.9.8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
D/OkHttp: Unauthorized
<-- END HTTP (12-byte body)
D/OkHttp: --> GET https://api.somelink.com/api
D/OkHttp: Accept-Language: en
x-client-type: android
x-api-version: 4.1.0
--> END GET
I/zzbz: Making Creator dynamically
D/OkHttp: <-- 200 OK https://api.somelink.com/api/ (138ms)
Date: Mon, 18 Mar 2019 07:30:47 GMT
Content-Type: application/json; charset=utf-8
D/OkHttp: Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: content-type,x-requested-with,authorization, accept, accept-language,x-client-type,x-client-build,x-api-version
Access-Control-Max-Age: 86400
Access-Control-Allow-Credentials: true
ETag: "2af9-wj9m57vexbsWcU5m7bfhEuhjvw4"
Vary: Origin
X-Request-ID: 668799cc-788b-43d4-96d7-eb8fd5614fc9
X-Kong-Upstream-Latency: 110
X-Kong-Proxy-Latency: 0
Via: kong/0.9.8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
D/OkHttp: {CORRECT RESPONSE JSON} <-- END HTTP (11001-byte body)
W/tcar.someapp.debu: Unsupported class loader
W/tcar.someapp.debu: Skipping duplicate class check due to unsupported classloader
I/DynamiteModule: Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:221
Selected remote version of com.google.android.gms.maps_dynamite, version >= 221
V/DynamiteModule: Dynamite loader version >= 2, using loadModule2NoCrashUtils
W/tcar.someapp.debu: Unsupported class loader
W/tcar.someapp.debu: Skipping duplicate class check due to unsupported classloader
I/Google Maps Android API: Google Play services client version: 12451000
I/Google Maps Android API: Google Play services package version: 15090037
W/tcar.someapp.debu: Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
I/Adreno: QUALCOMM build : f909f5a, Ida6448821d
Build Date : 11/12/18
OpenGL ES Shader Compiler Version: EV031.25.03.00
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.7.3.R1.08.00.00.423.039
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S P 6.0.3 AArch64
W/RenderThread: type=1400 audit(0.0:5835049): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
W/RenderThread: type=1400 audit(0.0:5835050): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "ro.vendor.graphics.memory"
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
W/RenderThread: type=1400 audit(0.0:5835052): avc: denied { search } for name="proc" dev="debugfs" ino=3974 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
W/RenderThread: type=1400 audit(0.0:5835053): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
I/Adreno: PFP: 0x016ee170, ME: 0x00000000
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 1
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
E/libc: Access denied finding property "vendor.debug.egl.changepixelformat"
W/RenderThread: type=1400 audit(0.0:5835055): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
I/Choreographer: Skipped 145 frames! The application may be doing too much work on its main thread.
E/libc: Access denied finding property "vendor.debug.egl.changepixelformat"
E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
D/: Successfully load libgui-plugin.so, this=0x76506f70c0
I/OpenGLRenderer: Davey! duration=2828ms; Flags=0, IntendedVsync=910300861918726, Vsync=910303278585296, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=910303285835193, AnimationStart=910303286168422, PerformTraversalsStart=910303290208266, DrawStart=910303309583109, SyncQueued=910303573194464, SyncStart=910303573524516, IssueDrawCommandsStart=910303574379828, SwapBuffers=910303689163213, FrameCompleted=910303691023943, DequeueBufferDuration=3761000, QueueBufferDuration=1051000,
E/SensorManager: unregisterListenerImpl callingApp: com.company.someapp.debug,callingPid:7032,callingUid:10222
V/FA: Recording user engagement, ms: 3449
Disconnected from the target VM, address: 'localhost:8602', transport: 'socket'
This are DEBUG Console logs. I tried it on another project and it was VERY VERY LAGGY. Am I missing something?
I had the same issue on Android Studio 4.1.1 using Pixel 3 API 29.
When the emulator is up, my application becomes stuck in blank screen (before the splashscreen)
Make sure that you had import Espresso dependencies:
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
ps: https://www.thedroidsonroids.com/blog/espresso-test-recording