- Adım
- Ömer
- Cihazım
- Mi 9T
- Konum
- Ankara
- Katılım
- 1 Aralık 2019
- Konular
- 19
- Mesajlar
- 155
- Tepkime puanı
- 315
- Puanları
- 63
Merhaba dostlar ;
Bugünlerde C# öğrenmeye çalışıyorum, pekiştirmek amacı ile basit bir tool geliştirmek istediğim. TWRP yükleyebilen, fastboota düşüp twrp'ye geçemediğinizde geçmenize imkan tanıyan vbmeta flaşlayabilen, adb fastboot driver kuracak, Mi Flash tool açacak hazır bir araç ürettim. Sizlerde v2 aracında gelmesini istediğiniz özellikleri paylaşırsanız sevinirim.
Umarım faydalı olur. İyi forumlar
Not: İşlemler için cihazınızın fastboot modunda olması gerekmektedir. Fastboot moduna alma : Telefon kapalıyken ses kısma ve güç tuşlarına basılı tutarak fastboot ekranın gelmesini bekleyin, geldikten sonra elinizi çekin ve USB kablosu aracılığı ile bilgisayara bağlayın.
Ekran Görüntüsü:
Kullanım : Rardaki klasörü masüstünüze çıkartıp exeyi çalıştırıp kullanın
İşlevler :
ADB ve Fastboot Driver kurma
TWRP Yükleme
VBMETA flaşlama
Mi Flash Programı
İndirme Linki :
Aracı geliştirmek isteyen arkadaşlar olursa kodları :
Bugünlerde C# öğrenmeye çalışıyorum, pekiştirmek amacı ile basit bir tool geliştirmek istediğim. TWRP yükleyebilen, fastboota düşüp twrp'ye geçemediğinizde geçmenize imkan tanıyan vbmeta flaşlayabilen, adb fastboot driver kuracak, Mi Flash tool açacak hazır bir araç ürettim. Sizlerde v2 aracında gelmesini istediğiniz özellikleri paylaşırsanız sevinirim.
Umarım faydalı olur. İyi forumlar
Not: İşlemler için cihazınızın fastboot modunda olması gerekmektedir. Fastboot moduna alma : Telefon kapalıyken ses kısma ve güç tuşlarına basılı tutarak fastboot ekranın gelmesini bekleyin, geldikten sonra elinizi çekin ve USB kablosu aracılığı ile bilgisayara bağlayın.
Ekran Görüntüsü:
Resimleri görmek için giriş yapmanız gerekmektedir.
Kullanım : Rardaki klasörü masüstünüze çıkartıp exeyi çalıştırıp kullanın
İşlevler :
ADB ve Fastboot Driver kurma
TWRP Yükleme
VBMETA flaşlama
Mi Flash Programı
İndirme Linki :
Linkleri görebilmek için kayıt olmanız gerekmektedir
Aracı geliştirmek isteyen arkadaşlar olursa kodları :
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
'Form, bileşen listesini temizlemeyi bırakmayı geçersiz kılar.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
'Windows Form Tasarımcısı tarafından gerektirilir
Private components As System.ComponentModel.IContainer
'NOT: Aşağıdaki yordam Windows Form Tasarımcısı için gereklidir
'Windows Form Tasarımcısı kullanılarak değiştirilebilir.
'Kod düzenleyicisini kullanarak değiştirmeyin.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1))
Me.Button1 = New System.Windows.Forms.Button()
Me.Panel1 = New System.Windows.Forms.Panel()
Me.PictureBox4 = New System.Windows.Forms.PictureBo)
Me.PictureBox1 = New System.Windows.Forms.PictureBo)
Me.Label1 = New System.Windows.Forms.Label()
Me.PictureBox2 = New System.Windows.Forms.PictureBo)
Me.Button2 = New System.Windows.Forms.Button()
Me.Button3 = New System.Windows.Forms.Button()
Me.Button4 = New System.Windows.Forms.Button()
Me.Panel1.SuspendLayout()
CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Button1
'
Me.Button1.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Button1.FlatAppearance.BorderSize = 0
resources.ApplyResources(Me.Button1, "Button1")
Me.Button1.ForeColor = System.Drawing.SystemColors.Highlight
Me.Button1.Name = "Button1"
Me.Button1.UseVisualStyleBackColor = False
'
'Panel1
'
Me.Panel1.BackColor = System.Drawing.Color.FromArgb(CType(CType(75, Byte), Integer), CType(CType(75, Byte), Integer), CType(CType(75, Byte), Integer))
Me.Panel1.Controls.Add(Me.PictureBox4)
Me.Panel1.Controls.Add(Me.PictureBox1)
resources.ApplyResources(Me.Panel1, "Panel1")
Me.Panel1.Name = "Panel1"
'
'PictureBox4
'
resources.ApplyResources(Me.PictureBox4, "PictureBox4")
Me.PictureBox4.Name = "PictureBox4"
Me.PictureBox4.TabStop = False
'
'PictureBox1
'
resources.ApplyResources(Me.PictureBox1, "PictureBox1")
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.TabStop = False
'
'Label1
'
resources.ApplyResources(Me.Label1, "Label1")
Me.Label1.ForeColor = System.Drawing.Color.White
Me.Label1.Name = "Label1"
'
'PictureBox2
'
resources.ApplyResources(Me.PictureBox2, "PictureBox2")
Me.PictureBox2.Name = "PictureBox2"
Me.PictureBox2.TabStop = False
'
'Button2
'
Me.Button2.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Button2.FlatAppearance.BorderSize = 0
resources.ApplyResources(Me.Button2, "Button2")
Me.Button2.ForeColor = System.Drawing.Color.Brown
Me.Button2.Name = "Button2"
Me.Button2.UseVisualStyleBackColor = False
'
'Button3
'
Me.Button3.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Button3.FlatAppearance.BorderSize = 0
resources.ApplyResources(Me.Button3, "Button3")
Me.Button3.ForeColor = System.Drawing.SystemColors.Highlight
Me.Button3.Name = "Button3"
Me.Button3.UseVisualStyleBackColor = False
'
'Button4
'
Me.Button4.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Button4.FlatAppearance.BorderSize = 0
resources.ApplyResources(Me.Button4, "Button4")
Me.Button4.ForeColor = System.Drawing.Color.Brown
Me.Button4.Name = "Button4"
Me.Button4.UseVisualStyleBackColor = False
'
'Form1
'
resources.ApplyResources(Me, "$this")
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Controls.Add(Me.Button4)
Me.Controls.Add(Me.Button3)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Panel1)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.PictureBox2)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
Me.Name = "Form1"
Me.Panel1.ResumeLayout(False)
CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents Button1 As Button
Friend WithEvents Panel1 As Panel
Friend WithEvents PictureBox1 As PictureBox
Friend WithEvents Label1 As Label
Friend WithEvents PictureBox2 As PictureBox
Friend WithEvents Button2 As Button
Friend WithEvents Button3 As Button
Friend WithEvents Button4 As Button
Friend WithEvents PictureBox4 As PictureBox
End Class
Public Class Form1
Dim draggable As Boolean
Dim mouseX As Integer
Dim mouseY As Integer
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Process.Start(Application.StartupPath & "/adb-setup-1.3.exe")
End Sub
Private Sub PictureBox1_Click(sender As Object, e As EventArgs)
End Sub
Private Sub Panel1_MouseDown(sender As Object, e As MouseEventArgs) Handles Panel1.MouseDown
draggable = True
mouseX = Cursor.Position.X - Me.Left
mouseY = Cursor.Position.Y - Me.Top
End Sub
Private Sub Panel1_MouseMove(sender As Object, e As MouseEventArgs) Handles Panel1.MouseMove
If draggable Then
Me.Top = Cursor.Position.Y - mouseY
Me.Left = Cursor.Position.X - mouseX
End If
End Sub
Private Sub Panel1_MouseUp(sender As Object, e As MouseEventArgs) Handles Panel1.MouseUp
draggable = False
End Sub
Private Sub Panel1_Paint(sender As Object, e As PaintEventArgs) Handles Panel1.Paint
End Sub
Private Sub PictureBox1_Click_1(sender As Object, e As EventArgs) Handles PictureBox1.Click
End Sub
Private Sub PictureBox1_MouseClick(sender As Object, e As MouseEventArgs) Handles PictureBox1.MouseClick
Close()
End Sub
Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Process.Start(Application.StartupPath & "/TWRP.bat")
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Process.Start(Application.StartupPath & "/VBMETA.bat")
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
Process.Start(Application.StartupPath & "/MiFlash20191206/XiaoMiFlash.exe")
End Sub
Private Sub PictureBox3_Click(sender As Object, e As EventArgs)
End Sub
Private Sub PictureBox3_MouseClick(sender As Object, e As MouseEventArgs)
Me.WindowState = FormWindowState.Maximized
End Sub
Private Sub PictureBox4_Click(sender As Object, e As EventArgs) Handles PictureBox4.Click
End Sub
Private Sub PictureBox4_MouseClick(sender As Object, e As MouseEventArgs) Handles PictureBox4.MouseClick
Me.WindowState = FormWindowState.Minimized
End Sub
End Class
Partial Class Form1
Inherits System.Windows.Forms.Form
'Form, bileşen listesini temizlemeyi bırakmayı geçersiz kılar.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub
'Windows Form Tasarımcısı tarafından gerektirilir
Private components As System.ComponentModel.IContainer
'NOT: Aşağıdaki yordam Windows Form Tasarımcısı için gereklidir
'Windows Form Tasarımcısı kullanılarak değiştirilebilir.
'Kod düzenleyicisini kullanarak değiştirmeyin.
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1))
Me.Button1 = New System.Windows.Forms.Button()
Me.Panel1 = New System.Windows.Forms.Panel()
Me.PictureBox4 = New System.Windows.Forms.PictureBo)
Me.PictureBox1 = New System.Windows.Forms.PictureBo)
Me.Label1 = New System.Windows.Forms.Label()
Me.PictureBox2 = New System.Windows.Forms.PictureBo)
Me.Button2 = New System.Windows.Forms.Button()
Me.Button3 = New System.Windows.Forms.Button()
Me.Button4 = New System.Windows.Forms.Button()
Me.Panel1.SuspendLayout()
CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).BeginInit()
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'Button1
'
Me.Button1.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Button1.FlatAppearance.BorderSize = 0
resources.ApplyResources(Me.Button1, "Button1")
Me.Button1.ForeColor = System.Drawing.SystemColors.Highlight
Me.Button1.Name = "Button1"
Me.Button1.UseVisualStyleBackColor = False
'
'Panel1
'
Me.Panel1.BackColor = System.Drawing.Color.FromArgb(CType(CType(75, Byte), Integer), CType(CType(75, Byte), Integer), CType(CType(75, Byte), Integer))
Me.Panel1.Controls.Add(Me.PictureBox4)
Me.Panel1.Controls.Add(Me.PictureBox1)
resources.ApplyResources(Me.Panel1, "Panel1")
Me.Panel1.Name = "Panel1"
'
'PictureBox4
'
resources.ApplyResources(Me.PictureBox4, "PictureBox4")
Me.PictureBox4.Name = "PictureBox4"
Me.PictureBox4.TabStop = False
'
'PictureBox1
'
resources.ApplyResources(Me.PictureBox1, "PictureBox1")
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.TabStop = False
'
'Label1
'
resources.ApplyResources(Me.Label1, "Label1")
Me.Label1.ForeColor = System.Drawing.Color.White
Me.Label1.Name = "Label1"
'
'PictureBox2
'
resources.ApplyResources(Me.PictureBox2, "PictureBox2")
Me.PictureBox2.Name = "PictureBox2"
Me.PictureBox2.TabStop = False
'
'Button2
'
Me.Button2.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Button2.FlatAppearance.BorderSize = 0
resources.ApplyResources(Me.Button2, "Button2")
Me.Button2.ForeColor = System.Drawing.Color.Brown
Me.Button2.Name = "Button2"
Me.Button2.UseVisualStyleBackColor = False
'
'Button3
'
Me.Button3.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Button3.FlatAppearance.BorderSize = 0
resources.ApplyResources(Me.Button3, "Button3")
Me.Button3.ForeColor = System.Drawing.SystemColors.Highlight
Me.Button3.Name = "Button3"
Me.Button3.UseVisualStyleBackColor = False
'
'Button4
'
Me.Button4.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Button4.FlatAppearance.BorderSize = 0
resources.ApplyResources(Me.Button4, "Button4")
Me.Button4.ForeColor = System.Drawing.Color.Brown
Me.Button4.Name = "Button4"
Me.Button4.UseVisualStyleBackColor = False
'
'Form1
'
resources.ApplyResources(Me, "$this")
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.BackColor = System.Drawing.Color.FromArgb(CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer), CType(CType(49, Byte), Integer))
Me.Controls.Add(Me.Button4)
Me.Controls.Add(Me.Button3)
Me.Controls.Add(Me.Button2)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.Panel1)
Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.PictureBox2)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None
Me.Name = "Form1"
Me.Panel1.ResumeLayout(False)
CType(Me.PictureBox4, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.PictureBox1, System.ComponentModel.ISupportInitialize).EndInit()
CType(Me.PictureBox2, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
Me.PerformLayout()
End Sub
Friend WithEvents Button1 As Button
Friend WithEvents Panel1 As Panel
Friend WithEvents PictureBox1 As PictureBox
Friend WithEvents Label1 As Label
Friend WithEvents PictureBox2 As PictureBox
Friend WithEvents Button2 As Button
Friend WithEvents Button3 As Button
Friend WithEvents Button4 As Button
Friend WithEvents PictureBox4 As PictureBox
End Class
Public Class Form1
Dim draggable As Boolean
Dim mouseX As Integer
Dim mouseY As Integer
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Process.Start(Application.StartupPath & "/adb-setup-1.3.exe")
End Sub
Private Sub PictureBox1_Click(sender As Object, e As EventArgs)
End Sub
Private Sub Panel1_MouseDown(sender As Object, e As MouseEventArgs) Handles Panel1.MouseDown
draggable = True
mouseX = Cursor.Position.X - Me.Left
mouseY = Cursor.Position.Y - Me.Top
End Sub
Private Sub Panel1_MouseMove(sender As Object, e As MouseEventArgs) Handles Panel1.MouseMove
If draggable Then
Me.Top = Cursor.Position.Y - mouseY
Me.Left = Cursor.Position.X - mouseX
End If
End Sub
Private Sub Panel1_MouseUp(sender As Object, e As MouseEventArgs) Handles Panel1.MouseUp
draggable = False
End Sub
Private Sub Panel1_Paint(sender As Object, e As PaintEventArgs) Handles Panel1.Paint
End Sub
Private Sub PictureBox1_Click_1(sender As Object, e As EventArgs) Handles PictureBox1.Click
End Sub
Private Sub PictureBox1_MouseClick(sender As Object, e As MouseEventArgs) Handles PictureBox1.MouseClick
Close()
End Sub
Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Process.Start(Application.StartupPath & "/TWRP.bat")
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Process.Start(Application.StartupPath & "/VBMETA.bat")
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
Process.Start(Application.StartupPath & "/MiFlash20191206/XiaoMiFlash.exe")
End Sub
Private Sub PictureBox3_Click(sender As Object, e As EventArgs)
End Sub
Private Sub PictureBox3_MouseClick(sender As Object, e As MouseEventArgs)
Me.WindowState = FormWindowState.Maximized
End Sub
Private Sub PictureBox4_Click(sender As Object, e As EventArgs) Handles PictureBox4.Click
End Sub
Private Sub PictureBox4_MouseClick(sender As Object, e As MouseEventArgs) Handles PictureBox4.MouseClick
Me.WindowState = FormWindowState.Minimized
End Sub
End Class
Son düzenleme: