Any System Image pull out and find in Android - Android Q&A, Help & Troubleshooting

Before 4.0 and 4.0
* Need IT's Rooted Device *
1. adb shell su -c "mount"
2. adb shell su -c "cat /proc/mtd
Now show list of your system img where stay
example : boot.img = /dev/block/mtdblock7
so you can pull out from there .. here ..
3. adb shell su -c "chmod 777 /dev/block/mtdblock7"
4. adb shell su -c "dd if=/dev/block/mtdblock7 of=/storage/sdcard0/boot.img"
(of=/storage/sdcard0/ .. this location may b change you can look at "mount" )
-----------------------------------------------------------------------------------------
After 4.1 or mmc
1. adb shell su -c "mount"
2. adb shell su -c "cat /cache/recovery/last_log"
Now show list of your system img where stay
example : boot.img = /dev/block/mmcblk0p7"
so you can pull out from there .. here ..
3. adb shell su -c "chmod 777 /dev/block/mmcblk0p7"
4. adb shell su -c "dd if=/dev/block/mtdblock7 of=/storage/sdcard0/boot.img"
(of=/storage/sdcard0/ .. this location may b change you can look at "mount" )
For someone dont' know
thanks all ...

Related

commands in file .bat change framework

Hi,
I want create a file .bat in windows hat change framework-res.apk
I write this
Code:
adb push frameworks-res.apk /sdcard/frameworks-res.apk
adb shell su
adb shell su
adb shell mount -r remount,rw /system
adb shell cp /sdcard/framework-res.apk /system/framework/framework-res.apk
adb reboot
after push file i see windows shell stops in adb shell and don't go next command
how can i exec all command?

Batch Idea.. help :)

im trying to make a batch file which does the following,
using adb shell, i want to take a folder of apks from the pc and push them to system/app with a chmod 644
I have this for a single apk..
Code:
adb shell su -c "mount -o remount,rw /system"
adb shell su -c "cat /sdcard/external_sd/example.apk > /system/app/example.apk"
adb shell su -c "chmod 644 /system/app/example.apk"
but life would be much easier if i could just drop a bunch of .apks into a folder on the pc or sdcard and just execute said commands for each apk automatically
thanks!

Efs ?

I can't find any info on whether or not it's imperative , or possible to back up efs on this device. I typically always back them up when I am rooted bc it's my biggest fear in somehow getting corrupted or lost, and not having anyway to restore. There doesn't seem to be a topic anywhere on These boards (DNA) so I'm thinking it's either impossible to lose or very easy to restore lol. Anyone know for Sure ?
adb shell su -c "cat /proc/partitions"
adb shell su -c "cat /proc/emmc"
adb shell su -c "mkdir /sdcard/img"
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/mmcblk0p18 of=/sdcard/img/radio_config.img"
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/mmcblk0p22 of=/sdcard/img/modem_st1.img"
adb shell su -c "dd if=/dev/block/platform/msm_sdcc.1/mmcblk0p23 of=/sdcard/img/modem_st2.img"
mkdir efsbak
adb pull -p /sdcard/img/radio_config.img .\efsbak
adb pull -p /sdcard/img/modem_st1.img .\efsbak
adb pull -p /sdcard/img/modem_st2.img .\efsbak

Curious about Philz Touch Recovery files....

I have a question here. Recently the LG G PRO 2 android handphone received OTA update. If I let the OTA run. After OTA updated, if I still want to re-install Philz Touch Recovery, is that mean the latest newer file provided by OTA update will be overwrite when I re-install the recovery that released 1 yr ago?
Below is the command that will install the files if I re-install the recovery. I dont know if these file important or not if replaced by recovery installation. I have no idea the purpose of these files. Please advice.
What I hope is to make sure latest stable file running on my phone.
adb shell su -c "dd if=/sdcard/img/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery"
adb shell su -c "dd if=/sdcard/img/aboot.img of=/dev/block/platform/msm_sdcc.1/by-name/aboot"
adb shell su -c "dd if=/sdcard/img/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot"
adb shell su -c "dd if=/sdcard/img/dbi.img of=/dev/block/platform/msm_sdcc.1/by-name/dbi"
adb shell su -c "dd if=/sdcard/img/laf.img of=/dev/block/platform/msm_sdcc.1/by-name/laf"
adb shell su -c "dd if=/sdcard/img/persist.img of=/dev/block/platform/msm_sdcc.1/by-name/persist"
adb shell su -c "dd if=/sdcard/img/rpm.img of=/dev/block/platform/msm_sdcc.1/by-name/rpm"
adb shell su -c "dd if=/sdcard/img/sbl1.img of=/dev/block/platform/msm_sdcc.1/by-name/sbl1"
adb shell su -c "dd if=/sdcard/img/tz.img of=/dev/block/platform/msm_sdcc.1/by-name/tz"
adb shell su -c "dd if=/sdcard/img/modem.img of=/dev/block/platform/msm_sdcc.1/by-name/modem"

how to install su in system ? /Traditional option

i cant install su in system i test all many option and still cant please tell me
stargam said:
i cant install su in system i test all many option and still cant please tell me
Click to expand...
Click to collapse
Try this
Code:
adb devices
adb disable-verity
adb reboot
adb devices
adb shell "mkdir -p /data/local/tmp > 2/dev/null"
adb push c:\su /data/local/tmp > nul
adb shell "chmod 0777 /data/local/tmp/su"
adb shell "-c '/data/local/tmp/su'"
adb shell "setenforce 0"
adb shell "cd /"
adb shell "mount -o rw,remount -t auto /system"
adb shell "cp /data/local/tmp/su /system/bin"
adb shell "mount -o ro,remount -t auto /system"
adb reboot
adb devices
adb enable-verity
adb reboot
Ok I try
jwoegerbauer said:
Try this
Click to expand...
Click to collapse
When I test adb "mkdir-p/data/local/tmp>2/dev/null" he say no such file or directory
stargam said:
When I test adb "mkdir-p/data/local/tmp>2/dev/null" he say no such file or directory
Click to expand...
Click to collapse
1. I think you forgot to type a simple "space" between Command: "mkdir -p" and Dirname: "data/local/tmp > 2 /dev/null"
2. And the last part "> 2 /dev/null" means redirect stdout (or error stream) and ignore it.
Conclusion, maybe just a typo? or err. mssge isn't what you think --> redirection made it dissappear.
Hopefully this works...
otherwise use this code:
adb devices
adb shell "mkdir -p /data/local/tmp" 2>nul >nul
adb shell "chmod 0755 /data/local/tmp"
adb push C:\su /data/local/tmp > nul
adb shell "chmod 0777 /data/local/tmp/su"
adb shell "/data/local/tmp/su -c 'cd / && mount -o rw,remount -t auto /system'"
adb shell "cp /data/local/tmp/su /system/bin"
adb shell "/data/local/tmp/su -c 'setprop ro.build.type user-debug'"
adb reboot
Click to expand...
Click to collapse
Cheerz!
webbex said:
1. I think you forgot to type a simple "space" between Command: "mkdir -p" and Dirname: "data/local/tmp > 2 /dev/null"
2. And the last part "> 2 /dev/null" means redirect stdout (or error stream) and ignore it.
Conclusion, maybe just a typo? or err. mssge isn't what you think --> redirection made it dissappear.
Hopefully this works...
otherwise use this code:
Cheerz!
Click to expand...
Click to collapse
Thanks it work ?

Categories

Resources