yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] derrider:
Works like a charm on locked bootloader and 757 KitKat stock ROM

Many thanks munjeni, you are my hero of the day (probably even for a longer time... hehe). :good::good::good:

Frequently searched for an easy way to root with locked bootloader and all that was out there before was going back to JB, unlock/re-lock BL and backup TA partition. And most how-to´s had some open questions, so was more than happy when I found your post here.

Anyways, back to my report:

Rooting worked fine, will monitor for a while and report back if I am finding issues (e.g. reboots, stuck phone etc...). So far all looking great and apps (e.g. ES Explorer, finally can write to external SD with KK!!, AirAudio and AllStream) are getting root.

My phone/FW:

German Z1 compact, bought with JB, then OTA to KitKat (Sony stock .757).

Used ADB connection with fully booted phone (so not via fastboot mode, I guess this would not work with locked BL, as I am not even getting the device to show with ADB this way), using Windows7 64bit and the generic drivers (installed with switched off phone and pressed UP volume key when connecting to PC).

Some notes:

- I have enabled Developer Options (pressing 7 times on the build number at the bottom of the list in the "About phone" screen in Settings)

- under Security Settings, I have enabled "unknown sources" and disabled "verify apps"

- Enabled USB debugging in "developer options"

- connected the phone (fully booted) to my PC and confimred the USB debugging connection (pop up on the phone, asking to confirm/grant USB debugging access)

- enabled "allow mock locations" in "developer options"

- disabled "verify apps over USB" in "developer options"

Unsure if any of the above made it work for me compared to people reporting it does not work, but give it a try, can confirm it worked for me exactly this way

Really grateful for this easy way to root with locked BL when already on KK.

Million thxs to munjeni!
[Xperia Z1 Compact Android Development] paulieboy2112:
I've only enabled usb debugging and unknown sources and it worked.
[Xperia Z1 Compact Android Development] derrider:
Btw., just saw I had CMD still open, so let me post the "log" as well:

C:\Users\Raphael.Koenig>adb push newroot /data/local/tmp/

4009 KB/s (14550976 bytes in 3.544s)

C:\Users\Raphael.Koenig>adb shell chmod 755 /data/local/tmp/newroot

C:\Users\Raphael.Koenig>adb shell /data/local/tmp/newroot doit

....................................

NEWROOT v1.5 FOR XPERIA Z1 COMPACT

BY MUNJENI @ 2014

This might work on most Xperias

credits to libexploit by Towelroot

credits to wp mod by MohammadAG

Thank you guys!

....................................

ro.build.product=D5503

ro.build.id=14.3.A.0.757

kernel version=3.4.0-perf-g6f5bf40

Rooting your phone...

3+0 records in

3+0 records out

3 bytes (3B) copied, 0.000325 seconds, 9.0KB/s

installing chargemon script...

installing Supersu, su, busybox...

system/

system/etc/

system/etc/install-recovery.sh

system/app/

system/app/Superuser.apk

system/xbin/

system/xbin/busybox

system/xbin/su

system/bin/

system/bin/chargemon

system/bin/recovery.munjeni.gz

linking busybox...

cleaning up...

You phone will reboot when finish. Enjoy!

16 com.koushikdutta.superuser
[Xperia Z1 Compact Android Development] munjeni:
Probably newroot is working on JB too but somebody need to confirm. I have automated kernel wp mod module ver magic autopatcher so probably module will work on all kernel versions including other phones like Z1, Z2 (recovery will not work since recovery is for Z1C only)... somebody need to test and confirm.
[Xperia Z1 Compact Android Development] munjeni:
[MENTION=1445405]derrider[/MENTION] option "enable usb debuging" is enought, other things is realy not needed! Option "untrusted apps" I have never checked since its dangerous since some harm sites will install whatever he want to your phone without your confirmation! Better idea to all is to uncheck "untrusted apps" .
[Xperia Z1 Compact Android Development] optic-XPERIA:
is working perfectly:thumbup:

but i have a question

