yashsingh1/xdaforums huggingface dataset:
[Essential Phone Guides, News, & Discussion] jawz101:
It makes me wonder if Google could add some check within that fastboot lock command to make sure you're on an unmodified stock ROM.

I still don't understand why bootloader locking was considered a great idea. On the axon 7 I think people found a way to hide that bootup warning screen which sounds to me like a lot of it is superficial or can be made to look safe even if tampered with.
[Essential Phone Guides, News, & Discussion] aer0zer0:
htc does the same thing, you can modify the bootscreen to turn all the text white, so it blends in. Whats scary is there seems to be more of these "ive never done anything to my phone ever and it bricked" bricks. at least if the bootloader is unlocked, it can be fixed from there. But with no way to switch slots on locked bootloader (which i thought was the point of seamless a/b) its almost worse, as it was completely by no fault of your own. At least if you hit QFIL, you can look yourself in the mirror.
[Essential Phone Guides, News, & Discussion] jawz101:
One thing that did worry me was that I never saw my phone using slot B. That's why I flashed an older stock build, booted up, skip through the setup, and let the OTA process take an update to a more recent version. Hoping that an update process might help ensure both slots are stock. I don't completely understand the slot stuff because I never saw it switch between boots so maybe it wasn't a needed step.
[Essential Phone Guides, News, & Discussion] jDally987:
Thanks, great guide, worked perfectly for me.

I used the NMK24B Nougat build off essential's site, I'm now locked and on stock, ready to send it back for RMA.

The "fastboot -w" is - ahem - essential here. I experimented by not doing that after I flashed the stock rom build, and got a bootloop. Reboot to bootloader and fastboot -w did the trick.
[Essential Phone Guides, News, & Discussion] ceresolia:
So if I download apps on the stock rom and I want to lock bootloader, will it brick my phone?
[Essential Phone Guides, News, & Discussion] gm007:
No it won't cause When you relock the bootloader it will perform a factory reset so everything will be wiped.
[Essential Phone Guides, News, & Discussion] fastjohnson:
So if my bootloader is unlocked and on slot B has twrp installed ( working ) and no root just recovery that's it and on slot A is completely stock no root no recovery just the BL is unlocked, and no cutom roms were installed on either slot just basically a modded rooted with custom recovery on slot B. So basically i can't just ( fastboot flashing lock ) the BL W/O having a brick after or some kind of issue. weird slot B is running build # ppr1-181005-034 and using elementalx kernel that was baked into the twrp i flashed and i believe it's pre- rooted. Slot A is running bone stock ppr1-181005-076 with the stock pre installed kernel november 5th patch. And iv'e checked and uninstalled magisk and did a root check and it says no root installed on either slot but on slot B i can still get into twrp recovery and it fully works. kinda confused and my mind thinks on slot A thats not modded or anything just the BL is unlocked that i can relock that slot and just leave slot B alone and let it just be there. lol ik i'm prob wrong.
[Essential Phone Guides, News, & Discussion] rignfool:
This is why the title of the thread reads what it does...

You're more than welcome to lock in the state you have... YOU'LL JUST HAVE A PAPERWEIGHT...

Please don't be stupid...
[Essential Phone Guides, News, & Discussion] fastjohnson:
Nah I'm all set. Flashed the images she's locked back up for the next owner. Using it now.
[Essential Phone Guides, News, & Discussion] jmd8800:
Has there been a work around to the "Your device is corrupt......." screen yet? I can see the device with 'fastboot devices' and I get "current-slot: _b" using 'fastboot getvar current-slot' command

sudo fastboot -w returns:

wiping userdata...

Creating filesystem with parameters:

Size: 109642608640

Block size: 4096

Blocks per group: 32768

Inodes per group: 8192

Inode size: 256

Journal blocks: 32768

Label:

Blocks: 26768215

Block groups: 817

Reserved block group size: 1024

Created filesystem with 11/6692864 inodes and 468189/26768215 blocks

target reported max download size of 536870912 bytes

erasing 'userdata'...

FAILED (remote: Erase is not allowed in Lock State)

finished. total time: 0.000s

Any adb commands return: error: no devices/emulators found

Is this going to be a nice attractive paperweight waiting to be used for parts?
[Essential Phone Guides, News, & Discussion] sga999:
I know this is an old thread. But I'll try posting here anyway.

