yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 General] Razvan:
Lollipop threads already exist here:

http://xdaforums.com/note-4/general/lollipop-variants-roll-t3029201

http://xdaforums.com/note-4/general/n910c-5-1-1-arrive-t3186808

Thread closed

R_a_z_v_a_n

Forum Moderator
[P3300, MDA Compact III  Accessories] pg2005:
Does anyone know, if it is possible to connect a camera with bluetooth to a ppc? Example, bluetooth camera faces you and you can see the live picture on screen?
[XDA Assist] XDA Visitor:
please help me with the tar file for stock rom
[XDA Assist] jd1639:
Hi, thank you for using XDA Assist. First please register here so you can enjoy all XDA has to offer, http://xdaforums.com/register.php. Then you're going to want to flash the stock firmware using Odin. This is not specifically for your variant of the tab 3 but the process is exactly the same, http://xdaforums.com/register.php. Just make sure you download the stock firmware specifically for the smt-310 from sammobile. Also see your device's specific forum here, http://xdaforums.com/galaxy-tab-3. If you have further questions you can ask in that forum, after you've registered.

Good luck!
[HTC One X] milda25:
Hi devs,

I would like to ask you about this problem:

Many times I have compiled succesfully CM ROM (12.1) without any problems. Compiles still the same (same machine, same OS, ...) and since yesterday I get this error. I can not solve it. Please, does anyone know what to do?

Thanks in advance.

target Strip: recovery (/root/android/system/out/target/product/endeavoru/obj/EXECUTABLES/recovery_intermediates/recovery)
----- Making recovery image ------
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: nelze získat informace o*„/root/android/system/out/target/product/endeavoru/root/init.recovery.*.rc“: Adresář nebo soubor neexistuje
make: [/root/android/system/out/target/product/endeavoru/ramdisk-recovery.img] Error 1 (ignored)
/root/android/system/out/target/product/endeavoru/recovery.img maxsize=8562048 blocksize=4224 total=7170048 reserve=88704
Made recovery image: /root/android/system/out/target/product/endeavoru/recovery.img
target Java: org.cyanogenmod.platform.sdk (/root/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes)
javac: file not found: /root/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java
Usage: javac <options> <source files>
use -help for a list of possible options
make: *** [/root/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes-full-debug.jar] Error 41

#### make failed to build some targets (03:30 (mm:ss)) ####
[HTC One X] teemo:
Same error here. Ask if they solved it.

