yashsingh1/xdaforums huggingface dataset:
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
rooting 28.0.A.8.251 2nd try / AOSP 2nd try

Since the kernel sources for 28.0.A.8.251 went online on 9.9. I decided to give it a swirl and root the latest ROM with the original source - last time I mixed it with what I had on my hard disk.

I am primarily interested in the stagefright patches included there. If I just flash the SONY provided FTF all is peachy.

28.0.A.8.251

First big letdown came when compiling the pristine source:

The compilation chokes on the c-files with stylus(!) detection. Eh?

I amended the struct in /kernel/include/linux/maxim_sti.h

http://xdaforums.com/showpost.php?p=62755398&postcount=3

This raises my suspicion that I am the first one compiling _this_ source for karin_windy.

Flashed the boot.img -> bootloop

OK - maybe overeager (more than in 28.0.A.7.24) RIC at work.

CONFIG_SECURITY_SELINUX=n

CONFIG_SECURITY_SONY_RIC=n

Flashed the boot.img -> bootloop

Patched the sources for RIC and SELinux as in post #8 in this thread.

This is voodoo, the compiler options should suffice.

Flashed the boot.img -> bootloop

Replaced init in the ramdisk with the binary from 28.0.A.7.24

Flashed the boot.img -> bootloop

AAAAAAARGH!!!

AOSP 5.1

Since I now had a soft bricked SGP712 I decided to give the AOSP 5.1 another swirl since [MENTION=359497]jerpelea[/MENTION] wrote me he updated the binaries and the source so there would be no more issues with touchscreen. He also wrote stagefright patches are included - they are not.

After letting the make do its job over night I flashed the resulting images including userdata.

-> bootloop

with a new twist for me :crying:

After a few seconds you hear the vibration of a hard power off then it loops again.

The only chance to escape this vicious circle is in the second when you can glimpse at the Android logo: hard power off fast manually

AAAAAAARGH!!!

Sigh: I am back to 28.0.A.7.24

Another 8-10 hours of my time wasted.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jerpelea:
i have tested AOSP and boots fine
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
AOSP on karin devices?

[MENTION=359497]jerpelea[/MENTION]

You are not the only one. I read from successful builds on ivy.

BUT: Anyone on SGP712 or SGP771?

What about the stylus issue?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] MrPACS:
Any idea if there is a working root for .251 please?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
this is post #61

Can you read what is in post #58 and the full-qoute of this post in #59?

What do you not understand?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] IlariJ:
Why do you even bother coming to read these threads if being asked for help is such a personal offense?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
28.0.A.8.251 on karin_windy finally rooted and a ROM-Wonder

After my futile attempt documented in this thread in post #58 I got inspired by [MENTION=5971873]dl12345[/MENTION] and his remarks in #48.

He also has great success with his phone (ivy device). Head over to http://xdaforums.com/xperia-z4/development .

The culprit I think I found was my attempt to disable SELinux via configuration options. Each time I tried CONFIG_SECURITY_SELINUX=n I had a bootloop in the end.

The sources for previous versions of the kernel were not that sensitive. Also it seems to be easier on the Z4 phone.

So again a two phase approach like outlined in #7. I used the patches for the SELinux sources there.

I updated my 28.0.A.8.27/31 via Flashtool -> working 28.0.A.8.251 without root.

Wipe user_data was not necessary.

The steps for rooting 8.251:

Get the SONY source straight

/kernel/include/linux/maxim_sti.h:

in line 353 following wakeup_gesture_support put stylus_support

u32 wakeup_gesture_support;
u32 stylus_support;

change the kitakami_defconfig

Here I copied mostly dl12345 modifications.

Switch off DM_VERITY!

Interesting are the changes for SELinux. This enables a switch at runtime. I like that!

Disable SONY's CONFIG_CORESIGHT it only slows the device. I geuess they forgot it when developing this version.

Nuke the RIC!

dl12345's choice of TCP_CONG is left there. I did not notice any change and I did not measure.

build a working_ramdisk with the attached init-files

compile a new kernel

build a working_boot.img and test it via fastboot boot boot.img

build a insecure_ramdisk with the attached insecure_init.rc

