A Working mkyaffs ?! - General Questions and Answers

Hi everybody
I have searched all over the internet for a working mkyaffs.exe I found one (attached below) but it's not working with me, it does create the output it should create, but:
1. it's 14MB larger than the one CWM Created.
2. unyaffs returns error when trying to unyaffs the file I created via mkyaffs
The error that is produced is:
Code:
0 [main] unyaffs 768 exception::handle: Exception: STATUS_ACCESS_VIOLATION
624 [main] unyaffs 768 open_stackdumpfile: Dumping stack trace to unyaffs.ex
e.stackdump
The stackdump is:
Code:
Exception: STATUS_ACCESS_VIOLATION at eip=6112A143
eax=00000000 ebx=00000004 ecx=00002400 edx=00000000 esi=20028390 edi=00000000
ebp=0028ABE8 esp=0028ABE4 program=C:\Users\Omar\Desktop\New folder (2)\unyaffs.exe, pid 768, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028ABE8 6112A143 (00000000, 0040DC70, 00000200, 00000000)
0028AC28 004010BF (0028ACA9, 00000000, 20028280, 00401333)
0028AC58 004013AF (00000002, 0028AC80, 20028280, 0028ACA0)
0028AD08 61007535 (00000000, 0028CD88, 61006B20, 00000000)
End of stack trace
Thanks in advance

Related

[Q] cyanogenMod 7, need help

It seems that prelink error when compile. How to fixed it? Need prelink-linux-ds.map?
~/dream_sapphire $ adb logcat |grep prelink
- waiting for device -
E/HAL ( 143): Cannot load library: link_image[1962]: 104 could not load needed library 'libgps.so' for 'gps.sapphire.so' (reserve_mem_region[831]: OOPS: 104 prelinked library 'libgps.so' mapped at 0x45fb8000, not at 0xa9700000)
E/QualcommCameraHardware( 105): FATAL ERROR: could not dlopen liboemcamera.so: Cannot load library: reserve_mem_region[831]: OOPS: 105 prelinked library 'liboemcamera.so' mapped at 0x40c0c000, not at 0xa9400000

[Q] How Can I open/edit Stock System.img

I am Looking to open and explore the Stock system.img file of the Bionic to compare both 5.5.886 and the 5.5.893 as I want to make some edits and runs some test for my multi-root application that I am working on
tried to extract it with unyaffs.exe and gotten this error
Code:
C:\ISO\android>unyaffs.exe system.img
8 [main] unyaffs 7224 _cygtls::handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
1025 [main] unyaffs 7224 open_stackdumpfile: Dumping stack trace to
unyaffs.exe.stackdump
966072 [main] unyaffs 7224 _cygtls::handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
988583 [main] unyaffs 7224 _cygtls::handle_exceptions: Error while
dumping state (probably corrupted stack)
and here is what the unyaffs.exe.stackdump printed out
Code:
Exception: STATUS_ACCESS_VIOLATION at eip=004010B0
eax=4708BC02 ebx=00000034 ecx=00002800 edx=00D216BA esi=00D11695 edi=00000000
ebp=0028CCB8 esp=0028CC80 program=C:\ISO\android\unyaffs.exe, pid 8860, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028CCB8 004010B0 (0028CD2B, 00000000, 6120E728, 00401333)
0028CCE8 004013AF (00000002, 00CF8368, 00CF8258, 00008000)
0028CD68 61007038 (00000000, 0028CDA4, 61006980, 7EFDE000)
End of stack trace
Not sure what is going on I should try this on another system.img and
see if it is actually this

Error while unyaffsing

I tried to unyaff the system.img from the HTC Desire C RUU. This is what it gave me
Exception: STATUS_ACCESS_VIOLATION at eip=004010B0
eax=00010000 ebx=00000001 ecx=FFFFFFFD edx=00EB1452 esi=611021A0 edi=00401788
ebp=0028CC38 esp=0028CC00 program=C:\Users\Andu\Desktop\unyaffs\unyaffs.exe, pid 392, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028CC38 004010B0 (0028CC99, 00000000, 0040130E, 00401333)
0028CC68 004013AF (00000002, 00EB1418, 00EB0090, 61168990)
0028CD68 610060D8 (00000000, 0028CDA0, 61005450, 0028CDA0)
61005450 61004416 (0000009C, A02404C7, E8611021, FFFFFF48)
20581 [main] unyaffs 392 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
21888 [main] unyaffs 392 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)
Tried redownloading the System.img, same thing.
Help please?
I have to mention that I'm on Windows 7 64 bit.

