gms+icebox without pc - Huawei P40 Pro Questions & Answers

Just as a FYI, ive been playing with GMS + Icebox to play around and see if i can get notifications working.
Whilst i have had limited sucess with notifications - even though the push notification tester says all is well, what i have found is that the app Tasker allows you to issue adb commands over wifi.
This means that if you set up ADB via a pc initially to listen on tcp port 5555 (or whatever provided you update tasker adb wifi settings) you can start icebox on the local phone while you are on the go without having to connect to your pc.
This means that you can start and stop gsf on the go without having to be tied to a pc.
It adb does need restarting every device reboot however, so you will need your laptop for that, but if like me you rarely restart your handset, this is loads easier than having to connec to the laptop to update apps via the app store, if you are so inclined.
Let me know what you think!

Related

[APP] [FREE] Easy ADB (Wireless Whitelist)

Wireless ADB is great, and a handful of apps already exist, but I got sick of typing 'adb connect .....' and firing up the wireless ADB app every time I reconnected to my wifi. I put together the 'Easy ADB' app, which allows individual networks to be white-listed for automatic wireless adb. The app also comes with a script to connect to the device from a computer using the host name rather than ip address. Of course, root is still a requirement.
Easy ADB is available on Google Play.
Hope this app can make someone's life a little bit easier. Of course, any feedback is appreciated.

samsung smart swith for ubuntu?

hello, i am usning ubuntu. is there any desktop software for managing my tablet, like samsung smart switch on windows for ubuntu?
Scrcpy, adb, vnc
d9867eb said:
hello, i am usning ubuntu. is there any desktop software for managing my tablet, like samsung smart switch on windows for ubuntu?
Click to expand...
Click to collapse
There are a lot of choices to choose from if you want to manage your tablet with Ubuntu. However, there are different methods for different programs and you get different functions out of each. I'll compile a quick list for you, but without a little more specificity, I don't know what you mean by "manage".
1) VirtualBox - You can always use VirtualBox to run Windows and use that to install Samsung Kies/Smart Manager/etc.
apt install virtualbox
2) ADB - (USB Debugging must be enabled). Android Debug Bridge is a command-line based program to control different things on your device. To start, go to Settings - About Phone. Depending on your version of android it could be in "Software" or something along those lines but find "Build Number" and tap on it until it says "Developer Settings enabled". Afterward, go back to Settings and find the Developer menu. Turn it on first (there should be a box/slider/something on the top or in the menu) and go to USB Debugging. If it is grey'ed out and you can not turn it on, try turning off and on the developer settings. Once USB Debugging is enabled plug your device into the computer. The phone will ask a question about trusting the computer, press yes. Now, launch a terminal and type "adb devices". As long as only one device is plugged into your computer, and as long as the device is listed as "device" and not "offline" "unauthorized" or something like that, you can issue it commands! For more info on ADB, just google adb commands. "adb shell" gives you direct access to the /bin/sh shell in android. From there you can run commands directly through your tablet. Last note on this: 'adb tcpip 5555' restarts the adbd program on the tablet to listen for connections over the LAN/WAN/whatever it is connected to. To connect from the computer, type "adb connect <ip>" where <ip> is the tablet's IP address.
apt install android-tools-adb
3) scrcpy: Scrcpy is a program, written in java, that will use adb to display the screen of your android device in Ubuntu/anything that runs java. You can also click/type through it, allowing you to control it remotely. A word of warning: I don't know why, but my first few times trying to install this program were a major fail. I eventually got it, and it works pretty good, but it wasn't easy.
google: scrcpy (it's a github link)
4) VNC: You can install something like a VNC (Virtual Network Client) server or RDP (Remote Desktop Procedure) server on the tablet, and connect to it with tight/tiger vnc. Note: Device may have to be rooted for this, and, from my experience, most VNC servers wont work right. However, this has worked for my Samsung tablet in the past (the screen it broken on it but the digi is okay. I cant use scrcpy because scrcpy requires Lollipop I think and it has Kit Kat). I think the app "DroidVNC Server" was what I used.
5) Check Play Store for "android remote manager"
6) nuntius/kali-rolling 0.2.0-5+b1 amd64
share notifications from Android phone or tablet via Bluetooth or LAN
NOTE: I didn't like this program, but feel free to give it a shot!
Hope this helps!

