[Q] [HELP] Port recent apps menu - General Questions and Answers

Hi guys, Im porting SystemUI from a rom I found to my JB stock rom, I decompiled the app but I cant find the file where is the appareance values of recente apps menu.
I'd appreciate if someone tell me how to change the style of recent apps menu. Thanks
PD: Im sorry for my poor english. I did my best

Not gonna be that easy. The recents apps are. Coded through out the whole system. You will have to rewrite the system ui, framework res as well as a few jar files all in Java code.

zelendel said:
Not gonna be that easy. The recents apps are. Coded through out the whole system. You will have to rewrite the system ui, framework res as well as a few jar files all in Java code.
Click to expand...
Click to collapse
I replace my systemUI with root explorer and it changed. Its not a big change, the only difference is the orientation of the recent app menu, but I think it was designed for Hdpi screens , so I want to change values and see if it works , but I dont know which file I have to edit. I have Java and C programming knowledge.
PD: Sorry for my english, its not my native language

Related

Android Localization?

Hello people,
I just saw on YouTube that some guy had localized their Android in Ukrainian. Is it possible to do this in other languages and what would I need for this?
Thanks a lot!
zkvvoob said:
Hello people,
I just saw on YouTube that some guy had localized their Android in Ukrainian. Is it possible to do this in other languages and what would I need for this?
Thanks a lot!
Click to expand...
Click to collapse
You could:
Download system sources (original AOSP or maybe sources of some ROM, if they are available), modify them and build. Very long way - I don't recommend it to you.
Talk to some ROM cooker - you will send him localized strings and he will integrate them into his ROM.
You could also use apktool to decode framework-res.apk file, add new locale, build it and install, but it isn't that good: first - it might add some issues, second - you will have to do it after each ROM update.
Second option is the best, I think.
try this app, for me it works with the latest king MT3G-Slide2G1 ROM
http://www.androlib.com/android.application.jp-co-c_lis-ccl-morelocale-qnpC.aspx
bluedragon1982 said:
try this app, for me it works with the latest king MT3G-Slide2G1 ROM
http://www.androlib.com/android.application.jp-co-c_lis-ccl-morelocale-qnpC.aspx
Click to expand...
Click to collapse
Err... I think you didn't understand first post ;-)
Brut.all said:
You could also use apktool to decode framework-res.apk file, add new locale, build it and install, but it isn't that good: first - it might add some issues, second - you will have to do it after each ROM update.
Click to expand...
Click to collapse
Will try it,but where I have to add new locale?
Framework-res.apk now decoded,but at which file are the languages?
Ganii said:
Will try it,but where I have to add new locale?
Framework-res.apk now decoded,but at which file are the languages?
Click to expand...
Click to collapse
You must create e.g res/values-fr (for French language) directory and place strings.xml file in it - similar to strings.xml in the res/values dir.
You should read about Android apps development.
After decoding the apk I add this to the "res" folder,maybe you can
check if it`s right?
Original framework.apk also attached!
Then,after decoding,I have to build new apk and sign it,right?
Hi
did anyone succed with this? In my case all the languages are existing in framework-res.apk but unfortunately only a few of them are available in the language settings menu. Does anyone have an idea on how the menu is set up?
Android localization tool
You can localize Android apps in up to 200 languages using this localization tool: poeditor.com. Translators will have a great time with it, as it offers various features such as translation memory and automatic translation via Google or Bing. :good:

Install New Fonts to read books / without Root

I am trying to add more fonts, popular microsoft word fonts, and read books with those fonts. I use fbreader app for reading books and the font choice is very limited as is. Can anyone show how to add fonts without rooting the device? Galaxy tab 2 7 Android ice cream sandwich
Decompile the fbreader.apk , change fonts.( Thats if it uses a custom font and is included in the .apk) Recompile / sign , Push to device.
http://forum.xda-developers.com/showthread.php?t=1633333
Why not just root and use a custom App to change fonts ( ROM ToolBox Pro for example)? Much easier IMO , but up to you as its your device :laugh:
Read the link below , VERY cool app and most of us have used it and had no problems. Makes your device all "new" in case of warranty issues.
http://www.xda-developers.com/android/triangle-away-updated-to-support-new-devices/
Edit : Is it a free App ? Post a link and I will see if the fonts can be changed
Sean_Seany said:
Decompile the fbreader.apk , change fonts.( Thats if it uses a custom font and is included in the .apk) Recompile / sign , Push to device.
http://forum.xda-developers.com/showthread.php?t=1633333
Why not just root and use a custom App to change fonts ( ROM ToolBox Pro for example)? Much easier IMO , but up to you as its your device :laugh:
Read the link below , VERY cool app and most of us have used it and had no problems. Makes your device all "new" in case of warranty issues.
http://www.xda-developers.com/android/triangle-away-updated-to-support-new-devices/
Edit : Is it a free App ? Post a link and I will see if the fonts can be changed
Click to expand...
Click to collapse
Thanks Sean....Is what a free App?
I heard that fbreader uses whatever fonts thats already on the system?
Sorry I meant is fbreader a free app. Tried to download it via the play store and it says its incompatible with my tab ? SGT2 3110.
Pretty sure you will need root access to alter font settings. If it was in the fbreader.apk I could change them to what ever you wanted. If it uses stock fonts , You would have to change the system font it uses ( just swap the fonts over keeping the same font name so they are referenced in the system )and that would be a system wide change, kinda gets tricky messing with stuff, fun....but tricky
You could , If you had root , decompile system./framework apks and reference new fonts to use. You will need some tools to do this ( All free ) and some knowledge of editing .xml with something like notepad++.
lol Sometimes the easiest way is the best way .......
Can I use my own fonts with FBReader?
Yes. Put your *.ttf and/or *.otf files into Fonts directory on the memory card. Then new fonts will be available in Text section of the preferences dialog.
Click to expand...
Click to collapse
http://www.fbreader.org/faq-page#t29n240

[Q] Adding locale pack to stock rom from other stock rom

Hi.
I'd like to add language packs from a stock samsung rom to another samsung rom.
For example take all the languages from EU SGSII LTE and add them to SGSII LTE Skyrocket?
Is there some script or program or a non-time-consuming solution if all the apps (except for carrier bloat) ar the same?
bump?
¡Ԁwnq
Add the apk to the app directory in the rom. Just extract the two roms with 7zip and copy it from the rom it's in into the rom you want it in. Zip it up and flash it. Look for system/app.
Edit, if you really meant stock and not from zip's, You're on your own
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Deodex stock ROM.
Decompile the framework resources (system/framework/*.apk) and all the stock apps (/system/app/*.apk) from source and target builds.
Copy over all the language files (under eack APK at /res/values-*) to the target build.
Recompile all the framework resources and apps.
You can do it all app-by-app, if you want.
Lots of work.
ROM will grow significantly.
Can't be done without de+recompiling - language resources are XML.
jd1639 said:
Add the apk to the app directory in the rom. Just extract the two roms with 7zip and copy it from the rom it's in into the rom you want it in. Zip it up and flash it. Look for system/app.
Edit, if you really meant stock and not from zip's, You're on your own
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Click to expand...
Click to collapse
Zip's are fine, but i've tried doing what you said, som time ago, and ended up with a bootloop. Thanks for the effort
Jack_R1 said:
Deodex stock ROM.
Decompile the framework resources (system/framework/*.apk) and all the stock apps (/system/app/*.apk) from source and target builds.
Copy over all the language files (under eack APK at /res/values-*) to the target build.
Recompile all the framework resources and apps.
You can do it all app-by-app, if you want.
Lots of work.
ROM will grow significantly.
Can't be done without de+recompiling - language resources are XML.
Click to expand...
Click to collapse
Yes that's what I thought. Do you know if I have to add language entries to the language chooser menu or will they pop up automatically?
Don't know the answer to that one... Sorry. I'd be interested to know that too.
Jack_R1 said:
Don't know the answer to that one... Sorry. I'd be interested to know that too.
Click to expand...
Click to collapse
I found some info on this problem:
http://forum.xda-developers.com/showthread.php?t=1924043
http://forum.xda-developers.com/showthread.php?t=1564694&highlight=tool
Lol sometimes it's easier to search by making a new thread and look what similar threads pop up
EDIT:
After some searching on the topic of adding languages to roms, batch decompiling of apk's etc i've found lots of useful info. I'll report back when i have anything to show...

Question regarding framework

sorry if this is in the wrong section
The question is: how to find which framework files are required by an app?
well i am building a rom and i am adding a few apps from stock rom (eg touchwiz Gallery chat on etc)
so i want to know which framework file are utilised by these and oter few apps.
iamashwin said:
sorry if this is in the wrong section
The question is: how to find which framework files are required by an app?
well i am building a rom and i am adding a few apps from stock rom (eg touchwiz Gallery chat on etc)
so i want to know which framework file are utilised by these and oter few apps.
Click to expand...
Click to collapse
First off using those fonts sizes are pointless.
You will need all framework from the rom you are porting them from. In you example you will have to have all of touchwiz framework files. there are 3 TWframeworks-res, framework-res and lidroid-res apks as well as other lib files needed.

Any way to theme phones any more?

I've been trying to skin my phone and run into a problem I can't seem to theme where the navigation bar is Eg using uccw you can't place nothing or when using docks on launchers it places a rectangle that stops above nav bar. I know with lollipop there is no xposed framework
Sent from my Nexus 5
You decompile the apk packages, change what you want and recompile.
Lethargy said:
You decompile the apk packages, change what you want and recompile.
Click to expand...
Click to collapse
There is no need to decompile and recompile. You can just copy/paste same named png-s in .apk/res/drawable nodpi or drawable xxhdpi for our device. That works for all apps from factory image.
Regards, Zagor
Is it possible to theme nav from homescreen only so I can give it its own background
Sent from my Nexus 5
zagorteney said:
There is no need to decompile and recompile. You can just copy/paste same named png-s in .apk/res/drawable nodpi or drawable xxhdpi for our device. That works for all apps from factory image.
Regards, Zagor
Click to expand...
Click to collapse
Recompilation is required to edit things like XML. Signing properly is also important.
Lethargy said:
Recompilation is required to edit things like XML. Signing properly is also important.
Click to expand...
Click to collapse
Whith respecr dear Lethargy! You don't need to decompile and signing properly stock app. For example: if you want to change almost all of UI, you just have to change images in framework-res.apk. You don' t need to do things mentioned before. When I was on Xperia I made this way too UI look like AOSP as possible.
I think that for noob is enough to know that. But off course, if you are UI designer and developer that isn't enough.
Regards, Zagor
zagorteney said:
Whith respecr dear Lethargy! You don't need to decompile and signing properly stock app. For example: if you want to change almost all of UI, you just have to change images in framework-res.apk. You don' t need to do things mentioned before. When I was on Xperia I made this way too UI look like AOSP as possible.
I think that for noob is enough to know that. But off course, if you are UI designer and developer that isn't enough.
Regards, Zagor
Click to expand...
Click to collapse
For replacing a .png it might be okay, but in no way are you going to modify anything else that way. Recompiling is the PROPER way to do it.
So in short someone like me I'm out of luck
Sent from my Nexus 5
tonyt3rry said:
So in short someone like me I'm out of luck
Sent from my Nexus 5
Click to expand...
Click to collapse
If your launcher supports it you can hide the navbar then attempt to use something like Zooper Widget to imitate them on the bottom, but other than that, you have to recompile SystemUI.apk.
Wouldn't I need it for when I'm in apps
Sent from my Nexus 5
tonyt3rry said:
Wouldn't I need it for when I'm in apps
Sent from my Nexus 5
Click to expand...
Click to collapse
Read my post again, I said on the launcher.
Can you tell me what launcher supports it I know if I had pie or what ever it is called I could hide it
Sent from my Nexus 5

Categories

Resources