[CLOSED] How to pull partition to external disk? - Android Q&A, Help & Troubleshooting

HI there,
Apparently
Code:
adb pull /dev/block/mmcblk0p43 /users/wenyuan/desktop/android/43.img
could extract partition (mmcblk0p43 here is userdata) to another location than platform-tools in the internal disk.
But I did not find any answer (XDA or google search) for any code that could pull partition to external disk.
What is the code adb pull, or adb exec-out, etc. that could extract partition to external disk?
Thanks in advance.

MOD ACTION:
Thread closed as duplicate.
@wenyendev
Another duplicate thread of yours was deleted yesterday. Please stop creating multiple threads for the same issue since it violates Rule 5.
5. Create a thread topic or post a message only once, this includes external links & streaming media.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
You can bump your unanswered question once every 24 hours
Duplicate threads and posts will be removed
Always post in an existing thread if a topic already exists, before creating a new thread.
Use our search function to find the best forum for your device.
Links to an external source are only allowed if relevant to the topic in hand. A description must be included, no copy & pasting from the original source.
Self-promotion is forbidden, this includes blogs, social media and video channels etc. Random links will be removed.
Click to expand...
Click to collapse

Related

TerminalIDE 'unable to locate class' error

The thread at:
http://forum.xda-developers.com/showthread.php?t=1340852&page=3
contains a question relating to the Android application TerminalIDE and the following error message:
Dalvik VM unable to locate class 'com/spartacusrex/spartacuside/external/javac'
java.lang.NoClassDefFoundError: com.spartacusrex.spartacuside.external.javac
This issue wasn't resolved in the thread. I found the thread on Google when I had the same problem. Now that I have found a solution I thought I would post it in the hope that others who have the same problem also find it helpful. Unfortunately I'm not allowed to post to the original thread as I haven't posted 10 posts. I expect that this post will be deleted by moderators on the basis that it should be in the developers section, in which case I will give up trying to be helpful to others and go back to my usual selfish ways.
In my case, the above error only appeared when using TerminalIDE via ssh and not when using it directly on the Android device. The solution that worked for me was to amend the BOOTCLASSPATH environment variable. I added the following line to my .bashrc file in the home directory (/data/data/com.spartacusrex.spartacuside/files), then reconnected:
Code:
export BOOTCLASSPATH=/data/data/com.spartacusrex.spartacuside/files/system/classes/android.jar:/system/framework/core.jar:/system/framework/apache-xml.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
For some reason, the BOOTCLASSPATH variable, when connecting via ssh, wasn't the same as that when using it directly on the Android application. The above setting is the value when using it directly on the Android application.

Build.prop for LG G3 LS990 or HELP upon topic

So basically I have the same problem . . Well almost, so basically I had been messing with my build.prop and everything was going just fine the whole time through out. So after I was done modding pretty much, well I was testing out different settings I can input to change my Spring LS990 to work with the T-mobile carrier, including having to enter into a "secret menu" through the phone dial, but ended up bricking it. So after I was done therefore, I went and copy-paste the backup I made of the build.prop, straight into /system folder. After applying confirmations and letting it do it's job, I gave it a reboot for the copy to take effect and that's where I ran into the problem of having a boot loop on the LG logo screen and being able only to turn it off by removing the battery. Also I'm able to enter recovery, use ADB (kinda), but keep getting denied access/permission/privileges to use other functions in ADB exept the "adb sideload" command, but even that results in mounting failure and signature+foot errors. Yes, I've been to numerous posts and forums, searching everywhere for info on my own repair and ended up here post this. Really appreciate your help, am willing to pay considerable amount for repair if extremely necessary and would also like to end up getting the phone to work with T-mobile if possible.
Android release: 5.0.1 (Lollipop)
Rom: Stock
Kernel: Stock
Carrier: T-mobile
Storage: 32GB
Model: LS990
Question me if anything else is needed.
Thank you,
Blessings,
Dave.
I've moved this thread to the right section for you. For future reference you'll find the specific section for your device here:
Sprint LG G3
Within it you'll find sub-forums, the Q&A section is where questions go. I've also closed your duplicate threads because they're not allowed as per our forum rules:
5. Create a thread or post a message only once.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer. (Also refer to Rule 16)
Click to expand...
Click to collapse
Have a good one!

Failed to mount /vendor BOOTLOOP

