[Q] Is there an easy way to add a dummy service to an existing application? (for oom) - General Questions and Answers

Hello world,
yes, I used the search function.
Background: (you may wish to skip to the question)
I'm a multitasker and I don't like Android killing my browser if I use one or two other applications for a minute or so, because I lose all my tabs content that way. While that isn't bad having a good network connection, it is real bad in subway train where I usally read news by phone and the internet connection is very bad.
So I tried many different things in order to prevent android from killing my browser, and finally I found a solution in the opera forum:
(I really would like to link you there, but: "To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!")
knumsole wrote in Opera forum:
Here, take this: (sorry, can't post link, see above)
This is Opera Mobile 11.5.3, (...). I repackaged it with a dummy service which increases the OOM priority of the application. This will very effectively prevent Android from killing it.
Click to expand...
Click to collapse
(google for the complete sentences in that quote will lead you there.)
Adding this dummy service changed the applications oom priority from about 7 to 10 (--> gets killed soon to first) to an oom priority of 2 (which is totally stable for me).
[ooms read by auto memory manager.]
Question:
Is there a relative easy way to add a dummy service to an existing application? Such as "knumsole" did described before? (I tried contacting him, but wasn't successful)
I'd like to be able to do that myself, e.g. if I need a newer version of the browser. With "easy", I mean: I'm not an application developer, and I don't intend to become one. But I am able to extract an .apk file and modify text files in there and so. And if it is necessary, I would also compile that, too.
I use Android 4.1.2 on a rooted Samsung Galaxy S2.
Thank you!

* (more than) 24h bump *

24h bump

*bump*

Related

How would you guys like a Bugtracker?

I'm currently working on a Bugtracker for the xda-developers (my own project - wasn't asked by anybody)
The idea behind it is to allow:
The Developers to see what bugs are outstanding
The user to submit their problems
The curious to see which ROM has less bugs
The n00bs to do research before asking questions (and have more places to spam)
I'm not planning to replace the forums, I just want to make an extra tool that can be used along side the forums - but is neater for bug reporting
Feel free to post your thoughts on if you like it (and so what should be included) or if you don't like it (and so what should replace it, if anything)
Thanks!
Hey, that's very nice.
But.. Are we talking about a new website? or just a new thread?
DaVince said:
Hey, that's very nice.
But.. Are we talking about a new website? or just a new thread?
Click to expand...
Click to collapse
Entirely new website.
It will be hosted on my http://www.vidmes.com webserver
i voted approving the bugtracker but i like the idea of all the information about universal development being centralized in one only location.
so, i think it would be interesting to keep it in this forum.
It's ok, we'll just have a sticky thread that has a link to TehPenguin's site.
I vote you go for it TehPenguin.
DaVince said:
It's ok, we'll just have a sticky thread that has a link to TehPenguin's site.
I vote you go for it TehPenguin.
Click to expand...
Click to collapse
Well, I've done some tentative work on it - and its looking good (if a little bare - I'm a software developer, not a web designer )
I'm a little busy this week, so its going to be about 2 weeks before I announce the link for the Beta
In the mean time, I'd like suggestions as to what people want in it
(Also, I notice one negative vote - I'd like to see their argument....)
Thanks!
Great Idea
I think mandatory information should be
1) Device Vendor...ie Imate, XDA etc
2) Radio stack in use
3) OS Rom in use
4) Third party software installed ( I know this list can be big, I myself have well over 100 apps as std) but is important for diagnosing bugs. Perhaps we could get an AppMgr listing from each system, not too hard to obtain.
You could also go overboard a little and have a PDA page, browseable from our Uni's so nothing graphics intensive or fancy. A simple login dialogue ( Can we port XDA-Dev user accounts?) once the user has logged in, they fill in a basic form with the bug description, click on submit and we could pull the information in points 1 to 4 above off of the device with a script.
Just my 50pence worth.
Great idea m8, hope it gets somewhere.............let me know if I can help with anything.
Cheers,
Beast
yes! would be really helpful for cooks
beast0898 said:
I think mandatory information should be
1) Device Vendor...ie Imate, XDA etc
2) Radio stack in use
3) OS Rom in use
4) Third party software installed ( I know this list can be big, I myself have well over 100 apps as std) but is important for diagnosing bugs. Perhaps we could get an AppMgr listing from each system, not too hard to obtain.
Click to expand...
Click to collapse
What I was planning to do with this is to have them describe a "Bug" in very generic terms as the Bug's description. Then they are required to add a comment (which other people may add) - this comment would have a "template" which would have things such as vendor, radio (I didn't actually think of this one), etc...
beast0898 said:
You could also go overboard a little and have a PDA page, browseable from our Uni's so nothing graphics intensive or fancy. A simple login dialogue ( Can we port XDA-Dev user accounts?) once the user has logged in, they fill in a basic form with the bug description, click on submit and we could pull the information in points 1 to 4 above off of the device with a script.
Click to expand...
Click to collapse
Some good ideas but....
I can't actually get info from the xda-developer's forums database - this may be a security risk on their behalf and would require far to much messing around to organise (as much as I would like to do it)
You will be able to view the page on your PDA's - its _very_ basic and I'll try to keep it xHTML complaint and do fanciness with CSS (though at the moment it does use some table hax)
Pulling info out of the PDA is virtually impossible (unless I build an app for the PDA's.... maybe later ) since the pda only tells me what browser version it is using
Either way - these are the things I like to see - Ideas!!!!
Keep them coming!
DaVince said:
It's ok, we'll just have a sticky thread that has a link to TehPenguin's site.
I vote you go for it TehPenguin.
Click to expand...
Click to collapse
I totally agree with DaVince, having a bug tracking website would be cool and having a link directly to the site via xda-developers is a good idea. Keeping everything centralised and available for use by everyone who uses xda-developers.
You have my vote! Would be a great tool...
gsmknight
TehPenguin said:
What I was planning to do with this is to have them describe a "Bug" in very generic terms as the Bug's description. Then they are required to add a comment (which other people may add) - this comment would have a "template" which would have things such as vendor, radio (I didn't actually think of this one), etc...
Some good ideas but....
I can't actually get info from the xda-developer's forums database - this may be a security risk on their behalf and would require far to much messing around to organise (as much as I would like to do it)
You will be able to view the page on your PDA's - its _very_ basic and I'll try to keep it xHTML complaint and do fanciness with CSS (though at the moment it does use some table hax)
Pulling info out of the PDA is virtually impossible (unless I build an app for the PDA's.... maybe later ) since the pda only tells me what browser version it is using
Either way - these are the things I like to see - Ideas!!!!
Keep them coming!
Click to expand...
Click to collapse
Hi TehPenguin,
Surely we can run a JScript or Vbs through the PPC Browser to get the required data from the Reg, only a couple of RegReads!
Just another thought............... I prefer accurate information, the reg is less likely to make mistakes than a user!! (No offence intended to anyone)
L8r,
Beast
Bugtracker
Hi,
Would be great to have this.
Looking forward
Leo
Why not use one of the many bugtrackers already out there? I prefer Flyspray (http://www.flyspray.org/) since it's as mighty as Mantis, but more Web 2.0 ... and you should be able to browse it on your PPC, although I don't think anybody really wants this ...
Cheers,
-mARKUS
P.S.: As for getting registry stuff through the PPC ... I doubt you can read out the registry by a JavaScript running on the page itself. Also there are many geeks out there who use Resco so they could easily export a .reg-file and attach it to the report.
mbirth said:
Why not use one of the many bugtrackers already out there? I prefer Flyspray (http://www.flyspray.org/) since it's as mighty as Mantis, but more Web 2.0 ... and you should be able to browse it on your PPC, although I don't think anybody really wants this ...
Cheers,
-mARKUS
Click to expand...
Click to collapse
I've had a look at at a number of bug reporting systems - the problem with them is that I'd have to end up customising it quite a bit anyway. For instance, they are typically designed for one program, possibly with options to support different parts\plug-ins for these programs. My design involves having multiple "Devices" each with multiple "ROMs", which may be deprecated, and each of these ROMs have multiple bugs - thats a couple more levels of complexity than the average bug tracker can handle.
Although they are more "Web 2.0" the Javasript\other fanciness would make it difficult to view on a PDA. Personally I prefer the old style Web 1.0 and a PHP back end
The other advantage of me making it is that you guys can have, almost, anything you want - and it should be done as soon as I have time, seeing as I know the code intimately.
And the point I really like - I love coding
mbirth said:
P.S.: As for getting registry stuff through the PPC ... I doubt you can read out the registry by a JavaScript running on the page itself. Also there are many geeks out there who use Resco so they could easily export a .reg-file and attach it to the report.
Click to expand...
Click to collapse
Exporting a reg file is the only possibility. Due to "security" problems, no script can actually see the registry of the device (or your PC for that matter), except what is in the "User Agent" key.
I'll put it on the "TODO" list to make a .NET program that automatically dumps your settings and creates a bug report
Given time, this can become quite beautiful. And time is now something that I will have - since I'm on holidays for the next few weeks!! (Yay for no more exams!!)
The alpha version is almost finished
I'll put a link up onto WM-Gurus for the final testing stage of the Alpha and see how it goes
Once the Alpha is complete (ie not too buggy) I'll put the link for the Beta here
Enjoy!
this is really a great idea.
i hope all goes well...
thanks to all!
Okay,
ALPHA VERSION IS NOW AVAILABLE!!!!
You can see it by going to: http://xdabugs.vidmes.com
Feel free to register or use the following users:
Username "test" password "testing" (Access level - registered user)
Username "dev" password "dev" (Access level - developer)
Username "admin" password "password" (Access level - administrator)
PLEASE NOTE: At the end of the Alpha stage, ALL DATA WILL BE CLEARED FROM THE DATABASE!
What I need people to do:
Look for bugs
Write the Help\FAQ sections
Ask me questions so I can write the Help\FAQ sections
See what else is needed
Enjoy!!

need help with very small program for myself.. plz help

im trying to get a very very small program runnint, however im very lost when it comes to programming windows mobile device, i have a database online, and i want a small dialog box to show up on my wm device and alow me to type something in , then it search the online database.. and return the information, or even just take me to where the online listing is, that's all no bells or whistles.. could someone help me with this please?
i have even added a search feature to my database, soo i just basically want this little program to relay text to that search feature, then take me to it.. so i don't have to go to all these links and whatnot
Well,
it is quite hard to advice you anything without actually knowing about the file structure / database format. Maybe the easiest way would be to simply set up a search option online as a WAP2.0 page - if you don't want others to access this section, simply password protect it.
If you really have a need to generate the 'search string' offline (which I just can't understand since you want to be taken to your DB online) then simply use something which generates the search string for you.
For example you could have a "results.php" online which simply needs the search terms 'attached' in order to list you all relevant records. Now, the question remains how the database is structured. If you have 2 fields in your database, containing firstname and lastname, then it would be simple. You would need only something that adds your search terms to the string and then navigates to your server. For example you search for SMITH as lastname, it would have to transfer the string as followed:
www.mysite.com/results.php?lastname=smith
For sure your results.php needs to be programmed first!
However,
this has nothing to do with your device, you better join a programmer forum - in this case I would suggest you look for web development forums since this can be done entirely on the server side!

[Q] SIP / VoIP Client Codecs

Hi all,
This thread pertains to the inbuilt Internet Calling feature on Gingerbread. By default, it uses g.711 but I use an audio broadcast unit which requires g.722.
Is anyone able to help me, with finding out where the prefs are for the default SIP client, and how to enable g.722 as Mon codec de preference?
Many thanks
Perhaps I should post this in Dev...
Well, according to the rules, I'm not allowed to post a development based question in the dev forum. Apparently "If it's not about a ROM, it's not allowed in the development area" - perhaps the 'Dev' area should be renamed 'ROMs', and a separate Development Area should be opened?! That way, serious questions won't get overlooked and moved down so quick with the masses of repeated questions from new members.
Anyway - thats my rant...
Here's my actual question - reposted:
Hi folks
OK, this isn't ROM related as such, but it is definitely development related, hence posting here. I'm not a programmer, but I know my way around config files etc. usually. What I'm trying to find out, is this:
Can I adjust the 'built-in' VoIP Client to use a different codec? There's no options available in software, but the config for the client must be somewhere - question is, WHERE would it be? If anyone can point me in the right direction, I'll report my findings
There's a few VoIP things I want to customise, but using the native client, rather than a third party app.
I'm not after a spoon-fed solution - just the clues where to look so I can sort it out.
Many thanks
Just unzip any ROM and look inside,
That would spare you own phone and you can check every single file.
Btw, apk are zip files as well...
I've had a look around, but still haven't found the right things.
I guess the 'Internet Calling' function is part of the main 'phone' app, but I can't find any settings or config files for this.
It should be such a simple change to make; but I'm stuck at the first hurdle!!

[Q] Total NOOB needs some help :)

Hi all,
My name is Fabian, and I have a strong background in C. (Done a CS course in C).
I want to do an Android app for my final project(nothing too fancy or complicated but I have to at least have some interface ) and I'm a little stuck with how to proceed from here.
I watched the Java essential course on Lynda and I did understand a little the difference between C in Java, however I don't know how to proceed from here to actual Android development.
If anyone can recommend me finding a crash course, a book or any other resource that could get me up and running as soon as possible, I would really appreciate it.
I don't mind spending money on it.
Thanks in advance.
Fabian
fabiansc said:
Hi all,
My name is Fabian, and I have a strong background in C. (Done a CS course in C).
I want to do an Android app for my final project(nothing too fancy or complicated but I have to at least have some interface ) and I'm a little stuck with how to proceed from here.
I watched the Java essential course on Lynda and I did understand a little the difference between C in Java, however I don't know how to proceed from here to actual Android development.
If anyone can recommend me finding a crash course, a book or any other resource that could get me up and running as soon as possible, I would really appreciate it.
I don't mind spending money on it.
Thanks in advance.
Fabian
Click to expand...
Click to collapse
A great resource for Android development is the official Android training documentation from Google, as well as these tutorials. Let me know if you still have questions I'll be happy to help.
thanks little question regrading databases
shimp208 said:
A great resource for Android development is the official Android training documentation from Google, as well as these tutorials. Let me know if you still have questions I'll be happy to help.
Click to expand...
Click to collapse
Hi,
Thanks for your help I learned a lot and I'm already planning my app
I just have one question that could really help.
I want to make an app where people on different devices can interact and send each other tasks. I guess I need a kind of SQL server that supports Android, right? Is there a better or at least more economic way to do it if I will have around 1000 users where each one can add people to send tasks to?
Many thanks,
Fabian
And one more question
Is there any way to do a phone number authentication (like Whatsapp) instead of user name and password which I think is a little to tedious for my planned app ?
Thanks in advance
Hola, for the task sending. Would you like to make all task public? Or should you send it like a message?
But when i need access to a server, i use php scripts. But we can take that later, when you have answered my last question
For the phone number authentication, you have to have a online database, with all phone numbers. User inserts their phone number, the first time they starts the app. Then you can retrieve it from the database. But we can also take that later.
I´m glad if i helped.
(Sorry for my bad english.. )
Hola
Well I want it to be like a manager that gives a task to his employee. I want the task to be between them and only they can close it.
Likewise, it would be a problem if I make a simple phone number insertion if there's no validation. I was thinking about a number verification (like whatsapp) to prevent other people from accessing the tasks.
Do you think it's possible or should I go with username and password?
Thanks
fabiansc said:
Hi,
Thanks for your help I learned a lot and I'm already planning my app
I just have one question that could really help.
I want to make an app where people on different devices can interact and send each other tasks. I guess I need a kind of SQL server that supports Android, right? Is there a better or at least more economic way to do it if I will have around 1000 users where each one can add people to send tasks to?
Many thanks,
Fabian
Click to expand...
Click to collapse
I am using OpenShift - https://www.openshift.com/developers - which is a open source cloud architecture in that they offer packages like NodeJS and DB's. They allow you to have 'gears' which I guess is their name for services running on their cloud. The free account has 3 gears.
I currently only have a NodeJS server running to deliver files however (as far as I understand it) you can have MySQL and others as a backend. I would think that whatever devices you develop on would simply log into the DB and look up messages/tasks etc. I would also think that your app could insert those things. The best part is it is free until you reach Enterprise level or so. I would check it out since free is good. Offhand, I do not know what DB's Android supports via java but MySQL is probably one of them.
Just some info for you to examine.
Good luck
Hola, of course its possible! But maybe Username and Password is easiest.
You can use e-mail validation.
I actually worked on a application, there store products in databases. So i have tried it before. Ask if you are confused
And Sum1nil, sqlite is implemented in android, so for local database, use sqlite.
But for online database access, i use php

dr.fone toolkit - Android Lock Screen Removal with encrypted phone ?

Hi,
I want to know if i encrypt my Galaxy S7, if it's possible to remove lock screen with dr.fone toolkit ?
If it's possible it's bad because password it's for restrict any person to access to phone !
Thank for any help !
Hi,
Up !
Do you know the answer ? Please ?
Thank !
azer7 said:
Hi,
Up !
Do you know the answer ? Please ?
Thank !
Click to expand...
Click to collapse
Hello,
The Galaxy S7 has multiple variants and builds. Normally when asking this kind of question, you should include the model of your device. That way anyone wanting to help you actually has the knowledge to be able to do so. Phones have different internal parts, memory space, and so on. You can find your model number by doing the following:
- slide down the notification bar, sometimes you may have to slide down twice depending on the device. Click the gear in the upper right hand corner. "Settings"
OR
- Access your app drawer or all apps section and find your "settings" section/app. Most of the time it will have a icon of a gear, or three lines that resemble on off switches. Older androids sometimes use just have three lines (as the settings icon)
- Find the section labeled "About Device / Device Info" its usually labeled something similar if not exactly. Open this section
(Galaxy phones usually have this section at the bottom of your "settings" section)
- Somewhere within this section, there will be a label that reads "Model" and that is your specific variant which is needed in device specific situations.
* Take Note of this for future reference. You might think okay ill remember that. But when you come to realize your devices model number may be XDA-2017T1 and you look for something pertaining your device. You will also find something like this:
XDA-2017
XDA-2017YP
XDA-2017YP2
XDA-2017T0
XDA-2017T2
XDA-2017T10
Assuming that you will continually update and/or customize your phone. You will probably just memorize this, along with other important information. Some important things you should include while researching is as follows (the top two are very important)
1. [Model Number] ex) XDA-2017T1
2. [Android Version] ex) 6.0.1 Marshmallow
3. [Baseband]
4. [Kernel]
5. [Chipset]
6. Is device "rooted?"
7. Is the bootloader unlocked?
8. GSM or CDMA. Older devices even use IDEN
Those are only some.
* I also want you to know that im not trying to lecture you, or give you a hard time. I am honestly trying to help you and in order to successfully help you I have to ensure that you know things, or mention things, that is important to do. So your device isnt broken, or you get information that is correct but incorrect for your specific device.
But back to the topic originally referenced.
Q) "Is the program Dr. Fone able to bypass the screen lock security measures on the Samsung Galaxy S7?"
A) Based on limited information that is device specific, and the current Supported Devices section from Dr Fones documentation
"No"
• Dr. Fone doesnt have the capabilty to bypass your screen lock. They will probably include the S7 within a period of time due to it being a main stream phone though.
• Remember this; locks can and will be broken. Just because a vulnerabilty hasnt been exposed or discovered doesnt mean that its 100% secure.
• Keep current with OTA updates, keep in tune with tech type news.
• Encryption is vast subject, but I can refer to it like the "invisible magical ink" That was popular in the 90's. The light that reveals the ink to the naked eye, is your password. The inabilty to see the ink normally without a specific tool, would be encryption. So if someone cracked your password, your encryption would also be disabled. I linked more information below, for you to read. I still dont fully understand encryption myself, nor do I believe or trust it.
I based this information assuming your device is the SM-G930. It is accurate as possible but not guaranteed. Do realize with the information I mentioned and with the question you asked. I was able to do a simple Google search and almost immediately found the answers. Try to figure things out before you ask in the future. You can repeat the process of not researching prior to posting but typically your post will die. If you get stuck and have put forth honest effort, the great people here at XDA will probably help out greatly. I hope I have helped you, and you now feel better about your concerns. please pay it foward.
If you feel ive helped or gave a honest attempt to help. Hit the thumbs up, that is the thanks button.
-juzten
▪Information on Android Encryption▪
https://source.android.com/security/encryption/full-disk
▪Samsung S7 Model Numbers ▪
https://www.google.com/amp/techbeasts.com/list-of-samsung-galaxy-s7-s7-edge-model-numbers/amp/
▪Dr. Fone's Supported Devices, Screen Lock ▪
https://drfone.wondershare.com/reference/android-lock-screen-removal.html
.
.
.
.
.
[☆☆☆] I TAKE NO CREDIT, AND GIVE THANKS TO THE PEOPLE WHO WROTE AND/OR RESEARCHED THE ABOVE REFERENCES. THESE REFERENCES ARE THE RESOURCES I USED TO CONCLUDE AN ACCURATE RESPONSE TO THE QUESTION ASKED IN THE OP. NO CLAIM IS MEANT TO BE IMPLIED, OR IS GIVEN WITH THE INFORMATION PRESENTED AS FACTUAL. AS WITH ALL DOCUMENTATION, ERRORS ARE MADE OCCASSIONALLY AND YOU SHOULD FURTHER RESEARCH ANY DOUBT. I TAKE NO RESPONSIBILTY FOR ANY DAMAGE OR LOSS THAT OCCURED IN DIRECT RELATION TO MY STATEMENTS MADE. [☆☆☆]
Hi,
juzten said:
Hello,
The Galaxy S7 has multiple variants and builds. Normally when asking this kind of question, you should include the model of your device. That way anyone wanting to help you actually has the knowledge to be able to do so. Phones have different internal parts, memory space, and so on. You can find your model number by doing the following:
Click to expand...
Click to collapse
I'm sorry, I completely forgot to mention the model of my S7, it is the SM-G930F on Android 6.0.1 Marshmallow, thanks for answering me.
On the other hand, I'm disappointed that a commercial program can unlock a phone.
I hope that this way of circumventing the locking of smartphones will be solved, because malicious people could use it to unlock phones that do not belong to them ...
The only way to protect yourself from this program is to install an application that protects personal data.
Thank you again for answering!
Wondershare Dr. Fonefor unlooking thr screen.
Wondershare Dr. Fone is a powerful instrument to regain iPhone lost information, it can help scan and recover them from iTunes or iCloud copies in case you've got backup your iPhone into iTunes or iCloud, or it helps you regain contacts directly from the device. Besides it's harmonious with iPhone 5s/5c/4S/ / 4/3GS and it might recover 18 kinds of content such as pictures, videos, contacts, messages, notes, and phone log, voicemail, voice memos, calendars, reminders, etc.. :good:
I agree with you. A commercial program available for a few dollars can unlock a password protected phone. What is Android/ios waiting to solve this threat?

Categories

Resources