[Q] Need detailed help to change application icons - Sony Ericsson XPERIA X10 Mini

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

Related

Can't read Hindi Language Fonts on SGS II?

Hi all! Whenever some friends of mine update their Twitter a/c in Hindi Language Fonts, am unable to read them as they show up us empty rectangular boxes. Wasn't Gingerbread 2.3.3 supposed to support Hindi Language Fonts? Anyone knows how to fix this?
I guess I will have to add the Hindi font ttf file in the "fonts" folder in my Root> System folder. I have the droidhindi.ttf file downloaded but I don't know how to copy it to the required folder in root. It does not show sytem files when connected to a Laptop via USB. I can view the folder in Root Explorer on my phone, but how to transport the droidhindi.ttf file to the Fonts folder in the phone??
And will it work if I just add the drop the droidhindi.ttf file in the Fonts folder? Anyone who knows this??
a lot of indians are buying this phone
TheMegastar said:
I guess I will have to add the Hindi font ttf file in the "fonts" folder in my Root> System folder. I have the droidhindi.ttf file downloaded but I don't know how to copy it to the required folder in root. It does not show sytem files when connected to a Laptop via USB. I can view the folder in Root Explorer on my phone, but how to transport the droidhindi.ttf file to the Fonts folder in the phone??
And will it work if I just add the drop the droidhindi.ttf file in the Fonts folder? Anyone who knows this??
Click to expand...
Click to collapse
ok this is what you need to do...
goto systems/fonts and take a backup of DroidSansFallback.ttf
move it to computer/sdcard...but keep it safe...
now move the droidhindi.ttf to systems/fonts
rename droidhindi.ttf to DroidSansFallback.ttf
restart the browser....by killing it from task manager and relaunching...
go to a hindi site....
@pHyRe7
@woodstock_ahem : Thanks a ton for your response. In a hurry right now, will do as you posted in my first free time. Hope it works
@woodstock_ahem : Ok, got down to acting upon your advice. But the problem is that I can only view the /sdcard directory of my phone when connected to my laptop via USB cable. I cannot access any other space in the phone except the /sdcard.
I can view the root files via the Root Explorer app on my phone, so I tried to Move the DroidSansFallback.ttf from the System>Fonts folder, but when I click on the Move command, I get the message that "You cannot move System Files as they are Read Only". So the problem I'm facing is HOW to transfer the new .ttf file from my laptop to the Fonts folder in System? I can neither transport the new file from my laptop to the Fonts folder in the phone coz that folder is not accessible when connected to the laptop, nor can I move the existing DroidSansFallback.ttf file anywhere else from the Fonts folder on the phone. So what to do now?
Just a piece of info which might be useful for you : My phone has KE8 Kernel, is rooted but reverted back to original kernel to remove the yellow triangle.
TheMegastar said:
@woodstock_ahem : Ok, got down to acting upon your advice. But the problem is that I can only view the /sdcard directory of my phone when connected to my laptop via USB cable. I cannot access any other space in the phone except the /sdcard.
I can view the root files via the Root Explorer app on my phone, so I tried to Move the DroidSansFallback.ttf from the System>Fonts folder, but when I click on the Move command, I get the message that "You cannot move System Files as they are Read Only". So the problem I'm facing is HOW to transfer the new .ttf file from my laptop to the Fonts folder in System? I can neither transport the new file from my laptop to the Fonts folder in the phone coz that folder is not accessible when connected to the laptop, nor can I move the existing DroidSansFallback.ttf file anywhere else from the Fonts folder on the phone. So what to do now?
Just a piece of info which might be useful for you : My phone has KE8 Kernel, is rooted but reverted back to original kernel to remove the yellow triangle.
Click to expand...
Click to collapse
To alter any system files you need to set to R/W(read/write) if you keep it at read only you cant alter anything.(its designed as a protection)
On the top R/H conner of root explorer there is a button to set it to R/W or RO.
Hope this helps you.
Sent from my GT-I9100 using Tapatalk
To add to what @iznee has mentioned....
do the following:-
copy the droidhindi.ttf anywhere in the phone memory(after preferably creating a folder).. this doesnt need root explorer...just a file copy from the laptop should be enough... (you said you can see sdcard folder right ?... copy the file there)
i am guessing so far you have not used root explorer for anything else than browsing system files..else you wont be asking the question...
so first things first you have to provide root access to the root explorer app else you would not be able to provide it with r/w access...
install a free app superuser and give the root access allow to root explorer...
follow what @iznee has mentioned above
then follow what i advised in my first reply to this thread
@Iznee : "To alter any system files you need to set to R/W(read/write)".....this is what I had missed! Thanks a ton, your post was very helpful.
@woodstock_ahem : Thanks, Woody! Once I was able to change the option to r/w......rest was easy. Replaced the .ttf like you said. Now opening some hindi sites to test whether it works. And voila! it works! Thanks again to both of you
But one minor hiccup has occured. I've lost the Original DroidSansFallback.ttf file I'll tell you how. I had moved the original file to my sdcard>android folder. The original was a 4.5 MB file but it was showing as a .nomedia file with 0 bytes. So I thought let me move it to my Data Folder inside the Android folder from where I intended to transport the original file to my laptop, where I thought it would be safer. Till I moved the original file to my Android folder inside sdcard, the file was showing as normal (DroidSansFallback.ttf), but as soon as I moved it from there to my Data folder inside the Android folder it turned into a .nomedia file with 0 bytes! And when I moved it back to the android file it was still showing as a .nomedia file with 0 bytes.
So does this mean that Samsung is not allowing us to move the Original DroidSansFallback.ttf file outside the phone? I hope I will never need the original file as the file I replaced it with is working fine, but just in case I need it......now I don't have the original
Just as you got the droidhindi.ttf from the web you can get the lost file...you would also get it back when you update the next released firmware..or reflash ROM...plenty of ways...no big deal...this would be a learning point for you...
Sent from my GT-I9100 using XDA App
Ya, no big deal that I lost the original as the new one is working fine, so I won't miss the original. But my question was this.......does this mean that we cannot move system files of the phone outside the phone? How did the file change its filetype to .nomedia and its filesize to 0 bytes from 4.5MB?
i had not elaborated on how to copy a file from the phone memory to the computer assuming that is too simple to write about it...
i dont see any problem here...the learning point for you is..always...always create a new folder for taking backups...and not just move a file into a systems library..
this equates to dowloading a music file into c:\windows\system32\data as an example...why not have a separate folder for it..
i have taken a copy of DroidSanFallback.ttf into a new folder created in both Sdcard phone folder as well as into a folder created into external_sd (which is a separate physical sd card)...
can move it back and forth to/from computer without issues...
this will work for any kind of file..any extension...
so there is no issue here...

