yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] sharkstalk:
I am having issues booting into my unofficial TWRP installation on my Moto g stylus 5g after attempting to install an unofficial modded LineageOS image.

My problem:

I try to boot into TWRP through the command line on my computer using

fastboot boot twrp-boot.img

, but my phone disconnects from my computer before the command can finish. Though TWRP is already installed and I can access it by entering recovery mode without my phone needing to be connected to my computer, the touchscreen on the installation does not work. The touchscreen only works if I use the

fastboot boot twrp-boot.img

command.

My drivers are the latest version: 33.0.3.

I unlocked the bootloader. To do this, I:

Tapped on the build number to become a developer.

Enabled OEM unlocking and USB debugging.

Unlocked my bootloader.

I installed TWRP recovery. To to this, I:

Downloaded the unofficial TWRP image linked in the first paragraph, as well as the Magisk ZIP.

Ran

fastboot boot twrp-boot.img

while in bootloader.

Copied the image and the Magisk ZIP from my computer to my phone.

Installed TWRP using "Install Recovery Ramdisk".

Installed Magisk.

I attempted to install LineageOS. To do this, I:

Downloaded OTA ZIP, copy partitions ZIP, and boot image from the LineageOS thread linked in the first paragraph.

Flash booted the boot image.

Selected ADB Sideload mode in Lineage recovery.

Ran

adb sideload copy-partitions-20210323_1922.zip

and

adb sideload LineageOS-Modded-19.1-Osaka-V2-OTA.zip

on my computer.

I attempted to re-access TWRP recovery, after Lineage recovery seemed to replace it. To do this, I:

Ran

fastboot boot twrp-boot.img

while in bootloader.

Installed TWRP using a different method than the previous installation (maybe "Install using this image") because I couldn't copy the installation files to my phone as my phone was no longer writable.

After I rebooted I could no longer use the touchscreen to navigate TWRP. That is, until I figured out

fastboot boot twrp-boot.img

worked. But after I attempted to enter ADB Sideload mode using TWRP and install one of the ZIP files I needed to install for LineageOS (

copy-partitions-20210323_1922.zip

), my phone began periodically turning black and disconnecting from my computer, again.

It had been turning black, disconnecting, then turning back on and reconnecting on a regular interval while I was trying to unlock the bootloader. I almost made a post about it. When I tried one more time, just to get the error message I could copy and paste, the command I had been trying to run ran fast enough and it worked. What I had done differently that time was I ran the command right away, without running

fastboot devices

.

After a while the phone stopped disconnecting periodically. After I installed one ZIP, it started again.

How can I get my phone to stop periodically disconnecting from my computer? How can I access TWRP again?
[General Questions and Answers] Thomas Reid:
Ok. How to root the Android XMOBILE X2 BY SKY DEVICES. IT'S VERSION 11 AND WONDERFUL! BUT I CAN'T MY SEEM TO ONE CLICK ROOT IT BECAUSE I DON'T HAVE A PC. I TRIED MOST OF THEM BUT TO NO AVAIL. I MUST BE FORGETTING SOMETHING IMPORTANT. PLEASE HELP?
[General Questions and Answers] SubwayChamp:
A post very long tends to seem confused enough, just to consider it for the next.

If I understand well, you want to replace the LOS recovery, and flash TWRP over it, your device keeps rebooting while in recovery mode, probably attempting to boot completely to it, but if you are in fastboot mode you can command to the device.

Sometimes this happens because the TWRP version is not compatible with the Android version you currently installed, the Android version exceeds the compatibility of TWRP.

