android-package-managers

Fully change package name including company domain

心不动则不痛 提交于 2019-12-03 04:28:36
问题 Let's suppose this is the package name: package com.company.name . How do I change company ? P.S. I saw how to change name but not company . I am using Android Studio. 回答1: You can do this: Change the package name manually in the manifest file. Click on your R.java class and the press F6 (Refactor->Move...). It will allow you to move the class to other package, and all references to that class will be updated. reference: How do I rename the android package name? 回答2: current package : com

how to use queryIntentActivityOptions() method

倾然丶 夕夏残阳落幕 提交于 2019-12-02 22:44:56
问题 Am trying to create a dialog that shows all applications in a user phone that can be used to select a picture from the storage or take one using the camera. below are my two intents that am planning to use. Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType("image/*"); Intent takePicture = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); The best way i have found to populate my listview in my customized dialog with applications that can perform the above actions

How to find all the packages included in an apk

纵然是瞬间 提交于 2019-12-02 21:52:52
问题 I am involved in reverse engineering android apps (using apktool and androguard). I wish to find out all the packages included in an apk. The package may include the main application code, ad library (such as ad sense, inmobi, mobclix etc.), social SDK (such as facebook, Google etc.), Analytics (flurry, Google analytics etc.) or any other support lib. Please let me know if there is any tool / anyway to do this. If tools are not currently available, I intend to develop one, please help me by

Fully change package name including company domain

你离开我真会死。 提交于 2019-12-02 17:50:10
Let's suppose this is the package name: package com.company.name . How do I change company ? P.S. I saw how to change name but not company . I am using Android Studio. Luch Filip You can do this: Change the package name manually in the manifest file. Click on your R.java class and the press F6 (Refactor->Move...). It will allow you to move the class to other package, and all references to that class will be updated. reference: How do I rename the android package name? current package : com.company.name New package : com.mycomapny.name Steps: 1) Suppose you are at this screen which is shown

how to use queryIntentActivityOptions() method

那年仲夏 提交于 2019-12-02 13:20:02
Am trying to create a dialog that shows all applications in a user phone that can be used to select a picture from the storage or take one using the camera. below are my two intents that am planning to use. Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType("image/*"); Intent takePicture = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); The best way i have found to populate my listview in my customized dialog with applications that can perform the above actions is to use queryIntentActivityOptions() method but am stucked. i have never used it before and i don't

How to find all the packages included in an apk

拥有回忆 提交于 2019-12-02 09:22:11
I am involved in reverse engineering android apps (using apktool and androguard). I wish to find out all the packages included in an apk. The package may include the main application code, ad library (such as ad sense, inmobi, mobclix etc.), social SDK (such as facebook, Google etc.), Analytics (flurry, Google analytics etc.) or any other support lib. Please let me know if there is any tool / anyway to do this. If tools are not currently available, I intend to develop one, please help me by advising on this . EDIT: I have used dex2jar, ded and dare decompilers. All of these will produce the

Package Installer crashes in Android M after requesting permission READ_SMS

浪子不回头ぞ 提交于 2019-12-02 00:06:09
I have a Login Fragment that tries to access (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE); this works well with devices up to Lollipop 5.1. And when I tried it in Marshmallow 6.01 it showed security exception. So I added code from android docs to request permission on runtime. Here is the code int permissionCheck = ContextCompat.checkSelfPermission(getActivity(),Manifest.permission.READ_SMS); if (permissionCheck != PackageManager.PERMISSION_GRANTED) { // Should we show an explanation? if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(),

Package Installer crashes in Android M after requesting permission READ_SMS

混江龙づ霸主 提交于 2019-12-02 00:04:14
问题 I have a Login Fragment that tries to access (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE); this works well with devices up to Lollipop 5.1. And when I tried it in Marshmallow 6.01 it showed security exception. So I added code from android docs to request permission on runtime. Here is the code int permissionCheck = ContextCompat.checkSelfPermission(getActivity(),Manifest.permission.READ_SMS); if (permissionCheck != PackageManager.PERMISSION_GRANTED) { // Should

Difference between ApplicationInfo and PackageInfo?

拟墨画扇 提交于 2019-12-01 15:46:28
I have several general question about ApplicationInfo and PackageInfo classes. Here they are: Can someone describe the difference between ApplicationInfo and PackageInfo? How do they correlate with each other? In which cases ApplicationInfo is used and when PackageInfo is used? Thank you for the help! EDIT: First of all, before posting such a question I've read official documentation and googled. Here are some additional questions that are unclear to me. Sorry, maybe I did not ask them appropriately: PackageInfo can have ApplicationInfo object with NULL value. When it is possible? (I guess

Difference between ApplicationInfo and PackageInfo?

。_饼干妹妹 提交于 2019-12-01 13:50:34
问题 I have several general question about ApplicationInfo and PackageInfo classes. Here they are: Can someone describe the difference between ApplicationInfo and PackageInfo? How do they correlate with each other? In which cases ApplicationInfo is used and when PackageInfo is used? Thank you for the help! EDIT: First of all, before posting such a question I've read official documentation and googled. Here are some additional questions that are unclear to me. Sorry, maybe I did not ask them