Android :: Extracting Zip / Tgz Files
Jul 20, 2010anyone knows how to extract zip files/tgz files in Android? i tried Astro File Manager but it does not work.
View 5 Repliesanyone knows how to extract zip files/tgz files in Android? i tried Astro File Manager but it does not work.
View 5 RepliesI'd like to extract classes.dex from an APK file. I've tried using aapt, but I can't see an option for extracting the files. When I run the aapt tool without options it prints out the list, dump, package, remove, add and version commands, but it doesn't seem to me like any of them extracts files. Could someone please tell me which options I would have to use to do it?
so the story behind this mini-tutorial is that I live with other people that have Galaxies and I upgrade their phones periodically, as part of the upgrade process I have to wipe the phones and a nandroid backup doesn't always work (like if you go from 1.5 to 1.6.3.4) and with the wipe some important things are lost: APN settings, Hebrew fonts, Hebrew Keyboard, etc.I have to install the keyboard, fonts, script utility, etc. every time on every phone; some of these apps are in the market, but to use the market you need to do the setup wizard to add your Google account to the phone. And sine sometimes the owners of the phones aren't around, I need to have the .apk files with the apps I need to install so I can do it without downloading them from the market. Hence, I had to figure out a way to extract the .apk files from my phone so I could install them on theirs. Here's how it's done:Prerequisites:
- Android SDK
- Android USB driver
how to extract an .obb file so that one can edit the contents. In my other thread [URL] where I was trying to figure out a way to activate the Japanese vocal track in Final Fantasy IV with the game's locale in the US/English. I've hit an impasse as I've been able to deduce that the Google play version of the game (which seems to have a 15mb .apk, and a 400+mb .obb ) retains the Japanese audio track but only plays it in conjunction with JP text if the Android locale/language is Japanese. Thus, I figure that somewhere in that .obb there will be the JP audio track file which I can copy over the English audio track file and thereby access Japanese audio w/ English text since SquareEnix didn't give us the option for some god-awful reason.
However, the only way this can work is if I can get into that .obb file! I saw links elsewhere on the forum suggesting that all I had to do was rename the .obb to a .zip or .rar, and then use 7zip or WinRAR to open it, but attempts with both programs and numerous file types (.zip, .rar , .tar etc..) all report that the file is not an archive and thus cannot be opened. This is different from the .apk file, which easily seems to (upon rename to zip) unveil its secrets with 7zip extraction. So, does an program or method necessary to unpack/extract/read/edit an .obb file besides the simple archive rename? Is there some Android development program or function?
i trying to extract audio from a apk. I decompiled but did not see audio files. Is this possible?
View 2 Replies View RelatedI want to use colors from a Theme to apply it to HTML my app is rendering. I am wondering if I can do that? I am looking to use colors like they are specified in themes.xml: <itemname = " color Fore ground">@android:color/bright_foreground_dark</item> name =" colorBack ground " >@android:color/background_dark</item> <item name ="textColorPrimary" >@android: color/primary_text_dark</item> I get this as a result: I/System.out( 1578): tv.string=null I/System.out( 1578): tv.coerced=#ffffffff I/System.out( 1578): colorResourceId=-1 I/System.out( 1578): tv.string=res/color/primary_text_light.xml I/System.out( 1578): tv.coerced=res /color/primary_text_light.xml I/System.out( 1578): colorResourceId=-16777216 The results are different. The first one actually gives me the color "#fffffff" which would work for me, the second one only gives me an xml. Do I need to jump through a few more hoops here to resolve the actual color? Does my original intention work at all? Maybe it won't work, because colors could be arbitrary drawables? I didn't find any relevant documentation, but if you know any, just point me there please. Btw. I also tried obtainStyledAttributes(), but this had basically the same issues. ou received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 5 Replies View Relatedguys, is it possible to extranct html content from webview component/ class? I wanna show an img file from getting rid of <img...> tag from html of webivew.
View 3 Replies View RelatedI have this code: protected void onListItemClick(ListView l, View v, int position, long id)
super.onListItemClick(l, v, position, id);
Log.i(TAG, "The id of the selected note is " + id);
Intent editNote = new Intent(this, TaskEditActivity.class);
editNote.putExtra(TasksDBAdapter.KEY_ID, id);
startActivityForResult(editNote, EDIT_TASK_REQUEST);
}And this code that retrieves the extra FROM A DIFFERENT ACTIVITY: if (savedInstanceState != null) { id = savedInstanceState.getLong(TasksDBAdapter.KEY_ID); Log.i(TAG, "Id of note = " + id);In the first code snippet, Logcat says: The id of the selected note is 2, but in the second code snippet, Logcat says: Id of note = 0. What just happened here? Any solutions to this VERY annoying problem.
my app downloads a zip with about 350 files. A mix of JPG and HTML files. The function i wrote to do it works just fine but the unzipping takes for ever. At first i thought the reason might be that writing to the sd-card is slow. but when i unzip the same zip with an other app on my phone it works much faster. is there anything that i could do to optimize it?
here is the code:.................
I'm just about to start externalizing all my String-resources to a new project and then bring them back by including the exported jar-file of this 'i18n'-project. Doing so i18n for different languages becomes easier (I could simply export just a handful of languages to the jar). can successfully change the java-references to the outsourced foo.bar.i18n.R.java BUT, all references of the xml-layouts fail Sample: ############ android:label="@string/app_name"> ############ where: "@string/app_name" is now unknown =/ I'm asking myself whether this is possible and how to resolve my issue / properly reference the externalized string-resources.
View 6 Replies View RelatedI just finished Final fantasy 4 (android), and I wanted to have the remastered soundtracks from it. But on the internet the remastered version is not available yet, I could only find the old soundtracks.
I tried screencast recorder, z screen recorder etc(to record video+audio then extract audio), but they all record audio from the microphone, so that didn't work out. is there a way to extract the audio from the game somehow, or some on screen audio recorder for android devices?
I'm writing a simple program where it scans the installed apks. It returned an apk like: org.myapk.MyApp. Okay, now, I would like to calculate a hash (md5, crc32, sha1, sha256, no matters.. ) from this apk. How can I proceed? Its possible because any antivirus does it.
View 1 Replies View RelatedI had a bunch of code in an activity that displays a running graph of some external data. As the activity code was getting kind of cluttered, I decided to extract this code and create a GraphView class:
public class GraphView extends LinearLayout {
public GraphView(Context context, AttributeSet attrs) {
super(context, attrs);
LayoutInflater inflater = (LayoutInflater)
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.graph_view, this, true);
}
public void start() {
// Perform initialization (bindings, timers, etc) here
}
public void stop() {
// Unbind, destroy timers, } }
Moving stuff into this new LinearLayout-derived class was simple. But there was some lifecycle management code associated with creating and destroying timers and event listeners used by this graph (I didn't want this thing polling in the background if the activity was paused, for example). Coming from a MS Windows background, I kind of expected to find overridable onCreate() and onDestroy() methods or something similar, but I haven't found anything of the sort in LinearLayout (or any of its inherited members). Having to leave all of this initialization code in the Activity, and then having to pass it into the view seemed like it defeated the original purpose of encapsulating all of this code into a reusable view. I ended up adding two additional public methods to my view: start() and stop(). I make these calls from the activity's onResume() and onPause() methods respectively. This seems to work, but it feels like I'm using duct tape here. Does anyone know how this is typically done?
Shortly after rooting, my voice search and google maps got corrupted. How do I extract these out of the stock rom? Or is there a place to get these already extracted?
View 2 Replies View RelatedIs there an app that can do this? I am trying to extract petes latest Rom from a rar file he posted but can't extract on my phone and don't have access to a pc right now. What gives? Why would he post in a format that cannot be extracted on the phone itself? I have a hard time believing this can't be done.
View 12 Replies View RelatedMy Dinc is 2.2 rooted s-off. I have an app on the phone that I would like to extract it as an apk for future use. Can anyone offer me some instructions on getting this done?
View 8 Replies View RelatedI was wondering if there is a way to way to extract set of functions associated with each permission for all android permissions available on Manifest.permission | Android Developers.
View 3 Replies View RelatedI've been trying to restore my sms-es from a nandroid backup. Apps like appextractor do not work as my backup was made using the new method introduced in CWM 6. The data files are store in a file called data.ext4. is there anyway to extract my data?
View 9 Replies View RelatedSo I extract any APK, and then go into "Res" folder, but all I see is the icon for the apk.
Where are the rest of images?
- I also have "show hidden files" on my pac/pc turned on.
i placed some new apps to my sd card from my pc i have a file manager app and need to know how to extract it and where to put it on the phone
View 3 Replies View RelatedSorry I am a bit of a newbie on phones.I kept with my Motorola 1000 till I got a Desire. On this phone on the SIM card I could store several numbers for each contact/person.I swapped the SIM card into the Desire, and all the first number for each contact is there, but I can find no way to access the other numbers e.g. landline that I had against each contact/person.Does anyone know where I am going wrong?
View 8 Replies View RelatedSo I know how to extract APKs with APK manager.
However, I want to know, when you extract APKs, where are the images of the APK located?
In which folder when you extract the APK files, are the images?
- It used to be easier back in the day, you would extract and all the images would just be there.
i have stumbled into sharp's official rom update for SH-06D NERV, this is an Android 4.0.4 (ICS) update.
http:[url]....
i tried downloading it but the update file seems encrypted. is there any way to extract this one? these would be great for those who needs official apps based on ICS for porting and creating themes.These are the list of files i got from extracting the 693 MB zip file:
disclaimers.txt
disclaimers_en.txt
DOCOMO_SH-06DNERV_Image.xml[code].....
I am trying to reverse engineer an existing android app and understand how a particular UI is constructed. I've found that I can rename the apk to zip and view some of the compiled source. The res/layout directory is populated with all the xml files that define the UI, but while they do have the xml extension, they are not in XML format. Is there anyway to convert these files back to text based markup?
View 2 Replies View RelatedSo I downloaded a couple different colors of the Nexus style Live wallpapers, and I want to install them with the Cyanogen 5.0.5 i am running. Is there a certain way to do this or is it as simple as putting the files on the sd card and extracting the .zip?
View 3 Replies View RelatedCan anybody advice what is the recommended directory to store files generated by your application: audio files, video files or some images.
If the phone contains SD card, it is clear that files should be saved there, but if there is no any external storage. where would you recommend to save to?
I wrote an app that downloads web sites and all their assets (images/stylesheets) to "disk" and therefore stores lots of small files on the SD card.
Sometimes it fails to delete large amounts of files and afterward the file system is r/o. To analyze that behavior I tried to do the removal of the files by hand and then go from there. But that already failed.
localhost:~ mkamp$ adb -d shell mount [.. some mounts ..] /dev/block/mmcblk0p1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8 0 0 --> R/W
Last login: Wed Mar 18 19:41:49 on ttys005 localhost:~ mkamp$ adb -d shell rm /sdcard/newsrob/a* [.. minutes of silent deletes ..] rm failed for /sdcard/newsrob/a2aade03616c28b30_113.png, Read-only file system localhost:~ mkamp$
localhost:~ mkamp$ adb -d shell mount [.. some mounts ..] /dev/block/mmcblk0p1 /sdcard vfat ro,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8 0 0 --> R/O now
The log contained nothing but the usual gc output and random WiFi status changed mumbo jumbo.
Anybody else seeing this behavior?
There were 6.500 files in that directory. Might that be the problem? I don't access the files with queries, I always have the exact name.
I am working on an android app. Where i need to parse some plist files from assets folder. I do understand how to use assets in android but now problem is that file sizes are more than 1MB and so android gives error Data Exceeds UNCOMPRESS_DATA_MAX (2183588 vs 1048576). how to access such larger files from assets? Also I cant reduce a file into small buffers because i am just sending it to "DocumentBuilder.parse(in)" as a whole so can not use buffer. The error is on line: Document doc = db.parse(in).
View 1 Replies View RelatedI am trying to overlay route data in KML files on a MapView.
The following code works great:
CODE:................
The only problem I have with this is that I don't need to re download these KML files every time. I have about 10-15 KML files that will rarely change. Also since it has to connect, download, and parse these each time there is a delay in opening the maps.
It would make a lot more since for me to save these as a local resource and have the URI reference it there. Is there a way to construct a URI using the geo: scheme and have it point towards a local resource?
It looks like file:///sdcard support was included in 2.1. The only reference I could find to it was at the end of this bug report thread. I am currently at work and don't have time to play with this yet but I would like to figure it out later. I feel like there are a lot of people on stackoverflow and elsewhere who would really appreciate a reasonable way to do this.
To android working on eclipse with android 1.5 r2 version when i am running a basic program its showing a error .apk file not found.
View 2 Replies View Related