Enter to fastboot mode, erase the boot partition (I assume your device doesn't have a recovery partition), now flash (yes, flash) TWRP onto the boot partition (touch screen may work on the boot partition), now through TWRP flash the image to the ramdisk partition, now reboot to recovery again, if the TWRP version is compatible, then it has to reboot without issues, now sideload the LOS ROM and the other zip, flash them, and as the TWRP, at this stage was overwritten, flash again TWRP to the ramdisk, reboot.

Take in account that some custom recoveries are not perfectly adapted, so the touch screen works fine, due to the vendor proprietary, loading the drivers may take some seconds, or probably you need to shut off your screen and seconds after, turn it on.
[General Questions and Answers] SubwayChamp:
If the vendor/carrier allows bootloader to be unlocked, then you should.

Unlock the bootloader, find the firmware, extract the boot image from it, patch it through Magisk, and flash it. This is the normal method that works for most of the devices not having a special barrier implementation. Not recommendable at all, any one-click solution.
[General Questions and Answers] borisSweden:
A general question about porting, but why is it impossible to port something between two different phones with the same SoC, modem and Wifi chip?

Actually its only covers Wifi, LTE, GNSS, Bluetooth.

Or can you point me to the right thread about porting stuff in the Qualcomm ecosystem.
[General Questions and Answers] PaveKoo:
Hi!

Needed some help for my pathtetic tryind to root or edit my tablet....

Firstly next procedure is what I want to achieve.... I want my tablet to turn on when charger cable is connected and turn off when charger is unplugged.

My target is to put that tablet in a car, using it as a navigator and obd meter...

So I have two different tablets... Samsung Tab A7 Lite with android 12 :rolleyes: and Lenovo Tab M10 HD 2. gen...

I can´t get that possibly easiest way to work neither of tablets... I mean that " Fastboot oem off-mode-charge 0" command...

That didn´t work either of the tablets... both tablets oem unlocked and usb debugging allowed...

So next step what I tried, was root those tablets... Yea I know... seems very desperate :)

At this point I can´t even root the Lenono... but somehow I think I managed to root the Samsung....

I bought that Lenovo also, because I know that Samsung doesn´t accept those fastboot commands and thought that Lenovo is easier to modify / root. But not for me...

Next part should have been to try those "commands" ...

#!/system/bin/sh

/system/bin/reboot

But I don´t even know how to do that... :unsure: Do I need some app/ apps to do that...

Don´t know how to add or edit those scripts.... don´t know pretty much anything....

I downloaded some file explorer so I can see root files... or at least something in the tablet...

Then I followed that quoted instruction to remove that "Bootloader warning"

Then everything went wrong.... Yea, I know that I should have to quit way way earlier....

So I downloaded Termux... downloaded that up_param.tar file... copied it to download folder and typed to termux those lines.....

I think´you guess the result.... No the whole tablet remains black... maybe its trying to boot.... sometimes little backlight is visible althought the screen remains black... so no boot... or at least visible boot for me...

I can boot it to Odin mode... so it isn´t totally dead...

So is there any way to remove that script in odin mode... or something other way to do.... I tried to flash that modified boot.img file in odin again... everything went well.. at least it said "All threads completed (succeed 1 / failed 0)

Hope you understand even some part of my doings or my writings and can help me...

Thanks in advance!!

Now little update...

I managed somehow to flash original boot.img back... included BL and CSC files then it worked...

So again patched boot.img and now tab is rooted.... at least "Root Checker" told so.

So the main question and help is now.... how can I modify or make that tablet to power on when charger is connected and power off when it´s unplugged?!?!

I tried to look at the forum some noob how to or instructions to edit / modify or do some those commands in rooted tab... I didn´t found....

Is there some instructions already??

And I still have that Lenovo TAB M10 HD 2. gen.... If that is easier model to do that auto-power mod... with root or without...

Again thanks in advance!!
[General Questions and Answers] pkash:
Hey guys, newbie here. I am trying to root my Samsung Galaxy Tab S4 (SM-T830). Its currently running Android 10. I have the OEM unlocked, bootloader unlocked, and the USB debugging is turned on and allowed for my PC.

I have tried to install the TWRP recovery several times, via Odin as well as ADB/Fastboot. For Odin, I get the "Added" message but then it fails after showing me SetupConnection. Similarly, when I try the "fastboot flash recovery recovery.img" I get a <waiting for connection>. I have noticed that when I go into the bootloader/fastboot, I do not see my android device under Device Manager (see the screenshots). I have installed the ADB/Fastboot via the installer in XDA which installs the default google usb drivers and have installed the Samsung drivers as well. I am at a loss on how to fix this or if I did something wrong.
[General Questions and Answers] sharkstalk:
Hi thank you. I wanted to include everything I did in case I did somethine wrong.

