yashsingh1/xdaforums huggingface dataset:
[Xperia Z General] Vaith:
Check your PC Companion for update not xda...

Wysłane z mojego C6603 za pomocą Tapatalk 4
[Xperia Z General] x102x96x:
if u cannot w8 for PC companion >> Flash new firmware by Emma or ...

when Sony release update to ur area it won't exclude just u so Be Patient

:good:
[Xperia Z General] Apollo89:
[INFO] Latest firmware version per customization (region/branding)
[Xperia Z General] fish droid:
http://xdaforums.com/showthread.php?t=2337838

flash this via flashtool . I flash it to one of my friends who has c6602
[Xperia Z General] thamer305:
this firmware have arabic Language?!
[Xperia Z General] Smartphoner:
All firmwares support reading and writing arabic, but other than middle east version; no arabic language in system ui.

My phone is from Hong Kong and it supports arabic.
[General Questions and Answers] coachclass:
So, there's very few reviews on this box:

http://blog.geekbuying.com/index.ph...-rk3188-quad-core-tv-box-review/#.Ucyhd13bQkQ

Is it because it's crap, or is it just so new that few people have it yet? How's your experience with geekbuying's reviews?

I have the Ouya, but wondering if this would be better for XBMC and emulator playing.
[Android Software/Hacking General [Developers Only]] DavisNT:
Many logcat reading applications fail to read logcat on Android 4.1+ (Jelly Bean). The few that are working well are using root features. This post contains a code sample that can be easy included in existing logcat applications to make them rooted Jelly Bean compatible.

Root cause of the problem:

Android permission android.permission.READ_LOGS is required to read logcat.

Starting from Android 4.1 it is

no more granted

to regular apps upon installation,

but

it can be granted using pm grant command under root.

Solution for users (of Jelly Bean incompatible logcat reading apps):

Invoke the following command as root (replacing org.jtb.alogcat with package name of logcat reading application) to grant the missing permission

pm grant org.jtb.alogcat android.permission.READ_LOGS

Show application's developers this thread.

Solution for developers:

Here is code sample for automatically detecting lack of the permission and granting it with root features: This code grants permission for reading logs only after relaunching applications VM (usually after first reboot or after opening other applications and returning to app having this code).

import eu.chainfire.libsuperuser.Shell;

// DON'T USE THIS CODE. SEE PROPER CODE BELOW!

if(context.getPackageManager().checkPermission(android.Manifest.permission.READ_LOGS,
context.getPackageName()) != android.content.pm.PackageManager.PERMISSION_GRANTED) {
Shell.SU.run("pm grant "+context.getPackageName()+" "+android.Manifest.permission.READ_LOGS);
}

Solution for developers:

Download and add AdjustReadLogsPermission.java to your project as a new class (or directly into Activity class of the main activity (as nested static class - by changing class definition to private static class).

AdjustReadLogsPermission should be called from onCreate method of the Activity class of application's main activity (activity that will be opened when launching the application) by this code:

AdjustReadLogsPermission.adjustIfNeeded(this);

AdjustReadLogsPermission detects lack of android.permission.READ_LOGS permission and asynchronously grants it using root features and relaunches the application.

This post (as well as all my posts) including any code in it is provided AS-IS without warranty of any kind!

Parts of this code come from libsuperuser_example. This code is distributed under Apache License.

As this code uses libsuperuser (made by [MENTION=631273]Chainfire[/MENTION], distributed under Apache License) it is required to download it and add reference to it in application's project.

As this code uses root features it is recommended to declare uses-permission android.permission.ACCESS_SUPERUSER in application's AndroidManifest.xml.

I hope this article will help developers of logcat reading applications! :)
[Android Software/Hacking General [Developers Only]] tananaev:
Sorry for resurrecting this old thread, but I found a way to access logs without root permissions. You can use remote debugging feature. Here is an open source Lagcat app that I developed that uses this approach.
[Upgrading, Modifying and Unlocking] forthree:
Hello i need someone to help me to unlock my XDA IIs and XDA IIi. It is locked to 02. I just got it. Is there a program to unlock it. Thanks.
[Upgrading, Modifying and Unlocking] efcmandan:
www.imei-check.com £20
[Galaxy S Advance I9070 General] YMatrix:
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:

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:

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 [MENTION=2805784]mr.harsh[/MENTION] and [MENTION=5093942]KINGbabasula[/MENTION] 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 :D
[Galaxy S Advance I9070 General] BOOTMGR:
in the terminal type:

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...
[Galaxy S Advance I9070 General] YMatrix:
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?
[Galaxy S Advance I9070 General] KINGbabasula:
Via adb:

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
[Galaxy S Advance I9070 General] YMatrix:
Thank you!