how i can go to cwm recovery?
[Xperia Z1 Compact Android Development] munjeni:
On blue led blinking press volume up or volume down one time and you are in recovery.
[Xperia Z1 Compact Android Development] optic-XPERIA:
excellent work!
[Xperia Z1 Compact Android Development] marius.a:
Great work, munjeni, thanks.

Sent from Sony Xperia Z1 Compact
[Xperia Z1 Compact Android Development] Un|mAtr|XzEr0:
I asked on another thread, but it is interessting for me. Does pc need to be connected to the internet while rooting the phone.?

Send from my Z1C with Tapatalk
[Xperia Z1 Compact Android Development] sinnadla:
Amazing!!

Thx a lot
[Xperia Z1 Compact Android Development] mosespl:
Really Really amazing!!

Really fast and easy:)

Thx a lot man!
[Xperia Z1 Compact Android Development] munjeni:
No need internet!
[Xperia Z1 Compact Android Development] nodeffect:
Just want to ask... I'm on 757 now.. And want to root my phone... If there's a new version in future do I have to unroot using this tool again for new updates? And btw, with the bootloader still locked, can I flash other roms? This tool won't be able to unlock the bootloader right? Thanks a lot...
[Xperia Z1 Compact Android Development] Iruwen:
You can flash ROMs that don't need a special kernel, so you can't flash CM or any ROMs based on it which are the most.
[Xperia Z1 Compact Android Development] maxip:
Thanks for this but I'm being a bit thick.

I've installed / updated Sony USB drivers and tried 2 different USB ports but I just can't get phone to connect. When I run adb devices, I see no devices listed and if I try & push files, get error 'device not found' or 'device offline'.

I have tried USB debugging on / off and device is in Media Transfer mode but I just can't get it to push / install.

Any suggestions appreciated.
[Xperia Z1 Compact Android Development] munjeni:
Use adb.exe, AdbWinUsbApi.dll and AdbWinApi.dll from the latest flashtool! Allso make sure you have rebooted your pc after usb drivers instalation!
[Xperia Z1 Compact Android Development] militiaOfDeath:
Thanks for this! Been waiting for this "1-click-root". Took like 30 seconds all in all. Great work!
[Xperia Z1 Compact Android Development] nodeffect:
If I flashed a custom rom.. How can I revert everything back to stock if my phone needs warranty?
[Xperia Z1 Compact Android Development] Un|mAtr|XzEr0:
RTFM from first post [emoji6]

Send from my Z1C with Tapatalk
[Xperia Z1 Compact Android Development] munjeni:
You can ask in general section! ;)
[Xperia Z1 Compact Android Development] maxip:
I thought I had the latest ADB but downloaded from flashtool and it worked !

Thanks again.
[Xperia Z1 Compact Android Development] Crean:
At the first look it works... but I want to change the Superuser APK... I want to change "Superuser" from CLOCKWORKMOD to SuperSU from Chainfire... is it possible?

Regards

Crean
[Xperia Z1 Compact Android Development] munjeni:
Why you want to change since root working perfectly?
[Xperia Z1 Compact Android Development] Crean:
OK... root works fine... but some APPs "say" that they need a better Super User APP...so I want to change to Chainfires SuperSU...

But now I installed an customer ROM... jfxperias's KitSlim_AMG... working fine...

Regards

Crean
[Xperia Z1 Compact Android Development] djdana:
Waited a long time and can confirm it works

Many thanks
[Xperia Z1 Compact Android Development] Un|mAtr|XzEr0:
Works as well, i'm happy

Send from my Z1C with Tapatalk
[Xperia Z1 Compact Android Development] munjeni:
Source code of the my tool is available for download! ;)
[Xperia Z1 Compact Android Development] Lasantha:
Does work on 4.4.4?
[Xperia Z1 Compact Android Development] Pakman123:
working on 14.4.A.0.108 Android 4.4.4 KitKat :good:
[Xperia Z1 Compact Android Development] nodeffect:
I love the fact that you also sharing the source code unlike other selfish devs...good for you!... Keep up the good work buddy!
[Xperia Z1 Compact Android Development] kostas-k:
Just rooted on Kitkat and everything works fine.

