Simple Hello World for SMS Access without root? - Android Q&A, Help & Troubleshooting

This is my first time working with Kotlin or Android. I looking to get a very basic Hello World type thing started as a proof of concept of a future app, but need a little basic guidance.
I would like to be able to back up my SMS and my MMS messages. I have found that most applications focus on SMS only, which for me, leaves out many important messages.
I am just looking for a basic proof of concept that I can connect to that database located in the `/data/data/com.android.providers.telephony/mmssms.db` without being root.
I was able to, using a PC software BackupTrans, get a local copy of the db using USB debugging, and so I have all my queries written, but would like to know how to access that database, and for extra credit, it would be awesome if it isn't any extra effort to access the files at: `/data/user_de/0/com.android.providers.telephony/app_parts/` where the images and other multimedia files are at.
So as a for instance, I normally work in C#, so forgive me, if I wanted to run this query, how would I do so?
Code:
using (SqliteConnection DatabaseConnection = new SqliteConnection(string.Format(@"Data Source=D:\CodeStuff\MMS_Backup\part\mmssms.db")))
{
DatabaseConnection.Open();
SqliteCommand GetDataCommand =
new SqliteCommand(@"SELECT * FROM(
SELECT DISTINCT datetime(date, 'unixepoch','localtime') as msg_date , text as msg, cl as attachment , ""mms"" as type, msg_box as direction FROM part JOIN pdu ON pdu._id=part.mid
WHERE pdu.thread_id =1011
UNION
SELECT datetime(sms.date/1000, 'unixepoch','localtime') as msg_date ,body as msg, """" as attachment, ""sms"" as type, type as direction
FROM sms
WHERE sms.thread_id = 1011
)
WHERE attachment !=""0.smil"" AND attachment !=""smil.xml""
order by msg_date", DatabaseConnection);
var dbResults = GetDataCommand.ExecuteReader();
while (dbResults.Read()){
}
}
I would like to stay away from rooting the phone because if this works, I would like to make it more accessible to more people, and nobody wants the chance of data loss just to back things up
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For what it is worth, I have a Galaxy S10 with Android 11, build # RP1A.200720.012.G973USQU4FTLN

Related

LightMyPi Android App - Control GPIO without SSH and WebioPi wirelessly

I want to share the project I was working on an android app to control all GPIO pins of Rapsberry Pi wirelessly from Android Phone without using SSH nor WebioPi nor port forwarding
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download from Google Play Store
play.google.com/store/apps/details?id=com.lightmypi
The app communicates with your Raspberry without using SSH nor WebIoPi
You need to install a web server, PHP handler and wiringPi and switch.php file on your raspberry to get this app working.
I have given a detailed guide on github along with switch.php file
github.com/juniorhero/raspberrypi2
Read more on Github
If you install Weaved on HTTP port 80, then you can access the GPIO pins from anywhere in the world using LightMyPi app
I am sure you will like this app, please try it and let me know if you face any difficulties :fingers-crossed:
Have you done more development on this?
Could you share Android App source code so we can hack as in our DIY project. Please.
I've followed the directions on github, however when I run the weaved-nixinstaller_1.2.13.bin I choose option 2 and it sets up port 80 OK but then it asks for my Weave email address and password. I gave it my email and invented a password, but then it says:
You are missing a valid session token and must be logged back in.
I also installed the Android app lightmypi, however there is no place to enter an email and password, so it's very confusing how the Android app is supposed to connect to my pi. Probably the issue is with the weaved-nixinstaller not finishing correctly.
I did some Google search and discover that I have to first create a Weaved account online, however they are not accepting new accounts, rather they direct me to setup an account at www dot remot3 dot it. What a run around.
Any help is appreciated, because I am so close to testing this all out.

Huawei P8 Lite - Wifi access point problem

Hello,
First of all, my phone is an Huawei P8 Lite ALE-21, bouth in September 2016, it's ROOTED, I've followed this thread to change the ROM : https://forum.xda-developers.com/p8lite/general/mega-thread-root-unbricking-updating-t3400994, to see if was changing anything... (nothing has changed I reassure you)
I'm getting a problem when I want to share my 4G/3G/2G connection to any devices with the Wifi access point :
Using the default parameters in the phone :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The users can connect, get an IP, and communicate with others without any problems, but here comes the troubles ;
When the connected users want to use the Internet, they open a web browser page and, they are automatically redirected to this kind of page :
Yeah I'm French, but this is saying that "YOU HAVE TO PAY FOR SHARING YOUR CONNECTION!", and I'm not hating capitalism but... I really want to find an other way instead of... PAYING.
This is what I tried :
1 - Changing the ROM to an official Huawei's one -> didn't worked
2 - Trying Cyanogen -> did not detected my SIM, so didn't worked
3 - Trying a dozens of application of transmitting the wifi -> didn't worked
This is what I'm thinking about:
1 - First option, the problem should come from the routing of my phone, which is maybe asking an new IP to the operator... Which has detected it. LUCK ! I'm rooted so in the theory I can break anything in my phone (Changing the Routing tables?).
2 - Second option, my operator HAS FULLY DISABLED THIS FEATURE TO EARN MORE AND MORE MONEY. Wrong, my old phone still can do it (Wiko IGGY) with my current SIM card.
What solution should work in any cases:
1 - Explode my phone into a wall
2 - Buy an IPhone 12
3 - Ask xda-developers who as SOO helped me before <3
I hope somebody has a solution... Else I think I will change my phone...
Thanks for helping me!
Waymix, a nervous student.

Stable tutorial for first-timer to maintain an Essential PH-1?

Hello, I've never gone beyond entering developer mode on any of my phones, looking around carefully, then turning that mode off. I own two PH-1 phones, one is in full time service, and I would like to know of a tutorial / step-by-step to do what I need to do to maintain this phone with the images (ROMs?) that are being maintained and updated. I don't need the phone to do anything other-worldly, just keep it updated.
This is the only forum on here I'm allowed to post to, because I've been a listen-only member for a couple years but have never posted. I've just started using Ubunto 20.04 on a new laptop so I can get away from Windows, but I still have a Win7Pro laptop.
Thanks for your recommendations on how to get started -- safely started -- and how to learn what I need to learn.
Also, I just read some of the read-me-first stickys, and please allow this to also be my "Say Hi" email...
"MP"
PS -- I get a captcha, check it, get the green checkmark, but I see *no* image... I'm using firefox w/ NoScript (all scripts enabled for this tab), on an Ubuntu 20.04 laptop.
So no one cares to reply? Did anyone read it besides myself? Whiskeytangofoxtrot
@Messypotamia
If phone's Android OS isn't an A/B-partition-layout-system - what I believe because its Stock ROM is Android 7.1. - then updating a phone's Android requires phone's boot-loader is unlocked. This must get enabled within phone's Developer options - keyword: OEM unlock - what simply sets phone's unlock ability flag to 1 . Additionally it's necessary that ADB ( read: Android Debug Bridge ) gets enabled in phone's Developer options - keyword: USB debugging.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Alter the IR database to send other codes to the TV - Need help

Hey there.
I have since a few days the new ShieldTV remote with IR function and netflix button. Since yesterday I try to change the NvIRTuner.apk (com.nvidia.irtuner) or its database or the IR calls. Unfortunately without success so far.
The database is built very interesting. I'm talking about the O1R_UPDATE_19NOV20.sqlite here.
In the table M_Codes you can find all IR codes. Before the corresponding Java class determines the device which one has selected in the IR-AV-Toogle menu. In my case a LG TV with the id 1970. This Id can be seen in the setup.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here a Logcat excerpt, if I press my menu button to trigger the HDMI toggle:
07-11 13:37:30.050 4415 4601 D ShieldBluetoothIRInterface: *****REPORT*****0 - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
Good to see the actual IR_Code that is taken, or its alias:
INPUT SCROLL
What I have tried so far:​-I replaced all IR codes in O1R_UPDATE_19NOV20.sqlite with Channel_UP and then moved this db to /data/data/com.nvidia.irtuner/databases with su-rights.
-> Unfortunately the system app com.nvidia.irtuner seems to read the db inital only once. I can't get it to read my db. I don't understand why. No matter if I reset the app, replaced the O1R_UPDATE_19NOV20.sqlite and give appropriate chown and chmod rights or reset the app before.
-My second attempt was a modified APK. Unfortunately, this can not be installed, because it must be signed by nvidia. I have root, but I don't know what to change in the /system/packages.xml so that the system would accept the app.
->When I try to install it, I only get the message that you have to sign this apk appropriately for the user.
-Then I tried to reproduce the service call from the logcat but unfortunately I don't know what to do.
Does anyone have a tip for me?
Greetings by Idijt

Galaxy SM-A215U BoostMobile - Request for Bootloader Unlock & Recovery

This is the device I have.
I see many variants of the A21 & A21S, but not this particular variant.
It is a BoostMobile device,
I'm including screenshots from PHONE_Info so there is no mistake about which device this is.
@minz1 It is my hope that you will look at this, and perhaps consider tackling this little B******!
You were fantastic when tackling the SM-J727P from Boost, and had I not physically destroyed
two of them trying, once again, to resurrect them (which I renamed Lazarus I, II ,III ,IV, V & lastly VI as each was resurrected)
I would still be happy as a clam using the Perx. But, Alas! They are gone for good and this was the Mid-price alternative from Boost.
I stay with Boost because after 4 years, I have 35G of Talk, Text & Data on my account AND 50G Hotspot!! WhoopWhoop!
So, I really hope you are looking for a new challenge.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
As seen below, there is NO OEM Unlock option,
and USB Debugging can be toggled.
dbreed53 said:
This is the device I have.
I see many variants of the A21 & A21S, but not this particular variant.
It is a BoostMobile device,
I'm including screenshots from PHONE_Info so there is no mistake about which device this is.
@minz1 It is my hope that you will look at this, and perhaps consider tackling this little B******!
You were fantastic when tackling the SM-J727P from Boost, and had I not physically destroyed
two of them trying, once again, to resurrect them (which I renamed Lazarus I, II ,III ,IV, V & lastly VI as each was resurrected)
I would still be happy as a clam using the Perx. But, Alas! They are gone for good and this was the Mid-price alternative from Boost.
I stay with Boost because after 4 years, I have 35G of Talk, Text & Data on my account AND 50G Hotspot!! WhoopWhoop!
So, I really hope you are looking for a new challenge.
View attachment 5408095
View attachment 5408097
View attachment 5408099
View attachment 5408101
View attachment 5408103
As seen below, there is NO OEM Unlock option,
and USB Debugging can be toggled.
View attachment 5408121
Click to expand...
Click to collapse
I have the same device and I dont believe anyone is up for this challenge. There is still no real solid information across the web!! I have looked and looked.

Categories

Resources