Sorry if I have to put my bug-report here but:
1) I tried to reply in the appropriate thread (http://forum.xda-developers.com/showthread.php?t=1886460) but I receive such message
stragnagn, you do not have permission to access this page. This could be due to one of several reasons:
Click to expand...
Click to collapse
2) I tried to send a PM to Bin4ry but the system replies:
Bin4ry has chosen not to receive private messages or may not be allowed to receive private messages. Therefore you may not send your message to him/her.
Click to expand...
Click to collapse
Here comes the bug report.
There are some errors in your linux script:
1) lines 218, 221, 240, 243, 317, 326, 361, 385: command "wait" should be replaced with "sleep"; on Linux, "wait" is used to monitor processes state changes;
2) line 229: "stuff\RootMe.tar" should be "stuff/RootMe.tar";
3) line 124: same as above "stuff\busybox" -> "stuff/busybox"
4) line 388: "stuff\su" -> "stuff/su"
There were some other typos but have to find them again
Someone could answer me please?
Related
Hi,
First let me apologize if this question has been answered previously. I did try searching all forums for the solution, but the search methods make it very difficult to narrow down the search results.
I"m also having trouble posting. I get the message "To prevent spam to the forums, ALL new users are not permitted to post outside links in their messages", so I'm editing this message to see if I can find the "outside link" (there is none that I can see.)
I have an original Motorola Droid 1 - purchased the first month that Verizon had them 2 Decembers ago.
I am trying to root my phone. Here are the stats from the "About Phone" screen
Android version: 2.2.2
Build number: FRG83G
I have tried Z4MOD 1.3 and Super One click 2.1 (not 2.1.1) (had to put spaces in because message parser though it was an outside link?)
For both, the symptom is the same. Root appears to work, Superuser application shows up, but phone is not rooted. Apps requiring root access fail, and I've read that the simplest way to absolutely confirm root is to go into Terminal Emulator and see if there's a # prompt instead of a $ prompt. My Term Emulator screen has a $ and when I type S U (with no spaces) , it comes back with "permission denied".
I'm a software consultant (but not a Linux guy) so I understand the steps and concepts involved.
I've also tried once or twice in the past to do a couple of the "step-by-step" methods Same result.
Does anyone have any ideas? I'm not against resetting my phone completely if that's what it will take.
The Super one click install log is attached - seems to indicate that everything is OK.
Thanks in advance
Ron
Found the info that caused the "outside link" error message, thought it might be informative, so I'm including that info in the text file attached to this message.
Ron
Long story short, I'm writing an app that needs to edit a value in the database:
Code:
/data/data/com.motorola.android.providers.settings/databases/settings.db
I know this can be done, I just can't figure out how to do it, even after many days of searching, posting, reading bad information and trying code samples from people who obviously never tested what they posted because none of them have worked. The one common thread is that everything I read suggests this will only work on a rooted phone where su permissions can be obtained. That's fine, and I have been told I need to do this first:
Code:
Process p = Runtime.getRuntime().exec("su");
Ok so now what? How do I use that "p" object to open and edit the database? For simplicity, I don't want to use any "helper classes" for database access. I just want to do something like this:
Code:
myDB = this.openOrCreateDatabase("/data/data/com.motorola.android.providers.settings/databases/settings.db", MODE_PRIVATE, null);
myDB.execSQL("CREATE TABLE IF NOT EXISTS test_table (test_column VARCHAR);");
myDB.execSQL("INSERT INTO test_table (test_column) VALUES ('test_value');");
Any help would be GREATLY appreciated.
Unfortunately, 'su' only grants permissions for shell scripts and command-line executables, NOT to the application calling 'su'.
I wrote an app a long time ago that added "unknown sources" by a similar method. Believe me, I spent a long time on this problem and ended up just writing a ARM executable to do the work and called it in a shell with 'su -c ...'.
Thanks. Tell me, with apps like sqlite editor that can open and edit any db on the device, how are they doing it?
SixHouse said:
Thanks. Tell me, with apps like sqlite editor that can open and edit any db on the device, how are they doing it?
Click to expand...
Click to collapse
I'm not familiar with it, but if I had to guess, I'd bet it uses the sqlite3 command line utility to do the actual database work and fires it off with su.
Gene Poole said:
I'm not familiar with it, but if I had to guess, I'd bet it uses the sqlite3 command line utility to do the actual database work and fires it off with su.
Click to expand...
Click to collapse
That could be. Do you know where I can find that command line utility?
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to General
Did you look here: http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#OPEN_READWRITE
I assume you did, but that is all I have.
Hello XDA!!!this is my first post...
I wanted to be able to send sms messages using my pc but i couldnt find anything useful....
So, after doing some research i managed to create and modify some scripts and got the results i wanted...
The scripts run on linux and have been tested on Arch Linux and Ubuntu...
There are 2 main scripts:
One for reading the phone's messages..
And one for sending messages...
The second script also reads a file called "contacts" and displays its content...
The "contacts" file does not use the phones contacts...the user can open it using a text editor and write his own contacts...
There is also another file called "adb_location" which the user must open with a text editor and paste location of adb...
#######Requirements#########
* Rooted android phone with sqlite3 installed(I believe most custom roms have sqlite3 installed)(My phone is rooted nexus S with CM9)
* Linux pc (tested: Arch Linux and Android)
* ADB installed and working properly
#######After Download#########
* Extract sms.zip wherever you want
* Connect your rooted phone to pc in debugging mode (so it can interact with ADB)
* Open the extracted folder
* Open the file: "adb_location" using a text editor and replace the line: "/opt/android-sdk/platform-tools/adb" with your own adb location
* Open the file: "contacts" and replace the examples with the contacts that you will be using
* Open in terminal the file: "reader-refresh.sh" to read the messages from your phone
* Open in terminal the file: "launch-contacts.sh" to view your contacts and send messages
Here is a demonstration video...not vary instructive but i thing it will help:
XDA wont let me post an outside link...so if you want to see the video search on youtube : "Send sms using pc via adb (linux - android)"
note: If you don't know how to root your phone, flash custom roms or install adb on your linux system, there are plenty of tutorials available on the web
WWWOOOUUUAAAHHHH.
Thanks 1000 times. I have been trying with Qtadb (qtadb installed on both sides). It is supposed to send sms but never could make it ork (client not responding)
I just found your script, and as an Arch user, noting to do than run it!! And working.
Very good script mate.
TY again, as I spend all day long on my box, and typing SMS on my SGS2 small keyboard is a pane in the ass.
polizois said:
Hello XDA!!!this is my first post...
I wanted to be able to send sms messages using my pc but i couldnt find anything useful....
So, after doing some research i managed to create and modify some scripts and got the results i wanted...
Click to expand...
Click to collapse
I think I will use this and adapt it to a web page my sister can use in Abu Dhabi to text anyone in the US for free through my phone.
Thank you so much for the research you have done. KUDOS!
ICS/Jellybean
Hi
can anyone confirm this is working in ICS/Jellybean (particularly on a SGS2)?
thanks, Ian
Sorted
Got things working again ... needed another
sleep 1
$ADB shell input keyevent 22
after the first one.
thanks for the fix...
iandoug said:
Got things working again ... needed another
sleep 1
$ADB shell input keyevent 22
after the first one.
Click to expand...
Click to collapse
Thanks for the fix my friend...I have't worked on it since I posted it on xda, because noone seemed to care...
Description:
Andy Log is a small tool that dumps necessary logs for bug reporting without hassle.
Just choose what you'd like to include in your log file and click on LOG.
Supported (so far):
1. Logcat
2. Buildprop
3. CPU info
4. Sysctl
5. Kmsg
6. Last kmsg
7. Dmesg
8. Uptime
Logs are saved to /{MAIN STORAGE}/Android/data/{PACKAGE NAME}/Logs folder.
Download:
Andy Log (ROOT)
Change log
Reserved for change log:
v2.0
Fixed crashes on Android 6+
v1.4
Android N support (please work)
Fixed log folder chooser on Android 6
v1.3
Added:
Last crash option, useful for extracting the minimum required data for crash reporting.
(PRO) Logcat:
radio & events buffers.
Formating.
Filtering ( tag:level ex: AndroidRuntime:E )
v1.2
Fixed:
1. Problem with Italian date format.
Added:
1. Confirm and show log files' names before clearing them.
2. Share log option.
3. An option to change default logs folder.
v1.1
Fixed:
1. CLEAR LOGS bug.
2. Force close when no option is checked.
3. Force close during dumping logs due to DOCUMENTS field being undeclared in some devices' framework.
v1.0
Initial release.
@deeplyyoung try out this app bro , its just awesome. @Bassel Bakr good handy app which saves time. It also helps a lot of noobs around here to provide proper logs
Great work. :good:
Great!!! This is the most awaited app for newbies.
Nice, I'll have to try this out. I currently have SysLog & Logcat Extreme installed for their various functions. This might be a replacement for SysLog.
EDIT: Trying it now, it's been sitting on "Dumping KMSG" for about 5 minutes. I checked them all, by the way. Shall I use one of the aforementioned apps I use to record a logcat while it happens? Seems a bit ironic, I know.
yochananmarqos said:
Nice, I'll have to try this out. I currently have SysLog & Logcat Extreme installed for their various functions. This might be a replacement for SysLog.
EDIT: Trying it now, it's been sitting on "Dumping KMSG" for about 5 minutes. I checked them all, by the way. Shall I use one of the aforementioned apps I use to record a logcat while it happens? Seems a bit ironic, I know.
Click to expand...
Click to collapse
I'd be grateful if you did. ?
I'll make sure next update less prone to this problem.
Bassel Bakr said:
I'd be grateful if you did. ?
I'll make sure next update less prone to this problem.
Click to expand...
Click to collapse
I let it sit for about 5 minutes, so it's almost 10 thousand lines.
https://dl.dropboxusercontent.com/u/67194527/Log_2014-10-19_23-46-59.txt
Great app. Command lines made handy. Now users can easily submit logs to respective developers and contribute in smoother development :good:
@Bassel Bakr Could you add Dmesg feature?
Great, thank you, logs have always baffled me - this has made them much easier for me to understand.
Problem I'm facing is that I can't find the logs in the file path /0/android/data/com.bassel.andylog/files/documents/.....
When I get to documents there is nothing in that file.
I can see them when I first take the log and open it though?
Great app, just one thing. After taking a Logcat the log says “
Unable to open log device '/dev/log/main': No such file or directory ”. All other logs seem to work fine.
Bassel Bakr said:
Description:
Andy Log is a small tool that dumps necessary logs for bug reporting without hassle.
Just choose what you'd like to include in your log file and click on LOG.
Supported (so far):
1. Logcat
2. Buildprop
3. CPU info
4. Sysctl
5. Kmsg
6. Last kmsg
7. Uptime
Logs are saved to /{MAIN STORAGE}/Android/data/{PACKAGE NAME}/Documents folder.
Download:
Andy Log (ROOT)
Click to expand...
Click to collapse
I couldn't find this app on F-Droid. Is there a github repo or other link to the source?
@Bassel Bakr very useful app thanks but i think you should change the Default directory or add an option let us to choose saving directory.
iko11 said:
@Bassel Bakr very useful app thanks but i think you should change the Default directory or add an option let us to choose saving directory.
Click to expand...
Click to collapse
+1
I was thinking the exact same thing
Nice!
Cool App. Could You please include radio log dump (adb logcat -b radio -v time -d)?
filters possible for specific app?
Thanks everyone for your feedback. ?
New update v1.1 check second post change log.
yochananmarqos said:
I let it sit for about 5 minutes, so it's almost 10 thousand lines.
https://dl.dropboxusercontent.com/u/67194527/Log_2014-10-19_23-46-59.txt
Click to expand...
Click to collapse
Check v1.1
Al Arsyadi said:
@Bassel Bakr Could you add Dmesg feature?
Click to expand...
Click to collapse
It's already there but i forgot to include it in the description, sorry. ?
Jimsilver73 said:
Great, thank you, logs have always baffled me - this has made them much easier for me to understand.
Problem I'm facing is that I can't find the logs in the file path /0/android/data/com.bassel.andylog/files/documents/.....
When I get to documents there is nothing in that file.
I can see them when I first take the log and open it though?
Click to expand...
Click to collapse
Strange! Log file can't be opened unless it is already there! ?
Anyway, I'll look into it. ?
p1eter said:
Great app, just one thing. After taking a Logcat the log says “
Unable to open log device '/dev/log/main': No such file or directory ”. All other logs seem to work fine.
Click to expand...
Click to collapse
Do you get the same thing if you executed logcat command in a terminal emulator?
MiyagiSan said:
I couldn't find this app on F-Droid. Is there a github repo or other link to the source?
Click to expand...
Click to collapse
No, it's closed source.
iko11 said:
@Bassel Bakr very useful app thanks but i think you should change the Default directory or add an option let us to choose saving directory.
Click to expand...
Click to collapse
Thanks for your suggestion, I'll work on it.
ArdnoS75 said:
Cool App. Could You please include radio log dump (adb logcat -b radio -v time -d)?
Click to expand...
Click to collapse
Thanks for your suggestion, I'll work on it.
starbase64 said:
filters possible for specific app?
Click to expand...
Click to collapse
Thanks for your suggestion, I'll work on it.
Bassel Bakr said:
Thanks everyone for your feedback. ?
New update v1.1 check second post change log.
Check v1.1
Click to expand...
Click to collapse
It successfully saves the logs now. However, I noticed it saves them all to one file when selecting multiple. Also, if different logs are chosen using the default filename choice, there's no way to tell which one is which without opening them. Would it be possible to automatically generate the first part of the filename based on the type of log? i.e., kmsg--(Date)--(Time).txt, etc? Thanks!
Bassel Bakr said:
Do you get the same thing if you executed logcat command in a terminal emulator?
Click to expand...
Click to collapse
Logcat command gives me “Unable to open log device '/dev/log/main': No such file or directory ”
When I tried to create the folders /log/main terminal returned “logcat read: Is a directory”
YOU NEED 3 THINGS :
1. An Android Phone Running on 4.4.x or above.
2. Whatsapp 2.11.508 installed.
3. Root Exporer/Root Browser apk installed.
If you have all these mentioned things installed in your phone then proceed ahead.
Steps :-
1. Open Root Explorer and go to Data>Data>com.whatsapp>Shared_prefs>com.whatsapp_preferences.xml.
2. Open it in RB Text Editor and then you see something like this after opening .xml file :
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
After that <map> you have to write <boolean name="call" value="true" />
<string name="call_allowed">all</string> in the next line after <map>.
3. Now, Save that .xml file and go to settings>apps>Whatsapp and select FORCE CLOSE.
4. You are all done. Open your WHATSAPP and enjoy !!
This method is 100% Working as i am also using this method.
Hit Thanks :good: if you like my work.
Mod Edit: Thread closed as a duplicate. Please continue the discussion here: http://forum.xda-developers.com/android/general/guide-enable-whatsapp-call-feature-t3019489
Screenshot
SS of com.whatsapp_preferences.xml after edit pls
Sent From My XT1068{LP} Using TapatalK
Good I will try it so the opposite person also should do the same and do we need an invite to active pls
Enter that string after <map> line.
In screenshot,my all new coding was hidden after saving .xml file.
Rishabh-The Developer said:
Enter that string after <map> line.
In screenshot,my all new coding was hidden after saving .xml file.
Click to expand...
Click to collapse
I used this method but the call lasts 0.5 seconds and the recipient does not have evidence.
Note N7100 - Rom Carbon Nightly 4.4.4 KK
uzas said:
I used this method but the call lasts 0.5 seconds and the recipient does not have evidence.
Note N7100 - Rom Carbon Nightly 4.4.4 KK
Click to expand...
Click to collapse
Have you done all methods sucessfully ?
I Think u forgot to Force Close the app.
Rishabh-The Developer said:
Have you done all methods sucessfully ?
I Think u forgot to Force Close the app.
Click to expand...
Click to collapse
I did everything and calls are enabled but the ringing is 0.5 second, then nothing.
Note N7100 - Rom Carbon Nightly 4.4.4 KK
So then you have to wait for a official update from play store(not with whatsapp website).
Rishabh-The Developer said:
So then you have to wait for a official update from play store(not with whatsapp website).
Click to expand...
Click to collapse
Maybe! So, even you can't call?
Note N7100 - Rom Carbon Nightly 4.4.4 KK
Call hack by: Ishaqzaada Rishabh????
I bet you wont believe that even by yourself. This method was posted couple days ago in several places, at least here and here.
Your guide tells to edit Data>Data>com.whatsapp>Shared_prefs>com.whatsapp_p references.xml.
There is no such a file, it should be /data/data/com.whatsapp/shared_prefs/com.whatsapp_preferences.xml
In screenshot,my all new coding was hidden after saving .xml file.
Click to expand...
Click to collapse
If you look close enough, you might find out that this code doesn't get 'hidden' anywhere. It's still there, it just might not be in same row where you typed it.
Anyway, thanks for failing the copypaste work you did to make this guide :good:
Solution
Spere said:
Call hack by: Ishaqzaada Rishabh????
I bet you wont believe that even by yourself. This method was posted couple days ago in several places, at least here and here.
Your guide tells to edit Data>Data>com.whatsapp>Shared_prefs>com.whatsapp_p references.xml.
There is no such a file, it should be /data/data/com.whatsapp/shared_prefs/com.whatsapp_preferences.xml
If you look close enough, you might find out that this code doesn't get 'hidden' anywhere. It's still there, it just might not be in same row where you typed it.
Anyway, thanks for failing the copypaste work you did to make this guide :good:
Click to expand...
Click to collapse
Dude most of the Xiaomi users have this problem ,they are able to locate data/data folder. just Google your location of com.Whatsapp folder for your device,then you might be able to locate the com.Whatsapp_prefs file.
I cracked up when I saw that screenshot too. :laugh::laugh::laugh::laugh: Just another typical noob kanger.
Spere said:
Call hack by: Ishaqzaada Rishabh????
I bet you wont believe that even by yourself. This method was posted couple days ago in several places, at least here and here.
Your guide tells to edit Data>Data>com.whatsapp>Shared_prefs>com.whatsapp_p references.xml.
There is no such a file, it should be /data/data/com.whatsapp/shared_prefs/com.whatsapp_preferences.xml
If you look close enough, you might find out that this code doesn't get 'hidden' anywhere. It's still there, it just might not be in same row where you typed it.
Anyway, thanks for failing the copypaste work you did to make this guide :good:
Click to expand...
Click to collapse
Sorry but can we continue the discussion in the previously opened guide for this: Thread closed as a duplicate. Please continue the discussion here: http://forum.xda-developers.com/android/general/guide-enable-whatsapp-call-feature-t3019489
Thanks!