Please Help Rooting Xperia z3 Tablet sgp611 - Xperia Z3 Tablet Compact Q&A, Help & Troubleshooti

I am a complete noob. Never rooted any device. The only reason I'm doing this is my kid wants to do gps spoofing on pokemon go. I've been doing research for a couple of days now. There are many tutorials but all are slightly different.
The reddit page called the number 1 hub for pokemon go spoofing says what I need to do is....
Unlock Bootloader.
Install Magisk.
Install Smali Patcher.
This has proven to be more difficult that I first assumed. So far I have unlocked bootloader but I made a mistake because the first few tutorials I followed said nothing about backing up DRM keys or TA keys. So I guess I have lost that option.
Now I'm trying to install Magisk but apparently I need to do this through TWRP.
So trying to install TWRP. Found the right one for my device on TWRP official website says something about extracting stock boot image and patching but can't find any tutorials on how to do this.
Any help from this point will be much appreciated!
I'm starting to question is any of this actually worth it. If I new it was going to be this difficult before I started I don't think I would of bothered. If I was to change my mind is there a way can restore the tablet to its original state. I've read up a bit about relocking the bootloader but does that mean I've lost DRM keys and TA keys for nothing.(Is that even that big of a deal. Will my tablet not perform as it should without them?) I've read a little about Sony Emma or using the Sony companion to restore the tablet. Does that mean I get the DRM or TA keys back?
Ok so I was unsure if I unlocked the bootloader properly. My dialler app has disappeared so can't check it that way. Trying to check through cmd on minimal adb and fastboot but it just hangs when I type fastboot oem device-info. So I installed sony companion and tried software repair and it said it cant repair as the bootloader has been unlocked.
So that confirms it has definitely been unlocked. Will there be a problem If I Relock and try software repair again?
Ok so I got eager and thought f it. I'm just gonna do it. So I got the twrp.img file, put it in the adb and fastboot folder, in cmd wrote fastboot flash recovery TWRP.img. It looked like everything went ok. I'm pretty sure it said successful. So I'm now trying to boot into recovery mode. Holding down and power on and nothing is happening. Just boots up normally. What am I missing.
I downloaded the twrp app from appstore messed around with a bit and its needs root device not rooted. Did I not do the flash right?
Can I use flashtool to flash twrp.img instead of adb and fastboot?

Related

Installing CWM on 4.2.2 (10.3.1.C.0.136)