http://xdaforums.com/galaxy-s5/help/kltechnduos-compile-error-t3134865
[HTC One X] milda25:
Unfortunatelly, still no reply on linked thread :(
[HTC One X] rafitcu:
I have the same error, see if someone can help us
[HTC One X] teemo:
Which Java do you build with?

Kitkat: Java 6

Lollipop: Java1.7

Did you try to make clean or clobber or simply "rm -rf out" ?
[HTC One X] milda25:
Using Java 1.7 from time of first build CM 12.1. No problem with it till now. Yes, tried rm -rf out, I got same error after almost 4 hours of building. Sorry, I'm noob, so I don't know, what "make clean" or "clobber" is.
[HTC One X] teemo:
I don't remember the difference of clean and clobber, they delete old files before compiling. But rm rf out does the same, just faster.

Is there other errors above or is it only this error 41?
[HTC One X] milda25:
All errors is in my initial post. First error is error 1. Don't know if this errors depends one on second ...
[HTC One X] biktor_gj:
At your sorce dir, go to vedor/cmsdk, then run:

git reset --hard

After it finishes, go back to your source folder and run:

repo sync

That fixed that exact same error for me. It feels like there's some commit not going through when you simply do a repo sync or something..

Credits where they're due: http://forum.datadevelopement.com/o...building-lollipop-oneplus-one-t2947949/page37

Good luck!
[HTC One X] teemo:
Are you doing forced sync?

These days we sometimes need to

repo sync --forced-sync
[HTC One X] milda25:
[MENTION=3051472]bigtor[/MENTION]_gj, [MENTION=698346]teemo[/MENTION] Thanks for the tips, will try ASAP and send a feedback.
[HTC One X] rafitcu:
target Java: org.cyanogenmod.platform.sdk (/home/rafitcu/Android/Cm12.1/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes)
javac: file not found: /home/rafitcu/Android/Cm12.1/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java
Usage: javac <options> <source files>
use -help for a list of possible options
make: *** [/home/rafitcu/Android/Cm12.1/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes-full-debug.jar] Error 41

#### make failed to build some targets (02:02:04 (hh:mm:ss)) ####

No solved for me :(
[HTC One X] da_reeseboy:
Jumping in here - I'm having the same issue building pac for the lg g2. The last successful build I had was on 8/30. Since then, I've gone as far as formatting my build box and reloading ubuntu, then getting a fresh sync - still no success. (I thought it might have been an update to Ubuntu that messed it up)

I'm still looking for a solution as well.
[HTC One X] milda25:
Same last sucessful date here :(
[HTC One X] rafitcu:
You have given me an idea, I am testing a solution and so far it seems to work, if the compilation ends successfully, the share here.
[HTC One X] milda25:
Unfortunately, git reset --hard and repo sync --force-sync doesn't solved the problem. Still same error on same position of building :(
[HTC One X] da_reeseboy:
What java version is everyone using? Run java -version and put the results here.

reeseboy@BuildBox:~$ java -version
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.15.04.1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
[HTC One X] da_reeseboy:
I switched from OpenJDK to Oracle's JDK... no difference. I just found the vm I started building on in July, untouched with no updates done. I will resync and try a build on it to see if its an update to one of the packages installed for building that is causing the issue.

...This will take some time...
[HTC One X] teemo:
http://forum.cyanogenmod.org/topic/115010-build-fails-javac/

Edit: Is THIS your issue ?
[HTC One X] da_reeseboy:
Thank you for the responses - those are both along the lines of the issue. The first post never mentioned what he deleted tho. The second one is definitely related as I can make it further in my build before failing when I revert that commit, but it still fails.

As few posts as there are online about having this issue, I don't think a commit is directly causing it, otherwise there wouldn't be any successful builds from anyone for the last couple weeks. I think its related to a security update that a few of us did, and most of the devs don't update if its not broken lol. I should know this afternoon...

Edit: I mean its an incompatibility between the changes to cmsdk and some security update I did.
[Xperia Z General] Ben Ling:
Hello Everyone :)

Sony has started to roll out the Android 5.1.1 Lollipop update for the Xperia Z.

Thus,I have created this firmware with pre-rooted tool & added SuperSu, Xposed Framework & also XZDualRecovery 2.8.23

You will need to have an Xperia Z C6603 running stock 5.0.2 / 5.1.1 firmware with rooted & custom recovery ( prefer TWRP ) installed in order to flash the zip.

It will only work on locked bootloader.

If you want to get Z5 user interface, visit here

[YOUTUBE]1ih7pHJq6hY[/YOUTUBE] [YOUTUBE]4F3SjzFsqDI[/YOUTUBE]

[YOUTUBE]md-Nm7aM9Es[/YOUTUBE]

Installation:

1. Put the zip in your internal / external storage

2. Boot into recovery

3. Flash the zip

4. Wipe data / cache & dalvik

5. Reboot

6. Let the device optimize

7. Install the Xposed Installer Apk & Install Update

8. Done

Download:

Google Drive

C6603 5.1.1 10.7.A.0.222

C6603 5.1.1 10.7.A.0.228

Fix For Recovery Cannot Mount System

XZDR Installer ( Only Can Use Computer To Fix )

http://d-h.st/wMMT

Install This To Get Xposed Framework

Xposed Installer Apk

Credits:

zxz0O0 For The PRFCreator

LaguCool For The XperiFirm

[NUT] For The XZDual Recovery

Chainfire For The SuperSu

​
[Xperia Z General] BaDKaRmA:
Thanx Ben :). Should I directly flash it on 5.0? I dont Want to loose my data and does it include kernel also?
[Xperia Z General] comax70:
Megaupload please

Inviato dal mio D5803 utilizzando Tapatalk
[Xperia Z General] Ben Ling:
yes just flash it ;)

