Seva's notes

Wisdom, Awareness, Responsibility :)

Archive for the ‘hardware’ Category

Xiomi POCO F1 Locked with Numeric Keyboard (solved)

leave a comment »

I’ve got my Xiaomi Pocophone F1 Global version in September 2018. The main pros were the price, the feature set, the responsiveness of the development team, the speed of releasing the software updates, and especially the sweet security compliance with my employer’s policies.

Speaking of which, one of the security requirements was that the device must be locked with a complex password. Pattern or PIN was not enough. Nevertheless, I needed to type the password only after reboots, which were very rare, thanks to phone and OS stability.

Yesterday I was excited to find that a new version of MIUI 10.1.3.0 based on Android Pie (9.0) has been launched globally and landed on my phone. I upgraded the phone with no hesitations, as always…

The unpleasant surprise hit me when the installation was complete. My employer’s security team has not yet certified Android Pie, so the phone kept rebooting after logging in. My obvious reaction was to wipe out the data and remove the employer’s software until it’s certified. Ouch, that was a mistake.

After wiping out the data, the device was left locked to the existing Google account. And the Google account was locked with the phone protection password. Wiping the data did not annihilate that relation. So when proceeded with the fresh MIUI setup of the phone, it asked to confirm the phone protection password. I had the password memorized password perfectly, but there was a roadblock: the text field to type the password was numeric. Meaning, it allowed only to tap numbers. And here my saga began.

My 1st approach was to find an open a text field, type my password there and then paste it to the protection password field. I found my way via the WiFi setup wizard, where I hit “show password” button and could type and copy the unlock password. However that didn’t help, since the numeric field was not only disallowing typing non-numeric characters but also filtering them out on pasting.

The 2nd approach was to follow the conventional phone unlock process with MiFlash Unlock utility. However, that required linking the device to http://i.mi.com account retroactively in Developer Options, which I could not complete since device Settings were not accessible. For the same reason, full firmware reinstall would not work – it required changing “OEM Unlocking” flag in Developer Options.

The 3rd approach was the less straightforward “FRP bypass” method. In few words, the method is to exploit a variety of sideways in the setup process to access external sites and install specific APKs that help triggering system APIs to run system calls directly. I managed to reach Youtube, Google and even download a few different apps with that method, but none of them really helped.

Finally, after a few more random frictions, I found my way through. In very brief, I reached out from WiFi setup to Phone Calling app to Contacts to GMail to Exchange account setup to Certificate storage, that allowed me to change the device password-locking properties without entering the password. Posted my step-by-step guide here: https://en.miui.com/forum.php?mod=redirect&goto=findpost&ptid=4719331&pid=33303093

After resetting the password protection to Pattern, I went back and successfully finalized the MIUI setup process.

Written by Seva

2018-12-16 (December 16) at 12:14:30

Posted in hardware, mobile, past, software

Heart-Touching Quotation

leave a comment »

…When I was going to school we were always taught, “In the olden days of computing, computers were expensive and programmers were cheap. Now it’s the reverse. Therefore…” We are back to the future. At internet scale, programmers are (sometimes) cheap compared to the cost of electricity.

Kent Beck

Written by Seva

2010-04-15 (April 15) at 12:06:29

FreeBSD MySQL MyISAM multi-CPU concurrency performance

leave a comment »

Recently we had a performance issue with multiple plain concurrent requests on a MyISAM table – the process list reported that all selects get stuck for very long time while Sending Data. After many tests we discovered that:

  1. The problem only occurs when running on multiple CPUs;
  2. The problem only occurs when running on FreeBSD OS.

After searching over the Internet we found, that this class of problems is being reported since antique versions of FreeBSD and, despite the claims it’s fixed with each version, it persists even in fresh 8.0.

So the decision was to install Linux on all the DB servers.

There is an alternative option though – it’s possible on FreeBSD to install MySQL of any version with WITH_LINUXTHREADS=yes parameter and it will be benefited from the Linux thread model.

Written by Seva

2010-02-02 (February 2) at 06:03:24

Posted in db, FreeBSD, hardware, integration, linux, software

Tagged with

Working with Eclipse on Two Displays – Picture

leave a comment »

As I mentioned previously, recently I started to work on two monitors. Here comes the picture (sorry for the bad quality):

Written by Seva

2008-04-01 (April 1) at 07:01:43

Working with Eclipse on two displays

with one comment

Several days ago I was given an additional monitor, and the question of “how to arrange Eclipse view on two displays” was raised. After several tests I made the conclusion that the best way is to stay with my default preferred arrangement, with single difference – to detach and move all the non-editor views to the secondary screen. It frees up editor area and at the same time does not require re-adopting new layout.

The bad news is Eclipse rejects to start up when UltraMon is running.

Written by Seva

2008-03-22 (March 22) at 01:34:43

Mine Comps

leave a comment »

Initially I wanted to share with you, my dear blog, a very specific problem I had with running an application (I will certainly do it in the next post), but next I found interesting to talk about all my workstations I had at Zend since day 0 until now

Well, let’s start from the beginning. My first week or two at Zend I worked on a temporary machine with about (I don’t remember exactly) 400MHz Pentium II and 1/2Gb RAM. It was more than enough to run HTML-Kit with PHP functions plug-in and Outlook Express. I don’t remember neither her face nor her interior.

Afterwards I inherited my first ThinkPad laptop from my predecessor. It was a good old T21 with 700MHz Pentium III and 1/4Gb RAM and Windows 2000. She served me several years, survived a fall and display repair, outlasted hard disk crash, and experienced memory upgrade to 3/4Gb. My needs grown – I started to run Java based Zend Studio 2.5 and AMP. However, each time I asked our CTO/R&D/IT all-in-one person about CPU upgrade (=new machine), he reminded me that 700Mhz Pentium III is a very powerful processor. It didn’t help though.

Finally somehow one of my frequently shuffling bosses did succeed to swap for an used R51 one with 1.3Ghz Celeron M, 1Gb RAM and 15″ 1K*3/4K display and Windows XP. The only reasonable advantage of this fright was it’s somewhat faster CPU, while its overweight, size, design and accommodation was a certain downgrade. Anyway, she was with me another 2 years until I met my new and current laptop.

Those days, my boss was the company’s IT manager (I didn’t understand fully correlation between office’s infrastructure and e-Business development and just accepted that castling as a fact), which illicitly purveyed for me the T41 with 1.5Ghz Centrino and 2Gb DDR RAM, which I’m using right now to write this post.

After another year I moved from the e-Business team to Development Tools group and got stationary machine again. Now she runs Windows XP over Intel Dual Core and 2Gb RAM, however about 3 months there was also a OpenSUSE Linux 10.2 on additional hard disk, since I needed to work on Linux related issues under Eclipse IDE.

And after all I gathered another machine with Intel’s 64bit processor, which runs Kubuntu 7.04 alone. With that, I removed my SUSE installation and got a switch to share my display and peripherials between two of my mates.

End.

Written by Seva

2007-07-18 (July 18) at 10:02:00

Posted in hardware, past, software