Related
Hello everyone, I experienced a potential memory corruption (also seemed like memory leak) bug (or backdoor who knows) and managed to reproduce it on both Oneplus5T and Oneplus6. It seems to be serious so I want to know if anyone else can reproduce it.
step to reproduce:
1. on the android run (how to run this? see bellow) : nc -l -p 8000 < /dev/zero
2. connect from the same subnet: nc ${IP_OF_ANDROID} 8000
3. if the terminal on your computer display anything, there must be something wrong, because 0x00 shouldn't be printed as visible character on the terminal.
how to run 'nc' on the android:
1. use termux (available in google play). use 'pkg install netcat' to install nc
2. use busybox. I use adb to push 'https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/busybox-armv7l' into my phone and use root permission to execute it.
Results of Oneplus6 and Oneplus 5T (imgur.com/a/YpvYrzp). I also use pv to demonstrate 0x00 is indeed trasmitting. For the Oneplus5T, I tried unlock+stock OOS, unlock+stock OOS+magisk, unlock+stock OOS+magisk+bluspark kernel, all of those setting suffer from the same issue. (OOS version is 5.1.5, latest stable I think)
If you are patient enough, you can also observe human readable strings, like
NOT_RESTRICTED&TRUSTED&NOT_VPN] ] found {mApnType=default mState=IDLE mWaitingApns={null} mApnSetting={null} mReason=radioTurnedOff mDataEnabled=false mDependencyMet=true}amingOff=false hasDataRoamingOn=false hasDataRoamingOff=false hasLocationChanged=false has4gHandoff = false hasMultiApnSupport=false hasLostMultiApnSupport=false
Click to expand...
Click to collapse
which in my opinion belongs to the memory of other apps or OS.
I can't reproduce it on my Nexus5 and another oneplus3.
I have build Android Pie (9.0.0) successfully for Xperia X Performance f8131from AOSP source.
Instructions:
extract
F8131: android-pie-f8131-160119.zip
F8132: My build was not bootibg!
For another build, please refer to https://forum.xda-developers.com/showpost.php?p=78359565&postcount=67
Connect phone in fastboot mode (vol-up & power)
flash boot, system, userdata
# fastboot flash boot boot.img
# fastboot flash system system.img
# fastboot flash userdata userdata.img
Download SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V4_TONE-1.ZIP/URL]
Unpack SW_BINARIES_FOR_XPERIA_ANDROID_9.0_2.3.2_V4_TONE-1.ZIP to obtain the vendor image.
Connect the device to your computer in Fastboot mode, by pressing volume up while inserting the USB cable. When the device is in Fastboot mode, the LED on the device will be illuminated in blue.
Flash the vendor image by entering the following commands in a terminal window:
# fastboot flash oem SW_binaries_for_Xperia_Android_9.0_2.3.2_V4_tone.img
Works: everything
Bugs:
Build from SE AOSP, kernel sources link: [URL="https://github.com/sonyxperiadev/kernel"]Sony kernel sources
Link for building from AOSP: Building from AOSP
Links:
Android Pie (9.0.0),Software binaries
XDA:DevDB Information
TheExplorer, ROM for the Sony Xperia X Performance
Contributors
NielDK
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
Based On: AOSP
Version Information
Status: No Longer Updated
Current Beta Version: 9.0.0_r21
Created 2018-10-08
Last Updated 2019-02-06
OpenGAPPS
ROM is without Gapps, you must flash it if you need it.
Since /data is not manageable from TWRP, it cant handle encryption.
You will need to flash arm64 nano version for Android Pie (9.0) from https://opengapps.org/ and push it to device from PC terminal (command promt in Windows). You wont be able to access the file if you simply copy it from PC to device.
1. Boot device in TWRP
2. FORMAT data (not wipe)
3. Reboot recovery (no restart of system!!)
2. In shell/command prompt on PC
adb push open_gapps-arm64-9.0-nano-20181011.zip /sdcard/
3. flash open_gapps-arm64-9.0-nano-20181011.zip from TWRP
4. reboot
You can make /data available by formatting /data from TWRP, but you will loose all data. Remember a backup!
And, you will need to do this every boot!
Releases
R16: November security patches released
R21: December security patches released
Hi, what's about DRM? Have you installed drm fix?
grzegorz.u said:
Hi, what's about DRM? Have you installed drm fix?
Click to expand...
Click to collapse
No, AOSP is different code base (kernel) than stock Sony (Thanks God), so a DRM fix is not needed (not usable)
Hello
Thank you.Will you continue to maintain and fix bugs?Such as fingerprint
Hi
Thank you! I love the new rom.
Is there any way I can install GApps via TWRP? TWRP keeps failing to mount /data, even though it says decryption is successful.
NielDK said:
I have build Android Pie (9.0.0_r10) successfully for Xperia X Performance (f8131) from AOSP source.
Instructions:
extract android-pie-081017.zip ,
Connect phone in fastboot mode (vol-up & power)
flash boot, system, userdata
# fastboot flash boot boot.img
# fastboot flash system system.img
# fastboot flash userdata userdata.img
Download SW_BINARIES_FOR_XPERIA_ANDROID_9.0.6.3_R1_V1_TONE_BETA.ZIP
Unpack SW_BINARIES_FOR_XPERIA_ANDROID_9.0.6.3_R1_V1_TONE_BETA.ZIP to obtain the vendor image.
Connect the device to your computer in Fastboot mode, by pressing volume up while inserting the USB cable. When the device is in Fastboot mode, the LED on the device will be illuminated in blue.
Flash the vendor image by entering the following commands in a terminal window:
# fastboot flash oem SW_binaries_for_Xperia_Android_9.0.6.3_r1_v1_tone_beta.img
Works: everything
Bugs: Adding fingerprint crashes device
Build from SE AOSP, kernel sources link: Sony kernel sources
Link for building from AOSP: Building from AOSP
Links:
Android Pie (9.0.0_r10),Software binaries
XDA:DevDB Information
TheExplorer, ROM for the Sony Xperia X Performance
Contributors
NielDK
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
Based On: AOSP
Version Information
Status: Beta
Current Beta Version: 9.0.0_r10
Created 2018-10-08
Last Updated 2018-10-10
Click to expand...
Click to collapse
dude, do i need to flash gapps too? or this rom allready included gapps? btw thanks for your hard work!
Sdcrad said:
Thank you.Will you continue to maintain and fix bugs?Such as fingerprint
Click to expand...
Click to collapse
Yes, I will keep it updated and investigate any issues
pine5508 said:
Thank you! I love the new rom.
Is there any way I can install GApps via TWRP? TWRP keeps failing to mount /data, even though it says decryption is successful.
Click to expand...
Click to collapse
Yes, you can (and need to, if you want Google apps)
1. Boot device in TWRP
2. In shell/command prompt on PC
adb push open_gapps-arm64-9.0-nano-20181011.zip /sdcard/
3. flash open_gapps-arm64-9.0-nano-20181011.zip from TWRP
4. reboot
What's about rooting this rom? Have you already tried?
grzegorz.u said:
What's about rooting this rom? Have you already tried?
Click to expand...
Click to collapse
Of course, flash Magisk from TWRP
Any chance of a build for F8132
First, thank you for building this! I got inspired by you and tried to do the work myself and build for F8132, but after like 3 hours.. the build failed complaining about this:
Code:
FAILED: out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/classes.dex
/bin/bash -c "(rm -rf out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex/ -maxdepth 1 -name "classes*.dex" | sort | xargs -I{} cp -f {} out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ -name "classes*.dex" | sort | sed 's/^/--dex=/' | xargs out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt )"
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] No DEX files specified
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] Command: out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] Usage: hiddenapi [options]...
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --dex=<filename>: specify dex file whose members' access flags are to be set.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] At least one --dex parameter must be specified.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --light-greylist=<filename>:
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --dark-greylist=<filename>:
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --blacklist=<filename>: text files with signatures of methods/fields to be marked
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] greylisted/blacklisted respectively. At least one list must be provided.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --print-hidden-api: dump a list of marked methods/fields to the standard output.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] There is no indication which API category they belong to.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
[ 6% 969/15007] build out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy
out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
out/host/linux-x86/bin/checkpolicy: policy configuration loaded
out/host/linux-x86/bin/checkpolicy: writing binary representation (version 30) to out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
[ 6% 971/15007] target C++: statsd <= out/target/product/dora/obj/EXECUTABLES/statsd_intermediates/proto/frameworks/base/cmds/statsd/src/statsd_config.pb.cpp
ninja: build stopped: subcommand failed.
13:42:49 ninja failed with: exit status 1
This goes beyond my skills at the point, I'd appreciate any pointers you might have. Or you have the time, a build for F8132 please
aravindg said:
First, thank you for building this! I got inspired by you and tried to do the work myself and build for F8132, but after like 3 hours.. the build failed complaining about this:
Code:
FAILED: out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/classes.dex
/bin/bash -c "(rm -rf out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (mkdir -p out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex/ -maxdepth 1 -name "classes*.dex" | sort | xargs -I{} cp -f {} out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ ) && (find out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/dex-hiddenapi/ -name "classes*.dex" | sort | sed 's/^/--dex=/' | xargs out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt )"
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] No DEX files specified
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] Command: out/host/linux-x86/bin/hiddenapi --light-greylist=out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt --dark-greylist=out/target/common/obj/PACKAGING/hiddenapi-dark-greylist.txt --blacklist=out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] Usage: hiddenapi [options]...
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --dex=<filename>: specify dex file whose members' access flags are to be set.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] At least one --dex parameter must be specified.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --light-greylist=<filename>:
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --dark-greylist=<filename>:
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --blacklist=<filename>: text files with signatures of methods/fields to be marked
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] greylisted/blacklisted respectively. At least one list must be provided.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] --print-hidden-api: dump a list of marked methods/fields to the standard output.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47] There is no indication which API category they belong to.
hiddenapi E 10-15 13:42:46 5124 5124 hiddenapi.cc:47]
[ 6% 969/15007] build out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy
out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
out/host/linux-x86/bin/checkpolicy: policy configuration loaded
out/host/linux-x86/bin/checkpolicy: writing binary representation (version 30) to out/target/product/dora/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
[ 6% 971/15007] target C++: statsd <= out/target/product/dora/obj/EXECUTABLES/statsd_intermediates/proto/frameworks/base/cmds/statsd/src/statsd_config.pb.cpp
ninja: build stopped: subcommand failed.
13:42:49 ninja failed with: exit status 1
This goes beyond my skills at the point, I'd appreciate any pointers you might have. Or you have the time, a build for F8132 please
Click to expand...
Click to collapse
I tried to build it a few times. Every time it took much more time than 3 hours and finally there were some errors. I will not try again.
Please make it for Dual Sim cards (F8132) I think android Pie will save battery. I really want stock, natural android instead of modified one.
Thanks beforehand.
Just to be clear, and answer your question.
Iam not going to make a build for dualsim version. I dont have that device.
good, volte support please
good, volte support please
can it be flashed to a locked bootloader phone?
No, like any other custom ROM, you need unlocked boot loader.
gaki25252 said:
can it be flashed to a locked bootloader phone?
Click to expand...
Click to collapse
I can build for F8132, did you modify the source before you could build successfully?
Hello,
I recently wanted to download some firmware for my Samsung device, but I realized that there is no 100% open source program to do so. In fact, all the tools that claim to do so require a library that is packed by Themida (so it is difficult to check what this might be doing), in order to authenticate to the server. This is a native DLL, meaning that it is only compatible with Windows x86. Additionally, many of these tools are actually using stolen decompiled code from SamFirm, which, apart from being possibly illegal, means they would be difficult to maintain and run slowly.
So, I decided to reverse engineer Smart Switch to figure out exactly how the download is taking place, and wrote a cross-platform tool that does this without using the Windows DLL that the other tools have, making it compatible with Linux and MacOS. I also realized that the newer versions are actually using a new version of the authentication algorithm, meaning possibly at some point the old tools might stop working as Samsung drops support for it.
You can find it at:
Code:
https://github.com/nlscc/samloader
To install, go to the downloaded repository and run:
Code:
pip3 install .
See the README or look at the code for usage. You might want to know that my old github account, nm111, was unfortunately deleted, and I lost access to my old XDA account. You can see the verified email is the same however.
Feel free to use the algorithms I figured out in your own code, so long as you don't use it in proprietary programs. It is licensed under GNU GPLv3 or later.
This works for all phones, not just S10+, but I couldn't find a better forum and this is where Frija posted.
Thank you. This is pretty cool. I downloaded it now and will check it out later tonight.
Can you please do the same thing for the emergency recovery option.
Will you update your tool if it still working in the future?
This is going to be super useful for me (ATM I'm using SamFirm with wine/proton and my setup breaks often, and GUI gets in my way) since I need to download many firmwares for my reverse-engineering, so thanks!
Late for this great find, thanks to the xda article, really needed a solution outside Windows.
PS, what are the chances for spoofing a request, i.e, trying to fetch only the latest OTA from a certain CSC?
@nn000 Glad this made the front page. I have used this for a little wile now and it works great
@phhusson
This will work on windows if you use the WSL and install Ubuntu. You could probably get this working under Cygwin too.
Great work mate. Helps to gather various download. Unfortunately enough Samshung does not allow older firmware via server fetching..
Hi, thanks for this great tool as samfirm and frija are slow to download firmwares. I am trying to download firmware for galaxy watch. I can only search the firmware version but when trying to download it there is error:
filename = root.find("./FUSBody/Put/BINARY_NAME/Data").text
AttributeError: 'NoneType' object has no attribute 'text'
is there any way to modify this tool to download watch firmware too?
You are genius! Thanks for this tool. Can't wait to try this :good:
nn000 said:
Feel free to use the algorithms I figured out in your own code, so long as you don't use it in proprietary programs. It is licensed under GNU GPLv3 or later.
This works for all phones, not just S10+, but I couldn't find a better forum and this is where Frija posted.
Click to expand...
Click to collapse
Brilliant work!
Thank you very much for developing this tool and removing our dependency on Windows for such basic functionality as checking for and downloading firmware updates. Thank you also for having the foresight and generosity to publish this under the GPL.
This tool will receive a huge amount of use on my machines.
Thanks in advance, I don't know how to download the program, they would be so kind to give me a link. Thank you very much
I tried installing with the command found in the readme file
Code:
pip3 install git+https://github.com/nlscc/samloader.git
But when I type
Code:
$ samloader --help
It says "samloader: command not found"
Beautiful. Thanks for this tool!
4929york said:
I tried installing with the command found in the readme file
Code:
pip3 install git+https://github.com/nlscc/samloader.git
But when I type
Code:
$ samloader --help
It says "samloader: command not found"
Click to expand...
Click to collapse
install python first, before try
rikipy said:
install python first, before try
Click to expand...
Click to collapse
Python was installed.
How to set download location(out) in the command line
samloader download [firmware version] [phone model] [region] [out]
I tried to put \Download but it's not in the folder.
I installed python39 and git on Win10 but sill get errors
Code:
pip3 install git+https://github.com/nlscc/samloader.git
Collecting git+https://github.com/nlscc/samloader.git
Cloning https://github.com/nlscc/samloader.git to c:\users\danie\appdata\local\temp\pip-req-build-s8l3kwc6
Collecting clint
Using cached clint-0.5.1.tar.gz (29 kB)
Collecting pycryptodomex
Using cached pycryptodomex-3.9.8.tar.gz (15.6 MB)
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\danie\\AppData\\Local\\Temp\\pip-install-vvk574_e\\pycryptodomex\\setup.py'"'"'; __file__='"'"'C:\\Users\\danie\\AppData\\Local\\Temp\\pip-install-vvk574_e\\pycryptodomex\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\danie\AppData\Local\Temp\pip-pip-egg-info-3i7fsfut'
cwd: C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\
Complete output (20 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\setup.py", line 457, in <module>
set_compiler_options(package_root, ext_modules)
File "C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\compiler_opt.py", line 341, in set_compiler_options
clang = compiler_is_clang()
File "C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\compiler_opt.py", line 251, in compiler_is_clang
return test_compilation(source, msg="clang")
File "C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\compiler_opt.py", line 82, in test_compilation
objects = compiler.compile([fname], extra_postargs=extra_cc_options)
File "c:\program files\python39\lib\distutils\_msvccompiler.py", line 323, in compile
self.initialize()
File "c:\program files\python39\lib\distutils\_msvccompiler.py", line 220, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:\program files\python39\lib\site-packages\setuptools\msvc.py", line 314, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "c:\program files\python39\lib\site-packages\setuptools\msvc.py", line 268, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
Testing support for clang
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Viper780 said:
I installed python39 and git on Win10 but sill get errors
Code:
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
Click to expand...
Click to collapse
The problem is right there in front of you: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
It's pretty annoying when there are requirements and you find out about them afterwards.
Would be good to write them to the install instructions
- python3
- git
- Buildtools for MS C++
Thanks for this, it works well! Cheers..
:highfive:
Example:
Install
Code:
pip3 install git+https://github.com/nlscc/samloader.git
Check update
Code:
samloader -m SM-G975F -r NZC checkupdate
Download
Code:
samloader -m SM-G975F -r NZC download -v G975FXXS9DTI8/G975FOXM9DTI8/G975FXXS9DTI8/G975FXXS9DTI8 -O /home/hinxnz/Downloads
Decrypt
Code:
samloader -m SM-G975F -r NZC decrypt -v G975FXXS9DTI8/G975FOXM9DTI8/G975FXXS9DTI8/G975FXXS9DTI8 -V 4 -i SM-G975F_1_20200921075534_uii8oafhih_fac.zip.enc4 -o SM-G975F_1_20200921075534_uii8oafhih_fac.zip
---------- Post added at 10:52 PM ---------- Previous post was at 10:41 PM ----------
Viper780 said:
I installed python39 and git on Win10 but sill get errors
Code:
pip3 install git+https://github.com/nlscc/samloader.git
Collecting git+https://github.com/nlscc/samloader.git
Cloning https://github.com/nlscc/samloader.git to c:\users\danie\appdata\local\temp\pip-req-build-s8l3kwc6
Collecting clint
Using cached clint-0.5.1.tar.gz (29 kB)
Collecting pycryptodomex
Using cached pycryptodomex-3.9.8.tar.gz (15.6 MB)
ERROR: Command errored out with exit status 1:
command: 'c:\program files\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\danie\\AppData\\Local\\Temp\\pip-install-vvk574_e\\pycryptodomex\\setup.py'"'"'; __file__='"'"'C:\\Users\\danie\\AppData\\Local\\Temp\\pip-install-vvk574_e\\pycryptodomex\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\danie\AppData\Local\Temp\pip-pip-egg-info-3i7fsfut'
cwd: C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\
Complete output (20 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\setup.py", line 457, in <module>
set_compiler_options(package_root, ext_modules)
File "C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\compiler_opt.py", line 341, in set_compiler_options
clang = compiler_is_clang()
File "C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\compiler_opt.py", line 251, in compiler_is_clang
return test_compilation(source, msg="clang")
File "C:\Users\danie\AppData\Local\Temp\pip-install-vvk574_e\pycryptodomex\compiler_opt.py", line 82, in test_compilation
objects = compiler.compile([fname], extra_postargs=extra_cc_options)
File "c:\program files\python39\lib\distutils\_msvccompiler.py", line 323, in compile
self.initialize()
File "c:\program files\python39\lib\distutils\_msvccompiler.py", line 220, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:\program files\python39\lib\site-packages\setuptools\msvc.py", line 314, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "c:\program files\python39\lib\site-packages\setuptools\msvc.py", line 268, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
Testing support for clang
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Click to expand...
Click to collapse
Now install linux
Central project page
[EOL][SODP][ROM][AOSP][XZ2, XZ2C, XZ3] SonyAOSP 12.1 [Alpha]
The Sony Open Devices Project is always happy about volunteers (coding, testing, etc) :) Also mainlining your favorite snapdragon powered xperia device into the mainline kernel is possible and we will be glad to help you! Official site...
forum.xda-developers.com
09.02.2022
android-12.0.0_r28 (February security patchlevel)
OEMv1c support
Click to expand...
Click to collapse
14.02.2022
hotfix for the bootloop
Click to expand...
Click to collapse
30.03.2022
android-12.1.0_r1 (March security patchlevel)
Click to expand...
Click to collapse
MartinX3 said:
30.03.2022
Click to expand...
Click to collapse
a question why you don't upload photos of the user interface, and what options are available, I currently have the Xperia XZ2 Compact, and I'm thinking of changing the rom for this one based on Android 12.1
Carljaynp03 said:
a question why you don't upload photos of the user interface, and what options are available, I currently have the Xperia XZ2 Compact, and I'm thinking of changing the rom for this one based on Android 12.1
Click to expand...
Click to collapse
It's 90% aosp.
Please report any bug in the linked issue tracker.
MartinX3 said:
It's 90% aosp.
Please report any bug in the linked issue tracker.
Click to expand...
Click to collapse
any direct contact number for more information I am new in the world of custom roms, I want help, I can contribute with the work done please
Carljaynp03 said:
any direct contact number for more information I am new in the world of custom roms, I want help, I can contribute with the work done please
Click to expand...
Click to collapse
Thank you, please follow the link in the first post.
There it is also in the first post.
12.04.2022
android-12.1.0_r3 (April security patchlevel)
Click to expand...
Click to collapse
Bug....the touch does not work and it seems to reboot intermittently
Mint rhfo said:
Bug....the touch does not work and it seems to reboot intermittently
Click to expand...
Click to collapse
Bug....report?
MartinX3 said:
Bug....report?
Click to expand...
Click to collapse
Yeah! It's Bug report!
Mint rhfo said:
Yeah! It's Bug report!
Click to expand...
Click to collapse
I don't see a valid bug report according to the instructions.
Or you claim that I'm god and know everything.
But maybe I'm god, who knows.
Hello,
Android Custom Rom noob here. Just picked up a XPERIA zx2 Compact and wanted to use this guide to flash a more current Android on the phone (came with Android10).
I followed some guides and was able to unlock my bootloader and enable USB Debugging. I used adb platform tools to boot the device in fastboot mode and flashed the files as described in the instructions.
Errors encountered:
fastboot flash oem _a SW_binaries_for_Xperia_Android_12_4.19_v1c_tama.img
fastboot: error: cannot load '_a': No such file or directory
I changed the command to: fastboot flash oem_a SW_binaries_for_Xperia_Android_12_4.19_v1c_tama.img
Sadly, the device reboots after a few seconds showing the sony logo. Reboots about three times and then says corrupted image, then shuts down. What am I doing wrong?
Thanks for your help guys!
BigWoodFarmer said:
Hello,
Android Custom Rom noob here. Just picked up a XPERIA zx2 Compact and wanted to use this guide to flash a more current Android on the phone (came with Android10).
I followed some guides and was able to unlock my bootloader and enable USB Debugging. I used adb platform tools to boot the device in fastboot mode and flashed the files as described in the instructions.
Errors encountered:
fastboot flash oem _a SW_binaries_for_Xperia_Android_12_4.19_v1c_tama.img
fastboot: error: cannot load '_a': No such file or directory
I changed the command to: fastboot flash oem_a SW_binaries_for_Xperia_Android_12_4.19_v1c_tama.img
Sadly, the device reboots after a few seconds showing the sony logo. Reboots about three times and then says corrupted image, then shuts down. What am I doing wrong?
Thanks for your help guys!
Click to expand...
Click to collapse
Hey,
I'm sorry and fixed the type.
There was a wrong whitespace character in the manual.
It's `oem_a`, that's correct.
Did you flash everything and wiped the userdata before?
Because other XZ2C owners were able to post logs.
Also it is mandatory to run the latest stock firmware on both slots once before in the lifetime of your phone.
Hi,
Thank you for your fast reply. I flashed everything and wiped as described with "fastboot -w"
I am unsure what you mean by both slots, you mean Firmware and Software Content Erase? I used EMMA to flash: H8324 52.1.A.0.618 Customized_UK 1313-5469 R3C User-Live COM on the device.
Some other questions I had:
a) Do I need Magisk for root on the device?
b) can I use another Version the twrp 3.4.0.0.? If I install this to my recovery partition, I can't use it when booting since the screen seems frozen.
sry for asking some dumb questions in my last post. I was now able to install this Android 12 Version. I think the problem was, that i didn't wipe the device before the deployment.
Thanks again for all your work on this.
*EDIT*
Can you suggest a twrp version I should use? I cannot start 3.4-0-0 (2020-06-14_21-07-37) anymore using fastboot boot
**EDIT #2**
I received the following error: "there is an internal problem with your device, contact manufacturer". I will attach output of logcat -b all
BigWoodFarmer said:
sry for asking some dumb questions in my last post. I was now able to install this Android 12 Version. I think the problem was, that i didn't wipe the device before the deployment.
Thanks again for all your work on this.
*EDIT*
Can you suggest a twrp version I should use? I cannot start 3.4-0-0 (2020-06-14_21-07-37) anymore using fastboot boot
**EDIT #2**
I received the following error: "there is an internal problem with your device, contact manufacturer". I will attach output of logcat -b all
Click to expand...
Click to collapse
Nice that you achieve to flash it.
The camera is currently not implemented because of the russian invasion in the ukraine.
Code:
04-12 19:02:48.363 0 0 I init : starting service 'vendor.camera-provider-2-4'...
04-12 19:02:48.451 3114 3114 I [email protected]: [email protected] legacy service is starting.
04-12 19:02:48.452 3114 3114 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
04-12 19:02:48.453 3114 3114 D hw-ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
04-12 19:02:48.452 0 0 I binder : 3114:3114 ioctl 40046210 7ff5fbfc44 returned -22
04-12 19:02:48.453 0 0 I binder : 3114:3114 ioctl 40046210 7ff5fbfc24 returned -22
04-12 19:02:48.489 3114 3114 E [email protected]: Could not load camera HAL module: -2 (No such file or directory)
04-12 19:02:48.489 3114 3114 E [email protected]_64: getProviderImpl: camera provider init failed!
04-12 19:02:48.490 3114 3114 D RefBase : RefBase: Explicit destruction, weak count = 0 (in 0xb400007a624ceaa0)
04-12 19:02:48.491 3114 3114 W RefBase : CallStack::getCurrentInternal not linked, returning null
04-12 19:02:48.491 3114 3114 W RefBase : CallStack::logStackInternal not linked
04-12 19:02:48.492 3114 3114 E HidlServiceManagement: Could not find instance 'legacy/0' in library [email protected] Keeping library open.
04-12 19:02:48.493 3114 3114 E LegacySupport: Could not get passthrough implementation for [email protected]::ICameraProvider/legacy/0.
04-12 19:02:48.501 0 0 I init : Service 'vendor.camera-provider-2-4' (pid 3114) exited with status 1
04-12 19:02:48.501 0 0 I init : Sending signal 9 to service 'vendor.camera-provider-2-4' (pid 3114) process group...
04-12 19:02:48.501 0 0 I libprocessgroup: Successfully killed process cgroup uid 1047 pid 3114 in 0ms
04-12 19:02:48.504 0 0 E init : process with updatable components 'vendor.camera-provider-2-4' exited 4 times in 4 minutes
04-12 19:02:48.513 0 0 I init : processing action (sys.init.updatable_crashing=1) from (/system/etc/init/flags_health_check.rc:10)
04-12 19:02:48.514 0 0 I init : starting service 'exec 29 (/system/bin/flags_health_check UPDATABLE_CRASHING)'...
04-12 19:02:48.541 0 0 I init : SVC_EXEC service 'exec 29 (/system/bin/flags_health_check UPDATABLE_CRASHING)' pid 3115 (uid 1000 gid 1000+0 context default) started; waiting...
04-12 19:02:48.564 3115 3115 I flags_health_check: ServerConfigurableFlagsReset reset_mode value: 1
04-12 19:02:48.565 3115 3115 I flags_health_check: ServerConfigurableFlagsReset updatable crashing detected, resetting flags.
Please subscribe to
[Tama][XZ2C][AOSP12][4.19] Apollo camera provider init failed (every 5secs) · Issue #751 · sonyxperiadev/bug_tracker
Platform: Tama Device: XZ2C (apollo) Kernel version: 4.19.188-ge73c1a837c4f-dirty Android version: AOSP12 Software binaries version: 12_4.19_v1c_tama Previously working on n/a (latest official Sony...
github.com
[Tama][4.19][AOSP12] Device reboots for no clear reason any time it is not idle · Issue #755 · sonyxperiadev/bug_tracker
Platform: Tama Device: Apollo Kernel version: 4.19 Android version: AOSP12 Software binaries version: 12_4.19_v1c_tama Previously working on n/a Description The device reboots after a few minutes o...
github.com
[TAMA][12][4.19] Bootloop · Issue #748 · sonyxperiadev/bug_tracker
Platform: Tama Device: Apollo Kernel version: 4.19 Android version: 12 Software binaries version: v1c Previously working on Stock Description Bootloop and no ADB logs available. The device was flas...
github.com
and firstly this will get fixed: https://github.com/sonyxperiadev/bug_tracker/issues/770
20.05.2022
android-12.1.0_r5 (May security patchlevel)
Click to expand...
Click to collapse
Because of problems with the ftp server the new release is on google drive.
Click to expand...
Click to collapse
Hello, what changes between this rom and the stock based roms ?
hi i wanted to know if my mi10t pro i can put twrp
bootloader open it
my model does not have expandable
You can safely boot TWRP through fastboot (that's boot only, you don't flash). That'll let you run TWRP once, then revert to the standard recovery when you next boot.
There may be a way to have TWRP stick in recovery now, but I've had no need to try it as booting works ok.
chisnz said:
Puoi avviare in sicurezza TWRP tramite fastboot (solo avvio, non flash). Ciò ti consentirà di eseguire TWRP una volta, quindi ripristinare il ripristino standard al prossimo avvio.
Potrebbe esserci un modo per avere la chiavetta TWRP in recovery ora, ma non ho avuto bisogno di provarlo poiché l'avvio funziona bene.
Click to expand...
Click to collapse
Unfortunately my cell phone a antirollback 1
i would like to put idonesia version it's possible
I've read that people have applied standard MIUI versions from TWRP by using the .zip format MIUI ROM. If you're staying with MIUI that's even more reason not to flash TWRP and leave the MIUI recovery, as this may be required to run stock MIUI versions.
chisnz said:
I've read that people have applied standard MIUI versions from TWRP by using the .zip format MIUI ROM. If you're staying with MIUI that's even more reason not to flash TWRP and leave the MIUI recovery, as this may be required to run stock MIUI versions.
Click to expand...
Click to collapse
Yes, certainly
question but if I load a more up-to-date rom but idonesia works or goes in brik
always with miflash_unlock
People have had various levels of success with Miflash. Yes, you must be unlocked to load anything non-standard. But if I can't use it for a standard ROM you could be forced down the booting TWRP and flashing a .zip version.
where do i find twrp for the mi note 10 t pro
rossi rosssinni said:
where do i find twrp for the mi note 10 t pro
Click to expand...
Click to collapse
https://androidfilehost.com/?w=files&flid=318203
NOSS8 said:
https://androidfilehost.com/?w=files&flid=318203
Click to expand...
Click to collapse
Il valore ARB di 1 significa che la protezione anti rollback è disabilitata. ???
rossi rosssinni said:
Unfortunately my cell phone a antirollback 1
i would like to put idonesia version it's possible
Click to expand...
Click to collapse
Use this tool: https://forum.xda-developers.com/t/flash-tool-guide-use-xiaomi-flash-tool.4262425/
If it is for call recording, flash a Xiaomi EU rom A11 or A12.
https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv12/
https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv13/
NOSS8 said:
Use this tool: https://forum.xda-developers.com/t/flash-tool-guide-use-xiaomi-flash-tool.4262425/
If it is for call recording, flash a Xiaomi EU rom A11 or A12.
https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv12/
https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv13/
Click to expand...
Click to collapse
con questo sistema elimino il
antiribaltamento 1
o rimane???
antirollback
check error 1
can i load rom 0
antirollback
check error 0
rossi rosssinni said:
antirollback
check error 1
can i load rom 0
antirollback
check error 0
Click to expand...
Click to collapse
Edit flash_all.bat
Remove these lines:
Code:
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *venus" || echo Missmatching image and device
fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *venus" || exit /B 1
::check anti_version
if exist %~dp0images\anti_version.txt (for /f "delims==" %%a in (%~dp0images\anti_version.txt) do (set CURRENT_ANTI_VER=%%a))
if [%CURRENT_ANTI_VER%] EQU [] set CURRENT_ANTI_VER=0
for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)
if [%version%] EQU [] set version=0
set anticheck="antirollback check pass"
if %version% GTR %CURRENT_ANTI_VER% set anticheck="Current device antirollback version is greater than this pakcage"
echo %anticheck% | findstr /r /c:"pass" || @ECHO "Antirollback check error" && exit /B 1
fastboot %* getvar crc 2>&1 | findstr /r /c:"^crc: 1" && if %errorlevel% equ 0 (
fastboot %* flash crclist %~dp0images\crclist.txt || @ECHO "Flash crclist error" && exit /B 1
fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @ECHO "Flash sparsecrclist error" && exit /B 1
)
or use TWRP
once the all.but file has been modified
and loaded the new rom
anti-rollback check error has been eliminated forever
if I have to reload a new rom I have to modify the file all but
rossi rosssinni said:
once the all.but file has been modified
and loaded the new rom
anti-rollback check error has been eliminated forever
if I have to reload a new rom I have to modify the file all but
Click to expand...
Click to collapse
I've used it a few times with no problem.
Do not lock the bootloader = advantage in case of problem you can solve it. Disadvantage = the phone will no longer be certified.
Install a Xiaomi EU rom (see post #11) which are better than stock roms with call recorder and without antirollback problem.
flash a Xiaomi EU rom A11 or A12
A11 or A12 means miu 11 or mui 12 right ???
rossi rosssinni said:
flash a Xiaomi EU rom A11 or A12
A11 or A12 means miu 11 or mui 12 right ???
Click to expand...
Click to collapse
MIUI 12 Android 11 Stable recovery/weekly Fastboot zip // MIUI 13 Android 12 Fastboot zip
or caricoto rom eu
by mistake or closed the botoloader can I reopen it with me flash miflash_unlock ???
and selected CURRENT_ANTI_VER = # and always 1