Skip to content

Instantly share code, notes, and snippets.

@Fede2782
Fede2782 / roomservice.xml
Created January 31, 2026 16:38
LineageOS 22.2 river local_manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="gitlab"
fetch="https://gitlab.com/"
revision="refs/heads/lineage-22.2" />
<project path="device/motorola/river" remote="github" name="LineageOS/android_device_motorola_river" />
<project path="device/motorola/sdm632-common" remote="github" name="LineageOS/android_device_motorola_sdm632-common" />
<project path="kernel/motorola/sdm632" remote="github" name="LineageOS/android_kernel_motorola_sdm632" />
<project path="hardware/motorola" remote="github" name="LineageOS/android_hardware_motorola" />
@Fede2782
Fede2782 / requirements.txt
Last active January 23, 2026 17:55
Phi-4-multimodal-instruct on Intel NPU with openvino
# This is a list of tools required on Python 3.12.10 to have a working optimum-cli to export Phi-4-multimodal-instruct
# The model has been exported to NPU using Channel-Wise INT4 Quantization:
# Merging this first may be required: https://huggingface.co/microsoft/Phi-4-multimodal-instruct/discussions/78
# optimum-cli export openvino -m microsoft/Phi-4-multimodal-instruct --weight-format int4 --sym --ratio 1.0 --group-size -1 Phi-4-multimoda-instruct-cw-ov
# in case there are some file not found errors, I adressed this by downloading the model
# first and then running the command adding the "--task image-text-to-text" parameter
# Model works well on Meteor Lake NPU on Windows 11 25H2.
about-time==4.2.1
accelerate==1.12.0
@Fede2782
Fede2782 / recovery_patches.sh
Last active December 7, 2025 18:11
Make Samsung recovery images useful for modding (OTA, any zip sideload, fastbootd, adb root)
# Recovery patches for Samsung AP2A recovery images
# Make SELinux permissive
# FILE: system/lib64/libselinux.so
# Function: security_setenforce
# From: mov w19, w0
# To: mov w19, wzr
HEX_PATCH "system/lib64/libselinux.so" "55d03bd5f303002a" "55d03bd5f3031f2a"
@Fede2782
Fede2782 / create_work_dir.sh
Created December 24, 2024 12:20
Custom create_work_dir for A34x legacy
#!/usr/bin/env bash
#
# Copyright (C) 2024 Fede2782
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@Fede2782
Fede2782 / epdg_apns_conf.xml
Created April 22, 2023 09:44
From Samsung Galaxy A22 5G: A226B_ITV_OXM_A226BXXU5DWC1
<?xml version="1.0" encoding="utf-8"?>
<!-- use empty string to specify no proxy or port -->
<!-- This version must agree with that in apps/common/res/apns.xml -->
<!-- Country : Network : Operator Name -->
<iwlanapns xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="epdg_apns_conf.xsd">
<vowifisettings>
<!-- wifi_call_enable 0 = off, 1 = on -->
<!-- wifi_call_preferred 1 = wifi pref, 2 = cs pref, 3 = wifi only, 4 = cs only, 5 = voip pref(VoLTE->VoWifi->CS) -->
<!-- wifi_call_when_roaming -1 = not used, 0 = cs pref, 1 = wifi pref -->
<!-- GCF Test : GCF Test : GCF -->