Intercept App Events - Java for Android App Development

Hi All ,
So i have a simple Question :
How can i Detect when an Application(Any App) try to access to the Location features for example ,
i have seen this App : https://play.google.com/store/apps/details?id=com.lbe.security.lite wich can detect those Events , for example , when Any App try to read SIM Card or IMEI , the App Notify the user & the user can Accept or Reject , thats why i am Asking , even if i need Root , this is not a Problem ,
Thanks

Just guising
celb said:
How can i Detect when an Application(Any App) try to access to the Location features for example ,
Click to expand...
Click to collapse
Android is Linux type, so anything which is not a root user app, and wants to access root dependent functionality will require “su” or “sudo” command associated while accessing that particular root related thing. You may need to dig around that, as to how you can be a super user and get all access permissions filtered by you/your app.

Related

Can't access Market and phone is not rooted .. must i root? and should i?

hi,
i brought a HTC DHD from london (Virgin, unlocked) a couple of weeks ago, and im in sudan...and as you've probably guessed, the Android Market is blocked here. The app opens and says "loading" then it closes (goes back to the 'All Apps' menu).
i want to download from the market, and everywhere i go, people tell me to 'root', obviously im new to this concept.
i've read some threads here on this website, but it looks like its a long process, and the "IF ANYTHING HAPPENS ITS NOT OUR FAULT" warning scares me badly.
i want a way to access the market without rooting.
and if there isnt, and rooting is the only way, then what exactly is rooting?
will the way everything works change?
will all my installed apps get deleted?
is the interface different? ( no HTC SENSE?)
and when 2.3 comes out, what do i have to do to upgrade?
NOTE:::
android version -> 2.2.1
baseband version -> 12.2xx...
software number 1.7xxxx
can anyone help?
1. your friends ask you to root is to enable you to use 2 important apps, a. Market enabler, and b. Market enabler codes. Both apps are available in Android market but requires you to root.
2. Rooting, its a process hacking your phone to gain the superuser access where it is not available on stock ROM ( ROM in a sense is the operating software for DHD).
3. Rooting does not remove installed apps. It only 'unlocks' the phone.
4. Rooting enables you to switch ROMs (exp, Android Revolution HD, Cynogen, LeeDroid..). Each ROM offers difference experience in user interface and performance (processing speed aonpd battery life). Users usually find which suits them best and difference regions have different performance albeit similar ROM+kernal+radio (to devs, correct me if I'm wrong here). Some ROM state 'no sense' included which means no HTC Sense is included.
check your email address/ account is correct it stopped my other halfs accessing the market until i changed it.
So now I've rooted my phone successfully and I downloaded market access and market enabler.
But still, I can't open the market.
Is it because my sim card is in the phone?
The main reason for me rooting was to open the market, but I still can't
Alright. From the copy any sim codes of your choosing from market enabler codes, then past.the codes into the market enabler app. Hit apply. Then access the market. You should be alright.
Just download Applanet and use that. Its got tons of free and paid apps and no regional restrictions.
borneanheadhunter said:
Alright. From the copy any sim codes of your choosing from market enabler codes, then past.the codes into the market enabler app. Hit apply. Then access the market. You should be alright.
Click to expand...
Click to collapse
yea, ive done that, and still not working. should i access from my carriers internet connection, or must it be WIFI?, because im guessing WIFI is better.
ozaghloul said:
Just download Applanet and use that. Its got tons of free and paid apps and no regional restrictions.
Click to expand...
Click to collapse
im using that too, but i always get the "parse" error,..., its really annoying me!!!, do you have a solution for it?
CodeNameUnknown1 said:
yea, ive done that, and still not working. should i access from my carriers internet connection, or must it be WIFI?, because im guessing WIFI is better.
im using that too, but i always get the "parse" error,..., its really annoying me!!!, do you have a solution for it?
Click to expand...
Click to collapse
Uninstall it and reinstall the new apk from the site (it will not just update version from the phone)
Oppps, I double posted.
k, i'll try, and tell you what happens

[Q] installing application

hello,
i read there are different way to install application , i wish to try to understand all the way and how they work, could you help me in this ? i am a noob but i am perfectionnist
- open the market from your rooted nook, select the app , install
- open the market from a computer , connect with your google account, select the app, install
- find the apk , download on sd card , use a file explorer to install
these are the easy ways, is there any more way to do ? thanks
c-loet said:
hello,
i read there are different way to install application , i wish to try to understand all the way and how they work, could you help me in this ? i am a noob but i am perfectionnist
- open the market from your rooted nook, select the app , install
- open the market from a computer , connect with your google account, select the app, install
- find the apk , download on sd card , use a file explorer to install
these are the easy ways, is there any more way to do ? thanks
Click to expand...
Click to collapse
Using the ADB interface.
eded333 said:
Using the ADB interface.
Click to expand...
Click to collapse
i am just in the middle of looking for that in the forum, i don't understand what it is and how it works... can't find easy explanation...
The first three steps of one of my manual tutos:
http://forum.xda-developers.com/showpost.php?p=20069222&postcount=3
Helps you get ADB running on windows.
ADB is Android Debug Bridge. It provides terminal-based interface for interacting with your phone’s file system.
And this makes a small simple script to easily connect to your device.
http://forum.xda-developers.com/showpost.php?p=20069359&postcount=14
Check my other manual tutos if you are interested in some examples of what you can do with ADB. (On my sig)
thanks eded333, i will have a close look to that. I like to understand, but i feel like my computer skills are to small to go ahead in that step. but anyway, i will try
Unless you want to use your e-ink device as a tablet, you don't want to have a market app (even Amazon) on it. Or to have mail programs. I personally prefer to use it for reading though I have a normal tablet for other stuff.
Anyways, my point is try to get used to adb way, this one is keeping your nook less bloated than anything else.
Sent from my GT-P1000 using Tapatalk 2

4.2.1 Multiple Users + Root

1. Is it possible
2. Do all users get root access? I assume SU would have to be installed for each user, if root access is desired, correct?
3. Does it cause issues?
4. Does the ADB Backup & Restore backup and restore ALL users?
....Anything I'm missing?
ShadowOf said:
1. Is it possible
2. Do all users get root access? I assume SU would have to be installed for each user, if root access is desired, correct?
3. Does it cause issues?
4. Does the ADB Backup & Restore backup and restore ALL users?
....Anything I'm missing?
Click to expand...
Click to collapse
In the words of Chainfire, author of SuperSU, as it pertains to SuperSU 0.98 and 0.99:
Chainfire said:
Preliminary update for Android 4.2's multi-user capabilities.
Only the main user can run the UI and gain root access.
Secondary user's apps will not be granted root, nor can
those users change SuperSU configuration.
This is all temporary. Proper multi-user support is being
worked on.
Note that if a non-user process (like ADB shell) needs to
prompt for root, that prompt will always appear on the
MAIN user's screen !
Click to expand...
Click to collapse
Source
Thanks that answers 1 & 2.
3. Any issues multi users are seeing after root?
4. Will ADB Backup & Restore handle my three current users?
Sent from my Nexus 7 using XDA Premium HD app
ShadowOf said:
Thanks that answers 1 & 2.
3. Any issues multi users are seeing after root?
4. Will ADB Backup & Restore handle my three current users?
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
I should have mentioned that my N7 is rooted with multiple users and I have not run in to any issues. I can't comment on the backup, however.
ShadowOf said:
Thanks that answers 1 & 2.
3. Any issues multi users are seeing after root?
4. Will ADB Backup & Restore handle my three current users?
Sent from my Nexus 7 using XDA Premium HD app
Click to expand...
Click to collapse
I have not had any issues with root for main "owner" user. But as stated other users currently do not have root access.
Backup? Don't know yet?
Other users currently do not have access to all apps that the owner has access to. Example. Google wallet only works with owner. Google Talk only with Owner.
So I really hope that once they figure out how to get root to all users... than all users can use all apps.
Google has made a one stop forward.... but long ways to go on multi user system. IMO
Jack$on said:
So I really hope that once they figure out how to get root to all users... than all users can use all apps.
Google has made a one stop forward.... but long ways to go on multi user system. IMO
Click to expand...
Click to collapse
Completely agree on that one. Asked me to set up google wallet again for the second user (I had entered a different gmail id for the second user).
Had to install titanium backup separately for both the users. And apps installed for one user was not accessible to the other!! (from within titanium backup.)
However as the owner, I could see all the apps from under 'manage apps'. (Not visible from the normal drawer.) From manage apps, I can also see option to 'un-install for all users'.
As a owner, I wish, I could also install apps and control other user..
I have rooted my Nexus 7 in order to be able to use USB storage. It works fine-- I use "USB MassStrorage Watcher OTG" and can access my external 32GB Stick.
However, I added a second user (my Wife) and although I have use appshare to share all applications, I cannot read the USB stick when under her user name because it requires a rooted device and a second user system sees a non-rooted device.
The problem lies that Android N7 4.2.1 - does not have a facility to have a shared directory - so everything is hidden from one user to another: I had a plan that I could share books via the USB Stick and not waste the directories and memory space - but because the second user cannot access the USB stick it does not work like I planned.
Does anyone have a solution to:
1. Extend Root access to a second user
2. Create a shared directory that both (or multi) users can access?
3. Have USB access app that does not require root?
I am a first time Android user and the restrictions placed on the use of this device (Android in general) are pretty ridiculous - they make no sense!
Why do they (Google) want to cripple their own device? If the USB access is possible from hardware standpoint - why the intentionally block it and not make it part of the OS?
Why not allow shared directories ? I still copy from one user to another using computer - but it is convoluted and time/memory waste.
Hope there are good solutions out there that someone could direct me to.
Best regards
Vladimir
I tried Superuser 3.3 on my Nexus 7 but didn't work at least with cerberus. It just denies the root request
mjckt said:
I tried Superuser 3.3 on my Nexus 7 but didn't work at least with cerberus. It just denies the root request
Click to expand...
Click to collapse
I just tried that and it worked fine for me. I went into the prefrences and changed the multi user setting to user controlled and it worked just fine.
RobertsDF said:
I just tried that and it worked fine for me. I went into the prefrences and changed the multi user setting to user controlled and it worked just fine.
Click to expand...
Click to collapse
Thanks for the tip, I will try it myself
Sent from Droid
apologies for reviving a thread.
But I managed to get the multiple user working with SuperSU but not superuser (on 4.3)
The problem I have is for some reason every time I install SuperSU although it works fine, It stops App Ops (Permissions) from working.
and because I really like to use them (instead of a third party permission tool) I'd like to get superuser.
Any ideas?

[Q] what to do after rooting alcatel pop C3

hey i want to root my alcatel 4033 because of the 512mb of memory, most of it is used up by preinstalled apps but i dont know what to do after rooting it. Can any one help me? i can help my self when it comes to technology and i can follow instuctions
Hi there, i have the same Phone. Got it rooted with the framaroot app. Then i searched the web for custom roms. First Nothing Then i came a cross this site http://www.442kitkat.info/mp3-0/alcatel-one-touch-pop-c3-5687.html. seems interessting? ! I will try to flash it and See how it works out
---------- Post added at 11:22 AM ---------- Previous post was at 11:20 AM ----------
I got the A version (4033a) i guess. Without dual sim
Bull****. Got to complete a task/buy something. Forget about this link.
Hi, U can remove useless apps using root explorer or root app delete.. Or search for any other custom rom built for ur fone.
Without custom roms, usually this http://forum.xda-developers.com/xposed/framework-xposed-rom-modding-modifying-t1574401 . With the different modules available for everything from ad blocking to theming to customizing the lockscreen, this is about as custom as you can go without a rom.
I have an app
ackeella27 said:
hey i want to root my alcatel 4033 because of the 512mb of memory, most of it is used up by preinstalled apps but i dont know what to do after rooting it. Can any one help me? i can help my self when it comes to technology and i can follow instuctions
Click to expand...
Click to collapse
Hello ackeella27, I have an Alcatel POP C3 4033X and I had the same problem: preinstalled apps and some ram used by these (for example Viber, that sometimes used to crash even if I didn't open it). So i had decided to root my phone and remove these useless (for me) apps by deleting them from the system (they are in a folder called "/custpack/app/" in the case of 4033X but i don't know if it is the same for other model of POP C3).
But I use to reset my phone sometimes (with the decision to not install again too much apps xD ) so made an app, called "App Removal for Alcatel POP C3"
I think if you have 4033X model you can surely use it, if not but you decide even to try please tell me the result so I know that this app is also for another model of POP C3.
You can find the app atached the post; I've put an ads at the bottom because I'm planning to put it on Play Store
In the app, if you haven't already rooted your phone you can click "Get SU" button, and installation of Framaroot will be started: when it finishes open Framaroot and click Boromir. Restart the phone. You can open App Removal, and may modify the code, and then click "execute" button to remove the unnecessary apps.
I posted some sceenshot to show you how is the app
Description of used permissions:
1) SD Card
2) Network State and Internet
3) Superuser
1)To put Framaroot in the SD Card and start the installation process
2)To display Ads
3)To execute the root commands
I hope it works and is usefull
Have a nice day
- dicciassei -​
Edit: The app is now obsolete: wait about one week and I will make a topic with the new app (better than this). Bye
dicciassei said:
Hello ackeella27, I have an Alcatel POP C3 4033X and I had the same problem: preinstalled apps and some ram used by these (for example Viber, that sometimes used to crash even if I didn't open it). So i had decided to root my phone and remove these useless (for me) apps by deleting them from the system (they are in a folder called "/custpack/app/" in the case of 4033X but i don't know if it is the same for other model of POP C3).
But I use to reset my phone sometimes (with the decision to not install again too much apps xD ) so made an app, called "App Removal for Alcatel POP C3"
I think if you have 4033X model you can surely use it, if not but you decide even to try please tell me the result so I know that this app is also for another model of POP C3.
You can find the app atached the post; I've put an ads at the bottom because I'm planning to put it on Play Store
In the app, if you haven't already rooted your phone you can click "Get SU" button, and installation of Framaroot will be started: when it finishes open Framaroot and click Boromir. Restart the phone. You can open App Removal, and may modify the code, and then click "execute" button to remove the unnecessary apps.
I posted some sceenshot to show you how is the app
Description of used permissions:
1) SD Card
2) Network State and Internet
3) Superuser
1)To put Framaroot in the SD Card and start the installation process
2)To display Ads
3)To execute the root commands
I hope it works and is usefull
Have a nice day
- dicciassei -​
Click to expand...
Click to collapse
Q did u als had this annoying message when u disable viber. Viber has stopped. Keeps popping up
Yes, so I reset my phone and delete it from the system. I think this phone's version of viber is bugged because if I install it from Play Store it function normally. If you would remove it feel free to use my app (it not remove only viber but also other programs, in future I update if with a cecklist of Alcatel system apps you can check to be removed, more comfortable)
Sent from my ONE TOUCH 4033X using XDA Free mobile app
Aight that woud be cool

WhatsApp asking root access!?

From yesterday onwards WhatsApp is asking root access? Is that any feature with root access or they trying to access my phone?
do you have detailed logging enabled? if you have, can you show what is it actually executing? @godwintgn it's really strange
I haven't given the permission to access. I will update the login details if it's ask again
Lol whats app dark side
Could be a fake app, use precaution
Try reinstalling app, install from play store.

Categories

Resources