Why use the CP command and not the DD command? Or in this case it doesn't really matter?
[Galaxy S Advance I9070 General] KINGbabasula:
cp=copy dd=copy, convert, format. See my reply. I updated
[Galaxy S Advance I9070 General] YMatrix:
Still don't get the difference DD / CP :p

As for the commands you posted, I was asking for the restore process, so I am guessing it will look like this:

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)?
[Galaxy S Advance I9070 General] KINGbabasula:
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)

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
[Galaxy S Advance I9070 General] YMatrix:
Hmmm, so this is a pickle.

Wrong partition is always a problem, but since I also checked a thread by [MENTION=4559222]frapeti[/MENTION], 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.
[Galaxy S Advance I9070 General] KINGbabasula:
No because cp copy the content of the partition. dd format the partition then copy in the partition
[Galaxy S Advance I9070 General] YMatrix:
Oh, alright, so to sum up so people can use this for future reference:

Backup Process:

adb shell
$ su
# cp /sdcard/efs_backup /dev/block/mmcblk0p7
# cp /sdcard/modemfs_backup /dev/block/mmcblk0p2
# exit
$ exit

Restore Backup Process:

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
[Galaxy S Advance I9070 General] KINGbabasula:
Now i make a script to automate it
[Galaxy S Advance I9070 General] KINGbabasula:
Here is the script

I'm not sure that it will work
[Galaxy S Advance I9070 General] YMatrix:
That was fast :D

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. :p
[Galaxy S Advance I9070 General] KINGbabasula:
Yes please can you change the title to [SOLVED] How to backup EFS and Modemfs folders. And in the op write the solutions? Thanks
[Galaxy S Advance I9070 General] YMatrix:
Already did ;)
[Galaxy S Advance I9070 General] arffrhn:
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.
[Galaxy S Advance I9070 General] KINGbabasula:
Yes you can
[Galaxy S Advance I9070 General] arffrhn:
I see. Thanks man. :)
[Galaxy S Advance I9070 General] YMatrix:
Thanks frapeti!

Back to a question I asked in this thread, what exactly is the difference between CP and DD commands? And why is DD better for this procedure while you can just copy paste the folders?
[Galaxy S Advance I9070 General] frapeti:
dd dump the whole partition, while cp copy separated files / folders
[Galaxy S Advance I9070 General] BOOTMGR:
Not telling you're wrong, just informing. every partition from /dev/block/* can be treated as file.dd deals with block devices while cp works with files.so cp can be used for backing up partition (we have been doing this for ages for my previous device to backup and restore baseband) though dd will convert and copy it to target directory so looks more organized.
[Galaxy S Advance I9070 General] fredrickaein:
Size of efs & modemfs in root folder.

Hi,

I was trying to take backup of these folders, but before that, i thought of having a look at the actual folder in the root for their sizes.

efs = 87 files, 12 folder. total six=ze is 4.84Kb

modemfs = This folder is empty.

Now please tell is if these are normal sizes. If it is normal then how come their backup is 10 & 16 Mb respectively.

Phone - Samsung S Advance 9070

ROM - Pure Vanila V5

Kernel CoCore E6.8

Regards,

Fred
[Galaxy S Advance I9070 General] YMatrix:
I am surprised that your modemfs folder is empty :eek:

