[Q] Find class and package name of any android app? - Android Software Development

How do I find what the package and class name of any of my android apps are?

You want to do this programmatically or just browsing?
You can use adb to browse tour data folders and see the apks which have the package in the name.
Also cm7 has a really nice package browser built in
From something awesome

Try this. Seems to work
http://www.androlib.com/android.app...ed:+AndrolibUS+(AndroLib+:+New+Apps+and+Games)
From something awesome

Related

[Q] Stock Graphics and how to implement them

I'm building a few apps but wanted to see if there might be a way to grab existing graphics already in the OS. Like the plus sign in the Calendar or the microphone... I'd rather not have to include the same image in the system if it's already there, and the fact that a simple theme change would make the apps I'm working on change dynamically with the new look.
Thoughts?
if the files you want to use are defined in the resource directory and can be accessed via R.java from both xml and java then there is no way to get to the files.
if the files are defined as Assets then there is a possibility for you to access them.
you will need to know the exact file path to the file you want to access.
see
http://developer.android.com/reference/android/content/res/AssetManager.html
and
http://stackoverflow.com/questions/5493396/how-to-reference-android-assets-across-packages
Exactly what I was looking for, but not what I was wanting to hear. Know of any stock graphics I can use for my res/drawables? I'm not exactly the best artist in the world and would like my apps to look somewhat like they belong.
removed
android.R.drawable is helpful but if you can't get it, just download the source. are you guys forgetting the android is completely open source? it might take you a while to find them, but they're all there.
I was sure there were some stock graphics available somewhere. Thanks SimonVT. Helped quite a bit with the ugly crayon jobs I created.
removed
SimonVT said:
That is also an option, but using native resources will ensure that it fits in with the overall OS theme.
Click to expand...
Click to collapse
oh yeah, I guess you've got a point there. I wasn't thinking about people with sense, motoblur, etc. I've only ever had stock android phones. Well, I did have a nook color for a month or two, but I installed cyanogenmod the day I got it.
this might interest you aswell. its the android icon template pack.
http://developer.android.com/shareables/icon_templates-v2.3.zip
you can read more about icon and user interface guidlines here
http://developer.android.com/guide/practices/ui_guidelines/index.html
Yeah, that's some good information as well. Following the OS standard is what I would prefer over trying to make my own or grabbing from other installed apps. It makes for the apps/widgets to flow much better in overall design theory.

Download ability?

