Okay, maybe I'm retarded, I've dug through the suspected files and searched all over the internet.
Where does android specify the system fonts?
I would prefer to change it the right way, rather than just renaming files.
Is that possible?
Thanks
D
Weird no-one has replied to this.
In the android source code, navigate to this directory:
android/system/frameworks/base/data/fonts
Once there, copy paste any fonts into the folder (I usually just rename it to DroidSans.ttf and DroidSans-Bold.ttf so that the system picks it up without much configuration),
If you aren't going to rename or you want to add extra fonts, this needs to be specified in the Android.mk file in the same directory so it gets added and utilized by the system correctly.
Hope I helped and Happy ROM-ing
What about leaving the font name as it is? The system won't recognize it as a font even with the ttf type?
Sent from my HTC Desire HD using XDA App
Related
It has been asked before... and I think I have the hang of some of it... BUT...
I have been modifying some of my app icons via xRecovery. The method I used was via 7zip and replaced the iconfiles through there... I have been using [FW 2.1.1.A.0.6] Black HTC Theme for X8/X10mini/pro ~XRECOVERY~ [UPDATE:11.03.2011] and the enclosed "app-update.zip" via xRecovery.
Now to my questions!
1: Where do I find my installed apps (apk´s) on the internal storage? I use RootExplorer and was thinking about copying apk´s to the memorycard and then transfer to my PC, modify them there
2: Can I use the "app-update.zip" method to all selected apps? For example... the App-update.zip" contains "SemcContacts.apk" and it workes fine to change this way... but can I just put "handcent.apk" or "Ndrive.apk" in the same "app-update.zip" without any problems?
I hope I have explained so you guys can understand what I´m talking about...
Best regards
Manneman, Sweden
1: "/system/app" and "/data/app"
2: if you do it with 7zip yeah it will work if you give them the same name and place in the app-update.zip
example you want to replace "com.blablabla.hey" in direction /data/app
you need to name the app "com.blablabla.hey" and in the app-update.zip it need to be placed in the dir /data/app
Hmmm... Ok, I found the *apk´s under "system/app"... no worries there. I just replace the png "CalendarProvider.apk" that represents the icon. via 7zip. After that I implement it with "app-update.zip"
"app-update.zip" contains two folders... META-INF and system. The system-folder contains the folder app witch has some apk´s... That these apk´s is coming from "system/app" on the internal storage I understand. So in order to install modified apk from "data/app" I have to create a folder in my apps-update that is named data/apps with my modified apk´s?
So in the end my "apps-update" will look like this:
apps-update.zip containing Folders META_INF, system and data coresponding to the apk´s I have changed...
All this will be done with 7zip without extracting anything....
Manneman32 said:
Hmmm... Ok, I found the *apk´s under "system/app"... no worries there. I just replace the png "CalendarProvider.apk" that represents the icon. via 7zip. After that I implement it with "app-update.zip"
"app-update.zip" contains two folders... META-INF and system. The system-folder contains the folder app witch has some apk´s... That these apk´s is coming from "system/app" on the internal storage I understand. So in order to install modified apk from "data/app" I have to create a folder in my apps-update that is named data/apps with my modified apk´s?
So in the end my "apps-update" will look like this:
apps-update.zip containing Folders META_INF, system and data coresponding to the apk´s I have changed...
All this will be done with 7zip without extracting anything....
Click to expand...
Click to collapse
yup your right BUT!
in META_INF if you click through all maps that are in there you will end up with a file called update-script
drag it on you desktop
open it with wordpad(!)
search this line "copy_dir PACKAGE:system SYSTEM:"
and paste this underneath it
"copy_dir PACKAGE:data DATA:"
without the quotes ofc
owain94 said:
yup your right BUT!
in META_INF if you click through all maps that are in there you will end up with a file called update-script
drag it on you desktop
open it with wordpad(!)
search this line "copy_dir PACKAGE:system SYSTEM:"
and paste this underneath it
"copy_dir PACKAGE:data DATA:"
without the quotes ofc
Click to expand...
Click to collapse
Awww...sweet. That was just what I needed to hear. I was sure that something like that had to be added!
BTW... the modified apk´s will overwrite the original ones, right? No backup-crap (like Windows) is made by the Xrecovery installation?
Thanx!!!
Worked like a charm!!!
Thank you for all the help!!!
Well...I take that back...
I just replaced the iconfiles with my modded ones... the same name and size as the original. Everything done within 7zip...
All the apk´s within the "system"-folder worked fine... bur the ones within the "data"-folder uninstalled instead. In Appbrain the are still installed but in the drawer the are gone. I had a couple of them as shortcuts on my homescreen and the I get the message that thay are not present on my system.
Thank god it was only a couple of apk´s i modded so I reinstalled them via Market.
I added the line as You described but something must have happened?
// Manneman
Anyone mind sharing a link or some directions on skinnning themes?
I've had someone give me these instructions:
1) extract/Decompile the .apk file you want to MOD or make changes to. Use m10 editor for this.Select the option "decomplie all"
2) Minimize the m10 editor, and open the folder where you m10 editor is installed. There you would find a folder with the name of the .apk file you just decomplied. Go to folder assests>"base theme name">drawble>shared folder.
3) now select the .png files you want to edit. Install Paint.net, and edit with them, it was easy process for me. Remeber to "flip image vertical" after you are done with editing.
4) now go back to m10 editor, and Save the file.
5) You should have AndroidSDK installed.If not, do it. Then go to the folder where you have installed it. open the "autosign" file. It will open command prompt. There select the option to sign the file manually. Give the path for the file. It will sign it then. Exit from that program.
6) you are done, you can install it now.
I've gotten this far, but i can't find out how to change these 3 things below:
In de-compiled files changes have to b made in three places.
1. Androidmanifest.xml (name of package). how do u change this?
2. Res\values\strings.xml (name of theme). how/where do u change this?
3. Assets\shared(change this to theme name) h0w/where do u change this?
Also everytime I replace the background images, when I recompile it, my background images don't stay.
Any help would be much appreciated...
okay so i hate to tell you to download something else but i use .apk manager and it is a lot more straight forward.
decompile the apk using that.
go into the projects folder, you will see the Androidmanifest.xml
what are you trying to change in there exactly? if its just icons things like that those are easy but if you are trying to change the packageID it will just cause FC's
strings.xml hangs out in the following
projects->*.apk(this will be the name of what you decompiled)->res->values->strings.xml
then go into the xml and it will have a line with the name of the apk that you can change
assets has it's own folder i haven't hung out in there at all i haven't really had a need but it is in the same file tree with the res folder
now the issue upon recompiling, when doing the recompile in apk manager press y and y to the 2 options, it will create a keep folder go into that and delete the classes.dex if you messed with any images in the drawable folders, and the resources.arsc if you changed any of the xmls. then go into the keep directories sub folders and delete the items you changed then finish the compiling
sorry if i am not the best at explaining this
Yes, what exactly do you want to change? Taskbar and other icons are very easy to do, however, I haven't done any M10 files, yet.
In the manifest you need to change the name of the apk to what you are naming it. you will see a line which will have package="com.htc.skin."apkname".
So for my zombie skin example my line says "com.htc.skin.zombie"
Also to that point what ever you name it you need to navigate to the foler that holds the m10 file and change the folder to the same name or the m10 file wont be used.
jkrough0728 said:
In the manifest you need to change the name of the apk to what you are naming it. you will see a line which will have package="com.htc.skin."apkname".
So for my zombie skin example my line says "com.htc.skin.zombie"
Also to that point what ever you name it you need to navigate to the foler that holds the m10 file and change the folder to the same name or the m10 file wont be used.
Click to expand...
Click to collapse
exactly the same, boy did that drive me nutty for a few days!!
jkrough0728 said:
In the manifest you need to change the name of the apk to what you are naming it. you will see a line which will have package="com.htc.skin."apkname".
So for my zombie skin example my line says "com.htc.skin.zombie"
Also to that point what ever you name it you need to navigate to the foler that holds the m10 file and change the folder to the same name or the m10 file wont be used.
Click to expand...
Click to collapse
using apk manager are u guys decompiling using option 9 or 10 and if ur using option 10 what framework are u dragging into it?
keedog said:
using apk manager are u guys decompiling using option 9 or 10 and if ur using option 10 what framework are u dragging into it?
Click to expand...
Click to collapse
I use apktool but if your using manager it would be 9.
sent from my Evo 3D from xda app
I am trying to sync a rostering app between two devices using dropsync.
The .db files that need syncing are in the /data/data/com.blah.blah/databases directory. Using Root explorer I can change the permissions to give full rw permission to others. The two .db files will then upload to the dropsync server.
The problem is that whenever the app is opened and anything modified, the permissions change back to default and thus dropsync can't access the modified .db
Is there anyway to change this or am I wasting my time? what is the 'sticky' box option in RE?
I'm not sure precisely what "sticky" means, but it's not what you want--it doesn't involve persistence or "sticking".
You could try to make the files not owned by the app but set it so the group is the app. Make sure the group can read/write/execute, or whatever it needs. This way, the app can still use the file but won't be able to change its permissions.
Of course, it could see that it doesn't own the file and refuse to run. I'm not sure what sort of checks the program's authors implemented. This also won't work if the file is deleted and created anew--the new file would be owned by the app.
Yeah thanks for that,
I tried the ownership and group swap earlier, and am pretty sure the app re- writes the db.
Don't think is going to work.
cheers
Well its obvious that the app, when opened sets the permissions to the .db files so that they wont be usable by others. The way you describe the problem is more likely to be a file owner problem and not with the permissions. Try to set the app and the files to the same owner and see if that works. You could always make a script that would change the permissions/ownership of the file.
FYI,
The sticky bit is a special part of the permissions mask for a file or directory. When set on a directory, it tells the system to prevent anyone but a containing file's owner from deleting files in that directory. This is handy if you have a directory that's being used by multiple users on a system as scratch space as it prevents people from wiping out others' files.
For files....the behavior isn't defined.
Hope this helps,
- chris
I am trying to change a file name and icon on particular app, I tried using apk editor didn't work. Next used apktook and it decompiles fine, I change the text in res/values/strings.xml to change name and change icons out manually just using zip. The program states It recompiles and signs but doesn't create a new apk leaves in file format, when I compress to zip and rename with astro file folder gives me error stating trouble parsing this file.
Any one have a better tutorial I can follow etc. I really want to have this renamed and new icons Id even be willing to pay someone a few bucks via paypal to do it for me. That has more understanding on this issue.
I made some stupid things to my smartphone and now I am close of solving them...
My question is...Does anybody know how I can change the name of a folder from /system/priv-app/ so my device still considers the app as installed?
The app that I'm talking about is Google Services Framework and my device says it's installed but he says the app takes 8,00KB instead of 3,28MB(the size of the apk as told by Apps2SD)
Also Apps2SD seems to identify where is the app located after the folder name change but my system doesn't...
I change the file's name from "com.google.android.gsf-1" to "GoogleServicesFramework" so that the .odex file can work...
So anybody knows how should I set the permissions and owners of the folders and files so that the system finds where the .apk and .odex are located?