Related
Hi, i have a G920T flashed to MetroPC (T1) because i wanted it unlock for overseas use.
today ive received a note that an update is available (OTA).
is it safe to update it ?
size is 607 MB
OS upgrade - Lollipop 5.1
includes:
security enhancements
device stability improvements
new \ enhanced features
improvements for performance
should i do it ? dont want it to cause my phone to be unusable with my current provider or anything.
any one ?
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
About the project
Sony Stock Patcher is a minimal and easy transition from Sony's Stock ROM
(flashed directly from an FTF for example) to a modifiable ROM that can be modded as you like.
Built out of my evolutions of libbootimg for MultiROM to support Sony ELF bootimages,
a custom modified kernel based on Sony's copyleft with a minimal set of needed custom changes,
and an automated installation process to patch completely a Stock ROM,
this will allow you to use the Stock ROMs as you wish to.
Relevant features of Sony Stock Patcher
Using my Sony ELF 64bits port to libbootimg, Stock boot partition is automatically converted
Modified copyleft Stock kernel to support alterations and remove limitations
Patches the ramdisk to disable automatically Sony RIC security
Patches the fstab automatically for verity
Injects my init_sony project used on Sony custom ROM projects
Supports making the ROM usable as secondary MultiROM
List of changes made to the kernel
Disable Selinux trap security (allows to boot with stock ramdisk sepolicies)
Disable Device-Mapper verity (needed for example to patch system partitions)
Disable kernel modules forced validation (avoids failures on modules signature)
Disable coresight (unneeeded and irrelevant, just to avoid unsupported error logs)
Disable Sony RIC security (needed to use a recovery and alter /system, /data, ...)
Inline kernel modules compilation (to avoid kernel installation fragmentation)
Clearpad touchscreen updates for MultiROM UI
Minor kernel updates
Installation
Needed: Device has to be with an Unlocked Bootloader
Use Stock ROM or flash a clean FTF ROM from Nougat
Needs a working TWRP flashed into the FOTA partition (fastboot flash recovery...)
> Fully working TWRP builds : See below with downloads
Boot to TWRP (Power and Volume -)
Flash the relevant sony_stock_xz_patcher: n for 7.x
(Optional) Flash SuperSU by Chainfire if you want to have root access
Reboot to Android
Reasons to use this project ?
Unlocked Bootloader customizations allowed on Stock
Converts the bootimage to support systemless tools
Ability to root with tools like SuperSU
Retains the original Sony bootimage files
Minimal needed changes, no additional kernel mods
Downloads (Unlocked Bootloader only)
Xperia XZ : https://mega.nz/#F!K8kUDSaD!LNVmLKHANgwYPuc-aFO-Mg
Personal TWRP releases
TWRP 3.x.x : https://mega.nz/#F!bg9QhDzC!TTkhy2Fi6cNTZ1ojlmobRQ
Source code
Kernel sources - https://github.com/AdrianDC/kernel-sony-copyleft (branch 41.2.A.7.xxx)
libbootimg sources - https://github.com/AdrianDC/multirom_libbootimg (branch master)
init_sony sources - https://github.com/AdrianDC/device-sony-common-init (branch master)
MultiROM sources - https://github.com/AdrianDC/multirom_core (branch master)
TWRP sources - https://github.com/AdrianDC/twrp_development_sony/commits/device_sony_kagura (branch device_sony_kagura)
Sony Stock Patcher for Xperia XZ created also thanks to :
- Sony for their original copyleft kernel sources
- Tasssadar for the original libbootimg / MultiROM sources
- The XperiaMultiROM team for our evolution of MultiROM
- Everyone involved in testing it
XDA:DevDB Information
Sony Stock Patcher for Xperia XZ, Kernel for the Sony Xperia XZ
Contributors
AdrianDC
Source Code: https://github.com/AdrianDC/kernel-sony-copyleft
Kernel Special Features:
Version Information
Status: No Longer Updated
Created 2017-03-20
Last Updated 2020-08-15
Reserved
Changelog
Code:
Sony Stock Patcher for XZ - 23/10/2019
=================================================
* Update release to resolve 3.18 ramoops (o_v7.2.157)
> See commit 71d1aa14bdae1f38a56be10468556d43f108478a
Sony Stock Patcher for XZ - 08/09/2018
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.149/157 (o_v6.2.157)
Sony Stock Patcher for XZ - 19/05/2018
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.128 (o_v5.2.128)
Sony Stock Patcher for XZ - 24/03/2018
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.99 (o_v4.2.99)
Sony Stock Patcher for XZ - 12/03/2018
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.75 (o_v3.2.75)
Sony Stock Patcher for XZ - 25/12/2017
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.2.24 (o_v2.2.24)
Sony Stock Patcher for XZ - 17/12/2017
=================================================
* Upgrade to Oreo 8.0.0 41.3.A.0.401 (o_v1.0.401)
Sony Stock Patcher for XZ - 26/11/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.76 (n_v8.7.76)
Sony Stock Patcher for XZ - 25/09/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.65 (n_v7.7.65)
Sony Stock Patcher for XZ - 19/08/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.53 (n_v6.7.53)
Sony Stock Patcher for XZ - 16/07/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.35 (n_v5.7.35)
Sony Stock Patcher for XZ - 08/06/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.7.8 (n_v4.7.8)
Sony Stock Patcher for XZ - 21/05/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.2.223 (n_v3.223)
Sony Stock Patcher for XZ - 26/04/2017
=================================================
* Upgrade to Nougat 7.1.1 41.2.A.2.199 (n_v2.199)
Sony Stock Patcher for XZ - 21/03/2017
=================================================
* Initial release for Stock 7.0 (n_v1, 39.2.A.0.442)
* Based on my initial releases for Xperia X Performance
I've already tested this patcher and can confirm, it works like a charm :good:
My steps:
- Flashed the current 442 ftf via FlashTool (ejected the ext sd after poweroff, ofc), checked every checkbox in the wipe sector (don't know, if that's really neccessary).
- rebooted into system to check, if it boots fine, then power off again
- installed Adrian's current TWRP 3.1.0 via fastboot command (fastboot flash recovery <name of the recovery>.img)
- boot into recovery (<power> + <vol-> together until one time vibration, then left <power>)
- flashing the provided patcher.zip via TWRP and reboot, then - after booting - choose reboot
- now wait until vibration and the purple led, then push <vol+> => now you have to be in TWRP :good:
- flash the SuperSU.zip, if you want root
- if you want also the drm fix:
Connect your device via usb and type:
# adb -d shell
# su
# dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/kernel.img
Then pull the kernel.img from /sdcard/kernel.img and go on with the unofficial rootkernel 5.23 @serajr I said yes to everything but SuperSU, TWRP and busybox (but test it by your own, it's not related to this thread). Btw, if you've managed to backup your ta before unlocking your bootloader, you can also use the PoC @munjeni for that (I unfortunately can't, because I don't have such a ta backup). But no mor ot here
I can confirm, it works like a charm - and it's like in mm times: you don't have to poweroff your device; just wait for the purple led and push <vol+> = enter TWRP :good::good::good:
Thank's @AdrianDC for your brilliant job :highfive:
You have just made the news!
@AdrianDC Congrats :good:
...
So it's works for both XZ (F8331 and F8332)?
Ryuu. said:
So it's works for both XZ (F8331 and F8332)?
Click to expand...
Click to collapse
Just try it and report back! Create a backup of your boot partition via TWRP before, of course
@AdrianDC
Thanks for your work
TWRP 3.10 works perfect on F8332 XZ Dual
I installed Stock Patcher on my patched kernel with PoC for load Kcal Module from here
after load kcal module got reboot and that module cant be loaded , any Help ?
@ AdrianDC
Thanks for your work
TWRP 3.10 works perfect on F8331 XZ
Can you make a Overcloked and Undervolted version? Thanks
Enviado desde mi F8331 mediante Tapatalk
RomanSkyline said:
Can you make a Overcloked and Undervolted version? Thanks
Enviado desde mi F8331 mediante Tapatalk
Click to expand...
Click to collapse
It's only possible with a custom kernel. On the other hand, it's really not neccessary, because battery drain and performance are really awesome as it is :good:
RomanSkyline said:
Can you make a Overcloked and Undervolted version? Thanks
Click to expand...
Click to collapse
It is "possible" but I won't do it, the purpose is not to waste time creating a 'modded custom' kernel,
but to stay as close as possible to the official Stock kernel while providing a modifiable ROM / bootimage.
Klaus N. said:
It's only possible with a custom kernel. On the other hand, it's really not neccessary, because battery drain and performance are really awesome as it is :good:
Click to expand...
Click to collapse
I disagree, the battery life on my XZ is TERRIBLE, recharging 2-3 times a day, to be fair though my day starts at like 4a and one Fridays ends at like 10p so meh lol... any recommendations for me?
Announcement said:
I disagree, the battery life on my XZ is TERRIBLE, recharging 2-3 times a day, to be fair though my day starts at like 4a and one Fridays ends at like 10p so meh lol... any recommendations for me?
Click to expand...
Click to collapse
Try my kernel, duality kernel and ROM. See if it helps
@AdrianDC great, might use this for my kernel
_LLJY said:
Try my kernel, duality kernel and ROM. See if it helps
@AdrianDC great, might use this for my kernel
Click to expand...
Click to collapse
I can't confirm @Announcement's statement. On my device it works very well; also the battery consumption is ok: I charge my device most of the time the 2nd day since the last charge, sometimes even on the 3rd day :good:
But it's a question of use, indeed!
Awesome work as always, Adrian!
The new patcher for the 7.1.1 fw (41.2.A.2.199) works flawlessly as expected! :good::good::good:
As mentioned by Klaus :good::
New release for Sony 41.2.A.2.199 release, Android 7.1.1.
There's only one little issue (only for me?) atm: When entering TWRP by pushing <vol+> while the purple led lights up, the display doesn't react. I've to turn off/on the display, then swipe to unlock the display. After doing that, it works as it should.
Regular TWRP 20170521: TWRP 3.1.1 release, including changes
to match 7.1.1 touchscreen init (to confirm for XZ) and Nougat decryption of course.
Regular TWRP 20170524: Re-release that avoids a touchscreen init race condition
on a specific variant of the device's touchscreen that prevented use without lock / unlock.
Made public the new release for Sony 41.2.A.2.223, Android 7.1.1.
Hello I have been a lifelong xperia z compact fan, but due to the the awesome camera on the p9 and its similar screen size I am thinking of switching Have some questions that are not clear atm.
- I am used to rooting but it seems that on p9 rooting is only possible with android 6? if i buy a second hand phone with android 8 it is possible to downgrade and root? from what i have read about the p10 it is not possible.
- I noticed that the latest custom EMUI roms are android 7, Is there a big emui interface upgrade with android 8? I am primarly intersted in the camera, with the android 8 is there an improvement in camera quality/camera interface? Do people prefer older versions (6) for battery life or camera quality?
- Someone made the point that these days rooting is less usefull apart from tinkering, the only reason is a proper adblocker, do many users here decide that the latest 8.0 version is worth it over rooting?
- Do any lineage/aosp etc roms have huawei camera ported?
thank you
adzinator said:
Hello I have been a lifelong xperia z compact fan, but due to the the awesome camera on the p9 and its similar screen size I am thinking of switching Have some questions that are not clear atm.
- I am used to rooting but it seems that on p9 rooting is only possible with android 6? if i buy a second hand phone with android 8 it is possible to downgrade and root? from what i have read about the p10 it is not possible.
- I noticed that the latest custom EMUI roms are android 7, Is there a big emui interface upgrade with android 8? I am primarly intersted in the camera, with the android 8 is there an improvement in camera quality/camera interface? Do people prefer older versions (6) for battery life or camera quality?
- Someone made the point that these days rooting is less usefull apart from tinkering, the only reason is a proper adblocker, do many users here decide that the latest 8.0 version is worth it over rooting?
- Do any lineage/aosp etc roms have huawei camera ported?
thank you
Click to expand...
Click to collapse
- Rooting by SuperSU is possible also with Nougat - but SuperSU is no more updated and bacame obsolete nowadays.
Rooting by Magisk is possible with Nougat and Oreo.
Not sure about Marshmallow but Nougat and Oreo definitely cannot be rooted by King(o)Root or so
- If not stuck with the wrong cust, your P9 should be already updated to Nougat (EMUI 5) - even if stuck with, you can rebrand and then upgrade by OTA to the latest stock Nougat.
Only for Chinese cust, P9 will be updated to Oreo (EMUI 8) - but you can also rebrand to and enjoy AL10 c00 Oreo (latest b540 OTA Patch02), with easy modifications it becomes fully 'internetional' (with all languages, Playstore, ready for Google Assistant, international 3G/4G bands, etc) and you can additionally patch Face Unlock (not supported by stock Chinese Oreo, neither by OpenKirin custom ROMs - see further below):
https://forum.xda-developers.com/p9/development/rebrand-update-tool-hwota7-p9-eva-t3820849
- For rebranding and/or rooting you must unlock Bootloader. Code cannot be obtained (and for free) from Huawei anymore, but can be purchased for 4-5 Euros from Ministry of Solutions or DC Unlocker:
https://ministryofsolutions.com/paid-services/amp
https://www.dc-unlocker.com/DC-Phoenix-flash-repair-tutorial
- There are OpenKirin Treble ROMs based on LineageOS, ResurrectionRemix and Omni Oreo or even Pie - installation requires first to (rebrand and) update to stock Oreo:
https://forum.xda-developers.com/p9/development/roms-openkirin-aosp-collection-t3828806
- Besides the AdAway root app and e.g. Magisk module YouTube Vanced, Magisk might be needed or useful if you rebrand and update to Chinese Oreo.
Namely, you must keep the Bootloader unlocked which blocks SafetyNet (and consequently e.g. GPay - not sure if GPay and NFC are supported and by which OpenKirin ROM, it also changes with their updates).
Hence, Magisk hides the unlocked Bootloader, device shows as certified and passes SafetyNet, and you can use GPay on the rebranded and patched EMUI Oreo.
- With (rebranded) stock Oreo, battery is actually better than with stock Nougat.
Cannot tell you about Marshmallow (used ir only short and long ago).
AFAIK, stock Camera with all its features is not (fully) supported by OpenKirin ROMs (used and tested only one of them for a day or two, and few months ago)
PS: If buying a new P9, you can think of dual SIM L19/L29 - but be aware, unlike single SIM L09, dual SIM lacks NFC reader.
Or even about bigger display P9 Plus - all about rebranding, patched Chinese Oreo, OpenKirin ROMs, etc, also applies to:
https://forum.xda-developers.com/p9-plus/development/rebrand-update-tool-hwota7-p9-plus-vie-t3843930
I recommend getting a P10 instead. But if you can get it for really cheap, the P9 is a very high value phone. Buy phone. Buy DC Unlocker credits. Unlock. Rebrand. Update. Patch. Enjoy Treble and Android O/P.
Thank you so much for the replies guys, yes after doing some more research will buy a p10 second hand, it has a headphone jack, compact screen and great camera very hard to find! unf i read that after a recent firmware update it is now impossible to unlock bootloader from unlockbootloader site .
adzinator said:
Thank you so much for the replies guys, yes after doing some more research will buy a p10 second hand, it has a headphone jack, compact screen and great camera very hard to find! unf i read that after a recent firmware update it is now impossible to unlock bootloader from unlockbootloader site .
Click to expand...
Click to collapse
Be careful (if you plan to do rooting/modding), for some newer Huawei phones, already coming with Android 8 or 9, it is no more possible to unlock Bootloader for free or for 4-5 Euros but only for 30 Euros
And this is not about 'missing that phone from the bootloader codes site, but due to the fact that Huawei switched for them (during the last 6-9 months) to the new and different Bootloader
It might be also questionable what kind of modding is possible at the moment on some of the newest phones with newest firmwares
Not sure does this new Bootloader apply to P10, and does that new Bootloader come by OTA to old P10 phones (better check here on XDA but on the P10 forum)
However, P9 phones do not come and do not get OTA updated with that new Bootloader (even if you rebrand to Chinese Oreo and get its OTA updates), Bootloader code can be bought for 4-5 Euros and modding (incl. rebranding, rooting, etc is possible)
OrangeFox Recovery is one of the most popular custom recoveries, with amazing additional features, fixes and a host of supported devices
Features
Synced with the latest Teamwin changes
Designed with latest Material design 2 guidelines
Implemented support for Flyme and MIUI OTA, and incremental block-based OTA in custom ROMs
Included customization
Inbuilt patches, like Magisk and password reset patch
Password protection
Fully open-source
Frequently updated
It works only for latest Q firmware, 11.5.381 and newer.
Why OrangeFox Recovery?
We have been operating for over two years. In that time we have improved the quality, stability, and device support of the recovery. Today OrangeFox is the leader in stability, UI design, and UX. Installing OrangeFox means being with the latest code and fastest fixes.
For install, simply flash zip via TWRP or extract recovery.img and flash via fastboot.
Download
Amazing TWRP for Z6 Pro !
Big thanks to dev for this great work :good:
Great Job! Awesome!
Excellent work, thanks!!
Welcome to MARS SOM
The first so called SOM
Systemless-On-Memory
SOM - The right naming for a new age of Android ROMs
(Only tested on Xperia 5 yet)
Years of porting, Stock ROMs and My Patches came to an end...
Since Magisk has grown to a full root and modding Solution for Android have i switched with My Development to creating Magisk Module Patches. Or in other Words, Systemless ROMs.
Mainly focusing on extending the Android Build Props are there also pure Parts of the latest Pixel Device Firmwares. Get the full Pixel UI Expierence, get extra Pixel Functions and Apps together with a better overall Experience. Better Audio In- and Output, better Display Calibrations, better Performance, more Functions.
Features:
(Not everything is listed or included yet)
Full Camera API2 Support
Full Pixel User Interface
Full Darkmode Support
Ported Pixel Apps
Ported Pixel Features
Enabled various Android Features
Enhanced Security Support
Enhanced Display 4K HDR Support
Enhanced Audio Output
Enhanced Audio Input
Enhanced Display Output
Enhanced Camera Functionalities
Enhanced Graphical Handling & Rendering
Enhanced Network Functionalities
Faster booting and Reboots
Requirements:
Magisk Beta Channel
Android 11 Pixel Expierence
Qualcomm Snapdragon SoC
A way to extract and create Zip Files
Downloads:
Miustone - Overview
Founder of Dev Ice Software Technologies. Miustone has 10 repositories available. Follow their code on GitHub.
github.com
Note: Zips from GitHub can't be flashed ootb.
How?!:
Extract the Downloaded Zips and repack everything inside of the second "MARS_SOM_XXX" Folders to Zips
Flash these Zips with Magisk and enjoy <3
Donations:
paypal.me/miustone
MARS_SOM_SYSTEM?
MARS_SOM_BASE?
What does it mean?
Well, the MARS_SOM_SYSTEM contains all the ROM Files, while the Base only contains Build Properties and Configs. They work together and are splitted to make everything safe to use and easy to debug...
You can use both, or just one of them. But they play better together <3
I did this personally awhile back for lg v20 7.0. Is a great idea, but can be a pain. Took forever to flash via magisk. I just never made a post. I dont have github either.
Yours may be way faster and better. My version was whole roms. But this was back on nougat 7.0.
You are still first post so don't worry .
The next coolest thing would be a systemless kernel, if even possible?
please explain a little bit more.. for people that haven't the same technical background..
should I download base, system or both to unzip and zip?
Mysticblaze347 said:
I did this personally awhile back for lg v20 7.0. Is a great idea, but can be a pain. Took forever to flash via magisk. I just never made a post. I dont have github either.
Yours may be way faster and better. My version was whole roms. But this was back on nougat 7.0.
You are still first post so don't worry .
The next coolest thing would be a systemless kernel, if even possible?
Click to expand...
Click to collapse
The Idea is still solid. I started that with the Nexus 6, 6 or 7 Years ago or so. But since many Androids are lacking TWRP is Magisk the only way to play. Many ROM makers adapted that Idea for their ROMs but looks like most of the ROM makers are gone, except some few ones. Yeha, it's pain in the Ass to create and handle but it's nice for the Users since it's Systemless.
TanzBar_1 said:
please explain a little bit more.. for people that haven't the same technical background..
should I download base, system or both to unzip and zip?
Click to expand...
Click to collapse
More Infos are coming along with Release Zips, but for now:
- BASE are System Props only which may be the biggest part to handle for Qualcomm Devices since they are a lot and very Device specific sometimes.
- SYSTEM is pure porting of Android Files. XMLs, Props, Apps, Frameworks, Libs, Overlays (Including an own MARS Overlay which adds Device Features like AoD, Nightlight and more), Permissions, Firmware Parts and so on. This Part is most importantly and makes the GSI nearly Pixel like. I hope People will contribute and work with Me on that
You can handle them as Seperate Modules to say it in short. Seperated Zips for better debugging, testing and rescue. Enjoy <3
Quick Heads-up. I am waiting for PHH to release Android 12 GSIs with Magisk support. I can do much more with AOSP compared to the actual Android 12 BETA 5 and Google GSIs overall. Looking forward to the next Level
Update pushing to GitHub. Please use Pixel Expierence from here for now:
[GSI][UNOFFICIAL][11] Pixel Experience & Pixel Experience Plus
Pixel Experience for GSI & Pixel Experience Plus for GSI What is this? Pixel Experience is an AOSP based ROM with Google apps included and all Pixel goodies (launcher, wallpapers, icons, fonts, bootanimation) Their mission is to offer the...
forum.xda-developers.com