excellent job
[Xperia Z1 Compact Android Development] Jaevlar:
This is awesome!

Can also confirm it works with newest 4.4.4.:good:
[Xperia Z1 Compact Android Development] derrider:
Yep, same here. BL locked, previously rooted (using this "newroot") the stock 4.4.2 build 757. OTA update would not work, so updtaed to 4.4.4. with PC companion and applied "newroot" again. No problem.Great work Sony ;)
[Xperia Z1 Compact Android Development] hottomato:
Can you confirm r/w access on 4.4.4 as some people on other threads have suggested it doesn't root.
[Xperia Z1 Compact Android Development] -AdMiRaL-:
In order to update via OTA you need to unroot before :)
[Xperia Z1 Compact Android Development] pixel81k:
LBE not able to receive root access

LBE Security Master cannot get root access, other apps (like titanium backup, xposed framework...) do..

any suggestion?

Thanks alot for this easy method!!! works great !!
[Xperia Z1 Compact Android Development] yankoscage:
Awesome WORK!

Working on a previously rooted Z1 C6943 flashed with C6903 .681 Firmware.

Updated to C6903_14.4.A.0.108_Generic FR 1276-5833_R5C (4.4.4) through Flashtools, ran script and voilá! Rooted to the hell! :laugh:

Not installed Super SU yet - in process of installing custom recovery now.

Root Explorer Root - Working

Titanium Backup Pro Root - Working

Xposed v33.36570c - Working

Seraj Xperia KK Module v2.6 - Working

[MENTION=4120742]munjeni[/MENTION]

During root the following message appeared. Any concerns?

....................................

NEWROOT v1.5 FOR XPERIA Z1 COMPACT

BY MUNJENI @ 2014

This might work on most Xperias

credits to libexploit by Towelroot

credits to wp mod by MohammadAG

Thank you guys!

....................................

ro.build.product=C6903

ro.build.id=14.4.A.0.108

kernel version=3.4.0-perf-g0109737

Your device: C6903 is not D5503 so you will need to replace recovery.munjeni.

.gz in /system/bin when you finish root!
[Xperia Z1 Compact Android Development] derrider:
thx, I know, but I´m lazy and would have been one additional step. to unroot I need to connect to PC anyways ;)
[Xperia Z1 Compact Android Development] nxkr:
im getting device is offline ?

---------- Post added at 01:45 PM ---------- Previous post was at 01:27 PM ----------

DONE had to update SDK tools
[Xperia Z1 Compact Android Development] nxkr:
Is recovery working on 4.4.4 ?? recovery with root is old i think cause i cannot navigate back
[Xperia Z1 Compact Android Development] nk1001:
install the new one at http://nut.xperia-files.com/ ;)
[Xperia Z1 Compact Android Development] munjeni:
LBE security not working with any of the xperia z1c roms, I have tested and I can confirm these apk is bul****!
[Xperia Z1 Compact Android Development] munjeni:
New version is out!

Changelog:

- Xperia Z1 (C6902, C6903, C6906, C6943) now have recovery (version by me) installed by newroot! You no need any external recovery now, just simple reroot (unroot than root) your phone with newroot!

Enjoy!
[Xperia Z1 Compact Android Development] damkol:
Works fine with 14.4.A.0.108. Thanks!
[Xperia Z1 Compact Android Development] toxic_garden:
fun thing when trying to use your tool: rooting works just fine on 14.4.A.0.108 DE unbranded. But recovery doesn't seem to get installed. This is what i get:

Your device: D5503 is not D5503, C6902, C6903, C6906 or C6943 so you will need to replace recovery.munjeni.tar.gz in /system/bin when you finish root since only listed models is supported with my recovery!
[Xperia Z1 Compact Android Development] munjeni:
Problem not afect rooting but in any way thank you for bug report! New version is out, problem is solved! :)

Changelog:

- solved mess in board detection logic
[Xperia Z1 Compact Android Development] toxic_garden:
thanks a lot for the quick response. Everything works like a charm now. Perhaps you might want to add a short notice about the usage of CWM (e.g. swiping left for going back in the menu options)? I at least was a bit confused for some seconds. ;)
[Xperia Z1 Compact Android Development] lebartman:
So perfect, thank's Munjeni
[Xperia Z1 Compact Android Development] g27:
please munjeni can you explain the methode to aply your neew root ?