I got a refurb Essential and updated to stock Android 10 (November). I turned on OEM unlocking in Developer options. Unfortunately, I only did fastboot flashing unlock. I did NOT do fastboot flashing unlock_critical. I tried to do it at a later time, after I saw that I should, but it says it's already unlocked, i.e. FAILED (remote: Device already : unlocked!). I made a possibly poor assumption that both unlocks had somehow worked anyway.

Later when trying to flash twrp.img to the opposite slot, it says: FAILED (remote: Error flashing partition.).

I wonder if it is because I didn't do the unlock_critical. But again, I'm not allowed to do that step now.

So I'm wondering if I should LOCK the bootloader, following detailed steps as described a few pages ago. I don't think locking critical step will work since I don't think that was every accomplished.

On the other hand, if the error when trying to flash TWRP is not related to leaving out the critical unlock step, I probably should not go through with the lock procedure. Any advice about what else could have caused the TWRP flash failure? Or if it really is just the fact that I never accomplished the critical unlock, should I just go ahead with the lock steps? And then go through the unlock again, making sure I do BOTH unlocks this time!

Thanks for your help.

EDIT: I forgot to say that the OEM unlocking option is grayed out. If I am able to get it locked, will that option become available again? And then I would be able to turn it on again to try and do both unlocks?

EDIT2: I am able to fastboot flash boot_a boot.img. So the partition is "okay". But not fastboot flash boot_a twrp.img. Does that make any sense? EDIT: Sorry, I think I used buttons to reboot to the bootloader again. That's when I could fastboot flash boot_a boot.img.

EDIT: Maybe this is my last edit! I finally got it to work, but I'm not sure about the steps. After it failed to flash TWRP, I had to reboot into bootloader and do the flash again. There are several threads about doing this, and maybe one of them explains this. I just didn't happen to find that one!
[Essential Phone Guides, News, & Discussion] DAE1964:
https://mata.readthedocs.io/en/latest/

Check out the above link. It explains a lot.
[LG K10 Questions & Answers] thesa08:
Hi guys its me again i have a korean variant of the lg k10 f670L same specs of lg k10 k420N qualcomm variant with 1.5gb ram my problem is i cant seem to access stock recovery tried different combinations still zero what's supposed to be the problem im super clueless i wanted to root my device at the same time install twrp or unlock bootloader but i wanted to check if i can access stock recovery to make a backup

Please help on what to do TIA.
[LG K10 Questions & Answers] pvineeth97:
Extract stock firmware to get stock recovery.
[Tilt, TyTN II, MDA Vario III General] hamudi:
Hello everyone,

Just picked up my first ever PPC and soooooo excited. I've been using nokia phones for over 10 years and finally changed. I was going to get the Tilt but someone on a local forum was in desperate need of cash and sold it to me for $550, and it was only used for 3 months.

Looking forward to make some changes to the phone.

BTW i'm from Canada :)
[Tilt, TyTN II, MDA Vario III General] bapssystupr3m3:
welcome enjoy ur tytn xD
[Tilt, TyTN II, MDA Vario III General] drownage:
welcome... hmm 550 canadian dollars im guessing... I hope its not worth a lot, because you'll see how the lack of video drivers will piss you off... you should have waited for sony ericsson xperia...
[Tilt, TyTN II, MDA Vario III General] JwY:
Congrates. It takes a while to get used to, but you can customize it almost perfectly to your tastes.
[Tilt, TyTN II, MDA Vario III General] hamudi:
yes 550 canadian...i wanted experia but i was dying to get one.

hopefully i can customise it to my needs :D

just have to do lots of reading before I get into ROM cooking etc etc...i'm still a n00b...learning what they all mean haha
[Tilt, TyTN II, MDA Vario III General] drownage:
Cool... good luck... u have all of xda at ur service... people here are awesome :)
[Xiaomi Mi Max Questions & Answers] waqas321:
Hi guys,

I've got a Mi Max 64gb, it was working ok and then it auto updated to MIUI 9 and now i get no signal. If I go into setting, it will show my sim name (three) but thats it. It has no signal and I thus can not make or take calls. The status bar at the top says no service.

I purchased the phone second hand and everything was working fine so did a blacklist check just in case and both IMEI come back clear. Also when I switch from fin network automatically to manual, it will find a few networks but will no connect.

Anyone know what can be wrong? Phone has locked bootloader fyi.
[Xiaomi Mi Max Questions & Answers] waqas321:
Anyone?
[Xiaomi Mi Max Questions & Answers] waqas321:
Ok so I got permission and unlocked the bootloader, installed TWRP and installed RESURRECTION REMIX 5.8.5 for hydrogen but its still showing no signal. Is there a way to check what can cause the problem as I've tried swapping sim trays (have a faulty one as spares).

