Questions tagged [android-applicationinfo]

ApplicationInfo class contains information about an Android application, corresponding to the information in the application manifest.

Information you can retrieve about a particular application. This corresponds to information collected from the AndroidManifest.xml's <application> tag.

See ApplicationInfo reference.

140 questions
5
votes
5 answers

Android Application Name getting truncated

My Application name is being truncated in some of mobiles is there any solution to show full name in all mobiles?
Manju
  • 720
  • 9
  • 23
4
votes
3 answers

How to Block an Android Application from using a Permission

If an application has the "android.permission.CAMERA", and I wanted my app to block the use of this permission when it tries to access the Camera Hardware,"for security reasons" how could I block the process? *NOTE: Let's assume that My app has all…
Abdullah Rasheed
  • 3,562
  • 4
  • 33
  • 51
4
votes
1 answer

How to make my app become system app?

I want to make my app become system app programmatically. I managed to do it in my phone with root and busybox. any idea how achieve this without busybox? Runtime.getRuntime().exec(new String[] { "su", "-c", "mount -o rw,remount -t yaffs2 /system; "…
Jason
  • 878
  • 2
  • 9
  • 21
4
votes
3 answers

How do I read the Android Manifest without using PackageManager?

I am working on an Android application that requires more information than what is available in the PackageManager (such as intent filters). I have created a parser for reading the AndroidManifest file, but I cannot find the location of the…
4
votes
2 answers

Retrieving application information from package manager

Is there any way to pull an ApplicationInfo object from the PackageManager? I have tried many different types of methods to achieve this, but to no avail. I'm currently working on the default android launcher screen (Application Drawer) and would…
JoxTraex
  • 13,423
  • 6
  • 32
  • 45
4
votes
0 answers

How hike(version- 4.6.0.86) is showing floating action button on whatsapp application

I just started my whatsApp messenger, it shows floating action button of hike with loads of stickers. WhatsApp version: 2.12.250 hike Version : 4.6.0.86 Android Phone : Moto E(5.0 Lollypop). What kind of permission hike is using to show his…
Lokesh Tiwari
  • 10,496
  • 3
  • 36
  • 45
4
votes
2 answers

Package dependencies in Android apk files

I am performing Android app reverse engineering (decompilation and further analysis). I wish to analyse the package dependencies between different packages inside the same apk file. Is there any tool which does this? Else, how can I deduce package…
4
votes
2 answers

How to pull List of installed App name, package name and icon drawable

I'm trying to figure out how i can implement this code into my existing source code. Currently i have some source that displays a list-view of all the installed apps and on-click will send intent to the application. I'm needing some support on how…
3
votes
0 answers

W/ResourceType: ResTable_typeSpec warning on using PackageManager.getApplicationInfo()

In my android application i am calling the following function many times inside a loop for getting label/name of the application : public String getName(int uid){ String packageName=packageManager.getNameForUid(uid); ApplicationInfo…
DeMoliT1on
  • 31
  • 2
3
votes
1 answer

Upload playstore free and paid application country wise

Can you release same APK file for free in India and Paid in some other countries? If yes then how? I have searched and found that we need to release two different apk's for similar situation.
Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142
3
votes
1 answer

Adding a message box with Ok button inside an onCLickListener()

I am trying to add an Ok button by following a post and tried that code but somehow it shows me an error Builder (android.content.Context) in builder cannot be applied to (anonymous android.view.View.onClickListener) Here is my…
desperateStudent
  • 81
  • 1
  • 1
  • 8
3
votes
1 answer

Getting name of original .APK file in Android

I am trying to figure out how to get the name of the original .apk file from which an application was installed. I know that you can retrieve the package name and the source directory of the installed application by using the ApplicationInfo class…
Willis
  • 5,308
  • 3
  • 32
  • 61
3
votes
0 answers

Android - getapplicationinfo() nullpointerexception

My app should just access and display a sql database. When i try to run it on the emulator the app stopps und the logcat says the following: 12-14 17:15:14.330: D/AndroidRuntime(3558): Shutting down VM 12-14 17:15:14.389: E/AndroidRuntime(3558):…
flixe
  • 626
  • 1
  • 11
  • 36
3
votes
1 answer

Using ApplicationInfo.FLAG_SYSTEM to filter out System Apps

I am using following code to differentiate between User Installed App and System App: final PackageManager pm = getPackageManager(); List packages = pm.getInstalledApplications(PackageManager.GET_META_DATA); for (ApplicationInfo…
Faheem
  • 509
  • 2
  • 7
  • 23
3
votes
2 answers

Android Camera : Does it have a unique package name?

I am building an app that auto sorts installed apps and allows the user to launch those apps. I just ran into a small issue with the camera app. When I scan through the installed apps with 'queryIntentActivities' for 'ResolveInfo' I get the gallery…
1
2
3
9 10