build a insecure_boot.img (kernel with the patched SELinux files from post #7) and flash it to the device

adb shell and then

roothsh

mount -o remount,rw /system

/SuperSU_files/install_SuperSU.sh

flash your working_boot.img to the device

Further refinements can include a switch for SELinux on/off and inclusion of busybox.

Maybe [MENTION=5169444]AndroPlus[/MENTION] provides new binaries. But please have SELinux working as outlined in my steps.

The 8.251 system partition has new stagefright libraries whout the vulnerabilities!

===================================

Here is the ROM-wonder:

http://www.android-hilfe.de/thema/s...-sgp712-771-customized-de-28-0-a-8-251.719468

[MENTION=5319967]Aaskereija[/MENTION]

These are ROMs (according to OP: "originale .ftf von Sony") for karin-devices that are described pre-rooted and work with locked bootloader.

This should be an achievement where even the most seasoned (e.g. [MENTION=4904057][NUT][/MENTION] ) xda-developers threw in the towel.

http://xdaforums.com/showpost.php?p=62704082&postcount=78

Please share your experience with these ROMs.

EDIT:

Please read the next two posts before cluttering this thread further.

This is no wonder - just the ordinary SONY FTFs!
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] daniels7:
I checked out the ftf by Aaskereija you mentioned and installed it and it seems to be just the normal german ftf.

No Root or DualRecovery at all

Edit: He just had a copy/paste error in the title, so there's no root ftf, sadly :(
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] Aaskereija:
Sorry guys,

theres no wonder on this rom, it's just simply a normal firmware of sony downloaded via xperifirm.

I just made a copy of another thread and used it for this thread, so i simply forgot to change the titel, didn't want to fool anybody.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
[MENTION=5319967]Aaskereija[/MENTION]

Thanks for clarification!

You made me wonder ;)
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] RJASSI21:
hi is there anything for root on locked bootloader? its annoying not being able to unlock my bootloader my status says "no" :(
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
interesting read ...

No - unlikely anytime soon.

read this:

[Knowledge Base] Introduction to the Sony (-Ericsson) Xperia Galaxy
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] baddison:
[MENTION=6774113]DHGE[/MENTION] - thanks for all the work and attempts you have done here. :good:we know your time is valuable. will patiently wait for a root solution. :):)
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
boot images 28.0.A.8.251

[MENTION=328114]baddison[/MENTION]

Maybe it helps you:

I made the boot images available (those that are described here in this thread's post #64):

for karin_windy SGP712 (xperia Tablet Z4 Wifi)

boot_insecure_251.img

https://www.androidfilehost.com/?fid=24052804347828619

boot_SELinux_251.img

https://www.androidfilehost.com/?fid=24052804347828620

For those who do not bother to read this thread a short version:

- switch off MyXperia

If not you will brick your Tablet.

- unlock your bootloader

- proceed like in post #64 (test with fastboot boot before flashing anything)

- bump my thanks-meter ;)
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] Vitaly_T:
I encountered similar issues:

Try booting the device with disconnected USB cable - yes it does make a difference

The /cache partition must be formatted (be careful with fastboot -w)

The latest Sony's AOSP partially works for me: the device comes up, however, sensors, bluetooth, and camera do not work. Looks like there is a I2C issue that may be causing all these issues.

I tried Sony's AOSP on Karin (SGP771) and Karin Windy (SGP712). The Karin tablet takes extra 90 seconds to boot. Karin Windy boots right away.

Only Sony's pre-built kernels for for me; Sony's build instructions for compiling kernels do not work.

There are at least three kernel repos that can be used for building kernels. All repos have different Karin device trees. In addition, the stock device tree does not match any device trees in available repos.

It's a big mess...
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] farfetch:
Sorry guys! I hope to not be OT.

