Loading app/src/main/java/foundation/e/apps/MainActivity.kt +1 −1 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ class MainActivity : AppCompatActivity() { statsManager.getFreeBytes(StorageManager.UUID_DEFAULT) } } catch (e: Exception) { Log.e(TAG, "calculateAvailableDiskSpace: ${e.stackTraceToString()}") Timber.e( "calculateAvailableDiskSpace: ${e.stackTraceToString()}") getAvailableInternalMemorySize() } } else { Loading app/src/main/java/foundation/e/apps/PrivacyInfoViewModel.kt +1 −4 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ import foundation.e.apps.api.exodus.models.AppPrivacyInfo import foundation.e.apps.api.exodus.repositories.IAppPrivacyInfoRepository import foundation.e.apps.api.fused.data.FusedApp import foundation.e.apps.utils.modules.CommonUtilsModule.LIST_OF_NULL import timber.log.Timber import javax.inject.Inject import kotlin.math.ceil import kotlin.math.round Loading Loading @@ -88,10 +89,6 @@ class PrivacyInfoViewModel @Inject constructor( val calculatePermissionsScore = calculatePermissionsScore( countAndroidPermissions(fusedApp) ) Log.d( "PrivacyInfoViewModel", "calculatePrivacyScore: ${fusedApp.name}: privacyScore: $calculateTrackersScore permissionScore: $calculatePermissionsScore noOfPermission: ${fusedApp.perms.size}" ) return calculateTrackersScore + calculatePermissionsScore } Loading app/src/main/java/foundation/e/apps/api/DownloadManager.kt +3 −12 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import kotlinx.coroutines.delay import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import timber.log.Timber import java.io.File import javax.inject.Inject import javax.inject.Named Loading Loading @@ -79,22 +80,12 @@ class DownloadManager @Inject constructor( cursor.getLong(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_TOTAL_SIZE_BYTES)) val bytesDownloadedSoFar = cursor.getLong(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR)) Log.d( "DownloadManager", "checkDownloadProcess: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status" ) if (status == DownloadManager.STATUS_FAILED) { Log.d( "DownloadManager", "Download Failed: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status" ) Timber.d("Download Failed: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status") isDownloading = false downloadCompleted?.invoke(false, filePath) } else if (status == DownloadManager.STATUS_SUCCESSFUL) { Log.d( "DownloadManager", "Download Successful: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status" ) Timber.d("Download Successful: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status") isDownloading = false downloadCompleted?.invoke(true, filePath) } Loading app/src/main/java/foundation/e/apps/api/gplay/utils/GPlayHttpClient.kt +3 −2 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ import okhttp3.Request import okhttp3.RequestBody import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.Response import timber.log.Timber import java.io.IOException import java.net.SocketTimeoutException import java.net.UnknownHostException Loading Loading @@ -137,7 +138,7 @@ class GPlayHttpClient @Inject constructor( ) .method(GET, null) .build() Log.d("get auth request", request.toString()) Timber.d("get auth request", request.toString()) return processRequest(request) } Loading Loading @@ -169,7 +170,7 @@ class GPlayHttpClient @Inject constructor( } private fun handleExceptionOnGooglePlayRequest(e: Exception): PlayResponse { Log.e(TAG, "processRequest: ${e.localizedMessage}") Timber.e( "processRequest: ${e.localizedMessage}") return PlayResponse() } Loading app/src/main/java/foundation/e/apps/manager/download/DownloadManagerUtils.kt +2 −4 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import kotlinx.coroutines.delay import kotlinx.coroutines.launch import kotlinx.coroutines.sync.Mutex import kotlinx.coroutines.sync.withLock import timber.log.Timber import javax.inject.Inject import javax.inject.Singleton Loading Loading @@ -58,10 +59,7 @@ class DownloadManagerUtils @Inject constructor( fusedDownload.downloadIdMap[downloadId] = true fusedManagerRepository.updateFusedDownload(fusedDownload) val downloaded = fusedDownload.downloadIdMap.values.filter { it }.size Log.d( TAG, "===> updateDownloadStatus: ${fusedDownload.name}: $downloadId: $downloaded/${fusedDownload.downloadIdMap.size} " ) Timber.d("===> updateDownloadStatus: ${fusedDownload.name}: $downloadId: $downloaded/${fusedDownload.downloadIdMap.size}") if (downloaded == fusedDownload.downloadIdMap.size) { fusedManagerRepository.moveOBBFileToOBBDirectory(fusedDownload) fusedDownload.status = Status.DOWNLOADED Loading Loading
app/src/main/java/foundation/e/apps/MainActivity.kt +1 −1 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ class MainActivity : AppCompatActivity() { statsManager.getFreeBytes(StorageManager.UUID_DEFAULT) } } catch (e: Exception) { Log.e(TAG, "calculateAvailableDiskSpace: ${e.stackTraceToString()}") Timber.e( "calculateAvailableDiskSpace: ${e.stackTraceToString()}") getAvailableInternalMemorySize() } } else { Loading
app/src/main/java/foundation/e/apps/PrivacyInfoViewModel.kt +1 −4 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ import foundation.e.apps.api.exodus.models.AppPrivacyInfo import foundation.e.apps.api.exodus.repositories.IAppPrivacyInfoRepository import foundation.e.apps.api.fused.data.FusedApp import foundation.e.apps.utils.modules.CommonUtilsModule.LIST_OF_NULL import timber.log.Timber import javax.inject.Inject import kotlin.math.ceil import kotlin.math.round Loading Loading @@ -88,10 +89,6 @@ class PrivacyInfoViewModel @Inject constructor( val calculatePermissionsScore = calculatePermissionsScore( countAndroidPermissions(fusedApp) ) Log.d( "PrivacyInfoViewModel", "calculatePrivacyScore: ${fusedApp.name}: privacyScore: $calculateTrackersScore permissionScore: $calculatePermissionsScore noOfPermission: ${fusedApp.perms.size}" ) return calculateTrackersScore + calculatePermissionsScore } Loading
app/src/main/java/foundation/e/apps/api/DownloadManager.kt +3 −12 Original line number Diff line number Diff line Loading @@ -26,6 +26,7 @@ import kotlinx.coroutines.delay import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import timber.log.Timber import java.io.File import javax.inject.Inject import javax.inject.Named Loading Loading @@ -79,22 +80,12 @@ class DownloadManager @Inject constructor( cursor.getLong(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_TOTAL_SIZE_BYTES)) val bytesDownloadedSoFar = cursor.getLong(cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_BYTES_DOWNLOADED_SO_FAR)) Log.d( "DownloadManager", "checkDownloadProcess: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status" ) if (status == DownloadManager.STATUS_FAILED) { Log.d( "DownloadManager", "Download Failed: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status" ) Timber.d("Download Failed: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status") isDownloading = false downloadCompleted?.invoke(false, filePath) } else if (status == DownloadManager.STATUS_SUCCESSFUL) { Log.d( "DownloadManager", "Download Successful: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status" ) Timber.d("Download Successful: $filePath=> $bytesDownloadedSoFar/$totalSizeBytes $status") isDownloading = false downloadCompleted?.invoke(true, filePath) } Loading
app/src/main/java/foundation/e/apps/api/gplay/utils/GPlayHttpClient.kt +3 −2 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ import okhttp3.Request import okhttp3.RequestBody import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.Response import timber.log.Timber import java.io.IOException import java.net.SocketTimeoutException import java.net.UnknownHostException Loading Loading @@ -137,7 +138,7 @@ class GPlayHttpClient @Inject constructor( ) .method(GET, null) .build() Log.d("get auth request", request.toString()) Timber.d("get auth request", request.toString()) return processRequest(request) } Loading Loading @@ -169,7 +170,7 @@ class GPlayHttpClient @Inject constructor( } private fun handleExceptionOnGooglePlayRequest(e: Exception): PlayResponse { Log.e(TAG, "processRequest: ${e.localizedMessage}") Timber.e( "processRequest: ${e.localizedMessage}") return PlayResponse() } Loading
app/src/main/java/foundation/e/apps/manager/download/DownloadManagerUtils.kt +2 −4 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import kotlinx.coroutines.delay import kotlinx.coroutines.launch import kotlinx.coroutines.sync.Mutex import kotlinx.coroutines.sync.withLock import timber.log.Timber import javax.inject.Inject import javax.inject.Singleton Loading Loading @@ -58,10 +59,7 @@ class DownloadManagerUtils @Inject constructor( fusedDownload.downloadIdMap[downloadId] = true fusedManagerRepository.updateFusedDownload(fusedDownload) val downloaded = fusedDownload.downloadIdMap.values.filter { it }.size Log.d( TAG, "===> updateDownloadStatus: ${fusedDownload.name}: $downloadId: $downloaded/${fusedDownload.downloadIdMap.size} " ) Timber.d("===> updateDownloadStatus: ${fusedDownload.name}: $downloadId: $downloaded/${fusedDownload.downloadIdMap.size}") if (downloaded == fusedDownload.downloadIdMap.size) { fusedManagerRepository.moveOBBFileToOBBDirectory(fusedDownload) fusedDownload.status = Status.DOWNLOADED Loading