[Guide] How to enable native screen recording on Pixel device - Google Pixel 3a Guides, News, & Discussion

no root needed
Source
What you need to enable it:
Enable developer options
Enable usb debuging
PC with installed adb tools(if you dont have adb tool look here
usb cabel
Paste this line is adb
Code:
adb shell settings put global settings_screenrecord_long_press true
After that you can disable usb debiging and developer options
To record screen go to power menu and hold screenshot button.

Related

[Q] Enable USB Debugging tools through ADB in recovery mode

So, my digitizer is broke and I can't see anything or use the touch.
I am able to get into recovery mode with ADB and I tried some echo lines to manually activate debug mode, so that I can have my device authorized to use with ADB afterwards.
I'm trying to use Androidscreencast, but I need to make it work with ADB first and since I get device unauthorized it means that I don't have usb debugging enabled.
The final question : How can I activate debug mode without a screen?
You need to flash a kernel that has usb debugging enabled by default and has disabled that RSA security check.
So I think that what you want is nearly impossible.
I tried to pull and push default.prop and build.prop and I managed to do it, but when I reboot the phone it goes back to the older versions of the files...I don't know why the files don't remain, even though when I check with ls -l in adb shell it is the today's version.
In the end I managed to read my sms, by pulling out the database from the telephony folder and load it with some sql db reading software.

How To Disable Some Functions Of USB Port

I am wondering around the internet to learn any method to disable MTP/PTP/all usb stuff except charging.
So, why i want this?
Because i want my device to be secure.
I don't anyone to sneak around and try to go into bootloader or recovery/connection to a pc etc to set my device to make a fresh start/copying data and end my privacy up.
So is there a way to disable those functions?
And if it is possible then what? Will it be secured?
And the big question is that can i enable it through recovery (from adb or moving mobile files) as you know if one has a messed up rom then he/she should have those functions workable.
.
@LGaljo?
@nik60?
@MAXSIMUS96?
@adityaupreti?
@Ciro?
@Renix63?
@sev3n1985?
delete mtpApplication.apk in syste/priv-app and in dev options..deflag debug usb
anyway ...not tried because i don't use pin in LS--but in S6 when phone is locked with pin is not recognized with PC
So will it disable the mobile to connect to a pc through bootloader?
I found this on a web:
.
The most device-compatible way to disable everything is to run this command at startup or set this in your build.prop:
Code:
setprop persist.sys.usb.config none
which is equivalent to charge-only on all Android devices.
That also disables adb. If you use adb regularly, then:
Code:
setprop persist.sys.usb.config adb
will allow adb when developer options are turned on/checked. If you don't use ADB often, I would not recommend it, because setting adb causes my S5 to still recognize in device manager, even when it is locked.
To restore original functionality,
Code:
setprop persist.sys.usb.config mtp,ptp,adb
allows all USB protocols.

[GUIDE] [FIX] How To Fix Error Can't Copy Files To From Phone To PC/Laptop Via USB

How To Fix Error Can't Copy Files To From Phone To PC/Laptop Via USB​
All Operating Systems Start Here
Remove usb cable from phone/pc
Enable usb debugging mode on phone by
Going to phones settings
Scroll to bottom and select about phone
Tap on build number until it tells you that you are a developer
Go back to phone settings
You now have developer options at the bottom of the list above about phone
Enter developer option and turn on using switch at top right
Scroll down and enable Android debugging
Now Carry On Depending On Operating System
Windows users
In/Re-install the moto g5 drivers from the attachment in this post
Connect phone to pc
Look on your phone screen and a pop-up box will ask you if you want to accept the connection
Agree and make sure you tick always allow connection from this pc
Remove the usb cable
Restart Phone
Once booted insert usb cable
Change connection type in status bar to file transfer
Ubuntu Users
Press ctrl + alt + T to open terminal window
Type the following pressing enter at the end of each line
Code:
sudo apt update
sudo apt install android-tools-adb android-tools-fastboot
To check it worked type
Code:
adb version
You should get an output that looks like this depending on version installed
Code:
Android Debug Bridge version 1.0.32
Now type
Code:
adb devices
You will get an output that looks like
Code:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
ZY3222SJMV unauthorized
Look on your phone screen and a pop-up box will ask you if you want to accept the connection
Agree and make sure you tick always allow connection from this pc
Then check your device is now authorised type
Code:
adb devices
now you will get an output like this
Code:
List of devices attached
ZY3222SJMV device
Notice unauthorized has now changed to device
Remove the usb cable
Restart Phone
Once booted insert usb cable
Change connection type in phones status bar to file transfer
You can now copy files from the phone to ubuntu
Very thanks bro Installed the drivers but my problem is first of all my phone is charging when connected to windows and it doesn't show any option like file transfer,photo transfer etc. But this problem was coming only from previous week before and all it shows file transfer but it won't work but USB tethering and photo transfer works but now it too doesn't working not even showing the options only charging is working. Pls help me to solve without those functions it's really hard to transfer files to windows.hope u would find solution and reply soon very thanks in advance (sorry for my bad English)

[Partialy Solved] G5 plus rooted, and now cannt use ADB.

Phone is rooted, TWRP installed, (almost) everything is OK.
What is not OK is that now I cannt ADB connect. The "Allow USB debugging" window with the RSA key does not open at all.
Another thing I've noted - the "Revoke USB debugging authorizations" option in the Developer options - does not exist.
Any ideas as to how to solve this ?
I'm using linux (Arch, 64 bit). Another phone (an older, stock Moto G2) connect with ADB without any problem - so this is not a problem on the computer side, nor a USB cable problem.
Thanks.
Ben
Solved (almost).
After more googling I've found a solution on stackoverflow (as a new user I cannt insert a link) :
Code:
Reboot your phone into recovery mode.
Connect it to your computer.
Open the terminal and type:
cd ~/.android
adb push adbkey.pub /data/misc/adb/adb_keys
All done! Just adb shell reboot and feel the power!
Now the G5+ is recognized as a "device" with adb.
It's a partial solution because the "Revoke USB debugging authorizations" option is still missing.
Hope this helps future generations
ben-moto said:
After more googling I've found a solution on stackoverflow (as a new user I cannt insert a link) :
Code:
Reboot your phone into recovery mode.
Connect it to your computer.
Open the terminal and type:
cd ~/.android
adb push adbkey.pub /data/misc/adb/adb_keys
All done! Just adb shell reboot and feel the power!
Now the G5+ is recognized as a "device" with adb.
It's a partial solution because the "Revoke USB debugging authorizations" option is still missing.
Hope this helps future generations
Click to expand...
Click to collapse
+1 to this solution. I have a very similar problem on my HTC One M8. No prompt, also missing the "Revoke USB debugging authorizations" option.
Between this thread, a few others, and that same stackoverflow answer, I was able to come up with a couple of solutions:
[SOLVED] ADB 'unauthorized', no RSA prompt, and no 'Revoke USB debugging' option
I'm experiencing this now, except I still have my "revoke USB auth" option under Dev Options.
I'll try the adb push method now...

Transfer files fails

I haven't been able to get data transfer to work when connected to computer since Color OS 6 update. Pop up warning says resetting USB Debugging is required. Actions already taken :
1. Turn usb debugging on/off
2. Turn developer options on/off
3. Revoke usb debugging (adb devices shows device ID)
4. Enable usb tethering
Any suggestions?
After days of no response and some efforts of painful google-searching , I finally find a solution using adb command which is
adb shell svc usb setfunctions mtp
That being said there should not be any issue with usb / adb driver whatsoever, because I can use file transfer on my LG V30+ just fine using the very same laptop. Also system security check showed usb transfer is being blocked (see attached pics)

Categories

Resources