when i try to set the version it says permission denied.. i have successfully done the previous steps and when i try to put in the line in red it just doesnt give me permission even though i have # i am using http://forum.xda-developers.com/showthread.php?t=1178912
please refer to the Changing Version Number to Allow Downgrade section.
what am i doing wrong? what do i have too do?
P.S. I am asking in a new thread because the downgrade walktrough is in developers and i am new. any help will be apreciated
C:\AndroidSDK\platform-tools>adb shell
# /data/local/tmp/misc_version_01/misc_version -s 1.00.000.0
\/data/local/tmp/misc_version_01/misc_version -s 1.00.000.0
/data/local/tmp/misc_version_01/misc_version: permission denied
# sync
\sync
# dd if=/dev/block/mmcblk0p17 bs=1 skip=160 count=10
dd if=/dev/block/mmcblk0p17 bs=1 skip=160 count=10
2.19.531.110+0 records in
10+0 records out
10 bytes transferred in 0.003 secs (3333 bytes/sec)
#
Are you gaining temp root first?
um you didnt link to anything
I am seeing different commands than what you have posted...
> adb push misc_version /data/local/tmp/misc_version
> adb shell chmod 777 /data/local/tmp/misc_version
> adb shell
# /data/local/tmp/misc_version -s 1.00.000.0
they are different because the file name was different(it was misc_version_01 folder but had same misc_version file inside) and i pushed folder and not just the file so i had to get to the file
oh and i did get temp root...
that make adb shell make a # right
eddy14777 said:
they are different because the file name was different(it was misc_version_01 folder but had same misc_version file inside) and i pushed folder and not just the file so i had to get to the file
Click to expand...
Click to collapse
That shouldn't be the case, you are supposed to unzip the folder in your platform-tools directory, so you shouldn't have the folder name in the command...just the file.
thanks! i will try this and se if that goes smoother
you sir are a genious! thankyou soo much.. i probably wouldnt have gotten past this if it werent for you... thankyou
eddy14777 said:
you sir are a genious! thankyou soo much.. i probably wouldnt have gotten past this if it werent for you... thankyou
Click to expand...
Click to collapse
No problem...glad I could help
My tf101 is on .21 firmware unrooted.
Useing method 3 i am stuck on step 5 : dd if=/sdcard/recoveryblob of=/dev/block/mmcblk0p4
as soon as i paste it into adb shell:
[email protected]:/ $ dd if=/sdcard/blob of=/dev/block/mmcblk0p4
dd if=/sdcard/blob of=/dev/block/mmcblk0p4
/sdcard/blob: cannot open for read: No such file or directory
1|[email protected]:/ $
What is wrong
jakemog said:
My tf101 is on .21 firmware unrooted.
Useing method 3 i am stuck on step 5 : dd if=/sdcard/recoveryblob of=/dev/block/mmcblk0p4
as soon as i paste it into adb shell:
[email protected]:/ $ dd if=/sdcard/blob of=/dev/block/mmcblk0p4
dd if=/sdcard/blob of=/dev/block/mmcblk0p4
/sdcard/blob: cannot open for read: No such file or directory
1|[email protected]:/ $
What is wrong
Click to expand...
Click to collapse
Looks like you had a typo
Should be
Code:
dd if=/sdcard/[B]recoveryblob[/B] of=/dev/block/mmcblk0p4
Hello everyone,
Can someone help me get some files from HTC one S s4 (US T-mobile) please?
Because my phone was broken, even cannot power on, cannot use adb as well. I need to collect a partition file from the phone.
Because once I saw some articles to solve this kind of trouble and want to have a try, but in lack of this partition file.
I just need those who have the same phone as mine can provide the file to me.
--------
adb shell su -c 'dd if=/dev/block/mmcblk0 of=/cache/partition0.bin bs=512 count=1'
adb shell su -c 'dd if=/dev/block/mmcblk0 of=/cache/partition0.bin bs=512 count=9'
--------
Can someone use these two command and send me two partition files please?
The final file is called "partition0.bin"
Each command can create one.
Thank you so much.:victory:
Hello!
So I recently stumbled upon some information that while flashing all kinds of Roms, you might lose your IMEI, thus being left over with a nice paper weight.
To my understanding this information is stored in the EFS folder (though according to this thread it is actually stored in modemfs).
I googled around and saw many options: PC software, terminal commands, apps etc.
Since each phone utilizes this option in different ways, which would be a good way to backup these folders in case of emergency on the S Advance?
Thanks!
SOLUTION:
These are the commands from the ADB shell, but can also be used within the terminal.
Backup Process:
Code:
adb shell
su
dd if=/dev/block/mmcblk0p7 of=/sdcard/efs_backup.img
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemfs_backup.img
exit
exit
adb pull /sdcard/efs_backup.img efs_backup.img
adb pull /sdcard/modemfs_backup.img modemfs_backup.img
Restore Backup Process:
Code:
adb push efs_backup.img /sdcard/efs_backup.img
adb push modemfs_backup.img /sdcard/modemfs_backup.img
adb shell
su
dd if=/sdcard/efs_backup.img of=/dev/block/mmcblk0p7
dd if=/sdcard/modemfs_backup.img of=/dev/block/mmcblk0p2
exit
exit
Thanks to @mr.harsh and @KINGbabasula for help and KINGbabasula for making the script!
Please note that the restore commands haven't been tested out, but theoretically its supposed to work.
If someone has made a backup and wiped his EFS folder, he wont mind testing it out
YMatrix said:
Hello!
So I recently stumbled upon some information that while flashing all kinds of Roms, you might lose your IMEI, thus being left over with a nice paper weight.
To my understanding this information is stored in the EFS folder (though according to this thread it is actually stored in modemfs).
I googled around and saw many options: PC software, terminal commands, apps etc.
Since each phone utilizes this option in different ways, which would be a good way to backup these folders in case of emergency on the S Advance?
Thanks!
Click to expand...
Click to collapse
in the terminal type:
Code:
su
cp /dev/block/mmcblk0p7 /sdcard/efs_backup
cp /dev/block/mmcblk0p2 /sdcard/modemfs_backup
check that efs_backup is 10MB and modemfs_backup is 16MB.And this is for JB.I don't know about GB but most probably they'll be same...
Thank you for your quick reply.
I tested it out and got the sizes you said.
The restore process, if ever needed, is the same cp command only changing the source and destination?
Whats the difference between the CP command and the DD command?
Any way to do this from recovery or ADB?
Sent from my GT-I9070 using Tapatalk 4 Beta
YMatrix said:
Thank you for your quick reply.
I tested it out and got the sizes you said.
The restore process, if ever needed, is the same cp command only changing the source and destination?
Whats the difference between the CP command and the DD command?
Any way to do this from recovery or ADB?
Sent from my GT-I9070 using Tapatalk 4 Beta
Click to expand...
Click to collapse
Via adb:
Code:
adb shell
$ su
# cp /dev/block/mmcblk0p7 /sdcard/efs_backup
# cp /dev/block/mmcblk0p2 /sdcard/modemfs_backup
# exit
$ exit
adb pull /sdcard/efs_backup %cd%\efs_backup
adb pull /sdcard/modemfs_backup %cd%\modemfs_backup
KINGbabasula said:
Via adb:
Code:
adb shell
$ su
# cp /dev/block/mmcblk0p7 /sdcard/efs_backup
# cp /dev/block/mmcblk0p2 /sdcard/modemfs_backup
Click to expand...
Click to collapse
Thank you!
Why use the CP command and not the DD command? Or in this case it doesn't really matter?
YMatrix said:
Thank you!
Why use the CP command and not the DD command? Or in this case it doesn't really matter?
Click to expand...
Click to collapse
cp=copy dd=copy, convert, format. See my reply. I updated
KINGbabasula said:
cp=copy dd=copy, convert, format. See my reply. I updated
Click to expand...
Click to collapse
Still don't get the difference DD / CP
As for the commands you posted, I was asking for the restore process, so I am guessing it will look like this:
Code:
adb shell
$ su
# cp /sdcard/efs_backup /dev/block/mmcblk0p7
# cp /sdcard/modemfs_backup /dev/block/mmcblk0p2
# exit
$ exit
Is there a "push" command also (to be used like the pull command)?
YMatrix said:
Still don't get the difference DD / CP
As for the commands you posted, I was asking for the restore process, so I am guessing it will look like this:
Code:
adb shell
$ su
# cp /sdcard/efs_backup /dev/block/mmcblk0p7
# cp /sdcard/modemfs_backup /dev/block/mmcblk0p2
# exit
$ exit
Is there a "push" command also (to be used like the pull command)?
Click to expand...
Click to collapse
I'm not sure but i think that you need to use dd to restore because you are going to flash 2 partition like flashing kernel.
You can do this (i repeat Im not sure)
Code:
adb push efs_backup /sdcard/efs_backup
adb push modemfs_backup /sdcard/modemfs_backup
adb shell
$ su
# dd if=/sdcard/efs_backup of=/dev/block/mmcblk0p7
# dd if=/sdcard/modemfs_backup of=/dev/block/mmcblk0p2
# exit
$ exit
Pay attention cause if you dd to a wrong partition you may brick
KINGbabasula said:
I'm not sure but i think that you need to use dd to restore because you are going to flash 2 partition like flashing kernel.
Pay attention cause if you dd to a wrong partition you may brick
Click to expand...
Click to collapse
Hmmm, so this is a pickle.
Wrong partition is always a problem, but since I also checked a thread by @frapeti, I am assuming the partition numbers are correct, though I don't know about the commands. Since we saved using CP shouldn't we also restore using CP? Otherwise I would say save using DD and then restore using DD.
YMatrix said:
Hmmm, so this is a pickle.
Wrong partition is always a problem, but since I also checked a thread by @frapeti, I am assuming the partition numbers are correct, though I don't know about the commands. Since we saved using CP shouldn't we also restore using CP? Otherwise I would say save using DD and then restore using DD.
Click to expand...
Click to collapse
No because cp copy the content of the partition. dd format the partition then copy in the partition
KINGbabasula said:
No because cp copy the content of the partition. dd format the partition then copy in the partition
Click to expand...
Click to collapse
Oh, alright, so to sum up so people can use this for future reference:
Backup Process:
Code:
adb shell
$ su
# cp /sdcard/efs_backup /dev/block/mmcblk0p7
# cp /sdcard/modemfs_backup /dev/block/mmcblk0p2
# exit
$ exit
Restore Backup Process:
Code:
adb push efs_backup /sdcard/efs_backup
adb push modemfs_backup /sdcard/modemfs_backup
adb shell
$ su
# dd if=/sdcard/efs_backup of=/dev/block/mmcblk0p7
# dd if=/sdcard/modemfs_backup of=/dev/block/mmcblk0p2
# exit
$ exit
YMatrix said:
Oh, alright, so to sum up so people can use this for future reference:
Backup Process:
Code:
adb shell
$ su
# cp /sdcard/efs_backup /dev/block/mmcblk0p7
# cp /sdcard/modemfs_backup /dev/block/mmcblk0p2
# exit
$ exit
Restore Backup Process:
Code:
adb push efs_backup /sdcard/efs_backup
adb push modemfs_backup /sdcard/modemfs_backup
adb shell
$ su
# dd if=/sdcard/efs_backup of=/dev/block/mmcblk0p7
# dd if=/sdcard/modemfs_backup of=/dev/block/mmcblk0p2
# exit
$ exit
Click to expand...
Click to collapse
Now i make a script to automate it
Here is the script
I'm not sure that it will work
KINGbabasula said:
Here is the script
I'm not sure that it will work
Click to expand...
Click to collapse
That was fast
Guessing the only way to test out the restore option is if someone that made a backup and wiped his efs/modemfs folders, to test the script out.
YMatrix said:
That was fast
Guessing the only way to test out the restore option is if someone that made a backup and wiped his efs/modemfs folders, to test the script out.
Click to expand...
Click to collapse
Yes please can you change the title to [SOLVED] How to backup EFS and Modemfs folders. And in the op write the solutions? Thanks
KINGbabasula said:
Yes please can you change the title to [SOLVED] How to backup EFS and Modemfs folders. And in the op write the solutions? Thanks
Click to expand...
Click to collapse
Already did
Hi, I just wanna ask. Can I just copy the efs and modemfs folders to ext sd, then to restore I just copy and replace both files to its actual location using any root explorer (ie: es file manager)? Just asking as I read this guide on backing imei part.
arffrhn said:
Hi, I just wanna ask. Can I just copy the efs and modemfs folders to ext sd, then to restore I just copy and replace both files to its actual location using any root explorer (ie: es file manager)? Just asking as I read this guide on backing imei part.
Click to expand...
Click to collapse
Yes you can
Sent from my GT-I9070 using Tapatalk 4 Beta
KINGbabasula said:
Yes you can
Sent from my GT-I9070 using Tapatalk 4 Beta
Click to expand...
Click to collapse
I see. Thanks man.
YMatrix said:
Oh, alright, so to sum up so people can use this for future reference:
Backup Process:
Code:
adb shell
$ su
# cp /sdcard/efs_backup /dev/block/mmcblk0p7
# cp /sdcard/ /dev/block/mmcblk0p2
# exit
[/QUOTE]
Thats wrong, to backup using cp use something like cp [original efs] [sdcard/backup folder]
I guess it's better to use dd command for this purpose:
dd if=/dev/block/mmcblk0p7 of=/sdcard/efs_backup.img
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemfs_backup.img
To restore just switch if with of (input file / output file)
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
my mate 7 tl10 partions gone after bad flashing
wee need partions from another tl10 via adb backup with dd command : details of command here:
adb shell
su
dd if=/dev/block/mmcblk0 of=/sdcard/Dump_1GB.bin bs=1024 count=1024000
dd if=/dev/block/mmcblk0 of=/sdcard/Dump_512mb.bin bs=1024 count=524288
dd if=/dev/block/mmcblk0 of=/sdcard/Dump_2GB.bin bs=1024 count=2048000
and another command if give u any results send me dd backups:
adb shell
su
dd if=/dev/block/mmcblk0boot0 of=/sdcard/Boot0.bin bs=1024 count=4096
dd if=/dev/block/mmcblk0boot1 of=/sdcard/Boot1.bin bs=1024 count=4096
at the final procedures use this commands:
adb shell
su
cat /proc/partitions