Turn on Nexus with starting the car and turn off when removing the key. - Android Q&A, Help & Troubleshooting

Hello. I'm trying to sort out issue for my friend. Basically he has connected his Nexus 7 in the car and he use it as on-board computer. He would like to modify it to turn on Nexus when he starting the car and turn off when he will remove the key from ignition. Can someone recommend how we can do it? I've tried to find solution but without success.

for boot at connecting charger event:
- install LGMobileDriver_WHQL_Ver_4.2.0.exe
- install adb and fastboot
- switch phone off
- press and hold Volume Down + Power key
- connect usb-cable
- navigate in cmd.exe (as administrator) to folder platform_tools
Code:
fastboot oem device-info
fastboot oem off-mode-charge 0
fastboot oem off-mode-charge disable
for shutdown on power off:
use App "MacroDroid" - add macro - battery/power - power connected/disconnected - power disconnected. on actions - device actions - reboot/power off - power off
with MacroDroid he can do more things, like play music each time bluetooth is connected on startup...

Related

[Guide] how to recover data from your stock android with a cracked touchscreen nexus4

my screen was broken, so i could no longer unlock the phone and so i could not copy data. information on this topic was spread and it ook me a long time. this tutorial should help everyone in this situation - you can even use it if your screen is completey broken! you just need the keys on the side of your phone: volume up, volume down and power key.. but it certainly helps if you still can see what your phone is doing.. but i wrote down every keystroke, so you can even do it "blind".. furthermore it should work the same for many other android phones! rooting is not neccessary.
assumption: the phone is in status "unlocked" in bootloader ( i dont know if that is a factory value or if i once changed it..)
so here are the steps:
- charge phone until full
- shut off ( hold power button long time )
- boot in bootloader ( power on with three buttons: volume down, volume up and power )
- you can now connect a computer via usb
- check Windows device manager: "Nexus 4" sould appear. ( with yellow error marker )
- install driver: http://www.koushikdutta.com/post/universal-adb-driver
- now in windows we find under "android devices" the device "Android Bootloader Interface"
- at next we need the adb tool. ( you can install android sdk or use this simple installer: http://forum.xda-developers.com/showthread.php?t=2588979 )
- start a windows command shell with admin rights
- type "fastboot devices" in the windows shell, this should show one fastboot device
- download a custom recovery tool and save it in the folder your command shell is in ( http://download2.clockworkmod.com/recoveries/recovery-clockwork-touch-6.0.4.7-mako.img )
- install it with the command "fastboot flash recovery recovery-clockwork-touch-6.0.4.7-mako.img"
- reboot phone with the command "fastboot reboot-bootloader"
- start recovery mode ( press volume down twice, press power )
- choose "mounts and storage" ( press volume down 5 times, then power )
- choose "mount /data" ( press volume down twice, then power )
- type "adb devices" in the windows shell, this should show the recovery device
- navigate the shell to a folder where you want to store your backup
- type "adb pull /data/media" to copy all files from the phone to the local windows folder
- you now have all personal files on your computer
- if you need additional system files, you can use "adb shell" and navigate through your phone and then pull specific files ( "adb pull /" or "adb pull /data" always made problems for me.. )
- ( the parameter "pull -a" preserves the timestamp.. but then not all files are copies for me.. )

[GUIDE] How to connect adb over wifi

Heres how to connect to android wear using adb over wifi, theres still some issues, so ill put it here and if someone has some information please share with us:
On wear:
Go to config -> about -> tap the version umber 7 times (it will enable dev options)
Now go back to config menu
Go to developer options
Enable adb (it will also enable the option adb over bluetooth)
On phone:
Open android wear app
Tap the cog icon
Enable Debug over wifi -> Check that the host will be connected (its the android wear)
Now open cmd (you will need to have adb on your path variable):
adb forward tcp:4444 localabstract:/adb-hub
adb connect localhost:4444 // if this gives an error try replacing localhost with 127.0.0.1
adb -s localhost:4444 tcpip 5555 // if this gives an error try replacing localhost with 127.0.0.1
On phone:
Disable adb over bluetooth
Disable bluetooth
On wear:
Go to config -> developer options -> disable the option auto change wifi state
Go to wifi, connect to your wifi
still on wifi, theres an advanced options, there you can get your ip address
on cmd:
adb connect 192.168.1.3:5555 // replace 192.168.1.3 with your android wear ip
THE PROBLEM:
Android wear keeps desconnecting the wifi for a lot of reasons, some that i know:
It detect bluetooth connection (its an automatic power save feature)
But even if you disconnect from bluetooth, sometimes it keep disconnecting.
THE SOLUTION:
I have found a feature under developer options named: Enable wifi state change. This is enabled by default, so disabling it should prevent the wear from disconnecting from wifi, and it does. But sometimes android wear auto enable this feature, even if you turn it off manually. If someone know something about it, or another way to prevent wifi disconnection, please share with us.
On phone:
Open android wear app
Tap the cog icon
Enable Debug over wifi -> Check that the host will be connected (its the android wear)
==============================
Unfortunately doesn't work on my phone, cannot find the "Debug over wifi" option, only Debug over bluetooth available.
The same here!! How did you proceed?
Do you know if there is any way to figure out the port being used?
sagits2016 said:
adb connect localhost:4444 // if this gives an error try replacing localhost with 127.0.0.1
Click to expand...
Click to collapse
Thank you SO MUCH!! I have been trying to connect my watch for days!

Disabling offline charging in Redmi 4A - Rolex for kiosk mode

Offline Charging :- When charger is connected to switched off device, it boots the device into offline charging mode and charging bootanimation comes. System is triggered into normal boot by holding the power button.
But am trying to build a kiosk device using Redmi 4A and cannot have user interaction. Thus need to override this offline charging so that device automatically boots into normal mode when connected to charger.
DEVICE IS ROOTED
I have followed all the methods suggested throughout the web --
fastboot oem off-mode-charge 0 -- NOT WORKING
/system/bin/lpm , /system/bin/charge_only_mode, /system/bin/kpoc_charger, /system/bin/chargemon or any other related file -- NOT PRESENT
https://appdictive.dk/blog/android/how-to/2017/04/20/disabeling_offline_charge_on_android/ -- tried this tutorial, but device gets stuck in bootloop.
The link in the last point, provides several options. I found this in my init.rc file -->
Code:
# Healthd can trigger a full boot from charger mode by signaling this
# property when the power button is held.
on property:sys.boot_from_charger_mode=1
class_stop charger
trigger late-init
...
...
on charger
class_start charger
As suggested, I modified the on charger trigger to contain the same code used to boot in normal mode when power button is held -->
Code:
on charger
class_start charger
class_stop charger
trigger late_init
This leads to bootloop i.e. device gets stuck on start screen and doesn't enter into normal boot. Couldn't find out the reason for same.
Tried increasing the log level 8 of init and checked adb shell dmesg, but no sign of where booting crashes.
Can anybody suggest remedy or any other alternative to disable offline booting.
Do u find any solution ????

[Let's share your boot_recovery_ROM_一起来分享你的boot_recovery_ROM]_[中英对照_Chinese-English comparison]

前情提要:我是中国人,我的英文不好,绝大部分翻译使用到<谷歌翻译>
Preliminary summary: I am Chinese, my English is not good, most of the translations use <Google Translate>
非白色字体为中文-财经
白色字体为英文翻译<使用谷歌翻译>
请根据自己的实际需求进行选择语言查看
Non-white font is Chinese-Finance
White font is English translation <Use Google Translate>
Please select the language according to your actual needs
本文,尽可能的保留了中英对照,希望能方便更多朋友,本文不做过多的技术说明,如有补充,还请在在评论区交流。由于上网环境和资源等问题,我很少上xda,如果有问题,还请在评论区交流,或者寻求其他大佬。
如果你有ROM以及boot等,方便的话,还请分享出来,方便更多的朋友。
对于刷机网站而言,如果需要查看部分方法,我自己有个网站,不确定中国以外地区的朋友是否能够访问<http://zb.ucu520.top>
This article keeps the Chinese-English comparison as much as possible, hoping to make it easier for more friends. This article does not provide too many technical explanations. If there are any supplements, please communicate in the comment area. Due to problems with the Internet environment and resources, I rarely go to xda. If you have any questions, please communicate in the comment area or seek other bigwigs.
If you have ROM and boot etc., if it is convenient, please share them for the convenience of more friends.
For the flashing website, if you need to check some methods, I have a website myself, and I am not sure if friends outside of China can visit <http://zb.ucu520.top>
刷入方法[请提前解锁bootloader]
bootloader模式下
[fastboot flash boot_a/b <filename>]
boot_a 和 boot_b,这里指的是当前分区,如果2个分区都刷入也行,务必根据自己情况刷入
[开机下,有root权限,或者twrp等第三方下]
[
adb push <filename> /sdcard/boot_a/b
adb shell
su
dd if=/sdcard/boot_a/b of=/dev/block/bootdevice/by-name/boot_a/b
]
9008下
使用QPST刷入
usf模式,选择<prog_ufs_firehose_sm8150_lge_G8.elf>
使用分区管理选择,选择boot_a/b分区,然后选择load image,再选择boot_a/b文件。刷入之后,点击 close
进入9008方法
按住电源,音量上下不动,只是黑屏瞬间,连续点按音量上,其余不松手,大约2,3秒左右手机黑屏,电脑出现驱动时候松手
退出9008方法
按住电源和音量下不动,出现logo时候松手即可
<prog_ufs_firehose_sm8150_lge_G8.elf>以及<QPST>可以从网络上寻找,下面分享的链接也有
Flashing method [Please unlock the bootloader in advance]
In bootloader mode
[fastboot flash boot_a/b <filename>]
boot_a and boot_b, here refer to the current partition, if both partitions are flashed in, you must flash in according to your own situation
[Under boot, with root authority, or under a third party such as twrp]
[
adb push <filename> /sdcard/boot_a/b
adb shell
su
dd if=/sdcard/boot_a/b of=/dev/block/bootdevice/by-name/boot_a/b
]
9008 under
Use QPST to flash in
usf mode, select <prog_ufs_firehose_sm8150_lge_G8.elf>
Use partition management selection, select boot_a/b partition, then select load image, and then select boot_a/b file. After swiping in, click close
进入9008方法
按住电源,音量不会上下移动,但屏幕会瞬间变黑,然后连续单击音量,其余的不会松开,大约2、3秒钟,电话会变黑,计算机将被驱动。
退出9008方法
按住电源和音量,然后在出现徽标时放开
<prog_ufs_firehose_sm8150_lge_G8.elf>和<QPST>可以在Internet上找到,下面的共享链接也可用。
Enter 9008 method
Press and hold the power, the volume does not move up and down, but the screen is black for an instant, and click on the volume continuously, and the rest will not let go, about 2, 3 seconds, the phone will go blank, and the computer will be driven.
Exit 9008 method
Press and hold the power and volume, and let go when the logo appears
<prog_ufs_firehose_sm8150_lge_G8.elf> and <QPST> can be found on the Internet, and the link shared below is also available
进入twrp方法-使用硬格的方法
短路电源和音量下不动,重启后出现徽标,连续点按电源,音量下按住不动
出现yes和no选择时候松手
音量上下选择是,电源确认
选择2次
注意:如果没有twrp的话,将会清空手机所有数据
Enter the twrp method-use the hard format method
Short-circuit the power supply and the volume does not move, the logo appears after restarting, press the power continuously, and hold the volume down
Let go when you choose yes and no
Volume up and down select yes, power confirmation
Choose 2 times
Note: If there is no twrp, all data on the phone will be cleared
可以使用adb命令进入twrp,不过触摸会失效
经测试,只有通过硬格方法方式进入twrp才能正常触控
You can use the adb command to enter twrp, but the touch will be invalid
After testing, only by entering twrp through the hard format method can the normal touch
OneDriver和GoogleDriver都开放了修改,增加了权限,如果你有相关资源,还请进行补充
Both OneDriver and GoogleDriver are open for modification and increased permissions. If you have related resources, please add
GoodDriver链接
G8 - Google Drive
drive.google.com
GoodDriver link
G8 - Google Drive
drive.google.com
OneDriver链接
https://ucu520-my.sharepoint.com/:f:/g/personal/file_ucu520_onmicrosoft_com/EvrgXTg90TJLlIUAcARbDrYB1sG03ET8CLT0r22Z1w1H-g?e=5CzqGF
OneDriver link
https://ucu520-my.sharepoint.com/:f:/g/personal/file_ucu520_onmicrosoft_com/EvrgXTg90TJLlIUAcARbDrYB1sG03ET8CLT0r22Z1w1H-g?e=5CzqGF
蓝奏云链接
ucu - 蓝奏云网盘
ucu.lanzous.com
Lanzou Cloud Link
ucu - 蓝奏云网盘
ucu.lanzous.com
BY:开心ucu
BY:happy ucu
时间:2021-02-26
time:2021-02-26

Poco f1 shows black screen with "press any key to shutdown" dialogue when trying to connect with data cable in fastboot mode

i am trying to unlock the bootloader of my poco f1.
i have installed the mi flash unlock tool app in my pc.
i have turned on OEM unlocking and USB debugging in my Poco f1.
i rebooted my phone into fastboot mode and connect it to PC using data cable
Suddenly the phone's screen changes to black with the dialogue "press any key to shutdown" on the top left corner.
the phone is not recognisable by the pc and if i press any button on my phone, it shuts down.
please someone have a solution for this?
Working on wich platform? AMD or Intel? If AMD, try this: https://apkadmin.com/7hm0gjdefp9u/US_FIX_XIAOMI.bat.html
Did you fix it?
1. Start an admin PowerShell (or admin CMD if you want). You can right click on the start button and select "PowerShell (Administrator)".
2. Enter the following commands to create 3 registry entries.
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f
3. Restart your phone, let it enter fastboot mode, and then connect to the computer.

Categories

Resources