After I unlocked BL (OFC I didn't know that thing) I activated my Xperia, then my fastboot command weren't allowed and my Xperia main screen was kinda corrupted (only white, blank, window). I Wipe through companion app, but my fastboot commands still are "not allowed".

My Xperia results disabled, but into Device Administrators it turns on everytime I reboot. I tried to disable MyXperia.apk through Debloater app (ADB): I have no more my Xperia stuff into security settings and neither into device administrator windows, but I still have same problem with fastboot.

Thank you for the attention ^^

P.S.: I also tried flashing in fastmode with Sony FlashTool, but had no success, maybe my error.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] dl12345:
You nuked your phone...
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] farfetch:
So?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] farfetch:
what to do?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] gerzii:
Why is this Tablet so complicated to root? :(

I still didnt find any solution..

The first Z-Tablet, was very easy to root :)
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alisandrio:
Hey friends, I was wondering if we could try to use this exploit which is a kernel exploit and works on 64bit devices. The only problem is that the kernel should have been compiled before may 15 so probably we have to roll back to an old firmware. This is the link: http://xdaforums.com/galaxy-s6/general/root-pingpongroot-s6-root-tool-t3103016

Maybe we'll get an easy root.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] ibis69:
Hi, the exploit has been ported to some Xperia phone (http://xdaforums.com/crossdevice-dev/sony/root-how-to-root-5-0-lollipop-t3212108) but Z4 first firmware was already patch ....
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] streilu:
Do you know if it's possible to downgrade and where to get the needed files from?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alisandrio:
Sadly (or fortunately by the point of view) Sony is one of the first manufacturer to patch these bugs... I saw that Z4 Tab is vulnerable to latest stagefright bug but there are two problems: first no code is published and second we would only get the posssibility to run code as "system", ergo we would need another privilege escalation exploit then.

Well, I'll just keep waiting for news...
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] parental92:
I'm considering to get this tab, but the inability to root without unlocking the bootloader turns me off :s

Should we do a bounty like they did for xperia z3?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] AndroPlus:
Don't waste your time and money on it.

To root without unlocking bootloader, breaking dm-verity is needed and it means all android are affected by the exploit, so small bounty won't encourage hackers.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] parental92:
okay :( thanks for the suggestion.

since all i can do is follow a tutorial i cant really help at all with the development.

at first i thought i have the z3 and it has the ability to root with locked bootloader, and i thought why can't they do the same with z4 tablet? guess it is not that simple :crying:

i also tought we can backup the TA partition before we root, but damn we need root for TA partition backup

i will still get this tab anyway. is the amount of bloatware manageable ?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] AndroPlus:
Yes, depends on customization (I'm using UK).

You can even run "pm hide [package name]" in adb shell to disable non-deletable bloatwares.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] parental92:
I'll Google that.or I can do it on the settings app right? Besides I'll just use the thing to browse and watching videos :p a bit uni stuff here and there
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] RJASSI21:
i heard that this tablet will get marshmallow in january next year will that make it easier to root since system mods arent needed with marshmallow i saw something on here about system modifications arent needed to root correct me if im wrong. just thought root on locked bl might be possible then
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] ondrejvaroscak:
Systemless root still needs modified ramdisk image, so no root on locked BL.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] RJASSI21:
does that mean this tab will never ever get root on locked bl?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alex009988:
Or you have to wait really really long, but yes, it's very probably that it will be never released.

It's better to create good cyanogenmod rom or fake drm keys.. Personally, when I unlocked my tablet, noticed no change, the same as before.

dont turn your tablet into conformity with unjailbreakable iPad. I moved on android after apple went crazy, killing all ways for jailbreaking.

So, the choice is yours.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] ondrejvaroscak:
It is highly probable... The dm-verity has not been broken since it was introduced in KitKat.... And it provides excellent protection even if some sort of vulnerability is found in Android. Requirement to modify either system or ramdisk makes LB root very unlikely. More over, as Sony is balancing on edge of profitability with it's mobile division, the less devices around here will also mean less development. Look at Z3+/Z4 series, these are around some time and nothing could have been done. You either unlock, or stay stock unrooted. And the same applies to whole Sony range of Android M. It is almost 100% sure that Android M will use dm-verity.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] RJASSI21:
Ok thanks for this im tempted to go back to z2 now lol the only reason im using z4 is because of keyboard and better screen but my z4 has wifi issues which is why I didnt exactly wanna unlock the bl. The WiFi disconnects from time to time which is annoying but recently its been fine but I know as soon as I unlock the bl its just gonna fail completely and ill have no warranty then im stuck with too many choices now and its quite annoying im sure ill figure something out thanks a lot anyway.

