Skip to content

Instantly share code, notes, and snippets.

1. Download latest apktool version.
2. Create a folder anywhere in the PC and put all the apktool.jar in the folder
3. Open command prompt.
4. Navigate to the folder where you placed apktool.jar
5. For decompiling use the command "d". The "d" stands for decompile.
apktool<version>.jar d name-of-the-app.apk
@swablueme
swablueme / start srcpy.bat
Last active April 2, 2023 07:36
Starts both sndcpy and srcpy together
@echo off
::number times restarting sndcpy
set /A "FIXEDCOUNT=0"
set Token=MAIN_%RANDOM%_%CD%
::start sndcpy
pushd sndcpy-with-adb-windows-v1.1\ & start "%Token%_1" cmd /c sndcpy.bat & popd
::start scrcpy
start "%Token%_2" cmd /c scrcpy-win64-v1.24\scrcpy.exe --stay-awake --turn-screen-off
@swablueme
swablueme / KBCATEventRaidIdentifier.py
Last active April 8, 2023 12:08
Generate the event_raid_identifier for 7 star raids in Pokemon Scarlet and Violet
import binascii
import struct
#this is the VersionNo described in
#https://github.com/projectpokemon/EventsGallery/blob/master/Released/Gen%209/Raid%20Events/002%20Charizard%20the%20Unrivaled/Json/raid_enemy_array.json
VersionNo = 20221125
#< means little edian
#I unsigned int
hexValueForRaidIdentifier = struct.pack('<I', VersionNo)
@swablueme
swablueme / dragonify_engage_characters.py
Last active April 8, 2023 12:11
Quick python script to generate dragon class entries in the person.xml file in the person.xml.bundle for the Fire Emblem Engage games
import os
from lxml import etree
import sys
import copy
# enables utf-8 printing
sys.stdout.reconfigure(encoding='utf-8')
class CONSTANTS:
# Units to make able to transform into a fell dragon
@swablueme
swablueme / process_operators.py
Last active November 2, 2024 08:18
Maa Assistant operator export parse json for arknights
import sys
import csv
import json
import requests
from os import path
from typing import Iterator
from enum import Enum
sys.stdin.reconfigure(encoding='utf-8')
sys.stdout.reconfigure(encoding='utf-8')
@swablueme
swablueme / gist:aed385df8b7265adeabd6a8602fff58a
Created September 8, 2025 07:36
Commandlets for hyperV
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor