3
The screencap command can be configured to capture a specific display using the option -d.
-d: specify the physical display ID to capture.
See dumpsys SurfaceFlinger --display-id for valid display IDs.
The output of dumpsys SurfaceFlinger --display-id is a bit longer, therefore you can filter out the display ids:
dumpsys SurfaceFlinger --display-id | ...
2
Write a script in your PC, look for 'reboot' argument, and execute your own command instead.
I do not know how a Window's compatible script would look like, but this is how a simple bash script would look like.
#!/bin/bash
ADB="PATH_TO_RENAMED_ADB_BINARY"
if [[ "$1" == "reboot" ]] && [[ -z ${2} ]]; then # $1 is the first argument received by adb
...
2
If I understood the problem correctly the vulnerability is located in the camera apps. Updating apps is the responsibility of the Google PlayStore or in case of Samsung there is also the Samsung "Galaxy Store" which is usually comes pre-installed on all Samsung devices.
Therefore in this case no firmware update is required.
In both cases Google and ...
2
Which code to use with service call depends on Android release. On Android 9 IPhoneSubInfo method 1 returns first IMEI while methods 3 and 4 return both IMEIs:
~$ service call iphonesubinfo 3 i32 1 | grep -oE '[0-9a-f]{8} ' | while read hex; do echo -ne "\u${hex:4:4}\u${hex:0:4}"; done; echo
~$ service call iphonesubinfo 3 i32 2 | grep -oE '[0-9a-f]{8} ' | ...
1
Requirements
To fix the issue, you will need:
A laptop or desktop computer
A USB cable
Then:
Download Universal Android Debug Tools (ADB) onto the computer
Install ADB into C:\Program Files\platform-tools.
ADB is installed and the phone is ready to be fixed. Another SE answer has details on using ADB.
Instructions
Message 423 on Sony's forum provides ...
1
This was solved using clues from this post
If you only need to authorize one computer:
Simply copy the adbkey.pub
onto the device location:
/data/misc/adb/ and rename it from
adbkey.pub to adb_keys
chmod 0644 and then reboot.
I forgot to do the chmod but still works.
1
You can use the following command from an adb prompt to enter into your devices recovery mode without using a physical button during restart.
1) Start adb prompt on your PC / MAC / Linux
2) Make sure adb is running adb start-server
2) Make sure the device is present when you run: adb devices
3) Now run adb reboot bootloader and your device will restart ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
adb × 1665fastboot × 158
backup × 147
shell × 138
recovery-mode × 124
root-access × 99
usb-debugging × 84
rooting × 74
twrp × 74
cyanogenmod × 73
linux × 72
usb × 70
broken-screen × 56
applications × 51
usb-drivers × 51
rom-flashing × 49
windows × 47
data-recovery × 46
bootloader × 45
restore × 45
command-line × 45
boot-loop × 44
unbricking × 35
4.4-kitkat × 33
5.0-lollipop × 33