[Guide] restore DRM on Nougat - Xperia Z4 Tablet General

Since the old method with rootkernel leads to touchscreen problem
here is the new method
Thanks to munjeni
Trim Area Proof Of Concept
1)Open the FTF file with 7-zip and extract kernel.sin
2)rename the kernel to KernelX.sin
3)Download the rar from this thread
https://forum.xda-developers.com/crossdevice-dev/sony/poc-real-trim-instead-drm-fix-t3552893
4)Copy TA.img and KernelX.elf to the same folder where you extracted the rar
5)Click DOUBLECLICKME_NOUGAT.bat
6)You will get a new new_boot.img and flash it via fastboot
7)Now via adb push TA.img to /data/local/tmp
by using command adb push TA.img /data/local/tmp
All done :good:

Tested and working with Nougat. Your instructions are wrong but I followed the original thread.

Related

Cust images for official 2.3.5 GB - U8800

Hi there!
Anyone willing to paste official images for U8800: (V100R001C00B522G001)
recovery.img
boot.img
cust.img
amss.mbn
EMMCBOOT.MBN
Thanks!
S.
If i am honest i need only boot.img
Brgds,
S.
I need the whole non-modified image folder. /.cust_backup/image/
Little guide for making a dump.zip
1. Download Busybox installer
2. install Busybox to /system/xbin;
3. enter these commands from terminal;
4. su
5. cd /sdcard
6. chmod 777 /system/xbin/busybox
7. /system/xbin/busybox tar czvf dump.tar /.cust_backup
A dump.zip is saved at your sd-card
I am unable to do this because I have modified cust.img and recovery.img. Installing stock firmware doesn't work..
Check my MediaFire in the signature. I have cust_data separated from cust because cust_data is carrier specific.
Sent from my U8800

[Desire Z] Unrooting like Factory Rom without USB

