[Q] How to use XposedBridgeApi to modify the mobile phone resolution - Xposed General

How to use XposedBridgeApi to modify the mobile phone resolution

Check App Setting's source code.

I use XposedHelpers.findAndHookMethod (XposedHelpers.findClass ("android.util.DisplayMetrics", "widthPixels", lpparam.classLoader), new XC_MethodHook () {}); error: unable to find "widthPixels" method, view the android.util.DisplayMetrics.class source code, found that "widthPixels" is a field, now that the problem is in the XposedHelpers class, I do not know what methods to achieve.

I use XposedHelpers.findAndHookMethod (XposedHelpers.findClass ("android.util.DisplayMetrics", "widthPixels", lpparam.classLoader), new XC_MethodHook () {}); error: unable to find "widthPixels" method, view the android.util.DisplayMetrics.class source code, found that "widthPixels" is a field, now that the problem is in the XposedHelpers class, I do not know what methods to achieve.

Related

[Q] [HELP] sqlite and BackgroundTask

Hi,
I'm trying to implement a backgroundTask in an Universal Windows App (Windows phone runtime 8.1) and I need to do a consult in the database of the App in order to connect to my webservice on the cloud. The foreground of App uses sqlite-net nuget package without problems. But when I add it on the Windows runtime class (backgroungTask) generate 24 errors on the class Sqlite.cs. I have searched more information About this, and I have found other package that is better (because It is compatible with xamarin) that is called: sqlite.Net PCL 3.0.5 So I have installed it in my backgroundTask Project and I get an error that is the following:
Code:
Error 6 Windows Runtime type 'Windows.Foundation.Point' was found in multiple referenced winmd files. Please remove either 'C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\Microsoft.VCLibs\12.0\References\CommonConfiguration\neutral\platform.winmd' or 'C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Windows.winmd' from the list of referenced files.
I don't know what I can do with this error. Could you help me to use sqlite in my background task?
Thank you!!
Hi again,
I have got to solve the error that I have comment because the sqlite.net pcl doesn't need vclibs12 so I delete this and then I get 24 errors. All are of one kind error, DateTime. It returns the next message:
Code:
Error 9 Method 'Tarea.UnixToDateTime(System.Int64)' returns 'System.DateTime', which is not a valid Windows Runtime type. Methods exposed to Windows Runtime must return only Windows Runtime types.
Then, the information that I have on this format, how could I get them? Or Have I change all code and the database with other type?
Thank you again!
A DateTime is just a 64-bit number underneath, with a little metadata about time zones and such. You should be able to either create a C++/CX struct for it, or just pass the int64_t and re-build the datetime on the other side.
GoodDayToDie said:
A DateTime is just a 64-bit number underneath, with a little metadata about time zones and such. You should be able to either create a C++/CX struct for it, or just pass the int64_t and re-build the datetime on the other side.
Click to expand...
Click to collapse
Hi goodDaytoDie!
Thank you by your ideas, I have changed the type of data of the Database to int64 and I have calculated the date with DateTimeOffset (this works on backgroundTask). In addition, I didn't know this type of data, but I like it because it allows get the date on different time zones without making nothing.
Thanks!!:good:

Verfy a downloadfile from XDA using GPG - where can i get the (public?) key?

From the XDA Downloadmirror: dl-xda.xposed.info/framework/sdk22/arm/ i have downloaded this files:
xposed-v83-sdk22-arm.zip
xposed-v83-sdk22-arm.zip.asc
and
xposed-v84-sdk22-arm.zip
xposed-v84-sdk22-arm.zip.asc
sereral times, and with different desktop-pc's
every time with the same bad result:
As I use GPG in a Terminal on my Linux system to confirm verification zip.asc file with the associated .zip file,
GPG says: "...Can't check signature: No public key"
Maybe my entry not have been correct (I have previously never used GPG) or the files on the xda-Server are really corrupt?
Here i shows the syntax of my entry i my Linux Terminal:
$ gpg --verify xposed-v84-sdk22-arm.zip.asc xposed-v84-sdk22-arm.zip
Every time it gets the same bad result:
gpg: Signature made Tue 03 Mai 2016 22:58:30 CEST using RSA key ID 852109AA
gpg: Can't check signature: No public key
In my Opinion XDA must have a Public(?)Key (Server?) in addition to those used .asc files - like e.g. Torproject:
"The Tor Browser team signs the Tor Browsers. Import its key (0x4E2C6E8793298290) by starting cmd.exe and typing"
after this, the line with the syntax:
" gpg --verify C:\...torbrowser-install-5....exe.asc C:\...torbrowser-install-5....exe.asc"
Perhaps GPG need this Key first to work properly?
If it is so, then where hosts xda a key that i need to Import first? I search a long time on xda, and i can't find this!
I've moved your thread to the Xposed forum. Should get some good help here
Maybe you can get more info from here:
https://github.com/rovo89/Xposed/issues/89
I had mentioned the fingerprint when I announced that files are now signed, now I also added that information to the first post: http://forum.xda-developers.com/showthread.php?t=3034811
Hi There,
i cant belive that it is mee falling over this problem nearly one jear later. I am absolutely not able to find the key 852109AA.
This is the key the xposed-v87-sdk22-arm.zip is signed with. I only get No public key found message.
Help is apreciated.
Am I to stupid to find it? or is there anythig what i miss here.

how to call a method with custom input param defined in a class?

i have hooked a class method but i want to call another class's method with own input param i am not sure if this method used anywhere in the app or just defined.
i can hook only if the method is used anywhere in the app right?

Android Studio 3.1.3: Error message 'Cannot find symbol: View'

I'm new to Android development and I just started playing with Android Studio 3.1.3. I'm following a tutorial from android.developer.com and I'm on the part: Start Another Activity - Respond to the Send button. Thing is, when I add the sendMessage() method stub, I get an error message saying the symbol View cannot be found. I tried the following steps to resolve the issue but I'm not successful:
- Place the cursor on View then click ALT-ENTER but the menu Import class doesn't appear.
- I clicked File - Invalidate Caches/Restart
Any useful assistance is welcome.
Christopher

Android Studio ERROR: Unsupported method:

So Im creating my first ever app and I cant code so I used buildbox. Im trying to make my game into an apk but when i put it into Android Studio it says:
ERROR: Unsupported method: AndroidProject.getVariantNames().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
Any help would be greatly appreciated!
Dopeyplayz said:
So Im creating my first ever app and I cant code so I used buildbox. Im trying to make my game into an apk but when i put it into Android Studio it says:
ERROR: Unsupported method: AndroidProject.getVariantNames().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
Any help would be greatly appreciated!
Click to expand...
Click to collapse
go to build.gradle and copy paste here all the code
StonebridgeGr said:
go to build.gradle and copy paste here all the code
Click to expand...
Click to collapse
what code do I paste in there?

Categories

Resources