[How-To] Edit Mode10 Files for the MT4GS - step-by-step - T-Mobile myTouch 4G Slide

Return to Contents Page - doubleshot Developers Reference
----
Part 1: Custom Sense Lockring on the MT4GS - easy step-by-step.
Part 2: Edit .9.png files for the MT4GS - step-by-step.
Part 3: This thread.
--------
So in Part 1, you were introduced to working with graphics in a very in-depth and explanatory way. Even simple things like copy and past were over-exaggeratedly described. We can call Part 1 a beginners tutorial.
In Part 2, we built on what we learned in Part 1. Some concepts were expected to be known, and we covered a lot more but didn't describe to death obvious things during this tutorial. We can call Part 2 an intermediate level tutorial.
For Part 3 we will be laying out an advanced level tutorial. It is assumed you have read and learned what was taught in the first two parts. You are expected to be familiar with de-compiling and re-compiling .apk files at this point.
We will be building on that knowledge here, but unless you have learned what was taught previously ( or already have that knowledge ) this tutorial may be confusing or difficult to follow.
After working through Part 3, you will be able to explore on your own what you can do with the skills you have learned in this series.
--------
Let me say right up front - this seems like a whole lot of work for one tiny little change.
This is a long and in-depth guide, but once you know how to do it... the whole edit described in the tutorial will only take 5-10 minutes to do.
( Obviously longer on files with more graphics, but for just this? Not more then a few minutes )
The point of this is not to change something amazing - simply to learn how to work with .m10 files - please do not be let down by what we edit or you are using this guide for the wrong reason.
--------
For the final installment of these graphics tutorials for Android on the MT4GS, we will be covering .m10 ( mode 10 ) files - touching on what they are, explaining where to find them, and also how to work with them.
You can use the other two tutorials to edit all the graphics you can find on the device, and then still be left with stuff that displays in the old pre-edited form.
What gives?
The answer lies with .m10 files. These are sneaky little files that are hidden, and even if you de-compile an app you won't be able to play with them - they are still scrambled. The M10 Editor tool will solve this problem, and this is what we are going to learn how to use.
* - Once again, this guide is written for a Windows XP machine. If your environment is different please adjust accordingly.
You don't require much to work with .m10 graphics files, so let's take a look at what you need.
What you need:
*1 - Android SDK installed
*2 - Java JDK installed.
3 - Microsoft .net Framework 4.0
4 - M10 Editor
5 - Photoshop ( or equivalent - directions for photoshop ) installed and ready.
6 - Rosie.apk from the Sense ROM you will be editing it for.
* - The Android SDK/Java JDK is an optional install, but to get the most out of the M10 tools you will want to have them installed. See the M10 Editor thread for other applications of the tool.
Besides, if you've made it this far, you really should have both development packages installed anyway.
--------
First thing is to install the Android SDK and Java JDK - both actions are outside the scope of this guide but well documented all over XDA. Here is a post I wrote on installing to a Windows XP machine
This guide will pick up assuming both the Android SDK and the Java JDK are installed.
This guide also assumes that M10 Editor is installed. Please see the M10 Editor thread for the tool if you have trouble in this area.
( ... and of course, that you have Photoshop installed and ready...or another graphics program of your choice - but instructions are for Photoshop. )
--------
Note:
The reason why I listed the Android SDK and Java JDK is because:
- You can't use the Android SDK without the Java JDK.
- The M10 Editor allows you to use ADB functions.
- The M10 Editor allows you to zipalign apk files.
People may want to use the M10 Editor to push their apk file to the device as a shortcut to quick testing of their changes.
You can use the M10 Editor without the Android SDK and Java JDK - but you should have them to use the Zipalign and ADB functions.
Your (existing) .apk file will work without zipaligning it, and you don't need adb to put the file on your device for testing - but they are both helpful.
--------
Preparation: Setup.
Let's set up our dev environment.
1 - Make a new folder on your desktop called "RosieEdits"
2 - Place your Rosie.apk file in the "RosieEdits" folder.
3 - Open the "RosieEdits" folder, and create two new folders in it. Call one "RosieOriginal" and the other one "RosieNew".
4 - Copy Rosie.apk and paste her into each folder so you have 3 copies, one in each folder.
We are now done with our .apk file for the moment, and have our project folders set up. Now we need to configure the M10 Editor.
( skip the configuration of the M10 Editor if you do not have ADB and Zipalign setup on your computer. I recommend reading it either way though.)
Open the M10 Editor.
You will see six tabs at the top of the interface, labelled:
Start | m10 Files | Editor | Log | Changelog | About
We will only be working with the first three:
Start | m10 Files | Editor
To set up the M10 Tool - in the Start tab do the following:
1 - Under 'Paths' locate 'Zipalign' and click on 'Choose' all the way on the right hand side.
Then either Navigate to your:
- apk_manager_4.9 directory and locate 'zipalign.exe' in the 'other' folder
-OR-
- the 'Tools' folder in the Android SDK directory and locate 'zipalign.exe'
2 - Under 'Paths' locate 'ADB' and click on 'Choose' all the way on the right hand side.
Then navigate to the 'platform-tools' folder in your Android SDK directory and locate 'adb.exe'
Once you have added both of these tools to the M10 Editor paths we are ready to proceed.
--------
Note: Even more important then working with apk_manager_4.9, you want to make sure you do not close the M10 Editor until you are completely done with the .apk file you are working with.
If you do, you will lose all of your changes and have to start over.
--------
Part 1: De-Compile.
This is a two-step de-compile process. Don't worry, it's not as scary as it sounds.
By now you should be familiar with using apk_manager_4.9 to de-compile your apps, and using the M10 Editor everything is handled in a nice little program window for you.
So - let's see how to go about doing this.
Part 1-A: De-Compile .apk
Okay, unlike the prior tutorials where you can get away with just diving into your work, we are going to preface this with re-booting your computer.
It is important that you don't really do anything else with it after you boot. Don't sign in to any messenger apps, open any programs you don't have to, or generally put anything in RAM that doesn't have to be.
You really don't want your computer to make a mistake while you do this - and by keeping everything from running that we don't need to use we can help prevent this from happening.
So now that you have rebooted your computer fresh, let it sit for a minute, and have a clean and ready machine to work on, let's get to it.
1 - Open the M10 Editor.
2 - Under the 'Start' tab, in the 'm10-Files' field, you will see 3 things:
- Load File button
- Save File button ( greyed out )
- Check box with a check in it for 'Zipalign APK'
3 - Click the 'Load File' button and navigate to the 'RosieNew' folder. Load Rosie.apk
* - Be patient - this could take a while depending on your system.
You will see a progress bar pop up with blue progress bars, when it's finished they will turn green and it will say 'Loading Done!'
4 - Click 'Close' on the progress bar when the operation completes.
5 - Stop.
--------
We have now de-compiled the Rosie.apk file into the M10 Editor. However, we still have not de-compiled the actual .m10 files we are going to work with.
To do that, proceed to Part 1-B below.
--------
Part 1-B: De-Compile .m10 Files
1 - Click the 'm10 Files' tab. You will see quite the list of files in the window.
At the bottom of the M10 Editor program window you will see the following buttons:
Decompile/Show | Decompile all | Refresh selected | Check file | Check all files
... and a check box that says 'Decode Images' next to it.
Take a minute to browse through the list. Don't try to do anything to it yet, just look it over and kind of familiarize yourself with it. When you are ready move on to step two.
2 - Find and select the line that ends with:
Code:
...\M10EDITOR\Rosie\assets\port\scenes\Rosie_workspace.m10
The beginning of the line was left out because that will be unique to each computer. You can find this line near the very bottom of the list.
Note: - This will be the portrait mode Rosie stuff - a very similar line further up will be for landscape.
3 - Once you have selected this line, at the bottom of the 'M10 Editor' window click the check box for 'Decode Images' and then click the button that says 'Decompile/Show'
It will then ask you if you would like to do this, click 'Yes'
You will briefly see a progress bar, and then the M10 Editor will switch to the next tab called 'Editor'
4 - Stop.
--------
We have now successfully de-compiled the .m10 file we are going to be working with.
So far, not bad, huh? That two-step de-compile process wasn't as bad as it seemed before you started after all.
Next up we will be working with the de-compiled .apk and the .m10 files we now have available to us.
--------
Part 2: Finding & Accessing the .m10 Graphics
You should be in the "Editor" tab of the M10 Editor tool.
You now see the top level of a tree called 'Rosie_workspace.m10'
Do the following:
1-A: Expand 'Rosie_workspace.m10'
1-B: Expand '0x7c8bed89' ( may be different for different Rosie.apk versions )
1-C: Expand 'Textures'
1-D: Click the first 'Texture' under the 'Textures' heading.
You will now see a picture appear on the right-hand side of the M10 Editor program window.
4-E: 'Right-click' on the picture in the right-hand side of the M10 Editor program window. Select 'Show in Explorer'
You will now have a windows explorer window open that shows all the files in the de-compiled Rosie_workspace folder.
-
Important: Do not close the M10 Editor while you are working in the explorer window.
-
Now that we have the de-compiled Rosie_workspace.m10 file open as a folder in our explorer window, click on the 'View' in the file menu at the top of the window, and select 'Thumbnails'.
You can now browse through this folder and quite easily see what graphics files you can find.
We will be looking for 3 specifically:
1 - 0x000000a9.dat
2 - 0x00000063.dat
3 - 0x0000019e.dat
Okay - depending on what version of Rosie.apk you have for the MT4GS - they could be differently named.
To make it easy, there are only four blue graphics files you will see in this folder.
Ignore the one that looks like a blue pencil on a blue pad of paper - and just work with the three other ones that are solid squares.
--------
Part 3: Coloring the Graphics
This part is easy, just open one of the solid-blue square graphics into photoshop and change the Hue the way I showed you in the previous tutorials.
( Image -> Adjustments -> Hue/Saturation )
Set your desired hue, but make it the same for all 3 of the graphics.
For the sake of the tutorial, just make sure the Hue window is set to master and slide the hue slider all the way to the right.
The text box over the Hue slider should say +180, so click OK and then save the image ( don't change the extension or anything - just save. ).
Do this for each of the three solid-blue square graphics, but make sure to do them one at a time, saving and closing each one before moving on to the next.
Once done, move on to Part 4.
( You should be able to actually edit the graphics well enough at this point that this description is sufficient. If not, go back to part 1 for a more detailed explanation. )
--------
Part 4: Saving & Zipping the .apk
Okay - here we are, this is the last thing we have to do.
If at any time you closed the M10 Editor program window, then you have lost all of your changes and you will have to start over.
So the first thing you have to do is close the explorer window you have been working from. NOT the M10 Editor program window, just the explorer window it opened.
Once this is done, make the M10 Editor window your primary focus. You should still be on the 'Editor' tab.
Note: You will not see the changes you have made in the right-hand side of the M10 Editor program window at this time.
Click on the 'Start' tab.
Once back on the 'Start' tab, make sure zipalign is checked if you have it installed, if not just click 'Save File'
A dialog box will pop up, your normal Microsoft save window. Make sure the filename and filetype are correct, and then click 'Save'
This could be quick, or take a few minutes. Just have patience.
Once done - you may now close the M10 Editor program window.
--------
That's it - we're done.
The only thing left is to test our change, so install the Rosie.apk file on your Android.
After you get it booted up again, open the app drawer. Make sure you are in PORTRAIT mode.
Okay, now, when you touch the little picture of a house in the lower-right hand corner of the screen to return to your home screen, pay attention to the color of the highlight on the button when you press it.
This is what we changed.
( Anti-climatic, I know, but that's what it was. )
To make up for that, I will let you figure out what else was graphically changed by this edit.
Request: Please do not post the answer below, as this is part of the skill-set this tutorial is aiming to teach. Let others learn as you are.
Honestly, out of the .m10 edits we could have done, this was the easiest and least complicated to use as an example...
... and this was only a portrait mode edit - so you can see now that there is more to check on doing to make this a full change. The important thing here is not the change, but how to do it.
--------
Now, something to note is that you do not necessarily have to change the .m10 file in the .apk file.
What you can do is de-compile an app ( maybe using apk_tool_4.9 ) and then you can use the .m10 editor to edit the .m10 files directly in the de-compiled app folder.
They will be in the 'Assets' folder of a de-compiled app if it has .m10 files.
While this tutorial was focused on a graphical edit, when it comes to .m10 files graphics are only a very small part of what you can change.
--------
Conclusion & Thoughts:
In this tutorial you learned how to use the M10 Editor tool and how to work with .m10 files.
Now you can hunt down and find all those graphics that you thought you changed but seemed to keep their pre-changed state.
As graphics are only a small part of what .m10 files hold, there is much more waiting for you as you learn how to do more with your Android system.
You may not want to get into coding and just stick with graphics - that's cool too.
Either way, this series of three tutorials should give you everything you need to get a solid start on editing your Android system beyond the user settings presented to you within the operating system.
Don't forget to go back to the M10 Editor thread for the tool and thank the author for making it available to you.
Happy modding!

Related

Tutotrial: How to add Category Folder Quick Links to your Home Tab.

I have been wanting to add folders for some time to my quicklinks. I researched and researched.
I came across this thread:
http://forum.xda-developers.com/showthread.php?t=576232
However it only dealt with a few categories.
So I have created new .lnk files and asscociated them with .png folder icons and created the necessary registry files.
This will work if you have 9, 12 or 16 Quick Links. For 20 Quick Links I think it will still work but you have to assign the Quick Links yourself.
Just unzip the attached file, read the read me and copy the Programs Folder to your phone and inport the enclosed registry entry too. Reset.
great idea! i wondered why 20 quicklinks are enough for all people here. i just have installed a few apps and games and my quicklink bar is full!
are you going to make the quicklinks for the 20 icon bar?
Great work, thanks.
fruchtfliege said:
great idea! i wondered why 20 quicklinks are enough for all people here. i just have installed a few apps and games and my quicklink bar is full!
are you going to make the quicklinks for the 20 icon bar?
Click to expand...
Click to collapse
If 25 links is enough for you? See this thread, from the same guy who created the 20 links on Home tab.
thanks, i've already seen the 25 link thread! i think it will be more flexible with folder links to group games etc. but maybe i'm going to use both tweaks:
normal links for most important apps and folder links for games, system information and so on...
tboy2000 said:
I have been wanting to add folders for some time to my quicklinks. I researched and researched.
I came across this thread:
http://forum.xda-developers.com/showthread.php?t=576232
However it only dealt with a few categories.
So I have created new .lnk files and asscociated them with .png folder icons and created the necessary registry files.
This will work if you have 9, 12 or 16 Quick Links. For 20 Quick Links I think it will still work but you have to assign the Quick Links yourself.
Just unzip the attached file, read the read me and copy the Programs Folder to your phone and inport the enclosed registry entry too. Reset.
Click to expand...
Click to collapse
Bit of a noob question but why can't you just create links to the default folders and then run these. I tried this but it always says fails to open "games application".
tboy2000 said:
I have been wanting to add folders for some time to my quicklinks. I researched and researched.
I came across this thread:
http://forum.xda-developers.com/showthread.php?t=576232
However it only dealt with a few categories.
So I have created new .lnk files and asscociated them with .png folder icons and created the necessary registry files.
This will work if you have 9, 12 or 16 Quick Links. For 20 Quick Links I think it will still work but you have to assign the Quick Links yourself.
Just unzip the attached file, read the read me and copy the Programs Folder to your phone and inport the enclosed registry entry too. Reset.
Click to expand...
Click to collapse
Just to add to my last, I have an HD with 2.5.1922011 Nrgz ROM but can't seem to import the registry settings. Have used TRE and it states that registry import was successful but to no avail. I have tried hand modifying the entries but still not working. Am I missing something???
Not working
Changed the registry to my portuguese ROM and nothing!
Maybe this only works on WWE roms because of the registry names. If importing the registry does not work for you, try just adding the folders manually to your quick links in the normal way you would add apps. just look fit the folder.link file in the list. let me know.
tboy2000 said:
Maybe this only works on WWE roms because of the registry names. If importing the registry does not work for you, try just adding the folders manually to your quick links in the normal way you would add apps. just look fit the folder.link file in the list. let me know.
Click to expand...
Click to collapse
Hi, in attach is an export of my regfile.
I have put in "sistema" the system.lnk and system.png and renamed it to Portuguese: sistema.lnk and sistema.png
Even so when i click in the home tab in icon (that shows your png file) it says,
" Its not possible to open the file "sistema". Or is not signed with a certificate or cannot find the components.
Thnaks
toyjeep said:
Hi, in attach is an export of my regfile.
I have put in "sistema" the system.lnk and system.png and renamed it to Portuguese: sistema.lnk and sistema.png
Even so when i click in the home tab in icon (that shows your png file) it says,
" Its not possible to open the file "sistema". Or is not signed with a certificate or cannot find the components.
Thnaks
Click to expand...
Click to collapse
This is exactly what happens to me and my ROM is WWE. I can link the folder but it will not open. Tried manually editing the registry but without success. There must be another step but for the life of me I can't figure it out and it's driving me crazy!! This should be simple but HTC make it extremely difficult.
sandymac said:
This is exactly what happens to me and my ROM is WWE. I can link the folder but it will not open. Tried manually editing the registry but without success. There must be another step but for the life of me I can't figure it out and it's driving me crazy!! This should be simple but HTC make it extremely difficult.
Click to expand...
Click to collapse
Bump. Has anyone actually succeeded in doing as instructed and managed to create quick links with folders?
16 Shortcuts...for 25!!
Hi,
i am newbie with my HD2. I did the steps for 16 Short cuts, but it didn't worked out as it should because i have 25 Quick links. Now i have nice folder icons in my Quick links but they don't work!!
Could some one help me with a more detailed how to!!!!
Thanks in adv.
foka
another approach
Hi!
I had the very same problem.
The recommendations given here, I use too, but I remembered a small program usually used for maintaining a directory organisation with PortableApps on the PC. It just uses its own name (like 'games.exe') extracts the '.exe' out of it and opens the reaining 'games' as a directory. I found this was a brute, but very useful solution to the problem. So finally I did that app for mobile devices on my own. It is written in C#. Prerequisites are compact framework 3.5.
In my opinion its only drawback is, that it uses the file-explorer as a platform to view the directory. I would like the HTC view with icons more, but I don't know, how to call the required code to do so.
Personally I have installed 4 instances of the program (240kb) on the storage-card and created the links to them in the startmenu-folder. This works fine with directlinks.
Note: Only subfolders in /windows/startmenu/programs are opened! For other needs the source code is easily changeable.
Here comes a short description:
----------------------------------------------------------------
Prerequisites: Microsoft Compact Framework 3.5.
Install and usage description:
MobDir.Cab installs the file MobDir.exe into your 'prorams' directory.
Since MobDir reads in its very own name to function, it is of utmost importance to RENAME MobDir.exe to a directory name, that fits for your environment!
MobDir starts a File-Explorer directly in a directory that resides in your /windows/start menu/programs
directory.
e.g.: There is a dir called 'games' in your 'programs' directory of 'start menu', that contains all the links to your games on the device. Rename MobDir.Exe accordingly into 'games.exe'. If the program is already installed in your 'start menu/programs' directory, there is not much more to do for you. Simply select games.exe in your directlinks. There you have a directory-icon labeled 'games' then which, when clicked, opens the file-explorer in your games directory. If games.exe resides on your starage card, you have to create a games.lnk into the 'start menu/programs' directory first.
Of course, if you have more subdirectories in your 'start menu/programs' folder, which is most likely the case ('apps', 'tools' for instance), just copy the file MobDir.Exe under these names to your device. In this example as apps.exe and tools.exe. The rest is the same as written beforehand.
Sounds more complicated as it is, just try it, it's simple.
Note: The way it works can be followed by watching the source code. It first reads in its own filename (e.g.: 'games.exe'). Then it extracts the '.exe' out of the name (leaving a 'games'). Right after it looks for your current localized '/windows/start menu/programs/' path and adds the string to it, which we extracted beforehand. So we have a path 'windows/start menu/programs/games'. Finally the file-explorer is called with that path as a parameter.
-----------------------------------------------------------
Here is the source-code:
Code:
using System;
namespace MobDir
{
static class Program
{
[MTAThread]
static void Main()
{
string cFileNameSelf="Use this Base-Code as a sample. Written in '2010 bei D.Bos";
try
{
//read out own filename and strip out ".EXE"
cFileNameSelf = AppDomain.CurrentDomain.FriendlyName.ToUpper().Replace(".EXE", "");
//start File-Explorer, given the path to /windows/startmenu/programs/ + <NameSelf>
System.Diagnostics.Process p = System.Diagnostics.Process.Start("fexplore.exe", ReadSpecialFolder("Programs") + "\\" + cFileNameSelf + "\\");
p.WaitForExit();
}
catch (System.Exception e)
{
System.Windows.Forms.MessageBox.Show("Problem with <" + cFileNameSelf + ">!\n" + e.Message);
}
}
public static string ReadSpecialFolder(string cVarName)
{
return Environment.GetFolderPath((Environment.SpecialFolder)Enum.Parse(typeof(Environment.SpecialFolder), cVarName, true));
}
}
}
-----------------------------------------------------------
And finally: The file MobDir.Cab is attached to this posting.
Hopefully you can make some use of it.
Dietmar

APK Batch Rename Tool (for Windows and Linux)

Hi guys!
This is a quick tool I jotted together for myself in the past couple days and found it very useful. So I decided to clean it up and share it. Hope you will like it! Do comment and ask!
APK Batch Rename Tool
* for Windows and Linux for now.
APK Batch Rename Tool recursively crawls input folder and all of its subfolders looking for Android Package files (.apk's). It reads Label and Version info from apk's found and creates a copy for each apk under the output folder but using the Label and Version info acquired.
For example a com.example.hw.apk will make Hello World! 1.21.apk provided that the label inside the package was set to Hello World! and version is 1.21.
The old and the new apk files are 100% the same in terms of content and are unchanged. Only the new copies are given new filenames. Input files are left completely intact.
Why?
Have you ever wondered what are your 1500+ apk files with wierd names nested to different wierd folders on your harddrive? Have you ever wanted to find an app but you were unable to because it had some undescriptive javaish name that made no sense reflected no version and your apps were swept across a hundred junk folders anyway? Then APK Batch Rename is the tool for you! And me!
APK Batch Rename will set a human readable name for all your Android apps, and drop such a copy into a folder. You will finally be able to browse them, sort them alphabetically and be able to pick from versions available.
How?
1. Copy all your apk files (or folders with apk files in them) into the input folder. You may copy folders of any depth. APK Batch Rename Tool will recurse all subfolders of the input folder anyway.
2. Hit or click ApkBatchRename.bat . (For Linux users it's: apkbatchrename, or on a terminal enter: ./apkbatchrename ) Wait until it finishes the job.
3. Find your freshly named files in the output folder.
Simple as that!
Have fun! & Comment!
phsorx
great work, just like reading mp3 tag then rename to "song - artist.mp3"
thanks!
Cool. I use to do it manually. Time saver app.
Thanks.
This is awesome! Thank you very much, situation you described in first post is just like mine, I find your tool very useful!
Folks,
Let me join you crediting phsorx's job, that app is just great!
Thanks and congrats!
Very cool, Works well. Always wanted to do this but was too lazy to try aapt.
I just checked:
aapt said:
badging Print the label and icon for the app declared in APK.
Click to expand...
Click to collapse
Code:
> aapt d badging Talk.apk
[B]package: name='com.google.android.talk' [/B]versionCode='130' [B]versionName[/B]='1.3'
sdkVersion:'8'
targetSdkVersion:'8'
uses-permission: **truncated***
application: [B]label='Talk'[/B] icon='res/drawable-hdpi/ic_launcher_google_talk.png'
uses-feature:'android.hardware.touchscreen'
main
other-activities
search
other-receivers
supports-screens: 'small' 'normal' 'large'
locales: '--_--' 'es' 'es_US'
densities: '160' '240'
I'll definitely use your script but with a small change to show the package name as well as its valuable for when you need to uninstall the package.
i.e label_packagename(version).apk -> Talk_com.google.android.talk(1.3).apk
Attached a slightly modified batch file and screenshot
For single file one-off renames (right-click->open with->rename single) you can use the script here.
De jo! Honfitars. Hajra Magyarok!
Customizable naming planned in future version
britoso said:
Very cool, Works well. Always wanted to do this but was too lazy to try appt.
i.e label_packagename(version).apk -> Talk_com.google.android.talk(1.3).apk
Click to expand...
Click to collapse
Hi Britoso,
Yeah! That's a neat way to do it too!
Eventually I want to make naming and spacing fully customizable! Including what attributes to pick (name, label, versionName) to constitute the filename, and what separators (_,-,(,),space) should go where.
In the howto.txt I have a little road-map for the project. Will add customizable naming too.
Will keep you guys posted.
EOF
phsorx
Ps: Anyone who has another naming suggestion drop a post! I'd be interested.
great job...bravo..
thanks
Very nice tool, thanks for sharing this .
Using it with britoso's edited script.
Edit: I would appreciate it if a log of the conversion would be saved in a \logs\ subfolder, so I can check which files were not converted properly and see if I have to do those manually.
Handy ! Thanks...
deleted
For one-off renames you can use the below batch file.
1) create the below batch file in the same folder as apkrename.bat (its attached too)
Name: rename-single.bat (change this if you want)
content:
Code:
cd "C:\change_me\ApkRename\"
apkrename.bat %1 %~dp1
Change the path(change_me) as needed.
2)Associate it with apks by right clicking on the apk and choosing "choose default program", browse and select the batch file "rename-single.bat".
Uncheck "make this the default operation"
Screenshot and batch file attached. Enjoy.
update:
-12/8 uploaded a new version that fixed a bug involving long path names with spaces.
Also added a check for success and then delete the original apk. (backup your apks just in case).
Remember to set the path to the ApkRename folder in rename_single.bat once before using it.
Really gd job )
APK Batch Rename Tool for Linux is on the way
luvgirl12345 said:
would like a linux version...
Click to expand...
Click to collapse
Hi luvgirl12345,
The Linux port is on the way & will be posted here soon!
Actually, the Windows release is running on win32 ports of a few common Linux tools. And that's so, because I am lazy. Having Linux's much better support for shell scripting plus the same tool set always at hand, porting is a breeze.
Ciao,
phsorx
Sounds very useful, thank you!
Looks nice for massive apk renaming.
Found a similar tool called APKInfo some month ago which i am using for single apk files for a while now.
But finally something for batch renaming.
Thanks
your the man!, works like a charm. Thanks!
Any plans for making an Android version of this to run on our devices?
Future plans for an on-phone version of the APK Rename Tool
del4 said:
Any plans for making an Android version of this to run on our devices?
Click to expand...
Click to collapse
Yes! Certainly. Its in the plans.
But firstly there are a few things to be fixed on the desktop version first. See road map section of the howto.txt file in the archive. The most burning issue is the so called overwrite issue that I want to be sorted out next. Say you have two copies of the same app (same name, label, versionName) but one of them has a patch against it (because its been modded by a reverser) than one of the copies will overwrite the other (ApkRename 1.10).
Secondly on a mobile device's SD card there is usually less space than on a desktop's hard drive. This implies that APK Renamer will actually have to rename the files in place instead of creating a copy of each in a separate folder. Or at least it will need to figure out the empty space left on the device, and if its not enough to hold the copies, it should offer in-place renaming instead. Not a lot of logic to add but still...
Having all the outstanding questions be figured out on the desktop still, will allow me to implement a more established version for the phone right from start. But hold still its not going to take very long
Bests,
phsorx

[Q] Cannot access registry anymore after accentcolor change

Hey there,
I got a Samsung Omnia 7 with Telekom Branding and a serious problem. I cannot access the registry of my phone anymore with any tool. WP7 Root tools and the registry editor from TouchXperience keeps crashing.
What I been doing is trying to add a new accent color.
I first went to [HKEY_LOCAL_MACHINE\ControlPanel\Themes] and then in the folder which contains the theme names. I have created there a correct Dword entry and called the name "grau".
Well, then I switched into [HKEY_LOCAL_MACHINE\ControlPanel\Themes\0\Accents] and wanted to add there another accent color with the index number 11. I was looking for the hex values on my PC while my phone screen got locked.
After unlocking it again, I couldnt access any of the tools anymore.
Also when I go into the control panel -> design (where you can choose light/dark background and accent color) it just kicks me out of the menu.
I dont know what I should do, I need something which lets me access the registry somehow or an app which could remove the key...
Any help is greatly appreciated
You can do write-only registry operations in a few ways, but one of the easiest is to use provxml. Download the Interop Unlock XAP from the Dev&Hacking sub-forum and open it in 7-zip (the built-in Windows ZIP explorer won't work for this). There's a .. folder. Navigate it up to ..\..\..\..\.. or so, then there's a provxml folder. Open it, and there's a file inside. Edit that file. It'll have some registry write commands in an xml format (wap-provisioning, you can read about it on MSDN if you want). Put the registry commands you want into the file and save it back into the XAP archive. Then, follow the normal steps for interop-unlock on a Samsung phone, except don't install the original app (deploy your modified version). This will process the provxml and make the registry changes.
Note: provxml can be used to delete registry values as well as create or modify them. This is a great way to undo partial jobs like adding a new theme that isn't supposed to be there.
Thanks a lot for your reply.
It worked out. I removed all those broken keys.
I had done loads of registry changes and a bunch of tweaks for the phone, at the end I did a hard reset.
I'll wait for tools the next time

[MOD] Custom S Note template

Hi folks.
I don't quite like any of the provided templates in S notes. And frankly I think Samsung should allow us to create templates. Anyways...
I have been searching quite a while for this but could not find a suitable solution. Hence, I decided to check it out myself.
Basically, it's pretty simple, replacing files within an apk. Not sure if this has been explored before though..
Requirement:
1) Rooted device with any file explorer to read/write system files
2) WinRAR
Steps:
1) Create a template.
Simple create a blank note "blank.snb" that you would like to use as a template. You can have your required background, pattern, color, etc. Save it.
2) Copy out this "blank.snb" into your PC. Notes location on device is "\sdcard\S Note" internal storage.
3) Copy out S notes APK into your PC. Location: "\system\app\Snote_wxga.apk"
IMPORTANT: Make extra copies of this apk, in case the one you're editing screws up!
4) Rename the "Snote_wxga.apk" to "Snote_wxga.rar" and open it with winRAR.
5) In winRAR, browse to "\assets\templates" and delete "magazine.snb" - more info on this below
6) Rename the "blank.snb" from step (2) into "magazine.snb"
7) Drag this new "magazine.snb" into winRAR location "\assets\templates" of "Snote_wxga.rar". Close winRAR.
Your file "Snote_wxga.rar" should now be updated.
8) Rename back "Snote_wxga.rar" to "Snote_wxga.apk"
9) Copy this "Snote_wxga.apk" back into "\system\app\" of your device.
NOTE: Your device may restart in this process.
10) Restart your device if it already hasn't.
11) Open your Snotes. Your "Magazine" template will now be your custom template that you created.
Notes:
i) I tried adding a new snb into the APK but that was not registered as a new template. This is why I had to replace an existing template with my custom one. I happen to choose "Magazine". I believe others should work also. I did not experiment replacing more files.
ii) The thumbnail does not change though. It still has the magazine thumbnail. Not a major issue for me as I always pre-select my template when I create new notes. For those who have any ideas to change this, pls do share.
iii) This little mod worked for me and I didn't find time to explore further as this meet my needs. I do not take responsibility if your device decides to misbehave. So do remember to backup the "Snote_wxga.apk", or better still, perform a nandroid backup.
Cheers! :good:
Thank you for this tip. I'll try later when I'm at my computer. Could you upload some templates you made?
dsp0704 said:
Thank you for this tip. I'll try later when I'm at my computer. Could you upload some templates you made?
Click to expand...
Click to collapse
I have attached the one which I'm using, renamed to "magazine.snb".
It's a simple blank note, white background with faint lines across.
Ok.. there seems to be a problem. When I add pages, it goes back to an empty memo template.
So now I have notes with different cover pages.. Hmmmm
Alright! With a little bit of trial-and-error, I finally got the right template that behaves correctly on every page.
The trick was first to take a "golden template", which would say is "memo", since it's the simplest and every page is constant. I opened it up (renaming the snb file to rar) and I replaced it with my background images (already generated from my template I created above).
So basically, this is still a "memo" template, but with a different background.
This time, I replaced the birthday template with this one. I've attached the template and a thumbnail as well. Now, every page has my background and color!
As an alternative: it is also possible to modify downloaded note templates, instead of modifying the apk - I've put the description here: http://forum.xda-developers.com/showthread.php?t=2330470
Is it possible to get *. snb files from Note 3's ,,s note" apk and put them inside original Note 8,0's apk file?
If yes, can anyone having Note 3 attach apk file here so we can extract templates and put them into our apk's?
MasK said:
Hi folks.
I don't quite like any of the provided templates in S notes. And frankly I think Samsung should allow us to create templates.
Click to expand...
Click to collapse
HI MasK,
But i personaly love if you share the proper image size
i think it's posible to change the custom background without rooting.
:laugh:
ok,. i have your birthdays gift,.. and i found thats images is 800X1108 pxl

Android folder ico file

Okay, so basically, when you start backing up cwm boot files, custom ROMs, and cwm backups on the pc (or SD card, this works on a cwm bootable sd too), I've always found it convenient to group all these folders and files into a library. But, when you create a library, there is a default picture that you can't change. Unfortunately, I have no idea how to fix that. What I do have, however, is an icon file for the <C:\Users\[Your Username]\My Android> folder, which you should probably create and add to the library then drop all your android-related files into there (if you choose to go the library route, though I would suggest this as all that stuff everywhere can get to be quite a mess).
The file is a batch png to ico converted *.ico file, and includes the following sizes: 8x8, 16x16, 32x32, 48x48, 64x64, 128x128, and 256x256, the 8x8 and 16x16 look *really* crappy and are almost too tiny to be visible, but that should be expected, and the 256x256 look blurry, though still decent. As with all batch icon files, the size should adjust automatically according to your icon size setting is.
Instructions:
1.) Download the *.ico file, and move it from [your download location] to <C:\Windows\System32>, so you never have to see or bother with it
again once you're done.
2.) Navigate to <C:\Users\[Your Username]\My Android>. If it doesn't exist, create it then add it to the "Android" library.
3.) Right Click
4.) Select "Properties"
5.) Click on "Customize" tab
6.) Under "Folder icons", select "Change Icon..."
7.) Click "Browse...", and navigate to the *.ico file you just downloaded in the <C:\Windows\System32> directory. It should be one of the only
ones there.
8.) Once the icon file is selected, click "OK"
9.) The selection window should close automatically. Click "Apply" on the Properties window, then close it.
10.) Add The folder to your currently empty library.
11.) If anyone figures out or knows how to change a library icon, please include that in a comment and I will copy and paste it into this post
(this forum has an edit feature, right?) and credit your username at the bottom.
*Please do not remove this post because it's nooby or pointless cosmetics not related directly to android development, I already know that. If it's in the wrong thread, which I'm not entirely sure of since this is my first time posting here, please move it. Since a mod is usually the only usergroup that can delete threads, I'm assuming that if you're reading and considering deleting this thread then you also have the ability to move it.*

Categories

Resources