Hi,
I have a French Unbranded Desire Z and I have to return it for replacing because of USB doesn't working.
I followed many tutorial about USB Brick but all of them doesn't work...
So i have to unroot it, reinstall the original ROM (because my old backup was corrupt) reinstal the original boot and all the original stuff to be able for warranty to work !
I already have the RUU_VISION_Orange FR .exe and i know how to extract the rom.zip
But what should i do now ?
Thanks !
If you can't get your usb working make a gold card (there are ways to do this without a phone if needed look online for tutorial) place the proper ruu on the sdcard and boot into hboot and follow the promp. If this dosent work try asking nipqer - seems to know all the best ways for this
Sent from my HTC Vision using xda premium
Do you have the full S-OFF, eng hboot and custom recovery?
If so, I'd say rip the rom.zip from the RUU. open up the zip and delete the recovery.img and hboot.nb0 files in it, then rezip it, put it on your sdcard and flash it through hboot.
Then we need to flash su + Superuser onto the phone (this zip is flashable through recovery)
Then we need to run all the unroot commands from Terminal Emulator (which you can download from the market)
You will need to copy gfree, and if you still have your part7backup-xxxxxx.bin, to your sdcard.
You'll need to copy those files to /data/local/tmp (as sdcard isn't executable) you can either use a file explorer, or Terminal Emulator (mv /sdcard/gfree /data/local/tmp)
You'll need to get root access (just run 'su' in Terminal Emulator, and grant access when the prompt pops up)
Then we need to run gfree:
Code:
cd /data/local/tmp
chmod 755 *
./gfree -r /sdcard/part7backup-xxxxxx.bin
If you don't have your part7backup
Code:
dd if=dd if=/dev/block/mmcblk0p17 bs=1 count=8 2>/dev/null; echo
./gfree -s on -c <result of last command>
Once thats all done, flash the original unmoddified rom.zip from that RUU and you'll be back to stock.
-Nipqer
if this is too confusing, feel free to join #G2ROOT on webchat.freenode.net irc
Thanks Nipqer ! It seems all comprehensive to me
Except this point
You will need to copy gfree, and if you still have your part7backup-xxxxxx.bin, to your sdcard.
Click to expand...
Click to collapse
Sometimes, I saw files like these but named part3...part4 .. I remember that I ask myself what the hell are that files ?! So I delete them...
I make a mistake ? Or can I generate them again ?
Not essential to have those, just easier.
Just follow the 'If you don't have your part7backup' bit I wrote then.
'dd if=dd if=/dev/block/mmcblk0p17 bs=1 count=8 2>/dev/null; echo
./gfree -s on -c <result of last command>'
-Nipqer
If so, I'd say rip the rom.zip from the RUU. open up the zip and delete the recovery.img and hboot.nb0 files in it, then rezip it, put it on your sdcard and flash it through hboot.
Then we need to flash su + Superuser onto the phone (this zip is flashable through recovery)
Then we need to run all the unroot commands from Terminal Emulator (which you can download from the market) You will need to copy gfree, and if you still have your part7backup-xxxxxx.bin, to your sdcard.
You'll need to copy those files to /data/local/tmp (as sdcard isn't executable) you can either use a file explorer, or Terminal Emulator (mv /sdcard/gfree /data/local/tmp) You'll need to get root access (just run 'su' in Terminal Emulator, and grant access when the prompt pops up) Then we need to run gfree:
Code:
cd /data/local/tmp chmod 755 * ./gfree -r /sdcard/part7backup-xxxxxx.bin
If you don't have your part7backup
Code:
dd if=dd if=/dev/block/mmcblk0p17 bs=1 count=8 2>/dev/null; echo ./gfree -s on -c <result of last command>
Once thats all done, flash the original unmoddified rom.zip from
Click to expand...
Click to collapse
Okay, so if I recap your tutorial :
1) making a custom rom.zip without hboot and recovery
2) flash it via hboot (renaming it to PC10img.zip) ?
3)reboot to recovery this time and (install zip) the supeuser.zip you gave me
4)Running the OS, and install a terminal emulator
5)typing : the "mv command" from the gfree.zip file on/sdcard
6) typing su
7) and the 2nd command
8) reboot and rename the original zom.zip to PC10IMG.zip and flashing it
I should be alright then ?
Yes thats about it. except you want the gfree file, not the zip.
-Nipqer
I started your tutorial, ans i'm stuck at the beginning =/
I unzipp the original rom.zip
I package it in another zip named "PC10Img.zip" and without recovery and hboot....nb0
No problem here
When the hboot recognize it, it starts loading ... and then 2 cases :
- the first zip I made, it simply "forget' he has just loaded and just do nothing except giving me the choice of bootloader...
- the second zip (made from the same way), he load the zip, and says me "Fail to various points", so he conclude saying "Update aborted" or not completed ... i don't remember ..
I use Winrar and 7zip various time, and I wont be able to get it working ...
Tomorrow in the morning, i will test to extract again the zom.zip and test it again !
Any advice for me ?
Thanks, it's really good to have your support !

[GUIDE] Extract Samsung *.tar.md5 files on Linux

Hey. While trying to port a TouchWiz ROM, I came across tar.md5 files. For some reason, every guide to open this format assumes you're using Windows. I use Linux Mint, so it was a bit of a problem. I found the solution, and thought I should post it here.
Materials required:
Android Kitchen
Linux distro with p7zip
Basic Terminal knowledge
Procedure:
1. Download Android Kitchen here: http://forum.xda-developers.com/showthread.php?t=633246
2. Download and install p7zip (for Ubuntu-based distros):
Code:
sudo apt-get install p7zip p7zip-full p7zip-rar
3. Open a Terminal in the directory where you have your tar.md5. Do:
Code:
7z e SomeReallyLongNameHowDoesSamsungRememberThis.tar.md5
And wait for the shell prompt to appear again. When it does, go to Android Kitchen's original_update folder and paste the boot.img and system.img that were extracted there.
4. Open a Terminal in Android Kitchen's directory. Do:
Code:
./menu
1
(just press enter, type nothing before it)
(type number corresponding to "system.img and boot.img" and press enter)
When it asks you for your password, give it the password. It needs that for mounting the IMG file.
Now your /system folder is in WORKING_whatever, and you can make a ZIP from Android Kitchen. Done.