works perfectly for me
[Xperia Z General] mkryvz:
any screenshots?

its downloading
[Xperia Z General] hoangquy54:
Thanks, my Xperia Z is C6606 and 4.4.4 (c6603 rom). Should I flash 5.0.2 first or flash this 5.1 rom directly? :confused:
[Xperia Z General] sontran_vietnam:
Too fast, too Furious, Thank you
[Xperia Z General] Ben Ling:
Basically looks identical

I'll add them asap.
[Xperia Z General] Ben Ling:
Just directly flash this.

Prefer to clear internal storage if you are upgrading from 4.X based rom.
[Xperia Z General] hoangquy54:
Thank you
[Xperia Z General] Ben Ling:
Notification bar may look different as I am using xposed.

Will be adding the screenshots to the OP tmr.
[Xperia Z General] Gamer4Life:
Good for you guys, its unfair that you got the update before z1 :p but i am happy for you
[Xperia Z General] KienLQ:
for c6602???my phone c6602

for c6602???my phone c6602
[Xperia Z General] palaboy:
any idea why there is no certification first? only Philippines & India as of now have latest firmware checked on XperiFirm
[Xperia Z General] Paduretu Ionut:
Hi! After i choose the zip it says set_perm: some changes failed, and it only takes like 2 seconds . Any timps?
[Xperia Z General] blkcr:
Same here. I'm using TWRP. I'll download and try again.

Well, no success. Tried with TWRP (2.8.7.0) and Philz 6.5.8.0.
[Xperia Z General] mkryvz:
Thanks
[Xperia Z General] TrueFriend-cz:
This ZIP is not flashed. ZIP is manually decompress, and 3 ZIP files included. Other files is SIN. Installation Must from PC from tool for flashing. This zip No directly for flashing. Author, please edit installation steps for others. thanx.

Send from my powersuperspeed and calculating machine.
[Xperia Z General] victor141516:
Is this suitable for locked bootloaders?

Thanks
[Xperia Z General] cdou2391:
Yes it is since it's the stock firmware
[Xperia Z General] Ben Ling:
he tried and it worked...
[Xperia Z General] Ben Ling:
not very sure

its up to you if you want to clear or not
[Xperia Z General] Ben Ling:
did you download the latest rom ? because i have already included the fix inside the rom
[Xperia Z General] jpcl01:
yes i download the room yesterday

could you give me the fix ?

because now i cant flash a new room with recovery . if i want i must start from 0 with flashtoll + root + recovery ...
[Xperia Z General] Dadacool:
Ok many thanks ! i hope i dont have same smooth issue ...

I try it now.:good:
[Xperia Z General] boanoite:
hi

Download the rom again,it contains the fix in it!

If that doesnt work i can give you the fix or Ben :)
[Xperia Z General] stukka2006:
I tried several times with no success

In a couple of days I have to travel so I flashed the new german rom.

My next problem is now to root again my xperia z.

thanks for your help!
[Xperia Z General] jpcl01:
hello

yes i donwload this room yesterday and install the room today...

please give me the fix because now it s not possible for me to flash the room with recovery because i have this message when i want to flash a zip : e: unable to mount '/system'

so i must reinstall the292 room whith flashtool and after root and after install recovery and after flash the room 5.1.1 ans after install my data ..and i have no time and i made this 2 time today...

thanks
[Xperia Z General] boanoite:
Hi

Uploading!
[Xperia Z General] jpcl01:
where ?
[Xperia Z General] boanoite:
HI

Right here!
[Xperia Z General] jpcl01:
hello

great thanks

now it s ok with this recovery

i am happy

thanks
[Xperia Z General] datauk:
May I ask what version of recovery you posted for jpcl01 as it also fixed my mounting /system problem too. I had thought that I was using the latest version 2.8.21 but that was the one that was not working.
[Xperia Z General] jpcl01:
how i can find the version of recovery ?

if i know how i can see it i give you the number after

tanhks

---------- Post added at 10:59 AM ---------- Previous post was at 10:46 AM ----------

hello