As for the folder size vs. backup size, this is because that these folders are actually partitions on the phone. when backing up using DD / CP commands you are backing up the whole partition (even the "empty" bits of data), which is why you get the according sizes (these are the partition's sizes).
[Galaxy S Advance I9070 General] fredrickaein:
modemfs folder size.

Hi,

Thanks for the reply

I checked the modemfs folder again using ES Explorer, i still find it 0 bytes and its working fine. I think we both are using the same ROM.

Prior to flashing this ROM i was using the HarshJelly ROM based on JB DDULP8 with stock Kernel. My device baseband is I9070DDULP8, is this the reason for this discrepancy.

Can i please know what is the size of the actual modemfs on your phone.

Regards,

Fred.
[Galaxy S Advance I9070 General] arffrhn:
I copied the entire folders efs and modemfs and got only 8kb and 16kb respectively. You sure need 10 n 16mb?
[Galaxy S Advance I9070 General] YMatrix:
I don't know why the discrepancy exists, my EFS folder is 8.76 KB, and MODEMFS folder is 10.63 KB.

Maybe [MENTION=4559222]frapeti[/MENTION] can shed light on this.

Read the post you quoted:
[Galaxy S Advance I9070 General] arffrhn:
Yeah that's why I asked. Wondering if I do anything wrong and it won't work when restoring.
[Galaxy S Advance I9070 General] YMatrix:
Copying the folders in theory should also work, its just safer to back them up using the DD command since you get the original structure, permissions, dates etc. of the partitions.

Thus when restoring its as if you never tampered with them, while the "copy folder" method doesn't give you the original data structure.

Again, it shouldn't make a difference (in theory), but we always like to be closest to the original ;)
[Galaxy S Advance I9070 General] arffrhn:
I see. Yeah, closest so that we know we did everything correctly. :)
[Galaxy S Advance I9070 General] BOOTMGR:
about size of the back up, theoretically it should be 10 and 16 MB because these partitions are 10 & 16MB resp.I'm still not much familiar with samsung devices so don't know why you modemfs is null

major minor #blocks name

7 0 24980 loop0
7 1 40572 loop1
7 2 17703 loop2
179 0 15388672 mmcblk0
179 1 16384 mmcblk0p1
179 2 16384 mmcblk0p2
179 3 626688 mmcblk0p3
179 4 313344 mmcblk0p4
179 5 2097152 mmcblk0p5
179 6 1536 mmcblk0p6
179 7 10240 mmcblk0p7
179 8 11859968 mmcblk0p8
179 9 327680 mmcblk0p9
179 10 1024 mmcblk0p10
179 11 51200 mmcblk0p11
179 12 2048 mmcblk0p12
179 13 16384 mmcblk0p13
179 14 2048 mmcblk0p14
179 15 16384 mmcblk0p15
179 16 2048 mmcblk0p16
179 17 16384 mmcblk0p17
179 64 2048 mmcblk0boot1
179 32 2048 mmcblk0boot0
179 96 3866624 mmcblk1
179 97 3862528 mmcblk1p1
254 0 24979 dm-0
254 1 40572 dm-1
254 2 17703 dm-2
[Galaxy S Advance I9070 General] fredrickaein:
Gents,

Let me check another S Advance with baseband V I9070DDULP8 and i will get back to you. It seams to me that the folder sizes & its contents are different in diff regions. Even the folder sizes doesn't match on both of your devices.

Thanks both of you for your comments.:victory::good:
[Galaxy S Advance I9070 General] fredrickaein:
Hi,

I just checked another S Advance with the baseband version DDULP8 and it seems that the efs folder is 4.62 KB and the modemfs folder is empty. Now do you guys have any idea why this is so?

Regards,

Fred
[Galaxy S Advance I9070 General] arffrhn:
Oh, is that stock ddulp8? Cause I use ddulp8 too but I installed cm10.1 on it.
[Galaxy S Advance I9070 General] fredrickaein:
Yes it is Unrooted Stock DDULP8 running jelly bean 4.1.2. Checked these folder sizes using ES Explorer.
[Galaxy S Advance I9070 General] t4n017:
Thanks for the post. I did the backup, my 'efs_backup' file size is 10mb and the 'modemfs_backup' is 16mb. Im using the firmware LQG (Italy).

I have one question. When I was in GB I backed up only the 'efs' folder and not with 'dd', but copying it manually from phone to the computer. How to know if it's useful?
[Galaxy S Advance I9070 General] Piachnp:
can you backup this to the external sd ??? would the original data structure be saved as well ?
[Galaxy S Advance I9070 General] YMatrix:
It's supposed to be useful, but having a DD backup is much safer.