How to extract data from ADB/twrp (.ab) backup?

Hi guys,
i made a backup using ADB and TWRP, no i have a backup.ab that i cant do anything with. I've been searching for a while and i cant unpack, split, or extract the backup. I tried using windows 10, ubuntu bash (on winows10), and virtual linux.
so far, windows and virtual linuxmint 18 give me about the same error.
I used :
Code:
java -jar abe.jar unpack backup1.ab nexus745544.tar
To unpack it, but i get the following error (both windows and linux):
Code:
Invlaid Magic: TWRPtwstreamheaderöâS·TWRPtwfilename€ÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid Magic TWRPtwstreamheaderöâS·TWRPtwfilename€ÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:502)
at org.nick.abe.Main.main(Main.java:128)
... 5 more
Caused by: java.lang.IllegalArgumentException: Invalid Magic TWRPtwstreamheaderöâS·TWRPtwfilename€ÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:332)
... 6 more
other commands i tried:
Code:
dd if=backup1.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" > backup11.tar
This command creates a backup11.tar (with 0 bytes) but the terminal just hangs.
Code:
dd if=backup1.ab bs=24 skip=1|openssl zlib -d > mybackup7668.tar
This command also creates the .tar file with 0 bytes but the terminal throws error:
Code:
openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
which i'm still trying to fix this error, maybe it fixes it.
if you have any more questions, let me know.
Any help is appreciated. Thanks.
Same problem here,
I think TWRP backups are in some way different from others .ab files.
Just wanted to also say I have the exact same problem as the other two people in the thread.
Only, I also have my efs partitions in there and now when I need them my phone is essentially a tablet.
Same problem here. It is hard to believe that the answer to this question is so hard to find. After all, one only needs to be able to read the source code to find the answer (unfortunately, that's not what I am qualified to do)
For anyone else in trouble, more information can be found here:
github.com/TeamWin/Team-Win-Recovery-Project/issues/898

How to extract data from ADB/twrp (.ab) backup?

Hi guys,
i made a backup using ADB and TWRP, now i have a backup.ab that i cant do anything with. I've been searching for a while and i cant unpack, split, or extract the backup. I tried using windows 10, ubuntu bash (on winows10), and virtual linux.
so far, windows and virtual linuxmint 18 give me about the same error.
I used :
Code:
java -jar abe.jar unpack backup.ab backup.tar
To unpack it, but i get the following error (both windows and linux):
Code:
Invlaid Magic: TWRPtwstreamheaderöâS·TWRPtwfilename€ÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid Magic TWRPtwstreamheaderöâS·TWRPtwfilename€ÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:502)
at org.nick.abe.Main.main(Main.java:128)
... 5 more
Caused by: java.lang.IllegalArgumentException: Invalid Magic TWRPtwstreamheaderöâS·TWRPtwfilename€ÌøÔñ£â/data/media/0/TWRP/BACKUPS/0117111846320501/2017-12-17--02-02-18_NRD90MN920PVPS3DQK1/system.ext4.winTWRPtwdatablockDÝíº/app/00407550000000000000000000000062132154162340010533xustar rootroot50 RHT.security.selinux=u:object_r:system_file:s0
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:332)
... 6 more
other commands i tried:
Code:
dd if=backup.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" > backup.tar
This command creates a backup.tar (with 0 bytes) but the terminal just hangs.
Code:
dd if=backup.ab bs=24 skip=1|openssl zlib -d > backup.tar
This command also creates the .tar file with 0 bytes but the terminal throws error:
Code:
140505737033472:error:29065064:lib(41):bio_zlib_read:zlib inflate error:crypto/comp/c_zlib.c:397:zlib error:data error
which i'm still trying to fix this error, maybe it fixes my problem.
if you have any more questions, let me know.
Any help is appreciated. Thanks.

Categories

Resources