Hello everyone,
I heard that you can't download all kinds of files on a WP8 , thus rendering you limited to a certain number of formats. (and as far as I understood there are issues with e-mail downloads and opening some files?...)
Which formats are we limited to? Is Microsoft willing to address this issue? Is it a deal-breaker or can you still use the phone? Are there any issues with download such as the ability to only view the files and not actually download them?
Many thanks,
Alex.
i would think its possible after reading this http://wmpoweruser.com/windows-phone-8-has-new-api-for-loading-music-from-apps-into-the-music-hub/
as far as downloading music files but i havent seen anyone develop anything to test it out and showcase this ability
Dunno, maybe Nokia Xpress browser can do something? ..
Deformat said:
Hello everyone,
I heard that you can't download all kinds of files on a WP8 , thus rendering you limited to a certain number of formats. (and as far as I understood there are issues with e-mail downloads and opening some files?...)
Which formats are we limited to? Is Microsoft willing to address this issue? Is it a deal-breaker or can you still use the phone? Are there any issues with download such as the ability to only view the files and not actually download them?
Many thanks,
Alex.
Click to expand...
Click to collapse
You are correct. In both email and browser, you can not download any type of file and save it somewhere. You can open a few types only, and even then, the phone will save them automatically I believe (pdf,doc,mp3).
I wish I knew what MS was thinking on this and what they are willing to do in the future. But of course, they dont say anything as far as their plans. I would love the ability to save any type of file to a folder I chose, no matter if I can open it with the phone or not. Only MS knows their thoughts on this. I wish there was someone I could contact to find out what their feelings are on it and if they are even entertaining the idea of this for the future. they are too tight lipped about future updates.
i'm using wp7.5 and i can download and open zip files.. but can't save it. After you close the zip file it's gone
we really need a file explorer
HypeZ85 said:
i'm using wp7.5 and i can download and open zip files.. but can't save it. After you close the zip file it's gone
we really need a file explorer
Click to expand...
Click to collapse
Yep. And sadly, we most likely wont get one. At least not an official one. The only way we could get one with WP7, I think you had to be able to side load apps and be interop unlocked. Not 100 percent sure on the interop part, but it basically wasnt something available to everyone. I hear people say we dont need custom roms and hacks.....sorry, but YES we do. If MS is going to lock down half the OS, then YES we absolutely need hacks and Custom ROMs.
Jola66 said:
Yep. And sadly, we most likely wont get one. At least not an official one. The only way we could get one with WP7, I think you had to be able to side load apps and be interop unlocked. Not 100 percent sure on the interop part, but it basically wasnt something available to everyone. I hear people say we dont need custom roms and hacks.....sorry, but YES we do. If MS is going to lock down half the OS, then YES we absolutely need hacks and Custom ROMs.
Click to expand...
Click to collapse
i'm confused...
if you can't download files on wp, how would i do this:
navigate to college website, login portal, download
powerpoint
notes,
zips, etc containing course materials ?
students email powerpoint slides and annotate those slides as needed to each other also.
is this not possible to do on the platform, still ?
please, this is a very -direct- process. i would prefer to keep things out of the cloud (ie skydrive, dropbox, whoever) and KEEP it a DIRECT process.
thanks !
ohgood said:
i'm confused...
if you can't download files on wp, how would i do this:
navigate to college website, login portal, download
powerpoint
notes,
zips, etc containing course materials ?
students email powerpoint slides and annotate those slides as needed to each other also.
is this not possible to do on the platform, still ?
please, this is a very -direct- process. i would prefer to keep things out of the cloud (ie skydrive, dropbox, whoever) and KEEP it a DIRECT process.
thanks !
Click to expand...
Click to collapse
I should clarify something.
If it is one of the following, I believe the phone will save it automatically once you open it. Powerpoint, PDF, Dox, exel file, text, audio. You click the link to download and the file will open. It will save automatically or you have the option to save it sometimes. Other than those file types, you cant do much with anything else.
I downloaded a ZIP file, and while I could actually open it, I had no option to save it. And when I mean download, the phone downloads it, but does not save it in a location you have access to. So without a File Explorer or MS updating the download and save file feature, we wont have access to any files except the types I listed.
Use UC brower, it can download all stuff , but you will need to upload it to skydrive to access it outside the browser.
surya467 said:
Use UC brower, it can download all stuff , but you will need to upload it to skydrive to access it outside the browser.
Click to expand...
Click to collapse
this is not a download solution. the whole point of the thread (so far) is if its possible (and how) to download files to the phone, and then access those files.
the point of downloading a file to a device is to use, edit, and store that file -on- the device.
surya467 said:
Use UC brower, it can download all stuff , but you will need to upload it to skydrive to access it outside the browser.
Click to expand...
Click to collapse
I still prefer MS change it by allowing us to have control over saving files to the phone and having access to that folder. When I need to then get those files from my phone to my computer, Skydrive doesnt help when I am working somewhere and there is no WIFI, which happens a lot for me. And no, I will not pay more to have tethering.
You can currently save office documents and also send those via E-Mail, Bluetooth, NFC (well - depends, currently only works with other Windows devices). The one notable exception currently is PDF-files that have been openend directly from the browser (if they were stored on SkyDrive it works).
You can open Zip-Files and contained files but the Zip-Files themselves are not stored.
Aside from the file types reserved for the system (there is a list in MSDN) Apps can register as compatible with those filetypes. E.g. Autodesk could create an AutoCAD-Viewer that registers for the *.DWG Filetype. If you then receive such a file via E-Mail, SkyDrive, Download, etc. and open it the according application will be launched and that application will have to take care of the file (display, storage, etc.)
If you don't have an App on the phone that can handle the filetype you can launch a search on the Store for Apps that support the filetype. Should you have multiple Apps installed that support the filetype you will be provided with a prompt that asks you what you want to do.
As far as I know that is pretty much the same way iOS handles those situations but I might be mistaken there.

App Policy FIle Collection/how to launch apps based on GUID

