yashsingh1/xdaforums huggingface dataset:
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] overcustom:
Bought from honorbuy with global rom 10.3.0.2.

Fully stable, battery is awesome.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Ethan561:
I bought it on Rakuten (seller 1mall). It came with 9.5.31 - Top secrète from China. I've flashed it with 10.3.3 (India) since 4 days and the only bugs i've noticed so far are no NFC and a problem with my bank application to approve a payment with my fingerprint. Everything else seems to be fine.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] maujogue:
Okay, looks good, how many days were required to get the bootloader unlocked ? And what price did you buy it on rakuten (Chinese version cost around 280€ on AliExpress)
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Ethan561:
It came already unlocked. I bought it in June 530 €, but my version is 8 Go/256 Go.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] kibria.mgk:
Indian rom doesn't support NFC functionality for now.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] 2VJ5:
It never will, because Indian variant does not come with a NFC chip
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Ethan561:
I agree, but my variant is chinese and it has NFC chip and was working when i received it. I've flashed to 10.3.3 (India), so i wait now for a new update.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Robbo.5000:
The Indian ROMs will always disable the NFC chip because the Indian models don't have the hardware. You can wait all you like for an update, but it won't give you a working NFC chip. If you want the NFC to work you will need to change from the Indian ROM.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] thiagodark:
Sorry for dig this thread, but this is new for me (and a little bit enlighted).

I was wondering If is it possible to lock and unlock bootloader to get it associated to my mi count... Did anybody do that? If yes, how is the proper way to do it?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Rinneh:
Hi Everyone,

About 3 weeks ago I received a Redmi K20 Pro from Aliexpress with a Global rom. Not knowing what the downsides etc where I came to the surprise that I cannot install netflix etc through official sources. I found out that this is because it has an unlocked bootloader. Also internally the phone is names Xiaomi MI9T Pro. So it seems that the seller has installed the Xiaomi MI9T pro firmware? I had an OTA firmware update yesterday and it installed succesfully.

The MIUI version installed is 10.3.3.0 PFKEUXM Global. Is this an official rom without "weird" edits? Is it possible to lock the bootloader again? Because not being able to install applications that need to pass the Safetynet API test is not really what I want in my phone. But my knowledge on Android roms etc is to be honest quite limited. As far as I know the phone itself is the Chinese version and that is basically all I know.

Hopefully someone knows hot to get the bootloader locked again without bricking it.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Robbo.5000:
You have a Chinese K20 Pro with the official Mi 9T Pro European ROM.

It is not possible to lock the bootloader with the European ROM.

You can only lock the bootloader when flashing the ROM that is for the same region as the phone. So in your case you will only be able to lock the bootloader when flashing the official Chinese ROM.

The Chinese ROM has English language and it's possible to install Google Play store. Though apparently it doesn't play too well with all of the Google infrastructure.

It is possible to pass SafetyNet and have financial apps working with an unlocked bootloader. In the themes/apps/mods section there's a modified Netflix apk that gives FHD.

If you want to stick with official MIUI, then the options are to install the Chinese ROM and lock the bootloader and see if it's possible to live with the Chinese MIUI permanently, or stick with the European ROM and research/ask how to get everything you want working on it.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Rinneh:
Thank you very much for your insights. The rom itself seems fine for me. My banking app works. But mostly I am worried that I will lose Netflix functionality over time if they change something in the future.

You mention passing SafetyNet with an unlocked bootloader. Are you pointing towards Magisk? Or is there a less invasive way of fixing the Safetynet problem? If I can pass the Safetynet Api with my current rom, that would be all fine by me for the time being.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Hursty uk:
If you want Netflix just download Netflix APK version 6.26.1 it work fantastic ?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Robbo.5000:
Yes I was pointing towards Magisk.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] carlshark:
Does the information on the OP change with the release of the Mi 9T Pro?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Kzak25:
Hi Everyone,

today I received my Mi 9t Pro Global ROM

internally the phone specs are

Model Number: Mi 9t Pro

MIUI Ver : MIUI GLOBAL 10.3.1.0 Stable (PFKEUXM)

Model Name: M1903F11G

please Sir can you tell me if i have a Chinese K20 Pro with the official Mi 9T Pro European ROM ?

and when i chek for updates i got the messages "no updates available", i dont know if i am in the laste version!!! or my device cant do more updates
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] j5654:
I couldn't find an topic about k20 pro and mi 9t pro. There are no diffrence in hardware? Only one is for china and 9t pro is global version?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] thiagodark:
Internally information means nothing, as this is result of what rom says...

Where did you buy this phone? Is bootloader unlocked?

---------- Post added at 05:06 AM ---------- Previous post was at 05:04 AM ----------

Short answer: yes... Software differences...
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Zenderable:
Redmi K20 Pro has a Redmi logo on the back, the Mi 9T Pro has the Mi logo on the back. If Global soft is installed and Mi 9T Pro appears in the settings, and Redmi is on the back cover, then something is wrong... Remember, in this case you should never lock the bootloader.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Kzak25:
its from a local store in my country i bought it yesterday 15/09/2019

the bootloader is locked

runing the MIUI 10.3.1.0 PFKEUXM Global EEA

and when i see this topic in the forum ... i was scary if my device is conserned

so yesterday i switched ON "Receive udaptes early" in the updater settings and today i got an update notifications ( MIUI V10.3.3.0 PFKEUXM Stable )

i dont know if its safe to install it or it can soft brick my device

can you give kind of tools that can help me to check if my device is the official MI 9t Pro or the china one with a global rom

thanks for the help
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] thiagodark:
As you have a locked bootloader, I'm pretty sure you're safe... You can go ahead...
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Amit Kumar21:
NFC hardware not found in k 20 pro
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] thiagodark:
What?
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Amit Kumar21:
Right I just returned one yesterday in India here they have removed that feature I checker that well it was not there ....
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] alnord.ajmd:
hello! Are you talking about Mi 9t pro (global Version) as well? So It is really suggested that we unlock the bootloader as early as now? Bought mine from Philippines.
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] thiagodark:
India K20 Pro does not have nfc, Chinese k20 pro does...
[Redmi K20 Pro / Xiaomi Mi 9T Pro Guides, News, & D] Robbo.5000:
We can safely ignore the OP. It wasn't a very useful post even at the time they posted it.
[ASUS ZenFone 6 (2019) Questions & Answers] filiii:
Is possibile to move app on the sd card?
[ZTE Axon 7 Questions & Answers] foggydew88:
Hi folks,

since stock Oreo ROM for A2017G was born, each time that Hotspot is switched on, a warning message about Wifi appears, and Hotspot can't be switched on, up to this message has been picked.

This annoying message avoid to automatically activate the hotspot with external apps or NFC tags.

Is there anyway to kill this useless advise?

Thanks!
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
THE FOLLOWING GUIDE IS FOR OREO IMAGES.

TO UNPACK AMLOGIC 9.0 PIE IMAGES, WATCH THIS TUTORIAL VIDEO: https://youtu.be/exDD6YOC4HU

Hey Everyone! Many people requested me on forumXperience to make a repacking/unpacking guide for Amlogic Oreo/Pie Images. So yesterday, when I had time I started to create my own windows tool for you guys to unpack and repack Amlogic Oreo/Pie Images.

You can now easily extract files in a few clicks and edit them to flash on your devices!

Very simple to use and it works great and is also faster than stock Amlogic Customization Tool which unfortunately doesn't support Oreo images.

There may be a few bugs that I am unaware of, so please let me know if you run into any problem. Later, I may add recovery and kernel unpacking option in the tools.

Thanks to Ricky for his Customisation Tools, I used his binaries for this project :)

The tool is pretty much open for everyone to edit and modify, it has batch scripts so you can easily edit with Notepad and learn the process of Amlogic Unpacking/Repacking manually [emoji23]

Here you can download the tool:

[Amlogic Unpacker by Nayam.zip]

3.26 MB​
[Android Stick & Console AMLogic based Computers] techygaga:
it works fine. thanks.....

i was going to buy the other tool but this did the work without any money
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Good to hear. This has been flying under the radar and people really didn't care about this tool. Glad to see atleast there's someone using this.

Yes it does unpack/repack oreo images but it doesn't (yet) unpack recovery and kernel which I thought were not really important for the time being. Unpacking vendor and system will do all the work if you want to mod ROMs. Kernel and Recovery modifications are really not required and can be avoided by using alternative ways.
[Android Stick & Console AMLogic based Computers] Tonian1878:
Cool. Thank you
[Android Stick & Console AMLogic based Computers] sky1b:
thanks
[Android Stick & Console AMLogic based Computers] jamaroney:
link doesn't work
[Android Stick & Console AMLogic based Computers] xmannv:
do you have support uppack/repack Android 9??
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Yes ofcourse
[Android Stick & Console AMLogic based Computers] xmannv:
But Image Pack Failed (Android 9 Pie)
[Android Stick & Console AMLogic based Computers] Tonian1878:
Level 1 repack doesnt work with A95X Max.

Copy Level 1 folder into Ricky Customisation tool "tmp" folder and repack with that.
[Android Stick & Console AMLogic based Computers] mojojojo67:
like your tool.. :)
[Android Stick & Console AMLogic based Computers] 5im:
Hey, i have the same problem with a gt king pie .img..

I unpack LVL 1 & LVL 2 with nayams tool (works great :good: ). make changes (example: delete one app, paste another) ... and then?

Unfortunately I can not just unpack lvl2 with nayams tool. To unpack lvl2 I have to unpack lvl1 ..

and with rickys tool I can only pack lvl1 when i try to repack lvl2 it dosent work .. can you please explain to me briefly how I have to do it? :confused:

Thanks

Sim
[Android Stick & Console AMLogic based Computers] Tonian1878:
get rickys customisation tool, in the folder of ricky customisation tool, create a folder called "tmp".

Now unpack your firmware with nayams tool (both level 1 and 2) and copy the level 1 and 2 folders from the "unpacked" folder and paste them into you newly created "tmp" folder.

start rickys customisation tool, edit and repack your rom from there.

hope that make sense
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
I'm sorry for not explaining everything correctly.

Level 2 is unpacked after unpacking level 1.

You cannot unpack level 2 without unpacking level 1 first.

Similarly, the repack script I wrote first repacks level 2 and then repacks level 1. If you want these separated, I can provide that too.

So you need to run the scripts in order.

Run script number 1, then 2. Then make changes in level 2 folder and then run repacking script.
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Thanks for confirming, I'll fix the repacking script If it's causing problems.
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
If Pie images aren't working, please wait for a fix. I'll try some pie images out and will update the commands
[Android Stick & Console AMLogic based Computers] Tonian1878:
Thanks.

it does repack the firmware but after flashing the a95x max, it just hangs on the boot logo and doesnt get to the boot animation.

as said before, if i take the unpacked level 1 contents from your tool and repack with rickys tool, A95X max flashes and boots perfectly.

level 2 to level 1 repack doesnt seem to be an issue, purely level 1 to img repack.
[Android Stick & Console AMLogic based Computers] 5im:
[MENTION=5543202]Tonian1878[/MENTION]: Thx for the explanation!

That would be great! If you need a Pie image for testing: bee-link.com/forum.php/forum.php?mod=viewthread&tid=50649&extra=page%3D1
[Android Stick & Console AMLogic based Computers] Angelskeeper69:
Download link is down.. pls re-up.
[Android Stick & Console AMLogic based Computers] 5im:
I tried it that way. Unfortunately, there is always an error message "Failed to repack system, default will be used"..

The image will be packed correctly, but my changes will be overwritten again. :(

Do you use AMLogicTools_V6.0.0?
[Android Stick & Console AMLogic based Computers] Tonian1878:
Yes i use 6.0.0 (only for repacking, its useless for unpacking)

try repacking with NAYAMS tool first, ignore the .img it creates and copy just the level 1 contents over to rickys tool "tmp" folder and then repack with Rickys tool.
[Android Stick & Console AMLogic based Computers] 5im:
This does not work for me unfortunately. I think it's because of the "file_contexts" file. This is not created correctly with NAYAMS tool (written without content). If I unpack the image with Ricky's tool a "file_contexts" with content is created (but Rickey's tool can not unpack everything so it is incomplete) if I swap this file with the one from the folder lvl2 (NAYAMS tool), the image will be packed without error (however, the incomplete "file_contexts" of Rickey's tool creates a bootloop). :eek:

So i think if [MENTION=5632627]N'ayam Amarsh'e[/MENTION] can fix that it would work.
[Android Stick & Console AMLogic based Computers] Tonian1878:
NAYAMS tool only updates the "SYSTEM.partition" and "Vendor.Partition".

you could just copy the repacked "SYSTEM.partition" and "Vendor.Partition" from Nayams level 1 folder. unpack your stock image in Rickys tool (level 1) and then replace the older "SYSTEM.partition" and "Vendor.Partition" with your newer updated ones and then repack.
[Android Stick & Console AMLogic based Computers] 5im:
The problem is when I unpack the image with nayams tool and I come to the point where the "file_contexts" file to be created the following error appear: "The system can not find the specified path"

[IMG="screenshot"]https://dl.xda-developers.com/4/8/0/5/9/1/9/2019-08-14_14_56_30-C__Windows_system32_cmd.jpg?key=2WAeWtPw6YA9cZQbYAdG_A&ts=1565787812[/IMG]

this error appears because the path in the script:

echo +++++++++++++++++++++++++
echo Generate File Contexts
echo +++++++++++++++++++++++++
type unpacked\level2\system\etc\selinux\plat_file_contexts unpacked\level2\vendor\etc\selinux\nonplat_file_contexts > unpacked\level2\file_contexts

Is wrong. The right path is: \system\system\etc\selinux\plat_file_contexts and in \vendor\etc\selinux\ is no file with the name "nonplat_file_contexts" ...

So if i try to repack the system/vendor.PARTITION it dosent work so i have nothing that i can replace.

[IMG="screenshot"]https://dl.xda-developers.com/4/8/0/5/9/2/1/2019-08-14_15_11_45-C__Windows_system32_cmd.jpg?key=P_a2e1NRV68K__kc3Ts51g&ts=1565788405[/IMG]

When i change the path in the script to:

\system\system\etc\selinux\plat_file_contexts

and

\vendor\etc\selinux\vendor_file_contexts (in \vendor\etc\selinux\ is a file with the name vendor_file_contexts i dont know if this is the right one)

I can repack the image with no errors.. but my device stuck in a bootloop after flashing the image...
[Android Stick & Console AMLogic based Computers] Tonian1878:
Ill retry again tonight and write a more detailed process down.

What device is this for? i've only used this method for the A95X Max (8.1).

have noticed 1 annoying flaw as well. the is a 700mb OTA update for A95X Max which basically resets most the system changes i made to the original stock firmware.

Obviously i could ignore the update but am guessing its fixing something.

gonna try and merge the OTA update.zip with the original stock firmware
[Android Stick & Console AMLogic based Computers] 5im:
it's for a beelink GT-King (9.0)...
[Android Stick & Console AMLogic based Computers] I1V1A1N:
Good deal.
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Good find!

I used the basic file_context method.

Those 2 files are generally found in all nougat and oreo firmwares but those which don't have it, have to use a different file with a different name.

I'll let you know all the places where you can find the file_context contents.
[Android Stick & Console AMLogic based Computers] I1V1A1N:
I did it for Amlogic s905x for android 9.0

https://mega.nz/#!2gU31CbA!puEI48WQmuJxL4RLsoMtrCJ7czPMqYB2ootZTGZgzuQ
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Did you port Lineage to S905X?
[Android Stick & Console AMLogic based Computers] I1V1A1N:
Yes.It starts up for me.I will also try to install AOSP Phhusson and Descedant 4.0.1.It's on arm64 aonly.More difficult to do on android 9 atv.There arm.And they write recently google changed the firmware.
[Android Stick & Console AMLogic based Computers] bunpbu:
Can I Replace the recovery.PARTITION file by my recovery.img file?

---------- Post added at 03:22 AM ---------- Previous post was at 02:43 AM ----------

I cant Repack.

I Unpack Successful, but when repack, failed at system.PARTITION

my file is here: Google Driver
[Android Stick & Console AMLogic based Computers] N'ayam Amarsh'e:
Seems like system.Partition couldn't be read.

Look in the folders if system.partition is there.

Or try manually entering the commands one by one in CMD, it will help better.

I'll also be updating the tools for Android 9 soon.
[Android Stick & Console AMLogic based Computers] yumaxx:
I encountered such a problem, after repackaging the image, without making changes, the boot stops at such lines:

amlkey_init() 71: already init!

[EFUSE_MSG]keynum is 4

[BL31]: tee size: 0

[KM]Error:f[key_manage_query_size]L507:key[usid] not programed yet

[KM]Error:f[key_manage_query_size]L507:key[deviceid] not programed yet

InUsbBurn

noSof

gpio: pin GPIOAO_2 (gpio 102) value is 1

kvim#

image only unpack and repack without changes

atvX_p212_Oreo.7z
[Android Stick & Console AMLogic based Computers] mohy1376:
in the second level unpacking, I got this :

+++++++++++++++++++++++++
Generate File Contexts
+++++++++++++++++++++++++
The system cannot find the path specified.

I tried for repacking and got this error :

+++++++++++++++++++++++++
Repack System
+++++++++++++++++++++++++
Deleted file - F:\Source\Amlogic Unpacker by Nayam 9\unpacked\level1\system.PARTITION
Creating filesystem with parameters:
Size: 2147483648
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 8192
Label: system
Blocks: 524288
Block groups: 16
Reserved block group size: 127
error: build_directory_structure: cannot lookup security context for /system/acct

subsequently,

[Msg]Pack Item[PARTITION , system] from (unpacked\level1\system.PARTITION),[ERR]f(AmlImagePack.cpp)L1332:failed to open source file : unpacked\level1\system.PARTITION
Image pack FAILED

I'm using magicsee n5 max firmware (android 9 :N5MAX_MT138B_4GB_upgrade_package_20190702)

------------

update :

In my case, I found plat_file_contexts in \system\system\etc\selinux instead of \system\etc\selinux. but I didn't find nonplat_file_contexts.

-----------

Update:

there is a vendor_file_contexts in \vendor\etc\selinux and by that, repack.bat works correctly. but when I use this new image, magicsee gets stuck at the boot logo!

please help me.
[Android Stick & Console AMLogic based Computers] ath156:
I have 2 Android 9 custom roms for Android Box H96 plus X2. The one I have installed has everything functioning OK except that the original remote control cannot turn on the TV box once it is fully shutdown.The other one doesn't have this malfunction.So I am trying to create a new rom by using some level 1 files/partitions from the second rom to the first (I read somewherwe about Bootloader, DDR and UBOOT).

I realized that I need to unpack with your tool both the custom roms Only to level 1.Then I can use Rickys Customization Tool to repack from level 1. In the meantime I have to find which partitions to alter from one to another before repacking (there is no bootloader partition in level1 of my android 9 rom-maybe by another name?).

https://postimg.cc/PCfK9Fv0
[Android Stick & Console AMLogic based Computers] I1V1A1N:
https://xdaforums.com/android/software/lookup-security-context-addon-d-t3672470
[Android Stick & Console AMLogic based Computers] moksy_1:
I don't have linux for file_context
[Android Stick & Console AMLogic based Computers] gr33nst:
For PIE the file: 2_unpack_level2.bat - edited:

[MENTION=8011874]Echo off[/MENTION]

color a

cls

type dontlookhereboi\logo

echo Okay, let's unpack System and Vendor Partition. They'll be in the unpacked folder.

echo.

echo.

echo Woooh, Unpacking the Partitions Now...

echo.

echo.

echo LOG OUTPUT:

echo +++++++++++++++++++++++++

echo Unpack Vendor

echo +++++++++++++++++++++++++

md unpacked\level2\vendor

dontlookhereboi\simg2img.exe unpacked\level1\vendor.PARTITION unpacked\level2\vendor.img

dontlookhereboi\ImgExtractor.exe unpacked\level2\vendor.img unpacked\level2\vendor

del unpacked\level2\vendor.img

echo.

echo +++++++++++++++++++++++++

echo Unpack System

echo +++++++++++++++++++++++++

md unpacked\level2\system

dontlookhereboi\simg2img.exe unpacked\level1\system.PARTITION unpacked\level2\system.img

dontlookhereboi\ImgExtractor.exe unpacked\level2\system.img unpacked\level2\system

del unpacked\level2\system.img

echo.

echo +++++++++++++++++++++++++

echo Generate File Contexts

echo +++++++++++++++++++++++++

type unpacked\level2\system\system\etc\selinux\*_file_contexts unpacked\level2\vendor\etc\selinux\*_file_contexts > unpacked\level2\file_contexts

echo.

echo.

echo Do your thing bro! It's in the level2 folder ;)

pause>nul
[Android Stick & Console AMLogic based Computers] gr33nst:
So far I can unpack without an error however when I try to repack and the image is complete its much smaller than the original image and I get an error during the system partition verify...so I can not burn successfully.
[Android Stick & Console AMLogic based Computers] ath156:
Did you try to unpack with this tool and repack with https://xdaforums.com/android-stick--console-computers/amlogic/opensource-amlogic-tools-t3786991.

You have to transfer directories level1 and level2 from this tool to the "tmp" directory of the above mentioned Rickys (free version 6.0) tool. Then repack with that.
[Android Stick & Console AMLogic based Computers] gr33nst:
Yeah just tried packing with Ricky's works it says, just like Nayam's said it worked. but the both images created still gives me an error when burning, however the new image that was created was much closer to the original in size.