My device keeps rebooting in bootloader, not recovery. I can enter fastboot mode, I think. I can use the bootloader and use the "fastboot devices" command to see my device is connected. However, when I try to run other commands, the phone disconnects from my computer before the command is executed. I used a stopwatch to test when it was disconnecting. Turns out it is disconnecting every 33-34 seconds, and staying disconnected for roughly 4.5 seconds. If I try to flash TWRP at the beginning of a 34 second interval, the command will run for 34 seconds, then fail because the device disconnected:

fastboot boot twrp.img

Sending 'boot.img' (98304 KB) FAILED (Status read failed (No such device))

fastboot: error: Command failed

The touchscreen for the same TWRP installation from the same source on the same device has worked before. When I boot it from live it works. Now I can't boot it from live because my phone keeps disconnecting.

As I said in my initial post I have ran into this problem (the phone disconnecting on an interval) before, and it fixed itself. I didn't download anything new or change settings. I was going to make a post about it before, so I ran a command that hadn't been working again just to get the error output for my post, and it worked. And then the phone stopped disconnecting. Now it is not fixing itself so I'm not sure how to proceed.
[General Questions and Answers] SubwayChamp:
Some USB cable gets corrupted in some way when using the same cable for, either a different device or as a specific ROM loads some specific data attached to that specific ID, I mean, some sort of data/information its kept/retained on the data wire.

Try other USB and keep in mind that, to completely clean it, you´d need to discharge/drain totally the battery, just in case the error persists, apart of changing the USB cable.

All of this is assuming that your USB cable or the USB entry is not faulty.

If the TWRP is not flashed in the ramdisk, the behaviour may vary from a ROM to another, drivers are not totally loaded in a live session.

Grab the command, and put the image in the same directory where ADB is, to avoid delay in transferring the image, hit, the command will wait device, and do its thing faster this way.

Try if fastbootd (if available) works better for you, doing fastboot reboot fastboot, then try booting to the recovery image through fastbootd, maybe it gives you more time.

Avoid to do other thing in your PC, and keep the task in foreground.
[General Questions and Answers] SubwayChamp:
I guess that there are many sites referencing the same goal, this is just one of them, targeting to one of your specific like https://www.lilitab.com/blogs/news/...ablet-to-turn-on-when-connected-to-wall-power. For the second part, as the device needs to be on, probably you can find an app to do so.

Regarding the bootloader warning screen, and the modification of the param file, they have nothing to do with the main object.
[General Questions and Answers] SHSuperEddie:
Hello. My phone is stuck in the set up phase after a factory reset probably due to corruption. I cannot access the settings and therefore can't check the firmware version the phone came with even though I need to know this in order to flash the firmware?

Or do I? I'm getting so confused- I've read so much into the flashing process and some things make it sound like this is important to see the "build number" but others don't even mention this and say just make sure the firmware matches your phones model number!!

Can anyone help me out with this please?? 😩
[General Questions and Answers] SubwayChamp:
To what you are asking for, the model of device matters, also the bootloader status, and which modes are available for you.
[General Questions and Answers] SHSuperEddie:
LG K7 MS330. I've never seen the bootloader screen, actually, I'm not sure how to.
[General Questions and Answers] PaveKoo:
Thanks for your reply!!

I have found those sites also.... But I still don´t know exactly what to do....

Do I need some app to edit those "charging files" or I think in that instruction you do those commands in Command Prompt at PC ?!? Am I right??

I have downloaded some file explorer to my tab... It shows those different root folders... and I possibly found that in my tab there is folder in system/bin/kpoc_charger which I think is the file to edit?!?

Because my tab has Mediatek rom, not Samsung usual rom...

But how can I edit that file?

In Command Prompt "the connection" works maybe one time in a 20th try..... sometimes it doesn´t recognize the tablet... adb devices command shows nothing at listed devices.... sometimes it says that " adb server version (39) doesn't match this client (40); killing" version....