Can you automate ADB debugging to toggle on/off on a schedule? (eg. every [email protected] 4am)

The amazon fire devices are a little weird. I currently have them integrated with home assistant through ADB. The problem I am running into is that if the ADB connection is lost from my computer to the firetv, then either the ADB debugging needs to be toggled in developer options, or I can restart the firetv itself. If the ADB connection is lost then some of my automations and controls do not work on home assistant.
Couple things:
I am willing to root the device
If I cannot toggle adb debugging, I could just reboot the device. I have considered using a smart plug to do this, but I would rather let the fire handle it.
Would tasker or termux be an option? I've considered moving ADB from the computer server to termux with https://github.com/MasterDevX/Termux-ADB, but I am not sure that would be more reliable.
Basically I want to toggle ADB debugging or a reboot on a set schedule (eg. every night @ 4am).
Hi Moosefist
Parhaps this might help you toggling the ADB based on a schedule:
App: Automate playstore link
The app Automate let you create a schema flow where you can specify what your device should do. For example, turn off bluetooth when connected to wifi network XYZ if time is greater than 10pm.
I think even that it doesn't require root, but I am not sure since mine it rooted anyway...

Phone with no screen or touch function (but O/S power buttons working) can't access ADB to pull data off phone

Phone is Poco F2 Pro, beyond economical repair
Windows 10 can see it via bluetooth but can't receive files
Have tried various data recovery trials but none can overcome non ADB
Have tried installing Qualcomm Drivers & ADB (but go error code 10) on PC
Mi Suite sees phone but asks me to update the phone (which I can't do)
Is there anyway to get a video out or get over the ADB limitation?
strocky said:
Phone is Poco F2 Pro, beyond economical repair
Windows 10 can see it via bluetooth but can't receive files
Have tried various data recovery trials but none can overcome non ADB
Have tried installing Qualcomm Drivers & ADB (but go error code 10) on PC
Mi Suite sees phone but asks me to update the phone (which I can't do)
Is there anyway to get a video out or get over the ADB limitation?
Click to expand...
Click to collapse
If the screen is cracked and you can see the interface and you can connect the mouse to a usb, you will also have the option of installing MyPhoneExplorer Client. You have a chance to watch the phone screen in MyPhoneExplorer for PC and manage the backup.
MyPhoneExplorer Client starts automatically after installation, even after a system restart and is always ready to connect to MyPhoneExplorer.
ze7zez said:
If the screen is cracked and you can see the interface and you can connect the mouse to a usb, you will also have the option of installing MyPhoneExplorer Client. You have a chance to watch the phone screen in MyPhoneExplorer for PC and manage the backup.
MyPhoneExplorer Client starts automatically after installation, even after a system restart and is always ready to connect to MyPhoneExplorer.
Click to expand...
Click to collapse
Unfortunately the screen & touch functions are totally dead (my daily alarm has been playing on a loop this morning lol)
I'm going to try and boot into custom recovery mode and use ADB via CMD to access my files (doubt this will work as I have the standard ROM om the machine (4m34s into the video below)
I've edited the thread title as I can see it was misleading, thanks for the reply though much appreciated
So hitting a brick wall, I assume with a stock Poco ROM I won't have access to an ADB enabled boot?
Would it be possible to flash a custom ROM and gain ADB access that way?
Or is a replacement or donor screen & digitiser the only way fwd?
In my opinion, you can do nothing without access to the screen or enabled usb debugging in the system.
Decide for yourself about the profitability of replacing the display, taking into account that it will be done carefully and nothing else will be spoiled.

Question Does anyone know why ADB wifi refuses to work?

Despite any rooting, any options selected in developer settings (they do nothing regarding this)... I still need to enable adb wifi by restarting in tcpip mode by tethering to pc usb adb (adb tcpip 5555). Then I can use wifi adb fine, and tools like scrcpy that this phone works excellent with (seriously a league above Samsung streaming, and Samsung had it integrated into phone link). With every other device I ever had, and currently have like Fire Sticks, tablets... Selecting the dev option is enough and I dont need to tether to my pc every phone reboot. I can adb into them fine.
Is there anyone out there that knows whats up? Do roms other than Lineage (or stock) enable this functionality?

Categories

Resources