[Q] theme skinning help???

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

Creating a CWM zip file

I have some changes that I like to make to the Settings.apk, Systemui.apk, and framework-res.apk. Typically, I just pull these files from the Rom I'm using, edit the images in the drawable folders, and then copy them into the system files on my phone. I'd like to be able to create a zip file to do this for me. It looks like I can take someone elses update package and edit the "update script" file to do this. Is it that simple or is there more to it? What other files are important to creating an updater zip.
Thanks
Sent from my SAMSUNG-SGH-I777 using xda premium
BigMc71 said:
I have some changes that I like to make to the Settings.apk, Systemui.apk, and framework-res.apk. Typically, I just pull these files from the Rom I'm using, edit the images in the drawable folders, and then copy them into the system files on my phone. I'd like to be able to create a zip file to do this for me. It looks like I can take someone elses update package and edit the "update script" file to do this. Is it that simple or is there more to it? What other files are important to creating an updater zip.
Thanks
Sent from my SAMSUNG-SGH-I777 using xda premium
Click to expand...
Click to collapse
Just head over to perkas files stash (google it) and look for a empty system cwm.
Now you just have to make folders in this zip and add your files. example you want framework-res.apk and systemui.apk flashed.
So open the cwm zip and add a folders called app and a folder called framework.
The zip will be/system and so with the folders it creates /system/framework/framework-res.apk and system/app/SystemUI.apk. Etc
This empty system cwm should have all the folders you need for the zip

[Q] How should I de/recompile a system app? What did I do wrong?

Hi,
So the situations is like this:
Just got a new LG Nexus 4, NFC enabled, GREAT!!!!
But then I start using it, and the NFC sound (everytime the phone reads a nfc-tag it makes an sound) annoys me beyond belief.
So I start looking around, it seems there's no solution, except recompiling the app.
So I learn how to compile an app (noob here), using this guide: http://forum.xda-developers.com/showthread.php?t=1860115
I'm up to the point where my apk is decompiled, and I have modified the sound files, located in my decompiled files folder respectively at res/raw/start.ogg & res/raw/end.ogg.
I modded the files using audacity, lowering the volume to zero, used them to replace the original .ogg files. The file size is a bit smaller as the original ones (1Kb difference).
Next I use the recompile command: apktool b decompiled_apk_folder_with_modified_files modded_apk_file.apk
So now I have the new nfc apk file, called NfcNci.apk, with which I replace the original file in /system/app.
Next up I reboot my phone into recovery, wipe all cache and dalvik cache, and reboot again.
First thing that pops up on my screen is a force-close message, saying that the nfc-service force closed.
Anyone who can tell me what I did wrong? Or how I can fix this?
Attached are: my decompiled-files-folder (compressed to zip)
the original NfcNci.apk file
my modded NfcNci.apk file which causes the FC's.
Any help will be greatly appreciated!!!!
S.
Looks like you're still on 4.2
The latest NfcNci.apk has some more files.
And your apk is missing the META-INF folder.
I guess that this is the problem.
But you should use "adb logcat" to ensure we're on the right track.
Micky
1 thing i would recomend is not using the actual apk you just built. instead, open your new apk with a file manager such as 7zip and remove your newly compiled files out of it, then put them into the original apk from your rom using 7zip as well! thus keeping the apk's original signature
try to copy the least amount of files from one to another, so to be safe only pull out your new .ogg files, then put them into your original apk! hope this helps
ldrifta said:
1 thing i would recomend is not using the actual apk you just built. instead, open your new apk with a file manager such as 7zip and remove your newly compiled files out of it, then put them into the original apk from your rom using 7zip as well! thus keeping the apk's original signature
try to copy the least amount of files from one to another, so to be safe only pull out your new .ogg files, then put them into your original apk! hope this helps
Click to expand...
Click to collapse
Hi, I tried this, installed 7zip, and double clicked the original apk, I opende the res/raw/ directory, and only copied the files I was using: start.ogg & end.ogg. Then I close 7zip, and send the file to my phone. But as soon as I it them to /system/apps on my phone, and reboot to recovery, wiping the dalvik cache. I get FC's on reboot (NFC-service has FC'd).
Any reasons for this?
Thanks for the help, both of you!
BTW: I'm on Android 4.3 JB

how to create flashable.zip for any system file modded ???

hello everybody
a lot of times I find system modded files and I wanna use them but the developers often offer the file is not flashable so I have to replace the older and set the permissions
but in all times I did that , the system sent an error and was damaged
so I wanna learn how to make a flashable.zip for any system file to be installed to its location and set the permissions
please help me
thanks
engnajjar said:
hello everybody
a lot of times I find system modded files and I wanna use them but the developers often offer the file is not flashable so I have to replace the older and set the permissions
but in all times I did that , the system sent an error and was damaged
so I wanna learn how to make a flashable.zip for any system file to be installed to its location and set the permissions
please help me
thanks
Click to expand...
Click to collapse
Its quite simple. Download a superuser.zip file that is for your device. Extract it. You will find two folders, System and Meta-Inf. Open System folder and you will find a folder called app inside it. Open it and delete the superuser.apk file and copy your modded system file into it.
For eg., Let the file be Gallery2.apk .
Now open META-INF folder -> com -> google -> android. You will find a file called updater-Script. You have to edit that file. There will be a line, where the system mount command is given. Do not do anything until that line. Delete the lines below it and enter these lines.
delete("/system/app/Gallery2.apk");
# [here Gallery2 is the name of the apk file you copied]
package_extract_dir("system","/system");
ui_print("Installation complete!");
Now rezip the folders together and you have your own flashable zip to install modded system files.
Hit thanks if this helped! :laugh:
PM me if you require further help.
dev27 said:
Its quite simple. Download a superuser.zip file that is for your device. Extract it. You will find two folders, System and Meta-Inf. Open System folder and you will find a folder called app inside it. Open it and delete the superuser.apk file and copy your modded system file into it.
For eg., Let the file be Gallery2.apk .
Now open META-INF folder -> com -> google -> android. You will find a file called updater-Script. You have to edit that file. There will be a line, where the system mount command is given. Do not do anything until that line. Delete the lines below it and enter these lines.
delete("/system/app/Gallery2.apk");
# [here Gallery2 is the name of the apk file you copied]
package_extract_dir("system","/system");
ui_print("Installation complete!");
Now rezip the folders together and you have your own flashable zip to install modded system files.
Hit thanks if this helped! :laugh:
PM me if you require further help.
Click to expand...
Click to collapse
thanks so much it works well
engnajjar said:
thanks so much it works well
Click to expand...
Click to collapse
Glad that I could help. :good:

Categories

Resources