شعار Vector Xposed Module Skill

Vector Xposed Module Skill

المجتمع
KingFalse
vector-xposed-module-skill

Build, modify, install, and verify Vector/LSPosed modern libxposed Android modules. Use when the user asks to create an Xposed/Vector plugin/module, migrate a module to META-INF/xposed/java_init.list and module.prop, add a Toast/logcat injection proof, or automate enabling/disabling scopes with the Vector CLI on a rooted Android device.

نظرة عامة

الناشرKingFalse
المستودعvector-xposed-module-skill
اسم المهارةvector-xposed-module-skill
النجوم
27
التفريعات
1
الملفات المرفقة
28
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 28

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها KingFalse على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Vector Xposed Module Skill في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/KingFalse/vector-xposed-module-skill/tree/main
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/KingFalse/vector-xposed-module-skill.git \
  .claude/skills/vector-xposed-module-skill
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Vector Xposed Module Skill في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Vector Xposed Module Skill تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Vector Xposed Module Skill بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Vector Xposed Module

Core Rules

Use the current Vector modern entry path:

text
META-INF/xposed/module.prop
META-INF/xposed/java_init.list

For Vector builds matching the current modern loader behavior, set both API values to 101; targetApiVersion=100 may not load as a modern module on newer Vector builds.

properties
minApiVersion=101
targetApiVersion=101
staticScope=false

Do not package io.github.libxposed.* classes into the APK. Use compileOnly stubs only. Always inspect the final APK:

bash
unzip -p app/build/outputs/apk/debug/app-debug.apk META-INF/xposed/module.prop
unzip -p app/build/outputs/apk/debug/app-debug.apk META-INF/xposed/java_init.list
unzip -l app/build/outputs/apk/debug/app-debug.apk | rg 'io/github/libxposed|META-INF/xposed|xposed_init'

Preserve a user-visible startup Toast in generated or modified modules so users can immediately confirm whether injection took effect. Do not remove the Toast proof unless the user explicitly asks for a no-Toast module.

Template

Use assets/vector-toast-template/ when creating a new minimal module or replacing an existing module's entry with an injection proof.

Required substitutions:

text
com.example.vectortoast -> desired module package
com/example/vectortoast -> desired source path
VectorToastEntry -> desired modern entry class if renamed
LegacyToastEntry -> desired legacy fallback class if renamed

Every generated module should keep this Toast proof unless the user explicitly asks to remove it:

text
Vector 注入成功: <target-package>

The template's modern entry hooks Application.attach(Context), posts the Toast on the main thread, and logs with tag VectorToastModule.

When adding target-app business hooks, install those hooks after Application.attach(Context) has completed and use the attached Context's ClassLoader. Do not resolve target app classes from the module loader during onPackageLoaded; many app classes are unavailable or use the wrong loader before attach.

Workflow

  1. Inspect the existing project before editing: Gradle files, manifest, resources, META-INF/xposed, and assets/xposed_init.
  2. Add or adapt the modern libxposed entry from the template.
  3. Add META-INF/xposed/module.prop and META-INF/xposed/java_init.list.
  4. Keep assets/xposed_init only as legacy fallback; current Vector prefers modern when targetApiVersion >= 101.
  5. If adding business hooks, hook Application.attach(Context), call/proceed first, then use ((Context) arg).getClassLoader() to resolve target-app classes.
  6. Run ./preflight.sh to check JDK 17, Android SDK, and Gradle.
  7. Build the debug APK with ./build_debug.sh or ./gradlew :app:assembleDebug.
  8. Inspect APK contents to ensure metadata exists and libxposed stubs are not packaged.
  9. Install with adb install -r.
  10. Detect the phone's Vector version before using CLI automation.
  11. Enable module and configure scope through Vector CLI only when Vector version code is >= 3043.
  12. If Vector is older or CLI is unavailable, stop automation and tell the user to enable the module and edit scope manually in Vector/LSPosed Manager.
  13. Force-stop and relaunch the target app.
  14. Verify VectorToastModule in logcat.

Vector CLI

Prefer Vector CLI over direct DB edits. The CLI path on the user's device is:

bash
/data/adb/lspd/cli

Run through root:

bash
adb shell su -c "/data/adb/lspd/cli status"
adb shell su -c "/data/adb/lspd/cli status --json"
adb shell su -c "/data/adb/lspd/cli modules ls"
adb shell su -c "/data/adb/lspd/cli modules enable <module.pkg>"
adb shell su -c "/data/adb/lspd/cli modules disable <module.pkg>"
adb shell su -c "/data/adb/lspd/cli scope ls <module.pkg>"
adb shell su -c "/data/adb/lspd/cli scope add <module.pkg> <target.pkg>/0"
adb shell su -c "/data/adb/lspd/cli scope set <module.pkg> <target.pkg>/0"
adb shell su -c "/data/adb/lspd/cli scope rm <module.pkg> <target.pkg>/0"

Use scope add to append and scope set to replace the entire scope. Do not kill or restart lspd unless explicitly requested.

Before any automatic enable/disable/scope mutation, parse Version Code from status --json or status. Only automate CLI mutations when Version Code >= 3043. If the device reports an older version, or if /data/adb/lspd/cli is missing/unavailable, install the APK if requested but do not modify module state or scope; tell the user to open Vector/LSPosed Manager and manually enable the module plus add the target package to scope.

