Based in this fantastic sergiorus thread http://forum.xda-developers.com/showthread.php?t=472308 and mainly in caballero600 work, I've adapted some buttons/links/apps to work for HTC Mega devices.
To restore your device to your previous settings, just uninstall it and softreset.
Feel free to change/modify the Tab (buttons, background, HTCHomeSettings.xml, etc. in this thread, please) at your own risk/like
These are the files and the registry keys installed/changed
Code:
[Files]
Windows\HTCHomeSettings.xml
Windows\New Appt.lnk
Windows\New Contact.lnk
Windows\New Note.lnk
Windows\New SMS.lnk
Windows\New Task.lnk
Windows\New Mail.lnk
Windows\OPERATOR_EMAIL.png
Windows\OPERATOR_BT.png
Windows\OPERATOR_CALENDAR.png
Windows\OPERATOR_MESSAGES.png
Windows\OPERATOR_CONTACT.png
Windows\OPERATOR_MUTE.png
Windows\OPERATOR_NOTES.png
Windows\OPERATOR_TASKS.png
Windows\OPERATOR_WIFI.png
Windows\ToggleBTh.exe
Windows\Vibra.exe
Windows\Wifi_ON-OFF.exe
Windows\hh_fw_bigicon_operator.png
Windows\hh_fw_bigicon_operator_mask.png
[Registry]
HKLM\Software\HTC\Manila2D\Operator\ServiceName=Action Screen
HKLM\Software\HTC\Manila2D\Operator\SK1=Calendar
HKLM\Software\HTC\Manila2D\Operator\SK1Cmd=\Windows\calendar.lnk
HKLM\Software\HTC\Manila2D\Operator\SK2=Tasks
HKLM\Software\HTC\Manila2D\Operator\SK2Cmd=\Windows\tasks.lnk
HKLM\Software\HTC\Manila2D\Operator\0\DispName=SMS
HKLM\Software\HTC\Manila2D\Operator\0\IconPath=\Windows\OPERATOR_MESSAGES.png
HKLM\Software\HTC\Manila2D\Operator\0\Path=\Windows\New SMS.lnk
HKLM\Software\HTC\Manila2D\Operator\1\DispName=Email
HKLM\Software\HTC\Manila2D\Operator\1\IconPath=\Windows\OPERATOR_EMAIL.png
HKLM\Software\HTC\Manila2D\Operator\1\Path=\Windows\New Mail.lnk
HKLM\Software\HTC\Manila2D\Operator\2\DispName=Contact
HKLM\Software\HTC\Manila2D\Operator\2\IconPath=\Windows\OPERATOR_CONTACT.png
HKLM\Software\HTC\Manila2D\Operator\2\Path=\Windows\New Contact.lnk
HKLM\Software\HTC\Manila2D\Operator\3\DispName=Appointment
HKLM\Software\HTC\Manila2D\Operator\3\IconPath=\Windows\OPERATOR_CALENDAR.png
HKLM\Software\HTC\Manila2D\Operator\3\Path=\Windows\New Appt.lnk
HKLM\Software\HTC\Manila2D\Operator\4\DispName=Task
HKLM\Software\HTC\Manila2D\Operator\4\IconPath=\Windows\OPERATOR_TASKS.png
HKLM\Software\HTC\Manila2D\Operator\4\Path=\Windows\New Task.lnk
HKLM\Software\HTC\Manila2D\Operator\5\DispName=Note
HKLM\Software\HTC\Manila2D\Operator\5\IconPath=\Windows\OPERATOR_NOTES.png
HKLM\Software\HTC\Manila2D\Operator\5\Path=\Windows\New Note.lnk
HKLM\Software\HTC\Manila2D\Operator\6\DispName=Bluetooth
HKLM\Software\HTC\Manila2D\Operator\6\IconPath=\Windows\OPERATOR_BT.png
HKLM\Software\HTC\Manila2D\Operator\6\Path=\Windows\ToggleBTh.exe
HKLM\Software\HTC\Manila2D\Operator\7\DispName=WiFi
HKLM\Software\HTC\Manila2D\Operator\7\IconPath=\Windows\OPERATOR_WIFI.png
HKLM\Software\HTC\Manila2D\Operator\7\Path=\Windows\Wifi_ON-OFF.exe
HKLM\Software\HTC\Manila2D\Operator\8\DispName=mUTE
HKLM\Software\HTC\Manila2D\Operator\8\IconPath=\Windows\OPERATOR_MUTE.png
HKLM\Software\HTC\Manila2D\Operator\8\Path=\Windows\Vibra.exe
Enjoy it!!
Hello, will we be able to change the buttons in order to change the applications, for example to change the contacts for tomtom?
Nice app
congrats
aiui said:
Hello, will we be able to change the buttons in order to change the applications, for example to change the contacts for tomtom?
Click to expand...
Click to collapse
Yep. The only thing you'll have to do is to change your registry settings in your correct button path
(HKLM\Software\HTC\Manila2D\Operator\2 registry key for "Contact" button) like this
Code:
HKLM\Software\HTC\Manila2D\Operator\2\DispName=Contact
HKLM\Software\HTC\Manila2D\Operator\2\IconPath=\Windows\OPERATOR_CONTACT.png
HKLM\Software\HTC\Manila2D\Operator\2\Path=\Windows\New Contact.lnk
and change the registry values above for these marked in red bellow
Code:
HKLM\Software\HTC\Manila2D\Operator\2\DispName=[COLOR="Red"]GPS[/COLOR]
HKLM\Software\HTC\Manila2D\Operator\2\IconPath=\Windows\[COLOR="Red"]OPERATOR_GPS.png[/COLOR]
HKLM\Software\HTC\Manila2D\Operator\2\Path=[COLOR="Red"]\SD Card\Program Files\Navigator\TomTom Navigator.lnk[/COLOR]
and look for your own OPERATOR_GPS.png icon, and check your TomTom Path (i.e. \SD Card\Program Files\Navigator\TomTom Navigator.lnk) and button name (i.e. GPS)
Wow!!! great app (and explaination) !!!!
[Quote = unpocolocos; 6437304] Yep. A única coisa que você tem que fazer é alterar as configurações de seu registro em seu caminho o botão correto ( HKLM, "Software \ HTC \ Manila2D operador \ \ 2" [/ B] para "Contato" botão) como essa
[CÓDIGO] HKLM, "Software \ HTC Manila2D operador \ \ 2", "DispName", 0x00000000, "[color =" Red GPS "]] / [COLOR"
HKLM, "Software \ HTC Manila2D operador \ \ 2", "IconPath", 0x00000000, "\ Windows \ [color =" Red "] OPERATOR_GPS.png [/ color]"
HKLM, "Software \ HTC Manila2D operador \ \ 2", "Caminho", 0x00000000, "[color =" Red "] \ dp \ Program Files Card \ Navigator \ [Navigator.lnk TomTom / color]"
[/ Code] e procurar a sua própria cor [= "Red"] OPERATOR_GPS.png [/ color ícone], e verifique o seu caminho TomTom (ou seja, [color = "Red"] \ SD Card \ Program Files \ Navigator \ TomTom Navigator . [lnk / COLOR]) eo nome do botão (ou seja, [color = "Red"] GPS [/ color]) [/ QUOTE]
thanks but my problem I do not have good English and do not fully understand the programming, I can not even go up to what I advise, is that you can give me the correct path of the program?
Hi! Once I install your app my botton icons change! I have installed czJKdjj 6.5.5_WWE and my icons seem to cut!
Nick Rabiosso said:
Hi! Once I install your app my botton icons change! I have installed czJKdjj 6.5.5_WWE and my icons seem to cut!
Click to expand...
Click to collapse
This "New" M2D Tab is activated editing HTCHomeSettings.xml and changing "enable" value from "0" to "1" in "OperatorWidget" Tab as follows
Code:
<OperatorWidget enable="1" tab_bg_icon="120,129" tab_icon="145,147" big_icon="200,218" />
Since HTC Mega has QVGA(240x320) screen resolution, I also changed "OperatorWidget" property values to these ones below
(to have all the buttons in a simple glance without scrolling the screen)
Code:
<OperatorWidget>
<Property name="IDOPERATORWG_GRRDVIEW_START_POINT" id="0" value="20, 1" />
<Property name="IDOPERATORWG_GRRDVIEW_BOTTOM_HEIGHT" id="1" value="2" />
<Property name="IDOPERATORWG_GRIDVIEW_Y_INTERVAL" id="2" value="-10" />
<Property name="IDOPERATORWG_GRIDVIEW_ROW" id="3" value="3" />
<Property name="IDOPERATORWG_GRIDVIEW_COLUMN" id="4" value="3" />
<Property name="IDOPERATORWG_GRIDVIEW_LASTPROP" id="5" value="0" />
<Property name="IDOPERATORWG_GRIDBTNSELECTED_IMG" id="6" value="HH_LAUNCHER_BTN_SELECTED.png" />
<Property name="IDOPEARTORWG_GRIDBTNSELECTED_MASKIMG" id="7" value="HH_LAUNCHER_BTN_SELECTED_MASK.png" />
<Property name="IDOPERATORWG_GRIDBTNPRESSED_IMG" id="8" value="HH_LAUNCHER_BTN_PRESS.png" />
<Property name="IDOPERATORWG_GRIDBTNPRESSED_MASKIMG" id="9" value="HH_LAUNCHER_BTN_PRESS_MASK.png" />
<Property name="IDOPERATORWG_GRIDBTN_IMG" id="10" value="HH_LAUNCHER_BTN.png" />
<Property name="IDOPERATORWG_GRIDBTN_IMGMASK" id="11" value="HH_LAUNCHER_BTN_MASK.png" />
<Property name="IDOPERATORWG_GRIDBTNICON_DIMENSION" id="12" value="32" />
<Property name="IDOPERATORWG_GRIDBTNTEXT_RECT" id="13" value="-10, 48, 68, 77" />
<Property name="IDOPEARTORWG_GRIDBTN_LASTPROP" id="14" value="0" />
<Property name="IDOPEARTORWG_LISTVIEW_ITEMCOUNT" id="15" value="18" />
<Property name="IDOPEARTORWG_LISTVIEW_LASTPROP" id="16" value="0" />
<Property name="IDOPERATORWG_LISTBTNSELECTED_IMG" id="17" value="HH_OPERATOR_LISTITEM_SELECTED.png" />
<Property name="IDOPERATORWG_LISTBTNPRESSED_IMG" id="18" value="HH_OPERATOR_LISTITEM_PRESSED.png" />
<Property name="IDOPERATORWG_LISTBTN_IMG_X_POS" id="19" value="15" />
<Property name="IDOPERATORWG_LISTBTN_TEXT_X_POS" id="20" value="65" />
<Property name="IDOPERATORWG_LISTBTNICON_DIMENSION" id="21" value="32" />
<Property name="IDOPERATORWG_LISTBTN_SEPERATORLINE" id="22" value="HH_OPERATOR_SEPARATORLINE.png" />
<Property name="IDOPERATORWG_LISTBTN_LASTPROP" id="23" value="0" />
</OperatorWidget>
So the problem should be that you have applied this app to any other different Manila2D version or to a different resolution device (not QVGA)
In any case, you can get back to your previous M2D settings with a simple softreset after uninstalling this app (to work with your default HTCHomeSettings.xml file) or you can edit your own HTCHomeSettings.xml file to customize it and overwrite it after installing this app.
I Hope it helps
Related
Ok, I'm trying to build my app with admob .jar library. When I build it with the android eclipse plugin, it claims that the "install was unsuccessful" on my phone. I then tried using the following build.xml with ant. When I put the debug signed version on my phone it works fine. When I try to sign the unsigned .apk, it says:
Code:
java.util.zip.ZipException: invalid entry compressed size (expected 30432 but got 30419 bytes)
at java.util.zip.ZipOutputStream.closeEntry(Unknown Source)
at org.ragingcat.shared.util.jar.S_JarOutputStream.s_writeEntry(S_JarOutputStream.java:344)
at org.ragingcat.kst.util.jarsigner.KTLKprOpenSignAbs._s_writeJarEntry(KTLKprOpenSignAbs.java:184)
at org.ragingcat.kst.util.jarsigner.KTLKprOpenSignAbs._signJarFile(KTLKprOpenSignAbs.java:619)
at org.ragingcat.kst.util.jarsigner.KTLKprOpenSignAbs._doJob_(KTLKprOpenSignAbs.java:424)
at org.ragingcat.kst.util.jarsigner.KTLKprOpenSignKPAbs.doJob(KTLKprOpenSignKPAbs.java:312)
at org.ragingcat.kst.util.jarsigner.KTLKprOpenSignJks.doJob(KTLKprOpenSignJks.java:73)
at org.ragingcat.kst.swing.panel.PTabUICmdJsrSign.actionPerformed(PTabUICmdJsrSign.java:235)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
1 ? ERROR (instance ID: 1)
. location: org.ragingcat.share.util.jar.S_JarOutputStream.s_writeEntry(jos, jey, jfeInput, frmOwner, strTitleAppli)
. message: excIO caught
I'm running ant with:
dirs
resource-source
aidl
compile
dex
package-res-and-assets
release
Using latest version of jdk, android sdk, eclipse, and admob sdk
Is there a secret way to use the eclipse android plugin instead of ant? It just never captures the jar files when I use eclipse.
I am so confused and frustrated right now. It's probably some stupid small problem but I cant find it. HLEP!
Code:
<?xml version="1.0" ?>
<project name="blockedfree" default="debug">
<property name="sdk-folder" value="C:/Program Files/eclipse/AndroidSDK/" />
<property name="android-tools" value="C:/Program Files/eclipse/AndroidSDK/tools" />
<property name="application-package" value="com.nickkarstedt.blockedfree" />
<property name="android-framework" value="${android-tools}/lib/framework.aidl" />
<property name="resource-dir" value="res" />
<property name="asset-dir" value="assets" />
<property name="srcdir" value="src" />
<condition property="srcdir-ospath"
value="${basedir}\${srcdir}"
else="${basedir}/${srcdir}" >
<os family="windows"/>
</condition>
<property name="external-libs" value="libs" />
<condition property="external-libs-ospath"
value="${basedir}\${external-libs}"
else="${basedir}/${external-libs}" >
<os family="windows"/>
</condition>
<property name="outdir-classes" value="${outdir}/classes" />
<condition property="outdir-classes-ospath"
value="${basedir}\${outdir-classes}"
else="${basedir}/${outdir-classes}" >
<os family="windows"/>
</condition>
<property name="outdir-r" value="src" />
<!-- Intermediate files -->
<property name="dex-file" value="classes.dex" />
<property name="intermediate-dex" value="${outdir}/${dex-file}" />
<condition property="intermediate-dex-ospath"
value="${basedir}\${intermediate-dex}"
else="${basedir}/${intermediate-dex}" >
<os family="windows"/>
</condition>
<!-- The final package file to generate -->
<property name="resources-package" value="${outdir}/${ant.project.name}.ap_" />
<condition property="resources-package-ospath"
value="${basedir}\${resources-package}"
else="${basedir}/${resources-package}" >
<os family="windows"/>
</condition>
<property name="out-debug-package" value="${outdir}/${ant.project.name}-debug.apk" />
<condition property="out-debug-package-ospath"
value="${basedir}\${out-debug-package}"
else="${basedir}/${out-debug-package}" >
<os family="windows"/>
</condition>
<property name="out-unsigned-package" value="${outdir}/${ant.project.name}-unsigned.apk" />
<condition property="out-unsigned-package-ospath"
value="${basedir}\${out-unsigned-package}"
else="${basedir}/${out-unsigned-package}" >
<os family="windows"/>
</condition>
<!-- Tools -->
<condition property="aapt" value="${android-tools}/aapt.exe" else="${android-tools}/aapt" >
<os family="windows"/>
</condition>
<condition property="aidl" value="${android-tools}/aidl.exe" else="${android-tools}/aidl" >
<os family="windows"/>
</condition>
<condition property="adb" value="${android-tools}/adb.exe" else="${android-tools}/adb" >
<os family="windows"/>
</condition>
<condition property="dx" value="${android-tools}/dx.bat" else="${android-tools}/dx" >
<os family="windows"/>
</condition>
<condition property="apk-builder" value="${android-tools}/apkbuilder.bat" else="${android-tools}/apkbuilder" >
<os family="windows"/>
</condition>
<property name="android-jar" value="${sdk-folder}/android.jar" />
<!-- Rules -->
<!-- Create the output directories if they don't exist yet. -->
<target name="dirs">
<echo>Creating output directories if needed...</echo>
<mkdir dir="${outdir}" />
<mkdir dir="${outdir-classes}" />
</target>
<!-- Generate the R.java file for this project's resources. -->
<target name="resource-src" depends="dirs">
<echo>Generating R.java / Manifest.java from the resources...</echo>
<exec executable="${aapt}" failonerror="true">
<arg value="package" />
<arg value="-m" />
<arg value="-J" />
<arg value="${outdir-r}" />
<arg value="-M" />
<arg value="AndroidManifest.xml" />
<arg value="-S" />
<arg value="${resource-dir}" />
<arg value="-I" />
<arg value="${android-jar}" />
</exec>
</target>
<!-- Generate java classes from .aidl files. -->
<target name="aidl" depends="dirs">
<echo>Compiling aidl files into Java classes...</echo>
<apply executable="${aidl}" failonerror="true">
<arg value="-p${android-framework}" />
<arg value="-I${srcdir}" />
<fileset dir="${srcdir}">
<include name="**/*.aidl"/>
</fileset>
</apply>
</target>
<!-- Compile this project's .java files into .class files. -->
<target name="compile" depends="dirs, resource-src, aidl">
<javac encoding="ascii" target="1.5" debug="true" extdirs=""
srcdir="."
destdir="${outdir-classes}"
bootclasspath="${android-jar}">
<classpath>
<fileset dir="${external-libs}" includes="*.jar"/>
</classpath>
</javac>
</target>
<!-- Convert this project's .class files into .dex files. -->
<target name="dex" depends="compile">
<echo>Converting compiled files and external libraries into ${outdir}/${dex-file}...</echo>
<apply executable="${dx}" failonerror="true" parallel="true">
<arg value="--dex" />
<arg value="--output=${intermediate-dex-ospath}" />
<arg path="${outdir-classes-ospath}" />
<fileset dir="${external-libs}" includes="*.jar"/>
</apply>
</target>
<!-- Put the project's resources into the output package file. -->
<target name="package-res-and-assets">
<echo>Packaging resources and assets...</echo>
<exec executable="${aapt}" failonerror="true">
<arg value="package" />
<arg value="-f" />
<arg value="-M" />
<arg value="AndroidManifest.xml" />
<arg value="-S" />
<arg value="${resource-dir}" />
<arg value="-A" />
<arg value="${asset-dir}" />
<arg value="-I" />
<arg value="${android-jar}" />
<arg value="-F" />
<arg value="${resources-package}" />
</exec>
</target>
<!-- Same as package-res-and-assets, but without "-A ${asset-dir}" -->
<target name="package-res-no-assets">
<echo>Packaging resources...</echo>
<exec executable="${aapt}" failonerror="true">
<arg value="package" />
<arg value="-f" />
<arg value="-M" />
<arg value="AndroidManifest.xml" />
<arg value="-S" />
<arg value="${resource-dir}" />
<!-- No assets directory -->
<arg value="-I" />
<arg value="${android-jar}" />
<arg value="-F" />
<arg value="${resources-package}" />
</exec>
</target>
<!-- Invoke the proper target depending on whether or not
an assets directory is present. -->
<!-- TODO: find a nicer way to include the "-A ${asset-dir}" argument
only when the assets dir exists. -->
<target name="package-res">
<available file="${asset-dir}" type="dir"
property="res-target" value="and-assets" />
<property name="res-target" value="no-assets" />
<antcall target="package-res-${res-target}" />
</target>
<!-- Package the application and sign it with a debug key. -->
<target name="debug" depends="dex, package-res">
<echo>Packaging ${out-debug-package}, and signing it with a debug key...</echo>
<exec executable="${apk-builder}" failonerror="true">
<arg value="${out-debug-package-ospath}" />
<arg value="-z" />
<arg value="${resources-package-ospath}" />
<arg value="-f" />
<arg value="${intermediate-dex-ospath}" />
<arg value="-rf" />
<arg value="${srcdir-ospath}" />
<arg value="-rj" />
<arg value="${external-libs-ospath}" />
</exec>
</target>
<!-- Package the application without signing it. -->
<target name="release" depends="dex, package-res">
<echo>Packaging ${out-unsigned-package} for release...</echo>
<exec executable="${apk-builder}" failonerror="true">
<arg value="${out-unsigned-package-ospath}" />
<arg value="-u" />
<arg value="-z" />
<arg value="${resources-package-ospath}" />
<arg value="-f" />
<arg value="${intermediate-dex-ospath}" />
<arg value="-rf" />
<arg value="${srcdir-ospath}" />
<arg value="-rj" />
<arg value="${external-libs-ospath}" />
</exec>
<echo>It will need to be signed with jarsigner before being published.</echo>
</target>
<!-- Install the package on the default emulator -->
<target name="install" depends="debug">
<echo>Installing ${out-debug-package} onto default emulator...</echo>
<exec executable="${adb}" failonerror="true">
<arg value="install" />
<arg value="${out-debug-package}" />
</exec>
</target>
</project>
.... nevermind, I just figured it out. To anyone with similar problems, you DON'T need to use a build.xml if you're using Eclipse. Put the .jar in your libs folder, then Right click your project -> Build path -> configure build path. Click the Libraries tab, then click Add JARs... Then select the jar WITHIN your current project. I also selected the jar in order and export. Not sure if you have to, but it worked.
i would like to ask whether anyone can help me with this or at least tell me whether it is possible to edit or not.
Volume Step sound in Sense 4.0 is "do re mi fa so la ti", total/max 'steps' count is 7. Original files name in '/system/media/audio/ui' are 'Volume-1.aac' to 'Volume-7.aac'
But after changing Volume Step in Tweak to "Finest", the max count became 15. Then the Volume Step sound became "do re mi fa so la [(ti) x 9]"
I wish to customize/add Volume Step sound of 8th step and above, so i played around with those "Volume-*.aac" in '/system/media/audio/ui/'. I tried duplicating those files and rename up to "Volume-15.aac" and restarted device, but there is no effects.
Which file (for example build.prop) in '/system/' should i edit, in order to make 'Volume-8.aac' to 'Volumn-15.aac' work?
Thanks in advance.
In order to add that resource I'm guessing you'll need to edit Settings.apk>res/xml/soundsettings.xml
The device will not play a resource that doesn't exist in the base.
Thanks for your quick response. =)
I google-ed around and installed apktool.
Below are the codes from the xml files, but i don't know which to edit. Any help here?
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.htc.preference.HtcPreferenceScreen android:title="@string/sound_settings" android:key="sound_settings"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
<com.htc.preference.HtcPreferenceCategory android:title="@string/sound_category_sound_title" android:key="sound_group" />
<com.htc.preference.HtcListPreference android:persistent="false" android:entries="@array/profile_item_list" android:title="@string/silent_list_title" android:key="silentlist" android:summary="@string/silent_mode_summary" android:dialogTitle="@string/profiles_dialog_title" android:entryValues="@array/animations_values" />
<com.htc.preference.HtcPreference android:persistent="false" android:entries="@array/profile_item_list" android:title="@string/silent_list_title" android:key="customize_silentlist" android:summary="@string/silent_mode_summary" android:dialogTitle="@string/profiles_dialog_title" android:entryValues="@array/animations_values" />
<com.htc.preference.HtcListPreference android:title="@string/musicfx_title" android:key="musicfx">
<intent android:targetPackage="com.android.musicfx" android:targetClass="com.android.musicfx.ControlPanelPicker" />
</com.htc.preference.HtcListPreference>
<com.android.settings.RingerVolumePreference android:persistent="false" android:title="@string/all_volume_title" android:key="ring_volume" android:summary="@string/volume_setting_summary" android:dialogTitle="@string/all_volume_title" android:streamType="ring" />
<com.htc.preference.HtcPreference android:persistent="true" android:title="@string/htc_beats_audio_settings_title" android:key="htc_sound_enhancer" />
<com.htc.preference.HtcCheckBoxPreference android:persistent="true" android:title="@string/vibrate_title" android:key="vibrate" android:summary="@string/vibrate_summary" android:dependency="silentlist" android:defaultValue="true" />
<com.htc.preference.HtcPreferenceCategory android:title="@string/sound_category_calls_title" android:key="sound_category_calls">
<com.htc.preference.HtcPreference android:persistent="true" android:title="@string/ringtone_title" android:key="ringtone" android:summary="@string/ringtone_summary" android:dependency="silentlist" android:dialogTitle="@string/ringtone_title" />
<com.htc.preference.HtcPreference android:persistent="true" android:title="@string/ringtone_title" android:key="ringtone_slot2" android:summary="@string/ringtone_summary" android:dependency="silentlist" android:dialogTitle="@string/ringtone_title" />
<com.htc.preference.HtcPreference android:persistent="true" android:title="@string/htc_ringtone_virbrate_title" android:key="ringtone_vibrate" android:summary="@string/htc_ringtone_virbrate_summary" android:dialogTitle="@string/htc_ringtone_virbrate_title" />
<com.android.settings.framework.preference.sound.HtcBePolitePreference android:dependency="silentlist" />
<com.android.settings.framework.preference.sound.HtcPocketModePreference android:dependency="silentlist" />
<com.android.settings.framework.preference.sound.HtcFlipToSpeakerPreference android:dependency="silentlist" />
</com.htc.preference.HtcPreferenceCategory>
<com.htc.preference.HtcPreferenceCategory android:title="@string/sound_category_notification_title" android:key="category_notification" />
<com.htc.preference.HtcPreference android:persistent="true" android:title="@string/htc_notification_sound_title" android:key="notification_sound" android:summary="@string/htc_notification_sound_summary" android:dependency="silentlist" android:dialogTitle="@string/htc_notification_sound_dialog_title" />
<com.htc.preference.HtcPreference android:persistent="true" android:title="@string/htc_notification_sound_vibrate_title" android:key="notification_sound_vibrate" android:summary="@string/htc_notification_sound_vibrate_summary" android:dialogTitle="@string/htc_notification_sound_vibrate_title" />
<com.htc.preference.HtcCheckBoxPreference android:persistent="false" android:title="@string/notification_pulse_title" android:key="notification_pulse" android:summary="@string/notification_pulse_summary" />
<com.htc.preference.HtcPreferenceCategory android:title="@string/sound_category_feedback_title" />
<com.htc.preference.HtcCheckBoxPreference android:title="@string/dtmf_tone_enable_title" android:key="dtmf_tone" android:defaultValue="true" android:summaryOn="@string/dtmf_tone_enable_summary_on" android:summaryOff="@string/dtmf_tone_enable_summary_off" />
<com.htc.preference.HtcListPreference android:persistent="true" android:entries="@array/htc_cdma_dtmf_tone_entries" android:title="@string/dtmf_tone_enable_title" android:key="htc_cdma_dtmf_tone" android:dependency="silentlist" android:defaultValue="0" android:entryValues="@array/htc_cdma_dtmf_tone_values" />
<com.htc.preference.HtcCheckBoxPreference android:title="@string/sound_effects_enable_title" android:key="sound_effects" android:defaultValue="true" android:summaryOn="@string/sound_effects_enable_summary_on" android:summaryOff="@string/sound_effects_enable_summary_off" />
<com.htc.preference.HtcCheckBoxPreference android:title="@string/lock_sounds_enable_title" android:key="lock_sounds" android:defaultValue="true" android:summaryOn="@string/lock_sounds_enable_summary_on" android:summaryOff="@string/lock_sounds_enable_summary_off" />
<com.htc.preference.HtcListPreference android:persistent="false" android:title="@string/powersaver_haptic_feedback" android:key="haptic_feedback_list" android:summary="@string/haptic_feedback_enable_summary_on" android:dialogTitle="@string/profiles_dialog_title" />
<com.htc.preference.HtcCheckBoxPreference android:title="@string/powersaver_haptic_feedback" android:key="haptic_feedback" android:defaultValue="true" android:summaryOn="@string/haptic_feedback_enable_summary_on" android:summaryOff="@string/haptic_feedback_enable_summary_off" />
<com.htc.preference.HtcCheckBoxPreference android:persistent="false" android:title="@string/roaming_ringtone_title" android:key="button_roaming_ringtone" android:summary="@string/roaming_ringtone_summary" android:dependency="silentlist" android:defaultValue="false" />
<com.htc.preference.HtcListPreference android:entries="@array/emergency_tone_entries" android:title="@string/emergency_tone_title" android:key="emergency_tone" android:summary="@string/emergency_tone_summary" android:entryValues="@array/emergency_tone_values" />
</com.htc.preference.HtcPreferenceScreen>
I'd need to search around for it. Keep looking for now, I won't have time until the weekend.
Sent from my HTC Sensation 4G using Tapatalk 2
GROGG88,
after cross-checking titles in '\res\xml\sound_settings.xml' with '\res\values\strings.xml', I found out that editing sound_settings.xml doesn't help.
Can you please check it out?
Thank you very much =)
I'll put it on my list of things to do. I'm out of town right now...
Alright I used this same AndroidManifest.xml code several times to create my app and it worked just fine now I'm getting 5 different errors and I can't figure out why.
Here's the xml code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="technologx.technologx"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="23" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<meta-data
android:name="com.google.android.backup.api_key"
android:value="AEdPqrEAAAAILe2cCZXNBhacXv2fkMpNM5F7FWTdWRUw-r1dFg" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="technologx.technologx.SplashScreen"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="technologx.technologx.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="technologx.technologx.MAINACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
Here's the errors I"m getting every time I try to create the apk:
Code:
Error:(27, 24) No resource found that matches the given name (at 'label' with value '@string/app_name').
Error:(28, 24) No resource found that matches the given name (at 'theme' with value '@style/AppTheme').
Error:(31, 28) No resource found that matches the given name (at 'label' with value '@string/app_name').
Error:(40, 28) No resource found that matches the given name (at 'label' with value '@string/app_name').
Error:Execution failed for task ':app:processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/knye1991/Library/Android/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
Could someone possibly help me fix my issue please?
Hello everyone.
I own an LG G4.
I want to know how to write a script from scratch and where to place it so it edits the following file and makes the changes given below into the file.
Location of file to edit: /data/data/com.lge.launcher2/shared_prefs/numofmenu.xml
Contents of the file that is to be edited:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="app_xnumofmenu" value="4" />
<int name="app_ynumofmenu" value="5" />
</map>
What i want the script to edit?
I simply want the script to edit the value of xnumofmenu to 3 and the value of ynumofmenu to 4 on every startup.
This is how i want the file to become after editing:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="app_xnumofmenu" value="3" />
<int name="app_ynumofmenu" value="4" />
</map>
What this file is?
I wanted to edit the grid of drawer on my lg g4 but i cant buy the unlocker for g4tweaksbox so i found this way to edit it. But the file goes back to default on every startup of phone.
Can someone please explain me how to write the script and how to save it. Basically guide me from scratch. Or can someone please write the script for me? Thanks alot.
applied in miui 10 european
FIRST OF ALL BE AWARE
DO NOT BE RESPONSIBLE FOR DAMAGES, DO AT YOUR OWN RISK
the file is android standard but with different paths for each type
and Android version
bluetooth phone has other command lines .. then this tutorial is not useful
1- You need an unlocked bootloader and root
2- download some file explorer ( I recommend ES FILE EXPLORER) ( ROOT EXPLORER is not saving)
3- go in root/vendor/etc/
4- find the file "mixer_patchs.xml"
4.1- copy 1 file to backup on sd card
4.2- and another file to edit and save to internal memory
5- go to the saved file to edit and open in the text editor
6- between line 1921 ... 1931, edit only part of the figures for 94 (value="94") ... (original it will be in value="72" something I do not remember)
being thus....
- <path name="headphones-ce">
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="94" />
<ctl name="RX2 Digital Volume" value="94" />
7- these values were in "81" it changes to also "94" and thus...
- <path name="headphones-no-ce">
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="94" />
<ctl name="RX2 Digital Volume" value="94" />
8- saves and moves the already edited internal memory file to the root /vendor/etc/ and replaces the file.
IMPORTANT give the permissions on the file to rw-r-r
9- reboot system and enjoy :laugh: :good:
PT-BR
NÃO ME RESPONSABILIZO POR DANOS, FAÇA POR SUA CONTA E RISCO
o arquivo é padrão do android mas com caminhos diferentes pra cada tipo
de aparelho e versão de android
fone bluetooth tem outras linhas de comando ..então não serve este tutorial
1- necessita de bootloader desbloqueado e root
2- explorador de arquivos (recomendo es file explorer) (o root explorer não está salvando)
3- entrem em root/vendor/etc/
4- achem o arquivo ''mixer_paths.xml'' (copie 1 arquivo para backup), (e outro arquivo para editar e salva na memoria interna ou no cartão SD
5- vá ao arquvo salvo pra editar e abra no editor de texto...
6- entre a linha 1921... 1931, edita-se só a parte dos valores para 94 (value="94") (original ele vai estar em 74 eu acho)...
- <path name="headphones-ce">
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="94" />
<ctl name="RX2 Digital Volume" value="94" />
7- esses valores estavam em "81" muda-se para também para "94" ficando assim...
- <path name="headphones-no-ce">
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="94" />
<ctl name="RX2 Digital Volume" value="94" />
8- salva e move o arquivo da memoria interna já editado para a pasta root/vendor/etc/ e substitui o arquivo.
IMPORTANTE dar as permissoes no arquivo para RW-R-R
9- reboot system e aproveitar
lucas_hubner157 said:
applied in miui 10 european
FIRST OF ALL BE AWARE
DO NOT BE RESPONSIBLE FOR DAMAGES, DO AT YOUR OWN RISK
the file is android standard but with different paths for each type
and Android version
bluetooth phone has other command lines .. then this tutorial is not useful
1- You need an unlocked bootloader and root
2- download some file explorer ( I recommend ES FILE EXPLORER) ( ROOT EXPLORER is not saving)
3- go in root/vendor/etc/
4- find the file "mixer_patchs.xml"
4.1- copy 1 file to backup on sd card
4.2- and another file to edit and save to internal memory
5- go to the saved file to edit and open in the text editor
6- between line 1921 ... 1931, edit only part of the figures for 94 (value="94") ... (original it will be in value="72" something I do not remember)
being thus....
- <path name="headphones-ce">
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="94" />
<ctl name="RX2 Digital Volume" value="94" />
7- these values were in "81" it changes to also "94" and thus...
- <path name="headphones-no-ce">
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="94" />
<ctl name="RX2 Digital Volume" value="94" />
8- saves and moves the already edited internal memory file to the root /vendor/etc/ and replaces the file.
IMPORTANT give the permissions on the file to rw-r-r
9- reboot system and enjoy :laugh: :good:
PT-BR
NÃO ME RESPONSABILIZO POR DANOS, FAÇA POR SUA CONTA E RISCO
o arquivo é padrão do android mas com caminhos diferentes pra cada tipo
de aparelho e versão de android
fone bluetooth tem outras linhas de comando ..então não serve este tutorial
1- necessita de bootloader desbloqueado e root
2- explorador de arquivos (recomendo es file explorer) (o root explorer não está salvando)
3- entrem em root/vendor/etc/
4- achem o arquivo ''mixer_paths.xml'' (copie 1 arquivo para backup), (e outro arquivo para editar e salva na memoria interna ou no cartão SD
5- vá ao arquvo salvo pra editar e abra no editor de texto...
6- entre a linha 1921... 1931, edita-se só a parte dos valores para 94 (value="94") (original ele vai estar em 74 eu acho)...
- <path name="headphones-ce">
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="94" />
<ctl name="RX2 Digital Volume" value="94" />
7- esses valores estavam em "81" muda-se para também para "94" ficando assim...
- <path name="headphones-no-ce">
<path name="headphones" />
<ctl name="RX1 Digital Volume" value="94" />
<ctl name="RX2 Digital Volume" value="94" />
8- salva e move o arquivo da memoria interna já editado para a pasta root/vendor/etc/ e substitui o arquivo.
IMPORTANTE dar as permissoes no arquivo para RW-R-R
9- reboot system e aproveitar
Click to expand...
Click to collapse
Can i try for HAVOC Rom??
this is what I did to my mixer_path File
/system/vendor/etc
Code:
line 340 341
<ctl name="HPHL Volume" value="26" />
<ctl name="HPHR Volume" value="26" />
Code:
line 345 til 349
<ctl name="RX1 Digital Volume" value="110" />
<ctl name="RX2 Digital Volume" value="110" />
<ctl name="RX3 Digital Volume" value="110" />
<ctl name="RX4 Digital Volume" value="110" />
<ctl name="RX5 Digital Volume" value="110" />
and following increments in these lines from default values
Code:
Line 1845: <ctl name="RX1 Digital Volume" value="95" />
Line 1899: <ctl name="RX1 Digital Volume" value="95" />
Line 1900: <ctl name="RX2 Digital Volume" value="95" />
Line 1905: <ctl name="RX1 Digital Volume" value="95" />
Line 1906: <ctl name="RX2 Digital Volume" value="95" />
Line 1968: <ctl name="RX1 Digital Volume" value="97" />
Line 1969: <ctl name="RX2 Digital Volume" value="95" />
have tested the attached file on lineage omnirom
always make backup of original file!
the android rights must be 0644
sometimes even with copy paste, FX Explorer DOES show 0644 rights but rebooting makes device SILENT,
in such case, change rights to something else in FX explorer, and then apply 0644 AGAIN and reboot