j dont understand anything withe the adb file ......

you can do an exe file please ?
[Xperia Z1 Compact Android Development] g27:
C:\Users\Greg\xroot>adb push newroot /data/local/tmp/

push: newroot/tools.tar.c -> /data/local/tmp/tools.tar.c

push: newroot/system.c -> /data/local/tmp/system.c

push: newroot/rootme.c -> /data/local/tmp/rootme.c

push: newroot/newroot.c -> /data/local/tmp/newroot.c

push: newroot/makefile -> /data/local/tmp/makefile

push: newroot/libexploit.c -> /data/local/tmp/libexploit.c

push: newroot/killric_mod.c -> /data/local/tmp/killric_mod.c

push: newroot/defines.h -> /data/local/tmp/defines.h

push: newroot/busybox.c -> /data/local/tmp/busybox.c

9 files pushed. 0 files skipped.

2073 KB/s (88472633 bytes in 41.658s)

C:\Users\Greg\xroot>adb shell chmod 755 /data/local/tmp/newroot

Unable to open /data/local/tmp/newroot: No such file or directory

?????????????
[Xperia Z1 Compact Android Development] DomusX10:
I have update my Z1c to latest version of ROM (4.4.4) official by sony...

How root my phone, for have SD writable and app to SD?
[Xperia Z1 Compact Android Development] g27:
the second line

C:\Users\Greg\xroot>adb shell chmod 755 /data/local/tmp/newroot

doesn t work for me

it say

Unable to open /data/local/tmp/newroot: No such file or directory

????????

---------- Post added at 11:29 AM ---------- Previous post was at 11:18 AM ----------

j don t understant what the matter with this newroot tool ?

my bootlooder is not unlocked is for this reason ?

why it say unable to open /data/local/tmp/newroot: No such file or directory
[Xperia Z1 Compact Android Development] g27:
j reinstal the room

with wip and j lose all my data an d app

and it didn t work !!!!

what the matter

j m alone !

---------- Post added at 10:51 AM ---------- Previous post was at 10:48 AM ----------

C:\Users\Greg\xroot>adb push newroot /data/local/tmp/

push: newroot/tools.tar.c -> /data/local/tmp/tools.tar.c

push: newroot/system.c -> /data/local/tmp/system.c

push: newroot/rootme.c -> /data/local/tmp/rootme.c

push: newroot/newroot.c -> /data/local/tmp/newroot.c

push: newroot/makefile -> /data/local/tmp/makefile

push: newroot/libexploit.c -> /data/local/tmp/libexploit.c

push: newroot/killric_mod.c -> /data/local/tmp/killric_mod.c

push: newroot/defines.h -> /data/local/tmp/defines.h

push: newroot/busybox.c -> /data/local/tmp/busybox.c

9 files pushed. 0 files skipped.

2073 KB/s (88472633 bytes in 41.658s)

C:\Users\Greg\xroot>adb shell chmod 755 /data/local/tmp/newroot

Unable to open /data/local/tmp/newroot: No such file or directory

---------- Post added at 11:38 AM ---------- Previous post was at 11:38 AM ----------

the second line

C:\Users\Greg\xroot>adb shell chmod 755 /data/local/tmp/newroot

doesn t work for me

it say

Unable to open /data/local/tmp/newroot: No such file or directory

????????

---------- Post added at 11:29 AM ---------- Previous post was at 11:18 AM ----------

j don t understant what the matter with this newroot tool ?

my bootlooder is not unlocked is for this reason ?

why it say unable to open /data/local/tmp/newroot: No such file or directory
[Xperia Z1 Compact Android Development] DomusX10:
so, for root latest update??

This tool don't work?

