[GUIDE][GB]Add CM7 Screenshot button in status bar panel - Android General

Hello guys…
This guide is for developers who are still developing Android 2.3 GingerBread devices. Before adding, make sure your ROM has CM7 Screenshot app.
Let's start!
1. Decomplie SystemUI.apk
2.Unzip the smali folder in smali.zip and copy the smali folder to decomplied smali folder.
3.Open the layout xml which you want to add button, and add this line according to your layout:
<com.vesa.actionbar.BackButton android:layout_height="32.0dip" android:layout_width="fill_parent" android:text="@string/meui_ssbtn" android:background="#00000000" />
4.Open res/values/strings.xml, and before </resources>
add this line:
<string name="meui_ssbtn">Take Screenshot</string>
5. (Additional) If you want Simplified Chinese support, open res/values-zh-rCN/strings.xml, before </resources>
Add this line:
<string name="meui_ssbtn">屏幕截图</string>
6.Recompile SystemUI, sign(if you have patched signature) and put it in system.
Sorry for my English…
Smali comes from:
https://forum.xda-developers.com/an...buttons-titlebar-height-t2825667/post54349163
Thanks!
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Attachment:
https://mega.nz/#!xYMi1ZpY!vSWC9pXeA6VTt1Ie-XVDIEAPM-elZoW1u7r60AJDwcM
Key to link: !vSWC9pXeA6VTt1Ie-XVDIEAPM-elZoW1u7r60AJDwcM
(If your ROM doesn't have screenshot support, put the apk into /system/app and set permission 0644, put the screenshot file into /system/bin and set permission 0755. )
Created: 2017-3-4
Last updated: 2017-3-4
如果您的母语是中文,前往:http://tieba.baidu.com/p/4649407787
Sent from my Honor 4C 『天生急性子』

Reserved.
Sent from my Honor 4C 『天生急性子』

If this guide helps you, please click thanks button…
Sent from my HUAWEI CHM-TL00H using XDA Labs

Related

User manual for translation Android software into Your's native language

I'm posting this on behalf of member zerabot.
Hi all.
Immediately apologize for my English, writing for the first time in 7 years)
If the moderators to correct mistakes, I'm not offended.
Maybe what I'll write to you is not new, but maybe useful to someone.
This is user manual for translation Android software into Your's native language.
Heare original of this instruction on russian
Download and install
Check My computer->Properties->additional->environment variables->Path
Is way to java heare? If no, add it.
this and this download and unpack to c:\windows
run console
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
in command line
apktool d <way to *.apk> <way to dir>
download
http://artfulbits.com/Android/Localizer.aspx
open whith it <way to dir>
press + and add 2 letter code for you language
Translate all files from right spoiler
Delete not used files
When done in command line
apktool b <way to dir>
it create folders dist and build we need *.apk file in next steps from dist folder
in first time you need a key
to generate it in command line
keytool -genkey -alias <YourAliasName> -keyalg RSA -validity <NumberDays> -keystore <YourKeystoreFilename>
And finaly in command line
jarsigner <way to *.apk from dist filder> <YourAliasName>
Enter you password on keystore. And be happy.
This may be of some assistance to users, applies to any rom.
http://forum.xda-developers.com/showpost.php?p=8268893&postcount=3

Your proper currency – installed with tiwili - take it, work it, leave it

Hi,
this is what you will get by zip-file but you are able to customize for your own:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Further informations of installation method:http://forum.xda-developers.com/showthread.php?t=1232479
Script updates HTC_IME.apk and changes alternative symbol on "f" (currency symbol).
You can change it to every symbol you like to have. Updatefiles put "€" -symbol on keyboard.
What is to do?
Download & extract zip-file
If you´d like to have "€"-Symbol on keyboard and your language settings have no proper files (or you are german):
Goto 5.
If you´d like to have "€"-Symbol on keyboard and your language settings have proper files:
Zip-file contains proper qwerty_COUNTRYCODE.xml and land_qwerty_COUNTRYCODE.xml in CountryFiles folder. Search your ones and change this line in both files:
Code:
<key codes="0x0066" label="f" topLabel="[COLOR="Red"][B]€[/B][/COLOR]" popupCharacters="@string/alternates_for_f_lower" accentType="3" alignIndex="0" xt9idx="13" />
copy files to \UpdateKeyboard\res\xml-hdpi\*.*
Goto 5
If you´d like to have "MySymbol"-Symbol on keyboard change \values\strings.xml in folder UpdateKeyboard\res\values and change
Code:
<string name="alternates_for_f_lower">[COLOR="Red"][B]MySymbol[/B][/COLOR]</string>
Do the same with above specified line in land_qwerty.xml and qwerty.xml in \UpdateKeyboard\res\xml-hdpi\*.* Or edit proper settings files like in 3.
run tiwili_ws.bat
Strings.xml is for "what happens while pressing".
Files in xml-hdpi are for the right look.
As always: I´m not responsible for any damage etc. If you want to go back run recovery.bat.

[MOD]Enable Navigation-Bar(4.0+)

