Hey guys,
Last night I swapped the screen on my girlfriend’s One X (Rogers). After I was done I realized the microphone was damaged when I was prying the case open. I see this issue can be fixed by ordering a new captive button flex cable. In the meantime can anyone suggest a ROM, or MOD that would allow me to make the second mic (one located on the top of the phone) the primary mic for calls.
Thanks for your help,
I think CM10 fixed there "back to front MICs" issue as below. You just need to reverse it in system\etc\snd_soc_msn\snd_soc_msn
In particular for things like Handset Voice - Handset Tx device. The CM dev's would be the best ones to ask as they have dug fairly deep in to exactly what things in these files relate to. Eg what mic maps to what input etc. From what I can see CM had this fault as the MIC's are opposite in CM compared to Sense, exactly why I do not know.
EnableSequence
'SLIM_0_TX Channels':0ne
- 'SLIM TX7 MUX':0EC6
- 'DEC6 MUX':0:ADC1
- 'DEC6 Volume':1:76
- 'ADC1 Volume':1:100
- 'MICBIAS1 CAPLESS Switch':1:1
+ 'SLIM TX7 MUX'EC4
+ 'DEC4 MUX':0:ADC3
+ 'DEC4 Volume':1:67
+ 'ADC3 Volume':1:100
+ 'MICBIAS3 CAPLESS Switch':1:1
EndSequence
DisableSequence
'DEC6 MUX':0:ZERO
'SLIM TX7 MUX':0:ZERO
'MICBIAS1 CAPLESS Switch':1:0
+ 'DUAL MICBIAS Switch':1:0
+ 'MICBIAS3 CAPLESS Switch':1:0
+ 'Stereo Selection':0ff
EndSequence
Sense 3.17 looks like:
EnableSequence
'SLIM_0_TX Channels':0ne
'SLIM TX7 MUX':0EC6
'DEC6 MUX':0:ADC1
'DEC6 Volume':1:67
'ADC1 Volume':1:0
'MICBIAS1 CAPLESS Switch':1:1
'DUAL MICBIAS Switch':1:1
'MICBIAS3 CAPLESS Switch':1:1
'Stereo Selection':0n
EndSequence
DisableSequence
'ADC1 Volume':1:0
'DEC6 Volume':1:0
'DEC6 MUX':0:ZERO
'SLIM TX7 MUX':0:ZERO
'MICBIAS1 CAPLESS Switch':1:0
'DUAL MICBIAS Switch':1:0
'MICBIAS3 CAPLESS Switch':1:0
'Stereo Selection':0ff
EndSequence
Perhaps try making it:
EnableSequence
'SLIM_0_TX Channels':0ne
'SLIM TX7 MUX':0EC4
'DEC4 MUX':0:ADC3
'DEC4 Volume':1:67
'ADC3 Volume':1:0
# 'MICBIAS1 CAPLESS Switch':1:1
# 'DUAL MICBIAS Switch':1:1
'MICBIAS3 CAPLESS Switch':1:1
# 'Stereo Selection':0n
EndSequence
DisableSequence
'ADC3 Volume':1:0
'DEC4 Volume':1:0
'DEC4 MUX':0:ZERO
'SLIM TX7 MUX':0:ZERO
'MICBIAS1 CAPLESS Switch':1:0
'DUAL MICBIAS Switch':1:0
'MICBIAS3 CAPLESS Switch':1:0
'Stereo Selection':0ff
EndSequence
Thanks!
Ill give this a try tonight
twistedddx said:
I think CM10 fixed there "back to front MICs" issue as below. You just need to reverse it in system\etc\snd_soc_msn\snd_soc_msn
In particular for things like Handset Voice - Handset Tx device. The CM dev's would be the best ones to ask as they have dug fairly deep in to exactly what things in these files relate to. Eg what mic maps to what input etc. From what I can see CM had this fault as the MIC's are opposite in CM compared to Sense, exactly why I do not know.
EnableSequence
'SLIM_0_TX Channels':0ne
- 'SLIM TX7 MUX':0EC6
- 'DEC6 MUX':0:ADC1
- 'DEC6 Volume':1:76
- 'ADC1 Volume':1:100
- 'MICBIAS1 CAPLESS Switch':1:1
+ 'SLIM TX7 MUX'EC4
+ 'DEC4 MUX':0:ADC3
+ 'DEC4 Volume':1:67
+ 'ADC3 Volume':1:100
+ 'MICBIAS3 CAPLESS Switch':1:1
EndSequence
DisableSequence
'DEC6 MUX':0:ZERO
'SLIM TX7 MUX':0:ZERO
'MICBIAS1 CAPLESS Switch':1:0
+ 'DUAL MICBIAS Switch':1:0
+ 'MICBIAS3 CAPLESS Switch':1:0
+ 'Stereo Selection':0ff
EndSequence
Sense 3.17 looks like:
EnableSequence
'SLIM_0_TX Channels':0ne
'SLIM TX7 MUX':0EC6
'DEC6 MUX':0:ADC1
'DEC6 Volume':1:67
'ADC1 Volume':1:0
'MICBIAS1 CAPLESS Switch':1:1
'DUAL MICBIAS Switch':1:1
'MICBIAS3 CAPLESS Switch':1:1
'Stereo Selection':0n
EndSequence
DisableSequence
'ADC1 Volume':1:0
'DEC6 Volume':1:0
'DEC6 MUX':0:ZERO
'SLIM TX7 MUX':0:ZERO
'MICBIAS1 CAPLESS Switch':1:0
'DUAL MICBIAS Switch':1:0
'MICBIAS3 CAPLESS Switch':1:0
'Stereo Selection':0ff
EndSequence
Perhaps try making it:
EnableSequence
'SLIM_0_TX Channels':0ne
'SLIM TX7 MUX':0EC4
'DEC4 MUX':0:ADC3
'DEC4 Volume':1:67
'ADC3 Volume':1:0
# 'MICBIAS1 CAPLESS Switch':1:1
# 'DUAL MICBIAS Switch':1:1
'MICBIAS3 CAPLESS Switch':1:1
# 'Stereo Selection':0n
EndSequence
DisableSequence
'ADC3 Volume':1:0
'DEC4 Volume':1:0
'DEC4 MUX':0:ZERO
'SLIM TX7 MUX':0:ZERO
'MICBIAS1 CAPLESS Switch':1:0
'DUAL MICBIAS Switch':1:0
'MICBIAS3 CAPLESS Switch':1:0
'Stereo Selection':0ff
EndSequence
Click to expand...
Click to collapse
Related
Hi all, any devs out there fancy a look into the issues with the camcorder in current froyo builds?
I have had a go at modding media_profiles.xml as suggested by a previous user but no such luck.
Below is the logcat produced whenn trying to start video capture, it seems the initial issue is with audio, although it has been suggested that the issue may be with the kernal others have said this may me user space related.
D/dalvikvm( 84): GC_EXPLICIT freed 3536 objects / 152008 bytes in 87ms
D/dalvikvm( 311): GC_FOR_MALLOC freed 10291 objects / 522040 bytes in 53ms
I/ActivityManager( 84): Starting activity: Intent { act=android.media.action.V
IDEO_CAMERA flg=0x6000000 cmp=com.google.android.camera/com.android.camera.Video
Camera }
V/camera ( 733): stopPreview
D/dalvikvm( 84): GC_EXPLICIT freed 3684 objects / 168768 bytes in 101ms
V/videocamera( 733): startPreview
D/Camera ( 733): app passed NULL surface
D/dalvikvm( 311): GC_FOR_MALLOC freed 10317 objects / 523472 bytes in 91ms
V/GLRootView( 733): onSurfaceChanged: 673x445, gl10: com.google.android.gles_jn
[email protected]
V/GLRootView( 733): layout content pane 673x445
I/ActivityManager( 84): Displayed activity com.google.android.camera/com.andro
id.camera.VideoCamera: 611 ms (total 611 ms)
V/videocamera( 733): initializeRecorder
E/audio_input( 60): unsupported parameter: x-pvmf/media-input-node/cap-config-
interface;valtype=key_specific_value
E/audio_input( 60): VerifyAndSetParameter failed
E/CameraInput( 60): Unsupported parameter(x-pvmf/media-input-node/cap-config-i
nterface;valtype=key_specific_value)
E/CameraInput( 60): VerifiyAndSetParameter failed on parameter #0
D/AuthorDriver( 60): setParamVideoEncodingBitrate() 3000000
V/videocamera( 733): Current camera video filename: /mnt/sdcard/DCIM/Camera/VID
_20100614_003031.3gp
I/MediaRecorderJNI( 733): prepare: surface=0x244728 (id=3)
E/PVOMXEncNode( 60): PVMFOMXEncNode-Video_AVC:oPrepare(): Got Component OMX.
qcom.video.encoder.avc handle
W/CameraInput( 60): refCount 0
E/VENC_ENC( 60): VENC_ERROR update_param_port_def::1643 Frame rate is for inpu
t port (refer to OMX IL spec)
E/VENC_ENC( 60): VENC_ERROR get_parameter::952 unsupported index 0x700000b
E/VENC_ENC( 60): VENC_ERROR set_parameter::2720 unsupported index 0x700000b
E/VENC_ENC( 60): Bitrate 3000000
E/VENC_ENC( 60): VENC_ERROR get_parameter::952 unsupported index 0x6000005
E/VENC_ENC( 60): VENC_ERROR set_parameter::2720 unsupported index 0x6000005
E/VENC_ENC( 60): VENC_ERROR get_parameter::952 unsupported index 0x6000008
E/VENC_ENC( 60): VENC_ERROR set_parameter::2720 unsupported index 0x6000008
E/PVOMXEncNode( 60): PVMFOMXEncNode-Audio_AMRNB:oPrepare(): Got Component OM
X.PV.amrencnb handle
D/CameraInput( 60): Intended mFrameWidth=720, mFrameHeight=480
D/CameraInput( 60): Actual mFrameWidth=720, mFrameHeight=480
Click to expand...
Click to collapse
media_profiles.xml
here is the media_profiles.xml file that defines profiles for the encoders
-->
<!DOCTYPE MediaSettings (View Source for full doctype...)>
- <!-- This file is used to declare the multimedia profiles and capabilities
on an android-powered device.
-->
- <MediaSettings>
- <!-- Each camcorder profile defines a set of predefined configuration parameters
-->
- <CamcorderProfiles>
- <EncoderProfile quality="high" fileFormat="mp4" duration="60">
<Video codec="h264" bitRate="3000000" width="720" height="480" frameRate="24" />
<Audio codec="amrnb" bitRate="12200" sampleRate="8000" channels="1" />
</EncoderProfile>
- <EncoderProfile quality="low" fileFormat="3gp" duration="30">
<Video codec="m4v" bitRate="256000" width="176" height="144" frameRate="15" />
<Audio codec="amrnb" bitRate="12200" sampleRate="8000" channels="1" />
</EncoderProfile>
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
<Camera previewFrameRate="0" />
</CamcorderProfiles>
<EncoderOutputFileFormat name="3gp" />
<EncoderOutputFileFormat name="mp4" />
- <!-- If a codec is not enabled, it is invisible to the applications
In other words, the applications won't be able to use the codec
or query the capabilities of the codec at all if it is disabled
-->
<VideoEncoderCap name="h264" enabled="true" minBitRate="64000" maxBitRate="3000000" minFrameWidth="176" maxFrameWidth="800" minFrameHeight="144" maxFrameHeight="480" minFrameRate="1" maxFrameRate="24" />
<VideoEncoderCap name="h263" enabled="true" minBitRate="64000" maxBitRate="1000000" minFrameWidth="176" maxFrameWidth="800" minFrameHeight="144" maxFrameHeight="480" minFrameRate="1" maxFrameRate="24" />
<VideoEncoderCap name="m4v" enabled="true" minBitRate="64000" maxBitRate="2000000" minFrameWidth="176" maxFrameWidth="800" minFrameHeight="144" maxFrameHeight="480" minFrameRate="1" maxFrameRate="24" />
<AudioEncoderCap name="amrnb" enabled="true" minBitRate="5525" maxBitRate="12200" minSampleRate="8000" maxSampleRate="8000" minChannels="1" maxChannels="1" />
- <!-- FIXME:
We do not check decoder capabilities at present
At present, we only check whether windows media is visible
for TEST applications. For other applications, we do
not perform any checks at all.
-->
<VideoDecoderCap name="wmv" enabled="false" />
<AudioDecoderCap name="wma" enabled="false" />
</MediaSettings>
Click to expand...
Click to collapse
I've searched all around google regarding this and I found nothing. I have a profile that links to a Zooper widget. It shows whether a cable is connected to the USB port. This doesn't work for some reason. The Tasker notification says that there isn't any active profile.
XML for my profile here:
Code:
<TaskerData sr="" dvi="1" tv="4.6u1m">
<Profile sr="prof8" ve="2">
<cdate>1419457531585</cdate>
<edate>1419560198895</edate>
<id>8</id>
<mid0>11</mid0>
<mid1>12</mid1>
<nme>USB STATE</nme>
<State sr="con0" ve="2">
<code>150</code>
<Int sr="arg0" val="0"/>
</State>
</Profile>
<Task sr="task11">
<cdate>1419458206901</cdate>
<edate>1419458506009</edate>
<id>11</id>
<nme>USB IN</nme>
<pri>10</pri>
<Action sr="act0" ve="7">
<code>31664</code>
<se>false</se>
<Bundle sr="arg0">
<Vals sr="val">
<com.twofortyfouram.locale.intent.extra.BLURB>#TUSBSTATE# = USB Connected</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>org.zooper.zw.tasker.var.extra.STRING_TEXT</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
<org.zooper.zw.tasker.var.extra.INT_VERSION_CODE>1</org.zooper.zw.tasker.var.extra.INT_VERSION_CODE>
<org.zooper.zw.tasker.var.extra.INT_VERSION_CODE-type>java.lang.Integer</org.zooper.zw.tasker.var.extra.INT_VERSION_CODE-type>
<org.zooper.zw.tasker.var.extra.STRING_TEXT>USB Connected</org.zooper.zw.tasker.var.extra.STRING_TEXT>
<org.zooper.zw.tasker.var.extra.STRING_TEXT-type>java.lang.String</org.zooper.zw.tasker.var.extra.STRING_TEXT-type>
<org.zooper.zw.tasker.var.extra.STRING_VAR>USBSTATE</org.zooper.zw.tasker.var.extra.STRING_VAR>
<org.zooper.zw.tasker.var.extra.STRING_VAR-type>java.lang.String</org.zooper.zw.tasker.var.extra.STRING_VAR-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">org.zooper.zwpro</Str>
<Str sr="arg2" ve="3">Zooper Widget Pro Variable</Str>
<Int sr="arg3" val="0"/>
</Action>
</Task>
<Task sr="task12">
<cdate>1419458263109</cdate>
<edate>1419458524541</edate>
<id>12</id>
<nme>USB OUT</nme>
<pri>10</pri>
<Action sr="act0" ve="7">
<code>31664</code>
<se>false</se>
<Bundle sr="arg0">
<Vals sr="val">
<com.twofortyfouram.locale.intent.extra.BLURB>#TUSBSTATE# = USB Disconnected</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>org.zooper.zw.tasker.var.extra.STRING_TEXT</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
<org.zooper.zw.tasker.var.extra.INT_VERSION_CODE>1</org.zooper.zw.tasker.var.extra.INT_VERSION_CODE>
<org.zooper.zw.tasker.var.extra.INT_VERSION_CODE-type>java.lang.Integer</org.zooper.zw.tasker.var.extra.INT_VERSION_CODE-type>
<org.zooper.zw.tasker.var.extra.STRING_TEXT>USB Disconnected</org.zooper.zw.tasker.var.extra.STRING_TEXT>
<org.zooper.zw.tasker.var.extra.STRING_TEXT-type>java.lang.String</org.zooper.zw.tasker.var.extra.STRING_TEXT-type>
<org.zooper.zw.tasker.var.extra.STRING_VAR>USBSTATE</org.zooper.zw.tasker.var.extra.STRING_VAR>
<org.zooper.zw.tasker.var.extra.STRING_VAR-type>java.lang.String</org.zooper.zw.tasker.var.extra.STRING_VAR-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">org.zooper.zwpro</Str>
<Str sr="arg2" ve="3">Zooper Widget Pro Variable</Str>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>
as the title says, does anyone have the partition layout in a hex format?, my phone is bricked and to fix it, i need to flash persist. however, in its current state, the only way to do that would be using BoardDiag. the problem is that board diag dosent have persist included in its partition table, so i need to add it, but to add it,i need it´s start sector
rawprogram0.xml ->
Code:
<?xml version="1.0" ?>
<data>
<!-- NOTE: This is an ** Autogenerated file ** -->
<!-- NOTE: Sector size is 512bytes -->
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="sbl1.mbn" label="sbl1" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x5000000" start_sector="163840" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="emmc_appsboot.mbn" label="aboot" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x7000000" start_sector="229376" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="rpm.mbn" label="rpm" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x7100000" start_sector="231424" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="tz.mbn" label="tz" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x9000000" start_sector="294912" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="gpt_main0.bin" label="PrimaryGPT" num_partition_sectors="34" partofsingleimage="true" physical_partition_number="0" readbackverify="false" size_in_KB="17.0" sparse="false" start_byte_hex="0x0" start_sector="0" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="gpt_backup0.bin" label="BackupGPT" num_partition_sectors="33" partofsingleimage="true" physical_partition_number="0" readbackverify="false" size_in_KB="16.5" sparse="false" start_byte_hex="(512*NUM_DISK_SECTORS)-16896." start_sector="NUM_DISK_SECTORS-33." />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="boot.img" label="boot" num_partition_sectors="32768" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="16384.0" sparse="false" start_byte_hex="0x8000000" start_sector="262144" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="laf.img" label="laf" num_partition_sectors="55536" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="32768.0" sparse="false" start_byte_hex="0x13000000" start_sector="622592" />
</data>
opssemnik said:
as the title says, does anyone have the partition layout in a hex format?, my phone is bricked and to fix it, i need to flash persist. however, in its current state, the only way to do that would be using BoardDiag. the problem is that board diag dosent have persist included in its partition table, so i need to add it, but to add it,i need it´s start sector
rawprogram0.xml ->
Code:
<?xml version="1.0" ?>
<data>
<!-- NOTE: This is an ** Autogenerated file ** -->
<!-- NOTE: Sector size is 512bytes -->
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="sbl1.mbn" label="sbl1" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x5000000" start_sector="163840" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="emmc_appsboot.mbn" label="aboot" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x7000000" start_sector="229376" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="rpm.mbn" label="rpm" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x7100000" start_sector="231424" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="tz.mbn" label="tz" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x9000000" start_sector="294912" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="gpt_main0.bin" label="PrimaryGPT" num_partition_sectors="34" partofsingleimage="true" physical_partition_number="0" readbackverify="false" size_in_KB="17.0" sparse="false" start_byte_hex="0x0" start_sector="0" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="gpt_backup0.bin" label="BackupGPT" num_partition_sectors="33" partofsingleimage="true" physical_partition_number="0" readbackverify="false" size_in_KB="16.5" sparse="false" start_byte_hex="(512*NUM_DISK_SECTORS)-16896." start_sector="NUM_DISK_SECTORS-33." />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="boot.img" label="boot" num_partition_sectors="32768" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="16384.0" sparse="false" start_byte_hex="0x8000000" start_sector="262144" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="laf.img" label="laf" num_partition_sectors="55536" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="32768.0" sparse="false" start_byte_hex="0x13000000" start_sector="622592" />
</data>
Click to expand...
Click to collapse
Are you getting HS-USB? @bitdomo just posted up a fix that you should look into if so:
http://forum.xda-developers.com/google-nexus-5/general/fix-unbrick-nexus-5-stucked-qualcomm-hs-t3043301
opssemnik said:
as the title says, does anyone have the partition layout in a hex format?, my phone is bricked and to fix it, i need to flash persist. however, in its current state, the only way to do that would be using BoardDiag. the problem is that board diag dosent have persist included in its partition table, so i need to add it, but to add it,i need it´s start sector
rawprogram0.xml ->
Code:
<?xml version="1.0" ?>
<data>
<!-- NOTE: This is an ** Autogenerated file ** -->
<!-- NOTE: Sector size is 512bytes -->
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="sbl1.mbn" label="sbl1" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x5000000" start_sector="163840" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="emmc_appsboot.mbn" label="aboot" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x7000000" start_sector="229376" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="rpm.mbn" label="rpm" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x7100000" start_sector="231424" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="tz.mbn" label="tz" num_partition_sectors="2048" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="1024.0" sparse="false" start_byte_hex="0x9000000" start_sector="294912" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="gpt_main0.bin" label="PrimaryGPT" num_partition_sectors="34" partofsingleimage="true" physical_partition_number="0" readbackverify="false" size_in_KB="17.0" sparse="false" start_byte_hex="0x0" start_sector="0" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="gpt_backup0.bin" label="BackupGPT" num_partition_sectors="33" partofsingleimage="true" physical_partition_number="0" readbackverify="false" size_in_KB="16.5" sparse="false" start_byte_hex="(512*NUM_DISK_SECTORS)-16896." start_sector="NUM_DISK_SECTORS-33." />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="boot.img" label="boot" num_partition_sectors="32768" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="16384.0" sparse="false" start_byte_hex="0x8000000" start_sector="262144" />
<program SECTOR_SIZE_IN_BYTES="512" file_sector_offset="0" filename="laf.img" label="laf" num_partition_sectors="55536" partofsingleimage="false" physical_partition_number="0" readbackverify="false" size_in_KB="32768.0" sparse="false" start_byte_hex="0x13000000" start_sector="622592" />
</data>
Click to expand...
Click to collapse
If it is really only the persist partition which is corrupted, then you could use a custom recovery to do that.
Use latest twrp recovery.
Copy the persist img over to your phone
Enter to adb shell terminal
And flash the persist partition: dd if=/sdcard/persist.img of=/dev/block/platform/msm_sdcc.1/by-name/persist
But if you dont have a backup of your persist, then follow these instructions: http://forum.xda-developers.com/google-nexus-5/general/guide-to-fix-persist-partition-t2821576
If you trying to flash persist.img from .tot files that will not work, because it is filled with only 8 MB of zeroes
What you need
Tasker
autovoice
secure settings
The Profile Context
Profile: Voice GPS (101)
Event: AutoVoice Recognized [ Configuration:Command: "set gps (?<gpssetting>.+) (regex)" ]
Enter: GPS Settings (104)
XML:
Code:
<TaskerData sr="" dvi="1" tv="4.6u3m">
<Profile sr="prof101" ve="2">
<cdate>1425818317119</cdate>
<clp>true</clp>
<edate>1426134755875</edate>
<id>101</id>
<mid0>104</mid0>
<nme>Voice GPS</nme>
<Event sr="con0" ve="2">
<code>29126</code>
<pri>0</pri>
<Bundle sr="arg0">
<Vals sr="val">
<Contains>false</Contains>
<Contains-type>java.lang.Boolean</Contains-type>
<LastCommandIdInvert>false</LastCommandIdInvert>
<LastCommandIdInvert-type>java.lang.Boolean</LastCommandIdInvert-type>
<LastCommandIdRegex>false</LastCommandIdRegex>
<LastCommandIdRegex-type>java.lang.Boolean</LastCommandIdRegex-type>
<NotCancelSearchGoogleNow>false</NotCancelSearchGoogleNow>
<NotCancelSearchGoogleNow-type>java.lang.Boolean</NotCancelSearchGoogleNow-type>
<NotOnContinuous>false</NotOnContinuous>
<NotOnContinuous-type>java.lang.Boolean</NotOnContinuous-type>
<NotOnNormal>false</NotOnNormal>
<NotOnNormal-type>java.lang.Boolean</NotOnNormal-type>
<Precision></Precision>
<Precision-type>java.lang.String</Precision-type>
<ProfileName><null></ProfileName>
<ProfileName-type>java.lang.String</ProfileName-type>
<Substitutions><null></Substitutions>
<Substitutions-type>java.lang.String</Substitutions-type>
<TriggerWord><null></TriggerWord>
<TriggerWord-type>java.lang.String</TriggerWord-type>
<TriggerWordExact>false</TriggerWordExact>
<TriggerWordExact-type>java.lang.Boolean</TriggerWordExact-type>
<TriggerWordRegex>false</TriggerWordRegex>
<TriggerWordRegex-type>java.lang.Boolean</TriggerWordRegex-type>
<VariableNames><null></VariableNames>
<VariableNames-type>java.lang.String</VariableNames-type>
<VariableValues><null></VariableValues>
<VariableValues-type>java.lang.String</VariableValues-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Command: "set gps (?<gpssetting>.+) (regex)"</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<configcommand>Set GPS (?<gpssetting>.+)</configcommand>
<configcommand-type>java.lang.String</configcommand-type>
<configcommandid><null></configcommandid>
<configcommandid-type>java.lang.String</configcommandid-type>
<configcommandinvert>false</configcommandinvert>
<configcommandinvert-type>java.lang.Boolean</configcommandinvert-type>
<configexactsub>false</configexactsub>
<configexactsub-type>java.lang.Boolean</configexactsub-type>
<configlastcommand><null></configlastcommand>
<configlastcommand-type>java.lang.String</configlastcommand-type>
<configregexsub>true</configregexsub>
<configregexsub-type>java.lang.Boolean</configregexsub-type>
<net.dinglisch.android.tasker.EXTRA_NSR_DEPRECATED>true</net.dinglisch.android.tasker.EXTRA_NSR_DEPRECATED>
<net.dinglisch.android.tasker.EXTRA_NSR_DEPRECATED-type>java.lang.Boolean</net.dinglisch.android.tasker.EXTRA_NSR_DEPRECATED-type>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%err
Error Code
Only available if you select <b>Continue Task After Error</b> and the action ends in error</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1>%errmsg
Error Message
Only available if you select <b>Continue Task After Error</b> and the action ends in error</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2>%gpssetting
gpssetting
gpssetting</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3>%regexgroups()
Regex Groups
Regex Groups</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4>%avcommnofilter
First Command Without Filter
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5>%avsource
Source of the Voice Command
Can be normal, continuous, test or googlenow</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6>%avword()
Word Array
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7>%avcomm
First recognized Command
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES8>%avcomms()
All recognized commands
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES8><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES9>%avcommsnofilter()
All recognized commands without filter
</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES9></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>configcommand configcommandid configlastcommand Precision DisableCommand TriggerWord ProfileName Substitutions VariableNames VariableValues plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
<plugininstanceid>e1794386-e1db-4899-b8c5-c35294895d2e</plugininstanceid>
<plugininstanceid-type>java.lang.String</plugininstanceid-type>
<plugintypeid>com.joaomgcd.autovoice.intent.IntentReceiveVoiceEvent</plugintypeid>
<plugintypeid-type>java.lang.String</plugintypeid-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.joaomgcd.autovoice</Str>
<Str sr="arg2" ve="3">AutoVoice Recognized</Str>
</Event>
</Profile>
<Task sr="task104">
<cdate>1425818340403</cdate>
<edate>1425929794115</edate>
<id>104</id>
<nme>GPS Settings</nme>
<pri>10</pri>
<rty>1</rty>
<Action sr="act0" ve="7">
<code>37</code>
<ConditionList sr="if">
<bool0>Or</bool0>
<bool1>Or</bool1>
<Condition sr="c0" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*on*</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*power*</rhs>
</Condition>
<Condition sr="c2" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*high*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>GPS Enabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>gps</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>GPS Enabled</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act10" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act11" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">GPS High Accuracy</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act12" ve="7">
<code>38</code>
</Action>
<Action sr="act13" ve="7">
<code>43</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*off*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act14" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>GPS Disabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.ENABLED>false</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>gps</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>GPS Disabled</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act15" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Location Services Disabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.ENABLED>false</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>use_wireless</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Location Services Disabled</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act16" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act17" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">GPS %GPS</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act18" ve="7">
<code>38</code>
</Action>
<Action sr="act2" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">GPS %GPS</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>37</code>
<ConditionList sr="if">
<bool0>And</bool0>
<Condition sr="c0" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*power*</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%gpssetting</lhs>
<op>3</op>
<rhs>*high*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act5" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Location Mode/Battery Saving</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION>2</com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION>
<com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION-type>java.lang.Integer</com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>location_mode</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Location Mode/Battery Saving</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">GPS Power Saving</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act8" ve="7">
<code>43</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*high*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act9" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Location Mode/High Accuracy</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION>3</com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION>
<com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION-type>java.lang.Integer</com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>location_mode</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Location Mode/High Accuracy</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>
The Task
GPS Settings (104)
Abort Existing Task
A1: If [ %gpssetting ~ *on* | %gpssetting ~ *power* | %gpssetting ~ *high* ]
A2: Secure Settings [ Configuration:GPS Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A3: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A4: Flash [ Text:GPS %GPS Long: Off ]
A5: If [ %gpssetting ~ *power* & %gpssetting !~ *high* ]
A6: Secure Settings [ Configuration:Location Mode/Battery Saving Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A7: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A8: Flash [ Text:GPS Power Saving Long: Off ]
A9: Else If [ %gpssetting ~ *high* ]
A10: Secure Settings [ Configuration:Location Mode/High Accuracy Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A11: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A12: Flash [ Text:GPS High Accuracy Long: Off ]
A13: End If
A14: Else If [ %gpssetting ~ *off* ]
A15: Secure Settings [ Configuration:GPS Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A16: Secure Settings [ Configuration:Location Services Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
A17: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A18: Flash [ Text:GPS %GPS Long: Off ]
A19: End If
XML:
Code:
<TaskerData sr="" dvi="1" tv="4.6u3m">
<Task sr="task104">
<cdate>1425818340403</cdate>
<edate>1425929794115</edate>
<id>104</id>
<nme>GPS Settings</nme>
<pri>10</pri>
<rty>1</rty>
<Action sr="act0" ve="7">
<code>37</code>
<ConditionList sr="if">
<bool0>Or</bool0>
<bool1>Or</bool1>
<Condition sr="c0" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*on*</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*power*</rhs>
</Condition>
<Condition sr="c2" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*high*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>GPS Enabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>gps</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>GPS Enabled</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act10" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act11" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">GPS High Accuracy</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act12" ve="7">
<code>38</code>
</Action>
<Action sr="act13" ve="7">
<code>43</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*off*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act14" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>GPS Disabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.ENABLED>false</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>gps</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>GPS Disabled</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act15" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Location Services Disabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.ENABLED>false</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>use_wireless</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Location Services Disabled</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act16" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act17" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">GPS %GPS</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act18" ve="7">
<code>38</code>
</Action>
<Action sr="act2" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">GPS %GPS</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>37</code>
<ConditionList sr="if">
<bool0>And</bool0>
<Condition sr="c0" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*power*</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%gpssetting</lhs>
<op>3</op>
<rhs>*high*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act5" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Location Mode/Battery Saving</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION>2</com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION>
<com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION-type>java.lang.Integer</com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>location_mode</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Location Mode/Battery Saving</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">GPS Power Saving</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act8" ve="7">
<code>43</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gpssetting</lhs>
<op>2</op>
<rhs>*high*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act9" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Location Mode/High Accuracy</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION>3</com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION>
<com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION-type>java.lang.Integer</com.intangibleobject.securesettings.plugin.extra.EXTRA_SPINNER_OPTION-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>location_mode</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Location Mode/High Accuracy</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>
What to say
"Set GPS to on OR off OR high accuracy OR power saving"
OR
"Set GPS to on and high accuracy OR on and power saving"
Questions and Comments please.
Great tutorial!Where were you 2 years ago when i had a hard figuring how tasker works?LOL
dragoi90 said:
Great tutorial!Where were you 2 years ago when i had a hard figuring how tasker works?LOL
Click to expand...
Click to collapse
I was still trying to figure out how tasker works.....lol
cannot import the profile xml. tasker says no profile found
Guido83 said:
cannot import the profile xml. tasker says no profile found
Click to expand...
Click to collapse
I hadn't included the full profile xml. I fixed it so try now.
Code:
<Partitions>
<!-- size unit is MBytes -->
<Partition id="prodnv" size="10" rule="WVME22020E.img"/>
<Partition id="miscdata" size="1"/>
<Partition id="recovery" size="40" rule="WRME22020E.img"/>
<Partition id="misc" size="1"/>
<Partition id="trustos" size="6" rule="WJME22020E.img"/>
<Partition id="trustos_bak" size="6"/>
<Partition id="sml" size="1" rule="WXME22020E.img"/>
<Partition id="sml_bak" size="1"/>
<Partition id="uboot" size="1" rule="WUME22020E.img"/>
<Partition id="uboot_bak" size="1"/>
<Partition id="uboot_log" size="4"/>
<Partition id="logo" size="6" rule="WLME22020E.img"/>
<Partition id="fbootlogo" size="6" rule="WOME22020E.img"/>
<Partition id="l_fixnv1" size="2" rule="WNME22020E.img"/>
<Partition id="l_fixnv2" size="2"/>
<Partition id="l_runtimenv1" size="2"/>
<Partition id="l_runtimenv2" size="2"/>
<Partition id="proinfo" size="2" rule="WKME22020E.img"/>
<Partition id="gpsgl" size="1" rule="WIME22020E.img"/>
<Partition id="gpsbd" size="1" rule="WWME22020E.img"/>
<Partition id="wcnmodem" size="10" rule="WGME22020E.img"/>
<Partition id="persist" size="2" rule="VRME22020E.img"/>
<Partition id="l_modem" size="25" rule="WMME22020E.img"/>
<Partition id="l_deltanv" size="1" rule="WFME22020E.img"/>
<Partition id="l_gdsp" size="10" rule="WEME22020E.img"/>
<Partition id="l_ldsp" size="20" rule="WAME22020E.img"/>
<Partition id="pm_sys" size="1" rule="WDME22020E.img"/>
<Partition id="teecfg" size="1" rule="WTME22020E.img"/>
<Partition id="teecfg_bak" size="1"/>
<Partition id="boot" size="35" rule="WBME22020E.img"/>
<Partition id="dtbo" size="8" rule="VOME22020E.img"/>
<Partition id="super" size="4100" rule="WYME22020E.img"/>
<Partition id="cache" size="150" rule="WHME22020E.img"/>
<Partition id="socko" size="75" rule="VSME22020E.img"/>
<Partition id="odmko" size="25" rule="VDME22020E.img"/>
<Partition id="vbmeta" size="1" rule="VBME22020E.img"/>
<Partition id="vbmeta_bak" size="1"/>
<Partition id="metadata" size="16"/>
<Partition id="sysdumpdb" size="10"/>
<Partition id="vbmeta_system" size="1" rule="VMME22020E.img"/>
<Partition id="vbmeta_vendor" size="1" rule="VNME22020E.img"/>
<Partition id="userdata" size="0xFFFFFFFF" rule="WSME22020E.img"/>
</Partitions>
This is the xml of betools for the tablet m107_9863a_64_q (MT6580).
I tried to create a scatter file for the ReadBack function of MTK SP FLASH TOOL
Code:
##############################################################################################=Mircale Team=
#
# General Setting
#
############################################################################################################
- general: MTK_PLATFORM_CFG
info:
- config_version: V1.1.2
platform: MT6580
project: mtk_android
storage: EMMC
boot_channel: MSDC_0
block_size: 0x20000
############################################################################################################
#
# Layout Setting
#
############################################################################################################
- partition_index: SYS0
partition_name: PRELOADER
file_name: preloader.bin
is_download: true
type: SV5_BL_BIN
linear_start_addr: 0x0
physical_start_addr: 0x0
partition_size: 0x400000
region: EMMC_BOOT_1
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: BOOTLOADER
reserve: 0x00
But it give error:
ERROR : S_DL_GET_DRAM_SETTING_FAIL (5054)
[EMI] Obtain DRAM Failed!
[HINT]:
Please check your load matches to your target which is to be downloaded.
Click to expand...
Click to collapse
Where im doing it wrong??