I am sorry, I am a Noob, but I learn quick. I also have to post in the noobie forums for a while until I can grow some gills so here goes...
The goal - to install Clockwork Mod Recovery on my SGP312 running 4.2.2 (10.31.1.C.0.136)
Where I am at in the process - my tablet is rooted.
From what I have read, I am lead to believe that ROM Manager can't install just CWM because the recovery boot process on Sony tablets is integrated into the kernel. So I think I need to use adb to get into fastboot mode and flash a boot.img that contains CWM. I also believe that you can't flash a kernel with a locked bootloader. Am I correct so far?
At this juncture I only want to get CWM installed, I'm not ready to actually install an entire ROM yet. "One step at a time grasshopper"
Ideally, I would like to get CWM installed before I unlock my bootloader so that I can make a backup and return to a locked bootloader config if I ever have the need to.
So my question is this: Is there a way to get CWM onto my tablet without unlocking the bootloader? If what I would prefer isn't possible is following and using the boot.img in this thread the next best way of proceeding?
http://forum.xda-developers.com/show....php?t=2433466
Thanks everyone for a) putting up with such a basic set of questions, b) helping me become less of a Noob and c) helping me accomplish what I need to get done.
dph3055 said:
I am sorry, I am a Noob, but I learn quick. I also have to post in the noobie forums for a while until I can grow some gills so here goes...
The goal - to install Clockwork Mod Recovery on my SGP312 running 4.2.2 (10.31.1.C.0.136)
Where I am at in the process - my tablet is rooted.
From what I have read, I am lead to believe that ROM Manager can't install just CMR because the recovery boot process on Sony tablets is integrated into the kernel. So I think I need to use adb to get into fastboot mode and flash a boot.img that contains CMR. I also believe that you can't flash a kernel with a locked bootloader. Am I correct so far?
At this juncture I only want to get CMR installed, I'm not ready to actually install an entire ROM yet. "One step at a time grasshopper"
Ideally, I would like to get CMR installed before I unlock my bootloader so that I can make a backup and return to a locked bootloader config if I ever have the need to.
So my question is this: Is there a way to get CMR onto my tablet without unlocking the bootloader? If what I would prefer isn't possible is following and using the boot.img in this thread the next best way of proceeding?
http://forum.xda-developers.com/show....php?t=2433466
Thanks everyone for a) putting up with such a basic set of questions, b) helping me become less of a Noob and c) helping me accomplish what I need to get done.
Click to expand...
Click to collapse
Sorry, I can't answer you main question - but I can give a bit of advice:
I you are going to unlock your bootloader make sure to back up the "TA" partition first. This contains information such as DRM keys which are specific to your device and cannot be recovered once lost (unlocking the bootloader will wipe the TA partition). Google "Sony DRM TA partition" for more info.
I don't think you have to do a nandroid type backup via CWM before unlocking the bootloader. As long as you've backed up the TA partition I believe you can get back to locked, stock ROM. There is advice in these forums somewhere.
I would really think hard before unlocking the bootloader - why do you want to do this? The stock Sony ROM is pretty good.
Hope the above is of some use - hopefully someone else will reply (and correct me if I've mis-informed you!)
GretaLewd said:
Sorry, I can't answer you main question - but I can give a bit of advice:
I you are going to unlock your bootloader make sure to back up the "TA" partition first. This contains information such as DRM keys which are specific to your device and cannot be recovered once lost (unlocking the bootloader will wipe the TA partition). Google "Sony DRM TA partition" for more info.
I don't think you have to do a nandroid type backup via CWM before unlocking the bootloader. As long as you've backed up the TA partition I believe you can get back to locked, stock ROM. There is advice in these forums somewhere.
I would really think hard before unlocking the bootloader - why do you want to do this? The stock Sony ROM is pretty good.
Click to expand...
Click to collapse
Thx for the advice. I don't really want to unlock the bootloader at this point in time. I would just like to get CMR installed and am looking for a way to do that without unlocking. I have read about backing up the TA but must admit don't fully understand the process. What does TA stand for and how does one go about backing it up?
Answer:
http://forum.xda-developers.com/showthread.php?t=2234627

[Q] Flash APK to Locked Bootloader

I have xperia pro and rooted it with eroot. Bootloader is not unlocked. When I flash APKs using ADB or Fastboot it gives error that device is not rooted but superuser is already there on the phone. I don't know if I can flash APKs to locked bootloader. I tried everything CWM but doesn't go into recovery mode.
rcreation33 said:
I have xperia pro and rooted it with eroot. Bootloader is not unlocked. When I flash APKs using ADB or Fastboot it gives error that device is not rooted but superuser is already there on the phone. I don't know if I can flash APKs to locked bootloader. I tried everything CWM but doesn't go into recovery mode.
Click to expand...
Click to collapse
What do you mean by "flash apk" ? If it is install then adb install apkname.apk should work...
HIT Thanks if you like my post
-------------------------------------------
My work:
[TOOL]Kernel/Boot.img (un)packer
Actually I am trying to install Cybershot APK which will replace my original Camera app but still after rooting it is not allowing to do that.
Is this because I don't have unlocked bootloader???
But in the threads it said that you just need rooted phone.
So please let me know if I can replace standard APKs with custom ones in locked bootloader.
rcreation33 said:
Actually I am trying to install Cybershot APK which will replace my original Camera app but still after rooting it is not allowing to do that.
Is this because I don't have unlocked bootloader???
But in the threads it said that you just need rooted phone.
So please let me know if I can replace standard APKs with custom ones in locked bootloader.
Click to expand...
Click to collapse
Yes, you only need an unlocked bootloader. Mount system as RW. And then replace the cam app in /system/priv-app, but I would suggest you to unlock bootloader, install cwm and make a nandroid
-------------------------------------------------------------------
HIT Thanks if you like my post
-------------------------------------------
My work:
[TOOL]Kernel/Boot.img (un)packer
[ZIP]Flashable zip to bypass lockscreen for LG E975
But can I backup locked bootloader. If in case phone gets issues like bootloop and all can I lock my phones bootloader again.
If I unlocked bootloader then can I able to use repair operation from Sony PC Companion.
Like yesterday I tried to delete all system files from root and my phone was not able to start. So what I have done is repaired it using PC Companion and it has been started.
I mean to say can I backup my existing ROM, bootloader and all and if so can you please let me the process to do so.
Because there are so many threads and there are so many applications to do it and I am not able to figure out the correct procedure.
I also have the RW permissions and can replace the app but its meta files and all will not be replaced then. So do you know method to flash this APK.
rcreation33 said:
But can I backup locked bootloader. If in case phone gets issues like bootloop and all can I lock my phones bootloader again.
If I unlocked bootloader then can I able to use repair operation from Sony PC Companion.
Like yesterday I tried to delete all system files from root and my phone was not able to start. So what I have done is repaired it using PC Companion and it has been started.
I mean to say can I backup my existing ROM, bootloader and all and if so can you please let me the process to do so.
Because there are so many threads and there are so many applications to do it and I am not able to figure out the correct procedure.
Click to expand...
Click to collapse
Bootloop is a different term. It is because of bad ROM, once you unlock bootloader, nothing can relock it except you do it. So nothing to be scared of.
-------------------------------------------------------------------
HIT Thanks if you like my post
-------------------------------------------
My work:
[TOOL]Kernel/Boot.img (un)packer
[ZIP]Flashable zip to bypass lockscreen for LG E975
I tried everything Rom Manager, X-Parts, Recover-X, BusyBox but not able to boot into recovery.
Can anyone help me with this???
I got this working using below thread
http://forum.xda-developers.com/showthread.php?t=1364509
Thanks though...

Can't switch from stock

I'm really out of ideas to what's causing this so I could use some help.
My tablet has been fine for a long time and has had many roms on it previously. I have been on rooted stock however for over a year now and decided to try a rom again....
However I have tried 3 different roms now all with catastrophic problems. I install them fine through twrp along with gapps then reset Tablet but get a black screen with just a blinking charge light if it's plugged in. No boot logo or anything.
I managed to revert back to stock about 5 times today through flash mode and flash tool but I don't know what's going on.
I rooted, turned on debugging and reflashed twrp but it keeps happening across different android versions too. I thought maybe I had relocked bootloader so I tried to check through adb oem but it freezes, so I ran the unlock command just in case through adb and it was fine but still freezes.
Any ideas?
To add to this I just downloaded a dialer app on stock to check bootloader unlock status.
It says bootloader can be unlocked but nothing about its actual status. I'm more or less certain this is the issue now so can anyone advise what to do? I manually tried unlocking bootloader and it just restarted like everything was fine but nothing changed.
SabertoothTitan said:
To add to this I just downloaded a dialer app on stock to check bootloader unlock status.
It says bootloader can be unlocked but nothing about its actual status. I'm more or less certain this is the issue now so can anyone advise what to do? I manually tried unlocking bootloader and it just restarted like everything was fine but nothing changed.
Click to expand...
Click to collapse
I'm not an expert to be honest but I would try that:
put your tablet in fastboot mode, connect it to your pc and in fastboot type
"fastboot flash boot twrp.img"
Now you should have TWRP.
If this work your bootloader should be unlocked otherwise I think you should see some error in fastboot
Once you have twrp I suggest you to flash resurrection remix 5.7.0 (android 6.0.1). I suggest it just because it worked without problem with my tablet Z.
Something not clear to me: you started just with a rooted stock ROM or you unlocked bootloader, flashed TWRP and then your ROM?
I started with rooted stock rom, I am using dual recovery that seems to be working fine (it was faster since its just a bat file). I originally rooted using kingroot on stock which I used to flash stock rom prerooted with supersu with twrp.
If I try the same process with anything that isn't stock it's black screen on reboot. No Sony logo or anything.
Ive tried changing recovery to newest twrp, changing sd card to a different one, different ROMs including the one you mentioned because that's the one I wanted to try. I also tried with and without black kernel. None made any difference. Black screen boot everytime with just a blinking light on side like its got no OS installed at all.
Just to clarify, my bootloader should be unlocked. I've checked but if I run the adb command to check it just freezes like it's eternally loading. Using dialer go check it doesn't even display anything about it aside from the fact it can be unlocked.
what command do you type? "fastboot oem device-info"?
ok so I have an update, something is definitely messed up with my bootloader.
I tried to relock bootloader from fastboot but its also stuck in a loading cycle for no reason. It seems on some level my bootloader is unlocked because I can flash recoveries fine, but when I come to put a new ROM on the device it won't let me and black screens.
From fastboots I used the commands 'fastboot oem lock' and I just get '...' forever underneath. If I use 'fastboot devices' my device is listed, if I use 'fastboot -i 0x0fce oem unlock 0xbootloadercodehere' it fails the first time, then works the second time and says ok but its clearly done nothing when the device reboots. 'fastboot oem device-info' also leaves me with the '...' on command prompt forever too.
I have no idea what to do if bootloader is screwy at all.
-Pepe said:
what command do you type? "fastboot oem device-info"?
Click to expand...
Click to collapse
Yup that's what I used. I'm pretty sure bootloader is borked somehow though. I tried reinstall from Sony software too which hasn't changed anything.
SabertoothTitan said:
Yup that's what I used. I'm pretty sure bootloader is borked somehow though. I tried reinstall from Sony software too which hasn't changed anything.
Click to expand...
Click to collapse
I just tried with my XTZ and "fastboot oem device-info" just froze, it had 3 dot and nothing else. In my OPO it worked.
I'm gonna search something else...
Whats weird is my tablet also won't install anything on TWRP, I just tried installing SuperSU from it to see if it would work (having to use Kingroot atm) and it just does nothing.
I think this is the issue since I'm factory resetting before installing a ROM, which is therefore wiping my system and when I come to reset because TWRP isn't installing anything its acting like there isn't a system installed.
I can install via ADB fine, just when it comes to recovery... system says no. Its weird because its like its got a locked bootloader or something but even though I reinstalled using Sony software its still the same. If I try unlock bootloader again, I get an error first time then it says OKAY and does nothing.
SabertoothTitan said:
bootloader can be unlocked
Click to expand...
Click to collapse
According to an other post this should mean that your bootloader is locked but can be unlocked via Sony's code. At the same time I've read in the same post (can't find it) that people with unlocked bootloader still have "bootloader can be unlocked" even if they successfully unlocked it...
Unfortunately I can't try it myself because I'm on RR and the code *#*#7378423#*#* (this should be the code you used) doesn't do anything.
I have the code and have used it previously I have also retried it just to make sure.
When I type the dialer code above I get 'bootloader can be unlocked: yes' but nothing mentioning the actual current state of bootloader.
This is what's leading me to think it's a bootloader glitch because all posts I've seen should say 'bootloader unlocked: yes' or 'bootloader unlocked: no'. I get neither.
Been a few days and had no suggestions. Anyone got any ideas at all outside what I have mentioned? Getting pretty desperate because wifi is really bad on stock, getting constant slowdowns and stalls for no reason. I'm gonna end up trying to sell second hand if I can't do anything.
SabertoothTitan said:
Been a few days and had no suggestions. Anyone got any ideas at all outside what I have mentioned? Getting pretty desperate because wifi is really bad on stock, getting constant slowdowns and stalls for no reason. I'm gonna end up trying to sell second hand if I can't do anything.
Click to expand...
Click to collapse
Sorry, I'm out of ideas
The only thing I can tell you is what I did to my XPZ, but I doubt it may help you:
1) Unlock bootloader using Sony's guide
2) XPZ in fastboot mode → from pc "fastboot flash boot twrp.img" (assuming you have the proper TWRP image named twrp in the same folder of fastboot)
3) flashed RR 5.7.0 and Gapps
4) RR change the rocovery to CMrecovery but I "easily" changed back to twrp using a guide under RR thread.

