Handling permission request in GeckoView - General Questions and Answers

Hello,
I hope I am right here - I could not post in the dev forum because I am not long enough a member here.
Please forgive me this potential noob question, I know how these questions suck for advanced forum members but I simply don't find another way to solve my problem. I googled like crazy and tried to understand the material I found - without success.
I am new to coding and decided to code a simple app which displays a website, just for myself.
Because WebView does not support all the JavaScript Functions the websites needs, I decided to go with GeckoView - which worked fine.
I was really happy to get the app running, even though it's super basic
The website loading inside GeckoView now needs permission to access the microphone of my device.
So I added to AndroidManifest.xml the following line:
Code:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
... still did not work.
When I open the website in question in regular Firefox, the browser asks me to grant permission.
So I guess I need to give GeckoView itself permissions to access the mic.
I looked into the documentation but could not understand anything (I wanted to include the like to the doc here, but because I am new, I can't link to external pages. If you google "Interface GeckoSession.PermissionDelegate" you will find the documentation I am talking about). I did some try and error experiments but it was not working. It was more or less wild guesses because I even could not find any example code/projects using these permissions so I could try to understand it better.
I am simply stuck. I read everything regarding these permissions but have a hard time understanding most of it.
That's why I came here. I would highly appreciate your help so I can finish this seemingly easy task.
Thanks a lot!
Clms

Related

Cracking code, or what not

ok, i have this game, garden of weeden, & not to long ago i figured out how to do some "cheating" through the web browser, but after an update, the dev recoded the game to where you couldnt use my "cheats" found here: http://godofpot.blogspot.com/.
now i used sqlite to read the database files & cache files to get these "cheats", but since the dev recoded the app, they dont work.
so my question is how do i find out how to use these "cheats" again, i know theres a way, i see ppl doing it while im playing, but nobody wants to give the secret out, so any help, or advice is highly welcome & thanked.
i can post the app up if needed, but it seems like the dev is doing alot of his coding in javascript, & makes alot of the functions go through the apps interface vs the internet like before.
thanks for any help
nobody, i can provide any files if nessarry.

[Q] Redirect traffic though app

Hi there,
I am new to this forum and English is not my first language so I apologize for my mistakes. I searched on Google and here but did not find much.
I want to redirect traffic through an app. I don't know how to express it exactly but I want to modify HTTP responses when they arrive.
For example:
My browser requests a website. My app redirects the response through it and changes some HTML code from the response.
I guess I need to use the iptables but I cannot find out how to use them in that way. I don't even know how to start. I neither found any explanations about this topic nor examples (one reason can be
I would love to get tips how to start. Please give advices :good:

[Q] security for android - beginner friendly how to?

hi all!
please note: i am nothing near a professional user or even coder! i rooted my phone and i install custom roms on it, and thats about it. in addition to that i am concerned about my privacy. for me it started with the LBE Privacy Guard from the play store, it was quite nice until it stopped working, and made my phone stuck in a boot loop...
i have read and searched a lot of stuff before i decided to write this. but i havent found an easy and understandable how to. maybe that is because there no easy way to this. please go easy on me if there is already a thread for this...
i just installed openpdroid on my samsung galaxy s+ (i9001) and that is just because user bululu has made a patch for the rom i am using (cm10.1 from user davidteri) - thanks to both of them! i installed the patch with cwm (clockworkmod) and afterwards i was wondering there is no privacy setting in my menu or anything that would let me set up permissions. but from all the stuff i was reading before i figured i will need some kind of gui (not sure this is the right word - that goes for most of the stuff, but please correct me where u can, i will try and learn) so i installed 'pdroid manager' from the play store. that would finally let me set permissions for the apps! so far, so good. i am now using openpdroid...
should be all good at this point u might think, but this is where my questions begin ^^ f.ex:
is this the best solution atm? are there more solutions? what are the differences? what can u recommend?
furthermore i try to figure out how to encrypt email on android. most things i read point to k9 mail and using agp (or apg? is this the same?). i did some research on that topic an it seems to be the 'android privacy guard'. more questions here too...
it seems to be out of development, since the last changes are from 25.12.2010. is there a newer alternative for that or something i missed? or maybe it is still the thing to use or it is quite finished in its current state?!? but i dont wanna clog my device with old or unsupported software until i am 99% sure on what to do...
so basically i am asking if there is a nice and user friendly (with images) 'how to' for this kind of stuff i was just missing or is it just impossible (at the current state) to do such thing? if both answers are 'no' i'd like to start something like that, of course with your help that is...
because it seems the info i found is not coherent, its all bits and pieces one needs to bring together (in the right order and with compatible software). at least thats what it feels like for me as non-professional user and linux noob. i have no problem with puzzling stuff together but i also would like to help others who would like to do increase their security and get different opinions on whats the best way to do some things...
so if any of u got an opinion to any of the above please let me know! and help or links would be greatly appreciated! lets see if we can bring some things together and make our devices, our communication and our data more secure! and please note: this should not be device specific, my device and rom was just for information and for better understanding my starting point. this should be as broadly defined and open minded as possible. so everybody could partake and make use of it...
thanks for reading!
kind regards
bad1080

How to make an android bot app for performing some background tasks in a cycle?

I am working on a project in which, I want to create an Android App. The app will open a website in background, wait for the page to load. Then, it will find something on the page. After that it will do a specific task. Then, wait for the process to be completed. If the process gets completed, it will have some delay. Then, it'll reopen the url again and thenafter repeat the same task in a cycle.
It should continue doing the directed tasks until any unwanted system or wanted user interruption.
I've searched a lot on web to know that if something could be done in this route. But, I couldn't find anything helpful.
I want something similar to
HTML:
https://youtu.be/BGU2X5lrz9M
Here, in the above mentioned tutorial, he is using Python Script for making an Instagram bot for PC. The bot will open Browser, then the Instagram's Feed, then will find the button by text "Like" and then go back, thenafter it'll repeat the cycle.
I want something similar.
1). But, instead of Liking every post/photo, I want my bot to comment something on the posts of people whom I or the person using the bot is following on Instagram.
2). Second thing is, this process is being done on the main window. I want this process to be done in background.
3). He is doing it in(for) PC. I want to do it in/for Android.
4). I may follow his tutorial for PC and using Python. But, how would I do it using Java or Kotlin in Android Studio.
I started to do some research and build a very very beginning level app. Which You may find
HTML:
https://drive.google.com/file/d/17ZQ_w-Gc0jOV8Tn-QDGFdFHPyxculn6B/view?usp=drivesdk
??here
I am open to suggestions.
Please check the project and if it is possible to achieve what I want from only some modifications in my current project, then please do tell me.
Please tell me the solutions, hints, suggestions, advice, anything helpful in this project except a downvote .
If you find anything ineligible or wrong according to the forum then, please before downvoting, let me know in the comments section.
Thank You So Much in advance!
Have a nice day ahead.
P.S. :- If this question should be asked in any other forum of stack exchange then please comment it's name. I'll immediately put down this question from here and ask it in the respective forum. Thanks!
HTML:
https://youtu.be/BGU2X5lrz9M https://drive.google.com/file/d/17ZQ_w-Gc0jOV8Tn-QDGFdFHPyxculn6B/view?usp=drivesdk

Access and Change System Locale

Hey xda-forum!
I am currently trying myself on some Android development and need a little bit of a head start - I usually roam around in Web Developement and Scientific Data Analysis.
I want to quickly be able to switch back and forth my System Locale in Android by using a TileService.
I know from extensive googling and reading that since Android 4.2 these system settings are protected by the "WRITE_SETTINGS" permission.
As I only wanna use this "app" on my own, I am not bothered by this as I can grant that.
The question I am asking myself is how to actually set such a permission and what the correct identifier is for setting the locale.
I unfortunatly am too stupid to find it in the Android Documentation and the often refered "MoreLocale" app doesnt help me much as it doesnt work anymore apparently and the used code is deprecated.
Would be amazing if one or multiple of you could give me a heads-up on that, either pointing me into the right direction or giving me an example!
Thanks!
infiniteWays
P.S.: I think this belongs more to Software Development but I don't have enough posts to go there ^^ Sorry.

Categories

Resources