Yes, you can backup to external sd, even good to keep a copy on your pc. By using the DD command the structure is saved.
[Galaxy S Advance I9070 General] jazzh:
Excellent tutorial. Just one Q though...

These commands through terminal:

$ su

# dd if=/dev/block/mmcblk0p7 of=/sdcard/efs_backup.img

# dd if=/dev/block/mmcblk0p2 of=/sdcard/modemfs_backup.img

# exit

means they must be performed from the phone while it's working (booted), or...?

thx.
[Galaxy S Advance I9070 General] YMatrix:
Yes, just boot your phone and type them in the terminal.

As you can see from the commands, it saves the 2 images on your internal SD card.
[Galaxy S Advance I9070 General] arffrhn:
Yeah, you can do just that. Just type in terminal emulator while it's booted.
[Galaxy S Advance I9070 General] Piachnp:
[MENTION=5104609]YMatrix[/MENTION] [MENTION=5093942]KINGbabasula[/MENTION] Ok, so I tried to be a responsible person and backup this files..... I don't know what the hell happened, I used this commands in terminal emulator:

$ su

# dd if=/dev/block/mmcblk0p7 of=/sdcard/efs_backup.img

# dd if=/dev/block/mmcblk0p2 of=/sdcard/modemfs_backup.img

Files were created without problem, but then i noticed that mi 3g connectivity was glitchy, and then realized that my Modemfs folder is empty: 0 files, 0 bytes. My backups are the correct size (10 and 16mb).

