Hello.
I'm French and live in Japan. I own a Samsung Galaxy S4 from Docomo (SC04E) in 4.4.2 who have only English, Japanese & Korean languages and I'm trying to add the French local in some system apks. (I take them from an extracted French ROM of the S4).
All is fine for a lot of them, I'd read a lot a tutorials before begun.
But When I work in the framework-res.apk, it seems to do nothing !
Explanation :
-No translation for the contextual menu in the home screen, and no translation in the lockscreen.
-I've tried to replace the "Swipe screen to unlock" message in the res/values/strings.xml (this is the only file who contain this text) and it didn't change after install (copy and replace with root browser) in the system/framework/ dir.
-The size of the modified file is bigger in root browser than the original one, even after reboot, so the file is the new one.
-After long time searching, I saw that the exact text in the lockscreen is "Swipe screen to unlock." whith a dot at the end, and I don't have this sentence whith a dot in any file of the decompiled framework-res.apk !!!
What I'm doing wrong ???
PS: I saw that it's possible to "overlay" the framework-res.apk (and any system apk) with a file in /vendor/overlay/ I don't have this directory.
Thanks in advance.
Find it !!
Ok, I will answer myself as I found the solution :
This is due to the "overlay" Samsung put in there phones (Touchwizz).
The apks are : Keyguard.apk and SecLauncher3.apk in /system/priv-app/
Anyway thanks for reading !!
how to edit text color in framework-res.apk
Can anyone give here give me some tut on how to edit the text colors and background in framework?.please i need help.
Related
Hi there,
I decompiled all apk from the system/app/ folder of the original .zip of the ICS ROM I want to translate (MIUIv4 RD), I added in each of decomplation directory the correct values-*lang*/ folder, I recompliled everything (without any error, using a bit mooded version of apktool (else it fails)), I flashed every apk to my phone, but the new language won't appear in MIUI ICS menu. Is there any more file to edit so that it can use new languages values ?
Thanks for help. If it succeed, I promise I will upload my files .
Cheers,
KennyG9
Hi everyone
I was getting some queries from Arabic, Vietnamese, Portuguese, Turkish and other languages speakers who wish to have their own loacalized SGH-T959V ROM.
So, here is what we did on HebrewValhalla ROM (Gingerbread BML) :
1. We took Valhalla Final as a basic ROM to be translated.
2. We found an SGS i9000 ROM already localized to the language we want.
3. We decompiled all Valhalla Final necessary APKs to be translated.
4. We decompiled all SGS i9000 necessary APKs to take their translations.
5. We recompiled all Valhalla Final APKs with the the new translations.
6. Pushed one APK at a time with language locality selected. verified and moved on. Finally did it for framework-res and chose language.
7. Minor adjustments, packing and publication.
Explanations :
1. First decide what is your ROM to be translated. download it and save it on a PC.
2. Find and download an SGS i9000 localized ROM. If there isn't such you're in trouble.
3. Download APKTOOL read this. Define the base ROM framework according to instructions and decompile all necessary APKs. save them all locally.
4. In a separate folder use another instance of APKTOOL and define the SGS i9000 ROM framework and decompile the corresponding APKs.
5. Find out what is your language 2 chars lang code (English=EN, Hebrew=IW).
Take out all the APKs Resource\values-XX and layout-XX and place them in the destination ROM corresponding APKs resources. for example :
SGSi9000ROM\APKTOOL\Projects\Camera\Resources\Values-XX should be copied to
ValFnl\APKTOOL\Projects\Camera\Resources\Values-XX
Compile all these APKs (take them from "modded apk") and remove the "signed" from the filenames.
6. Install a locality app like "MoreLocale2" with your selected or manually added language (for Hebrew it was IW, Hebrew) and check your APKs translations.
Once you finish compiling framework-res (and push it to framework folder - preferably through flashable zip or ADB) it will have your language inside and you could uninstall the locality app and choose it in the settings.
This will give you full framework UI support.
7.Take all files and put them in the original ROM location.
A) list of needed APKs on BML ROMs can be found here :
Need to take translations to
system apps:
AccountAndSyncSettings
Browser
Contacts
JobManager
MediaProvider
PackageInstaller
PhoneSetupWizard
SamsungApps
SamsungAppsUNA
SamsungWidget_ProgramMonitor
Settings
SnsAccount
SystemUI
TouchWizCalculator
TSMParts
TW4Launcher
Phone
Camera
TouchWiz30Launcher
TouchWizCalendar
Mms
framework:
framework-res.apk
Working directly from SGSi9000
system apps :
Talk
Street
ClockPackage
Music
Gallery3D
MusicPlayer
VideoPlayer
VoiceRecorder
MyFiles
AxT9IME
CallSetting
DialerTabActivity
Email
Gmail
Memo
B) Most of APKs are in system\app but for full UI you also need to handle the Framework\framework-res.apk
C) If you want to add tweaks and stuff : study how to make recovery flashables - search the web and examine tweaks and bootanimations and how their commands are written.
Now you can install your localized ROM.
Good luck!
(P.S - it took us 2 people about 10 days to release the first version).
Right to left languages (Arabic, Hebrew...) will additionally require RTL tweak - read this
You may need to also copy the fonts from SGS i9000 ROM.
Great
Oh great, man...I'm very pleased helping you with vietnamese yay (just tell me what to do ...and thanx for including Vietnamese :x
I just did...
Please follow instructions very carefully, ask me if you don't understand anything and do it yourself according to the GUIDE.
okay, I'll try my best to start something the next two week (have to finish the next exam week @@)...thanx for your guil...oooh and btw, can you give me any basic links as google is very wide that I don't know where to start with build.prop or framework lines...
You're running too fast. Work according to this with a lot of trial and error and then carry on by searching the xda forums. 99.99% of your questions were probably already asked and answered.
Sent from my SGH-T959V using XDA
By the way, even if there is no SGS i9000 ROM for your lanhuage you can still create the translated strings XMLs, it will just take you much much longer. Probably will need to spread the work with other teammates.
Sent from my SGH-T959V using xda premium
Hi Guys
This method is good for translating ICS ROMs as well.
I use it for HebMIUI.
The only thing changed is the version of APKtool to use and the system and framework apps to translate - this is a post I just sent Mataflikas :
Hi Amigo
To be able to translate Erik's MIUI ROM to Spanish,
What you need to do is go to miuiandroid site and download the SGS i9000 Spanish MIUI ROM.
Than download Erik's ROM. Download APKmanager/ APKtool for ICS and aapt ver. 1.5.0 and place aapt in the 'other' folder of apktool in your pc.
Now you need to copy framework-res.apk & framework-miui-res.apk from the Spanish ROM to the 'other' folder. Register both framework files by running in command line '..\other\apktool if framework-res.apk'
& '\other\apktool if framework-miui-res.apk'. Copy all system\app APKs as well as both framework files to the 'files to be modified' folder.
run the apktool batch script.
Decompile all the apks by selecting (option 22) & decompiling (9) one at a time.
Now go to each apk project folder (located in the projects folder) and enter the 'res' (resources) folder. I assume 'es' is the shortcut for Spanish locale - verigy that!
You need to take all the 'values-es', 'layout-es', 'raw-es' etc. These are the Spanish translations. Now repeat this for all the apks. Make a saparated apktool folder for Erik's ROM, register his own frameworks and decompile the same apks there. When you're done, throw every apk translation to the 'res' folder of the same app in Erik's ROM. When done, run script on Erik's and select (22) and compile (11) is this a system app? Choose YES, let me delete only changed data? Choose YES. Then it will make a 'keep' folder, go there and delete 'resources.arsc' file. Press any key and you have a new file 'unsignedAPKNAME' in the 'files to be modified' folder. Done with all apks you can replace them in the ROM zip and try to flash it. If framework-miui-res.apk is not valid you will enter a bootloop so leave it for the end. I didn't even recompile it on HebMIUI. Last things - you can change default locale & region in system\build.prop and change your gps location by changing the system\etc\gps.conf to the one of your country (google it). Good luck and let me know if you have a question.
And If you want to publish your result - talk to Erik first !
sent from me
The complete detailed guide for enabling Hebrew and RTL on CM7/CM9/AOKP based ROMs
Hello,
Some of you may be annoyed by the "No Notification" label on Android lollipop/marshmallow when there is no notification in the notification drawer in stock android
For those i made a quick guide how to remove this label!
lets start
Things needed:
Knowledge how to De/Recompile Apk's Get Knowledge HERE
Notepad++Download HERE
SystemUI.apk of rom
Patience if re/decompiling goes wrong
LETS START WITH THE GUIDE:
1) Extract SystemUI.apk with any root browser and paste to your PC (SystemUI.apk located in "root/system/Priv-app/SystemUI") do a Backup of orig. SystemUI.apk
2) Decompile the SystemUI.apk with apktool or any other Apk-Decompiler
3) Go to folder called "res". Than go to "values-xx" (xx stands for the language. I use my phone in German language so i will go for "values-de". Turkish people go to"values-tr" and so on)
4) After you are in "values-xx" folder open "Strings.xml" WITH NOTEPAD++
5) Press Ctrl+F and search for "No notifications" in your language you are using. In my case it will be "Keine Benachrichtigungen" (German)
(WARNING: There will be 2 results -> concentrate on the 2nd result)
6) Replace the "No notification" text with something you want to appear there. If you want to hide it, delete the "no notification" text and do not add anything.
(WARNING: Do not delete more than the "no notification" Text; So do not delete the whole string)
7) Save the file and close Notepad++
8) Recompile the apk and push it to your phone: "root/system/priv-app/SystemUI"
9) Reboot your phone and voila, you got a Notification drawer with no "no notification" text
tested by me on CM12 5.0.2 and CM12.1 5.1.1
I also made a German Video tutorial on this click Here
Thanks to:
@PulseDroid - for very good apk de/recompile guide
@Flextrick - for very cool apk De/Recompile Tool i am using
Didn't work :/
Couldn't find the "values" file or "strings.xml" or "No notifications"
I used Notepad++'s "Search in Files" to search through every file in systemUI's and framework's xmls and everything for the words "No notifications" . . . . and zero hits.
But I'm runnnig PAC Rom on the Nexus 5 so I guess it's not there for me. That's okay though, sometime when I try Cyanogen again I'll give this guide a shot.
GuitarGuy96 said:
Couldn't find the "values" file or "strings.xml" or "No notifications"
I used Notepad++'s "Search in Files" to search through every file in systemUI's and framework's xmls and everything for the words "No notifications" . . . . and zero hits.
But I'm runnnig PAC Rom on the Nexus 5 so I guess it's not there for me. That's okay though, sometime when I try Cyanogen again I'll give this guide a shot.
Click to expand...
Click to collapse
if you are using your phone in english language go "values-en" and there must be a "strings.xml" (if you are not using in english set your phone to english and try) :/
timuralaskara said:
if you are using your phone in english language go "values-en" and there must be a "strings.xml" (if you are not using in english set your phone to english and try) :/
Click to expand...
Click to collapse
Yeah, and I even used a Cyanogenmod ROM this time, still no "values-en" folder, no strings.xml , and yes I've been using English.
Still no luck
Could you send me your modified systemUI, somehow?
I could try a few things, maybe create a flashable zip if I find a solution.
I will send you my decompiled systemui.apk folder later on maybe tomorrow. Or give ya a screenshot. Because on every device i do own there is a values-XX folder in systemui :S
Are you sure that you have successfully decompiled it and had no errors? Because sometimes it does not decompile everything. Use
android multitool its tha best decompiler and do not forget to install framework-res.apk (located in system/framework).
You can send me your systemui too i will try it (send me systemui in system/priv-app and framework-res.apk located in system/framework)
Sent from my SM-G900F using XDA Free mobile app
This is probably the most delayed reply ever but...
I finally got it working! I tried it out again today - this time absolutely focused xD I still have absolutely no idea what went wrong back then, but I'm so glad it's working now. I followed on through that German YouTube video (made the first comment to it too!) and it worked!
I think I'll even use this method to change other text all over the phone xD Make it more informal (Battery is charging > Battery's charging - lil stuff like that) and stuff to be more like me haha.
I'll have to do this every time I change ROMs though and I'm pretty frequent at that.. I'll see if I can try adding only my customized values-en xml to a new ROM's SystemUI apk and hopefully having it work..?
But that's for another time, for now, I'm kinda happy to have this clean, empty notification shade. Real slick!
Thanks! :laugh: :highfive: :highfive:
GuitarGuy96 said:
This is probably the most delayed reply ever but...
I finally got it working! I tried it out again today - this time absolutely focused xD I still have absolutely no idea what went wrong back then, but I'm so glad it's working now. I followed on through that German YouTube video (made the first comment to it too!) and it worked!
I think I'll even use this method to change other text all over the phone xD Make it more informal (Battery is charging > Battery's charging - lil stuff like that) and stuff to be more like me haha.
I'll have to do this every time I change ROMs though and I'm pretty frequent at that.. I'll see if I can try adding only my customized values-en xml to a new ROM's SystemUI apk and hopefully having it work..?
But that's for another time, for now, I'm kinda happy to have this clean, empty notification shade. Real slick!
Thanks! :laugh: :highfive: :highfive:
Click to expand...
Click to collapse
am glad to see it is working now for you
i think it was because you hadnt got the right apktool, so you hadnt the values folder after decompiling
you can also look in the normal "values" folder in dimens, bools, and integers.xml there are some really amazing values you can modify :good:
Hello,
This is a guide that will show you how to edit app icons, by decompiling the apk file using Apktool X (current version is: 7.2.2a- Black).
But why would You want to edit a app icon using this method?
Well, at the time of speaking Android N doesn't have support for Xposed so you can't use Flipster for example... Or if you don't have root, by following this guide you can edit app icons system- wide.
Firstly download Apktool X by Andro Black.
After that you want to install it, and find a apk file you want to modify.
After you found the apk, press it once and chose: Decompile res
After that is done (depending on your phone and the apk size it might take several minutes), Use a file manager and open the "Base_src" > "res".
Then find " minimap-*****-** (the "*" could be for example xxhdpi-v4).
Then open one of those minimap folders ( I recommended the first or last one so you could keep track of it where you replaced the icons).
Copy your preferred .png icon and paste it in one of the folders. In the minimap folder you should find the .png icon... Usually it has a name ic_launcher.png.
Delete it, and rename your icon to the name of the stock icon.
Repeat the process in every minimap folder.
After you did that, go to Apktool X and find the Base_src file that you just edited.
Long press it and chose recompile.
Now wait... A few moments/minutes...
When it's done you will get a base_src.apk.
Press it and chosse "Sign".
After that install the base_src_sign.apk
After installation i recommended disabling updates for that app, because a future update will (most likely) overwrite your icon.
Special thanks to: @iBotPeaches for making the original Apktool, and Andro Black for updating the app.
Hope this help's Your OCD :laugh:
In case this guide doesn't help you, leave a question, and i will kindly answer as soon as i can.
In case this works for You, it would be great if You could leave a thumb's up
Links:
Apktool by Andro Black: https://www.androidfilehost.com/?w=profile&uid=24562946973631820
Tags: Edit app icons, no root, icon pack, system wide
Screenshots:
-Here is: Kernel Auditor with a modified icon:
Whatsapp with S8 icon plz
Editing app's totally
Open an app as zip file then res>midmap.
You can see three or four midmaps, there will be a png called ic_launcher.png or icon.png change it manually which icon you want and rename it as what the icon name is in midmap that's all it will be change completely.
Thank you for reading.:
Hello, I would like to ideally modify the icons of the status bar and the icons of the quick setting.
I have some knowledge and I have already made modifications on these icons but on Android 7 using the very good Tickle my Android tools.
But on android 10 (customn havoc rom) I made modifications but could not apply them in the phone.
my question does anyone know the location (android 10) of the icons (png or xml) for the status bar and quick settings and above all is it always possible to modify them on android 10?
thank you in advance
Bradco said:
Hello, I would like to ideally modify the icons of the status bar and the icons of the quick setting.
I have some knowledge and I have already made modifications on these icons but on Android 7 using the very good Tickle my Android tools.
But on android 10 (customn havoc rom) I made modifications but could not apply them in the phone.
my question does anyone know the location (android 10) of the icons (png or xml) for the status bar and quick settings and above all is it always possible to modify them on android 10?
thank you in advance
Click to expand...
Click to collapse
Hi,
Yes it's possible to modify it. TMA is an amazing tool indeed . And you'll find those icons in the drawable folder of the SystemUI.apk of your ROM. You'll just have to replace them with the images(.png) you want. Remeber to keep the same resolution as the original icons and remember to keep the signature unchanged when recompiling the apk, since it's a system app it will crash repeatedly if the signature isn't kept.
Have a good day
Edit#1: You have to change the pics in every drawable folders.
E.g: drawable-hdpi....
And you have to keep the name of the files.png unchanged.
Raiz said:
Hi,
Yes it's possible to modify it. TMA is an amazing tool indeed . And you'll find those icons in the drawable folder of the SystemUI.apk of your ROM. You'll just have to replace them with the images(.png) you want. Remeber to keep the same resolution as the original icons and remember to keep the signature unchanged when recompiling the apk, since it's a system app it will crash repeatedly if the signature isn't kept.
Have a good day
Edit#1: You have to change the pics in every drawable folders.
E.g: drawable-hdpi....
And you have to keep the name of the files.png unchanged.
Click to expand...
Click to collapse
Thanks raiz for your precision but lot of icon are vectorial in .XML files in drawable folder, in XML the size is in dip i don't know how convzrtz ( if it possible ) in pixel. Another thing my systemUI is in system/product/priv-app/systemUI for recompile I don't this directory, normally it is in system/priv-app/systemUI.
To finish in the rom I can choose différente style like file attached which one correspond to icon in systemUI.apk ?
Bradco said:
Thanks raiz for your precision but lot of icon are vectorial in .XML files in drawable folder, in XML the size is in dip i don't know how convzrtz ( if it possible ) in pixel. Another thing my systemUI is in system/product/priv-app/systemUI for recompile I don't this directory, normally it is in system/priv-app/systemUI.
To finish in the rom I can choose différente style like file attached which one correspond to icon in systemUI.apk ?
Click to expand...
Click to collapse
Hi,
Attachment aren't working apparently, can you upload the screenshot on imgur ( imgur.com/upload )
For the drawables in vector format, you can use shapeshifter.design which can convert svg to xml, and xml to svg. Create svg files with an image editing software (like inkscape) and make svg files out of the icons you want and convert them to xml with this really convenient website.
If you come across binary XML files (xml files with numbers and letters, not xml code) , you can use axmldec ( https://github.com/ytsutano/axmldec ) to decode them.
PS: The accent in "différent" betrayed your origins lol, you're a fellow French as I can see
Raiz said:
Hi,
Attachment aren't working apparently, can you upload the screenshot on imgur ( imgur.com/upload )
For the drawables in vector format, you can use shapeshifter.design which can convert svg to xml, and xml to svg. Create svg files with an image editing software (like inkscape) and make svg files out of the icons you want and convert them to xml with this really convenient website.
If you come across binary XML files (xml files with numbers and letters, not xml code) , you can use axmldec ( https://github.com/ytsutano/axmldec ) to decode them.
PS: The accent in "différent" betrayed your origins lol, you're a fellow French as I can see
I upload the image
https://drive.google.com/file/d/1-dFu3EGK8BwWVARoHWsgIjXePvy16pKX/view?usp=drivesdk
Click to expand...
Click to collapse