---------- Post added at 01:41 PM ---------- Previous post was at 01:37 PM ----------

What drm functions are lost when I unlock? R

I remember unlocking my Xperia z before I never lost bravia engine and lots of other functions it was pretty much the same is this the case with the z4 tab?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] alex009988:
Pal. I think you have problem with your router rather than with wifi on the tablet. As for me wifi works perfectly. About warantly, if it works it will work for years with probability 99.9999999%.

If you smash it through your fault, no warantly helps you.

About lost functions, I noticed nothing significant to take into consideration seriously.

You lose ota updates, my xperia, maybe something else what you never ever notice.

So, make your choice. But I recommend you to join our root community!)
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] RJASSI21:
Ok thanks and I know ts not my router every other xperia and device never has a problem only z4 tablet also tried other routers same thing nevermind anyway if the device was replaced im sure it would work fine
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] killdozer56:
I agree :good:

for my part I did not notice anything special regarding the lost of DRM keys. And I do not have playstation.

The wifi and LTE works fine.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] ondrejvaroscak:
Maybe Sony changed some things in later firmwares. On Z3 family the unlocking of bootloader and loss of DRM keys led inevitably to:

-unability to use X-Reality engine

-loss of noise cancellation

-and worst of all the noise reduction of pictures taken in low-light conditions. Given the fact that Z3 camera is not the best of class (what a shame that even Samsung with 13MP Sony chip makes better pictures), is a devastating combo.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] jelbo:
Things are still the same. For me, Losing X-Reality isn't an issue as I don't use that anyway. I'm still able to fine-tune the colors using apps that can do this using KCAL. Noise cancellation (I assume audio noise) and noise reduction are also not an issue - I don't use headphones or take pictures with the Z4 Tablet.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] ondrejvaroscak:
Still, what is not issue for you, can be issue for someone else.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] Electronic Punk:
See thats an interesting argument.

If the device was more open and there was no downside to rooting more would do it and there would be more development.

This is the first device I haven't rooted on the day I received it purely because I don't know if I will lose something I can't get back.

Fingers crossed the big MM update changes things up, having an M9 I can tell you Android 6.0 is a huge deal for the Snapdragon 810, really fires those cores up.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] ondrejvaroscak:
I have been testing Concept on Z3, so believe me MM is a huge deal also on 801.

The more development available does not pay companies like Sony. 95% customers don give a **** about open system, they will be more tempting to believe in "security" features when "confronted" with the ugliness of Internet, mal- and ransomware. The most successful vendor Apple is not open at all, second largest Samsung with its KNOX is merely the only other profitable manufaturer... The others are in red numbers and "open" devices like Nexus or some start-ups are just of null importance. We will (and in future more likely) face the difference in perception of mobile phone as complete system with its ecosystem, and mobile phone as computing device. The only question is to find a manufacturer that will have open source available for all components of the system and will not unnecessarily block the device. But such devices will be rare and priced premium on top of high-end models.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] mcraeally44:
Anybody taking advantage of the latest exploit http://www.xda-developers.com/9-yea...-dirty-cow-can-root-every-version-of-android/ and working on it?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
Why on Z4?

I doubt it on Z4 since we can unlock the bootloader and get sources from SONY.

For the challenge? Then you hit the next wall with DM-Verity. Without modifying your partitions you do not get a stable and useful root.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] mcraeally44:
The reason I asked is I am unable to unlock the bootloader the official way since O2 UK locked it (bootloader unlock allowed: no). Personally, I'd love to unlock it first thing and get the device rooted no problem if this was only possible, though. This is why I seek other workarounds since this is my only chance to get my Z4 Tablet rooted.

Btw.

Has anyone tested the Test Point method to get the bootloader unlocked?

Thanks,
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
Did you try to flash a SONY ROM via XperiFirm?
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] mcraeally44:
Yeah, I did. I'm currently on a generic debranded SONY rom. Still no change, unlocking not allowed, though haven't tried repairing it via PC Companion yet might be another option left.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] DHGE:
Unfortunately there is no known way to remove the carrier lock.

One great wizard might write a complete new bootloader (a very high risk activity) that you could use. I doubt we can flash this non-existant bootloader with the software tools available right now.
[Xperia Z4 Tablet Q&A, Help & Troubleshooting] mcraeally44:
Thanks very much for your reply.