I don't want to block my new phone or losing data...this is the only way for root?
[Xperia Z1 Compact Android Development] _katho_:
It works.
[Xperia Z1 Compact Android Development] munjeni:
You downloaded source code of the newroot tool instead of the newroot tool! Next time carefully read first post and I am sure you will root your phone! ;)
[Xperia Z1 Compact Android Development] munjeni:
You can ask in general section since our thread is not related to the things you asking!
[Xperia Z1 Compact Android Development] g27:
solved
[Xperia Z1 Compact Android Development] poolmaker:
[MENTION=4120742]munjeni[/MENTION] why installing latest version of busybox (Stericson) disabling enter to recovery?
[Xperia Z1 Compact Android Development] munjeni:
One good question... why you need latest busybox? Our Miui busybox is realy good, I using them on every rom and I am realy satisfied with them, I can see no reason replacing them!
[Xperia Z1 Compact Android Development] poolmaker:
Understand yours point of view.

Let me answer with another question.

Why not latest busybox?

Never had problems before..
[Xperia Z1 Compact Android Development] munjeni:
"Latest" not mean "always better", sometimes "oldest" is better than "latest one" ;)

You installing busybox manually or you using an installer? If possible give me a link to the package you using, I will check!
[Xperia Z1 Compact Android Development] munjeni:
And one more question... why you need latest busybox (what is in latest busybox but missing in Miui busybox)? I will be glad if you explain me diferencie!
[Xperia Z1 Compact Android Development] poolmaker:
Yes, know that.

Like i said i never had problem with latest (any of them) vesrsion of busybox.

Maybe i vas lucky enough?

This one version is easy to test with others kernels/devices/recoveries.

Honestly, i think problem isnt on her side.

I dont need, i just want latest busybox.

edit:

Installer method.
[Xperia Z1 Compact Android Development] munjeni:
Busybox from newroot is latest one from Miui and I can say (for my needs) it is better than any other :) . These busybox is used on every Miui rom (with reason). Your choice...
[Xperia Z1 Compact Android Development] poolmaker:
Well, bug exist.

At least other users now know that.
[Xperia Z1 Compact Android Development] munjeni:
I just want to check your busybox installer... do you want to give me url link to these busybox installer?
[Xperia Z1 Compact Android Development] poolmaker:
https://play.google.com/store/apps/details?id=stericson.busybox&hl=en
[Xperia Z1 Compact Android Development] poolmaker:
Like i said i never had single problem with Stericson busybox til now.

Different devices, version of android, different roms..

This includes yours .757 Z1compact rom for example and few more roms and combination for Z1 compact.

4.4.4 stock RU firmware, yours root exploit and Stericson busybox and boom.

Sounds to me that root of problem is somewhere in yours root package.

p.s. "Re-flashing" new root exploit solves situation.
[Xperia Z1 Compact Android Development] coolkoushik07:
Most probably due to some lzo compression.. U will get more info on nut's thread.. This recovery is based on that compression and with newer busybox that is not supported.. Thats thr reason.. If u want new busybox then forget this recovery and use recovery that is present on kernel..
[Xperia Z1 Compact Android Development] poolmaker:
Im back for now on miu busybox, later i will consider other options.
[Xperia Z1 Compact Android Development] munjeni:
I have no idea whats happening with that, but from my tests I have noticed next strange things (in steps):

1. installed busybox from playstore

2. looked into /system/bin for possible chargemon deletion but noticed chargemon script is still there!

3. now I have thinked about bad permissions and ownership of the busybox but noticed nothing strange there

4. when rebooted my phone, chargemon script is not executed (no leds indication which mean no script executed), so thats realy strange since booth files busybox and chargemon is there! It must work, I do not know why chargemon script is not executed by init***.rc from ramdisk!!!

So definitelly I think these busybox have isue! If you replace busybox with one for example Miui one, you will notice chargemon execution! I think these busybox is not static binary which break things here! Somebody confirm this?
[Xperia Z1 Compact Android Development] poolmaker:
Maybe this latest one (28 jun) have bug.