Hello everyone! I had a Redmi Note 9S and was running a custom ROM that I forgot already cause I've handed down this phone to my sister-in-law. Today she said that she updated it and the phone rebooted to FASTBOOT screen and stuck there. FYI, I'm not an expert by any means when it comes to this but it worked perfectly for months until today.
So I tried almost everything I could find in the internet to fix this.
I tried to do a fix from the net that goes like this
ADVANCE WIPE > REPAIR FILE SYSTEM > ADVANCE WIPE > CHANGE FILE SYSTEM > EXT2 > ADVANCE WIPE > CHANGE FILE SYSTEM > EXT4 > REBOOT SYSTEM
but the problem exist.
I'm running TWRP 3.5-1.A10-30.03.2021 by getoanto555
If this helps,
on the MOUNT page of TWRP the only ones that are ticked is:
DATA, SYSTEM & CACHE
while VENDOR & PRODUCT can't be selected/ticked.
Any help would be much appreciated. THANK YOU!
to add.
I've also done 'FORMAT DATA' on the phone.
the FIRMWARE that I was trying to install was: miui_CURTANAGlobal_V12.0.2.0.RJWMIXM_2492cb2adc_11.0
the ROM that I was planning to install is: PixelPlusUI_3.5_miatoll-11.0-20210522-1935-OFFICIAL
please do correct me as well if I'm making a mistake.
THANKS ALOT!
up
@senyoreeto Thread closed as you run another subject matter related thread here:
NEED HELP PLEASE! (SOLVED!)
I flashed a custom rom on this phone a couple of months back and after a week of use I handed it down to my sister-in-law. Accordingly she updated it and it got stuck in a BOOTLOOP (fastboot screen) since yesterday. I've already posted this...
forum.xda-developers.com
Please also noted that you're allowed to bump your question once every 24 hours but not within two.
XDA Forum Rules:
Spoiler: Rule No. 5
5. Create a thread topic or post a message only once, this includes external links & streaming media.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
You can bump your unanswered question once every 24 hours
Duplicate threads and posts will be removed
Always post in an existing thread if a topic already exists, before creating a new thread.
Use our search function to find the best forum for your device.
Links to an external source are only allowed if relevant to the topic in hand. A description must be included, no copy & pasting from the original source.
Self-promotion is forbidden, this includes blogs, social media and video channels etc. Random links will be removed.

Can i copy entire root directory to another dead phone

My k20 pro
Partition's was corrupted
When i try to flash from fastboot or edl first 30 seconds working fine but after that 30sec device freeze not disconnecting from pc but not taking files or write files to pc
But showing device in fastboot devices
But when i send commands it not working
So im able to flash custom recovery because it's just 60mb
So im booted to fastboot
Im able to see all files in root directory can i copy every file from one working device to my phone device
Will it work...?
In general if device's Android is rooted, and ADB is enabled, then you can by means of dd command pull out any files / directories from this device. You also can use the tar command,
If a device is dead then you can't inject files onto it, IMHO.
MOD ACTION:
@naga ravi 259
Thread closed as duplicate of https://forum.xda-developers.com/t/can-copy-root-files-from-one-device-to-another-device.4343863/
Please do not post multiple threads in multiple forums for the same issue. It violates Rule 5:
5. Create a thread topic or post a message only once, this includes external links & streaming media.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
You can bump your unanswered question once every 24 hours
Duplicate threads and posts will be removed
Always post in an existing thread if a topic already exists, before creating a new thread.
Use our search function to find the best forum for your device.
Links to an external source are only allowed if relevant to the topic in hand. A description must be included, no copy & pasting from the original source.
Self-promotion is forbidden, this includes blogs, social media and video channels etc. Random links will be removed.
Click to expand...
Click to collapse

How to navigate system image backup?

Hello. I've got a backup of
Code:
mmcblk0
It's probably encrypted, but I'm not sure. If it is, I do have the password, but then I wouldn't know where to insert it.
Is there any detailed tutorial on how to mount this file and work with it? If it's a Linux solution then preferably some guide or tutorial on how exactly to figure out this mess.
Thanks for any help.
RecoverVery said:
Hello. I've got a backup of
Code:
mmcblk0
It's probably encrypted, but I'm not sure. If it is, I do have the password, but then I wouldn't know where to insert it.
Is there any detailed tutorial on how to mount this file and work with it? If it's a Linux solution then preferably some guide or tutorial on how exactly to figure out this mess.
Thanks for any help.
Click to expand...
Click to collapse
Hello and good morning, @RecoverVery
Welcome to XDA! I hope you'll always get the support you require.
However, prior to your next posting please read the guidances that are stuck on top of every forum like
[Read Before Posting]QUESTIONS DO NOT BELONG IN GENERAL
Hello Everybody, In order to attempt to keep this forum neat and tidy the moderation team is asking you to post your questions into the Questions and Answers (Q&A) forum and not into the General section. You can find the Q&A forum by clicking...
forum.xda-developers.com
and the others. I've moved your thread to Android Q&A.
Thanks for your cooperation!
Regards
Oswald Boelcke
Senior Moderator
I don't know what's the goal but you can extract the userdata partition from disk image with dd. the output of parted is in bytes, must divided by block size of your choice (bigger bs is faster)
Code:
parted mmcblk0 unit B print
dd if=mmcblk0 of=userdata.img skip=$off count=$len bs=$bs
another way is boot into TWRP from fastboot and pull the partition image directly.
Code:
fastboot devices
fastboot boot twrp-3.6.2_9-0-lavender.img
adb devices
adb pull /dev/block/bootdevice/by-name/userdata
Note: even if the partition image is mountable, the files are encrypted and manually decryption requires healthy keystore (not included in mmcblk0) and the device of origin itself.
Mate 9 - how to retrieve encrypted files from a broken system (userdata partition)
It's surprising that a bunch of people are interested in this article. But I have to say that some processes I mentioned in this article just happened to work. I don't necessarily understand why they work, which also means they probably cannot be...
forum.xda-developers.com

Categories

Resources