Skip to content

Commit

Permalink
MiHome starten bevor Backup
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrara1n committed Jun 13, 2017
1 parent 1f038b4 commit cfd9af8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions MiTranslate/Start.vb
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,14 @@ Public Class Start
End Sub

Private Sub cmdGetToken_Click(sender As Object, e As EventArgs) Handles cmdGetToken.Click
'Mi Home App starten
Dim oProcess2 As New Process()
Dim oStartInfo2 As New ProcessStartInfo("adb/adb.exe", "shell monkey -p com.xiaomi.smarthome -c android.intent.category.LAUNCHER 1")
oStartInfo2.UseShellExecute = False
oStartInfo2.CreateNoWindow = True
oProcess2.StartInfo = oStartInfo2
oProcess2.Start()
oProcess2.WaitForExit()
If doBackup() < 20000000 Then
MsgBox("Es scheint ein Fehler aufgetreten zu sein, das Backup ist viel zu klein.")
Else
Expand Down

0 comments on commit cfd9af8

Please sign in to comment.