I'd like to dump the /system partition of a stock CDMA (Sprint) Galaxy Tab 7, mounted at /dev/block/stl9 -- but I don't have root. Thus no permission to read
I'm wondering if it would be possible to do an edify script in an update.zip that would:
dd if=/dev/block/stl9 of=/sdcard/image.img
Any help appreciated, thanks!
edit:
I tried the code below in an updater-script, but it failed with a signature error. So I guess this is a no go?
Code:
run_program("/system/bin/dd", "if=/dev/block/stl9 of=/data/local/image.img");
jocala said:
I'd like to dump the /system partition of a stock CDMA (Sprint) Galaxy Tab 7, mounted at /dev/block/stl9 -- but I don't have root. Thus no permission to read
I'm wondering if it would be possible to do an edify script in an update.zip that would:
dd if=/dev/block/stl9 of=/sdcard/image.img
Any help appreciated, thanks!
edit:
I tried the code below in an updater-script, but it failed with a signature error. So I guess this is a no go?
Code:
run_program("/system/bin/dd", "if=/dev/block/stl9 of=/data/local/image.img");
Click to expand...
Click to collapse
Greetings,
While I realize this thread is old. I thought I'd chime in anyway.
If I understand you correctly. Your problem is likely that your Zip file was not signed.
There are several apps available that will sign your zip files for you -- ZipSigner, for example.
Hope this helps you, or others.
Please press the Thanks button, if it did.
--Chris
Related
Okay, I seriously had enough of people saying is this AmonRa or whatsoever. I Derived both files from here and decided to make those instructions/script easier for you to understand. This recovery covers most basic needs (wipe,backup,restore,flash etc.) , so if you are going to keep complaining about my thread title/contents, I'll be glad to remove this thread and leave you people to figure out how to install custom recovery
WARNING : Only for P500....
Many people tried installing custom recovery, but ended up hard resetting your phone wondering WTF went wrong right? Like you people I ended up resetting 4 times =.=ll so..now I've succeeded, I'm just gonna share how its done!
==============================================================
Files Needed :
recovery-RA-thunderg-2.2.1-GNM.img.zip
flash_image.zip
(Both downloadable from below)
==============================================================
The files preparation process:
1)Download both of them into your pc
2)extract both of them out.
3)Get the contents of both extracted folders and copy into the root of your sd card.
============================================================
The Actual Installation Process
1)Use either adb shell or Terminal Emulator(from the market) to install it
2)Enter the script below.
Code:
1.su
2.mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
3.cat /sdcard/flash_image > /system/bin/flash_image
4.chmod 755 /system/bin/flash_image
5.mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak
6.flash_image recovery /sdcard/recovery-RA-thunderg-2.2.1-GNM.img
3)If you have error for step 5. stating /system/etc/install-recovery.sh : file not found, do not panic, just move on to the next step.
4)If you have error for flash_image : 1:")" unexpected, make sure flash_image is a file, not an folder.
============================================================
Testing it Out.
1)If you only had the error for step 5 from all of the above and nothing else. Pray hard and type in : reboot recovery into your adb shell or terminal emulator.
2)If you had errors from steps other from step 5, go look at it again and think. DO NOT TAKE THE RISK!
3)I'm still a newbie coder so this thread may not be good but I derived the files from here but I wanted to make it less confusing for you people so if there is anything missing/wrong/you don't know/you wanna ask, just post a reply!
=============================================================
Basic Key mappings for Custom Recovery:
menu > select
vol+ > up
vol- > down
back > back
Rest can be found here
FOR PEOPLE WHO THINKS THIS IS STOCK RECOVERY, IT IS NOT. IT ALLOWS FLASHING.
Nice Thread .....nut der r many threads same ...rite??? but i liked....i voted u !!1
Thaannkksss.....There are many threads, but most of which give confusing instructions that clearly do not work with idiots like me XP
amosng1 said:
Thaannkksss.....There are many threads, but most of which give confusing instructions that clearly do not work with idiots like me XP
Click to expand...
Click to collapse
rite.....depends upon person whos reading...
virusshah1997 said:
rite.....depends upon person whos reading...
Click to expand...
Click to collapse
True, thats preettty much why it has a unique title
Am running on stock 2.2.2 and rooted using GingerBreak. Whenever I try entering commands on Terminal Emulator it says Access Denied. Help!
bindaasathar said:
Am running on stock 2.2.2 and rooted using GingerBreak. Whenever I try entering commands on Terminal Emulator it says Access Denied. Help!
Click to expand...
Click to collapse
Hmm? Give more specific details. But try and see if you have root. If you have root but still says Access Denied, try typing su first?
amosng1 said:
Hmm? Give more specific details. But try and see if you have root. If you have root but still says Access Denied, try typing su first?
Click to expand...
Click to collapse
it says with I type in su the terminal emulator. My device is perfectly rooted since all other applications which require root access seem to work.
Thanks this is such a good info!
bindaasathar said:
it says with I type in su the terminal emulator. My device is perfectly rooted since all other applications which require root access seem to work.
Click to expand...
Click to collapse
No offense but what is "it says with i type...."
I kinda do not understand.
daniequy said:
Thanks this is such a good info!
Click to expand...
Click to collapse
Thank you.....maybe you could do me a favor and press that thank button
amosng1 said:
No offense but what is "it says with i type...."
I kinda do not understand.
Click to expand...
Click to collapse
If you had Superuser, did you allow terminal emulator to access root functions?
-a thought i have thought-
The sooner you reply, the faster i can get you a answer!
I got the following error in the last step 6:
Code:
# flash_image recovery /sdcard/recovery-RA-thunderg-2.2.1-GNM.img
flash_image recovery /sdcard/recovery-RA-thunderg-2.2.1-GNM.img
mtd: read error at 0x00000000 (Out of memory)
mtd: read error at 0x00020000 (Out of memory)
mtd: read error at 0x00040000 (Out of memory)
I'm going to try to search for this issue but meanwhile if anyone knows what to do about this please let me know. I'll update a link here in case I find the solution.
Edit: This problem is fixed!!
If you get the out of memory error you need to type:
Code:
mount -o remount,ro -t yaffs2 /dev/block/mtdblock1 /system
Reference: I got this from this link here in section 3.
amosng1, If you think other people might also experience the same issue then it would be great if you could precede Step 6 with the code above.
This worked perfectly fine for my LGP500 model! I booted into recovery.
ROM: Stock GB 2.3.3.
Kernel: Stock kernel (will update this detail on robooting my phone)
Rooted: Using SuperOneClick method with npeuter
Thanks a lot for your guide matey!
I, have already made a, thread for recovery with terminal emulater
http://forum.xda-developers.com/showthread.php?t=2003080
androidisfuture said:
I, have already made a, thread for recovery with terminal emulater
http://forum.xda-developers.com/showthread.php?t=2003080
Click to expand...
Click to collapse
Okay, I had used the adb shell actually. I've been more comfortable with this. Maybe I'll try out the terminal one sometime too.
Sent from my LG-P500 using xda app-developers app
Sorry, after each command what key i press to work? Or after step, how to work this command?
1.su
2.mount-o remount, rw-t YAFFS2 / dev/block/mtdblock1 / sistema
3.cat / sdcard / flash_image> / system / bin / flash_image
4.chmod 755 / system / bin / flash_image
5.mv / sistema / etc / install-recovery.sh / sistema / etc / install-recovery.sh.bak
6.flash_image recuperação / sdcard/recovery-RA-thunderg-2.2.1-GNM.img
One of the easiest how-to's I have come across
amosng1 said:
Okay, I seriously had enough of people saying is this AmonRa or whatsoever. I Derived both files from here and decided to make those instructions/script easier for you to understand. This recovery covers most basic needs (wipe,backup,restore,flash etc.) , so if you are going to keep complaining about my thread title/contents, I'll be glad to remove this thread and leave you people to figure out how to install custom recovery
WARNING : Only for P500....
Many people tried installing custom recovery, but ended up hard resetting your phone wondering WTF went wrong right? Like you people I ended up resetting 4 times =.=ll so..now I've succeeded, I'm just gonna share how its done!
==============================================================
Files Needed :
recovery-RA-thunderg-2.2.1-GNM.img.zip
flash_image.zip
(Both downloadable from below)
==============================================================
The files preparation process:
1)Download both of them into your pc
2)extract both of them out.
3)Get the contents of both extracted folders and copy into the root of your sd card.
============================================================
The Actual Installation Process
1)Use either adb shell or Terminal Emulator(from the market) to install it
2)Enter the script below.
Code:
1.su
2.mount -o remount,rw -t yaffs2 /dev/block/mtdblock1 /system
3.cat /sdcard/flash_image > /system/bin/flash_image
4.chmod 755 /system/bin/flash_image
5.mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak
6.flash_image recovery /sdcard/recovery-RA-thunderg-2.2.1-GNM.img
3)If you have error for step 5. stating /system/etc/install-recovery.sh : file not found, do not panic, just move on to the next step.
4)If you have error for flash_image : 1:")" unexpected, make sure flash_image is a file, not an folder.
============================================================
Testing it Out.
1)If you only had the error for step 5 from all of the above and nothing else. Pray hard and type in : reboot recovery into your adb shell or terminal emulator.
2)If you had errors from steps other from step 5, go look at it again and think. DO NOT TAKE THE RISK!
3)I'm still a newbie coder so this thread may not be good but I derived the files from here but I wanted to make it less confusing for you people so if there is anything missing/wrong/you don't know/you wanna ask, just post a reply!
=============================================================
Basic Key mappings for Custom Recovery:
menu > select
vol+ > up
vol- > down
back > back
Rest can be found here
FOR PEOPLE WHO THINKS THIS IS STOCK RECOVERY, IT IS NOT. IT ALLOWS FLASHING.
Click to expand...
Click to collapse
Worked perfectly had only the step 5 error 'no such file or directory' everything else worked and I was able to boot into the custom recovery no problem. Thanks
hi,
guys i am having trouble with my phone all of a sudden.
I flashed back to stock ED05 and now my /system rfs partition is READ ONLY.
I found out its only read only, because i couldn't root anymore. I need root for titanium backup so i can restore my apps.
How do i change it to Readwrite?
Im trying to remount, but i am having problems
i went into cmd > adb shell > window opened up i typed mount -o rw,remount -t rfs /dev/block/stl9 (the stl9 is my /system i think from the look of the screenshot if i am wrong plz post)
and then i tried chmod 777 /system
it says UNABLE TO chmod /system read-only file system
SCREENSHOT from adb shell
replace 1234 in link to http
1234://img535.imageshack.us/img535/1202/android2.jpg
i tried following this guide replace 1234 with http and 123 with www
1234://123.pocketmagic.net/?p=757
thx for help in advance
sorry for links it says u need to have 8 posts before u can link away from forums
someone plz help im going insane on this. I have tried odin DL09 and ED05 over and over again but /system stays read-only
-ADB shell doesnt fix it
-odin doesnt fix it
-trying to get root but since /system is read-only i cant get root
plz someone has to know this
I'm having the same problem. Tried using the Samsung root package mentioned in another thread and it fails to mount the system directory.
I just got my Fascinate this weekend due to a warranty swap from another phone. It ran the update to ED05 when I OTA'd it. Is this something locked down in ED05?
FYI, just found this thread and had no problems doing it the manual way. try it out.
http://forum.xda-developers.com/showthread.php?t=779238
Anyone know how to do it? I tried google but didn't get the correct info. Any info is welcomed.
If I helped, give thanks, if you please.
........Death before dishonor........
is it nandroid backup ?
I think there are two kinds of backups- yaffs and ext3/4 images. I think most of the more recent recovery versions have switched to ext3/4 or tar.
Overall, the procedure would be to extract the data and then pack it into a zip.
The yaffs images can be extracted using unyaffs- google for the source. The ext3/4 images can be mounted using the loop option "mount -o loop path/to/image path/to/mountpoint"
At this point, you'll have the extracted image on your computer. Arrange it into a zip and be sure to update the updater-script. You will most likely have to fix some of the permissions, which you can see from another updater-script or look at the running rom. I'm not sure if you can rely on the permissions from the yaff/loop image.
This is a pretty high level overview- you'll have to fill in the details.
That seems a bit over my head, maybe in time I'll be able to do it.
If I helped, give thanks, if you please.
........Death before dishonor........
Why do you need to convert the backups into flashable zips?
sashank said:
Why do you need to convert the backups into flashable zips?
Click to expand...
Click to collapse
There's some icon png files I want to change, they way I do it is different.
If I helped, give thanks, if you please.
........Death before dishonor........
Is it something that you can push with adb? If you are only changing a few files, then adb push will be fine.
You could extract them from a backup files with the unyaffs or mount commands I listed above.
gee one said:
Is it something that you can push with adb? If you are only changing a few files, then adb push will be fine.
You could extract them from a backup files with the unyaffs or mount commands I listed above.
Click to expand...
Click to collapse
Using adb is possible, but I'm not so good with it. I have an idea of what the command would be. I just prefer being able to see the outcome my self, do I can verify it.
If I helped, give thanks, if you please.
........Death before dishonor........
try this:
before:
adb shell ls -l /path/to/your/target
push:
adb push /your/files/on/your/computer /target/on/your/phone
after:
adb shell ls -l /path/to/your/target
this will show you size and creation date changes so you can verify that it worked.
If you are really paranoid, you can use "adb shell md5sum /path/to/your/target" instead to verify the md5 hash. You have to have the md5sum binary installed- I think it's usually installed via busybox.
I'll keep that in mind, but there's still one issue. I need to knew the exact file name, the main icon.png file differs per apk
If I helped, give thanks, if you please.
........Death before dishonor........
got it- you're trying to change the icons for the apks. I don't know much about theming, but you might be able to use a script to update the apk/zip- something like zip -u email.apk /res/blah/mdpi/icon.png
Although I'm not 100% sure that you can update zips in the rom. I think some versions of busybox/toolbox are capable.
Normally I do it though 7zip,with a ROM that I already have on my sdcard. That why I wanted to create a flashable from a back up. I could try adb though
If I helped, give thanks, if you please.
........Death before dishonor........
Hello All,
I'm new here. I believe I supposed to write a reply to this thread, but I couldn't. So, sorry to all mods.
Anyway, after applying battery hack files (services.jar & systemUI.apk), my RAZR is now stuck on boot.
However, I can connect my handset to PC and access the shell via ADB. The problem is, silly me, I was so excited that I forgot to backup the services.jar & systemUI.apk in same directory. It's on the sdcard however.
How to mount the sdcard onto the android system, so that I can overwrite the files by original ones from the sdcard?
I'm using XT910, it was AsiaRetail, but I flashed using the latest eu.en.33 & deodexed, which was working fine.
Any helps are appreciated. Thanks.
iman38 said:
Hello All,
I'm new here. I believe I supposed to write a reply to this thread, but I couldn't. So, sorry to all mods.
Anyway, after applying battery hack files (services.jar & systemUI.apk), my RAZR is now stuck on boot.
However, I can connect my handset to PC and access the shell via ADB. The problem is, silly me, I was so excited that I forgot to backup the services.jar & systemUI.apk in same directory. It's on the sdcard however.
How to mount the sdcard onto the android system, so that I can overwrite the files by original ones from the sdcard?
I'm using XT910, it was AsiaRetail, but I flashed using the latest eu.en.33 & deodexed, which was working fine.
Any helps are appreciated. Thanks.
Click to expand...
Click to collapse
when you say stuck on boot, do you mean bootloop?
If you were on deodexed system it should work i don't see why...
Anyway if you have a backup of your file it's fine, if you don't have i'll send it to you in 2hours.
Code:
adb shell
su
cp /sdcard/SystemUI.apk /system/app/
cp /sdcard/services.jar /system/framework/
reboot
No need to mount sdcard it's mounted automatically.
Maybe the change i made, make it unworking on .33. I tried on it before the 1% just with toggle so maybe it's not working.
sevenup30 said:
when you say stuck on boot, do you mean bootloop?
If you were on deodexed system it should work i don't see why...
Anyway if you have a backup of your file it's fine, if you don't have i'll send it to you in 2hours.
Code:
adb shell
su
cp /sdcard/SystemUI.apk /system/app/
cp /sdcard/services.jar /system/framework/
reboot
No need to mount sdcard it's mounted automatically.
Maybe the change i made, make it unworking on .33. I tried on it before the 1% just with toggle so maybe it's not working.
Click to expand...
Click to collapse
Yes, I deodexed using xUltimate 2.4.2 ; Deodexing was successful and my phone was running fine after deodexed.
So my only suspects are the services.jar and systemui.apk
It's not bootloop, it's stuck on the Motorola Animation. Normally, it would vibrate and enter the android, now it's stuck there. But as I said, I can connect using adb and access su.
The sdcard is not mounted (I guess the boot process halted somewhere before it mount the drives automatically).
So, do you know the exact command to mount the sdcard? external sd card in my case.
Btw, if I reflash using the fastboot file, SPDREM_U_01.6.7.2-180_SPU-19-TA-11.2_SIGNEuropeAustraliaEMEA_USASPDRICSRTGB_HWp2b_Service1FF_fastboot.xml.zip from droid-developers, will it work? I'm afraid it will make it worse, so I need confirmation before the last resort of re-flashing my phone.
Btw, I was using battery app and tick the 1% hack, it did show 1% decrement, but have it's own notification. If your patch works, then it's great
tia
Try:
Code:
busybox mount -t vfat /dev/block/mmcblk0p1 /sdcard
or
busybox mount -t vfat /dev/block/mmcblk0 /sdcard
or try to fastboot this one:
http://forum.xda-developers.com/showthread.php?t=1747800
might be the same as you mentionned, latest fastboot ICS for EN.EU
sevenup30 said:
Try:
Code:
busybox mount -t vfat /dev/block/mmcblk0p1 /sdcard
or
busybox mount -t vfat /dev/block/mmcblk0 /sdcard
or try to fastboot this one:
http://forum.xda-developers.com/showthread.php?t=1747800
might be the same as you mentionned, latest fastboot ICS for EN.EU
Click to expand...
Click to collapse
Sorry for late replied. I flashed my phone using latest fastboot. At first, it was panicking since it failed in step 6 (system_signed or something) and my phone keep displaying white text of "failed fastboot" even after I powered it down. But with little hope, I tried again and it's succeeded. Thank God the flashing didn't erase anything.
Thanks anyway.
Btw, if I want to do my own mod of those files (1% battery hack), what should I do?
Hey!
I have some questions. With Android L arrived the custom ROMs with files packed into image files (like system.img). And I saw that cm12(just an example) doesn't need anymore to set permissions and create symlinks because they are already stored inside the image file.
And my question is: how can I store the system files into a image file with all symlinks created and permissions set? And also which files require symlinks and what permission should be set for folders/files ?..and into a image files, where are stored the symlinks?
I'm using Windows 7 and I want to make a custom ROM based on stock LG G2 firmware.
I have other ROM's as reference(with system packed into an image file, and with system unpacked) and I can look inside them to see which files needs symlinks..but my main question is, why these files need symlinks?
Thanks!
My two cents :
Cmd to find symlinks (in term emulator, you can remove the end of the cmd if you just want to see the result in the terminal instead of creating a file fic.txt)
ls -lR /system | grep ^l | grep " -> " > fic.txt
Note : in cloudyfa's rom you can see symlinks in updater script (same as stock + busybox)
6ril1 said:
My two cents :
Cmd to find symlinks (in term emulator, you can remove the end of the cmd if you just want to see the result in the terminal instead of creating a file fic.txt)
ls -lR /system | grep ^l | grep " -> " > fic.txt
Note : in cloudyfa's rom you can see symlinks in updater script (same as stock + busybox)
Click to expand...
Click to collapse
Thanks for help ..I understand better now..I searched more and the system.img is the stock image from kdz(I think).. and it contains the necessary symlinks and permissions.
raulx222 said:
Thanks for help ..I understand better now..I searched more and the system.img is the stock image from kdz(I think).. and it contains the necessary symlinks and permissions.
Click to expand...
Click to collapse
Can you help me,how do you get the symlinks and permissions from the system.img;
Thank you very much,I searched this issue long time
austinycl said:
Can you help me,how do you get the symlinks and permissions from the system.img;
Thank you very much,I searched this issue long time
Click to expand...
Click to collapse
Try running that command and see the output. It's been a long time, I don't quite remember right now. Try looking into cloudyfa's ROM zip, it might help
raulx222 said:
Try running that command and see the output. It's been a long time, I don't quite remember right now. Try looking into cloudyfa's ROM zip, it might help
Click to expand...
Click to collapse
Thank you very much,I will try it!
U can use SuperR kitchen