ssoo in Windows Phone 8, the APP GUIDS are stored in xml files that map to the real files (executables) located on the device. These files are located in "Windows\System32\Manifests" USing this info + the native Toast launcher, I can now run executables listed here. This includes executables such as "deviceUpdatePostUpdate" and various worker threads. Pretty much if it's preinstalled by Microsoft, it is here. I have been opening lots of random things on my 8x so far
For convenience, I have attached a zip of this directory. It is from the Lumia 925 Retail ATT Rom.
This is how the mapping works:
1. Open the xml file you want to work with. look for "ProductID" This is the app GUID.
2. Look for the "DefaultTask Name" property. This is what is called on launch.
Enjoy!
IF any of you have tethering blocked, see if you can get to it directly by going to app://5B04B775-356B-4AA0-AAF8-6491FFEA5629/Default
compu829 said:
ssoo in Windows Phone 8, the APP GUIDS are stored in xml files that map to the real files (executables) located on the device. These files are located in "Windows\System32\Manifests" USing this info + the native Toast launcher, I can now run executables listed here. This includes executables such as "deviceUpdatePostUpdate" and various worker threads. Pretty much if it's preinstalled by Microsoft, it is here. I have been opening lots of random things on my 8x so far
For convenience, I have attached a zip of this directory. It is from the Lumia 925 Retail ATT Rom.
This is how the mapping works:
1. Open the xml file you want to work with. look for "ProductID" This is the app GUID.
2. Look for the "DefaultTask Name" property. This is what is called on launch.
Enjoy!
IF any of you have tethering blocked, see if you can get to it directly by going to app://5B04B775-356B-4AA0-AAF8-6491FFEA5629/Default
Click to expand...
Click to collapse
Aww, you beat me . I was just about to post the GUIDs for all settings apps, file extensions, OEM specific apps, carrier apps, system preinstalled apps, etc. I also had a WP update package. No clue what it is.
Can't run most of them with just GUID/Default
sorry, but it is quite obvious. Next thread would be "App POLICY files!!", am I right?
no offense, just stating
@ultrashot, Agreed!~
It was late and I was wicked excited lol. This is a collection of app policy files that basically explain the App GUID to EXE translation for alot of stuff. Ultimately, I would like to get a list going in this thread of app://guid/commandstorun -- Description for all of this..I think it would be useful since some of these take in arguments and can be told to load other files, etc.
Ohhhh I just got a great idea.... You'll see later
snickler said:
Ohhhh I just got a great idea.... You'll see later
Click to expand...
Click to collapse
Any progress mate?
Sent from my Lumia 920 running Amber, using Tapatalk
I actually forgot all about that idea due to me getting busy with work lol. I'll start with it today and see if I can make progress
thanks
How it works so I download the file What do I do now and what APP GUIDS
Im nooooob

Way to store Preferences

