File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed 
app/src/main/kotlin/com/fox2code/mmm Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ class InstallerActivity : FoxActivity() {
224224                            prgInd?.setProgressCompat(progress, true )
225225                        }
226226                    }
227-                 } else  readSU(moduleCache!! )
227+                 } else  rawModule  =   readSU(moduleCache!! )
228228                runOnUiThread {
229229                    prgInd?.visibility =  View .GONE 
230230                    prgInd?.isIndeterminate =  true 
Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ enum class IntentHelper {;
374374            if  ((destination ==  null ) ||  (destination.parentFile.also  {
375375                    destinationFolder =  it
376376                } ==  null ) ||  (! destinationFolder?.mkdirs()!!  &&  ! destinationFolder!! .isDirectory)) {
377+                 Timber .w(" dest null.for open"  )
377378                callback.onReceived(destination, null , RESPONSE_ERROR )
378379                return 
379380            }
@@ -387,10 +388,8 @@ enum class IntentHelper {;
387388            ).toBundle()
388389            compatActivity.startActivityForResult(intent, param) { result:  Int , data:  Intent ?  -> 
389390                val  uri =  data?.data
390-                 if  (uri ==  null  ||  result ==  Activity .RESULT_CANCELED  &&  ContentResolver .SCHEME_FILE  ==  uri.scheme &&  uri.path !=  null  &&  (uri.path!! .startsWith(
391-                         " /sdcard/" 
392-                     ) ||  uri.path!! .startsWith(" /data/"  )) ||  ContentResolver .SCHEME_ANDROID_RESOURCE  !=  uri.scheme
393-                 ) {
391+                 if  (uri ==  null  ||  result ==  Activity .RESULT_CANCELED ) {
392+                     Timber .d(" invalid uri recieved"  )
394393                    callback.onReceived(destination, null , RESPONSE_ERROR )
395394                    return @startActivityForResult
396395                }
@@ -467,4 +466,4 @@ enum class IntentHelper {;
467466            })
468467        }
469468    }
470- }
469+ }
Original file line number Diff line number Diff line change @@ -196,9 +196,9 @@ enum class Files {
196196            val  zipOutputStream =  ZipOutputStream (outputStream)
197197            var  nRead:  Int 
198198            val  data =  ByteArray (16384 )
199-             var  zipEntry:  ZipEntry 
199+             var  zipEntry:  ZipEntry ? 
200200            while  (zipInputStream.nextEntry.also  { zipEntry =  it } !=  null ) {
201-                 val  name =  zipEntry.name
201+                 val  name =  zipEntry!! .name
202202                val  i =  name.indexOf(' /'  , 1 )
203203                if  (i ==  - 1 ) continue 
204204                val  newName =  name.substring(i +  1 )
@@ -304,4 +304,4 @@ enum class Files {
304304            }
305305        }
306306    }
307- }
307+ }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments