yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 6 Questions & Answers] pw44:
Dear All,

i'm new in the Android world and purchased a Xiaomi MI 6 for the very begining.

Installed TWRP and tried to:

sudo fastboot flash recovery SR5-SuperSU-v2.82-SR5-20171001224502.zip
target reported max download size of 536870912 bytes
sending 'recovery' (6721 KB)...
OKAY [ 0.221s]
writing 'recovery'...
FAILED (remote: Flashing is not allowed in Lock State)
finished. total time: 0.223s
paulo@hp15pw:~/Android Xiaomi MI 6$ sudo fastboot oem unlock
...
FAILED (remote: Token Verify Failed, Reboot the device
)
finished. total time: 0.000s
paulo@hp15pw:~/Android Xiaomi MI 6$ sudo fastboot devices
8e6471bb fastboot
paulo@hp15pw:~/Android Xiaomi MI 6$ sudo fastboot oem unlock
...
FAILED (remote: Token Verify Failed, Reboot the device
)
finished. total time: 0.000s
paulo@hp15pw:~/Android Xiaomi MI 6$

Tried some how to's but didn't succeed well.

Is there a straightforward way to open root access to the device, so i can plug it on my linux box and have total access to the files (all)?

Thx in advance.
[Xiaomi Mi 6 Questions & Answers] easyyu:
I'm curious too abot how to root paintless.

txh
[Xiaomi Mi 6 Questions & Answers] AWESOME1092387456:
you will have to enable "oem unlock" on developer settings, "usb debugging" too, and click on the "mi unlock status" and click on the button down there to pair your mi account with your device, after that you will go on the official miui page and select the unlock option on the page (on pc it is on the top right hand corner if i remember correctly) and proceed to unlock your phone through mi unlock utility.

~Edit~

And btw i dont think you should tinker with your device cause are likely going to brick it by flashing .zip files through fastboot...
[Xiaomi Mi 6 Questions & Answers] pw44:
The only goal (for now) i want to achieve is to disable ipv6 from the device, because of dns errors... any way other than having root access?
[Samsung Galaxy Note 20 Ultra Questions & Answers] enjoylife1788:
I was an iPhone user for years before I switched to note 20 ultra couple of months back.

One thing I can't understand is how slow apps install on note 20 ultra. While updating, first of all it only does lands one app at a time. Whereas iPhone could download three apps at a time. Once downloaded, it takes forever to install new app or update.

It feels slower than my iPhone 7 which I used the last.

Any settings that I need to check? Or is this a known thing in android?
[Samsung Galaxy Note 20 Ultra Questions & Answers] rowihel2012:
I had mi 10 pro before note 20 ultra

Installing apps way so fast

It is so slow with Samsung and both has same cpu
[Samsung Galaxy Note 20 Ultra Questions & Answers] enjoylife1788:
What do you think could be the reason for this? I don't see many results when tried searching for it. Its terribly slow.
[Samsung Galaxy Note 20 Ultra Questions & Answers] blackhawk:
Same OS on both?

A small apk should install lightning fast.
[Samsung Galaxy Note 20 Ultra Questions & Answers] enjoylife1788:
Try installing the same app on both iOS and android. iOS will install very quickly where as note 20 ultra is painfully slow.

So I read a few posts and it has been like this since 3-4 years. As per the posts, it happens only with samsung devices. No clue why.
[Samsung Galaxy Note 20 Ultra Questions & Answers] BHart1990:
Hey, thanks. It helped me.
[Samsung Galaxy Note 20 Ultra Questions & Answers] blackhawk:
I store apks with ApkExport; no internet or Playstore delay when this pathway is used. I use it for reloads.

Almost all apks install very fast... as they should.
[Samsung Galaxy Note 20 Ultra Questions & Answers] eddyo1993:
Enable enhance processing.
[Samsung Galaxy Note 20 Ultra Questions & Answers] enjoylife1788:
With that everything works super fast except for installing apps. Doesn't solve the purpose. Thanks for the suggestion.
[Samsung Galaxy Note 20 Ultra Questions & Answers] blackhawk:
Welcome to Adroid, the Dark Side of mobile handsets:laugh:

When you say slow, how slow?

Normally a small apk loads in a second or two.

See what happens if you do a direct install of an apk from the phone, you know for scientific purposes.

Since I'm running on Pie, there's no scope storage.

Could this be a factor?

I would think it wouldn't slow install just usage of some apps like office ones but maybe there's something I'm missing.
[Samsung Galaxy Note 20 Ultra Questions & Answers] eddyo1993:
I guess I don't have the same issue you do yet I have the same phone.
[Samsung Galaxy Note 20 Ultra Questions & Answers] Nastrahl:
Sorry but where do you find that setting to be activating?

Thanks
[Samsung Galaxy Note 20 Ultra Questions & Answers] raul6:
High performance battery mode on some Samsung phones or enhanced processing on others
[Samsung Galaxy Note 20 Ultra Questions & Answers] eddyo1993:
You may find it under your notification panel. May drain your battery faster.
[Samsung Galaxy Note 20 Ultra Questions & Answers] blackhawk:
It sounds more like there's an issue with a apk used during installs rather than hardware performance issue. These devices are fast unless in their maximum battery saving mode.

Make sure no antivirus anything is running... or 3rd party power management, apk killers etc (destroyer of worlds).

Find those apks used during installs and their dependencies, clear data.

Clear the system cache.

Most small 1-10 mb apps should install in 1 or 2 seconds.

If they're all taking 20+ seconds to install some critical apk is disabled, corrupted, or needs updated.

Or perhaps a update to a system apk screwed things up; go back to the factory load.

And last the firmware load could be potentially corrupted.
[Samsung Galaxy Note 20 Ultra Questions & Answers] enjoylife1788:
Slow as in it downloads in a zippy and then it sits on installing app for a while. So an app around 80-90 mb would take 20-30 seconds to install.

And when I try to update my apps, few of them together, then it takes a very long time to install them.
[Samsung Galaxy Note 20 Ultra Questions & Answers] enjoylife1788:
I have had this issue with all the apps. May be we try one app which installs really fast on your phone and I give it a shot and see how long it takes.
[Samsung Galaxy Note 20 Ultra Questions & Answers] blackhawk:
Isolate the cause by installing the apk directly from a saved copy of a small apk.

If it installs fast than it's a Playstore and/or connectivity issue, lol, imagine that:laugh:

Large apps like an Office app can sometimes take longer, this is normal. A poorly written one may hang for a bit but still load.

For me to load all my 3rd party apps and system updates(few) from the SD card during a reload takes under 20 minutes maybe less. Never timed it but most didn't try my patience... and I hate waiting.
[Samsung Galaxy Note 20 Ultra Questions & Answers] Nastrahl:
On my side i noticed that's as longer as i install more and more apps.
[Samsung Galaxy Note 20 Ultra Questions & Answers] blackhawk:
I never have seen that type behavior for direct installs.

Playstore on the otherhand does have bandwidth issues sometimes even for one app but that's during download.

Was it doing this after a reload with a fresh OS?
[Samsung Galaxy Note 20 Ultra Questions & Answers] Nastrahl:
Only afterwards. On every factory reset it goes back fast
[Samsung Galaxy Note 20 Ultra Questions & Answers] NippleSauce:
YES.

I knew exactly what you were talking about upon reading your responses. The apps download really quickly, but then take a pretty long time to install (like 15-30 seconds per app). I'm not sure if this is how it is on most phones or not, but on my previous phone (Pixel 3XL), the apps of just about every size would only take like 3 seconds to install lol.
[Samsung Galaxy Note 20 Ultra Questions & Answers] blackhawk:
Then it's most likely something that was updated or loaded after that point.

Or a setting. Power management, destroyer of worlds... just saying.

After a reload disable auto updates for all apps.

Clear system cache.

Keep playing with it and eventually you'll find it.
[Samsung Galaxy Note 20 Ultra Questions & Answers] Spir4:
I've just upgraded from a Huawei Mate 20X to the Galaxy Note 20 Ultra, both on Android 10. That was the first thing I've noticed. It takes ages to install an app on the Note 20 compared to the Mate 20X. Doesn't matter the source of the app (Play store, Galaxy store, .apk file, ...). My wife has a Galaxy Note 8 on Android Pie, and it has the same issue. I thought she had it because it's a fairly old phone, but I guess it's a Samsung thing.
[Samsung Galaxy Note 20 Ultra Questions & Answers] jaggs6:
Guys I think I discovered the issue.

In

Settings ->

Battery and device care ->

three dots top right ->

Automation ->

Disable scan for malware.

This improved the play store install speed for me.

Let me know if you found this useful.
[Samsung Galaxy Note 20 Ultra Questions & Answers] Nettwerk:
Well it isn't good idea to disable malware scanner. Maybe it improves installing apps 3 at same time, but for security I don't suggest to do this. It isn't best scanner but it does whst it does.
[Samsung Galaxy Note 20 Ultra Questions & Answers] homobosnicus:
That's it... It works. Very fastER. Tx bro.
[Samsung Galaxy Note 20 Ultra Questions & Answers] sean8102:
Dude thank you so much.

I knew something had been going on. Esp after I bought one of the new Amazon Fire HD 10 Plus tablets during the fire sale and got google play services and play store working on it. Then noticed it installs apps much faster than my Note 20 Ultra. Knew something was causing abnormal behavior on N20 Ultra.

Disabling the auto malware scan made a dramatic difference. Like night and day. Apps now install almost instantly.

As for security. Honestly considering that malware scan option is tied to the built in Mcafee anti-virus/malware, I'm not too worried about it. Still got Google Play Protect running. And when I want, I can still go into device care and run a manual scan with the built in Mcafee security.
[Samsung Galaxy Note 20 Ultra Questions & Answers] blackhawk:
Running antivirus is a bandaid for the inept... no saving dumb bunnies.

I run Malwarebytes every month or so otherwise it's disabled. Android is pretty secure unless you do something stupid... and a lot of people do.

How secure?

I'm still running Pie and never in 7 years had to do a forced reload because of malware.

My current OS load is over a year old, still fast and stable with very little maintenance.

Could it get infected? Sure. Always be ready to reload. Back up all critical data redundantly to at least 2 hdds that are offline, physically and electronically isolated from each other.

Take any odd behavior, performance degradation seriously and track it down as soon as it's noticed. If in doubt, reload.

The faster you find malware the better the chances of limiting damage and eradicating it.

In the last year and a half I picked off one trojan preloader and a infected script jpeg before any major damage was done. Always keep a close eye on the download folder for odd behavior and files you didn't download.
[Samsung Galaxy Note 20 Ultra Questions & Answers] enjoylife1788:
I gave it a shot and its much faster now. Although it is much faster, it is no way close to oneplus speed. Two year old Oneplus 7T installs apps much faster than my Note 20 Ultra.
[Samsung Galaxy Note 20 Ultra Questions & Answers] xlightan:
Just disabled the malware scan myself, but it is still roughly 3 times slower then my old Mate 20 pro. There's gotta be a SW issue somewhere.
[Samsung Galaxy Note 20 Ultra Questions & Answers] krGemini:
This issue is with one ui only, I have used emui and oxygen OS both android based and both doesn't have this issue, apps install like within seconds. But Samsung one ui either old or new flagship models have this slow installation problem.
[Samsung Galaxy Note 20 Ultra Questions & Answers] blackhawk:
Pie, One ui is what I'm running. No issues expect Playstore's slowness. Direct installs take seconds. It's a Playstore issue... as usual.

So I just take Playwhore out of the loop.

Once the apk is downloaded from there and a installable copy is made, it's good to go on the next OS reload.
[Samsung Galaxy Note 20 Ultra Questions & Answers] AnonymousSir:
It worked. My S20 FE also have the same issue, I compared with my Xiaomi Mi 9, Mi9 was a lot of faster than fe when installing with same apk file. Now the problem is solved, thanks!
[Samsung Galaxy Note 20 Ultra Questions & Answers] evanahmedshoaib:
It's because of samsungs own scanning system. Turn it off and it will get fixed. Here's the tutorial
[Samsung Galaxy Note 20 Ultra Questions & Answers] otaku_reyad:
This is a very common issue for those who are new to samsung phones. Please turn off the scanning malware option from device care. You will find it in the three dot menu on the upper right corner of device care. Samsung usually scans the whole app before installing it which takes that extra time. Just turn the device protection off, then app will install much faster. Give it a try.
[Zenfone 2 Laser Android Development] adazem009:
/*
* Your warranty is now (expired?) void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

I'm working on Ubuntu Touch port for Asus Zenfone 2 Laser (Z00ED).

For more info - from Ubuntu Touch GSI:

This port of Ubuntu Touch is running on Halium 7.1, which is based on Android 7.1 (Nougat).

NOTE: This port is not stable! Don't use it as your daily driver. You can, however, set up dual booting with Android.

What works, what doesn't work + porting notes

Everything can be found here.

We're looking for someone to test on Z00RD. It should at least reach the Ubuntu Touch splash screen. Read the note about 8 GB devices below.

How to install

Format data (recommended) and flash the downloaded ZIP file in a custom recovery.

The default password is phablet

NOTE: 8 GB variant is NOT SUPPORTED! Flash only on 16 GB variants. We're trying to find a way to flash it on 8 GB variants, but it's not available right now because Ubuntu Touch needs at least 5.6 GB in /data. Please wait until this way is available. Don't even try to flash on 8 GB devices.

Download

SourceForge

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

If you find any bugs that aren't mentioned in the device checklist, make sure to report them ;)

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

Screenshots

See the attachments.

Device sources (UBports):

Device tree

Common device tree

Kernel

Vendor tree

Device manifest (for Halium)

The device manifest is already included with the Halium 7.1 source tree.​

XDA:DevDB Information

Ubuntu Touch Z00ED, ROM for the Zenfone 2 Laser

Contributors

adazem009

Max Mesa

Halium version: 7.1

ROM OS Version: 16.04 (xenial)

ROM Kernel: Linux 3.10.x

ROM Firmware Required: Upgrade to Android M first

Based On: Halium / LineageOS

Version Information

Status: Beta

Created 2020-11-26
[Zenfone 2 Laser Android Development] Banasura:
That's sooooo cool! Can't wait to test a stable version. Keep up the good work!
[Zenfone 2 Laser Android Development] adazem009:
Thanks :)

I'll upload the initial build today and add a link to the thread.

Anyway, I'm surprised that people still use this device. :laugh: It's pretty old and I thought that there are only a few people who use it.
[Zenfone 2 Laser Android Development] adazem009:
Update - 11/28/2020

v0.1.0

Initial build has been uploaded. You can download it here.

Known bugs:

Camera app reboots to EDL

Sound doesn't work

Flashlight doesn't work

Bluetooth probably broken

SIM card not detected

WiFi has to be enabled manually using SSH.

Vibrator doesn't work

Pressing the power button will show the power menu.
[Zenfone 2 Laser Android Development] adazem009:
Update - 11/28/2020

v0.1.1

Download

Optimized display settings
[Zenfone 2 Laser Android Development] Hausemaster:
Nice!
[Zenfone 2 Laser Android Development] nhASIF:
Great...but please make it stable
[Zenfone 2 Laser Android Development] adazem009:
I'm working on it. The next build should improve performance and fix WiFi.
[Zenfone 2 Laser Android Development] apostrof:
looks great!

does usb tethering is working?

i would try it on z00rd

upd: bootloop =(
[Zenfone 2 Laser Android Development] adazem009:
It's probably because of missing udev rules. I'll try to add them for Z00RD in the next builds.
[Zenfone 2 Laser Android Development] adazem009:
View attachment 5205997

Thanks for trying it out, I'll do some testing and add the bugs to the list. For apt update, this is normal. The root filesystem is mounted read-only by default. To install packages, you need to remount it read-write: sudo mount -o remount,rw /
[Zenfone 2 Laser Android Development] adazem009:
I had a break for a few months, but will continue with the development again :)

I've set up the build system again, and I'm going to do some testing and make WiFi working on boot.
[Zenfone 2 Laser Android Development] adazem009:
Update - 03/17/2021

Screenshots were added to the thread.

Next build is coming this or the next month.
[Zenfone 2 Laser Android Development] adazem009:
Update - 03/27/2021

v0.1.2

Download

Fixed camera app rebooting to EDL. Camera still doesn't work, but at least the app doesn't crash the OS.

Applied AppArmor kernel patches

Fixed vibrator

Fixed WiFi, it now enables automatically at boot.

Initial support for Z00RD (untested)

Known issues in this build:

Hotspot works, but it breaks WiFi. Either reboot or run this command (as root, NOT using sudo) after using hotspot:

echo sta > /sys/module/wlan/parameters/fwpath

Notes:

Initial support for Z00RD is here. I can't test it as I don't have this device. Anyone who has got a Z00RD, please test this build and tell me if it's stuck in a bootloop. If it is, you'll need to connect the device using a USB cable and login using SSH as `phablet@10.15.19.82`. Then, execute these commands:

sudo -i # And enter your password

cat /var/lib/lxc/android/rootfs/ueventd*.rc|grep ^/dev|sed -e 's/^\/dev\///'|awk '{printf "ACTION==\"add\", KERNEL==\"%s\", OWNER=\"%s\", GROUP=\"%s\", MODE=\"%s\"\n",$1,$3,$4,$2}' | sed -e 's/\r//' >/usr/lib/lxc-android-config/70-Z00RD.rules

reboot

The device should reboot and boot to the Unity 8 screen. If this doesn't work, these builds will never be compatible with Z00RD, and I'd need to use the Z00RD's device tree instead. Again, I don't have this device, so I won't compile it for Z00RD.

I was trying to make modem working, but it crashes the device and reboots to emergency download mode. If you have some experience with this device (e. g. ROM building, especially Nougat ROMs), tell me if you've ever experienced this. PM me and I'll tell more about this issue.
[Zenfone 2 Laser Android Development] adazem009:
I uploaded build v0.1.2. Can you test it on Z00RD? I don't have this device, so you have to add udev rules manually. Read the post above for more info.
[Zenfone 2 Laser Android Development] apostrof:
i try to install 0.1.2 - it does not boot, then i to connect ssh, but i cant connect using SSH as `phablet@10.15.19.82`

upd: 1 thing: the package was installed too fast, but wrote that it is ok
[Zenfone 2 Laser Android Development] adazem009:
Do you see the splash screen?

If yes, you should be able to connect if you're on Linux.

ssh phablet@10.15.19.82
[Zenfone 2 Laser Android Development] apostrof:
no, didn't see the splash screen
[Zenfone 2 Laser Android Development] adazem009:
What do you see when you boot? Is it stuck at Asus logo or a black screen? The kernel I built should work for Z00RD too, maybe something is wrong with the Android container.
[Zenfone 2 Laser Android Development] apostrof:
on the boot i see only default asus logo, if i turn off the phone and connect the charger - i see "Charging ??\100"
[Zenfone 2 Laser Android Development] adazem009:
Yeah, that charging "animation" bug is known. I don't know why it doesn't boot, but what do you see in your computer when you connect the device? Connect it to a PC and hold the power button. If you see something like Halium initrd Failed to boot, it means it failed to mount the rootfs or it failed because of some weird kernel configs.
[Zenfone 2 Laser Android Development] apostrof:
yeah, i see "Halium initrd Failed to boot" when connect it to a PC
[Zenfone 2 Laser Android Development] apostrof:
UPD: I try to install this another one, and while installation i see Failed to mount /dev/block/bootdevice/by-name/iserdata at /data: Device or resource busy
[Zenfone 2 Laser Android Development] adazem009:
Thanks. Someone told me you were doing something with PostmarketOS on this device and the display had some issues. What issues did it have? Are they in Ubuntu Touch builds too?
[Zenfone 2 Laser Android Development] adazem009:
If you're on Linux, you can try telnet 192.168.2.15. If this IP doesn't work, try to find it in dmesg. If you're able to get to the initramfs shell, try to execute cat /diagnosis.log (if the file exists). Also execute dmesg and copy the whole log to pastebin.ubuntu.com. It'll help me troubleshoot it.
[Zenfone 2 Laser Android Development] adazem009:
This is not an error condition. Everything should be fine as long as /data is mounted. Check if /data/system.img exists after the installation.
[Zenfone 2 Laser Android Development] adazem009:
My builds are built from Halium 7.1 tree, which is based on Android 7.1 (LineageOS 14.1). So, the porting process should be similar to that of Nougat ROMs.
[Zenfone 2 Laser Android Development] adazem009:
WE GOT CAMERA WORKING

Camera is going to be fixed in the next build! The camera app probably doesn't have all features working yet, but I'll try to debug it.

Big thanks to @Max Mesa for helping me with the porting process :)
[Zenfone 2 Laser Android Development] adazem009:
Update - 03/31/2021

v0.2.0

Download

Initial beta build

Fixed modem

Audio works

Microphone works

SIM cards are recognized

Cellular data works

SMS work

MMS untested

No audio in calls

Dual SIM works

...more in the device checklist

Fixed camera

Front camera works

Rear camera works

Camera app works

Photos

Videos

Sound in videos

Flashlight works ONLY in camera app

Improved performance

Support for Z00RD stopped. Maybe I'll start supporting it again, but I need someone, who can get kernel logs when Halium fails to boot.

Updated screenshots

We're getting closer to a stable build!

There will be more than just Ubuntu Touch builds... Anbox (Android apps) support, UBports recovery, UBports installer, etc.
[Zenfone 2 Laser Android Development] blckberrymv:
Sucessfully flashed the latest beta!​

This is my scenario; I have a faulty display (few areas don't work, soft-keyboard's enter button area and Back,Home and the third button as well), but I can SSH into my device. And I want to use my PC's mouse and keyboard using synergy. [Until I hopefully get a display for it.]

How do I enable wifi through SSH?

Edit: Just did a simple search to find the fix: http://askubuntu.com/questions/1255866/ddg#1255870, in case somebody needs to know.
[Zenfone 2 Laser Android Development] blckberrymv:
postmarketOS would be cool. Any links?
[Zenfone 2 Laser Android Development] adazem009:
It's not anything hard, you don't have to create any config files... Execute sudo nmtui and activate a connection using the TUI.
[Zenfone 2 Laser Android Development] blckberrymv:
The wifi radio wasn't ON after first boot.

I had to run ncmli r wifi on on the terminal.

I'll try to install synergy on it.

Thanks for the great ROM, Hope to see a fully stable build.
[Zenfone 2 Laser Android Development] adazem009:
That's known, it'll work on the second boot. Standard desktop apps should work with Libertine. You can also sudo mount -o remount,rw / and install packages with APT, but it's not recommended - your changes will be overwritten by future builds.
[Zenfone 2 Laser Android Development] adazem009:
I really think it should boot up... please check if you have enough space in /data using MTP in TWRP. Ubuntu Touch needs at least 6 GB of free space. It's recommended to format data before flashing.