Please show your holiday spirit and help me :p
[Xiaomi Mi Max Questions & Answers] cobben:
I really have no idea what your problem might be, but the panacea in all weird cases, irrespective of the particular symptoms, seems to be to fastboot flash a official global stable rom with the Miflash tool.

Then you have hopefully a base "known state" to start from.

If you still have no signal, you might well have a hardware problem.
[Xiaomi Mi Max Questions & Answers] waqas321:
Hi Cobben,

Installed global stable rom, still having the same issue. Where do I go from here?
[Xiaomi Mi Max Questions & Answers] cobben:
Hi,

I'm not any kind of expert at these kinds of (radio signal) problems today, though I do have a background in communications electronics construction (c.a. 1980's !)

If you did a complete format of everything before flashing the ROM, and it still doesn't work, I would guess you have a hardware problem.

Of course you want to double-check that your sim cards work in other phones.

I've had some rather weird problems caused by simcards.

You should even ask for a completely new simcard from some provider, and not put it into any other phone first.

How you could go about verifying that you truly have a hardware problem, without handing it over to a service center of some kind for testing, I really don't know.

Perhaps someone else has expertise in this area?

Otherwise, you just write it off as a loss, or sell it on Ebay for whatever you can get.
[Xiaomi Mi Max Questions & Answers] johnmalay:
same with me. my phone not showing signal. the simcard is working before. it show no simcard after i flash twrp and supersu. the problem happen after restart phone. now i'm stuck searching this solution. help me.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] ammad368:
Hello xda members, as title says, i want to install G935U firmware on my T-Mobile device, currently iam on stock T-Mobile firmware (as shown below) ...

Its my first US model device, so bit scared about doing this type of installation, thats why iam here to ask for help ...

So please guide me how to install this U firmware on my T-Mobile device, and is it safe to do it or not, and which files are required for flashing in odin ...

View attachment 4363061View attachment 4363062View attachment 4363063
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] bvzxa3:
I have heard the roms are interchangeable, I would try but this is the only phone I have atm so I dunno
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] ammad368:
Anyone who would like to help ?

I need step-by-step guide ...
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] Erick-kewone:
Just search around the forums, they have a few guides. I would suggest looking at the att and Verizon forums for the s7 edge. The roms are interchangeable

https://xdaforums.com/verizon-s7-edge/how-to/guide-flashing-sm-935u-firmware-verizon-t3415145.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] hpark21:
My phone is G935T and I flashed G935U.

There is no auto upgrade, so it is a bit tedious every time there is new firmware out, manually has to flash, but otherwise it is VERY lean on included applications and also IMHO is lighter on battery usage.

That said, just get the ODIN and both firmwares (G935T firmware as well as G935U firmware).

Then, use ODIN to flash the CP file from G935T firmware and rest of the files from G935U firmware.

Enjoy.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] cnewsgrp:
I also have 935T and updated to 935U few months ago. I get OTA updates regularly
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] hpark21:
Did you flash the U firmware with CP file from T like I did? (Which is preferred since I am still using the phone on T-mobile network)

Whenever I press "check for update", I always get "you have latest" message even when I KNOW there is new one out there.

Perhaps if ALL firmware files are from "U" firmware, maybe it will do auto update (or prompt you for update).
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] justda:
In order to update, you must have all files from the same update. So running the tmobile radio is why it won't update you.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] yetti035:
I can confirm this does work. I just installed the 935U software on my tmobile s7 edge and am now using the phone on Page Plus service. Everything is working great for over 24 hours now.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] ib78:
Hello,

I would like to update my S7 edge G935T to G935U.

THE ONLY PROBLEM is that it is the only phone I have and that I use so I am afraid of blocking it by making its so is it 100% safe to do so? AND can I have a guide?
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] shahab172:
yeah its safe until you do it properly. :)

Use Odin Latest version.

Turn Phone into download mode.

connect to pc using Odin.

Add required files into Odin and hit start. Thats it.

i just updated my T mobile G935T to G935U now and its working fine.

here is download link for firmware.
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] surveyganga:
can you share the download link.

I found a list of firmwares here https://www.sammobile.com/samsung/galaxy-s7-edge/firmware/#SM-G935U

