[Q] Xposed + xPrivacy on Sony xPeria Z3 compact - Android Q&A, Help & Troubleshooting

Hello,
I have a new Sony xPeria Z3 compact and I put the latest lollipop by following the procedure here :
http://forum.xda-developers.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343
Now I would like to have xPrivacy without loosing my DRM meaning no bootloader unlocking (I can change my mind if there is a trick to the Sony special/proprietary features that are no more available when loosing the DRM )
So, just because I wanted to try and see, I mostly followed this process
https://github.com/M66B/XPrivacy/#installation that I have started in step 6
So I'm not very surprise that I have some errors with Xposed...
It tells me "Failed to get root access" (I'm a bit surprise since I maybe misunderstood something but after making the TA backup and upgrade following the mentionned procedure I thought my phone was rooted)
Another reported errors :
- Xposed is not (yet) compatible with Android SDK version 21 or your processor architecture
- cannot link executable : could not load library "libdvm.so" needed by .....
===
So my question is : Is it possible to have xPrivacy without loosing the Sony proprietary algorithms of my camera ?
I'm trying to make all install via USB.
I would like (again if possible) to configure all apps authorizations before I install a SIM card or connect to WIFI
Thanks for all of your tips.
S.

Xposed requires root, which requires you to unlock your bootloader AFAIK. No other way around it. Check out the Xposed forum for more info on the Lollipop alpha release.

Related

Q&A/Simple Explanations for the Xperia S

I felt it might be handy to look at some of the Q&As that have been going on since the forum got moving over the past few weeks and write up some simple, easy to read information giving answers without all the jargon. It's from a real newbie to Sony perspective, which I am. It is not by any means exhaustive, and it will be updated as time goes by.
Mods, feel free to add content or merge as appropriate. I just want to help the community of Android and Xperia S users!
Thanks.
Static-Noise
------------------------
Glossary and Explanations in simple English
Android
The name of the lovely operating system powering the phone that you have in your hand!
It is a Linux-based operating system, developed by the Open Handset Alliance, but primarily led by Google.
Baseband
The baseband is the software that deals with the wireless mobile signals, eg. the mobile network.
When the baseband is modified, it is usually to improve reception and make your connection to the network better.
At present, no alternative basebands are available for the Xperia S.
Bootloader
The Bootloader is a little piece of code that runs when you power on your device. In simple terms, it tells the phone to turn on the operating system and carry out any necessary tasks to make the phone work.
Every manufacturer installs their own custom bootloader onto their devices so that they work correctly with the hardware. However, many of these companies lock their bootloaders so that it is difficult for the user to modify the phone. This way, the phone will operate and run in the way that the company designed.
The newer Sony devices enable you to unlock your bootloader and harness your phone to the way that you decide. However, they say it may invalidate your warranty.
An official source on the Sony Xperia S forum declared that "[if you unlock] the bootloader, the warranty is void as soon as you do this". Developers on the XDA Developers forum have found ways to "relock" the bootloader and made it look like it is brand new and factory made.
DRM - "Digital Rights Management"
Digital Rights Management (DRM) is a way to make it impossible to copy music, movies, and computer programs. (Wikipedia)
In terms of our phones, it may restrict access to Sony content and service, for example, but not for definite, TrackID or other software.
You will lost your access to various Sony apps that are protected by DRM when you unlock your bootloader. Despite being able to "relock" it, you will permanently lose your DRM "keys" (which grant you access to restricted content) forever, so think wisely before you made any decisions on what to do.
Firmware/.FTF
The firmware is a package containing all the official software for a particular build. It will contain system, kernel & baseband files. Generally the firmware is supplied (on forums) in form of FTF package (a container file ending with .ftf) which can be flashed via FlashTool. (-Thanks DooMLord)
Flashing
This is when you install/load an operating system (eg. a version of Android) that is either customized (like Cyanogenmod) or "stock" (directly from the manufacturer) onto your handset.
It also can be the term used to install a system modification, such as a better camera, a keyboard or other customizations.
Flashtool
This is a piece of software created by the developers Bin4ry and Androxyde that enables you to flash, root and modify your device.
It's a free download and is an invaluable tool for all your needs!
Kernel
This is the software that the phone users to power it and how to use the battery.
As time goes on, the kernel will be spoken of more in this forum.
At present, no modifications have been made to the kernel for the Xperia S.
Recovery
The "Recovery" is a small part of the phone's operating system reserved to be used for basic phone management purposes, for example, resetting the phone to the factory preset. All devices, including the Xperia S, come with a recovery. There are many other recoveries, such as the famous ClockworkMod, for example.
At present, there are no custom recoveries available for the Xperia S.
ROM
Standing for (Read Only Memory), a ROM is another name for the operating system that is powering your Xperia S. As Android is Open Source, meaning that anyone can see the code that makes it up, talented developers can make custom ROMs that they share with the public on forums, like XDA Developers.
At present, there are no custom ROMs available for the Xperia S.
Rooting
This is the method of enabling users to access complete control of their phone. Android, which powers our handset, can obtain "root access" similar to Linux/UNIX computers- which Android is based upon.
Rooting can be obtained by exploiting a security flaw (enabling the user to get full, or "Superuser", access), by "flashing" a ROM/.ftf that has been "pre-rooted" or by merely typing in commands on handsets that permit rooting out-of-the-box.
At this time (April 2012), no security exploits have been found for the Xperia S. The only way at this time to root it is to unlock the bootloader and flash a pre-rooted ROM.
This should become easier to do as more developers work on the phone and find a security flaw.
Stock
This is the general term given to anything that is exactly as the manufacturer, Sony, intended and created. For example, a "stock" ROM, a "stock" firmware or a "stock" recovery.
When you hear the title "stock", think of it exactly as the manufacturer released it as.
------------------------
Handy weblinks and software downloads
Android SDK (Software Development Kit)
http://developer.android.com/sdk/index.html
Flashtool
Windows Edition, Version 0.6.8.0.
Linux Edition, Version 0.6.8.0.
Sony Bootloader Unlocking website
http://unlockbootloader.sonymobile.com/
Sony Official Xperia S forum
http://talk.sonymobile.com/community/support/xperia_2012_family/xperia_s

Want a LBL Lollipop root method for the Xperia Z ultra? Keep reading.

Hi all!
I'm happy to say that, thanks to iovyroot, and with a lot of help from zxz0O0, we managed to create a new root tool for the Xperia M2, EagleRootTool, meaning we don't actually need to use Kingroot anymore to root LBL devices under latest Lollipop firmware :victory:
However, since this root binary is compatible with (probably) any kernel built before December 2015, I thought of making the tool compatible with some other devices, like your Z ultra, since it's actually very similar to my device.
Unfortunately, since this tool's based on some kernel-specific addresses, to make it compatible with other devices like the Z ultra, I need them from every single variant.
I'm going to take for reference all models and firmware build numbers from XperiFirm.
WHAT YOU NEED:
- An already rooted device in 14.6.A.1.236 (it doesn't matter if it was rooted by Kingroot, or via UBL methods).
- A little of Android general knowledge: Usage of ADB (mainly).
- Patience.
DEVICES:
- C6802
- C6833
- C6806
- C6843
HOW TO DO IT?:
Just open an ADB prompt and run a shell in it. Then, run the following commands, replacing the *location with storage/sdcard1 if you want to use your SD Card, or with data/media/0 if you want to use the internal memory.
Code:
su
cat /proc/version > /[COLOR="Purple"]*[/COLOR][COLOR="red"]location[/COLOR]/version.txt
echo 1 > /proc/sys/kernel/kptr_restrict
cat /proc/kallsyms > /[COLOR="Purple"]*[/COLOR][COLOR="red"]location[/COLOR]/kallsyms.txt
(remember to hit enter after each line of the above :silly
Now upload those two files (version.txt & kallsyms.txt) wherever you want, or attach them in your comment, saying which model they're from, and I'll add the required offsets to support your device manually!
________________________
DISCLAIMER: This is NOT a placeholder NOR Spam thread. I just want to help this device users to get them supported in a common Lollipop Xperia rooting toolkit, since this device won't get Marshmallow, and has a compatible kernel. If you, moderator or user, decide to close/report this thread, I may understand it, but think it twice before doing it.
You have pm

Root Xperia Z3V Without PC and Install Recovery

http://www.unixfi.co/uk/Z3V/King_User_com.cafeteam.user.apk
http://www.unixfi.co/uk/Z3V/KingRoot_com.cafeteam.installer.apk
http://www.unixfi.co/uk/Z3V/XZRecovery_fr.mydedibox.zrecovery.apk
http://www.unixfi.co/uk/Z3V/Z3-lockeddualrecovery2.8.26-RELEASE.combined.zip
Install King_User_com.cafeteam.user.apk [v 1.0.2 (darker blue squarish crown icon)]
Install KingRoot_com.cafeteam.installer.apk [v 4.1 (lightning bolt icon)]
Install XZRECOVERY_FR.MYDEDIBOX.ZRECOVERY.APK
Reboot to recovery and install Z3-lockeddualrecovery2.8.26-RELEASE.combined.zip from SDCARD
If root isn't working, disable, block, and prevent access and root authorizations to any other Kingâ™” apps, and add 1.0.2 and 4.1 versions to the whitelist and always grant permissions without prompt. I actually installed purify and whitelist within that too, but mostly I used purify to remove the 3 other versions of KingUser and KingRoot that did not work. Hopefully these links will have you able to have only the copies that are necessary and work.
This worked on 5.0.2 Lollipop, there's no reason it shouldn't work on 4.4.4 tho.
This is the source link I used with flashtool by androxyde to get 5.0.2 on the Z3V. I used a Mac for this part, and lost root which is why I redid it and made this guide.
https://mega.nz/#!24swjQgQ!7o4tB05IE...i7YVHZazz8h8iQ
Quick note about 5.0.2 upgrade:
Screenwake issues are gone.
Small apps are back.
Device identifier is Z3.
Also, I've included the link to the XPOSED installer for the Z3V.
I highly recommend the XTether/MotoTether XposedApp for the Z3V to unlock WiFi Broadcasting.
http://www.unixfi.co/uk/Z3V/xposed-v74-sdk21-arm.zip

Looking for a way to root Z Ultra

I'm trying to root SGP412 (sim-free Z Ultra sold in Japan).
The stock firmware (build number 14.3.A.2.21) prevents the rooting via Easy Root Tool, and kingroot does not work either.
Right now there are two options that I can think of:
A. Roll back the firmware to one old enough for the root tool to work, root the tablet, and update the firmware back to the latest one.
B. Find the absolute kernel addresses and use 'iovyroot' to root (this should be able to root the device with the current firmware).
Option B seems a bit daunting, so I've been looking into option A; I got an ftf of an old firmware (14.1.B.3.357)
I downloaded the Flashtool, but following errors occur when I try to run the FlashTool.exe/FlashTool64.exe (tried both).
java.lang.ClassNotFoundException: gui.Main
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
EXE4J_JAVA_HOME is set to the root directory of the latest JRE (tried JDK also). I tried the same thing on two different computers (both running Windows 10 Pro 64-bit), but get the same errors.
Update
I loaded the project on eclipse and then it created a 'bin' folder and .class files were generated inside the folder. The 'bin' folder has the subdirectory 'gui' inside and the file 'Main.class' in it, but I'm still getting the same error: java.lang.ClassNotFoundException: gui.Main...
I added the CLASSPATH environment variable and set the value to the directory path of the Flashtool's bin folder, but it didn't change anything.
Has anyone seen anything similar to this in trying to use Flashtool?
My sincere apologies for reviving a necropost. But I suddenly find myself in the same situation. I'd like to root my Xperia Ultra, SGP412 running Android 4.4.2 with a firmware version of 14.3.A.2.21.
I have a very specific usage scenario for it. I want to control an Onyx Boox Max Carta from it, running a VNC streamer on the Xperia and a VNC viewer on the OBMC. The OBMC runs Android 4.0.4 so there are very few clients available for it. RemoteDroid on the Xperia should solve it but it requires a rooted device.
Since this Japanese version of it is a tablet, rather than a phone (the SIM card slot is soldered) there is no phone app and hence I can't do the *#*#number thing on it.
If anyone was able to solve the OP's question, kindly inform in this thread.
Kumabjorn said:
My sincere apologies for reviving a necropost. But I suddenly find myself in the same situation. I'd like to root my Xperia Ultra, SGP412 running Android 4.4.2 with a firmware version of 14.3.A.2.21.
I have a very specific usage scenario for it. I want to control an Onyx Boox Max Carta from it, running a VNC streamer on the Xperia and a VNC viewer on the OBMC. The OBMC runs Android 4.0.4 so there are very few clients available for it. RemoteDroid on the Xperia should solve it but it requires a rooted device.
Since this Japanese version of it is a tablet, rather than a phone (the SIM card slot is soldered) there is no phone app and hence I can't do the *#*#number thing on it.
If anyone was able to solve the OP's question, kindly inform in this thread.
Click to expand...
Click to collapse
mm I have not had much luck with vnc servers on android.
My phone force closes remotedroid..got the server working by lowering the resolution in settings but I get no data to my client.
Tried on another device and the app crashes as soon as I start the server. And it said my devie is rooted in the toast..its not.
And it give me a black screen when I connect as a client...oh..jesus. It says in the app "4. The serve app will ONLY work on a rooted KitKat device and the app must be installed in /system." ..not reading the instructions works really good.
Hang on..I found a vnc server that works! For lollipop.
http://www.apkmonk.com/app/com.pranayc.remotevncserver/
huh..this is the very first time I have got vnc working on android!
I get image but no controls..You can try RemoteDroid and report if it works in case you succeed to root your phone.
You can go the long way and compile a vnc server from source code and run it from terminal but its not the practical way when you can run teamviewer instead..
So next problem:
Its not possible to install the dialer apk?
https://www.apkmirror.com/apk/google-inc/google-dialer/
Its a long shot. But you can try..if it will even install.
There is this guide. But I cant make this work on marshmallow.
I don't have any devices running stock lollipop or older to test the old contacts app with.
http://www.xperiablog.net/2013/06/20/xperia-tablet-z-how-to-access-the-service-menu/
Long pressing in the contacts app does nothing in marshmallow.
I found this thread: https://forum.xda-developers.com/showthread.php?t=2289383
adb shell "am start -a android.intent.action.MAIN -n com.sonyericsson.android.servicemenu/.ServiceMainMenu"
But I get the following: (again running marshmallow)
Code:
Starting: Intent { act=android.intent.action.MAIN cmp=com.sonyericsson.android.s
ervicemenu/.ServiceMainMenu }
Error type 3
Error: Activity class {com.sonyericsson.android.servicemenu/com.sonyericsson.and
roid.servicemenu.ServiceMainMenu} does not exist.
The issue OP was running into with flashtool won't affect you unless you're running the same Windows 10 pro version whatever build op was on and the same flashtool. I recommend running a separate windows 7 machine physical or virtual machine for messing with drivers and this stuff.
Quoting the op post
A. Roll back the firmware to one old enough for the root tool to work, root the tablet, and update the firmware back to the latest one.
B. Find the absolute kernel addresses and use 'iovyroot' to root (this should be able to root the device with the current firmware).
Neither of these are going to work. B...if you have freetime to spend go ahead but its eh. Go out and have fun this summer instead of staring on a hex editor.
Today ..I mean today in july 2017 we have some issues.
That is that its almost impossible to obtain older stock roms.
Xperiafirm removed all but the latest. Filehosts posted here has removed the file due to inactivity.
I found two stock roms for SGP412 to download in case you need it. I can't find it in flashtool.
Dunno if sol24 is the same device or if sol24 and SGP412 are two different models?
https://www.androidfilehost.com/?fid=24566382913913003
https://www.androidfilehost.com/?fid=24562946973630839
But get back to the dialer. My guess to why you want to access the service menu might be to check if bootloader unlocked allow will be yes or no?
And it being impossible to root the device perhaps this is what you want to do? And then root the phone with the bootloader unlocked?
I don't know the mechanisms applied by sony to stop it to being able to root. But hopefully it might be possible to overcome with unlocked bootloader.

Sony Xperia V & S get snapchat to work. Need to be android 4.4 or higher.

Is there anyway to get Snapchat to work on these phones? I know there has to be android version 4.4. I think i have 4.3 in my Sony Xperia V. I also know there is a problem with snapchat locking rooted devices so this can be a problem. Is there any official releases that can handle snapchat?
I have Windows 8.1 does it works the same? https://forum.xda-developers.com/t/...y-xperia-s-stock-to-android-8-1-oreo.4222141/
I think i go for Android 7.1.2/nAOSP instead of Oreo. Something tells me Oreo will gets to laggy.
I got to: Seems like me phone is Desimlocked. How to easy lock it up. It stand 5 after all, i guess 5 attemps
5) MAKE SURE PHONE IS NOT SIMLOCKED
We need to check phone is not SIMlocked.
Open dialer, enter code again
Code:
*#*#7378423#*#*
Go to Service info > SIM lock. If everything is blank/unchecked ( [] ), phone is Desimlocked.
If not, you must contact your network provider for an unlock code.
### Don't move further until phone is simlocked. You cannot debrand/desimlock it using a custom ROM.
Should i copy the Android 7.1.2/nAOSP rar to the flash folder?
In Windows, copy the path to the "flash" folder you unziped earlier.
Open a Windows command prompt : Start menu > Command prompt > Start as administrator
Then type
What to type cd /d thePathToFlashFolder should cd be the moved files to d? destination?
I guess even if i get it to work snapchat will detect my rooted phone?
I have it like this C:\root\djibe\flash what path should i move to this folder the oreo 8.1?
Oldschool297 said:
I guess even if i get it to work snapchat will detect my rooted phone?
Click to expand...
Click to collapse
Correct.
Snapchat is performing a few tests and if at least one of them is positive, the application kills itself when Superuser is found in the system.
I know some xposed modules can prevent that. I guess you cannot root the phone and install custom rom and then unroot?
Oldschool297 said:
I know some xposed modules can prevent that.
Click to expand...
Click to collapse
Great you know this.
IMO it's a widespread misconception that a rooted Android can be hidden to apps: don't think the developers of banking / payment / other apps are dumber than then people who root their device's Android, this due to fact that all rooting methods ( e.g. SuperSu, MagiskSU, KernelSU, MTK-SU ) are based on open-source-code which everybody can look into to find out how Android gets rooted, i.e. where to search in filessystem for the SU-binary.
Thanks, so it is very hard to use snapchat on rooted phones? I need that so then a custom rom can't be so good for me. Official releases can be installed without rooting?
FYI:
Latest Snapchat v12.32.0.35 ( April 26, 2023 ) only runs on Android 5.0 and up.

Categories

Resources