Btw. I forgot to metion that I now also tried Firmware Repair via Sony Companion and still no luck ;)
[Xperia Z Q&A, Help & Troubleshooting] artemuys:
Hy all. Sorry for my English, im Ukrainian. 2 days ago i get my Z from Syngapure, and now i have really strange problem. When i connect my headphones, and turn on music, at some time phone will restarts. He can sound for 5-10 minutes, even if i didnt touch it, but iit will restarts at all the ways. . I really tired of that. im on stock, not rooted. First time i was thinking it jack's problem, but it restarts even if i dont touch it. Same happens with all headphones. Help me pls.
[Xperia Z Q&A, Help & Troubleshooting] m1ko8:
Give phone to service but if u cant :

Repair phone with sony software by pc. :)

Or root phone and install custom stock rom like existenz Y :)
[Xperia Z Q&A, Help & Troubleshooting] artemuys:
allready tried, it didnt helps.
[Xperia Z Q&A, Help & Troubleshooting] m1ko8:
99% hardware problem , send to service :)
[Xperia Z Q&A, Help & Troubleshooting] Sizer18:
The same problem with me

Did you find solution?
[Xperia Z Q&A, Help & Troubleshooting] Pyramid Head:
try flashing lollipop again here's a guide https://www.google.gr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CCsQFjABahUKEwiO0siM8pzHAhVE6xQKHUSLCnQ&url=http%3A%2F%2Fxperiafirmware.com%2F8-firmware%2F33-sony-xperia-z-c6603&ei=9b7HVc6DMcTWU8SWqqAH&usg=AFQjCNGu3M3D_ZIEbPGarPHRIxsV5vqnYA&sig2=P03QiSafy1Ml40FlkKrkbA&bvm=bv.99804247,d.bGg
[Galaxy S 5 Q&A, Help & Troubleshooting] Dave! Yognaught:
Hello all.

I have installed Cyanogenmod 12.1 on my Galaxy S5, made a backup using the TWRP backup function, I ticked the modem box as well as the default options, then went and installed SIXPERIENCE ROM, but when I went back to restore, Wifi just says "Searching for IP adress" and data is just a grey line with no 0.0 data used. Settings crashes if going to view data usage.

Please help!
[Galaxy S 5 Q&A, Help & Troubleshooting] ad0dh67:
do you have emei ?
[ONE Accessories] eltarod:
Has anyone found a case which has an extra battery mounted on it? Something like this: http://images.gizmag.com/hero/battery-case.jpg
[ONE Accessories] sanjsrik:
Have you looked at the Nexpaq modular case? They need 1000 pre-orders to start production. Interested?

http://nexpaq.com/shop/index.php?route=product/product&product_id=74

<ps, I don't work for the company, just think it's cool, and yes, I ponied up and pre-ordered>
[ONE Accessories] eltarod:
That's a great project.... But too expensive for my taste. Anything else?
[ONE Accessories] sanjsrik:
Easiest way to find your answer

http://lmgtfy.com/?q=https://www.go...v=2&ie=UTF-8#q=oneplus%20one%20battery%20case
[ONE Accessories] dankatz1:
Fail
[Android Apps and Games] Droidcore:
Play online with players around the world as you try to become the biggest cell of them all!

Control your tiny cell and eat other players to grow larger! But watch out: players bigger than you will be trying to make you their lunch. Survive and eat long enough to become the biggest cell in the game!

With new controls developed especially for touchscreens, agar.io offers the same addictive gameplay that millions have already enjoyed on PC. Play online in free-for-all action and use splitting, shrinking and dodging tactics to catch other players - or avoid them! Use a variety of special secret skins with the right username!​

Google Play :https://play.google.com/store/apps/details?id=com.miniclip.agar.io

Play online : http://agar.io

Only share this good game

All credit for agar.io team and miniclip.com
[Android Apps and Games] Greenmonkeys:
Simple and enjoyable

Simple game yet very enjoyable to play.
[Android Apps and Games] nickervision:
this game is ridiculously addicting. reminds me of a simpler version of Osmos from a while back. Great share.