Can we deactiviate application persmissions? - Java for Android App Development

Hey guys,
I am doing a project and I was wondering if I root my phone and get all the permissions from the phone using package manager, would I be able to turn off or deactivate some permission within the application. For example, some applications contains too many permission and I just want to test if it achievable to block or disable some of the application.
Would it be simply as to modify the manifest xml file and delete the line of the permission.
Any advice would be greatly appreciated.
Thank you.

Related

android editor

Is there a editor for the android systems like there was for the WM devices. Something that allows you to change system settings .ie turn of proximity sensor. I used Astro but it didn't save my changes.
gsm.proximity.enable=false
I changed it to true and it didn't save it and I removed it completely and it didn't save it. I just need to be able to change some system stuff.
Sure, any terminal will do this, but you need to be rooted and have superuser access.
I am rooted and have superuser . I have tried astro and root explorer. S o how do I disable proximity. Someone please help.

[Q] Fix DNS Facebook, we need an developer to help

Hi everybody.
I'm come from Vietnam, where the Facebook is now banned.
We need someone to write a program to update the host file in /system/etc/ by just a touch.
Please copy the IP from http://armabloggin.com/2009/07/facebook-dns-block-fix/
to the host file (like AdFree program).
We cannot edit this file by Astro because it read-only. We don't know how to S-OFF our Android.
Thank you so much.
I thought that AdFree is for rooted phones only.
Here's the host file
I've modified the host file for you but I don't think you can get much further until you root your phone, giving yourself access to system/etc/ where the "hosts" file is for replacement.
Remove the .txt extension and replace it with your hosts file in /system/etc/ after rooting.
If your phone cannot be rooted at http://unrevoked.com/ have a look on the sub forum here for your phone.
As previously stated, changing any system file is impossible without root.
Why can't you use a one-click-rooting program? There are plenty around that work for quite a lot of phones. If that doesn't work there will be device specific guides available, unless it's a phone that can't be rooted (is there any?).
Sorry, I've already root the HTC Desire by Unrevoked.com and have RA-recovery.
I mean that I don't have S-OFF in my device.
I also used Astro to copy the host file to SD Card and edited it. But I cannot replace the host file to system/etc/.
So I need you help write a mini-soft like AdFree.
Have you tried using adb to push the hosts file (in recovery) or root explorer? No need to S-OFF.
I think a soft will easy to use for everyone, don't need experiment in adb, root or s-off.
Anyone developer can make it easy?
Sent from my HTC Desire using Tapatalk
I think the problem is that you didn't mounted the system partition. Try ES FileExplorer, it can work as root and can mount partitions
Sent from my GT-I5700 using XDA Premium App
Hi,I am vietnamese too,if you can't root your phone you can follow the full instruction on tinhte.vn forum.
I whipped this up for you.
It doesn't look great but it does the job. Put the 'hosts' file on your sdcard (not in any folder) that you want to move and rename it 'hosts.txt'. Then run the app and press the button. You'll probably need to reboot afterwards.
Enjoy.
This doesn't back up the hosts file on your phone so you may want to do that manually.
[YOU NEED ROOT ACCESS]
Thank you so much.
Meltus said:
I whipped this up for you.
It doesn't look great but it does the job. Put the 'hosts' file on your sdcard (not in any folder) that you want to move and rename it 'hosts.txt'. Then run the app and press the button. You'll probably need to reboot afterwards.
Enjoy.
This doesn't back up the hosts file on your phone so you may want to do that manually.
[YOU NEED ROOT ACCESS]
Click to expand...
Click to collapse
Dear Meltus,
Firstly, I thank you very much to write this apk for me. You're so kind.
But it's maybe something wrong!
I install your apk, put the hosts.txt in SDCard (in the root, not in any folder).
Then run the app and press the button, reboot afterwards.
I used Astro to view the hosts file. But this file is error. It has 0 byte and can be read.
Please fix it. Thank you so much, again.
P/S: Maybe you make an options to chose folder of hosts file.
Further, you can develop this apk to change any file of system by chose the source and destiny paths.

[Q] Permissions - Browser version 2.2

Hi,
How can I change permissions for Browser version 2.2? I went under Task Manager>Browser>Application info
-Thanks
Can you be more specific with what you're trying to do?
Sent from my Galaxy Tab using Tapatalk
As "standard" there is no official way to selectively amend an applications permissions - when you install an app, you either grant the permissions it requests, or you simply don't install.
The AndroidManifest.xml file for each application determines which permissions the application requests, and there may be some limited mileage in try to amend this prior to an install, though since you wouldn't be able to sign the amended APK with the original authors key, it may end up causing problems.
This thread may help you, as it details an application that amends an apps permissions - I've not tried it myself, so I can't comment as to its efficacy.
Regards,
Dave

