Power ON when charger connected Xiaomi - Xiaomi Mi Pad 4 Questions & Answers

Hi I'm new
Holy balls I've never seen such a big forum. Excuse me because I don't know what I'm doing. I've read into this and read the forum rules.. but still can't seem to solve it myself.
The particular device is a rooted Xiaomi MiPad 4 running MIUI Global 9.6.7.0
I have tried finding the lpm or playlpm file in the system/bin folder, but I guess it's not a thing on this device.
I have tried the fastboot oem-off-mode charge 0 commands but that results in /system/bin/sh: fastboot: not found.
I can't seem to find other ways to achieve this stupid simple task!
I think I'm trying to get a reboot command to run when the charge screen is activated.. However I'm lost.. pls help :")
A few of the sources I've found:
https://forum.xda-developers.com/mi-pad-4/help/mi-pad-4-charger-connected-t3876251
https://www.youtube.com/watch?v=QBKD068VIjE
https://www.youtube.com/watch?v=Zp9G6A6EFlA

Bump
Anyone?

did you fix problem ?

Same problem with my MI MIX 2S. I can't find lpm or playlpm file in system/bin, fastboot oem-off-mode charge 0/disable not working as expected.
Anyone achived this on any Xiaomi device?

Related

[Q] UID is 0123456789ABCDEF ?

