Skip to content

Instantly share code, notes, and snippets.

View barsikus007's full-sized avatar
🐍
JavaScript

barsikus007

🐍
JavaScript
  • @
  • Dubaisk
View GitHub Profile
@barsikus007
barsikus007 / fixdd
Last active May 17, 2024 18:30 — forked from mmtrt/fixdd
[ROOT] [Magisk] [Service.d] [Script] [Fix] DriveDroid on Pixel 7 Pro
#!/bin/sh
# run while loop for boot_completed status & sleep 10 needed for magisk service.d
while [ "$(getprop sys.boot_completed | tr -d '\r')" != "1" ]; do sleep 1; done
sleep 10
get_fn_type() {
# get currently active function name
if ls /config/usb_gadget/g1/configs/b.1/function* > /dev/null 2>&1
then