[Q] What does root give me and how do I use it

This is my first time rooting a phone and I’m trying to understand what power I exactly have now. I equate having root access to having admin access to a Windows PC. Is this correct?
I successfully gained root access via towelroot and confirmed with root checker. My goal is to stop Motorola from bugging me to upgrade to 183.46.15. When I use ES File Explorer to navigate to system/priv-app and attempt to delete 3c_ota.apk I get an error that I can’t delete it. I can rename it, but that does not remove the notification that I have a system update ready to install. I believe this is because the OTA service is still running. I also renamed the .odex file and that didn’t help either.
So, I was under the assumption that with root access I could just uninstall any app I wanted, especially pre-installed crap-ware by Moto and Verizon. Or at the least navigate to these .apk filed and delete them.
Please help me understand what root access gives me and how I can use it to do what I want to this phone.
TheAscension said:
This is my first time rooting a phone and I’m trying to understand what power I exactly have now. I equate having root access to having admin access to a Windows PC. Is this correct?
I successfully gained root access via towelroot and confirmed with root checker. My goal is to stop Motorola from bugging me to upgrade to 183.46.15. When I use ES File Explorer to navigate to system/priv-app and attempt to delete 3c_ota.apk I get an error that I can’t delete it. I can rename it, but that does not remove the notification that I have a system update ready to install. I believe this is because the OTA service is still running. I also renamed the .odex file and that didn’t help either.
So, I was under the assumption that with root access I could just uninstall any app I wanted, especially pre-installed crap-ware by Moto and Verizon. Or at the least navigate to these .apk filed and delete them.
Please help me understand what root access gives me and how I can use it to do what I want to this phone.
Click to expand...
Click to collapse
UNLOCK YOUR BOOTLOADER.
The OTA most likely downloaded and is being stored in your cache directory(?). You need to delete it.
ATTACK said:
UNLOCK YOUR BOOTLOADER.
The OTA most likely downloaded and is being stored in your cache directory(?). You need to delete it.
Click to expand...
Click to collapse
Yes, I'm planning on unlocking the bootloader but at this point I really just want it to stop telling me that I have a system update to install. Are you saying that if I find the OTA and delete it I will be free of this notification?
Also, I want to be able to go through the list of installed apps and uninstall at will. Why can't I do that if I have root?
TheAscension said:
Yes, I'm planning on unlocking the bootloader but at this point I really just want it to stop telling me that I have a system update to install. Are you saying that if I find the OTA and delete it I will be free of this notification?
Click to expand...
Click to collapse
Yes, if the OTA has downloaded on your device, you will need to either delete it or install it to stop the pop-ups.
TheAscension said:
Also, I want to be able to go through the list of installed apps and uninstall at will. Why can't I do that if I have root?
Click to expand...
Click to collapse
Are you using a root explorer with superuser rights?
I second ATTACK. You will need to disable the updater (blur_update or something similar but there's no mistaking when you load up Titanium Backup, they occasionally show the information - any debloaters will take care of it if you know how to use it.) and delete update.zip in /cache as recent .15 is a point of no return. Then to unlock the bootloader, grab Motopocalypse APK.
In short, about "Superuser", it means you have the complete permission to do whatever you want after rooting. Just be careful, as power comes with responsibility.
ATTACK said:
Yes, if the OTA has downloaded on your device, you will need to either delete it or install it to stop the pop-ups.
Click to expand...
Click to collapse
I checked the cache directory and there's nothing in it. I'm not sure where to look for.
ATTACK said:
Are you using a root explorer with superuser rights?
Click to expand...
Click to collapse
By a "root explorer", you mean like ES File Manager where I can navigate through system directories? Then yes. However, I do not know how to use it with superuser rights.
Touch Tools in ES file explorer, then Root Explorer and grant the permission once Superuser toast appears. And you will want to touch "Show hidden files". Then look around in /cache, now that the Superuser permission is granted to ES file explorer. Android OS typically hide some files if you're not rooted.
Dr. Mario said:
Touch Tools in ES file explorer, then Root Explorer and grant the permission once Superuser toast appears. And you will want to touch "Show hidden files". Then look around in /cache, now that the Superuser permission is granted to ES file explorer. Android OS typically hide some files if you're not rooted.
Click to expand...
Click to collapse
Ok I got it figured out. I navigated to the cache directory and renamed the OTA with a .BAK extension. Problem solved. Here's a question now that I've gone through the process. Is a program like SuperSU required to prompt the "Superuser toast"?
Also, if I want to uninstall pre-installed apps like Audible, how would I do so? I can certainly delete the APK, but does that actually remove all other associated files? I know in Windows it's good to go through the actual uninstall process so that all associated files and registry entries are removed as well.
TheAscension said:
Is a program like SuperSU required to prompt the "Superuser toast"?
Click to expand...
Click to collapse
Yes.
TheAscension said:
Also, if I want to uninstall pre-installed apps like Audible, how would I do so? I can certainly delete the APK, but does that actually remove all other associated files? I know in Windows it's good to go through the actual uninstall process so that all associated files and registry entries are removed as well.
Click to expand...
Click to collapse
Navigate to the /system partition > /app & /priv-app folders and either delete or rename(.bak) the app/s you would like to "uninstall" then reboot.
Fantastic! Many thanks to you both. I accomplished my goals and learned a lot in the process.
You're welcome. Also, Superuser toast is there for security reason; if the suspicious program tries to access the su binary, you would catch the suspicious app in its track and permanently deny it of the permission. That's the beauty of Superuser app - you get to choose which app to be allowed to use the superuser permission.

[Q] Help-a-newbie: installing apps...

Hello,
As mentioned in the subject I am trying to install an application without success, and need some help understanding how to carry out some of the necessary steps...
The app in question is the S5 accuweather application (with the transparency option for the widget), which I have downloaded from these forums (link below)... in the same post as the link to download, the following is stated:
Delete ChnUnifiedDaemon and CMAWeatherPhone2013 from System/app
Click to expand...
Click to collapse
...this might as well be written in Chinese... I did give it a shot though, but didn't get very far - I found the relevant directory with the current weather app installed (i.e. in the system/app directory), but if I try to delete the app which is there it tells me I don't have the permission... ditto for copying in the downloaded app into that directory - I don't have the necessary write permission in the directory...
also, there is an option for activating Full Screen Settings... for this I have to do the change the following value:
SEC_FLOATING_FEATURE_SETTINGS_SUPPORT_FULL_SCREEN --> To TRUE
...where do I find this string, and how can I edit it??? do I need a specific app for it?
Thanks in advance for your help
________________________
S5 accuweather thread: http://forum.xda-developers.com/showpost.php?p=58370203&postcount=27
You need to be rooted.
Lennyz1988 said:
You need to be rooted.
Click to expand...
Click to collapse
I am rooted, and have flashed a custom ROM (imperium )... and thats about the limit of my capabilities. ...
You need to mount r/w. Any decent file browser can do that.
Lennyz1988 said:
You need to mount r/w. Any decent file browser can do that.
Click to expand...
Click to collapse
Well i have es file browser which im sure will do the trick, but i dont know what mounting r/w means... how do i do that?
platypus78 said:
Well i have es file browser which im sure will do the trick, but i dont know what mounting r/w means... how do i do that?
Click to expand...
Click to collapse
Mounting r/w gives you the permission to write or modify the system files.
You will have to enable the Root Explorer feature of ES.
Press the menu key to bring up the left panel and then scroll down. You should find the option "Root Explorer". It's off by default. Turn it on. It will ask you for root permission. Grant it and you should be good to go.
Now you should be able to delete and copy the specified files.
But you will have to set the right permission for the copied files.
To change the permission, long press on the apk, press "More" and select "Properties"
There should be a line called "Permission" and next to it something like "rw- r-- r--". This varies, depending on what you selected. "r" means read, "w" is write and some have "x" which means execute.
Those vary depending on the app.
Change the permission of the S5 weather app to the same as the other apps have on the /system/app folder. Most of them have "rwx r-x r-x". So that's probably what you want to change them to.
Then you have to reboot. If everything is set correctly you should have the app installed on your phone. Good luck
As for that string, I don't know where it is. Maybe ask in the thread.
Thanks Reaper.. that was just the answer I was looking for!
...can anyone help me find the string? or at least give me an idea as to where I should be looking and what app I can use to edit whatever file it is I will need to edit?
platypus78 said:
Thanks Reaper.. that was just the answer I was looking for!
...can anyone help me find the string? or at least give me an idea as to where I should be looking and what app I can use to edit whatever file it is I will need to edit?
Click to expand...
Click to collapse
http://forum.xda-developers.com/galaxy-s4/themes-apps/mod-extra-s5-features-s4-lollipop-t3033812

Categories

Resources