how to delete string from main menu - Wildfire Q&A, Help & Troubleshooting

have nightly CM7
i delete TTSService.apk ( no need for me ) and need delete string Voice input&output with submenu from main menu
i decompile Settings.apk, edit AndroidManifest.xml, public.xml and strings.xml (EN&RU)
compile apk and i have 2131231754 string
help me please

Related

[Q] Dialer font color - where?

I want to change the color font in the phone keypad.
Decompile htcdialer (apktool) but I can not find section where to declare this color.
I have black, I want white....
Anyone knows where it changes?
Help
Oki ... i find section:
styles.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="text_style_dialer_button_number">
<item name="android:textSize">27.0sp</item>
<item name="android:textColor">@color/color_255_255_255</item> === (was 0 0 0)
but apktool shows errors:
DEcompilation:
http://www.youtube.com/watch?v=V6KPpl389qk
Compilation:
http://www.youtube.com/watch?v=Xf5dNPujyYQ
orginal APK file is here:
http://hotfile.com/dl/112060127/881b...ialer.apk.html
1. decompile and compile the same file (no change) and again shows errors...
WHY?
2. Why go to 1.apk in framework folder ??? (screen)
3. what should be in this folder?
As I wrote you via PM, it is not enough to change that value, there are 3 and you also need to adjust the shadow colors. Compilation errors are due to using a themed apk, compile with stock and then insert your needed png`s. You also need to adjust button and dialer icon colors.
No .... stock file generated the same errors. :/
look:
http://hotfile.com/dl/112066339/865f241/HtcDialer.apk.html
This is stock file. Try decompile and you see erros :/
This file extract of Gingerbread ([ROM] Android Revolution HD 4.0 β 4)
draxterix said:
Oki ... i find section:
styles.xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="text_style_dialer_button_number">
<item name="android:textSize">27.0sp</item>
<item name="android:textColor">@color/color_255_255_255</item> === (was 0 0 0)
but apktool shows errors:
DEcompilation:
http://www.youtube.com/watch?v=V6KPpl389qk
Compilation:
http://www.youtube.com/watch?v=Xf5dNPujyYQ
orginal APK file is here:
http://hotfile.com/dl/112060127/881b...ialer.apk.html
1. decompile and compile the same file (no change) and again shows errors...
WHY?
2. Why go to 1.apk in framework folder ??? (screen)
3. what should be in this folder?
Click to expand...
Click to collapse
For starters you are editing the wrong styles.xml file. The DHD you need to edit the styles.xml in /values-hdpi
My guess is you don't have the supported framework and that you are not editing a stock untouched .apk. I can't see your error messages from your youtube video.

[Q] Problem recompiling custom apks?

So I am trying to make some edits to the bools.xml which is located in the values folder which gets recompiled into the resources.arsc file and apkmanager keeps throwing errors regarding public.xml values being declared but not defined (i am using maddogin's rom and want to remove CRT animations). My question is what do I need to do to keep the errors from occurring or how do I hex edit resources.arsc to turn the CRT animations off. I have found the animatescreenlights section in my hex editor but can't figure out what values to change to make the bool "true".
ericwgarza1 said:
So I am trying to make some edits to the bools.xml which is located in the values folder which gets recompiled into the resources.arsc file and apkmanager keeps throwing errors regarding public.xml values being declared but not defined (i am using maddogin's rom and want to remove CRT animations). My question is what do I need to do to keep the errors from occurring or how do I hex edit resources.arsc to turn the CRT animations off. I have found the animatescreenlights section in my hex editor but can't figure out what values to change to make the bool "true".
Click to expand...
Click to collapse
I could be wrong but doesn't it have a setting to turn off Crt animation built into it?
playya said:
I could be wrong but doesn't it have a setting to turn off Crt animation built into it?
Click to expand...
Click to collapse
It does, but it isn't functioning atm. I just want to know how to do this for my personal knowledge.
I know this is old, but wanted to post for future reference.
Don't use a hex editor. Just open in a regular text editor like Notepad.
Line 16 should read:
<bool name="config_animateScreenLights">true</bool>
Just change true to false:
<bool name="config_animateScreenLights">false</bool>

[Tutorial] Decompile/Recompile APKs

Complete guide on how to Decompile/Recompile Apks with APKTOOL
This Tutorial is for Windows Only
Apktool and all .bat files outlined in this tutorial have been uploaded here for your convenience
Requirements
- 7zip / Winrar (or similar)
- Apktool - (Package link above)
Notes
- I use .bat file to make the whole process alot quicker ...
- Copying Apktool files (aapt.exe, apktool.bat, apktool.jar, baksmali.jar, zipalign.exe) into C:/windows will allow you to use the .bat files anywhere on your computer without the need for apktool in the same directory
Step 1 - First you need to install the framework files so the apktool can use them to decompile other apks in the rom that depend on the framework
- Make a text document and rename it "Install Framework.bat"
- Edit it with a txt editor and paste in this code
Code:
CMD /K apktool if framework-res.apk
- with your framework-res.apk in the folder run the Install Framework.bat file and it should output
Code:
Framework installed to: C:\Users\USER\apktool\framework\1.apk
Step 2 - Decompiling (we will be decompiling framework-res.apk in this tutorial)
- First make a copy of the apk you wish to decompile and name it backup.apk (this will be used later)
- Make a text document and rename it "Decompile.bat"
- Edit it with a txt editor and paste in this code (replace the "framework-res.apk" with the name of the apk you wish to decompile)
Code:
CMD /K apktool d framework-res.apk
- with your apk in the same folder run the Decompile.bat file and it create a folder that you can edit as you see fit
Step 3 - Recompiling (we will be Recompiling framework-res.apk in this tutorial)
- Make a text document and rename it "Compile.bat"
- Edit it with a txt editor and paste in this code (replace the "framework-res.apk" with the name of the apk you wish to recompile)
Code:
del almostdone.apk
CMD /K apktool b framework-res almostdone.apk
- Run the Compile.bat file and it create an apk called almostdone.apk (if you get errors you most likely made a change which broke the apk)
- Open both almostdone.apk and backup with 7zip or Winrar
- Drag all the contents of almostdone.apk except for AndroidManifest.xml into backup.apk and replace existing files
- Now make a text document and rename it "Zipalign.bat"
- Edit it with a txt editor and paste in this code (replace the "framework-res.apk" with the name of the apk you wish to recompile)
Code:
del framework-res.apk
zipalign.exe -v 4 backup.apk framework-res.apk
- Run the Zipalign.bat file and it create the finished apk
Nice one :good:, but i think very few takers in our forum. I was also thinking about posting on ROM Porting, but there are many guides already out there .
yeah ... seems so.... iv'e tryed porting myself ... never got it booting ...

[guide]How to add wifi and bluetooth toggles buttons in Settings like ics/jb

How to add wifi and bluetooth toggles button in Settings like ics
Click to expand...
Click to collapse
Tool you need:​1:apktool(apkmanager etc)
2:smali code and xml(look attached file)
3:notepad++
4:brain most important
Note:I am not gona teach you how to compile and decompile apk do it yourself And i am not gona responsible for any thing bad happened.
>>first Step:
Pull settings.apk from your phone and decompile it.
>>second Step:
download the attach file and open it there you will see res folder and smali folder now copy them and paste in your decompile settings apk folder.
>>Third Step:
now open id.xml (present in values folder of settings apk)
and add this lines in end just above this</resources>
Code:
<item type="id" name="toggle2">false</item>
<item type="id" name="toggle">false</item>
>>Forth Step:
compile the apk and sign it...now decompile new settings.apk
>>Fifth Step:
open public.xml file in notepad++ then goto smali/com/ion/settings/ and open the BTPreferencesScreen.smali and SwitchPreferenecScreen.smali notepad++.
firsts let play with BTPreferencesScreen.smali
now serach for this hexs value
Code:
"0x7f030056"--------and replace it with type="layout" name="preference_bt" ids value(hex value)
"0x7f0b0016"--------and replace it with type="id" name="icon" ids value(hex value)
"0x7f0b012e"--------and replace it with type="id" name="toggle2" ids value(hex value)
save,done and close...
now time to play with switchPreferenecScreen.smali
now serach for this hexs value
Code:
"0x7f030057"--------and replace it with type="layout" name="preference_switch" ids value(hex value)
"0x7f0b012f"--------and replace it with type="id" name="toggle" ids value(hex value)
Note:"0x7f0b012f" are use three times in smali code so replace it with type="id" name="toggle" ids three time at there respective place.
"0x7f0b0016"--------and replace it with type="id" name="icon" ids value(hex value)
>>Sixth Step:
Now open Settings.xmlin notepad++
now add this code in the <PreferenceScreen .....xxxx.... />
now add these two codes also where you want to place this codes this responsible for display wifi and bluetooth toggles button and string in settings menu
Code:
<com.ion.setting.SwitchPreferenceScreen android:title="wifi" android:key="wifi" />
<com.ion.setting.BTPreferenceScreen android:title="Bluetooth" android:key="btswitch" />
like this....just like i do and save the file
>>Seventh Step:
compile apk,sign it and push it on your phone and enjoy....
Screenshots:-
SETTINGS with ics toogle buttons:-
SETTINGS with ANDROID L toogle buttons :-
SETTINGS with kk/jb/twz style toogle button:-
Final SS?
samsoul16 said:
Final SS?
Click to expand...
Click to collapse
ss added sir...
if u want jb/kk/android l like toogle button u can replace :- switchon and switchoff png at drawable mdpi folder....
here is the whole tut for making ics settings for all gb devices
nice guide @OP
great guide
Superb guide...
i will also make my settings like "android L".... :highfive:

[Guide] How to hide actionbar header on Android applications - The Gray bar

This guide is simple for the design of your application , hide the action bar header in the app inventor project apk
What is need?
1) Apktool Multi Toll installed and configure on PC with java supports installed to decompile see more here
2) Notepad++ or other editor XML codes
3) The " your application.apk to decompile
4) Codes to add
5) knowledge compile and decompile and sign application
On apktool folder put your apk on folder place-apk-here-for-modding
example: C:\Users\\APK-Multi-Tool\place-apk-here-for-modding
1) Now Run script.bat
2) Select your apk type on make you decision the code 24
3) Now decompile typing code 9 and wait finish (don't close cmd screen)
Important keep always open apktool script.bat during the all process.
4)Now select on project folder the AndroidManifest.xml and open it with notepad++
5) Put this line code to resise your screen mode between the last line <uses-permission and before <application android: label .
<supports-screens android:resizeable="false" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="false" />
The code will look like this
Code:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
[COLOR="Blue"] <supports-screens android:resizeable="false" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:anyDensity="false" />[/COLOR]
<application android:label="myappname" android:icon="@drawable/ya" android:debuggable="false">
Now go to hide the action bar " grey bar header"
Put this code android:theme="@android:style/Theme.Black.NoTitleBar" inside the < application after android:label and to left android:icon setup.
The code will look like this
Code:
<application android:label="myapp" [COLOR="blue"]android:theme="@android:style/Theme.Black.NoTitleBar"[/COLOR] android:icon="@drawable/ya" android:debuggable="false">
6) Now returns on apktool script.bat and type 12 to compile your apk. On next screen choice mode compilation line "Type Input 1 - 4:" type 1 to create an unsigned apk using the keep folder
Pay attencion on instructions when apktool stopped !
7) Now open up keep folder and delete and everything modified like of PNG, xmls, smali etc.... in this case you must be delete Androidmanifest.xml and resources. arsc files
8) Return on apktool screen and type enter to compile apk
When finished type 13 to sign your apk
Your apk compiled and modified ill be on place-apk-here-for-modding folder with name signed_"etc..."apk
Enjoy!!

Categories

Resources