Well i wrote a guide for my phone wanted to share it here too.
Here is my actuall thread in my own device forum
http://forum.xda-developers.com/showthread.php?p=38495602
Anyone ever wanted to have those sexy on screen buttons that devices like Nexus have?
No need to wait anymore!
Here it is :beer:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Its pretty easy !:beer:
Here are the steps
Instructions for CustomRoms
1)Hit Up Root Explorer
2)Go to System¬>Build.prop
3) add this line at the end of the build.prop then save and exit.And restart.
Code:
qemu.hw.mainkeys=0
This Code for turning off Navigation Bar
Code:
qemu.hw.mainkeys=1
Well that was pretty basic one.
So now in case of our stock ICS ROMs
Instructions for stock ics
1)Decompile Framework-res.apk
(better to use apktool1.5.2 or later)
2)now go to res¬>values¬>bools.xml
3)open bools.xml with notepad++
4) edit this
Code:
<bool name="config_showNavigationBar">false</bool>
TO
Code:
<bool name="config_showNavigationBar'>true</bool>
5)save and recompile apk
6)add The line
Code:
qemu.hw.mainkeys=0
To build.prop then restart
Now if you want to change the size of the navigation Bar
instructions for all roms to change size
1) decompile framework-res.apk
2)Go to res¬>values¬dimens.xml
3)open dimens.xml using notepad++
4) at line number 14,15,16,17
Edit the Dpi values to your choice
Code:
<dimen name="navigation_bar_height">48.0dip</dimen>
<dimen name="navigation_bar_height_landscape">48.0dip</dimen>
<dimen name="navigation_bar_width">42.0dip</dimen>
<dimen name="navigation_bar_height">28.0dip</dimen>
5)save and recompile apk
Thats so easy :screwy:
Enjoy your "Nexus Bar Experience":thumbup:
If you think this post is helpfull press :thumbup: button
If you wanna buy me a:beer: donate me
Click to expand...
Click to collapse
-Rik[Rittik]

[Guide] How to add Cyanogenmod Contribution In Settings

How to add Contributors Credits options of Cyanogenmod ROM in other ROMs
Hello good day XDA
Tested this on MT6577 & MT6589 device running Jellybean. I think this guide will work on other's too.
REQUIREMENT:
- BRAIN
- Patient
- experience
- Know how to decompile/recompiling Apk
- notepad++
- APKTOOL 2 ++
Ok Let's Start
STEP 1
First decompile your Settings.apk.
STEP 2
Merge the files in Settings.apk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
STEP 3
Now replace the exiting png named "contributors_cloud.png" present in "assets" folder with your png. But make sure the name of png should be same i.e "contributors_cloud"
STEP 4
Now open "device_info_settings.xml" Or Where ever You Want present in Settings.apk/res/xml and add this code.
Code:
<PreferenceScreen android:title="@string/rom_thanks" android:key="rom_thanks" android:summary="@string/rom_thanks_summary" android:fragment="com.android.settings.gurpreet.ContributorsCloud" />
STEP 5
Now open the "strings.xml" present in Settings.apk/res/values and add these lines above </resources>
Code:
<string name="rom_thanks">Special Thanks To</string>
<string name="rom_thanks_summary">Touch here to see the names</string>
STEP 6
- Compile
- Sign it
Special Thanks to :-
Code:
Cyanogenmod
Gurpreet Singh
Note !
You can change the background colour from gray to any by editing this "-0xbbbbbc" in ContributorsCloud.smali
HAPPY MODDING
SCREENSHOTS
Reserved
nice sir...thx for guide
Thanks you.
D2Y aka E said:
nice sir...thx for guide
Click to expand...
Click to collapse
Carlos Arriaga said:
Thanks you.
Click to expand...
Click to collapse
Your Welcome HIT THANKS

[HOW-TO][5.0+] Make "Thomas was Alone" from Amazon APPStore work on 5.0+

So if you bought, or got the app Thomas was Alone from the amazon appstore and tried to install it on your 5.0+ device you would get a rather nice(/s) screen saying "App not Installed", after wanting it to play on my dd (a 5.1.1 nexus 5)i decided to take a look on it, and found how to fix.
What you will need:
- PC
- Apktool: https://ibotpeaches.github.io/Apktool/
- Signapk: https://code.google.com/p/signapk/
- Thomas was alone apk http://www.amazon.com/Bossa-Studios-Ltd-Thomas-Alone/dp/B00LXFHI60
(you can dump it using root, downloading it via appstore, using a root file explorer, then going to /data/data/com.amazon.venezia/files/apks)
How to:
- Decompile the app using a cmd line on a folder where both apktool and signapk are, the command is "java -jar apktool.jar d <apk name>.apk" without quotes (since the apk is named as hash by the appstore, it will differ per device, also its without quotes and <>).
- Navigate to the folder with the same name as the apk, open AndroidManifest.xml and delete
android:installLocation="preferExternal" from the manifest tag(line 2)
before:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" package="com.bossastudios.twadroid">
after:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.bossastudios.twadroid">
- recompile it using "java -jar apktool.jar b <name of folder of decompiled apk>"
- sign it using "java -jar signapk.jar <key>.x509 or .pem key.pk8 <Name of the decompiled apk folder>\dist\<Name Of Decompiled Apk>.apk ThomasFixed.apk
- done, now you can install it via phone or via adb install ThomasFixed.apk
Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Categories

Resources