Trouble escaping fastboot loop on k20 pro (china)? - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

I was trying to flash pixel experience for literal hours this morning and after another literal 10 videos and online articles I've had no success, just after I stopped getting errors the phone got stuck in a fastboot loop, thus wasting another 4-5 hours trying to get back to where I started. This is my last resort. So where I'm at right now is using the miflash tool to install anything I can get, and whenever I flash something the tool tells me it couldn't catch the checkpoint, the internet told me to try deleting the checkpoint, which then causes the tool to flash instantly, which does nothing. Any help? (newbie here if you couldn't tell)
Here's one of my logs, I have a lot of different looking ones
[9:41:00 AM]:lsusb path:"D:\MiFlash20191030\MiFlash20191030\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[9:41:00 AM]:ls ubs :Communications Port (COM1)
[9:41:00 AM]:vboytest HubPath: USB#ROOT_HUB30#5&23f8e3f5&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[9:41:00 AM]:vboytest HubPath:
[9:41:00 AM]:vboytest HubPath: USB#ROOT_HUB30#5&37c45a84&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[9:41:00 AM]:GetScriptDevices
[9:41:00 AM]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[9:41:00 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:00 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:00 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:00 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:01 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:01 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:01 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:01 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:01 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:01 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:01 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:01 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:02 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:02 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:02 AM]:FlashingDevice.flashDeviceList.Remove f8ed0e5c
[9:41:02 AM]:add device f8ed0e5c index -1
[9:41:02 AM]:lsusb path:"D:\MiFlash20191030\MiFlash20191030\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[9:41:02 AM]:ls ubs :Communications Port (COM1)
[9:41:02 AM]:vboytest HubPath: USB#ROOT_HUB30#5&23f8e3f5&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[9:41:02 AM]:vboytest HubPath:
[9:41:02 AM]:vboytest HubPath: USB#ROOT_HUB30#5&37c45a84&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[9:41:02 AM]:GetScriptDevices
[9:41:02 AM]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[9:41:03 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:03 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:03 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:03 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:03 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:03 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:03 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:03 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:03 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:03 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:04 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:04 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:04 AM]:rundll32.exe qcCoInstaller.dll,qcGetDeviceIndex f8ed0e5c:'rundll32.exe' is not recognized as an internal or external command,
operable program or batch file.
[9:41:04 AM]:Input string was not in a correct format.: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt32(String value)
at XiaoMiFlash.code.Utility.UsbDevice.GetDeviceIndex(String devicesSn)
[9:41:04 AM]:FlashingDevice.flashDeviceList.Remove f8ed0e5c
[9:41:04 AM]:add device f8ed0e5c index -1
[9:41:04 AM]:Thread start,thread id 14,thread name f8ed0e5c
[9:41:04 AM]:start process id 1336 name cmd
[9:41:04 AM]:Thread stopped, thread id 14, thread name f8ed0e5c

Related

help - registry settings for sd card

can please someone from WM6 post the values of all key in the
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS
trying to solve the SD mount problem with 3.3 ...
?
please ?
thanx
Yeah of course, no problem.
(Default) (value not set) = string value
CacheDll diskcache.dll = string value
CacheSize 0x1000 (4096) = dword value
Dll fatfsd.dll = string value
EnableCache 0x1 (1) = dword value
Flags 0x44 (68) = dword value
FriendlyName FAT FileSystem = string value
Paging 0x1 (1) = dword value
Util fatutil.dll = string value
Then there's a map called Filters with submaps:
Filters:
(default) (value not set) = string value
In the map Filters is a submap called CacheFilt.
CacheFilt:
(default) (value not set) = string value
Dll CacheFilt.dll = string value
Order 0x2 (2) = dword value
--------------------------------------------------------------------------
That's the complete contents of the FATFS map.
So to summarize. The dir structure is:
HKLM->System->StorageManager->FATFS->Filters->CacheFilt.
Good luck.
thanx...
trying somthn out
Please send me this values from 3.3 ROM not the WM6!!!
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\Flags
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\BufferSize
thanx !

[Q] Where can I find fsck.vfat for I9000?

Hi,
I can't find fsck.vfat in order to repair a corrupt internal SD card.
How come it's not that popular (if it exists at all)?
Thanks,
Yaron.
I found there is a build in one patched by samsung, if it was not added by custom firmware.
# /system/bin/fsck_msdos -ny /dev/block/vold/179:1
/system/bin/fsck_msdos -ny /dev/block/vold/179:1
patched by [email protected] 2011/01/21
** /dev/block/vold/179:1
Boot sector contents:
bytes per sector:.............512
sectors per cluster:..........64
number of reserved sectors:...32
number of FATs:...............2
number of sectors are in FAT:.3440 (1720 KB)
cluster mask (bit):...........32
FAT entries:..................440320
first cluster offset..........6784
cluster size(bytes):..........32768
number of sectors:............28180416
hidden sectors:...............0
number of clusters:...........440213
oem name:.....................android { 0x61 0x6e 0x64 0x72 0x6f 0x69 0x64 0x20}
volume serial number:.........466b-16f7
volume label:.................NO NAME { 0x4f 0x20 0x4e 0x41 0x4d 0x45 0x20 0x20 0x20 0x20 0x46}
file system string id:........FAT32 { 0x41 0x54 0x33 0x32 0x20 0x20 0x20 0xfa}
** Phase 1 - Read and Compare FATs
Attempting to allocate 1720 KB for FAT
Attempting to allocate 1720 KB for FAT
** Phase 2 - Check Cluster Chains
** Phase 3 - Checking Directories
** Phase 4 - Checking for Lost Files
FSNext block (3) is correct, NumClusters (440213)
11950 files, 4180320 free (130635 clusters)