Not sure which one is the right one
[T-Mobile Samsung Galaxy S7 Edge Questions & Answer] abrar92167789:
Just Flashed Latest G935U firmware on my G935T.

Got rid of that Tmobile logo and bloatwares. Everything is working awesome. Faster than ever.

Steps I followed:

Downloaded Latest G935U firmware from Samfrew with TMO CSC.

Flashed AP, CP, CSC (not BL).

Device rebooted and performed a factory reset. Set CSC according to my simcard and finally booted in no time.

All of these took around 15 minutes.

PS

My device was on latest G935T firmware before.

Its carrier unlocked.
[XDA-University] nailyk:
Making Changes and Submitting Patches :D -

​

Way 1. (for recurrent contribute) :

If you have a full build environment setup, the best practice say to not use your build trees for change & submit patches. If you do not have build environment setup, just don't care about this warning ;)

Create a folder (like ~/clones/) where your clones with your changes will reside:

mkdir ~/clones
cd ~/clones

[IMG="mkdir ~/clones"]https://xdaforums.com/attachment.php?attachmentid=4363119[/IMG]​

Go to git where you would make the change and copy the Clone link:

https://github.com/omnirom/android_device_sony_shinano-common.git

[IMG="git clone link"]https://xdaforums.com/attachment.php?attachmentid=4363130[/IMG]​

Go back into your terminal and clone the repo (optional: you can specify the branch name with -b <branch name>), then get into clone folder:

[IMG="git clone shinano"]https://xdaforums.com/attachment.php?attachmentid=4363131[/IMG]​

Now you can make the change using your favorite text editor (<escape> then ':q<enter>' to exit vim :p):

[IMG="vim edition"]https://xdaforums.com/attachment.php?attachmentid=4363137[/IMG]​

git status

It tells you what files you modified(In Red color ) and shows on which branch you're currently on. ;)

[IMG="git status"]https://xdaforums.com/attachment.php?attachmentid=4363138[/IMG]

Now, the committing part,

Run:

git add -A

Run git status again, and it'll show the files in green color, telling you that the changes have been added. ;)

[IMG="git status pending"]https://xdaforums.com/attachment.php?attachmentid=4363140[/IMG]​

Now:

git commit -s

This will commit the changes and open up a Text Editor called NANO. Here you need to edit the commit message that appears at the side of the gerrit window to describe what the patch does. ;)

After writing the commit message, press Ctrl+O and then Enter key to save the commit message and then Ctrl+X to exit the editor. This is the committing part done. :D :good:

[IMG="git commit -s"]https://xdaforums.com/attachment.php?attachmentid=4363148[/IMG]​

Optional (but better ;)): you can control what your commit changed, then rework if necessary (see last part of the guide):

git diff HEAD^

[IMG="git diff HEAD^"]https://xdaforums.com/attachment.php?attachmentid=4363158[/IMG]​

Now submitting the patch -

You need to catch the project path from the Gerrit interface. Go into project, list, and find the repository you changed:

[IMG="gerrit project path"]https://xdaforums.com/attachment.php?attachmentid=4363174[/IMG]​

Here the path is android_device_sony_shinano-common. It could include a 'sub-folder' like LineageOS do. For example, same repo on Lineage will be LineageOS/android_device_sony_shinano-common.

WARNING: path is case sensitive.

Go back to your shell and type:

git push ssh://<username>@<gerrit address>:29418/<repo path> HEAD:refs/for/<branch name>

[IMG="git push"]https://xdaforums.com/attachment.php?attachmentid=4363187[/IMG]​
[XDA-University] nailyk:
Way 2. (for punctual contribute) :

Log-in into the Gerrit instance you want to commit into. Go into 'Projects', list, then choose the repo you want to make the change in:

[IMG="gerrit project select"]https://xdaforums.com/attachment.php?attachmentid=4363174[/IMG]​

Hit the 'Create Change' button:

[IMG="Gerrit CreateButton"]https://xdaforums.com/attachment.php?attachmentid=4363248[/IMG]​

This open a popup asking for some information:

Select branch for new change: the branch you want to commit in,

Enter topic for new change: leave empty

Description: Enter commit message

Finally hit Create

[IMG="fillchange"]https://xdaforums.com/attachment.php?attachmentid=4363249[/IMG]​

Now your change page is open, you can start editing files with the Edit button on the right:

[IMG="Gerrit Edit Buton"]https://xdaforums.com/attachment.php?attachmentid=4363257[/IMG]​

then Add the file you want change:

