[GUIDE] Road to Android app development! - Android General

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hello fellow xda users, I'm here again with another project, but this is slightly different from the many I post.
Here I will be teaching you Android enthusiast how to prepare and build/modify applications for your use or anyone's use.
I will have to admit I am still learning in this field of development but I would like to start this thread off now so I won't have to write out so much after I learn more.
So this means I will keep this thread going when I learn new tips, tricks and ideas. This way we can progress at the same level, and get to understand about Android development easier. And hopefully one day this thread could become a great resource thread for new Android developers and users.
Click to expand...
Click to collapse
[x] First off all, you will need your brain.
Click to expand...
Click to collapse
[x] Eclipse Studio (For building applications from scratch or source) - Here
Click to expand...
Click to collapse
[x] Apk Decompiler (Plenty of these are floating around xda) - Here
Click to expand...
Click to collapse
[x] Paint.NET/Photoshop (Used for editing images - .png and .9.png) - Paint.NET - Photoshop
Click to expand...
Click to collapse
[x] Notepad ++ (For editing code within the decompiled app - xml - class - dex) - Here
Click to expand...
Click to collapse
[x] JD GUI (For viewing and editing the .Java files( Src) without decrypting them. - Here
Click to expand...
Click to collapse
In Android/Programming, a source code is any collection of computer instructions written using some human-readable computer language. The source code of a program is specially designed to facilitate the work of computer programmers, who specify the actions to be performed by a computer mostly by writing source code.
The source code is often transformed by a compiler program into low-level machine code understood by the computer, this means you will not be able to read it, it will just appear as random symbols. The machine code might then be stored for execution at a later time. Alternatively, an interpreter can be used to analyse and perform the outcomes of the source code program directly on the fly.
Most computer applications are distributed in a form that includes executable files, but not their source code. If the source code were included, it would be useful to a user, programmer, or system administrator, who may wish to modify the program or understand how it works.
Click to expand...
Click to collapse
So I am assuming you have downloaded the Android SDK Bundle form the "What's Needed" section.
Here I will show you how to view any applications source code, this is really useful if you want to remove or add functions in an application.
Now this bit is far different from others on how they tell you to set it up, and it can be confusing for some. So I have taken then step to make make a .zip which contains everything needed to view the source code.
You can download this .zip from here. Extract the contents to your desktop using any unzipper (Winrar).
Now open Eclipse Studio from the SDK you just downloaded, and set a workspace (Leave it as it is). Once you're actually running Eclipse. Now the file you extracted to your desktop area (A2J) move that folder to your workspace. (C:\Users\yourcomputersname\workspace). When you have moved the "A2J" folder to your workspace. Close Eclipse and re open it. You should see a new project on the left project panel called "A2J".
Now download the applications source code that you want to view/edit and download it. The easiest way to download it is to go to the Play Store, search for the application, copy the URL, go to this site and then paste the URL in the site then download the .apk file.
Click to expand...
Click to collapse
Once downloaded, rename the "appsname.apk" to "app.apk" and then save it. Once saved, right click on it and click "copy", now head back into Eclipse and in the left panel, right click on "A2J" and click "paste". Then your app should appear in the project space, you may need to press the little arrow to view the files in that project.
Once the .apk is in there. Right click on "A2J" again and select "Run as" then select "Run Configurations" In the window, make sure the "Main Class" is set to "com.googlecode.dex2jar.v3.Main" if it isn't then copy that and paste it in that area. Now click "Arguments" change the "Program Arguments" to "app.apk". Then click "Run".
Click to expand...
Click to collapse
It will create a pop up telling you that there are some errors, click "Proceed" and wait till the command window at the bottom says "Done."
Once its done, right click on an empty space in the left project panel and click "Refresh". This will show you a "dex2jar" file under the "app.apk" file. Right click the ".Java" file and select "Copy". Once copied go to your desktop and select "Paste". Once pasted, extract the "JD GUI" .zip proved in the "Whats Needed" section to your desktop.
Then drag the ".Java" file onto the "jd-gui.exe" file. This will open a window. I personally find it annoying to edit/view the code form that application. So click "File" and then click "Save all sources". Save the file to your desktop. Extract the .zip and use "Notepad++" to view or edit the code.
Click to expand...
Click to collapse
More coming soon as I've exceeded my Data Limit. Again.
Click to expand...
Click to collapse

Taking this...

And this. c:

Uhm this one too...

Last one

Related

[TOOL] Android Commander 0.7.9.11

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
My website is down, but download is still alive.
Hi Guys!
Android Commander is windows application to keep control on your android apps and files from PC. This is a small, very very fast and intuitive app.
If someone want to try it, go a head. But remember, you doing this on your own risk! I'm not professional programmer, this is only my hobby
Program Requirements
Before you install the program you should read this:
Phone Requirements:
- ADB ROOT Access
- BusyBox
- „Settings->Applications->Development->USB debugging” must be enabled
- USB Cable
Computer Requirements:
- Windows XP/Vista/7
- ADB USB Driver
- Java JDK
- Minimum 800×600 screen resolution
Click to expand...
Click to collapse
Android Commander should works for any android device, but here is list of devices confirmed by me or users.
Before you report any problem to me, read program FAQ.
Full list of program features.
Screens:
Android Commander screenshots gallery
If you like my program, conceder a donation please!
Download is here
mirror
Program wasn't updated for a long time, but it still can work with any android device. The only think you have to do is update ADB binaries in program directory.
Click to expand...
Click to collapse
Changelog:
Version 0.7.9.11:
Changelog:
- updated adb and aapt binaries
- better work with JB
- better updates checking system (disabled as default)
- files and partitions size display improvements
- more fixes
Click to expand...
Click to collapse
Full program changelog
very handy app great job !! Will definitely use this !
You Sir, have just earned yourself GODLIKE status from us people who have no programming skills.
Well, if I could download the bloody thing, it just sits at 'processing download request'...
that looks awesome!! thank you for sharing it with us!!
+1 on that
Cannot download! Says File not found on server. This is for the latest and greatest version.
A fellow Windows 7 'UK Theme' user
Is there something similar for OSX ?
himmatwala said:
Cannot download! Says File not found on server. This is for the latest and greatest version.
Click to expand...
Click to collapse
same problem here
for all who cant't download file from mediafire, here is megaupload mirror: http://www.megaupload.com/?d=NJKJI587
from next update i'll start posting 2 download links
thanks worked like a charm
I get "Device: not found"
running Nexus One + Cyanogen add-on
t0pgun said:
I get "Device: not found"
running Nexus One + Cyanogen add-on
Click to expand...
Click to collapse
So Your Nexus is really unconnected or is something wrong with your ADB.
If you type in windows cdm "adb devices", what you see?
PanPiotr said:
So Your Nexus is really unconnected or is something wrong with your ADB.
If you type in windows cdm "adb devices", what you see?
Click to expand...
Click to collapse
List of devices attached
HT9CRP819577 device
t0pgun said:
List of devices attached
HT9CRP819577 device
Click to expand...
Click to collapse
so should be ok. i don't know what is wrong
PanPiotr said:
so should be ok. i don't know what is wrong
Click to expand...
Click to collapse
My bad, i was trying to run AC from the desktop. I moved it to the \android-sdk-windows\tools folder, it works now!
Thanks!!
t0pgun said:
My bad, i was trying to run AC from the desktop. I moved it to the \android-sdk-windows\tools folder, it works now!
Thanks!!
Click to expand...
Click to collapse
Yes its your bad. It works from any place on pc(desktop too), you prapobly have no adb tool directory in system path. You should.
http://developer.android.com/sdk/installing.html said:
The primary tools/ directory is located at the root of the SDK folder. Adding tools to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory.
- On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ directory to it. If you don't see a line setting the path, you can add one:
export PATH=${PATH}:<your_sdk_dir>/tools
- On a Mac OS X, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile if you haven't already set one up on your machine.
- On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path.
Click to expand...
Click to collapse
PanPiotr said:
Yes its your bad. It works from any place on pc(desktop too), you prapobly have no adb tool directory in system path. You should.
Click to expand...
Click to collapse
Fixed it! Works from any place on the pc. Thanks again!!
update
Android Commander 0.7.3:
http://www.mediafire.com/?y2mldvdmynl
mirror: http://www.megaupload.com/?d=6Y27VBLI
Code:
Changes:
- changed positions of Application Manager and Computer Files (now is more natural ;))
- bookmarks :)
- you can open any file in Computer Files
- icons for music/video/image formats readable for phone (and zips)
- window "About" with changelog
- button New Dir in Computer Files
- reading info and icons from apps works better now
- if your phone is not connected and you will open apk file info, you will se info "no device"
- hidden and system windows files are hidden in Computer Files
- log window disabling main window during progress
- more small fixes/changes
changed positions of Application Manager and Computer Files (now is more natural )
Click to expand...
Click to collapse
Very nice feature