Android Studios, Update on time

Hey, I'm fairly new to using android studios and I am trying to make an app that updates its display every few seconds.
The method I am currently using is to update when a button is pressed using the following:
public void Refreshing(View view) {
// do stuff here...
}
Where Refreshing is the onClick of a button I placed.
How can I use a similar format but instead of doing things on a button press just have it done automatically after a few seconds?
You can use a android.os.Handler for that. It allows you to interact with the event loop and post a Runnable that will be executed after a given delay
In your Activity's onCreate() method:
Code:
final int delayMs = 1000;
final Handler handler = new Handler(this);
final Runnable runnable = new Runnable() {
@Override public void run() {
// Call your refresh method
Refreshing();
// Restart the timer
handler.postDelayed(runnable, delayMs);
};
}
handler.postDelayed(runnable, delayMs);
Thanks, this is exactly what I'm looking for. I add the code to the onCreate but I had an semicolon error. So I added another semicolon but its having trouble with a few other parts. Here is what I have.
Code:
final int delayMs = 1000;
final Handler handler = new Handler([B]this[/B]);
final Runnable runnable = new Runnable() {
@Override public void run() {
// Call your refresh method
Refreshing();
// Restart the timer
handler.postDelayed([B]runnable[/B], delayMs);
};
};
handler.postDelayed(runnable, delayMs);
The error listed is:
Error : (134, 33) error: no suitable constructor found for Handler(MainActivity)
constructor Handler.Handler(Looper,Callback) is not applicable
(actual and formal argument lists differ in length)
constructor Handler.Handler(Looper) is not applicable
(actual argument MainActivity cannot be converted to Looper by method invocation conversion)
constructor Handler.Handler(Callback) is not applicable
(actual argument MainActivity cannot be converted to Callback by method invocation conversion)
constructor Handler.Handler() is not applicable
(actual and formal argument lists differ in length)
The words I bolded are underlined in red in Android Studios.
this ----------------has a constructor error
runnable ----------has a initialization error
I tried troubleshooting for a little bit and took out the this and the only error left is with runnable. It says: Error: (141, 37) error: variable runnable might not have been initialized
Yep, I wrote the code without testing it. It might need some adaptation.
Here is a version that should work:
Code:
final int delayMs = 1000;
final Handler handler = new Handler([B]this[/B]);
final Runnable runnable = new Runnable() {
@Override public void run() {
// Call your refresh method
Refreshing();
// Restart the timer
handler.postDelayed([B]this[/B], delayMs);
};
};
handler.postDelayed([B]runnable[/B], delayMs);
Thank you so much, it worked. I just had to change
Code:
final Handler handler = new Handler(this);
to
Code:
final Handler handler = new Handler();

MySQL -- Problems running table script

Running Raspian jessie. Working on getting a MySQL database setup to create a time clock solution for a school project. I've got users set up and database created but i'm having trouble using the source command to run a .sql script to create 3 tables.
I'm following a tutorial on instructables, and this sql script file was provided. I can't post the link because I'm new to the forum.
I'm trying to use themysql> \. /attendance/mysql.sql and it says error
This is the contents of the mysql.sql
CREATE TABLE IF NOT EXISTS `cards` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`userId` int(10) unsigned NOT NULL,
`tagId` bigint(18) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE IF NOT EXISTS `readings` (
`id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
`tagId` bigint(18) unsigned NOT NULL,
`time` bigint(14) unsigned NOT NULL,
`action` int(2) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_czech_ci NOT NULL,
`surname` varchar(255) COLLATE utf8_czech_ci NOT NULL,
`active` enum('0','1') COLLATE utf8_czech_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
Any input is much appreciated.

How to read files in Xposed Module class?

Hello, i have XML file by path "/sdcard/testFolder/test.xml", i wanna read this file from my xposed module, code:
Code:
try {
File file = new File("/sdcard/testFolder/test.xml");
BaseService baseService = SELinuxHelper.getAppDataFileService();
InputStream inputStream = baseService.getFileInputStream(file.getAbsolutePath());
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = factory.newDocumentBuilder();
Document document = documentBuilder.parse(inputStream);
Element element = document.getDocumentElement();
NodeList nodeList = element.getChildNodes();
} catch (Exception e) {
XposedBridge.log(e.getMessage());
}
// and next parsing....
My app have permission to read/write external storage...
In the log next messages: /sdcard/testFolder/test.xml (Permission Denied)

Categories

Resources