I've got an Iconia tablet with a broken recovery (I've been using CWM and Thor's ICS ROM). I'm going to follow the steps outlined here
http://forum.xda-developers.com/showthread.php?t=1129873
but.... when I look up the UID from every method, all I get is 0123456789ABCDEF.
Given all the dire warnings about not being able to recover if/when things go wrong without the real UID... this 123 UID isn't the real UID.... is it safe to proceed with the repair here? Or are things really messed up?
I have not messed with ICS myself, but my understanding from reading the ICS threads in the Iconia forums is that the device is no longer using the uid for usb serial number. So it seems you can't get it that way if you have installed any of the ICS updates.
The suggestion I have seen is to look for androidboot.serialno in dmesg directly after booting, but that does not seem to help everyone.
Another option might be to get the device into APX mode and do a usb bulk read, the first read should return 8 bytes that is the UID. I would assume this to still work even after you have installed ICS but I have not tried. I pasted some code for opening the device, reading and printing the uid (using libusb, tested on Linux) on the Iconia forum earlier this week.
Hmm OK that's helpful info. Thanks.
I tried the androidboot.serialno in dmesg, but I wasn't able to find the string.... I will try that again after a clean boot.
I've been doing all the debugging from my one Windows machine... I haven't tried plugging it into my Linux PC yet... that's next... I haven't discovered APX mode yet. Time to do some more reading, thanks for the pointers.
Edit 1: OK checked lsusb -v and I serial also shows 0123456789ABCDEF
Edit 2: Clean boot and did a new dmesg dump.. parsed the output and no sign of androidboot.serialno or anything that even resembles it.
OK, things are not getting better here. I've been tinkering a lot, and in some respect I've just made things worse.
I still cannot find the UID with any of the documented methods here on XDA. I've tried
using adb devices
using Linux lsusb -v
checking the output of dmesg for androidboot.serialno
plugging in to Windows and looking at the USB mount info using USBDeview
looking at the device manager in Windows and checking the "Parent" field
I have also booted into APX mode and to discover the UID that way too... and nothing.
All I get is 0123456789ABCDEF
At this point the frustration level was getting high enough for me to be a bit reckless... I copied "itsmagic" into /data made it executable and ran it. No errors.
I rebooted into Recovery mode, and there I get scrambled graphics on the screen (it's the Acer logo duplicated several times with loads of tearing and distortion) and the tablet vibrates constantly.. non stop until I reboot it.
I can boot normally into the current ROM (Thor2002ro v96) so I haven't busted it completely. If I try to use my existing CWM manager to install any other ROM or use the manager to reboot into recovery mode, it goes back to the scrambled screen and vibrating constantly.
Does anyone have any ideas or suggestions here? I'd be happy to even roll back to stock and start fresh. There is nothing on the tablet that needs to be saved... except the functionality of the tablet itself.
When you write nothing about APX mode, does that mean literary nothing or nothing different?
If you have root you can see if you have anything interesting in /proc/cmdline.
If not I'm out of ideas on how the get the UID for now.
While i very much doubt 0x0123456789ABCDEF is the UID used to generate the SBK of the device you could try reading and decrypting the beginning of mmcblk0 using the SBK that would give (0xA9EA7E00 0xF12BEB06 0x3AD20804 0x364A5F03) to verify this.
You could probably overwrite the restore partition from your running system, I have never done that myself though.
OK, it's SOLVED.
After much swearing and crying and a little help from the forum here and in other posts the solution to fixing the broken tablet was actually quite easy.
Based on the information here:
http://forum.xda-developers.com/showthread.php?t=1459821
- I downloaded recovery-ra-iconia-3.16-gnm.img using teh links provided on the thread above
- I ran itsmagic
- Then I did these steps:
Code:
adb push recovery-ra-iconia-3.16-gnm.img /mnt/sdcard
adb shell
su
dd if=/mnt/sdcard/recovery-ra-iconia-3.16-gnm.img of=/dev/block/mmcblk0p1
sync
reboot recovery
This booted a working recovery mode (FINALLY), and I was able to successfully flash the latest Thor2002ro ICS ROM.
Thanks for your help and suggestions eppeP, they got me thinking in the right direction.
Hello guys I am trying to bypass screen lock via adb but when I write adb devices it shows "0123456789ABCDEF Device" and then when I type adb shell then it shows"$" after that whatever I type it shows permission denied(even if I write adb).Please Help
please clear up Google
account lock

[Q] Boot on charge on rockchip devices

Hey guys!
This is my first post so, first of all sorry for my english errors and newbie questions.
I'm trying to find a way to set the device to boot up when plugged into the charger until see the charging animation. I know that have a lot of posts that talk about this but no one can give me a solution for Rockchip based devices.
I've bought an Alcatel One touch Evo 7 a few days ago, and other tablets based on the rockchip and all of them have the same problem.
I've bought an Allwinner A13 based tablet too and by downloading the script.bin, converting to fex and change the [target] power_start = 1 everything went simply perfect!
But i can't find how can i get or if i can get the script.bin from rockchip based device because doesn't exist the /dev/block/nanda, instead of this my boot mountpoint is /dev/block/mtdblock2. I've tried to mount the mtdblock2 as i've done with the nanda on allwinner but without success.
Another idea was add the "/system/bin/reboot" on the init.rc on charger area but i've downloaded the boot.img, unpacked, changed the init.rc and repacked, flashed via Batch Tools successfully but without any change. Simple like i never did any changes on the boot.img, don't change anything.
I've tried to put into fastboot mode and then will send the command "fastboot oem off-mode-charge 0", but i can't get into this mode. The tablet reboot's into bootloader mode but when i type fastboot devices on linux, mac and windows (even installing all the drivers) simply doesn't return anything.
Please if anyone can give me any idea or clue i'm very grateful.
Thanks!
Please check if the tablet say all time, that he was charging, also by not conected charger

[Q] Asus Zenfone 5 bricked!

Hello guys,
My phone is bricked since i mess around with the build.prop. I found a tutorial to unbrick it, but i can't do it since i haven't toggle the usb debugging in the developers settings. now I'm stuck at the animation. However every thing is working until it says error: device offline. Can anyone help me to make my device online via adb! PLEASE! HELP!!!!
tutorial i use:http://asuszenfone-blog.blogspot.com/2014/07/asus-zenfone-flash-tutorial-via-adb.html
P.S: I'm not an expert at these, but at least i can understand them...
[UPDATE]
i have made it online(sideload), but i can't find a way to flash the ROM... I don't know where to put the folder that contains the ROM...
Pegasus195 said:
Hello guys,
My phone is bricked since i mess around with the build.prop. I found a tutorial to unbrick it, but i can't do it since i haven't toggle the usb debugging in the developers settings. now I'm stuck at the animation. However every thing is working until it says error: device offline. Can anyone help me to make my device online via adb! PLEASE! HELP!!!!
tutorial i use:http://asuszenfone-blog.blogspot.com/2014/07/asus-zenfone-flash-tutorial-via-adb.html
Click to expand...
Click to collapse
Here is a good guide for ADB: http://forum.xda-developers.com/showthread.php?t=2141817
You will want to use push and push your fixed build.prop to /system
You will probably need to reset the permissions using ADB shell and chmod. You want rw-r-r, and I think the code is for that is 644.
luckily i already change to the original build.prop before restarting my phone..., so i don't know why it's still broken...
I am not trying to push the build.prop, i just want to flash the original ROM to my phone to make it like new again...

HUAWEI MediaPad t2 10.0 Pro - fastboot oem off-mode-charge 0 doesn't work

Hi guys,
I am not sure wether this is the forum for posting that, but I couldn't find anything related to my tablet.
I am trying to make my HUAWEI MediaPad t2 10.0 Pro reboot when it is off and I plug in the cable, basically during the battery animation.
The problem is:
The command fastboot oem off-mode-charge 0 is not recognized at all. I saw some implementations for SAMSUNG devices that could only insert the "reboot" line in a file and it works fine, but I don't know which file does the same job on my tablet.
Does anyone have a similar problem and could help me with that?
Thank you all in advance!!
Hi, im trying to find a Solution for the same Problem with my MediaPad T1 8.0 Pro.
I´ve read a Post where they simply replace the Ipod file in /system/bin, but my Rom is missing this file.
So i need help on this too.
Thx

ADB Powershell help for installing TWRP

I'd like to start off by apologizing for having to waste somebody's time for something I can't find the answer to. I should preface this post by saying that I know nothing about ADB, but in the last couple of days I've done plenty of reading and to be quite honest the more research sometimes adds to the confusion with contrary and outdated information.
I'm basically trying to get TWRP onto my Mi Pad 4 LTE using ADB on my Windows 10 PC coming from the MIUI EU ROM Bootloader unlocked from the supplier. USB debugging enabled drivers installed etc
I had a lot of trouble until I came across this thread http://www.testedtechnology.co.uk/debloating-the-huawei-p30-pro/ because of an error I was getting in the Powershell window.
https://forum.xda-developers.com/attachment.php?attachmentid=4781060&stc=1&d=1561218064
So basically in short, thanks to the above thread I was able to get into fastboot mode having recognized the device using the precursor .\ as shown above, but one of my problems is I'm not sure if I should be use the .\ with all commands? My problem from here now that my device was in fastboot mode I didn't know how to direct it to the file. I just have no idea what commands to you use to find a particular directory to get to recovery-TWRP-3.3.0-0429-XIAOMI_PAD4(PLUS)-CN-wzsx150.
I'm really concerned about putting the device into bootloop as some of the problems I've seen seem almost insurmountable!
Anyway sorry again and TIA for anybody taking the time to help.
All sorted now thanks for all the help.

Categories

Resources