in the rom on the first post, when i look at Inside i see the date of the file : dualrecovery.sh is 16/07/2015

or in the recovery you give me( this that is ok ), the date of dualrecovery.sh is 08/09/2015

are you sure that the room is in page one is the good with the ok recovery ? and is inclued the fix ?

thanks
[Xperia Z General] freaky2xd:
New Download-Link!

Hey!

The GoogleDrive link above was broken, so i decided to create a zip File....

I used the PFRCreator, of course! You have to Flash the Zip file with TWRP [NUT] XZDualRecovery on a rooted Xperia Z C6603 with the newest Android Kitkat Version! You should reset your Phone completly befor flashing, and after flashing you have to wipe the dalvik/cache... Do not Wipe System or something else via Recovery before Flashing! But make shure that you have a clean rooted KitKat, with SuperSu and BusyBox!

Android 5.1.1

10.7.A.0.222

Xperia Z C6603

Included into the Flashable Zip:

XZDualRecovery 2.8.21

Xposed Framework SDK22 Alpha4 for Lollipop 5.1.X

SuperSU V1.94

All Included files are the newest which are available for the Xperia Z!

I used adfly to shrink the dropbox links... Because of some reasone i cannot post link, please remove the minus (-) between the letters and numbers!

flashable Zip:

h-t-t-p:/-/adf-.ly/-1OMNQY

Xposed Framework APK:

h-t-t-p-:/-/a-d-f.l-y/-1OM-Nsy

XZDualRecovery Installer:

h-tt-p:-//n-ut.xp-eria-files.-com

Maybe you want to watch some of my Youtube Videos, am very excited about every new subscriber! :good:

My Name: Freaky2xd