[IMG="Gerrit Add file"]https://xdaforums.com/attachment.php?attachmentid=4363259[/IMG]​

The file open in an editor, make the needed changes and save with Save button, then Close:

(Redo the step if you need to change multiples files.)

[IMG="Gerrit editor"]https://xdaforums.com/attachment.php?attachmentid=4363261[/IMG]​

When all your changes are present, hit the Done Editing button to validate your changes.

[IMG="Gerrit done edit"]https://xdaforums.com/attachment.php?attachmentid=4363264[/IMG]​

Your changes are pending and you can display it while clicking on file name:

[IMG="Gerrit done editing"]https://xdaforums.com/attachment.php?attachmentid=4363266[/IMG]​

The changed section is highlighted. If you made a mistake you can use the [IMG="pencil"]https://xdaforums.com/attachment.php?attachmentid=4363274[/IMG] icon:

[IMG="Gerrit check edit"]https://xdaforums.com/attachment.php?attachmentid=4363272[/IMG]​

Use the button to get back on the summary page.

WARNING: your change is only a draft for now, you need to publish it:

[IMG="Gerrit publish edit"]https://xdaforums.com/attachment.php?attachmentid=4363277[/IMG]​
[XDA-University] nailyk:
Ask for review :

Once your commit is on Gerrit you need to setup a reviewer. This person will comment, reject or submit your patch.

Hardest part is to find the reviewer. You can ask in the dedicated IRC chan of your rom, or use some tricks like check who merged the commits into the repo.

Once you find who will be the reviewer, add it on the dedicated gerrit field:

[IMG="Gerrit add reviewer"]https://xdaforums.com/attachment.php?attachmentid=4363195[/IMG]​

Once your commit is ok and you want the reviewer take care of it, set-it 'Code-Review +1' and add a comment (will stay on gerrit) about why this change should be merged:

[IMG="Gerrit review"]https://xdaforums.com/attachment.php?attachmentid=4363196[/IMG]​

Guess what?! Done! :D

Congratulations, you just learned gerrit and know how you use it. I hope you'll send some nice patches and respect the Open Source. :victory:

Credits -
[XDA-University] nailyk:
FAQ

​

Ensure your clone is up to date

Before picking and before writing patch you need to ensure your clone is up-to-date with the remote repository.

Go into the needed folder, then check the remote name:

Here the remote is named 'origin'.

We need to fetch the remote, on the right branch, then switch to that branch:

git fetch <remote name> <branch>

git checkout <remote name>/<branch>

(You can notice in my right prompt the current HEAD changed for remote/<remote name>/<branch name> . It is now up to date. )

Warning: Only the checkout command switch your local tree

Warning: git fetch use space between remote name & branch name but git checkout use slash (/) !

How to test pending changes

To test a change pending on Gerrit you need a working build environment for your rom. This guide will not explain how to set it up.

Once you have located the change you want to test,

go into the corresponding folder. Use the project path for hints:

here folder will be device/sony/msm8974-common.

Next use the download button into Gerrit interface

and copy paste the command in your terminal:

If you have merge conflict you will need to solve (with git mergetool, internet search and brain).

Now you can do this step again to merge other commits, or trigger the build for testing.

Update a pending change

You made a commit but notice some problem and it need to be reworked, without creating another one.

You need to follow the

Ensure your clone is up to date

then

How to test pending changes

with the commit who need reworking.

Once the commit is fetched locally you can make your changes:

Trigger the amend of the commit:

git commit [B]--amend[/B]

The git editor open and allow you to change the existing commit message:

Once your change is done, upload it:

The commit is updated (new Patch Set) on Gerrit (no new one was created):

Setup Gerrit as remote for easy reuse

Typing the push command each times could be painful if you upload patches often.

You can add Gerrit as a remote for easy reuse:

git remote add <local name> ssh://<username>@<gerrit url>:29418/<repo name>

Now you can simply use git push command:

Warning: need to be done in each repos!

Warning: This tip do not prevent typing HEAD:refs/for/<branch> each time !
[XDA-University] nailyk:
reserved
[XDA-University] awab228:
This is absolutely wonderful guide , thank you for your contribution
[XDA-University] Riyad_:
command should be passed before the below command! otherwise it willl show some error!
[XDA-University] Tần Quảng:
Thanks for your guide, however, on the 3.4 or more version has a little change, can you update the article?

In addition, your article has a defective attachment (in "Adding SSH Keys to Your Account"), please fix it!