[Q] How Can I open/edit Stock System.img - Android Software/Hacking General [Developers Only]

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

Related

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.

A Working mkyaffs ?!

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

[Q] Android Studio, Processing, not compiling

I'm having issues either with the IDE Processing and Android Studio.
I'm trying to compile something to Android. But I'm getting this Error at the time of compiling.
Processing IDE:
Code:
-----------------
API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
No RenderScript files to compile.
[echo] ----------
[echo] Handling Resources...
Generating resource IDs...
[B] BUILD FAILED
/home/user/adt-bundle-linux-x86_64-20130729/sdk/tools/ant/build.xml:649: The following error occurred while executing this line:
/home/user/adt-bundle-linux-x86_64-20130729/sdk/tools/ant/build.xml:690: Execute failed: java.io.IOException: Cannot run program "/home/user/adt-bundle-linux-x86_64-20130729/sdk/build-tools/18.0.1/aapt" (in directory "/tmp/android8933435574063638939sketch"): java.io.IOException: error=2, No such file or directory[/B]
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
at com.android.ant.AaptExecTask.execute(AaptExecTask.java:699)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at com.android.ant.IfElseTask.execute(IfElseTask.java:120)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at processing.mode.android.AndroidBuild.antBuild(AndroidBuild.java:415)
at processing.mode.android.AndroidBuild.build(AndroidBuild.java:73)
at processing.mode.android.AndroidMode.handleRunDevice(AndroidMode.java:220)
at processing.mode.android.AndroidEditor$14.run(AndroidEditor.java:310)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 44 more
Total time: 2 seconds
Android Studio:
Code:
[B]Error: Gradle: Execution failed for task':MyApplication2:mergeDebugResources'.
>java.io.IOException: Cannot run program "/home/user/.local/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory[/B]
The file however is there.
I've installed "adb devices", it seems Ok. I've done all the "51-android.rules" process. I've installed API 10(the one requested) and Android Tools. I don't really know what should be wrong.
But I donnt know what to do.
Could you please give me a hand on this, please? I'm in trouble with this since yesterday morning. I've searched on google with no help.
Edit:
I'm really sorry if this is not the best area to put this topic, but I'm getting desperate right now.

yMusic 2.0 don't work

Hello everybody, after installing the new version of the app I can't use it anymore.
This is what appear:
Build version: release-v2.0.1
Build date: 1979-11-30 00:00:00
Current date: 2017-03-09 12:51:37
Device: OnePlus A0001
Stack trace:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kapp.youtube.final/com.marverenic.music.activity.MainActivity}: android.view.InflateException: Binary XML file line #49: Binary XML file line #94: Binary XML file line #94: Error inflating class fragment
at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2450)
at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2510)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1363)
at android.os.Handler.dispatchMessage(Handler.java:10 2)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.jav a:5461)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:616)
Caused by: android.view.InflateException: Binary XML file line #49: Binary XML file line #94: Binary XML file line #94: Error inflating class fragment
at android.view.LayoutInflater.inflate(LayoutInflater .java:539)
at android.view.LayoutInflater.inflate(LayoutInflater .java:423)
at android.view.LayoutInflater.inflate(LayoutInflater .java:374)
at android.support.v7.app.k.b(AppCompatDelegateImplV9 .java:288)
at android.support.v7.app.c.setContentView(AppCompatA ctivity.java:140)
at com.marverenic.music.activity.b.setContentView(Bas eActivity.java:120)
at android.databinding.e.a(DataBindingUtil.java:276)
at android.databinding.e.a(DataBindingUtil.java:261)
at com.marverenic.music.activity.j.onCreate(BaseLibra ryActivity.java:26)
at com.marverenic.music.activity.MainActivity.onCreat e(MainActivity.java:81)
at android.app.Activity.performCreate(Activity.java:6 251)
at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2403)
... 9 more
Caused by: android.view.InflateException: Binary XML file line #94: Binary XML file line #94: Error inflating class fragment
at android.view.LayoutInflater.inflate(LayoutInflater .java:539)
at android.view.LayoutInflater.inflate(LayoutInflater .java:423)
at android.databinding.e.a(DataBindingUtil.java:116)
at android.databinding.e.a(DataBindingUtil.java:88)
at com.marverenic.music.fragments.NowPlayingFragment. onCreateView(NowPlayingFragment.java:91)
at android.support.v4.b.p.performCreateView(Fragment. java:2189)
at android.support.v4.b.v.a(FragmentManager.java:1255 )
at android.support.v4.b.v.b(FragmentManager.java:1472 )
at android.support.v4.b.v.a(FragmentManager.java:1691 )
at android.support.v4.b.v.a(FragmentManager.java:3413 )
at android.support.v4.b.s.a(FragmentController.java:1 20)
at android.support.v4.b.q.a(FragmentActivity.java:378 )
at android.support.v4.b.j.onCreateView(BaseFragmentAc tivityHoneycomb.java:33)
at android.support.v4.b.q.onCreateView(FragmentActivi ty.java:79)
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:754)
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:835)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:838)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:838)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater .java:515)
... 21 more
Caused by: android.view.InflateException: Binary XML file line #94: Error inflating class fragment
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:782)
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:704)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:835)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.rInflate(LayoutInflate r.java:838)
at android.view.LayoutInflater.rInflateChildren(Layou tInflater.java:798)
at android.view.LayoutInflater.inflate(LayoutInflater .java:515)
... 43 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setColorFilter( int, android.graphics.PorterDuff$Mode)' on a null object reference
at com.marverenic.music.fragments.PlayerControllerFra gment.onCreateView(PlayerControllerFragment.java:3 4)
at android.support.v4.b.p.performCreateView(Fragment. java:2189)
at android.support.v4.b.v.a(FragmentManager.java:1255 )
at android.support.v4.b.v.b(FragmentManager.java:1472 )
at android.support.v4.b.v.a(FragmentManager.java:1691 )
at android.support.v4.b.v.a(FragmentManager.java:3413 )
at android.support.v4.view.m$a.onCreateView(LayoutInf laterCompatHC.java:47)
at android.view.LayoutInflater$FactoryMerger.onCreate View(LayoutInflater.java:186)
at android.view.LayoutInflater.createViewFromTag(Layo utInflater.java:746)
... 49 more
What I can do to solve this?
I tried to uninstall e install again the app but it was useless. I also tried to cancel data and cache

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