Tomorrow or day after tomorrow i will try with older Stericson versions.
[Xperia Z1 Compact Android Development] munjeni:
I have tried new version and must say busybox not working... I will solve problem tommorow, sorry! :(
[Xperia Z1 Compact Android Development] peca89:
Hi,

I just updated to 14.4.A.0.108 via PC Companion and I'm looking for a way to root. Is there any functional difference between munjeni's "newroot" tool and zxz0O0's "Easy Root Tool" except the way it is applied (single binary vs script and multiple files) ? Does this disable RIC and make /system permanently writeable?

Appreciate your work and thanks!
[Xperia Z1 Compact Android Development] munjeni:
Yes its full functional ! But do not replace busybox since you will lose recovery and root, I will add support for diferent busybox soon !
[Xperia Z1 Compact Android Development] acme64:
D:\downloads\android>adb push newroot /data/local/tmp/

error: device offline

I just updated the SDK with SDK manager, what am i missing

edit* spoke too soon, forgot i had a old version of adb in the same folder.
[Xperia Z1 Compact Android Development] munjeni:
I going to delete all my threads from Xperia Z1 Compact forum.
[Xperia Z1 Compact Android Development] yankoscage:
What?? Why??

:eek:

[MENTION=4120742]munjeni[/MENTION]

Why you're doing this? What happened??

It works like a charm!
[Nexus 5 Q&A, Help & Troubleshooting] mgerard:
Not really sure how it was solved but tried it one more time and it finally worked.

I am trying to use the Encrypt Phone on the new 4.4.3 and I start the steps to do the initial encrypting I enter my password then it should go into encryption but the only thing that happens is my phone reboots and never encrypts. Not to give a long story here but I have used encryption in 4.4.2 and had no issues, 4.4.3 was after a full reset and fresh image pushed to the phone. Any thoughts? I hate to attempt a reset again.

Thank you,

-G
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
It's been like that for a while as far as I know - as you found out, trying again worked.

Sent from my Nexus 5
[Nexus 5 Q&A, Help & Troubleshooting] mgerard:
Yea, I had not had this one before. I had tried it so many times until it just worked. I wish I knew what steps it was that solved it but of course it could have been totally random. One thing I have noticed that fully encrypted on 4.4.3 has no lag that I can see. On the previous release I had noticed a slight change.
[Nexus 5 Q&A, Help & Troubleshooting] Elluel:
I never encrypted my phone but I've randomly peeked at threads, one being this one: http://xdaforums.com/showthread.php?t=2519762

It does seem to be random - and it's happened for a while.

Sent from my Nexus 5
[LG G Flex] Visa Declined:
Read this article http://www.androidpolice.com/2014/0...ve-and-maybe-almost-any-other-current-device/

If it works, get your little butt back here and tell us.
[LG G Flex] dgomez720:
This seems like Iit would only be for a device on AT&T or Verizon. I'm hesitant to attempt this method on my flex. I would be OK with giving it a go if I had a back up phone JIC
[LG G Flex] sweets55:
Autoprime posted this in his root thread. Should work for any device before June third. 4.3
[LG G Flex] mrksbrd:
Ran it on the AT&T D950 bone stock running 4.4.2 and according to root checker it says it's rooted....WHOOOOT !!!!!
[LG G Flex] nooganator:
I just tried rooting my g flex D950G Rogers Canada Variant on 4.2.2 with this tool and it worked! Haven't tried installing a custom recovery yet but i have installed xposed and gravity box and its confirmed working
[LG G Flex] concavecat:
I'm about to try this for myself. I plan on using an existing CWM (I'm on 4.2.2), flashing stock KK, and rooting with Towelroot. Will I lose my CWM?
[LG G Flex] gadomido:
this works on my flex d958( kitkat) , great work
[LG G Flex] sk337sk337:
Works on my AT&T G Flex.
[LG G Flex] mattwheat:
I got a buddy that's been waiting on root method for his AT&T GS5 on 4.4.2 and he tried it today with success. Just download the apk and click "make it rain".
[LG G Flex] cuchumino:
Worked here too!

This worked on my phone as well.

That is, ATT LG G Flex 4.4.2.

Time to try a new ROM! :D
[LG G Flex] Visa Declined:
Cool, glad to see this worked. We need a freaking recovery now so we can flash zip files.