Safe shell gate:

bash
STATUS="$(adb shell su -c "/data/adb/lspd/cli status --json" 2>/dev/null || adb shell su -c "/data/adb/lspd/cli status" 2>/dev/null || true)"
VERSION_CODE="$(printf '%s\n' "$STATUS" | sed -nE 's/.*"Version Code"[[:space:]]*:[[:space:]]*([0-9]+).*/\1/p; s/.*Version Code:[[:space:]]*([0-9]+).*/\1/p' | head -n 1)"
if [[ -z "$VERSION_CODE" || "$VERSION_CODE" -lt 3043 ]]; then
  echo "Vector CLI automation unavailable; ask the user to enable the module and set scope manually."
else
  adb shell su -c "/data/adb/lspd/cli modules enable <module.pkg>"
  adb shell su -c "/data/adb/lspd/cli scope add <module.pkg> <target.pkg>/0"
fi

Verification

Use this sequence after installing:

bash
STATUS="$(adb shell su -c "/data/adb/lspd/cli status --json" 2>/dev/null || true)"
# Continue with CLI automation only when Version Code >= 3043.
adb shell su -c "/data/adb/lspd/cli modules enable <module.pkg>"
adb shell su -c "/data/adb/lspd/cli scope add <module.pkg> <target.pkg>/0"
adb logcat -c
adb shell am force-stop <target.pkg>
adb shell monkey -p <target.pkg> 1
sleep 4
adb logcat -d | rg 'VectorToastModule|VectorModuleManager|VectorLifecycle|<module.pkg>|Failed to instantiate|Class does not extend'

Expected logcat lines:

text
VectorModuleManager: Loaded module <module.pkg> successfully.
VectorToastModule: hooked Application.attach for package=<target.pkg>
VectorToastModule: injected package=<target.pkg> process=<target-process>

If loading fails, check:

bash
adb shell su -c "/data/adb/lspd/cli log cat"

References

Read references/vector-api-notes.md when you need details on current Vector API compatibility, constructor shape, packaging pitfalls, or CLI behavior.

No Global Gradle

Do not assume gradle is installed globally. The distributable template includes a Gradle 8.7 wrapper. Prefer these build paths in order:

bash
./build_debug.sh
./gradlew :app:assembleDebug
GRADLEW=/path/to/gradlew ./build_debug.sh

The template build_debug.sh first uses the current project's ./gradlew, then $GRADLEW, and only then falls back to global gradle. If none exist, stop and tell the user to add/copy a Gradle wrapper or build from Android Studio; do not ask them to install global Gradle as the only path.

Java Requirement

Do not assume the active java is usable. Android Gradle Plugin 8.x requires JDK 17.

Before building, verify Java 17 or use the template build_debug.sh, which detects JDK 17 in this order:

text
JDK_HOME
JAVA_HOME
/usr/libexec/java_home -v 17
/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home
/usr/local/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home
/opt/homebrew/opt/temurin@17/libexec/openjdk.jdk/Contents/Home
/usr/local/opt/temurin@17/libexec/openjdk.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/*/Contents/Home
java on PATH if it is version 17

If no Java exists, or the active Java is not 17 and no JDK 17 can be found, stop with a clear message:

text
需要 JDK 17 才能构建。请设置 JDK_HOME/JAVA_HOME 到 JDK 17,或安装 JDK 17 后再构建。

When invoking Gradle, pass the detected JDK explicitly:

bash
./gradlew -Dorg.gradle.java.home="$JDK17_HOME" :app:assembleDebug

Android SDK Requirement

Do not assume Android SDK is installed or discoverable. Before building, verify an SDK directory exists and contains at least platforms/ and build-tools/.

Use the template build_debug.sh, which detects SDK in this order:

text
ANDROID_HOME
ANDROID_SDK_ROOT
local.properties sdk.dir
$HOME/Library/Android/sdk
$HOME/Android/Sdk
$HOME/Android/sdk

If found, write/update local.properties:

properties
sdk.dir=/path/to/android-sdk

If no SDK exists, stop with a clear message:

text
需要 Android SDK 才能构建。请安装 Android SDK,或设置 ANDROID_HOME/ANDROID_SDK_ROOT,或在 local.properties 写 sdk.dir。

Distributable Template

The template is intended for sharing. Keep it free of machine-specific files:

text
Do not commit local.properties.
Do not hardcode /Users/<name>/... paths.
Do not rely on one user's external Gradle wrapper.

Before handing it to another user, run:

bash
./preflight.sh
./build_debug.sh

For device automation checks:

bash
./preflight.sh --device

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Vector Xposed Module Skill؟

Build, modify, install, and verify Vector/LSPosed modern libxposed Android modules. Use when the user asks to create an Xposed/Vector plugin/module, migrate a module to META-INF/xposed/java_init.list and module.prop, add a Toast/logcat injection proof, or automate enabling/disabling scopes with the Vector CLI on a rooted Android device.

لماذا تستخدم Vector Xposed Module Skill على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Vector Xposed Module Skill عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Vector Xposed Module Skill في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/KingFalse/vector-xposed-module-skill/tree/main. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Vector Xposed Module Skill؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Vector Xposed Module Skill؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Vector Xposed Module Skill معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Vector Xposed Module Skill مجانية؟

نشرها KingFalse على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