{MM] TWRP Recovery [LB/UB] XPERIA BUILD 570/575/291

GOT TROUBLE WHILE INSTALLING A RECOVERY? YOU MAY HAVE FLASHED A PREROOTED ZIP WITH RECOVERY BUT LOST THE RECOVERY? GET A WORKING TWRP RECOVERY AFTER 2 MINUTES ON YOUR XPERIA Z2 D6503/D6502:
Instructions:
open any root explorer app like ES FILE MANAGER
Delete /system/etc/mm_twrp_recovery folder
Go to /system/bin/ folder
Look for the "chargemon.stock" file - If it's present, delete this one: chargemon - and now, rename the chargemon.stock to chargemon
Look for the "taimport.stock" file - If it's present, delete this one: taimport - and now, rename the taimport.stock to taimport
Reboot
download "recovery fix.zip" from mega.nz
extract the file and run "adbrecoveryfix.exe" the .exe file will install some needed files (normally into C:\Minimal ADB and Fastboot\ )
copy the files from the folder "RECOVERY FILES" into the "Minimal ADB and Fastboot" Folder
connect your xperia with the pc
open the "Minimal ADB and Fastboot" folder and then SHIFT+RIGHT CLICK to open a command window
now type:
adb shell
su root
mount -o remount,rw /system
exit
exit
install.bat
Click to expand...
Click to collapse
donĀ“t forget to press enter after "adb shell", "su root" and so on!
now your recovery will install again without any errors!
DOWNLOAD:
https://mega.nz/#!NoVSlK5T!CPJDueW8nXiHEv-jjqo7U-CrrEa1nE2JTE8mWjn3NEs
YOU HAVEN`T INSTALL ANDROID MARSHMALLOW YET BECAUSE YOU WANT TO KEEP ROOT RIGHT, XPOSED AND THE RECOVERY?
THEN CHECK OUT THIS THREAT
http://forum.xda-developers.com/xper...7#post66513485
Another simple Method: thanks @meer_mortal
Deleted folders and rename chargemon etc
Plugged phone into computer with dev settings, debugging etc
Open root explorer to make / -RW
Run install.bat with CMD
Boom! MM with TWRP
To get in into recovery reboot press down after green LED
Click to expand...
Click to collapse
THIS WORKS WITH ALL XPERIA MARSHMALLOW BUILD NUMBERS SUCH AS THE NEW VERSION 23.5.A.1.291
enjoy the fix
DOWNLOAD
MEGA.nz https://mega.nz/#!NoVSlK5T!CPJDueW8nXiHEv-jjqo7U-CrrEa1nE2JTE8mWjn3NEs
FOR A PRERROTED 23.5.A.1.291 FOR YOUR XPERIA Z2 CHECK OUT THIS LINK:
http://forum.xda-developers.com/xperia-z2/general/sony-z2-d6503-prerooted-customized-au-t3432625
FOR A PREROOTED 23.5.A.0.575 FOR YOUR XPERIA Z2 CHECK OUT THIS LINK:
http://forum.xda-developers.com/xperia-z2/general/z2-pre-rooted-twrp-3-0-0-2-xposed-t3390498
THESE TWO PREROOTED ANDROID MARSHMALLOW VERSIONS ARE FOR LOCKED AND UNLOCKED BOOTLOADER.
thanks @rakeshbro
thanks @freaky2xd

can i extract payload.bin in android without pc?

is there any way to extract payload.bin file using android phone only without computer
currently i'm trying to extract it in Android if somebody know how to then pls. reply
As the extraction script is written in Python, I would try one of these tools https://dev.to/bauripalash/how-to-run-python-programs-on-android-49bg
i just figured it out with termux. first i install python in termux then download payload_dumper64.zip and extract it to data/data/com.termux/files/home then give full read write permission to output folder and then install protobuf in termux after that i copy payload bin to home folder and enter cmd "python payload_dumper.py payload.bin" and got extracted files in output folder but thanks for your reply

Categories

Resources