Tried to restore the modemfs image, but the folder is still empty. I DO NOT RECOMMEND THIS METHOD, just copy the folders as they are from a file explorer and be done with it..... i wish i had done this :(

EFS folder doesn't seem to have the same problem, don't know why. Does anyone know if i can get a modemfs "transplant" from another user with the same firmware ?? (my firmware is VSLP9 (Movistar Argentina firmware).

Just to be clear, 3G works sometimes, but most of the time (especially when switching over from wifi) i don't get any kind of data signal as if data mode was off...
[Galaxy S Advance I9070 General] YMatrix:
First of all the problem and your assumption it is connected to the backup you created is

INCORRECT

.

The 2 commands you quoted are a copy raw data process, thus what was there during the copy will be in the backup file.

I don't know why your modemfs is empty, and whether it is connected to your problem (could be a rom bug, communication problem etc.)

More over, the "copy+paste" process you advised should also work,

BUT

the dd command makes sure you backup the data (including time stamps and permissions) as is, making your backup exact, so your wishing of copying the folders via root explorer wouldn't have changed a thing.
[Galaxy S Advance I9070 General] Nishad1982:
modemfs is not empty - recheck

I did the same and at first sight when I came to check the modemfs folder by ES File Explorer I was stunned to see it empty. But I changed settings of ES File Explorer - enabled hidden files, root explorer and went for properties of the folder - there are 68 files, 6 folders. You can also check from terminal by typing the following command:

$su

#cd /modemfs

#ls -la

Before doing anything else I would advise you to check in my way.
[Galaxy S Advance I9070 General] iiD4x:
guys plz the correct commands for using it in terminal emu ,

bcuz when i use adb shell :

what i did wrong ?
[Galaxy S Advance I9070 General] YMatrix:
On the first command you forgot the .img file extension.

On the second command you added a space character after the "/"
[Galaxy S Advance I9070 General] iiD4x:
[MENTION=5104609]YMatrix[/MENTION] help me please or just tell me ,

if i used this commands it will work or not ?
[Galaxy S Advance I9070 General] YMatrix:
You did the backup commands correctly. The problems you had were with the syntax of the adb pull commands
[Galaxy S Advance I9070 General] iiD4x:
where exactly ? i just used the commands on first post

so i copied and pasted it .. if it wrong edit it .

---------- Post added at 08:55 PM ---------- Previous post was at 08:48 PM ----------

Sorry dude , my english its not so well so please can u just QOUTE the command i should use i'll backup again , and i really dont know how i use PULL commands

i want detailed BACKUP and RESTORE commands pls :)

---------- Post added at 09:08 PM ---------- Previous post was at 08:55 PM ----------

@YMatrix is it like this ? i think u need to edit the command in first post because its without ".img" in pull command
[Galaxy S Advance I9070 General] shut_down:
Do not type # and $. It is there already (show do you have root access of not).

Backup Process:

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:

adb push efs_backup /sdcard/efs_backup.img
adb push modemfs_backup /sdcard/modemfs_backup.img
adb shell
su
d if=/sdcard/efs_backup of=/dev/block/mmcblk0p7
dd if=/sdcard/modemfs_backup of=/dev/block/mmcblk0p2
exit
exit

adb pull /sdcard/efs_backup efs_backup

adb pull /sdcard/modemfs_backup modemfs_backup

This is missing .img and path where to pull fille. Files will be in root of your sd card - use copy/paste like you would do for image, song or whatever.
[Galaxy S Advance I9070 General] YMatrix:
[MENTION=5136572]iiD4x[/MENTION] The code on the OP was missing .img just like [MENTION=2991046]shut_down[/MENTION] said.

I fixed the OP code so it would be "Copy + Paste"-able to a Windows Command window (without the "#,$" which messed your script running.

The adb pull / push commands are just if you don't want to copy / paste the files via explorer window.

If you need any more help, feel free to ask.

Good luck!
[Galaxy S Advance I9070 General] iiD4x:
I know that i dont neet to type #,$

I just copied from cmd after i do it

.

The problem is in PAC 4.3 when I do restore nothing change ..
[Galaxy S Advance I9070 General] YMatrix:
:silly: You should have said you're on CM Roms.

This process of backup and recovery is when you totally wipe your IMEI. On CM Roms, you don't wipe your IMEI but get a "global" one.

I am not sure why this happens (maybe [MENTION=2991046]shut_down[/MENTION] has more info on that), but a good way to work around it is by, reflashing stock, making sure your IMEI is back and then flash the CM Rom.
[Galaxy S Advance I9070 General] iiD4x:
i was on Stock , and flashed CM .

no 3G

IMEI Known

IMEI SV 01

Baseband Known

but 3g not working , why i dont know ..~!

so i tried the EFS restore and modemfs

still not workin

any suggestions

P.S : all CM Roms same problem , i tried SamiOS and 3g working also on stock .
[Galaxy S Advance I9070 General] iiD4x:
[MENTION=5104609]YMatrix[/MENTION] [MENTION=2991046]shut_down[/MENTION] i need help ..
[Galaxy S Advance I9070 General] shut_down:
Did you do factory reset? Some people do not have network unless they do factory reset after changing ROM.
[Galaxy S Advance I9070 General] iiD4x:
yes i did factory reset before flash the rom ..
[Galaxy S Advance I9070 General] shut_down:
I do not know what can cause your problem. Check if it is 2g only checked in network settings. Settings>More settings.
[Galaxy S Advance I9070 General] iiD4x:
its not checked ..
[Galaxy S Advance I9070 General] shut_down:
You can't use 3G and 2G is working? Or you can't use mobile data at all? Did you tried with some other SIM card, of some other provider?
[Galaxy S Advance I9070 General] iiD4x:
i can't use mobile data on CM Roms only !
[Galaxy S Advance I9070 General] YMatrix:
Since this thread is about efs backup I would advise you to ask in the CM question thread or open a new thread in the questions forum.

My only advice would be to re flash latest stock via Odin and then flash CM Rom.

Other than that you should use the questions forum.
[Galaxy S Advance I9070 General] arffrhn:
Have you tried toggle airplane mode on and off? Try that first.

Sent from whatever the thing I use using whatever the app I have.
[Galaxy S Advance I9070 General] iiD4x:
:(

i tried that.

yes tried it .
[Galaxy S Advance I9070 General] shut_down:
Try this:

http://forum.cyanogenmod.com/topic/76184-mobile-datainternet-not-working-cyanogen-1012/

Add APN manualy.
[Galaxy S Advance I9070 General] iiD4x:
SHUUUUUUUUUUT DOWN , I LOOOOOOOOOOOOOVE UUUUUUUUUUUUUUU :good::good:

u r my new HEROOOOOOO!

omg u r best member THX THX THXXXXXXXXXXXXXXXXXXX :D
[Galaxy S Advance I9070 General] shut_down:
I am glad you fixed it. :D
[Galaxy S Advance I9070 General] milkgreen:
anyone using XAMD baseband? (SEA Regions)

I need the modemfs backup TT^TT