From f4fd1d228626fb3c2b1ecd7b292d43b78ef4acd2 Mon Sep 17 00:00:00 2001 From: Vinicios Clarindo Date: Thu, 25 Jul 2019 11:06:45 -0300 Subject: [PATCH] New firebase Methods and new description --- README.md | 14 ++++++++---- src/adb-interface/adb-interface.ts | 35 ++++++++++++------------------ 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index a028d23..77551fb 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ ### Attention !! ONLY TESTED IN WINDOWS !! #### Help are welcome ;) + ![Donation will make this tree growth](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif) # 0.5K Installs Thanks for everyone !! \O/`\_/ ! \o\o\o\o/o/o/o/ @@ -11,9 +12,14 @@ An simple adb extesion that makes possible to connect to an device over wifi con ## Currently with following features. -- 📱 ADB Interface :: Reset TCP ports from connected devices to :5555 (Open device port to connect thought wifi) -- 📱 ADB Interface :: Connect to device IP (need inform IP from device wanted) - will be removed ?? -- 📱 ADB Interface :: Disconnect from any devices (Disconnect everthing) -- 📱 ADB Interface :: Connect to device from List (Show an list from devices attached to connect) +- 📱 ADB | Reset TCP ports from connected devices to :5555 (Open device port to connect thought wifi) +- 📱 ADB | Connect to device IP (need inform IP from device wanted) - will be removed ?? +- 📱 ADB | Disconnect from any devices (Disconnect everthing) +- 📱 ADB | Connect to device from List (Show an list from devices attached to connect) + +> COMMING SOON + +- (comming) 🔥 ADB | Firebase - Enter debug mode (Run firebase events in debug mode) +- (comming) 🔥 ADB | Firebase - Exit events debug mode (Run firebase events in debug mode) ![status bar](media/record1.gif) diff --git a/src/adb-interface/adb-interface.ts b/src/adb-interface/adb-interface.ts index b7ddbbd..6eec1ca 100644 --- a/src/adb-interface/adb-interface.ts +++ b/src/adb-interface/adb-interface.ts @@ -67,6 +67,20 @@ export class ADBInterface { return result } + static firebaseEventsDebug({ package_name }): string { + const result = execSync( + `adb shell setprop debug.firebase.analytics.app ${package_name}` + ).toString() + return result + } + + static disableFirebaseEventsDebug({ package_name }): string { + const result = execSync( + `adb shell setprop debug.firebase.analytics.app .none.` + ).toString() + return result + } + static async DisconnectFromAllDevices(): Promise { var finalResult = new ADBResult( ADBResultState.Error, @@ -127,27 +141,6 @@ export class ADBInterface { } } -/** - * Is an enum of adb possible results - */ -/** - * Is an enum of adb possible results - */ -/** - * Is an enum of adb possible results - */ -/** - * Is an enum of adb possible results - */ -/** - * Is an enum of adb possible results - */ -/** - * Is an enum of adb possible results - */ -/** - * Is an enum of adb possible results - */ /** * Is an enum of adb possible results */