I even don´t know do I have to connect to the tab in Download mode.... Odin mode... or just power up the tablet normally.

One thing I know, that the bootloader warning screen has nothing to do with the auto power....

Because I tried that, is that I also want ,if someday I got that auto power to work, to remove that warning screen and I don´t need to press power button to continue tab to boot.

Thanks again!!
[General Questions and Answers] SubwayChamp:
Then, it's locked. Just flash the latest stock ROM, you can find, using the official tool for LG devices, this way, it doesn't matter to match exactly with build number of the ROM you're currently in.
[General Questions and Answers] SubwayChamp:
Editing a file is different from editing an app, and, also, different from hitting commands through PC, just read carefully what the guide is saying to you.

The ADB issues, most probably is because of an outdated ADB version, search for the latest ADB from Google, and install all the drivers properly.

Samsung device needs to be in download/Odin mode, so you can flash something, but, I don't read, in a quick view, something related to flashing rather than editing, and then replacing that file, if this is the case, you should need root, and an unlocked device.
[General Questions and Answers] SHSuperEddie:
Ah, I see. Ok. Thank you so much!

Now, that would be LG flash tool, right? I had planned to use LGUP, because I attempted to use LG Flash tool and it gave me a could not connect to server' error.
[General Questions and Answers] KlutzyBubbles:
How do i tell if my phone is 'bricked' its a galaxy s9+ with twrp 3.5.2_9-0, but now it is stuck on the twrp splash screen unless i hold down power and volume down, in which it goes back to the twrp splash screen.

I tried creating a thread with slightly more details but dont know if i have directed my question to the right place, i have already done hours of searching the xda forums but cannot tell if i can recover from it or just give up and get a new phone.

Any help or direction to the right place would be greatly appreciated :)
[General Questions and Answers] SubwayChamp:
Yes, LGUP can fix most of LAF errors, and it's wider-compatible.
[General Questions and Answers] SubwayChamp:
It seems the issue comes due to an outdated TWRP version, search for a newer version, and redo the steps.
[General Questions and Answers] Valdelian:
Pls i need help on disabling demo mode on my infinix hot 12 pro

i used the code *#*#336674663#*#* and the phone is now in demo mode and i have lost network signal bar on my phone

what i need is the code for unlocking this demo mode

this is not demo mode in the developer settings, so changing in developer setting are not gonna fixed this issue.

I've searched the facebook forums and found that each type of phone have different code for unlock this demo mode

is there anyone can help me fix this issue?
[General Questions and Answers] KlutzyBubbles:
I am unable to redo any of the steps because the phone is stuck on the twrp splash screen, it isnt recognised in odin and no adb or fastboot commands recognise the device when it is stuck in the splash screen either. I am just lost on what to do
[General Questions and Answers] PaveKoo:
Thanks again!!

I have tried two different ADB versions... Minimal ADB and Fastboot... and Platform Tools.... both do the same... Updated latest Mediatek usb drivers to my pc also....

I have managed to unlock and root that A7 lite tab o_O so now I think the main problem is how to edit those tab files and add commands... Do I need some correct file explorer to my tab and some text editor which can read those files or what?
[General Questions and Answers] lm8lm8:
hi guys

I do have a xperia XZ2 H8216

I just unlocked it with fastboot ysterday

Id like to know how could I relock it to save TA?

I didnt flashed anything on it

thank oyu!
[General Questions and Answers] SwedishForenger:
Hi.

I was wondering if anyone could help me get in touch with someone who can create GSI / Custem roms?.

After my first WP17 bric, I bought a new phone exclusively for the purpose of taking a DUMP of the phones firmware. I have no experience building roms or converting Dumps to GSI, After trying to follow guides I found online, on building a rom you can flash using SP flash tool etc, I'm now stuck, since none of my roms work I have created.

I have done a complete DUMP of the new phone, except from the cache and user data partitions., which is available here:

Oukitel WP17 Android 11 firmware-dump:​

