Get Application name from NDK - Xposed Framework Development

Hi Everyone,
I've have a application that sets the Xposed hook of a application and then sets a native hook. The problem is how do I pass information(strings) from the xposed app(hook) to the native hook. What I am trying to do is get the application name inside the native hook. I've tried all the /proc/* locations and all return "<pre-initialized>"(I can get the PID using pid_t pid=getpid();). So I'm thinking the only way to get this information is if I request it from Java. But if I request it from Java it wont be from the Xposed app but from the original hooked app which will not have my string pass class?
So this is basically this is the process?
App Load > Xposed Hook > Native Hook > Native Hook Calls Java String Class > App load?

Related

[Q]Sip App for Samsung Galaxy SII - or stock SIP (where???)

Hello,
when reading the AndroidUsersGuide-2.3.pdf I can see that the phone should have a possibilty to setup SIP accounts within the stock call App but I cant find any settings???
Anyone got a recommendation for a SIP App if the stock one doesnt work?
Yes the App Fring is very recomendet for Sip calls.
But take care of the battery drain like every other Messenger app
So there's no stock SIP app?
stock sip is disabled and only root modifications can enable it
otherwise, simplesip is pretty good, although it uses the wrong mic on the sgs2 ;-)
much better than fring as in its a real sip client (you need a sip account somewhere) and doesnt uses up battery if you don't register it for incoming calls
OK my Device is rooted so maybe worth a try
Ok, so if we have root how can we enable stock sip?
I would love to connect my phone with my tribox.
bilboa1 said:
stock sip is disabled and only root modifications can enable it
otherwise, simplesip is pretty good, although it uses the wrong mic on the sgs2 ;-)
much better than fring as in its a real sip client (you need a sip account somewhere) and doesnt uses up battery if you don't register it for incoming calls
Click to expand...
Click to collapse
CsipSimple will work but you have to go to expert settings and change mic settings like this:
* Use mode API : disabled
* Use routing API : disabled
* Audio mode for SIP calls : "NORMAL"
* Micro source : "DEFAULT"
Then it will work. Tested and works
Or you can use the nightly builds of csipsimple!
Its much better than sipdroid btw!
Sent from my GT-I9100 using XDA App
jsomby said:
CsipSimple will work but you have to go to expert settings and change mic settings like this:
* Use mode API : disabled
* Use routing API : disabled
* Audio mode for SIP calls : "NORMAL"
* Micro source : "DEFAULT"
Then it will work. Tested and works
Click to expand...
Click to collapse
How do you change this settings? I cant find it in the settings menu.
Thanks
Sent from my GT-I9100 using Tapatalk
SIPDROID
SIPDROID working very very gud on it I am using my actionvoip account on it...
iznee said:
How do you change this settings? I cant find it in the settings menu.
Thanks
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
hit the menu key again in the settings and selected advanced, then browse settings again
when i make a cal with simplesip the phone goes into vibrating mode and i cant hear anything from the other side. the other side can hear me. i tried early builds en latest.
anybody has a idea?
i run ke7 eu with root
Linphone works.
Sent from my GT-I9100 using XDA App
How to enable native SIP stack on Galaxy S II
There are various VoIP clients you can use for making VoIP calls (Sipdroid, csipsimple, etc.) but I’d definitely recommend giving the original Android SIP stack a try
Normally, all smartphones running Android 2.3.3 or higher come with a native SIP stack, allowing handset owners to register their SIP accounts to make and receive calls.
Unfortunately this feature has been deliberately dropped by the Samsung cowards who obviously bowed to the pressure of greedy telecom providers who are very adamant about having this feature disabled.
Here are the instructions for enabling the native SIP stack on your Galaxy S II again (I think there’s already a similar thread out there by a member named jarsiv):
- Unzip the attached file “android.software.sip.voip.zip” and add it to “system\etc\permissions\". After you’re done, reboot your phone and voila you can enjoy the benefits of the native SIP stack again
By default, the native Android SIP stacks only allows for VoIP calls placed via Wifi (it seems that even the mighty G from mountain view bowed to the enormous pressure exercised by the telcos..), but there is a way to enable support for 3G as well:
- You can modify your framework-res.apk to enable SIP over 3G by editing the xml file "res\values\bools.xml" and setting the parameter for "config_sip_wifi_only" to false.
In order to modify your framework-res.apk you’ll need to follow the following instructions (this is only necessary if you want to enable 3G support and not required if you only want to place VoIP calls via Wifi):
- Download the program “APK Manager” (just search the forum) and install it on your PC
- Copy your original "framework-res.apk" (via adb push or root explorer) to your PC and place your original "framework-res.apk" into the "\place-apk-here-for-modding\" folder
- Launch "script.bat"
- Press 22 to set your project and choose "framework-res.apk" as your project by pressing 1
- After setting "framework-res.apk as your project, press 9 to Decompile the apk
- Edit the xml file "res\values\bools.xml" and change the parameter for "config_sip_wifi_only" from “true” to “false”
- Recompile the apk by pressing 11
- When asked whether it is a system file, answer “yes”
- When asked "would you like to copy over any additional files...?", answer “yes”
- The script will be temporarily paused and you shouldn’t press a key now.
- Now go to the “keep” folder (located in the same folder as "script.bat")
- In the “keep” folder delete the following file:
"resources.arsc"
- Go back to the "script.bat" screen and press a key to let the program finish the job
- Your new "framework-res.apk" has been created and can be found in the "\place-apk-here-for-modding\" folder (it’s called "unsignedframework-res.apk" and doesn’t work yet).
- After unzipping the entire content of the "unsignedframework-res.apk" you should have 5 objects (3 folders and 2 files).
- Now zip these files with Winzip choosing "No compression" as the zipping method
- After zipping it, rename the zip into "framework-res.apk".
- Now you can use root explorer or adb push to replace the original framework.apk with your newly created "framework-res.apk".
Enjoy the native SIP stack with support for both Wifi and 3G
Good luck!
Wow... This is exactly what I was asking for ;-) thanks a lot...
Will give it a try next week and will do the whole instruction for 3G as well.
Sent from my GT-I9100 using XDA Premium App
But how do you do the IP call? There is no IP call alternative when selecting a valid user from contacts like there is on stock Android.
Sent from my GT-I9100 using XDA App
I feel very incompetent here.
I've just purchased my first android, galaxy s2 and really need to understand how to get the native sip on 3g operating.
Any chance of further explanation regards files being copied to / from etc and how to, for these phones.?
thanks.
I am using the Cognition rom with the android native SIP phone client.
SIP works well (only very short lag according to the person I talked to) but microphone volume is very low (the person could barely hear me) unfortunately ... anybody got this issue ? any way to solve it ??
Thanks !
OOPS, SORRY, THE ISSUE WITH THE MICROPHONE IS KNOWN, PLEASE SEE HERE : http://forum.xda-developers.com/showthread.php?t=1109962
Helo
In response to mobile galaxy for native sip settings...i cant find the folder /system/etc/permission.
Can anyone please help me with that. i have downloaded the software.
Sip Droid works fine with me
Tweak the Audio settings to Highest.

Tmobile Wifi HotSpot Bypass

You can bypass it ez.. once you have it rooted using TrevE Mod.. I'm assuming we all have gone thru this were it's Tmobile blocking you ..
I read on once of the forum's here you can use Pdanet etc.etc.
& something about the User agent.. well you can bypass it ... I'm not using any extra appz or software on PC/laptop. I'm just bypass it by using the User agent & selecting a different one. just use the F10 to pull options out on Explorer > and select Tools
or you can just Pust F12 once Explorer is open then you get the HTLM Info & other crap on the buttom screen look for >> tools ... one more time select it you'll see > Change User Agent String > select its & Select >>> Custom > type in Android under Friendly Name and User Agent String put 1 then Select or click on the > Add button. you should be able to surf the web or any web site you wish too. worked for me....
NOTE > every time you Turn off your WIFI Tethering App TrevE Mod and re-activate it. also make sure not to close your Broswer. You will have to go into Tools in Explorer & make sure your User Agent String is on Android the one you created.. & you'll be free to surf the web and play games currently on FFXIV & playing off my Galaxy NOte 2 even though I maxed out my Hotspot 500mb per month.. since I found this .. it's Bad Ass.. if you need any help AIM msg me at neoamoeba
another post
My normal speed off phone is DL = 24Mbs UL = 19Mbs
off PC when you bypass higher. here's a PIC.
cmg2080 said:
You can bypass it ez.. once you have it rooted using TrevE Mod.. I'm assuming we all have gone thru this were it's Tmobile blocking you ..
I read on once of the forum's here you can use Pdanet etc.etc.
& something about the User agent.. well you can bypass it ... I'm not using any extra appz or software on PC/laptop. I'm just bypass it by using the User agent & selecting a different one. just use the F10 to pull options out on Explorer > and select Tools
or you can just Pust F12 once Explorer is open then you get the HTLM Info & other crap on the buttom screen look for >> tools ... one more time select it you'll see > Change User Agent String > select its & Select >>> Custom > type in Android under Friendly Name and User Agent String put 1 then Select or click on the > Add button. you should be able to surf the web or any web site you wish too. worked for me....
NOTE > every time you Turn off your WIFI Tethering App TrevE Mod and re-activate it. also make sure not to close your Broswer. You will have to go into Tools in Explorer & make sure your User Agent String is on Android the one you created.. & you'll be free to surf the web and play games currently on FFXIV & playing off my Galaxy NOte 2 even though I maxed out my Hotspot 500mb per month.. since I found this .. it's Bad Ass.. if you need any help AIM msg me at neoamoeba
Click to expand...
Click to collapse
Which browser are you referring to?
Sent from my SGH-T999 using xda premium
derride8 said:
Which browser are you referring to?
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Im using internet explorer for my browser. .. if I use chrom I don't know how to change it. Yet. Still trying to figure that out.
Ill try that system check thing tonight.
For Chrome just use the User Agent Spoofer from the Chrome Web Store.
Set it to any iOS or Android device, or even OS X Safari 5, and it works. I used to use the google searchbot user agent string at one point. You'll notice that some sites check for the user agent and display content accordingly. That said, certain parts of sites may be blocked when using some strings, like Netflix, or attempting to use some Google Apps with the searchbot string.
I also found that as long as I'm using https (vs http) I won't receive the T-Mobile Hotspot Upsell page.

[Q] Figuring out HuluPlus (or other app) URI parameters ?

Hey everyone!
I spent quite a few hours yesterday messing with adb, trying to launch applications to either play a movie/episode directoy or launch the app into the "info" page and then press play. Even decompiling the APK and looking at the Javascript files, I wasn't able to figure what is, for example, Hulu Plus expecting to receive in it's URI string.
I am not familiar at all with android rooting, but I'm wondering if it's something that might be possible to figure out when one's device is rooted (mine isn't)... by sniffing or debugging, or something else?
Basically I'm curious what parameters is the firetv using to launch apps directly into a video... when you use search, for example.

Cordova Security doubt

Hello Beautiful community of xdadevelopers!
I am just getting started with cordova/phonegap
I was so curious how can I connect to mysql in cordova and display its contents in app. So I came across this website that shows how to achieve the same "https://codesundar.com/phonegap-php-mysql-example/ ". I am basically trying to make android app using my web skills so I came across this ADF 'Cordova'.
I am just in alot of doubts but first one is security. When I write a code in php to connect and fetch data from mysql to display database or use mysql for user login credentials verification and build it into .apk anyone can reverse that and decompile the .apk to fetch the php code and the credentials used to access the database right?
What is the secure way around this?
As I know php is a server side scripting language so .php files are not accessible from browser so that makes it a bit secure but in case of cordova the php files will be compiled in the .apk with cordova build command
Please clear my doubt
introuble361 said:
Hello Beautiful community of xdadevelopers!
I am just getting started with cordova/phonegap
I was so curious how can I connect to mysql in cordova and display its contents in app. So I came across this website that shows how to achieve the same "https://codesundar.com/phonegap-php-mysql-example/ ". I am basically trying to make android app using my web skills so I came across this ADF 'Cordova'.
I am just in alot of doubts but first one is security. When I write a code in php to connect and fetch data from mysql to display database or use mysql for user login credentials verification and build it into .apk anyone can reverse that and decompile the .apk to fetch the php code and the credentials used to access the database right?
What is the secure way around this?
As I know php is a server side scripting language so .php files are not accessible from browser so that makes it a bit secure but in case of cordova the php files will be compiled in the .apk with cordova build command
Please clear my doubt
Click to expand...
Click to collapse
CAN ANYONE MOVE THIS THREAD TO https://forum.xda-developers.com/coding/web-apps ?
I don't have enough privilege to create a thread there
introuble361 said:
Hello Beautiful community of xdadevelopers!
I am just getting started with cordova/phonegap
I was so curious how can I connect to mysql in cordova and display its contents in app. So I came across this website that shows how to achieve the same "https://codesundar.com/phonegap-php-mysql-example/ ". I am basically trying to make android app using my web skills so I came across this ADF 'Cordova'.
I am just in alot of doubts but first one is security. When I write a code in php to connect and fetch data from mysql to display database or use mysql for user login credentials verification and build it into .apk anyone can reverse that and decompile the .apk to fetch the php code and the credentials used to access the database right?
What is the secure way around this?
As I know php is a server side scripting language so .php files are not accessible from browser so that makes it a bit secure but in case of cordova the php files will be compiled in the .apk with cordova build command
Please clear my doubt
Click to expand...
Click to collapse
Create PHP webservices to manipulate data on server.
Consume the services using fetch API or jquery AJAX in cordova app side.
Or you can use Ionic Framework which uses Http to use webservices.
DO Not use server-db credentials inside an app. There is no way to secure the credentials .
It's generally very poor security practice to use cordova in that way.

VPN Certificates

Is anyone else having issues importing VPN certificates with Strongswan I just get No Certificates Found in the Strongswan app but the cert shows up in settings.
I don't have my 3 XL yet, but experience tells me your certificates are sitting in a location in which the program can't find them. You might want to see into what directory they need to be moved / loaded.
I am loading the certificates into the built in Android certificate manager and they show up in settings but when the app shows built in Android certificate picker they don't show up. So I don't think it's a location issue because they are showing in Android settings just not when the picker comes up in the strongswan app.
Sent from my Pixel 3 XL using Tapatalk
georgewillims said:
I am loading the certificates into the built in Android certificate manager and they show up in settings but when the app shows built in Android certificate picker they don't show up. So I don't think it's a location issue because they are showing in Android settings just not when the picker comes up in the strongswan app.
Sent from my Pixel 3 XL using Tapatalk
Click to expand...
Click to collapse
You might check to see if the P3 is storing them in a different path than the P2 or other phones. My money says that your picker is simply pointed somewhere the files you need are not. The only other thing to consider is if your picker is looking for a specific file type, a type the target files no longer match. Those are two problems most often associated with the symptoms you are describing. Sorry I can't help further -- still don't have my new phone.
wtharp2 said:
You might check to see if the P3 is storing them in a different path than the P2 or other phones. My money says that your picker is simply pointed somewhere the files you need are not. The only other thing to consider is if your picker is looking for a specific file type, a type the target files no longer match. Those are two problems most often associated with the symptoms you are describing. Sorry I can't help further -- still don't have my new phone.
Click to expand...
Click to collapse
It's not a file picker that comes up if I open Android Settings > Security > Advanced > Encryption & Credentials > User Credentials I can see the imported certificate there but when the dialog comes up in strongswan it says no certificates. There is no way to browse for a file these are certificates that have already been imported into the certificate store on Android. With the OpenVPN app you are able to browse for a certificate but the strongswan app is different it uses the built in certificate store to access them. I am thinking it might be because of an unlocked boot loader my old also Android had a unlocked boot loader but the new Pixel has the Titan M and there are also probably security changes in the new Android 9 or maybe the strongswan app just needs to be updated. But I ended up just using less secure username/password auth instead of certificates for now.
Same issue with my pixel 3. Im guessing ovpn works because certs are embedded in the ovpn config file. My ipsec p12 cert is installed, but strongswan can't read it.
I'm also unable to log into Express VPN. Express works on my old pixel 2 and other devices. As others mentioned I'm guessing it's related to the TitanM protection of certificates and the apps not currently supporting it. Hopefully soon enough.
Digging into my ExpressVPN issue I touched on above, its related to a premature 7.x release - currently in the play store. If you downgrade to 6.8 Express VPN works fine on the Pixel3

Categories

Resources