I have an encrypted complete `.img` of the `userdata` partition.
What tools or steps can I take, with the assistance of my phone, to decrypt this image?
It is my understanding that decrypting it without the phone is usually not possible. Given that I *do* have the phone however, what can I do?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Crypto footer file
Hope that somebody can help.
Any ideas?
No
joke19 said:
No
Click to expand...
Click to collapse
Aha, I appreciate it anyway, and I hope somebody else knows.
script is intended to run on crypto-footer, not on userdata partition. find the crypto footer first. location is mentioned fstab
what does hexdump/xxd say about dm-0? is it decrypted, can you see ext4/f2fs super magic? if yes did you try to busybox mount ro,noexec,noload dm-0
edit: can you see in /tmp/recovery.log
Data successfully decrypted, new block device: '/dev/block/dm-0'
if yes, check the decrypted block device for valid file system type (ext4 or f2fs)
Code:
xxd -l 1088 userdata.img | grep 53ef
xxd -l 1032 userdata.img | grep 1020.f5f2
if you don't have busybox download from here and copy binary to /cache
Code:
adb push Busybox-1.29.2-YDS-ARM.tgz /tmp
adb shell
cd /tmp
gzip -d *.tgz
tar -x *.tar
mv busybox-arm64-sel busybox
chmod 0755 busybox
mv busybox /cache
only if found super magic, try to mount dm-0 read-only
Code:
/cache/busybox mount -t ext4 -o ro,noexec,noload /dev/block/dm-0 /data
/cache/busybox mount -t f2fs -o ro,noexec,norecovery /dev/block/dm-0 /data
Related
I was trying to "r/w" to folder where my phone's bootanimation file but it didn't work Here is the picture :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Tmp341 said:
I was trying to "r/w" to folder where my phone's bootanimation file but it didn't work Here is the picture :
Click to expand...
Click to collapse
try it with "remount" in the market
https://market.android.com/details?id=com.stericson.remount&hl=nl
jaronstrypsteen said:
try it with "remount" in the market
https://market.android.com/details?id=com.stericson.remount&hl=nl
Click to expand...
Click to collapse
Root Explorer can mount all the system folders except this one But i will try your solution.Thanks
Remount didn't work.
Does anybody know Terminal commands?
I need to R/W for this route:
Code:
/data/cust/media
Can't we mount folders? After flashing latest update?
I guess you need to remount /.cust_backup partition first, then remount the /cust partition, the files/directories under /data/cust are symbolic linked to files/directories under /cust.
Code:
# don't forget to get busybox tool to run the following commands
busybox mount -o remount,rw /.cust_backup
busybox mount -o remount,rw /cust
read this
http://forum.xda-developers.com/showpost.php?p=20002502&postcount=9 (by genokolar)
or this
http://forum.xda-developers.com/showpost.php?p=21354334&postcount=77 (by me)
lovetide said:
I guess you need to remount /.cust_backup partition first, then remount the /cust partition, the files/directories under /data/cust are symbolic linked to files/directories under /cust.
Code:
# don't forget to get busybox tool to run the following commands
busybox mount -o remount,rw /.cust_backup
busybox mount -o remount,rw /cust
read this
http://forum.xda-developers.com/showpost.php?p=20002502&postcount=9 (by genokolar)
or this
http://forum.xda-developers.com/showpost.php?p=21354334&postcount=77 (by me)
Click to expand...
Click to collapse
First one didn't work so i tried the second.Now status bar is gone I made recovery
Do you know, how i can edit these files under Ubuntu?
I found a file called bootanimationex.zip
What is this?
i have su binary file for android 4.1,so it is not good for 4.4.2
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
good,wait for your good news.
coldface said:
i have su binary file for android 4.1,so it is not good for 4.4.2
View attachment 3444013
View attachment 3444014
View attachment 3444015
Click to expand...
Click to collapse
hey how you put su binary ? bcs when I to remount with rw system my phone is restart and when you restart root disappear bcs emmc protect ..?
loonbg said:
hey how you put su binary ? bcs when I to remount with rw system my phone is restart and when you restart root disappear bcs emmc protect ..?
Click to expand...
Click to collapse
push su to /data/local/tmp,root it,then finish these cmds in 5 sec :
mount -o remount,rw /system
cp /data/local/tmp/su /system/xbin
chmod 4755 /system/xbin/su
sec mod will lock system in 10 secs
Really?Would anyone success?
coldface said:
push su to /data/local/tmp,root it,then finish these cmds in 5 sec :
mount -o remount,rw /system
cp /data/local/tmp/su /system/xbin
chmod 4755 /system/xbin/su
sec mod will lock system in 10 secs
Click to expand...
Click to collapse
will it still there on reboot?
EFS backup and restore G925f
Manually : by adb shell command
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Requirements :
-G925f
-Root access : root with cf-root or flash twrp and install superSu
(When using su commands press Grant or Autorize Option from SuperSu)
-ADB command : Android SDK
How to do it :
for Backup efs :
- connect G925f Rooted to PC with USB cable
- run CMD in android SDK
- Then enter the following commands :
adb shell
su
dd if =/dev/block/sda3 of=/sdcard/efs_backup_g925f.img
Click to expand...
Click to collapse
For later use copy images from internal sdcard to a safe place such as pc.
for Restore efs :
- connect G925f Rooted to PC with USB cable
- run CMD in android SDK
- Then enter the following commands :
adb shell
su
dd if =/sdcard/efs_backup_g925f.img of=/dev/block/sda3
reboot
Click to expand...
Click to collapse
Good Lock
What efs is? Is it important? What does it change?
Iluvatar2000 said:
What efs is? Is it important? What does it change?
Click to expand...
Click to collapse
The Device security
Try Backup
Used to repair phone security
If that problem it will use your phone
For more information "Efs" search word
Hi sir, i got problem with my efs, my phone got stuck in samsung logo after i flash custom rom in my S6 Edge plus (SM-G928F) and has a error "Failed to mount /efs (invalid argument) btw, my s6 in not rooted
please help me
here's some pictures
I was having some connectivity issues and I saw that is was recommended to try different modems. When I received the phone it was stock with the PL1 modem. OK3 was recommended so the first thing I did was back up everything related to modem via dd if=/dev/block/mmcblk0pxx of=/data/mmcblk0pxx. I then flashed the OK3 modem via odin and it was successful. Now, I'm not able to go back. dd appears to write the data, but it never ends up on the disk.
Code:
# grep L720VPSGPL1 /data/mmcblk0p2.img
Binary file mmcblk0p2.img matches
# dd if=/data/mmcblk0p2.img of=/dev/block/mmcblk0p2
# dd if=/dev/block/mmcblk0p2 of=/data/check.img
# grep L720VPSGPL1 /data/check.img
# grep L720VPUGOK3 /data/check.img
Binary file check.img matches
I made my own tar.md5 file with NON-HLOS.bin and modem.bin, but odin fails to flash it. The odin flash failure has been brought up in other threads and people have assumed it has something to do with the message "WRITE PROTECTION: Enable" in download mode, but others say it has nothing to do with it. I'm not convinced those other people are right. Why can I write the recovery partition using dd, but not the modem partition? Something is preventing the data from getting to the disk but what?
And what other partitions are write protected?
fuzzy7k said:
And what other partitions are write protected?
Click to expand...
Click to collapse
All partitions are protected from writing from Odin. If this is truly your problem, you can turn it off in Settings/Security. If the option isn't there then that is probably not your problem. I'm guessing it's not because you wouldn't have been able to flash the OK3 modem in the first place.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So i messed up badly...
Really badly...
I finally unbricked my Nexus 7 with the help of nvflash.
Had trouble with mounting /system.
Fixed it.
Locked Bootloader in process of fixing.
Didn't find a solution.
Tried to flash a new ROM.
Formated data, cache and system as f2fs.
Installed ROM from TWRP.
Got message it succeeded.
Rebooted.
No ROM.
So back into recovery.
New problem:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I can't load any partition at all.
Can't fix them.
Can't wipe them.
Can't format them.
Tried to reset everything by flashing the blob files again with nvflash.
Finally unlocked the bootloader with this.
But still no storage.
Even internal storage is shown as 0mb.
I fixed the system problem before by using this:
Code:
cat /etc /fstab
make_ext4fs /dev/block/<insert id of system block from fstab here>
But I don't have any of those blocks remaining. So I can't reference anything here.
I guess I have to format the whole drive somehow and repartition it. But I don't know how to do that.
I would really appreciate the help.
I got so far and always do something dumb to create a new problem
EDIT:
Also I just had a look into the filesystem with twrp and I guess I really need to build everything from the ground up. There should be a few more blocks and partitions :/
EDIT 2:
If anyone can run the following 2 commands on a 16GB Nexus 7 and post the output I can try to create the partitions with parted. Would really appreciate it
Code:
cat /proc/partitions
cat /etc/fstab
and if you have parted then
Code:
/parted block/mmcblk0
(parted) p