Dropbox - File Deleted - Simplify your life

www.dropbox.com

How do I convert this dump to a flashable rom?.
[General Questions and Answers] SHSuperEddie:
Okayyy about LGUP...

What does THIS issue mean??
[General Questions and Answers] MeltingSnowman:
Today I found that, on my phone, there are two YouTube Music apps: one is called YT Music and it's 0B version 1.1, can't be uninstalled but only disabled. And another one that's called YouTube Music spelled out that can be downgraded and disabled. How could I uninstall the YT Music app? Thanks!
[General Questions and Answers] Renate:
It means a few things:

LG can't design a popup dialog that doesn't look like a train wreck

LG is another one of these stupid companies who is living in the last century and thinks that you can only interact with a phone over a com port

The driver has clearly identified your model

The app is having problems talking to your device

I don't know what the protocol that this is trying to speak. Try reconnecting your device. You can try a terminal app to Com6 (like Putty) and see if you can type at it and get a response.
[General Questions and Answers] Renate:
Some apps are in /system/app or /system/priv-app. They are preinstalled. Since /system is read-only you can't delete them.

When those apps get an update the update appears in /data/app, which is read/write.

If you don't like them you can "downgrade" (that is, delete the part in /data/app).

You're stuck with the preinstalled stuff in /system but you can disable them.

What the two YouTube things are, I don't know.
[General Questions and Answers] MeltingSnowman:
Looks like there's a double of YouTube music, that's what's worrying me (I'm also having issues with location being used in foreground by something but can't figure out what it is). Maybe Motorola kept the old YT Music and the new YouTube Music, but the old one is still "installed" (?).
[General Questions and Answers] SHSuperEddie:
Oh, alright. I've never heard of this issue with LGUP before.
[General Questions and Answers] Renate:
There can't really be a double because package names are unique.

On my crap phone I have "com.google.android.youtube" (disabled).

Your second app could be something like "com.google.android.youtube.annoyingfeature" or "com.google.android.myyoutube".

If you have ADB, try this:

C:\>adb shell
$ pm list packages | grep you
$ pm list packages | grep yt
[General Questions and Answers] MeltingSnowman:
I don't have ADB installed. But I managed to figure out that Motorola is leaving an old version of that app AND installing the new one on top, for some reason. Thanks for the help, I really appreciate it.
[General Questions and Answers] Renate:
Well, you really should try to get it going sometime while your device is happy and healthy.

It will make your life much easier if you ever break your screen or something.

I also use ADB daily on my devices as the mechanism to sync data and install apps.

You can check out AdbSync.exe in my sig.
[General Questions and Answers] MeltingSnowman:
Luckly I have a desktop mode I can use on my phone so I'm covered on that front.

What I'd like your help further is with this weird issue: the status icon that shows the use of location is always on, even if I give no permission to apps to use location. If I disable location the icon disappears and if I turn it back on it stays off for an hour or so before appearing again. I looked at the privacy submenu and what apps used my location. Everything is normal, no sign of any malicious software using my location. What could that possibly be?
[General Questions and Answers] Renate:
Well, if you can guarantee that there is no malicious software doing this then it must be non-malicious software doing it!

Something is requesting location. It should be listed in Settings.

If you had ADB working I would tell you to adb logcat and see who is turning it on.
[General Questions and Answers] MeltingSnowman:
I scanned my device with the Google Play Store tool, Malwarebytes and Bitdefender. I don't know how to get more sure than that! Also I didn't install anything yesterday nor changed any settings. There are no apps installed from outside the Play Store.

Unfortunately it's not listed in settings. All the apps requesting for location are Google apps and they do it once, not cotinuously. They have a correct timestamp but the indicator is still there.

I need to use ADB to figure this out! Is there any way to access ADB locally on the device? It would be easier I guess.

Also trying right now with the phone in airplane mode to see if it's a glitch or there's some logic behind some app that's installed.

UPDATE: the location has been used again while the phone was in airplane mode, but enabling and disabling location "fixed" it temporarely after a few tries. While, if done with the phone online, turning on and off location fixes it immediately.