Debugging PacakgeInstaller - Xposed General

Hi,
I'm trying to learn how the PackageInstaller works.
I want to create an Xpossed model that can control package installations, so I would like to understand how the installation machanisim works (how can i stop installation, how can i restart installation, how can i trigger installation and so...)
Thanks,
Gidi

Have you checked the Android source code?

GermainZ said:
Have you checked the Android source code?
Click to expand...
Click to collapse
Hi,
Of course. I'm using it. But what i meant is how to can i debug it (step by step) on runtime ?
Thanks.

shnapsi said:
Hi,
Of course. I'm using it. But what i meant is how to can i debug it (step by step) on runtime ?
Thanks.
Click to expand...
Click to collapse
This might help: https://github.com/MohammadAG/Xposed-Method-Finder
It basically hooks all methods of the specified classes and logs when they're called.

Related

[Q] Can I use XPOSED in the thread??

Can I use XPOSED in the thread??
Because the HOOK is not the system libraries...Package is a third party...
So...XPOSED to work.. Third party package haven't loaded..
So... To be a new thread.. The class library circulation continued to search a third party
Who can provide an example?
Thanks...
Can you give some more details about your problem, preferably with some code? What exactly are you trying to hook and where (again, it's best if you provide code)? What exactly are you trying?
GermainZ said:
Can you give some more details about your problem, preferably with some code? What exactly are you trying to hook and where (again, it's best if you provide code)? What exactly are you trying?
Click to expand...
Click to collapse
ATTACH FILES use JD-JUI Open it....
look this...
com.tools.filemanager.a.handleMessage
package com.tools.filemanager;
class a
Method: public final void handleMessage(Message paramMessage)
I want hook this method...
GermainZ...you know me??
help me please.....
Thanks..........
Just hook it like any other method. If you can't do that, post the code you tried and the error you're receiving. You might want to search first.
No idea why you keep referring to threads, though.
GermainZ said:
Just hook it like any other method. If you can't do that, post the code you tried and the error you're receiving. You might want to search first.
No idea why you keep referring to threads, though.
Click to expand...
Click to collapse
because I CALLED [[public void handleLoadPackage]]...
but method handleLoadPackage.. in method To out method..All resourse is Release...
So...All res released...But don't execute ClassLoader com.tools.filemanager.a
So..I mean use new thread...Loop execute method handleLoadPackage...
until Hooked com.tools.filemanager.a.handleMessage
[email protected] said:
because I CALLED [[public void handleLoadPackage]]...
but method handleLoadPackage.. in method To out method..All resourse is Release...
So...All res released...But don't execute ClassLoader com.tools.filemanager.a
So..I mean use new thread...Loop execute method handleLoadPackage...
until Hooked com.tools.filemanager.a.handleMessage
Click to expand...
Click to collapse
Sorry, can't help you without the code you're actually trying, and you're being too vague.

[Tool] Installer for Xposed Installer (for ZenFones)

Please see the continuation of this thread here: http://forum.xda-developers.com/xposed/modules/tool-installer-xposed-installer-zenfones-t2983589
Standart installation method from app doesn't work for ZenFones?
pyler said:
Standart installation method from app doesn't work for ZenFones?
Click to expand...
Click to collapse
Nope.
@rovo89 should know about this issue.
He's a busy guy!
pyler said:
@rovo89 should know about this issue.
Click to expand...
Click to collapse
He already does. I have also read that he had created a build for x86 devices. However that build is now outdated.
rovo89 addressing an Asus MemoPad user
Anyone tested it? Ty.
It works. XD
Eduardomb said:
Anyone tested it? Ty.
Click to expand...
Click to collapse
I did test before posting this thread. And it worked. Secondly, out of the 106 download (as of this moment) I have not recieved any negative feedback. Albeit I haven't received positive either. Honestly, after creating this tool I have used it a couple of times.

Can this app be made?

thanks all sorted
Hi
I did this quickly if you want to try : https://github.com/midsylen/SMSResponse
Midsylen said:
Hi
I did this quickly if you want to try
thankyou midsylen, how do i load it do i place the folder on my phone and run the .bat file???
Click to expand...
Click to collapse
marky351 said:
Midsylen said:
Hi
I did this quickly if you want to try
Click to expand...
Click to collapse
thankyou midsylen, how do i load it do i place the folder on my phone and run the .bat file???
Click to expand...
Click to collapse
You would need to compile it in Android Studio and then sideload the compiled APK file! I can try and do this for you in the next day or so once I finish my last exam. Let me know if you still have questions.
Midsylen said:
Hi
I did this quickly if you want to try
shimp208 said:
You would need to compile it in Android Studio and then sideload the compiled APK file! I can try and do this for you in the next day or so once I finish my last exam. Let me know if you still have questions.
Click to expand...
Click to collapse
thanks that would be great, i'll try myself first also but if u have any spare time it would be much much appreciated
Click to expand...
Click to collapse
Oh i thought you had some dev skills so I just made the required classes but the app isn't really usable if you build it, you can't choose the phone number from the app for example. When I'll have some time i'll try to do a more usable app where you can put the number of the contact.
i dont use android studio but cant he just edit the line where it says private static final String PHONE_NUMBER = "+1234567890"; to what ever the phone number is he needs to use
nucleisoft said:
i dont use android studio but cant he just edit the line where it says private static final String PHONE_NUMBER = "+1234567890"; to what ever the phone number is he needs to use
Click to expand...
Click to collapse
Could though it's not much work to add in a input field for putting in the number.
composed it and modified it a little to get it working thankyou for all your help guys

Root Essential Phone Automated

Hey,
I wrote this program to root my essential phone I need some testers. Let me know how its working. https://github.com/thehappydinoa/root-PH1
XDA:DevDB Information
root-PH1, Tool/Utility for the Essential Phone
Contributors
thehappydinoa
Source Code: https://github.com/thehappydinoa/root-PH1
Version Information
Status: Testing
Created 2018-01-21
Last Updated 2018-01-21
Welcome! Is this for stock firmware only? Would be very useful for custom ROMs...
Does it root it 4 times in a row?
Sent from my PH-1 using XDA Labs
How does it works
stryver said:
Welcome! Is this for stock firmware only? Would be very useful for custom ROMs...
Click to expand...
Click to collapse
It is actually just for the Beta program, but I could possibly make an addition for custom ROMs
Finding build number... OPM1.170911.254
Beta builds are supported only
ftn1975 said:
Finding build number... OPM1.170911.254
Beta builds are supported only
Click to expand...
Click to collapse
Yes Beta builds are only supported at the moment. I don't have a device to test the older builds. If anyone wants to add the feature I would be glad to merge.
thehappydinoa said:
Yes Beta builds are only supported at the moment. I don't have a device to test the older builds. If anyone wants to add the feature I would be glad to merge.
Click to expand...
Click to collapse
That was my point. This was the result I got, and I am on OB3
ftn1975 said:
That was my point. This was the result I got, and I am on OB3
Click to expand...
Click to collapse
Oh **** idk why it's not detecting it I'll re write that line
ftn1975 said:
That was my point. This was the result I got, and I am on OB3
Click to expand...
Click to collapse
Hey it should be fixed now
thehappydinoa said:
Hey it should be fixed now
Click to expand...
Click to collapse
Thanks. I will unroot and let you know how it goes
ftn1975 said:
Thanks. I will unroot and let you know how it goes
Click to expand...
Click to collapse
Thanks!
Hello I would like to give this a shot, this is a silly noob question but I wanted to be clear before I try. To execute the python command, is this same process of opening CMD in ADB/fastboot folder? If so I am not exactly clear as what to type to run the command. Is it just >>bash
python root.py<< and all good or ....? Thanks you in advance for any assistance provided.
billetfront said:
Hello I would like to give this a shot, this is a silly noob question but I wanted to be clear before I try. To execute the python command, is this same process of opening CMD in ADB/fastboot folder? If so I am not exactly clear as what to type to run the command. Is it just >>bash
python root.py<< and all good or ....? Thanks you in advance for any assistance provided.
Click to expand...
Click to collapse
Install Python 2
https://www.python.org/downloads/release/python-2714/
Then, if using Windows OS, run the script in Powershell or CMD
Thanks I will give it a shot in a bit and reply back, Thanks for the rapid response.
interesting I installed python from the link provided and ran the command in CMD and it spits back 'bashpython' is not recognized as an internal or external command, operable program or batch file.
billetfront said:
interesting I installed python from the link provided and ran the command in CMD and it spits back 'bashpython' is not recognized as an internal or external command, operable program or batch file.
Click to expand...
Click to collapse
Hey to correctly use my program you have to have python 2 installed and should run using
HTML:
python root.py
So does this phone have root? I wanna pick one up but I need root.
WiddleyScudds said:
So does this phone have root? I wanna pick one up but I need root.
Click to expand...
Click to collapse
How can you be asking this question in a support forum, in a thread specifically about how to automate the root process? While this thread is surrounded by other threads with custom kernels and custom roms?
Please don't buy this phone. You need root. This community does not need you
ElfinJNoty said:
How can you be asking this question in a support forum, in a thread specifically about how to automate the root process? While this thread is surrounded by other threads with custom kernels and custom roms?
Please don't buy this phone. You need root. This community does not need you
Click to expand...
Click to collapse
So helpful, thank you! My phone comes Monday.

open ims setting menu after oreo update

Hi
Can anybody able to open ims setting menu after oreo update without root?
I want to enable volte option from it but after oreo update can not open the ims setting due to root needed.
Thanks in advance.
hardikgala said:
Hi
Can anybody able to open ims setting menu after oreo update without root?
I want to enable volte option from it but after oreo update can not open the ims setting due to root needed.
Thanks in advance.
Click to expand...
Click to collapse
https://forum.xda-developers.com/ga...-n950n-kt-branded-ims-settings-t3769758/page2
Look at this thread, I was able to use a Java program to enter the IMS settings.
Frozenrosen said:
https://forum.xda-developers.com/ga...-n950n-kt-branded-ims-settings-t3769758/page2
Look at this thread, I was able to use a Java program to enter the IMS settings.
Click to expand...
Click to collapse
Which note 8 you have and which oreo version you on it?
hardikgala said:
Which note 8 you have and which oreo version you on it?
Click to expand...
Click to collapse
I have a N950N (Korean) but the person that did the passcode said it works on different models
On oreo when i was i tried opening ims setting but i did not got any otp or passcode over there.. i just got su not found error in shortcut master lite..
Frozenrosen said:
https://forum.xda-developers.com/ga...-n950n-kt-branded-ims-settings-t3769758/page2
Look at this thread, I was able to use a Java program to enter the IMS settings.
Click to expand...
Click to collapse
I know I'm reviving a dead thread, but do you happen to have that ZIP file? The original link has long been broken but I'm staying optimistic.
jc25 said:
I know I'm reviving a dead thread, but do you happen to have that ZIP file? The original link has long been broken but I'm staying optimistic.
Click to expand...
Click to collapse
Sorry for the delay, but here it is!
Frozenrosen said:
Sorry for the delay, but here it is!
Click to expand...
Click to collapse
Thank you for your otp cracker...But after downloading to Windows 10 and downloading and installing Java, I can't get it to work. Can you please guide how to open this on a Windows 10 or Windows 7 OS? thank you.

Categories

Resources