Hey Guys,
I am creating a app to rename other apps via xposed and the main code is written. Now I simply want to make a interface where you can define a app to rename and then enter a new name. For the beginning I thought about a Activity where you enter the Package Name and the desired name. Later on I want to use a list view to show all apps, from where you can choose one to rename(Like App Settings etc.). To show the renamed apps I want to use a ListView. Now I am stuck with a problem: My xposed code works with an array to check and rename. The list view can be used with an array or an arraylist, but I need a way to store the preferences(which are stored in a array).
Do you have a good idea or a sample how to realise this? And does somebody know a nice App List type of thing(I googled, but the project there aren't usable with my kind of approach.)
GalaxyInABox said:
Hey Guys,
I am creating a app to rename other apps via xposed and the main code is written. Now I simply want to make a interface where you can define a app to rename and then enter a new name. For the beginning I thought about a Activity where you enter the Package Name and the desired name. Later on I want to use a list view to show all apps, from where you can choose one to rename(Like App Settings etc.). To show the renamed apps I want to use a ListView. Now I am stuck with a problem: My xposed code works with an array to check and rename. The list view can be used with an array or an arraylist, but I need a way to store the preferences(which are stored in a array).
Do you have a good idea or a sample how to realise this? And does somebody know a nice App List type of thing(I googled, but the project there aren't usable with my kind of approach.)
Click to expand...
Click to collapse
Ah the data storage problem... I think we all came across this at least once . I suppose you read this guide on the different options available? Well there are actually three options: SharedPreferences, text or csv file and SQL.
The first one would need some work around and is probably the slowest. You would save a separate string directly into the SharedPreferences (maybe in a new file to avoid collisions?) with the array name and its index somehow in the key. That's just two methods of coding but not the nicest way to do it.
The text or csv file however is the more common way, here you'd save your array in one line of the file, each item separated with a ; or some other char. Needs a bit more coding and also the WRITE_EXTERNAL_STORAGE permission on preKitKat if I remember correctly.
The third one is the nicest and most modular one. Because it makes use of SQL it needs quite a bit of knowledge and some coding (but less than the text file).
I guess for simple things that you want to do it is better to stay away from SQL for now unless you know how to use it and use the SharedPreferences.
Edit: take a look at the answers to this question, they give you the code as well... And you can use StringSets in ICS and above if the order of your list doesn't matter !
I'd say go down the SQLite DB way, chances are that if you plan on expanding your coding knowledge and want to keep creating apps you'll be needing to learn this in the future anyway so why delay?
Google AndroidHive and look at their SQL tutorial - I used it when learning and found it very informative
Sent from my HTCSensation using Tapatalk
Thank you very much! As coming from windows, first of all I thought about SQL as well, but it seems oversized for the set of data i want to store. I also took a look at the stackoverflow thread you linked. It looks easy to implement, but the need to use an external class file made me look for another way. I found this one, which works pretty well for me, as I look forward to interchange the method of saving the data with a better one using the SharedPreferences(which actually should be really easy with my code).
Maybe you can tell me yet another thing: Is there a way of declaring an object(like the ArrayList) to make it accessible from every class except from giving every class(activity) it's own "load the preferences" and "save the preferences" code block or sending intents all over the place? This would make saving much easier and allow me to update the preferences during runtime and without a reboot
Edit: This was my answer to.SimplicityApks ^^ I'll take a closer look at SQL now, since you, Jonny, told me that it' nevertheless necessary.
GalaxyInABox said:
Thank you very much! As coming from windows, first of all I thought about SQL as well, but it seems oversized for the set of data i want to store. I also took a look at the stackoverflow thread you linked. It looks easy to implement, but the need to use an external class file made me look for another way. I found this one, which works pretty well for me, as I look forward to interchange the method of saving the data with a better one using the SharedPreferences(which actually should be really easy with my code).
Maybe you can tell me yet another thing: Is there a way of declaring an object(like the ArrayList) to make it accessible from every class except from giving every class(activity) it's own "load the preferences" and "save the preferences" code block or sending intents all over the place? This would make saving much easier and allow me to update the preferences during runtime and without a reboot
Edit: This was my answer to.SimplicityApks ^^ I'll take a closer look at SQL now, since you, Jonny, told me that it' nevertheless necessary.
Click to expand...
Click to collapse
Welcome
You mean you want to make your ArrayList, which is an instance variable in the activity, accessible to every other class within your package without having an instance of your activity at hands? Well the basic solution would be to make the ArrayList static. But that is not recommended because it won't be created and garbage collected at the same time as your activity and also it's not a nice way .
If you had an instance of the activity it would be just using a public getter for it, but without I'd put your ArrayList into a separate class following the Singleton pattern. That way you have only one global instance which contains the ArrayList.
Thanks again for your reply! I changed my mind about the ArrayList and created a method, where everything is stored in the SharedPreferences and the ArrayList's only purpose is the use with the ListView and Adapter. This way I don't have to write the ArrayList to the SharedPreferences and changes will be much easier to control. Although I had to implement another type of save/load method to interact with the class thats being loaded by xposed. That was needed because of the restriction that you can only load SharedPreferences with a context, which my class doesn't have. It's an inconvenient way, but it works

Capetown 945 how to enable app while driving

Hi,
I have a Blaupunkt Cape Town 945 running Android 4.1.1.
I want to use Google Maps for navigation instead of the preinstalled software that comes with this unit.
I've successfully installed the app on the device but the moment I release the handbrake the app closes and I get a message that it isn't safe to use while driving. How do I get around the security restrictions?
I would assume your Blaupunkt somewhere has a list (config file, xml file, internal file in assets in some central server like app) of allowed apps during driving, to prevent you from doing dangerous things during driving like texting, apping, gaming, etc.
Presumably Google Maps is not on the list of allowed apps. The minute you start driving the not-allowed apps are all killed.
You could of course drive with the handbrake on
You need to know the package name of the other allowed apps like the current navigation app or radio. When you have that package name you can first search your system if it is an ascii like text config file containing that string.
If that is not the point you need to decompile what you think is "looking like" a controlling central app and check its internals for the list.
If you find that list you could at the package name for google maps (com.google.android.apps.maps) and recompile the apk.
surfer63 said:
I would assume your Blaupunkt somewhere has a list (config file, xml file, internal file in assets in some central server like app) of allowed apps during driving, to prevent you from doing dangerous things during driving like texting, apping, gaming, etc.
Presumably Google Maps is not on the list of allowed apps. The minute you start driving the not-allowed apps are all killed.
You could of course drive with the handbrake on
You need to know the package name of the other allowed apps like the current navigation app or radio. When you have that package name you can first search your system if it is an ascii like text config file containing that string.
If that is not the point you need to decompile what you think is "looking like" a controlling central app and check its internals for the list.
If you find that list you could at the package name for google maps (com.google.android.apps.maps) and recompile the apk.
Click to expand...
Click to collapse
This is very old post, but i have the same problem.
Has someone managed to figure out the location of the allowed apps configuration file?

Categories

Resources