FORUMS
Remove All Ads from XDA

[MOD][XPOSED] DirectAPKInstall

42 posts
Thanks Meter: 135
 
Post Reply Email Thread
31st July 2016, 04:59 PM |#31  
sansnil's Avatar
Senior Member
Thanks Meter: 223
 
More
So I just realized this stopped working for me but I'm not sure what broke it. For anyone using MM AOSP - does this module still work for you with the July Google update?
3rd September 2016, 04:48 PM |#32  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by sansnil

So I just realized this stopped working for me but I'm not sure what broke it. For anyone using MM AOSP - does this module still work for you with the July Google update?

It doesn't work for me either with the July update.
Nexus 5X, CM 13.0-20160820
3rd September 2016, 06:34 PM |#33  
xdapowerapps's Avatar
Senior Member
Thanks Meter: 240
 
More
Quote:
Originally Posted by sansnil

So I just realized this stopped working for me but I'm not sure what broke it. For anyone using MM AOSP - does this module still work for you with the July Google update?

Quote:
Originally Posted by minorgodcomplex

It doesn't work for me either with the July update.
Nexus 5X, CM 13.0-20160820

You could try InstallerOpt. Works great for me.

http://forum.xda-developers.com/xpos...t-0-4-t3377008

http://repo.xposed.info/module/net.fypm.installeropt
The Following 2 Users Say Thank You to xdapowerapps For This Useful Post: [ View ] Gift xdapowerapps Ad-Free
19th January 2017, 05:52 PM |#34  
Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by xdapowerapps

You could try InstallerOpt. Works great for me.

http://forum.xda-developers.com/xpos...t-0-4-t3377008

http://repo.xposed.info/module/net.fypm.installeropt

What setting did you enable to emulate directapkinstalls function?
12th October 2017, 07:49 AM |#35  
Senior Member
Thanks Meter: 20
 
More
Any plans to support nougat?
26th October 2017, 08:38 PM |#36  
Junior Member
Thanks Meter: 13
 
More
Quote:
Originally Posted by andersjohansson81

Any plans to support nougat?

This works on Nougat (Lineage OS 14.1)
Attached Files
File Type: apk it.matsca09.xposedmod.directapkinstall.apk - [Click for QR Code] (238.1 KB, 90 views)
27th October 2017, 07:05 AM |#37  
Senior Member
Thanks Meter: 20
 
More
Quote:
Originally Posted by GSebas

This works on Nougat (Lineage OS 14.1)

Got a github link?
29th October 2017, 10:10 AM |#38  
Junior Member
Thanks Meter: 13
 
More
Quote:
Originally Posted by andersjohansson81

Got a github link?

No, but here is the diff:

Code:
--- aaa/src/it/matsca09/xposedmod/directapkinstall/DirectInstallMod.java    2016-01-11 13:41:14.000000000 -0600
+++ bbb/src/it/matsca09/xposedmod/directapkinstall/DirectInstallMod.java    2017-10-29 03:09:02.719974139 -0600
@@ -42,7 +42,7 @@
          * Yay! Google has changed the package installer package name in Marshmallow
          */
 
-        if(Build.VERSION.SDK_INT >= 23){
+        if(Build.VERSION.SDK_INT == 23){
             packageInstallerID = "com.google.android.packageinstaller";
         }else{
             packageInstallerID = "com.android.packageinstaller";
@@ -77,23 +77,25 @@
                  * This is available at the moment only on Marshmallow
                  */
 
-                if(Build.VERSION.SDK_INT >= 23){
+                if(Build.VERSION.SDK_INT == 23){
                     if(!(Boolean)XposedHelpers.callMethod(param.thisObject, "isUnknownSourcesAllowedByAdmin")){
                         return;
                     }
                 }
                 if(!(Boolean)XposedHelpers.callMethod(param.thisObject, checkUnknownSourceMethod)){
                     AlertDialog.Builder builder = new AlertDialog.Builder((Context) param.thisObject);
-                    builder.setTitle(instAlertTitle);
+                    if(Build.VERSION.SDK_INT <= 23){
+                        builder.setTitle(instAlertTitle);
+                    }
                     //Alert taken from Android settings
                     builder.setMessage(instAlertBody);
-                    builder.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
+                    builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
                         public void onClick(DialogInterface dialog, int which) { 
                             dialog.dismiss();
                             XposedHelpers.callMethod(param.thisObject, "initiateInstall");
                         }
                     });
-                    builder.setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {
+                    builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
                         public void onClick(DialogInterface dialog, int which) { 
                             dialog.dismiss();
                             XposedHelpers.callMethod(param.thisObject, "finish");
The Following 2 Users Say Thank You to GSebas For This Useful Post: [ View ] Gift GSebas Ad-Free
6th March 2018, 05:40 AM |#39  
Junior Member
Thanks Meter: 0
 
More
its been years and Im aware things have changed. However, I liked this workaround and Im upset Im not capable of using it. My device, LG Stylo2 (LS755), refuses to let this run and continues with asking me to change permission. Sigh.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes