Skip to content

Instantly share code, notes, and snippets.

View x86-39's full-sized avatar

Jasmijn Emilia Rosalina Knoope 🌸 x86-39

View GitHub Profile
@DataKinds
DataKinds / extract.rb
Created November 29, 2015 21:09
Extract png spritesheets from gamemaker "data.win" files
#!/usr/bin/ruby
PNGHEADER = [0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A]
PNGENDING = [0x49, 0x45, 0x4E, 0x44, 0xAE, 0x42, 0x60, 0x82]
pngHeaders = []
File.open("data.win", "rb") do |file|
puts "searching for png headers"
globalIndex = 0
headerInnerIndex = 0

How To Make A Working TWRP Device Tree For Your MediaTek Device & Start Building Them, Online

This Guide is tested on 64-bit mt6735/53 chipset device. It will also work on any 64-bit and 32-bit devices.

You will need something from your Stock ROM first. Get them all and Try to modify it using the procedure.

Note: This guide will be helpful for you if you have older mediatek devices (android-5.1 or android-6.0), but up-to-date devices can also work.

Update: This guide had a few typos and derps (Oops..), but I've tried to make it free of those now (Dated November 18, 2020)

Bonus: You can also use this tool by @SebaUbuntu, @yshalsager and @mauronofrio to auto generate the twrp tree. The tool is best if your device runs on android-9.0. The tools is still not 100% compatible to all devices, but I'll still recommend it and give it 8.5/10 in the scale of varsatility.