You`re Welcome!

The flashable zip is working fine on my Xperia Z C6603!

Xposed Framework is also working...

:cool:

Now you have Android 5.1.1 Rooted + DualRecovery + Xposed ;)

---------- Post added at 03:55 PM ---------- Previous post was at 03:51 PM ----------

Ignore this, i need 10 post for the Download link, everthing for you guys :)
[Xperia Z General] boanoite:
hi

Hi,it was a recovery fix dat Ben Ling had here.But now it's included in the rom!
[Xperia Z General] leonaheidern:
This is what I did for mine, I didn't use Ben Ling's Mod because I am from Singapore and I like my chinese and japanese keyboard that comes with the phone

I had a nandroid backup of 5.0.2 so i restored that first and used titanium backup first before installing stock 5.0.2 firmware

I downloaded and install FlashTool from http://www.flashtool.net/downloads.php

1) Flash xperia z C6603_10.6.A.0.454_Customized SG.ftf

I got my ftf here http://xdaforums.com/xperia-z/general/ftf-10-6-0-454-customized-t3114078

for the C6603 10.7.A.0.222 5.1.1 Customized SG.ftf firmware I got it from http://androidhost.org/get/MtARU

recovery method

Use FlashTool navigate to D:\Downloads\Sony Xperia Z\5.0.2.10.6.A.454 dual recovery boot kernel by FastBoot

I got both dual recovery kernels for 5.0.2. version 10.6.A.454 -http://xdaforums.com/xperia-z/developmentkernel-unlocked-bootloaders-t3114234

Then Install TWRP2870StkLP.zip

for 5.1.1 version http://xdaforums.com/xperia-z/development/kernel-ub-t3198491

I got the PRF Creator v1.0 from here - http://xdaforums.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904

I got the RICDefeat.zip from here http://xdaforums.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343

I downloaded BETA-SuperSU-v2.49.zip from http://xdaforums.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133

And I dowloaded XZ-lockeddualrecovery2.8.21-RELEASE.flashable.zip from http://nut.xperia-files.com/

Method

Prepackage the zip file for 5.1.1 using PRFCreator_v1.0

Files are

FTF File - \xperia z C6603_10.6.A.0.454_Customized SG.ftf

SuperSu Zip - BETA-SuperSU-v2.49.zip

Recovery Zip - XZ-lockeddualrecovery2.8.21-RELEASE.flashable.zip

Tick Kernel,FOTAKernel,Modem,LTALabel

Wait and copy flashable-prerooted.zip from PRFCreator_v1.0 folder to external sd card

Turn the phone off then press power, see the blue light and press volume up to boot into recovery.

Flash the flashable-prerooted.zip

Turn off the phone.

Go back to Flash tool and flash D5.1.1 10.7.A.0.222 dual recovery boot kernel by

pressing Volume up and selecting Fastboot and select the down arrow for *img to flash the boot.img

Flash RICDefeat.zip

Turn on the phone and go to SuperSu-->Settings-->Untick Mount Namespace Seperation.

TUrn off the phone then power it on by holding power and volume up to enter twrp recovery.

Try to do a backup of the phone to see if the cannot mount E: /system error occurs

if working backup will proceed as per normal.
[Xperia Z General] RyomaEchizen:
How can i fix ZL lockeddualrecovery?

ZL has the "unable to mount '/system'" problem too :(
[Xperia Z General] Ben Ling:
Okay guys it seems that the problem cannot be solved by that way..

I'll post the fix again
[Xperia Z General] jpcl01:
the fix thread #191 is ok to fix the recovery cant mont system
[Xperia Z General] adilla:
I flashed via flash tool my xperia Z (6603) and now its not rooted, kingo root cant root my phone again (worked on 5.02 not worked in 5.1.1) cant install twrp because not rooted. Any help, tips?
[Xperia Z General] Venhiem:
Hey mate, thanks for this. I have a problem, I flashed this rom and it flashed perfectly, then I wiped Cache and Dalvik Cache. Used TWRP. Then phone booted up and it was all fine, except that when I checked it was still 5.02! It hadn't upgraded to 5.1.1.

For info: I used the file you gave, moved it into SD card, turned phone off, booted into TWRP, and flashed it from SD card, it took a rather short time (6-7 mins) to flash, and it said succesfully flashed.

Any idea what I could do to fix this? Thanks!

I don't want to wipe everything (system, data etc) since making a backup and restoring it takes a long time and I need to use my phone :P
[Xperia Z General] Dadacool:
You need to flash only with TWRP not with flashtool. Flash your 5.0.2 with flashtool back root with kingroot, revert kingroot to SuperSu, install XZDR last version and flash the 5.1.1 in TWRP this time.

Use this for revert Kingroot to SuperSu :

http://xdaforums.com/xperia-z/general/super-su-xperia-device-lollipop-easy-t3119006
[Xperia Z General] adilla:
I use Sony Mobile flasher by Androxide, and get an UK customize LP 5.1.1 (C6603_10.7.A.0.222_1270-7689_R6E) but lose root, how can i reroot again, or need to downgrade, install twrp, and flash zip with a rooted LP 5.1.1?

---------- Post added at 02:10 PM ---------- Previous post was at 02:09 PM ----------

Any link for 5.0.2 flasheable with sony mobile flasher? And i use kingo root, from my pc, easy to use

---------- Post added at 02:17 PM ---------- Previous post was at 02:10 PM ----------

10.6.A.0.454 / R5E think this is 5.0.2, downloading and will flash soon
[Xperia Z General] Dadacool:
No chance for root a 5.1.1, only the pre-rooted ROM work

All FTF u need for 5.0.2 :

http://xdaforums.com/xperia-z/general/ftf-10-6-0-454-customized-t3114078
[Xperia Z General] adilla:
Got an UK customize, waiting now my flasher to prepare :)
[Xperia Z General] Dadacool:
Hello,

Just to be sure... u need the "Fix For Recovery" because you dont want to re-DL the full pre-rooted ROM right ?

Thx.
[Xperia Z General] jpcl01:
no - i donwload and redonwload the full pre-roored rom in page one but with this prerooted it s not ok for me . in recovery i cant install a zip because can t moont system

after i put the fix from my computer and now i can mount system and flash a zip correctly

i am not sur the rom in page one is good for me???

because : in the rom on the first post, when i look at Inside i see the date of the file : dualrecovery.sh is 16/07/2015

or in the fix recovery ( this that is ok ), the date of dualrecovery.sh is 08/09/2015

are you sure that the room is in page one is the good with the ok recovery ? and is inclued the fix ?
[Xperia Z General] Dadacool:
Thank's for reply.

Yes I confirm that, it's my fourth try "because i don't know xposed and i play with" and for the four i need to do the same.

I have try remount-reboot-fix from NUT for the last and seem to be stable :

http://xdaforums.com/xperia-z/orig-development/lb-definitive-root-remount-reboot-fix-t2317432

If it's help...

---------- Post added at 08:05 PM ---------- Previous post was at 07:59 PM ----------

It's my Experience, But all problem come without wiping data...

If you want your data back again it's better to restore when the pre-rooted ROM from Ben is fully rooted/xposed and reboot fine every time.

If you wipe data everything go perfectly.

So a tip for all. before putting it. make a backup of the data partition! ;):good:

And thx Ben Ling !
[Xperia Z General] adilla:
OK, got 5.02. flashed twrp and now can boot on recovery, but google drive dont work, any link??
[Xperia Z General] RyomaEchizen:
But is for Z. Not ZL :confused:
[Xperia Z General] Ben Ling:
try again ?

it works for me
[Xperia Z General] RyomaEchizen:
[MENTION=4931701]Ben Ling[/MENTION] fixed xz_lockeddualrecovery.zip works for ZL/ZR?

I ask because system mount error is present on ZL/ZR too :(
[Xperia Z General] Ben Ling:
open the file and look for the one which has the latest date

Download XZDR for ZL/ZR and replace with the new file
[Xperia Z General] RyomaEchizen:
wow! works great :victory: :victory:

Xperia ZL
[Xperia Z General] adilla:
Yep working from chrome, i usually use maxthon browser, and still not working from there :D
[Xperia Z General] adilla:
Damn, what do i do wrong, flashed my z 6603 with 5.02,rooted and

put twrp, download 5.1.1 put on sd card, and locked my phone (was unlocked bootloader) but now dont start, normal or twrp? Any clues what do i do next?

---------- Post added at 10:35 AM ---------- Previous post was at 10:35 AM ----------

Need to start over, to reflash with 5.o2...?

---------- Post added at 11:20 AM ---------- Previous post was at 10:35 AM ----------

WTF, if i lock my bootloader my phone dont wanna start normal or recovery, if i unlock again its ok, can boot on recovery(twrp 2.8.6) or normal but doesnt install 5.1.1. And by the way xpose installer its for what (im newbie :) )
[Xperia Z General] Ben Ling:
Stay on 5.0.2 with rooted rom & TWRP latest recovery installed.

Install the zip & everything should work fine...

Xposed Installer is for you to install Xposed module & to customize your phone
[Xperia Z General] adilla:
Im 5.02, with 2.8.6 twrp, when i try to install rom said its ok (very fast) but when i start the phone its still on 5.o2 not 5.1.1 (have unlock booloader). If i try to lock bootloader, my phone doesnt start :(

---------- Post added at 11:50 AM ---------- Previous post was at 11:43 AM ----------

Installed 2.8.7 see if now its ok

---------- Post added at 11:52 AM ---------- Previous post was at 11:50 AM ----------

I doubt, cause i have unlocked bootloader, maybe i will wipe all, factory reset..

---------- Post added at 12:12 PM ---------- Previous post was at 11:52 AM ----------

Nah, same. Install from TWRP, said its ok, reboot, android its upgrading to a new versiopn, and same>>>5.02 in the end :(

---------- Post added at 12:48 PM ---------- Previous post was at 12:12 PM ----------

Any tips how i can lock the bootloader, if i try with androxide flasher, my phone dont start :(

---------- Post added at 01:01 PM ---------- Previous post was at 12:48 PM ----------

http://xdaforums.com/xperia-z/general/tutorial-relock-xperia-z-bootloader-t2191907 maybe this will help :(
[Xperia Z General] Ben Ling:
If you have unlocked bootloader, I'm sure it wouldn't work.

If you have locked bootloader, it should work properly without any problem.

Yes you can try to lock your bootloader by that method.