This is incredibly ridiculous. Why is there a limit on how many messages I can send in a certain period of time? I would like to know if there is any way to remove it. I have searched relentlessly.
1. settings.db doesn't exist anymore and therefore cannot be changed to set a custom limit.
2. I'm rooted, have EX kernel and Pure Nexus 7.1.1 ROM. Neither support changing the limit natively.
Decimation001 said:
This is incredibly ridiculous. Why is there a limit on how many messages I can send in a certain period of time? I would like to know if there is any way to remove it. I have searched relentlessly.
1. settings.db doesn't exist anymore and therefore cannot be changed to set a custom limit.
2. I'm rooted, have EX kernel and Pure Nexus 7.1.1 ROM. Neither support changing the limit natively.
Click to expand...
Click to collapse
The limit is probably set by your carrier. If that's the case you won't be able to change it in the ROM or phone build prop.
jhs39 said:
The limit is probably set by your carrier. If that's the case you won't be able to change it in the ROM or phone build prop.
Click to expand...
Click to collapse
Is it in the build prop? There wasn't a limit on a different phone.
Decimation001 said:
Is it in the build prop? There wasn't a limit on a different phone.
Click to expand...
Click to collapse
The limit just started when you got the 6P? How long were you using the phone before the limit became an issue? Are you on stock or a custom ROM? Who is your phone carrier? Are you using a stock SMS Program or different one? Maybe someone will have an answer if you provide more information. What is the limit, by the way? Do you know? I know that the program Automate limits texts as a security precaution. Maybe a third party program is causing the issue. Have you tried booting into safe mode and seeing if the limit still exists?
jhs39 said:
The limit just started when you got the 6P? How long were you using the phone before the limit became an issue? Are you on stock or a custom ROM? Who is your phone carrier? Are you using a stock SMS Program or different one? Maybe someone will have an answer if you provide more information. What is the limit, by the way? Do you know? I know that the program Automate limits texts as a security precaution. Maybe a third party program is causing the issue. Have you tried booting into safe mode and seeing if the limit still exists?
Click to expand...
Click to collapse
The limit is on my 6P running Resurrection Remix 7.1.1 on francoKernel. NOT on my other Note5 which is 6.0.1 stock kernel and ROM. Both are/were on T-Mobile. Both use Textra. Not sure what the limit is.
Decimation001 said:
The limit is on my 6P running Resurrection Remix 7.1.1 on francoKernel. NOT on my other Note5 which is 6.0.1 stock kernel and ROM. Both are/were on T-Mobile. Both use Textra. Not sure what the limit is.
Click to expand...
Click to collapse
Maybe something went wrong when you installed your custom ROM or Kernel. I've never heard of a text message limit on the Nexus 6P. You get an error message when you try and send a text saying you have reached the limit and the text can't be sent? Or is it a size limit? Or a limit to the number of recipients you can send a message to? I've heard of limits on the latter two but not on total number of messages that can be sent. At least not in North America.
jhs39 said:
Maybe something went wrong when you installed your custom ROM or Kernel. I've never heard of a text message limit on the Nexus 6P. You get an error message when you try and send a text saying you have reached the limit and the text can't be sent? Or is it a size limit? Or a limit to the number of recipients you can send a message to? I've heard of limits on the latter two but not on total number of messages that can be sent. At least not in North America.
Click to expand...
Click to collapse
The limit was both on Pure Nexus and RR. It limits how many messages I can send to anyone within a certain amount of time. I can still press "accept" to send but it's really annoying and spams me.
That kind of sounds like you might have malware/adware installed on your phone. You might want to download something like Malwarebytes and do a scan of your phone.
The SMS limit is built into Android. Previous to N it was a setting that could be altered in the build.prop and an option to change it was baked into RR. With N the settings were moved into the framework (from what I could find it appears it the telephony section?) and the option to change the setting was not baked into the new ROMs.
I have made several posts requesting info on how to change this - but, no one has responded (either they don't know, don't care, or haven't seen my posts). I need this option for work so badly I'm willing to learn how to build my own ROM. But, not worth getting started if I don't know how to fix the one important thing I need changed.
shaneaus said:
The SMS limit is built into Android. Previous to N it was a setting that could be altered in the build.prop and an option to change it was baked into RR. With N the settings were moved into the framework (from what I could find it appears it the telephony section?) and the option to change the setting was not baked into the new ROMs.
I have made several posts requesting info on how to change this - but, no one has responded (either they don't know, don't care, or haven't seen my posts). I need this option for work so badly in selling to learn how to build my own ROM. But, not worth getting started if I don't know how to fix the one important thing I need changed.
Click to expand...
Click to collapse
If the limit is built into Android why is nobody else having the same problem as you? Do you do something with your SMS that the average user doesnt't? Are you using your SMS to send advertising to large numbers of people, for instance?
jhs39 said:
If the limit is built into Android why is nobody else having the same problem as you? Do you do something with your SMS that the average user doesnt't? Are you using your SMS to send advertising to large numbers of people, for instance?
Click to expand...
Click to collapse
I don't understand why you are even asking this... I appreciate you willingness to help out. But... If you can't help out - just don't respond. You have exhibited that you don't have any knowledge of the settings we are speaking of - AND, I explained the setting is now in the framework. So, unless you know of a way to modify the framework without building a custom ROM - then, please stop implying that we don't have an issue - just because you don't understand what the issue is...
Your first response "The limit is probably set by your carrier" was uneducated speculation.
Your second response included several questions the OP had answered in his original post - he stated he had researched the issue, was using a custom rom/kernel... Then, you followed that up by more speculation: "Maybe a third party program is causing the issue. ."
Your third response isn't helpful as you merely question the OP's knowledge that he even knows he has an issue: "I've never heard of a text message limit on the Nexus 6P." Basically, you just admit your ignorance of there being an issue: " I've heard of limits on the latter two but not on total number of messages that can be sent." Which would imply to most that you won't have any knowledge of how to fix said issue.
Your forth response is to suggest there is malware? Again implying that the OP has no idea about what they are speaking.
Finally, when I post and explain that the setting was once there and easily modified with a build.prop change and that the code was moved...
You again imply that we have some sort of 'phantom issue:' "why is nobody else having the same problem as you?"
If you don't know the answer why waste our time? Do a search and you could easily find another post or two here on XDA in which I explained my situation/problem...
Once again, if you can help - we will surely appreciate any assistance! But, if you don't KNOW how to help; please, don't continue to ask questions which suggest we don't know what we are talking about.
@Decimation001 - I did some research and inside the framework there are two sections related to "telephony" (which is where it appears the settings were moved). Seems they are ODEX files. Might be able to de-compile, make a correction, re-compile, replace in current ROM. I'll start looking into it over the next week or so.
I guess you can keep talking to yourself then.
I have got the same problem. I want to sent to silvester round about 140 SMS to my people and got the message because of the limit.
shaneaus said:
Once again, if you can help - we will surely appreciate any assistance! But, if you don't KNOW how to help; please, don't continue to ask questions which suggest we don't know what we are talking about.
@Decimation001 - I did some research and inside the framework there are two sections related to "telephony" (which is where it appears the settings were moved). Seems they are ODEX files. Might be able to de-compile, make a correction, re-compile, replace in current ROM. I'll start looking into it over the next week or so.
Click to expand...
Click to collapse
Can you give me the names of the files? I know how to compile and recompile so I'd be happy to try and make some modifications.
jhs39 said:
I guess you can keep talking to yourself then.
Click to expand...
Click to collapse
No need to get your feelings hurt. But, I'm not here to "just talk to people" or socialize. I'm here to attempt to solve an issue. If you can assist - then, I will be very grateful for any assistance!
@Decimation001:
Here is the old build.prop method (posted from a member on another Android forum:
"Note: If you move to Marshmallow this will not work anymore as the file "settings.db" is irrelevant under Android 6.0 (annoying but true)
You need:
Root
something like Root explorer and sqLite editor
Open this file: /data/data/com.android.providers.settings/databases/settings.db
Go to "global" subsection, then look for the following two entries
"sms_outgoing_check_max_count" and "sms_outgoing_check_interval_ms"
If they don't exist (by default they aren't there) then create them.
Set the first one to whatever you want (its the maximum number of texts you can send per timeframe (eg.1000)
Set the second one to whatever timeframe you are measuring in millisecond units (eg. 1800000)
My settings were
sms_outgoing_check_max_count 1000
sms_outgoing_check_interval_ms 1800000
This example limits my texts to 1000 messages every 30 minutes
Close file, making sure to save saving if requested to do so.
Reboot system. The new settings will override the Android internal ones.
Hacked "
However, I sent him a PM and he does not know how to make the change in the newer versions of Android. From research I did it appeared that Android moved this setting into the Framework under "Telephony" and you can see that in the structure here:
https://www.researchgate.net/figure...-Android-Telephony-system-architecture-from-6
I've been trying to look for the merge/change in the files here:
https://android.googlesource.com/platform/frameworks/opt/telephony/
I haven't found the specific change/code yet.
However, if you use Root Explorer in an installed ROM - you might find the relevant code by unpacking/searching here:
/system/framework/telephony-common.jar/classes.dex
/system/framework/telephony-ext.jar/classes.dex
I'll try to keep looking for the change in the source code - should have occurred during the transition from Android 5.0 to 6.0....
shaneaus said:
No need to get your feelings hurt. But, I'm not here to "just talk to people" or socialize. I'm here to attempt to solve an issue. If you can assist - then, I will be very grateful for any assistance!
@Decimation001:
Here is the old build.prop method (posted from a member on another Android forum:
"Note: If you move to Marshmallow this will not work anymore as the file "settings.db" is irrelevant under Android 6.0 (annoying but true)
You need:
Root
something like Root explorer and sqLite editor
Open this file: /data/data/com.android.providers.settings/databases/settings.db
Go to "global" subsection, then look for the following two entries
"sms_outgoing_check_max_count" and "sms_outgoing_check_interval_ms"
If they don't exist (by default they aren't there) then create them.
Set the first one to whatever you want (its the maximum number of texts you can send per timeframe (eg.1000)
Set the second one to whatever timeframe you are measuring in millisecond units (eg. 1800000)
My settings were
sms_outgoing_check_max_count 1000
sms_outgoing_check_interval_ms 1800000
This example limits my texts to 1000 messages every 30 minutes
Close file, making sure to save saving if requested to do so.
Reboot system. The new settings will override the Android internal ones.
Hacked "
However, I sent him a PM and he does not know how to make the change in the newer versions of Android. From research I did it appeared that Android moved this setting into the Framework under "Telephony" and you can see that in the structure here:
https://www.researchgate.net/figure...-Android-Telephony-system-architecture-from-6
I've been trying to look for the merge/change in the files here:
https://android.googlesource.com/platform/frameworks/opt/telephony/
I haven't found the specific change/code yet.
However, if you use Root Explorer in an installed ROM - you might find the relevant code by unpacking/searching here:
/system/framework/telephony-common.jar/classes.dex
/system/framework/telephony-ext.jar/classes.dex
I'll try to keep looking for the change in the source code - should have occurred during the transition from Android 5.0 to 6.0....
Click to expand...
Click to collapse
I found the files. It's SmsUsageMonitor.class in telephony-common.jar. It has the values:
Code:
this.mLimit.set(Settings.Global.getInt(this.mContext.getContentResolver(), "sms_outgoing_check_max_count", 30));
this.mPeriod.set(Settings.Global.getInt(this.mContext.getContentResolver(), "sms_outgoing_check_interval_ms", 60000));
Now the problem is recompiling and making it a jar again.
@shaneaus Dang dude, chill out...
Hungry hustler said:
@shaneaus Dang dude, chill out...
Click to expand...
Click to collapse
I am very "chill." Don't understand why you made the comment.
@Decimation001 That is awesome! It took me quite awhile to hunt down different forum threads to find out where the settings had been moved. I was all prepared to attempt to start learning how to compile/decompile those files! But, between working 70 hrs/wk, spending one night with my kids, one night with my girlfriend, and monitoring my home which is under construction - I just haven't had the time! My partner who shares responsibility for sending out the texts for the contract work we schedule is anxiously waiting on my finding a solution! I'm hoping you can re-compile the file!
I'm just concerned at this point that this would have to be done every single time a new version of a ROM is used... Wondering if it could be made into a flashable .zip file which would only change that line of code changing the 30 to 200 or 300....
In any case - is this something we could just extract the classes.dex file, use apktool to decompile, change "30" to "300", recompile, and push the altered .dex file back into place? I understand using "tools" isn't the best way to go - but, I won't have much time to devote to this for the next 4-6 months. So, if apktool will do the trick for now... I'm willing.
Decimation001 said:
I found the files. It's SmsUsageMonitor.class in telephony-common.jar. It has the values:
Code:
this.mLimit.set(Settings.Global.getInt(this.mContext.getContentResolver(), "sms_outgoing_check_max_count", 30));
this.mPeriod.set(Settings.Global.getInt(this.mContext.getContentResolver(), "sms_outgoing_check_interval_ms", 60000));
Now the problem is recompiling and making it a jar again.
Click to expand...
Click to collapse
Ok, I figured out how to decompile the "classes.dex" file using baksmali. However, I can't find the Telephony-common.jar file.
I have found similar code here: out/com/Android/internal/telephony/SmsUsageMonitor$SettingsObserver.smali
".line 248
const-string/jumbo v2, "sms_outgoing_check_max_count"
const/16 v3, 0x1e"
Also, in this file: SmsUsageMonitor$SettingsObserverHandler.smali
" .line 263
const-string/jumbo v1, "sms_outgoing_check_max_count""
But, I don't know how to modify it as it isn't in the format I'm accustomed to seeing... From what I read it is in a smali syntax and I don't know how to modify this code.
@Decimation001 - any ideas?
---------- Post added at 02:54 AM ---------- Previous post was at 02:17 AM ----------
Decimation001 said:
I found the files. It's SmsUsageMonitor.class in telephony-common.jar. It has the values:
Code:
this.mLimit.set(Settings.Global.getInt(this.mContext.getContentResolver(), "sms_outgoing_check_max_count", 30));
this.mPeriod.set(Settings.Global.getInt(this.mContext.getContentResolver(), "sms_outgoing_check_interval_ms", 60000));
Now the problem is recompiling and making it a jar again.
Click to expand...
Click to collapse
shaneaus said:
Ok, I figured out how to decompile the "classes.dex" file using baksmali. However, I can't find the Telephony-common.jar file.
I have found similar code here: out/com/Android/internal/telephony/SmsUsageMonitor$SettingsObserver.smali
".line 248
const-string/jumbo v2, "sms_outgoing_check_max_count"
const/16 v3, 0x1e"
Also, in this file: SmsUsageMonitor$SettingsObserverHandler.smali
" .line 263
const-string/jumbo v1, "sms_outgoing_check_max_count""
But, I don't know how to modify it as it isn't in the format I'm accustomed to seeing... From what I read it is in a smali syntax and I don't know how to modify this code.
@Decimation001 - any ideas?
Click to expand...
Click to collapse
Ok... Looks like if I change the hexadecimal "0x1e" (means 30) below to "0x12c" (means 300), save, recompile using baksmali, and re-insert into my ROM it should work?:
out/com/Android/internal/telephony/SmsUsageMonitor$SettingsObserver.smali
".line 248
const-string/jumbo v2, "sms_outgoing_check_max_count"
const/16 v3, 0x1e"
Ok. I think I did it. I extracted the "telephony-common.jar" file from system/framework. I used 7zip to open it and took the classes.dex file out. I placed the classes.dex file into my smali/baksmali folder, decomplied, changed the above line of code in the manner indicated, recompiled.... I opened telephony-common.jar back up (confirmed that classes.dex was not present), copied the newly updated classes.dex file into telephony-common.jar. I placed it into a folder on the device. Using the app Root Explorer I had two tabs open and deleted the original telephony-common.jar file and immediately copy/pasted the new one in it's place. Just to be sure it worked I extracted the classes.dex file again and decompiled it to confirm.
I'll test it out tomorrow with a mass text to all of my sub-contractors. If it works - I'll edit/post the detailed instructions on the first post in this thread.
Related
I present to you a FAQ for newcomers or the generally uninformed to find quick answers.
General
Q: What is a ROM?
A: A ROM is a complete system image of the Android operating system. For much more detailed info, read here.
Q: How do I install a ROM?
A: ROMs can be flashed once you have rooted your phone and flashed a custom recovery image. After that, you can apply a rom zip via the recovery menu. Detailed info here.
Q: Where can I find more info about ROMs?
A: In the two links above.
Q: What is Apps2SD and how do I use it?
A:Apps2SD is a script that will do exactly as it implies so you are no longer limited to your phone's internal storage. First you must be running a custom ROM that supports it and secondly you need to format your SD card as FAT+ext2. Once that requirement is met, the rest will be automatic. Alternative you could install a2sd on stock rom manually if you wanted to for whatever reason. Warning: Formatting your SD card will erase ALL of the data on it. If you want to keep it, make a backup.
Q: All the Market downloads are stalling. How can I fix this?
A: Sign into Gtalk. The two are closely related even though you'd never guess. For an in-depth discussion head over to this thread.
Q: How do I sign my zip or apk?
A: First you must have java installed on whatever OS you're running. Windows users download the Win-sign.zip attachment. Linux users download Linux-sign.zip attachment.
HTC Hero Specific
Q: How do I root my Sprint CDMA Hero?
A: You've got a few options concerning this. There's the auto-root, flashrec method, and asroot2 method.
Q: How can I remove pre-installed apps?
A: Head on over to How remove apps thread for detailed instructions.
Q: How can I get rid of ringtones and notifications I've downloading from showing up in the Music app and use them without downloading a Market app?
A: Create a folder in the root of your SD card called "media" and a folder called "audio" inside that one. Inside the "audio" folder, create a "notifications", "ringtones", or "alarms" depending on your needs and place the files in the desired folder. Example: media>audio>ringtones>custom-ringtone.mp3
Q: How can I tether my Hero to my PC?
A: You've got several options here. There's Wifi Tether, EasyTether, PDAnet, or without any app! You can read up respectively on each of the apps listed about to learn more about which might be best for you. Now, here's how you can tether without any of that stuff.
Step 1: Connect your phone to your computer with a USB cable and make sure all other forms of internet are disconnected.
Step 2: Install HTC Sync.
Step 3: On your phone go to Settings>Wireless controls and enable Mobile networking sharing. Your PC will try to recognize your phone and install proper drivers and will probably fail. So do it manually using the drivers from HTC Sync located in the directory you installed it. PC should be recognizing your phone now if done properly.
Step 3: Within the Wireless controls menu go into Mobile network settings and change Mode of operation to 1x only.
Step 4: Go back one menu to the Wireless controls and turn off the Mobile network. Now, turn Mobile network back on and enable Mobile network sharing as quickly as possible.This may take a couple of tries. If you did this fast enough you'll get a message saying HTC sync is disable but you won't get Error 67.
Step 5: Change your Mode of Operation back to Hybrid and enjoy.
Leave a suggestion if there's something you think should be added.
Me likes.
Though I think that this would work best as a Wiki so that other informed users can add to it as things come up and we dont have to rely on just one user/dev to maintain it.
Thanks for taking the initiative on this, I am getting quite tired of all the useless threads and continuous thread hijacking over issues that have already been covered 20 times. I dont have all day to read through all the BS that has been filling up the threads lately.
Almost 200 views and no suggestions?
I don't know if this is up you guys' alley, but if any Cricket folks could put together a step-by-step on how to flash to Cricket, especially how to flash with sms/data working, that would be so helpful.
Something else that I can't find good and thorough instructions for is the Cricket broadband workaround, where (if I understand correctly), you use your Cricket USB Broadband modem for all data on the Hero via proxying into it. All I really find on the latter is vague directions to use Anycut/Bettercut and no details about what to do in either program or how to input proxy settings. The most detailed guide I was able to find seems to actually be for a different model phone, since the instructions either only relate to WM or a GSM Hero.
I am trying to figure this out, and if I do before anyone else straightens it out, I'll write something up. I know how annoying it is to get the same questions over and over in these forums. (I've tried my best to help out the Axim x51v community at HTCGeeks with these kinds of things.)
At any rate, it would be awesome to see some more Cricket Hero chatter, even if it isn't revelations, on this thread. I know we're out there lurking, appearing to be Sprinties.
theresthatguy said:
Almost 200 views and no suggestions?
Click to expand...
Click to collapse
I think this would be great for all people that take time to read before posting.but most the post are people not caring enough about their device to read the great info already provided for them. I'm goin to pm u a crazy idea I have.
This is a great idea, whether it is a wiki or a thread.
One question though, don't you need to put a blank "nomedia" file in the ringtones folder?
watzone69 said:
This is a great idea, whether it is a wiki or a thread.
One question though, don't you need to put a blank "nomedia" file in the ringtones folder?
Click to expand...
Click to collapse
nope. I have lots of random mp3s and stuff i use for ringtones and notifs and i do exactly like above and none of it shows up in the music app.
theresthatguy said:
nope. I have lots of random mp3s and stuff i use for ringtones and notifs and i do exactly like above and none of it shows up in the music app.
Click to expand...
Click to collapse
Mine is the same. Im just organized, just now realized that it is like that lol.
watzone69 said:
One question though, don't you need to put a blank "nomedia" file in the ringtones folder?
Click to expand...
Click to collapse
I use that 'trick' to hide certain pics from the album.
Negrito said:
I use that 'trick' to hide certain pics from the album.
Click to expand...
Click to collapse
Go on...
Can you explain this album trick?
thedudejdog said:
Go on...
Can you explain this album trick?
Click to expand...
Click to collapse
The trick is create a file any directory, that want to hide from Music & Gallery, called ".nomedia".
To make a .nomedia file, just take an empty .txt file and rename it.
How about a Q&A on how to sign an .apk
thedudejdog said:
Go on...
Can you explain this album trick?
Click to expand...
Click to collapse
See Below. Then, personally, I hide the folder severals folders deep in the most random place i can think of in the file directory.
gu1dry said:
The trick is create a file any directory, that want to hide from Music & Gallery, called ".nomedia".
Click to expand...
Click to collapse
Exactly.
watzone69 said:
To make a .nomedia file, just take an empty .txt file and rename it.
Click to expand...
Click to collapse
Thats what i did, but it didint work on my MacBook, so i did it at work on my Win98 box.
derekstory said:
How about a Q&A on how to sign an .apk
Click to expand...
Click to collapse
Deal.
edit: windows or linux?
I have a notifications and ringtones folder on the root of the SD card and works, but some people prefer just 1 folder that contains both I guess.
theresthatguy said:
Deal.
edit: windows or linux?[/QUOT
Windows for me
Click to expand...
Click to collapse
theresthatguy said:
Deal.
edit: windows or linux?
Click to expand...
Click to collapse
derekstory said:
Windows for me
Click to expand...
Click to collapse
Linux for me!
I literally just installed Mint on an old PC of mine.
If you're short on time though, windows would be good enough (and much appreciated).
No Mac love? Wait, can it even be done in OS X?
Negrito said:
No Mac love? Wait, can it even be done in OS X?
Click to expand...
Click to collapse
haven't come across a single bit of info of rom cooking/dev work on mac.
edit: plus i don't own a mac and pretty much have never used one.
theresthatguy said:
haven't come across a single bit of info of rom cooking/dev work on mac.
edit: plus i don't own a mac and pretty much have never used one.
Click to expand...
Click to collapse
i think this is because (almost) EVERYONE that owns a mac also owns a iphone...annnd a ipod....and a macbook....and a ipad....and don't need to develop android software because they have something with a shiny apple on it.
nothing against you, Negrito but most people (that i know...personally) who use macs are completely nuts for apple. hardcore apple fanboys.
my "friend" won't even hold my hero, i think he thinks it will convert him...and he knows that i know this...
Hi all, I have a major concern about privacy and all the 3rd party data collectors...
A lot of apps are uploading user info and stats to companies like Flurry, pinch media etc.
I'm about to make the move from iphone OS to android, and i'm looking for a opt out to keep my privacy intact.
Saurik creaded PrivaCy for the jailbreak community that enabled on\off toggles for the 4 major companies.
My issue on iphone was that Pinch Media alone gathered the following information without my knowledge :
* iPhone’s unique ID (imei)
* iPhone model
* OS version
* Application version (in this case, camera zoom 1.x)
* If the application is cracked/pirated
* If the iPhone is jailbroken
* Time & date I start the application
* Time & date I close the application
* My current latitude & longitude
* My gender (if Facebook enabled)
* My birth month (if Facebook enabled)
* My birth year (if Facebook enabled)
I want the option to chose weither or not this kind of info gets collected and distributed.
I've looked into this issue on the android platform, and it seems like there's no option other than not to install the app.
Take for instance Locale. To my knowledge it uploads my imei nr (+lot of other info) to Flurry, whilst i do see the developers need to gather info, and I do not see why my imei number should be uploaded at all.
When I get my android phone I can only chose NOT to install locale, but I just want to prevent it from uploading such info..
Can anybody create a toggle, preferably one that doesn't aquire root, or some guide as to hosts file editing, or a firewall app that will give me this control over my device?
regards
-e
just add a line in hosts file like the following for each website you want to block:
127.0.0.1 some.company.com
Fantastic, thanks mate.
Unfortunately I will have to have root permissions to edit the hosts file.
(it might take time before the htc desire gets root)
(edit: unless theres another way to get write permissions for that file..?)
If I do mess with the hosts file I'd be keen on adding a fair few entries to block ads too..
Since the hosts file gets loaded in ram at bootup, will there be any noticably difference in speed due to the size increase?
regards
-e
could you please post the host-file or the addresses/ip's of the companies your gonna block?
they should be of interest for everybody here
1. You will need root access.
2. The change shouldn't impact the performance in the least. Any local host lookup is always faster than DNS lookup. Meaning that it should increase performance in cases where it finds the match in hosts file, although I doubt if you will notice it.
3. I wouldn't worry about RAM. The host file, even if you add a hundred entries, given that each line consumes 100 bytes, should still be under 10kb.
Great to hear. Thanks for the replies.
@fabsn: I'll post my hosts file as soon as I get this working.. (gimme a few weeks to get my phone, move to android and root
Although: I'd be keen on using the adblock app in androidstore (the one that modifies the hosts file), but my manual changes will break every time I update the app.
I'll try to get hold of the dev to se if he/she might add these info collectors (like Flurry) in another version so that people can get "the best of both worlds"
By the way: I wish all devs that utilizes info collection in their apps could just provide users with an opt out, then my problem would be solved...
-e
http://textbin.com/x6430
Here is a complete "phone home" list for the iPhone. A lot of this will directly apply to android as well, so perhaps a nice soul here at the forum could compile the most useful adresses for me (I'm writing on my phone and it's a b**** to do this on)
the list is taken from: i-phone-home.blogspot(dot)com/
so credit goes to that community.
I really want to combine this with the hosts file that jamesisbored/droid has for adblock..
I will test this once desire hits my mailbox and someone finds root.
-e
This sounds like a great idea. Once a comprehensive list is compiled it should be passed on to "bigtincan". I know myself and a lot of other people use their "ad free" app to block ads using the same method mentioned by Ady above. Although they may be blocking them already and I don't know. I've never looked closely at the host file.
http://bigtincan.com/downloads/android.html
Any progress made on this end?
ady said:
1. You will need root access.
2. The change shouldn't impact the performance in the least. Any local host lookup is always faster than DNS lookup. Meaning that it should increase performance in cases where it finds the match in hosts file, although I doubt if you will notice it.
3. I wouldn't worry about RAM. The host file, even if you add a hundred entries, given that each line consumes 100 bytes, should still be under 10kb.
Click to expand...
Click to collapse
I am new to modding my phone, would you be so kind as to go into more detail how to do this. Specifically, what is this "Hosts file" you speak of? I do have root access and searched my entire phone for a file like that with no joy.
Also, the links provided to possible host data do not work, can somebody update that?
Thanks!!!:laugh:
You may be interested in the MOAB (mother of all adblockers) thread here on xda. Best ad blocker out there, imo, if you haven't already. Sorry, I can't link it now.
Sent from my SCH-I545 using Tapatalk
I could use some help from someone here in the Droid 2 forums with something. A co-worker of mine has a Droid 2 and I finally got her to let me root it because she wants something I have on my phone (I use T-Mo with a Samsung Vibrant). She does not want to delve into the realm of installing custom ROMs just yet, so I won't just flash her to something else where this might be easier.
There is a thread over in the Evo 4G forum where pongolo was able to figure out how to bypass the Exchange security for requiring a PIN/Password when unlocking the phone.
I was able to modify the apk for my phone with no problems. I'm just a little confused when it comes to the Droid 2. I'm assuming that the BlurEmail.apk and the BlurEmailEngine.apk are the two I should be looking at to try to do the same thing. I expected some obvious differences in the smali files, but I am not sure I am looking at what is needed to duplicate this for her phone.
The smali file I am looking at is ActiveSyncPolicySettingService.smali between lines 66 and 89. Reason I am looking at this file is I cannot a SecurityPolicy.smali in any of the various apks I have decompiled.
Anyone familiar with this or can help me work through it?
Haven't been able to get this working. None of the changes I have made allowed it to work the way I wanted it to. This is getting put on my back burner for now. If someone here can shed some light, I would be appreciative.
Any one have any ideas? I haven't been able to figure this out yet.
In case anyone was curious. I may have figured this out, but won't be able to test until tomorrow. The co-worker has been off sick. I'll update if it worked or not and either post directions on how to modify or just throw the modified apk up.
With corporate sync there's usually a good reason for the security. You could potentially be endangering her job... just sayin...
That being said, its a setting in the exchange account, and motoblur uses a seperate corporate sync app from the standard one. I think your best bet (if, and only if, her company is ok with it) would be a custom rom that uses the original blurless app (like liberty... for instance).
Sent from my DROID2 using Tapatalk
mcmillanje said:
With corporate sync there's usually a good reason for the security. You could potentially be endangering her job... just sayin...
That being said, its a setting in the exchange account, and motoblur uses a seperate corporate sync app from the standard one. I think your best bet (if, and only if, her company is ok with it) would be a custom rom that uses the original blurless app (like liberty... for instance).
Sent from my DROID2 using Tapatalk
Click to expand...
Click to collapse
We're part of the group that helps to enforce security policy - particularly with the phones (not worried about her or myself getting in trouble for this - there are perks for being the support people and in the right groups ).
She is not adventurous enough to go for a custom rom just yet (took me nearly a year for me to convince her to let me root one of her phones).
Any insight on which smali file(s) in the BlurEmail.apk or BlurEmailEngine.apk that may need to be modified for a similar result?
Flak_Munky said:
We're part of the group that helps to enforce security policy - particularly with the phones (not worried about her or myself getting in trouble for this - there are perks for being the support people and in the right groups ).
She is not adventurous enough to go for a custom rom just yet (took me nearly a year for me to convince her to let me root one of her phones).
Any insight on which smali file(s) in the BlurEmail.apk or BlurEmailEngine.apk that may need to be modified for a similar result?
Click to expand...
Click to collapse
I know this is an old thread, but I did this a long time ago and totally forgot how to do it when I reinstalled a new rom. So I tried to do this again, this is with an Atrix not the Droid but it should be pretty similiar. This time I did it to a deodexed version so I don't remember exactly how you to it with an odex file. Because I didn't feel like finding the framework files, i skipped apk-tool for this first part and just used baksmali right on the BlurEmailEngine.apk. For the GB atrix the file was com
Code:
\motorola\blur\service\email\provider\activesync\ActiveSyncPolicySettingService.smali
and your looking for .
Code:
method private declared-synchronized setPolicies(Lcom/motorola/blur/service/email/protocol/activesync/ProvisioningData;
After the
Code:
.method private declared-synchronized setPolicies(Lcom/motorola/blur/service/email/protocol/activesync/ProvisioningData;)V
.registers 15
.parameter "provisioningData"
.prologue
.line 108
i just added a line that says
Code:
return-void
so that no policies are actually set. Then recompile everything. I smali'ed the whole foleder, theI used apk-tool on the orginal apk. Extracted the apk files, deleted classes.dex, added the out.dex from the smali'ing, renamed to classes.dex, zipped the apk, then zipaligned. Then use whatever method you want to backup the orignal and add the unsignedBlurEmailEnginer.apk to /system/app and fix the permissions. I renamed it also, but I don't think you have to. Hopefully that helps someone (and reminds me next time).
I have a user of my app who is having a problem running it. My code launches another activity in the same app, and he is saying it is stopping before it should & returning to the previous activity, and he doesn't see any Force Close warnings.
I have run my code in the emulator & on my phone, I can't reproduce the error. We both run Android 2.2 on our phones, his is an HTC EVO & mine is a HTC Wildfire, as far as I can tell his specs are better than mine so shouldn't cause an issue - I deliberately chose a low spec for for my dev work so the code ought to run on anything.
As a bit of an Andoid dev noob (but been coding for years), is there any easy way I can make a special build of the app to send to him that would log any errors that happen ? I'd like to get a stack dump as well if possible, as I'm not sure exactly what routine in the activity its crashing out in. The activity that crashes is Gallery with 9 images in it, he can't flick through them or select one. I'm stumped as to whats causing it, any assistance would be gratefully received.
Thanks.
Why not point to your app and let others here try it on their phones? It could simply be other apps installed on his phone interfering with your app.
Long time programmer here too and when I get to where you're at (and I"m sure you've put some hours into this LOL), I go back to STEP 1.
I comment-out any and all code but the bare minimum; break it down to the Intent, startActivity and maybe a Toast message in the second activity. Even parse down your XML files to bare minimum.
See if that works. Then, ADD BACK ONE LINE OF CODE AT A TIME Run program and make sure it works. Yeah, it's painful, but in my 20 years of coding, I've learned to put my pride aside and to not "pretend" all the code I've written is correct.
Sometimes on bigger projects, I"ll change or add a couple of lines of code, run a back up and test. Rinse and repeat LOL. That way, I know I"m only a couple of lines of code from what "used" to work.
Good Luck!
Thanks both of you.
old_dude - Its a paid app. Only £0.99 but I don't think people would pay to help me. There is a free version of the same app (with less functionality) that this guy can get to work. If your really interested the 2 versions are -
Plink Log - Free Version
Plink Log Pro - Paid version
Rootstonian - agreed thats the approach I'd normally take if I was having problems on my dev phone or the emulator. The problem is that its OK on my HTC Wildfire/Android2.2 but on this guys HTC EVO/Android2.2 its having problems. I dont really want to keep sending him .apks with 1 or 2 lines extra enabled just to see if that fixes his specific issue. I was hoping there was something I could code to catch whatever crashes the activity & log it somewhere for me to analyse. When I do PC dev work, I have a global exception handler that catches anything I dont explicitly handle, and dumps the full call stack into a Log File I can read later.
I think I'll just have to take the existing app & put loads of debug code into it to save messages into a log file & see what bits of code are being called & what isn't & then get him to email me the results.
Thanks for the ideas guys, its always useful to get input from another perspective.
Dave
Hmmmm, just discovered setDefaultUncaughtExceptionHandler - might be able to use that with printStackTrace. Sounds interesting.
Hallo everbody,
im writing a background service to get informations like the time an active app (not my app) is running.
With this information i can show the user a list of the most used apps depending on the time.
The methods of the ActivityManager-class are useless, because the received informations aren't reliable.
So i thought, because the Android-System is based on a Linux-Kernel, i can use the internal structure to get these informations.
So i read out the pseudo proc-filesystem to get the process informations and for the 2nd time i thought
thats the right place for me to get what i want.
I read out the stat-file in every single process-directory to get the starttime(in clock_ticks) of the process.
I dynamic calculate the HZ USER_HZ value and use it to get the real starttime but this time never changes.
It's more like a timestamp of the first start on the system after boot.
The user-code-time and kernel-code-time seems to be too short and the values are updated too irregular.
So i just got a time value, that tells me the time when the app was first started after system boot
but i want a timestamp or anything else i can get from a currently running app to calculate the time this app is active.
Long life services and background services are not my goal.
Now i'm here because i don't know if i just miscalculate the values from this pseudo filesystem or
if i'm absolutely wrong where i get my informations from.
My Questions:
1. Do i read the wrong values files filesystem (if yes, where can i find these informations in the system structures)
2. Do i misunderstand some of the values i read out
3. Why do the files in the process directories become updated so irregular or once in a lifetime (just if im in the right filesystemfile)
I hope u can help me. *-*
Well, interesting approaches. :good:
The only way I see is running a background service and storing the launch time yourself.
I'm sorry but I don't know the answers to your questions.
You could
a) use su to get the active process list
b) get to /proc/??? folder (where ??? is the apppropriate process you enquire, for example /proc/80/)
c) get the /proc/80/sched text file and look for exec_runtime or vruntime or what ever works for you
carbonpeople said:
You could
a) use su to get the active process list
b) get to /proc/??? folder (where ??? is the apppropriate process you enquire, for example /proc/80/)
c) get the /proc/80/sched text file and look for exec_runtime or vruntime or what ever works for you
Click to expand...
Click to collapse
Oh, getting the currently running tasks can even be done much easier and doesn't require root. This is what I use:
Code:
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> processInfoList = am.getRunningAppProcesses();
carbonpeople said:
You could
a) use su to get the active process list
b) get to /proc/??? folder (where ??? is the apppropriate process you enquire, for example /proc/80/)
c) get the /proc/80/sched text file and look for exec_runtime or vruntime or what ever works for you
Click to expand...
Click to collapse
that seems to be exactly what i need!
but there are the next questions:
what is the unit of the "se.sum_exec_runtime"-field? is it in nano-secs?
what does the point do in the value? does it indicates a floating-point value?
im kinda confused and didnt really find something meaningful about the unit (*-*)
and im not very handy with the kernel code from "lxr.linux.no"
nikwen said:
Oh, getting the currently running tasks can even be done much easier and doesn't require root. This is what I use:
Code:
ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
List<ActivityManager.RunningAppProcessInfo> processInfoList = am.getRunningAppProcesses();
Click to expand...
Click to collapse
Following Note can be found in the android-doc:
"this method is only intended for debugging or building a user-facing process management UI."
And the "RunningAppProcessInfo"-class (given by the Method) doesnt provide any infos about the running time of a process.
So i think it's more reliable for me to read out the process-infos directly in the proc-filesystem.
Dalorikai said:
Following Note can be found in the android-doc:
"this method is only intended for debugging or building a user-facing process management UI."
And the "RunningAppProcessInfo"-class (given by the Method) doesnt provide any infos about the running time of a process.
So i think it's more reliable for me to read out the process-infos directly in the proc-filesystem.
Click to expand...
Click to collapse
1) True.
2) That's why I wrote this:
nikwen said:
The only way I see is running a background service and storing the launch time yourself.
Click to expand...
Click to collapse
3) But if the other method works and if you don't care about root rights as a requirement, it might be better. :good:
Dalorikai said:
what is the unit of the "se.sum_exec_runtime"-field? is it in nano-secs?
what does the point do in the value? does it indicates a floating-point value?
im kinda confused and didnt really find something meaningful about the unit (*-*)
and im not very handy with the kernel code from "lxr.linux.no"
Click to expand...
Click to collapse
replying to my own post i think the point in the value of the field indicates the milli-secs.
just an idea - im not sure but would be plausible if the unit is nano-secs.
what do u think or possibly know? ^^