[SCRIPT] sign a file with a right-click in Windows (updated 22-04-2010)

I created a script which lets you right click on a zip or apk file in Explorer and sign it. You can also right click on a selection of files and sign them all in one go, or drag and drop your files on to the script to sign them.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
A subfolder called SignedFiles will be created, and your signed files will be created in there with the same names as the originals.
Installation instructions
Download the zip file below.
Copy the contents to a folder on your C: drive, e.g. "C:\ben"
Open signfile.vbs using notepad and edit line 6 where it points to "C:\ben\testsign.jar", to the location on your C: drive. If your path contains spaces, surround it with double quotes, i.e. ""C:\Program Files\App Signer\testsign.jar""
You will also need to edit the .reg file using notepad and change the path in there before double clicking on it - double clicking on the .reg file will add the right-click context menu into your Explorer, pointing to your vbs file.
You need java in your path for this to work. You can test you do by typing "java -version" into a command prompt window.
This will work on Windows 7 and Windows Vista. I expect it could also be adapted for Windows XP.
Updated 22-04-2010: Script now has error handling for failures.
If you want to easily sign files in Linux using a right-click see Amon_RA's script here.
Nice...can't wait to try this out!!
there is already a autosign for windows out there.
But I don't know if it supports right click.
will make things a lot easier...
Does it work from anywhere, or is it supposed to be a path without spaces etc. ?
thx so far
domenukk said:
Does it work from anywhere, or is it supposed to be a path without spaces etc. ?
thx so far
Click to expand...
Click to collapse
If your path has spaces change the line that reads
Code:
sExe = "java -classpath C:\ben\testsign.jar testsign " & Target & " " & SignedFile
Surround your path with double quotation marks like this:
Code:
sExe = "java -classpath ""C:\Program Files\My App\testsign.jar"" testsign " & Target & " " & SignedFile
Hey thanks, this is a nifty lil tool.
mate this tool will make things a hell of a lot more quicker for us themers. thanks
It needs a little bit of polish, I'll release a better version when I have time.
For example at the moment the output files are always named inputfile-signed.zip, even if the file is a .apk ... eg. inputfile.zip becomes inputfile.zip-signed.zip, or app.apk becomes app.apk-signed.zip ... which obviously need a little tidying up
Would be nicer if it makes a subfolder and retains the name I think. At least I like my signed files that way
Autosign just writes over the original file. I think it's best that way, because most of the time you will need it signed... if not, just backup
Oh it's vbscript. very nice. If you need help with splitting and whatnot, let me know
Well I'm open to suggestions. Signing them with the same name into a subfolder sounds like a good idea to me.
I've updated the zip file in the OP so that it will create a subfolder called SignedFiles and create the signed files in there. I also cleaned up the output so they are created with the same names. Much more useful now
I did the edit to both files and installed, I have sign this file when I right click on a file. I hit it and a popup that says it's signing the file and going to put it into the signed files folder... which it does create where I right clicked on the file to sign, but nothing ever shows up in that folder. What am I doing wrong here LOL?
It will probably be to do with spaces in the file path .. vbs can be fussy about this. Can you paste your "sExe =" line here for me to have a look?
st0kes said:
It will probably be to do with spaces in the file path .. vbs can be fussy about this. Can you paste your "sExe =" line here for me to have a look?
Click to expand...
Click to collapse
Here ya go...
sExe = "java -classpath C:\signfile\testsign.jar testsign " & """" & Target & """" & " " & """" & SignedFilesFolder & "\" & TargetFileName & """"
Looks ok, it's pretty much the same as mine. To debug this add a line after the sExe = line like this:
Code:
msgbox sExe
Run the script again, and see what appears in the message box. It should look like:
java -classpath C:\signfile\testsign.jar testsign "c:\path\to\yourfile.zip" "c:\path\to\SignedFiles\yourfile.zip"
Click to expand...
Click to collapse
The quotation marks should be there as above.
If that does show correctly, try manually typing that into a cmd window exactly as it it appears in the message box, and see if it works.
OK... After I typed that into a cmd window I got this...
'java' is not recognized as an internal or external command, operable program or batch file.
Jeffro64 said:
OK... After I typed that into a cmd window I got this...
'java' is not recognized as an internal or external command, operable program or batch file.
Click to expand...
Click to collapse
You don't have java installed, or you do but it's not set in your classpath.
Bl4z1n said:
You don't have java installed, or you do but it's not set in your classpath.
Click to expand...
Click to collapse
I did think about that and went and got java installed... thought either it might have been outdated or as you said not installed at all. But even after installing I still get nothing in the signed files folder even though it says it is putting it in there LOL.
works nicee! now i don't have to type java -classpath alla d time
U da man st0kes!
Jeffro64 said:
I did think about that and went and got java installed... thought either it might have been outdated or as you said not installed at all. But even after installing I still get nothing in the signed files folder even though it says it is putting it in there LOL.
Click to expand...
Click to collapse
Don't worry mate you are almost there, just sound like java.exe is not in your path. There are 2 ways you can get this to work, but first you have to find java.exe on your C: drive (on mine it is in C:\Program Files\Java\jre6\bin\)
First method is to change the sExe line in the script setting the path of java.exe in there
Code:
sExe = """C:\Program Files\Java\jre6\bin\java.exe"" -classpath C:\signfile\testsign.jar testsign ...
The other way is to add that folder into your environment path. Right click on my computer, properties, advanced settings, environment variables, double click on PATH in System variables and add a semi-colon and the path to java.exe

[Tool] Yaffey - Utility for reading, editing and writing YAFFS2 images

I've created a GUI utility for reading, editing and creating YAFFS2 images that hopefully people will find useful. You can read Android system and data partitions and modify them how you like. Import and export files to and from the images. The tool is up on Google Code with source, written in Qt 4.8.1.
http://code.google.com/p/yaffey
Features
- Create new YAFFS2 image
- Open existing image
- Export files/directories from image
- Import files into image (permissions inherited from parent directory, dates created/modified/accessed set to current date & time)
- Delete files
- Edit filenames
- Edit permissions
- Edit user and group ids
- Edit symbolic link aliases
- ECC (Error Checking & Correction) support
New in v0.2
Added import dialog to choose to import file(s) or a directory
Added support to import multiple files
Added support to import 1 directory at a time (using dialog)
Added drag & drop importing (which supports multiple directories & files!)
Added support to delete more than one item at a time
Added summary dialog after saving an image
Added text below icons in toolbar at the request of varun.chitre15!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've been using it to modify the stock system image for my Xperia Play. You can easily add/remove APKs etc. It's a nice alternative to the unyaffs/mkyaffs command line tools.
It has limitations but am happy to extend the functionailty if it's found to be useful...
Wow!!
Was looking for this since ages
Thanks a lot
This is indeed useful
Burned from my laser torch using pencil cells
Hi varun, that's good news. Spread the word! I've been wanting to reply to some threads about YAFFS images and tools etc but can't post in most forums yet... Need to spend some time on here to get my post count up I guess.
I'm planning on adding more features to the app like adding su, superuser.apk & busybox with a few clicks for easy rooting and a GUI for fastboot for easy flashing to make the whole image editing and rooting process as easy as possible.
Great!!!
Can u add a feature to make images directly from a flashable zip?
Thanks!!
Burned from my laser torch using pencil cells
Here is the suggestion list
1. Add support for adding multiple files at once while creating image file
2. Add support to add folders inside image fle
3. Add Drag and drop if possible
4. In the tool bar of the tool, can u add the text below the icons as it is somewhat difficult to identify which option does what and to see its function I had to move mouse over the buttons
5. Add support for EXT2, EXT4 images too
Your tool is very great
varun.chitre15 said:
Here is the suggestion list
1. Add support for adding multiple files at once while creating image file
2. Add support to add folders inside image fle
3. Add Drag and drop if possible
4. In the tool bar of the tool, can u add the text below the icons as it is somewhat difficult to identify which option does what and to see its function I had to move mouse over the buttons
5. Add support for EXT2, EXT4 images too
Your tool is very great
Click to expand...
Click to collapse
Never thought about converting a zip to YAFFS2 image, that's a good idea.
On your suggestion list:
1, 2 & 3 are definites and will do those next.
4. I could add the text to the toolbar but will look ugly so not sure about that one yet.
5... maybe one day
Linux version would be cool
kangkong! said:
Linux version would be cool
Click to expand...
Click to collapse
I have built the code and got a Linux version working. When I put up the next update I'll include a Linux build!
Cant find it on Google Code.
Yaffey now on XDA Portal
http://www.xda-developers.com/android/yaffey-for-all-your-yaffs2-needs/
Congo necro_!!!
Waiting eagerly for next update!
Burned from my laser torch using pencil cells
Thanks a lot!
Helped me retrieve some files from a nandroid backup I just couldn't open.
Thankyou so much! Much needed this is
Really great work, mate!!! I hope we also can use this for our Razr. What about the signature? If you rebuild an image with your tool, will the signature persist or does this only work on phones with unlocked bootloader?
dtrail1 said:
Really great work, mate!!! I hope we also can use this for our Razr. What about the signature? If you rebuild an image with your tool, will the signature persist or does this only work on phones with unlocked bootloader?
Click to expand...
Click to collapse
It's not working to me. Any hints?
Thanks man, nice work!
SWEET!!! That'll help me pick apart the ota for WP7. Thanks, you just made my day a lot easier.
jaywillsoul said:
SWEET!!! That'll help me pick apart the ota for WP7. Thanks, you just made my day a lot easier.
Click to expand...
Click to collapse
I haven't tested it with any Windows based images. The dates created, accessed and modified are stored differently and the user and groups IDs aren't used. The app currently doesn't handle this. This won't affect exporting data from the image but if you're adding files then when the image is used the dates will be very wrong.
I'd be interested to know what you're experience of using it with Windows images is like!
dtrail1 said:
Really great work, mate!!! I hope we also can use this for our Razr. What about the signature? If you rebuild an image with your tool, will the signature persist or does this only work on phones with unlocked bootloader?
Click to expand...
Click to collapse
I'm not sure what signature you're referring to. If it's similar to Sony Ericsson's .sin files that contain extra data at the start of the file before the YAFFS2 image then currently the tool doesn't handle this, only pure YAFFS2 images.
Here's the link http://code.google.com/p/yaffey/
Very nice.
Having the ability to sort the displayed results would be useful.
Good work, thanks

[tool] AIPPackager and Installer - create installers for your RT Desktop apps [14/01]

This version/thread retired
new version - with source - can be found here: http://forum.xda-developers.com/showthread.php?p=36854150
This release composes of two parts:
The RTDPackager which creates an AIP file, and AIPInstaller which is the installer for these AIP files.
V1.1 of RTPackager release - now fully functional.
AIPInstaller Usage
Place the exe file and associated DLL in a folder somewhere sensible. I have not tested in ProgramFiles yet but the app elevates UAC so should be ok.
Double click on any AIP file (I include one as an example) and windows willl show this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
select 'more options' which will show this:
check the check box at the top and then click 'Look for another app on this pc'
A browse dialog will open - find and select AIPInstaller and you are done. You only need to do this the first time. I intend to add an auto install to this, so in future you can just double click the installer and it'll set itself up, but till then...
From now on, you can double click an AIP file and the installer will pop up. Usually just hitting 'install' will be all you need to do (there are some advanced functions like disabling the install batch if it exists, and changing the install path which isnt really recommended)
RTDPackager Usage
This utility is designed for creating AIP files. Its worth paying note that the AIP format is designed for repos more than it is the installer - so there are a lot of details here which the repo can use to make you app more visible.
V1.1 now has full open and save support.
Save will save a template XML, which can be loaded later with the Open button. Open will also open an existing AIP file and fill in the details.
Create Package no longer saves in the same place as the files being packaged - it opens a save dialog.
The browse button will now work and populate the run EXE field and the folder field.
some details:
AppName is the display name - and the install folder - so avoid \'s and such. If you change this in an update, it will get installed to a new folder.
Updates are detected based on the App GUID. Change this, it will appear as a new app - use the same GUID on more than one app and you will have conflicts. The generate button for GUID *DOES* work - you should only use it on the first release of your app - and for the time being, keep it safe for any updates.
Run EXE is the exe that will be launched by the store when the user asks to run it - and if a shortcut name exists, will be placed in the start menu.
Install/uninstall batch files are option batch files for installing/uninstalling registry settings and the like. There is currently no uninstaller, but the store app should have this built in - the uninstall batch is NOT for deleting files - the store will handle that.
App version number is a REAL number. ie. 1.03 is ok. 1.0.3 is not.
App category is for placing your app in a 'folder' - it is free form, with | splitting. Anyone can create a new category this way and its not up to the repo manager to manage this. Obviously it will work better if we have sensible categories such as 'Apps|Browsing' or 'Emulators|GameBoy' - while its totally possible to do 'djboo|prerelease|funthing' - i hope we dont do that.
DOWNLOADS
First Release of AIP installer: http://forum.xda-developers.com/attachment.php?attachmentid=1644222&stc=1&d=1358172785
V1.1 Release of RTD Packager: http://forum.xda-developers.com/attachment.php?attachmentid=1644631&stc=1&d=1358184708
Example AIP file (is in a zip as XDA wont allow the AIP extension): http://forum.xda-developers.com/attachment.php?attachmentid=1644224&stc=1&d=1358172785
reserved
Note: Once the RTD Packager is complete, code will be shared for both - that should be tonight.
Nice work so far, haven't tested all elements of it yet but it looks pretty good! Keep up the good dev work!

[Multitool][WINDOWS] ROMTools v3 *exclusive*

Hi guys,
Here is third version of my ROM Tools PC Version (Automatic decompile classes.dex file to edit smali content) exclusively for Galaxy Y and Galaxy Ace I
Why it is here now? Because it may be the case that this version only works on Gingerbread, or only on Galaxy Devices or maybe only on Ace and Y. So, I decided to release it here first.
Totally tested for every feature and bug free, it is now loaded with new awesome features.
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Changelog :
Code:
Version 3
8 May 2013
-Added many new features
-Option to reboot
-Option to recovery
-Option to Hot Reboot
-Option to view and save logcat with nice integration of verbose and long command
-Option to fix permissions
-Option to RESET PASSWORD of pattern lock or passwork or pin
-Added a small Easter egg
Version 2
18 April 2013
- Changed it from a script to multi tool
- Added folders for convenience
- Made eye candy
- Made it noob proof
- It's like changing Baichung Bhutiya to Lionel Messi
Version 1
- Just one smali.bat file and one baksmali.bat file with one one line each of commands to Baksmaling and Smaling (duh!)
PHP:
I am not responsible for your device being dead,
you flashing stock ROM,
you using your device as a brick,
or the decrease in love of your Girlfriend because you use your mobile so much
What does it do?
As you are aware, there are smali files in jar files and apks you need to edit for adding 4-way boot into power menu, extending Power options, changing clock colour, adding CRT effect, changing the pop up that comes up when you touch the easter egg image, adding brightness slidebar, adding lidroid toggles, etc and so manyyyy things
In order to edit them, you need to decompile apk and classes.dex
It is not a problem in editing smali files of apk as they are decompiled itself by APK-Multitool(I use it)
But, it does not work for jar files
I know that there is smali.jar and baksmali.jar for it but I don't like repeatedly commading same operations when I can do it with one click
This program decompiles and recompiles classes.dex from any jar or apk in one click(very useful when you only need to decompile dex file only)
However, it's main objective is to recompile and decompile classes.dex only, but I added few more option to make it really a full fledged ROM Tool
Expect a few more features in upcoming releases
Pre-Requisites:-
*PC
*My Tool
*Java JDK(or JRE) (If you are running Windows 7 64 bit, you may need to add Java in environment variable)
*7-Zip (For in zip operations[pull out classes.dex])
*classes.dex file(on which you will operate)
*Android Phone to be connected to PC with USB Debugging on to use features other than decompiling and recompiling
Guide:-
Main Options
1. Download my Tool.
2. Extract it in any folder.
3. Place classes.dex in the input folder. DO NOT RENAME IT.
4. Run script.bat. Choose Option 1, Decompile classes.dex . In a few seconds, there will be a prompt that it is "Done. Press anykey to continue" (Note:- If you have UAC [User Account Control] on, you may run it as administrator or it might not be able to create folder if you have extracted it in System Drive)
5. Go to decompiled folder. There will BE classout folder. Make any changes in smali in classout folder(ALWAYS USE NOTEPAD++). DO NOT RENAME CLASSOUT FOLDER.
6. Again open script.bat if you had closed it or if not, then return to the window.
7. Choose 2 option "Compile classes.dex" . A new classes.dex will be formed in output folder.
8. Enjoy
Note:- Once you change things in classout folder, and you decompile another classes.dex, previous version in decompiled folder will be deleted. So if you want backup of it, move it somewhere else
Same thing will happen to classes.dex on output folder when you compile another one.
Other options
1. Connect you phone to PC with USB Debugging on and not on USB Tethering. Make sure you aren't using adb before using the tool. If so, Go to Alt+Ctrl+Del and to Task Manager and close adb.exe process
2. Choose the option what you want.
a) Logcat, either view or save it
If you view it, a window will appear with logcat in it. If you are done, just close that window
If you save it, it will be saved in the same folder where Script.bat is present. To stop saving it, Press Ctrl+C and type Y and press Enter
b) Reboot, may take some time in rebboting and rebooting in recovery.
c) Fix permissions and Reset password
3. Try to find Easter Egg
Download:-
ROMToolsPCv3.zip
Woah !
Good Job !
btw Easter egg in app ?
---
Instead of ctrl + alt + del combo
you can use ctrl + shift + esc
it brings up only the task manager
Thanks OP. Can you add an option to go to download (odin) mode . I really need that coz my vol- button got broken. Anyway this tool is really great.
Awesome tool
Doesn't it require ADB support? I mean, I haven't heard of another way of rebooting a phone or putting it into recovery mode via terminal.
Or does this have ADB and related tools included?
Good job! Thanks for the great work! :good:
Yes
All adb and other required items are included
And sure thing, will add download mode in next release. I don't know why I didn't add it in this release?
Please report any bugs
And please do suggest what should be added in next release
Here too!
Kudos broda :good: :thumbup::thumbup:
Thanks,
TheDemiGod
Future RD
@j_habeeb
Thanking everyone here?
Woah! :0
checkin the source of all apk's
Awesome man! :thumbup:
BTW i had seen this in some other forum also
anubhavrev said:
Woah! :0
checkin the source of all apk's
Awesome man! :thumbup:
BTW i had seen this in some other forum also
Click to expand...
Click to collapse
apks?
And yes, it was published in Android General Software and hacking from where it was published on portal, but this version is not yet published there as it may only work for these phones
Looking forward to reports if you guys can check this with other devices with other android versions :good:
iamareebjamal said:
apks?
And yes, it was published in Android General Software and hacking from where it was published on portal, but this version is not yet published there as it may only work for these phones
Looking forward to reports if you guys can check this with other devices with other android versions :good:
Click to expand...
Click to collapse
classes.dex stores the source code ..
search dex2jar and classes.dex on google
anubhavrev said:
classes.dex stores the source code ..
search dex2jar and classes.dex on google
Click to expand...
Click to collapse
lol
You think I don't know that sherlock. Who released this tool?
I was just confused that what you meant by your previous post
lol ...i hope u didn't XD
P.S.- u're a themer right ? check pm...
anubhavrev said:
lol ...i hope u didn't XD
P.S.- u're a themer right ? check pm...
Click to expand...
Click to collapse
I did it man :/
See that OP tag written to Senior Member?
And replied
iamareebjamal said:
I did it man :/
See that OP tag written to Senior Member?
And replied
Click to expand...
Click to collapse
Sent from my GT-S5360 using xda app-developers app can't see a thing ! Sorry but had to ask..
@iamareebjamal: Now you're on my credit list when I release my rom! This tool helped me a lot
"Its not your fault if you are born poor, But it's your fault if you die poor!" - Bill Gates

Categories

Resources