Today I updated my Android SDK and also downloaded the Android 4.0 platform. Inside the SDK in the platform folder (maybe, I don't remember), I found the system.img of Android ICS. That is what the emulator uses to run Android on it.
My question is, is it possible to decompile/open that file in order to get some stuff out of it such as the launcher, apps, wallpapers etc?
Or am I being a noob right now?
BTW, bad news ICS needs ArmV7
could be
there is a possibility of managing that. if you have the right tools and a system optimized for exploring certain programs then yeah.
you can try it just be careful
P.S nice question it took some thinking to figure this one out lol
I can upload system dump from this file if you want.
Yeah but I don't know how to do that.
Sent from my X8 using XDA App
http://www.multiupload.com/2ACQIGB6EB Enjoy!
I don't know how to make it work. I'm too nooby ;p
When I was a little younger(year ago) I made Xperia ROM Manager LOL . Just search my post and you will find it. It can extract img files and do other things too, but you must be on windows.
Sorry, your ROM Manager failed to extract the files...Anyway...
Any dev willing to help?
You can extract yaffs imgs with unyaffs for windows or directly on your phone with the command "unyaffs (filename)".
Flash also needed armV7, didn't it?
Sent from my E15 using XDA App
Doesn't the windows version of unyaffs help?
Related
Hi, I am using the iskoot software, installed by an apk files. But I need to change a setting of this software, and in Windows Mobile I used to change the registry setting I need, but now, we do not have a registry....so what I am asking is, there is a way to unpack an apk files to see where and wich files it install? So that I can go there and edit the conf file I need?
Thanks!
alex_time said:
Hi, I am using the iskoot software, installed by an apk files. But I need to change a setting of this software, and in Windows Mobile I used to change the registry setting I need, but now, we do not have a registry....so what I am asking is, there is a way to unpack an apk files to see where and wich files it install? So that I can go there and edit the conf file I need?
Thanks!
Click to expand...
Click to collapse
apks are just zip files. Set them to open with your archive manager or change the extension to .zip. All applications install their settings into /data/data/%PACKAGENAME% where %PACKAGENAME% is the Java-style package name of the app.
Ugh, no need to use the evil "R" word here. You're going to give us nightmares!
Each application stores its configurations/settings in its home directory in /data/data as pointed out by the previous poster. You might want to bone up on 'sqlite3' as most configuration settings tend to be stored in such databases.
alex_time said:
Hi, I am using the iskoot software, installed by an apk files. But I need to change a setting of this software, and in Windows Mobile I used to change the registry setting I need, but now, we do not have a registry....so what I am asking is, there is a way to unpack an apk files to see where and wich files it install? So that I can go there and edit the conf file I need?
Thanks!
Click to expand...
Click to collapse
I'am trying right now to find this confing files, thanks, I'll let you know if it's ok.
Note that depending on what you are trying to do, the config files may or may not be able to adjust the property you're after. No matter what, the program itself must support what you are trying to do (this goes for ALL OS's -- you simply can't change something that is irrelevant and expect it to do what you want) and more often than not, the ability to adjust that property would be presented by the program itself.
That is, of course, not to say that manually adjusting the config files is useless, because there IS a lot you can do directly from the config files.
alex_time said:
I'am trying right now to find this confing files, thanks, I'll let you know if it's ok.
Click to expand...
Click to collapse
Er, delete please
Modify an " .apk " file in " .exe " file
Hi everybody ,
Please , does anyone know how
I can modify an Android Mobile File .apk
in a .exe to use it with Windows Mobile ?
ccpgclap said:
Hi everybody ,
Please , does anyone know how
I can modify an Android Mobile File .apk
in a .exe to use it with Windows Mobile ?
Click to expand...
Click to collapse
No, they have absolutely nothing in common.
Modify an " .apk " file in " .exe " file
Originally Posted by ccpgclap View Post
Hi everybody ,
Please , does anyone know how
I can modify an Android Mobile File .apk
in a .exe to use it with Windows Mobile ?
Originally Posted by RubenGM View Post
No, they have absolutely nothing in common.
Originally Posted by ccpgclap View Post
But I have found this and it doesn't work ....
Download APK2EXE and NSIS install system
Follow these steps to create your executable!
* Extract APK2EXE to a new directory
* Add your APK to the directory
* Doubleclick APK2EXE.NSI and edit the 3 lines containing information about your application.
* Right click the NSI file, and select 'Compile NSIS Script' - this will create your install EXE
* Done!
And it is a .apk to .exe converter !!!
Can anyone tell me why it doesn't work ? Many thanks
because your trying to run a Android application on Windows.
it's like saying I want to make this MAC application run on windows.. it just doesn't work..
I dont care what programs say.. Its not coded for Windows so it wont understand what the program does...
BTW you application you speak of is meant to install APK's FROM windows not TO windows
"Hot on the heels of my installAPK utility to let you install APKs from your Windows desktop, I now have another neat trick... which allows developers to distribute APKs as Windows EXE files instead."
boostnek9 said:
because your trying to run a Android application on Windows.
it's like saying I want to make this MAC application run on windows.. it just doesn't work..
I dont care what programs say.. Its not coded for Windows so it wont understand what the program does...
BTW you application you speak of is meant to install APK's FROM windows not TO windows
"Hot on the heels of my installAPK utility to let you install APKs from your Windows desktop, I now have another neat trick... which allows developers to distribute APKs as Windows EXE files instead."
Click to expand...
Click to collapse
shouldnt be too tough. just make a executable file that installs and configures adb, allows user to select apk or select a folder of apk's, create a .bat file that tells windows command prompt adb push the .apk to the sd card, then adb install /sdcard/nameofapk.apk
simple enough!
Can anyone tell me how to edit the app / extracted APK file to make the phone think it's a completely different app i.e. install it twice...
Not trying to cause trouble, I'm just looking to install an older version of an app as well as the updated version...
RichCowell said:
Can anyone tell me how to edit the app / extracted APK file to make the phone think it's a completely different app i.e. install it twice...
Not trying to cause trouble, I'm just looking to install an older version of an app as well as the updated version...
Click to expand...
Click to collapse
apk manager will let you
Asadullah said:
apk manager will let you
Click to expand...
Click to collapse
Thanks for replying, I've had a go with that and extracted / decompiled, compiled, signed, and that doesn't work, when I try to install the newly created apk it still tries to overwrite it...
I've watched the vid and read the comments but haven't worked it out yet... Can you point me in the right direction about which bit to edit?
i think you need apktool
Cool, I'll look into that... Any pointers on how to do it once I've got apktool?
command line usage, this tool unpak and repak
FlashMOD is a tool for creating and applying themes on Android. FlashMOD resolves the difficulties in applying MetaMorph themes by applying the themes to the ROM or update zip file instead of on the live phone. It takes less than a minute to apply a large theme to a ROM. You can then flash the ROM and you will have the theme up and running quickly and painlessly. If your ROM has a separate package for the gapps, then you will need to apply the theme to both the ROM and the gapps package.
FlashMOD should be compatible with any any Android Phone, ROM, or update zip, but I have only tested it on the Eris and with the following ROMs:
-Conap's CELB/gapps package.
-KaosFroyo
-TazzFroyo
For developers, the program also includes many more features for batch compiling, decompiling, compressing, resizing, signing, zipaligning, and extracting NAND .img files. For more information, please read the pdf documentation I bundled with the program.
Always make a nandroid backup before applying ROMs themed with FlashMOD.
Credits:
icbeer - FlashMOD
Cheezo - DotNetZip Library
Brut.all - apktool
Android Open Source Project - aapt, draw9patch, zipalign, media.pk8 media.x509.pem, platform.pk8, platform.x509, shared.pk8, shared.x509.pem, testkey.pk8, testkey.x509.pem, signapk.jar
Oracle - swing-worker-1.1.jar
Cosmin Truta - OptiPNG
Jean-loup Gailly - zlib
Mark Adler - libpng
ImageMagick Studio LLC - ImageMagick
Everaldo Coelho - Crystal Project icons
Kai Wei - I ported his unyaffs program to C#
Change Log:
1.1.2 - (2010-11-22) Fixed an issue when modifying the update script for the ROM. I was adding the wrong line endings.
1.1.1 - (2010-11-22) Minor tweaks. Looks like I have a bug in this version that shows the version number incorrectly in the title bar. I'll have that fixed in a bit.
1.1.0 - (2010-11-22) Added the ability to directly apply MetaMorph themes. Added ability to extract all the different .img files from a NAND backup (data.img, system.img, and boot.img). This was pretty cool because I ported/implemented the entire thing in C# code.
1.0.1 - Fixed bug in signing form. Pem and pk8 keys were reversed for certain radio buttons. Also modified theme application process. Apks are no longer signed, but are still zipaligned. KaosFroyo didn't like it when I signed certain apks with the test key even though this was OK in CELB.
Downloads:
- FlashMOD 1.1.2 (SHA1:207bda5d7cb9f3185ff01d9188f1c75e0f3bb47e)
FlashMOD runs on .NET FrameWork 3.5 on Windows and Mono on other platforms. There is 1 distribution for all platforms. FlashMOD also requires Sun Java JRE 6. To run on Windows you double-click on FlashMOD.exe. To run on mono you type "mono FlashMOD.exe" from the command prompt. Most linux tools are bundled or preinstalled under Ubuntu. I have never tried this on a Mac, but it should work. If you use any of the tools besides applying themes on a platform other than Windows you will need to change the file "FlashMOD.exe.config" and change the path of the external tools to point to their location on your system. It's been a while since I tested FlashMOD on Linux and I hope to start looking at that again soon.
- FlashMOD 1.1.2 Source Code (SHA1:1b524c0301027a98097c1f4a1f2a4db1b94c04a2)
FlashMOD is open source licensed under the GPL v3. FlashMOD is written in C#.NET and was developed in Visual Studio 2010.
Themes:
Buuf Theme 1.0.0 for FlashMOD.
This is a port of the Buuf theme by petsasj on the hero forums. This theme also installs the Buuf ADW theme in your /data/app folder. Make sure to select this theme in ADW to get the best experience.
[Reserved]
This looks cool. I will see if I have time to play around with it soon. I have been having problems with metamorph and it can be very slow with framework files. Hopefully I can get it working in the mac terminal.
synesthete said:
This looks cool. I will see if I have time to play around with it soon. I have been having problems with metamorph and it can be very slow with framework files. Hopefully I can get it working in the mac terminal.
Click to expand...
Click to collapse
I'm sure it will work under emulation. I'm curious whether it would work natively on the Mac under Mono. I tried it a little under Mono on Linux and it seemed to work fine for applying themes, but I never tried any of the other features. It's kind of surprising, but the same exe that works under windows should work on Linux and Mac like a Java application. Mono is binary compatible with windows. You just type "mono FlashMOD.exe" from the command line to run it. Mono supports Windows Forms on Windows, Linux, and MacOSX. I do not have all the external tools bundled for Mac, so you would have to round those up, but they are all open source. There is a config file that sits alongside the exe that tells it the path of the executables. I have it setup for Windows, so you would need to change it for other platforms.
If anyone wants to help me provide Mac and Linux support I would appreciate that.
cool mod! gonna use it asap
Let me know if it works for you. This is pretty much in the beta phase at the moment. It definitely works nicely for me on Conap's CELB ROM. Hopefully later today I will have time to test this on Kaos Froyo and some of the others.
Oops, found a couple bugs in the signing utility. I had the pem and pk8 keys reversed in the hardcoded values when selected from the radio buttons. I have corrected this in version 1.0.1. Also there was a compatability problem with KaosFroyo that I have resolved in version 1.0.1. It looks like Conap's ROM has different signing requirements than Kaos. According to logcat, KaosFroyo was complaining that I didn't sign certain apks with the shared keys. Rather than dealing with all that, I'm just going to take the more common approach of not resigning the apks. This will cause header mismatch warnings in zipalign, but I have suppressed these warnings internally. I just built the releases and will be posting them shortly.
Here's a crazy idea I just thought of...would it be possible to make a nand of whatever ROM you're currently running, zip it up, and apply a zipped theme using your method? My thinking behind this is that I'd rather not go through setting up all the mundane stuff such as email, relocating certain apps to system/apps, deleting apps I don't use/duplicate apps, ringtones, and the countless other modifications. If this is just a ridiculous idea, please ignore. Otherwise, any thoughts on this?
hoovnick said:
Here's a crazy idea I just thought of...would it be possible to make a nand of whatever ROM you're currently running, zip it up, and apply a zipped theme using your method? My thinking behind this is that I'd rather not go through setting up all the mundane stuff such as email, relocating certain apps to system/apps, deleting apps I don't use/duplicate apps, ringtones, and the countless other modifications. If this is just a ridiculous idea, please ignore. Otherwise, any thoughts on this?
Click to expand...
Click to collapse
There are other way of reapplying your customizations such as using a Titanium Backup restore. My application does not require that you apply the theme to a ROM either, just a flashable zip file. You can apply it to an update.zip file instead with only the apps you want themed included in the file (and probably framework-res). It's pretty easy to set that up, but it is a manual process. Automatation is a beautiful thing
What you are suggesting is not impossible to do...nand backups are images of the partitions on the phone in yaffs format. There is a program called unyaffs that I have compiled that can extract these. The program could then generate an update.zip file for you to reapply the system apps/framework. This is something I have been considering, although I was thinking of doing it a different way. I was thinking of pulling the apps with adb and then generating an update.zip from that. The problem with the way I was thinking of doing it is that it would require everyone to have the android sdk installed. I like your idea because it would remove the adb requirement. This sounds like a good addition to the next version. I'll look into this. Thanks for the suggestion.
Wonderful job =) works like a charm! Much better than metamorph.
Has anyone tested this on froshedyo v5?
Sent from my FroShedYo.V5 using XDA App
I tried in on CELB. Why don't you just try it on FroyoShed? Just do nand backup before you do it.
danielahl137 said:
Has anyone tested this on froshedyo v5?
Sent from my FroShedYo.V5 using XDA App
Click to expand...
Click to collapse
I haven't tried his ROM out yet. His ROM is compiled with the source code for CELB though if I remember correctly, so it will probably work. I'll try it out after I get off work.
Major accomplishment tonight! FlashMOD is now the first C# application to natively extract all the types of NAND img files, including data.img, system.img, and boot.img. I even created a CPIO archive decompressor to extract the ram disk in the boot.img file. This will all be available in 1.1.0, which I'll try to release this weekend.
icbeer said:
Major accomplishment tonight! FlashMOD is now the first C# application to natively extract all the types of NAND img files, including data.img, system.img, and boot.img. I even created a CPIO archive decompressor to extract the ram disk in the boot.img file. This will all be available in 1.1.0, which I'll try to release this weekend.
Click to expand...
Click to collapse
Very nice! Will test when you post it.
Sent from my FroyoEris using XDA App
Thx, for your help. I will try to post tonight if I have the energy after seeing Harry Potter in the IMAX.
Sent from my ERIS using XDA App
The new release sounds awesome. Nice job icbeer
Sent from my Eris using XDA App
Thanks for the support guys. It's nice to feel like other people appreciate what I'm doing. I didn't make it to post things tonight. I wanted to change part of the implementation to lower memory requirements. I also need to write up all the acknowledgements and round up all the licenses, from anyone I borrowed code from. It's actually kind of tedious to build a release that doesn't violate any licenses.
I'm trying to bundle all these little tools into one package. I'm not adding anything you couldn't do already, but you'd have to compile a C application to extract the unyaffs volumes and you'd have to run a perl script followed by extracting the cpio volume with 7z or cpio (on linux) to do it. By getting them into C# I can now provide a cross platform method for doing this and a graphical interface. It will also allow me to incorporate these utilities into the progress bar at some point.
For now, this is mostly going to be for curiosity sake, or in case you need to pull stuff out of your Nandroid backups. It's pretty interesting to look at the boot.img file and some of the config files in there. The next step will be to generate themed update zip files from the system apps and the framework in the nandroid backups as requested. That was really the whole reason I did this.
I'm trying to port all the external tools to C# to simplify things and give me more control over everything. The real challenge now is signapk and zipalign, because those are the 2 external tools involved in applying themes. Signapk is tricky, because I have to port portions of the Java security library to C#. It looks like the BouncyCastle crypto library may provide a lot of what I need. Zipalign looked a little more straight forward to port.
Sorry I didn't post again today, my internet has been down since this morning. However I added the ability to apply MetaMorph themes, so hopefully that makes up for my lagging. I'll go build the release now so I can post it when I get to work tommorow.
Sent from my ERIS using XDA App
Ughh, took me like 3 versions to get it right, but it is now correctly updating the update script for the ROM in case the theme needs to copy items to the data folder or sdcard. I am very curious to hear from anyone trying MetaMorph themes with this tool. Let me know if things are working out for you.
There has been a lot of discussion on what works on ClockWorkMod v3 and what doesn't. One of the biggest problems (besides ROM installations) is how to apply existing ZIP files that don't work in CWM3 because they are outdated.
So, if you have upgraded to CWM v3 and want to use some old zips there is an answer
nubecoder in the Android Development and Hacking > Android Software Development forum came up with an excellent tool for converting the old update-script to the new updater-scrip and binary needed for CWM3
Give it a look:
http://forum.xda-developers.com/showthread.php?t=903598
Thanks for the link..
I just wish all these devs didn't always use friggin Windows!
CCrew said:
Thanks for the link..
I just wish all these devs didn't always use friggin Windows!
Click to expand...
Click to collapse
I hear ya. If I didn't need Windows for work I would be 100% linux
so how exactly do i use this?
IIDIncII said:
so how exactly do i use this?
Click to expand...
Click to collapse
Extract the zip to a folder. Run it. Select open then the zip or script you want to convert. then save it.
Great find Nils. I guess I need to convert mine.
EDIT: It converted them all perfectly, once I realized I needed to choose "Incredible" from the device menu. LOL
If you want an alternative to using the script converter I attached 2 zip files. One is for updates to the /system/app/ folder and the other is /system/framework/ folder
All you need to do is use 7zip to copy (drag and drop) your files to the appropriate sub folder in the zip file.
You can then name the zip file to whatever you like.
Sorry to muck up the thread with this question but since it's on topic... how do i flash back to the old version of CWM? since rom manager just comes up with an error...
nevermind I got one of the older 2.5 to work
This app was updated just this morning with the option to convert scripts for the incredible. I've tried it on a few zips and it works perfect
NilsP said:
I hear ya. If I didn't need Windows for work I would be 100% linux
Click to expand...
Click to collapse
I agree, if Trimble would embrace Linux I could avoid windowz for the rest of my life...
Sent from my ADR6300 using Tapatalk
Hello,
I search to unpack the boot.img to change files but impossible, I tested all, no program can unpack ... could you pleased help me ?
Thank you in advance.
The RAZR I one? Look in the development section. It will extract it very easy.
Sent from my XT890 using xda app-developers app
I don't find thé hex dump tool ans didn't understand the tuto..
Search in the dev section for:
Unpacking RAZR I boot.IMG from turl.
Our boot image isn't the same as others. There is no way u can extract things without the needed files. If u can't do anything with the topic about the boot.IMG in the dev section, I can't help u.
Sent from my GT-P5110 using XDA Premium HD app
I have find this.. But i don't understand what is the ''tool'' when you use...
can you give me all the URL of files and tool and... For editing the boot.img please ?
Thank's..
Up...
The only way (as far as i know) to unpack a boot.img from the Razr I is to use an linux powered PC. The tools in the topic that are provided need to be build first. And for it to build u need a linux (ubuntu) operating system. I will upload (when i have the time) my tools to unpack and repack the boot.img with a description on how to use them, but they only work on linux.
p.s. don't bump the post if it isn't answered in 1 day. Sometimes someone that will reply isn't online or is doing other things and didn't noticed it. If it were 3 or more days, oke. Just my opinion
Hazou
Bootimage tools
Here u go. My bootimage extract and pack package. It only works on linux. See the zip, and extract it somewhere in your linux distribution.
Instructions:
1. Put a boot.img in the root of the extracted bootimage packages (where the folders Ramdisk, Bootimage, Kernel, Tools are)
2. Execute the file extract.
3. Kernel can be found under the map kernel
4. Ramdisk can be found under the map Ramdisk/ramdisk
5. Modify your things
6. Pack the files by executing create.
Notes:
In the map Bootimage is a bootstub (bootold.img) needed for rebuilding the boot.img and some old scripts
In the map Kernel will be the extracted kernel. The file bzImage will always be used for rebuilding.
In the map Ramdisk will be the extracted ramdisk in the map ramdisk. The map 'ramdisk' will always be used for rebuilding,
In the map Tools will be the tools needed for extracting and creating.
If u have some questions about this tool, ask!
Credits to Turl1 for the tools
Hazou
I was flashing a couple of ROMS yesterday while unbricking my MateS. The C00B144 Chinese ROM as the scales app and it works well on my 64GB Mate S. I can access the scales setting pages using a short cut creator but the app itself is missing from my C470*** ROM version.
Does anyone have the ability to extract the APK and send me a link to download it please? I am sure other would appreciate it and it will prove once and for all that all Mate S Phones have the ability to use them.
Much appreciated to whoever can get this app extracted for me.
That APP is mostly useless
Thats the one. Many thanks. I know it has little use but people just dont believe a phone can weigh things.
Big thanks for sharing.
It works but it is very inaccurate!
I place an apple and it showed 360grams. I used kitchen scale (the one for making food) and it showed 220grams
Anyway, it is fun to see it in action
Sent from my HUAWEI CRR-L09 using Tapatalk
How to extract APK from the Update.App?
I unpacked the update.app with the Huawei Update unpacker but i could not find any tool to open the system.img
Sventastic said:
How to extract APK from the Update.App?
I unpacked the update.app with the Huawei Update unpacker but i could not find any tool to open the system.img
Click to expand...
Click to collapse
use ext4_unpacker
You can use "HuaweiFirmwareExtractor.exe" for extracting Huawei Update.app , when you have extract it you can use 7zip or other Tools.
When it don't work write me a pm and I look what I use for that on my pc.
What do you want make?
I must look , you can do a system Backup from system only via adb but here I must look what you must do in Terminal.