i need help... Can't unlock bootloader - HTC One Max

Hello ! So I got this one max, it suddenly started to bootloop out of no where. So I decided to unlock bootloader and flash a stock rom.
However, after flashing the unlocktoken, the screen on my one max asks if I'm sure I want to proceed, I select yes but the phone just restarts and the phone doesn't unlock.I said to myself maybe if i flash a firmware it will work, i typed "fastboot oem rebootRUU" but the phone just restarted instead of giving me the black screen with grey HTC logo
HTC DEV website is where you need to go and follow on-screen instructions to completely and successfully unlock your bootloader.
For stock rom flashing you don't need to unlock bootloader unless you're planning on Rooting and installing Custom Recovery, at this point it seems that you're stock. You need to either adb a custom recovery and flash a firmware or you're stuck and only need to adb over stock IMG file perhaps or something of the sort. I would recommend googling this and see what you find.
I myself have a problem... I cannot seem to re-lock my bootloader, I have followed every single guide in the entire world... Including Scotty's Guide here on XDA. I even tried to GURU Zip Aroma Installer, didn't work either. It's a waste of time.
Sometimes you get stuck bad. GL

SOLVED : Relock bootloader after return to stock (selling phone)

Have tried to find a definitive answer to this but am unsure.
Ran Lineage for a few weeks and happy but looking at getting another phone (maybe Nokia)....anyway
My question is, now I have gone back to stock and all booting nicely and is not rooted, what would happen if I relock the bootloader. If it's ok to relock is it via adb or just deselect the bootloader option in settings.
Sorry if this has been answered elsehwere. I just can't find the black and white, yes no answer.
Thanks
The answer was yes. I read a lot about bootloops etc but all ok with relock for me.
In case itns of any use here is what I did.
1. Restored to stock by using the post below. Although all I did was flash boot.img, recovery.img and system.img. Let it boot then when System UI crashes hold power which restarts then select restart to stock recovery from the 5 second menu and did a factory reset.
https://forum.xda-developers.com/swift-2/how-to/marmite-wileyfox-ota-nougat-android-7-1-t3654999
2. Relocked bootloader using fastboot oem lock from the link below
https://www.theandroidsoul.com/relock-bootloader-fastboot-android/
3. Stuck phone on ebay!!!!
Possible Silly Question
Do I have to erase the phones data if I re-lock the bootloader? — I suppose I would just have to make a backup, but I'm stuck between not being able to root it and not being able to re-lock the, so far, useless features of the unlocked bootloader.

Categories

Resources