3D Printable Mobile Microscope? Nexus 7 Discontinued – XDA TV

The Nexus 7 2013 has been discontinued on the Google Store! That and … more

Which Lockscreen Security Type Do You Use?

From pattern locks to the controversial face unlock, there are a number of different ways you … more

Xposed 3.0 Alpha 3 Released

A new alpha for the Xposed framework is out and brings several bug fixes. You’ll only need to flash … more

XDA Recap: This Week In Android (Apr 18 – 25)

Here in the digital XDA newsroom, we spend our days pouring over an average of … more
Post Reply Subscribe to Thread Email Thread

[MOD][HOW-TO] Fully disable app verification (FOR USER APPS)

13th May 2014, 10:50 PM |#21  
CNexus's Avatar
OP Recognized Contributor
Flag ~/android
Thanks Meter: 13,814
Donate to Me
Well, that's the wrong method to be replacing to begin with.
4th October 2014, 05:35 AM |#22  
Sami Kabir's Avatar
Senior Member
Flag Zinj
Thanks Meter: 1,127
Donate to Me
Originally Posted by CNexus

Part 2: Allows installing older versions on top of newer versions

Note that this mod also lets you install unsigned versions over other current versions, as well as installing older versions on top of newer versions of an app

This is what .method private installLocationPolicy(Landroid/content/pm/PackageInfoLite;I)I looks like in my PackageManagerService$InstallParams.smali:

.method private installLocationPolicy(Landroid/content/pm/PackageInfoLite;I)I
    .locals 8

    const/4 v5, 0x2

    const/4 v4, 0x1

    iget-object v2, p1, Landroid/content/pm/PackageInfoLite;->packageName:Ljava/lang/String;

    iget v0, p1, Landroid/content/pm/PackageInfoLite;->installLocation:I

    and-int/lit8 v6, p2, 0x8

    if-eqz v6, :cond_0

    move v1, v4

    iget-object v6, p0, Lcom/android/server/pm/PackageManagerService$InstallParams;->this$0:Lcom/android/server/pm/PackageManagerService;

    iget-object v6, v6, Lcom/android/server/pm/PackageManagerService;->mPackages:Ljava/util/HashMap;

    monitor-enter v6

    iget-object v7, p0, Lcom/android/server/pm/PackageManagerService$InstallParams;->this$0:Lcom/android/server/pm/PackageManagerService;

    iget-object v7, v7, Lcom/android/server/pm/PackageManagerService;->mPackages:Ljava/util/HashMap;

    invoke-virtual {v7, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/content/pm/PackageParser$Package;

    if-eqz v3, :cond_5

    and-int/lit8 v7, p2, 0x2

    if-eqz v7, :cond_8

    iget-object v7, v3, Landroid/content/pm/PackageParser$Package;->applicationInfo:Landroid/content/pm/ApplicationInfo;

    iget v7, v7, Landroid/content/pm/ApplicationInfo;->flags:I

    and-int/lit8 v7, v7, 0x1

    if-eqz v7, :cond_2

    if-eqz v1, :cond_1

    const-string v4, "PackageManager"

    const-string v5, "Cannot install update to system app on sdcard"

    invoke-static {v4, v5}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v4, -0x3

    monitor-exit v6

    return v4

    const/4 v1, 0x0

    goto :goto_0

    monitor-exit v6

    goto :goto_1

    move-exception v4

    monitor-exit v6
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v4

    if-eqz v1, :cond_3

    monitor-exit v6

    move v4, v5

    goto :goto_1

    if-ne v0, v4, :cond_4

    monitor-exit v6

    goto :goto_1

    if-ne v0, v5, :cond_6

    monitor-exit v6

    if-eqz v1, :cond_9

    move v4, v5

    goto :goto_1

    #calls: Lcom/android/server/pm/PackageManagerService;->isExternal(Landroid/content/pm/PackageParser$Package;)Z
    invoke-static {v3}, Lcom/android/server/pm/PackageManagerService;->access$1900(Landroid/content/pm/PackageParser$Package;)Z

    move-result v7

    if-eqz v7, :cond_7

    monitor-exit v6

    move v4, v5

    goto :goto_1

    monitor-exit v6

    goto :goto_1

    const/4 v4, -0x4

    monitor-exit v6
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    iget v4, p1, Landroid/content/pm/PackageInfoLite;->recommendedInstallLocation:I

    goto :goto_1
.end method

I can't find the codes you mentioned...
if-nez v7, :cond_1

iget v7, p1, Landroid/content/pm/PackageInfoLite;->versionCode:I

iget v8, v3, Landroid/content/pm/PackageParser$Package;->mVersionCode:I

if-ge v7, v8, :cond_1

const-string v4, "PackageManager"

new-instance v5, Ljava/lang/StringBuilder;

invoke-direct {v5}, Ljava/lang/StringBuilder;->()V

const-string v7, "Can\'t install update of "
Last edited by Sami Kabir; 4th October 2014 at 05:38 AM.
20th January 2015, 09:26 AM |#23  
Senior Member
Flag Columbia
Thanks Meter: 1,062
Donate to Me
thanks for this
Post Reply Subscribe to Thread

disable checking, disable signature, disable verification, remove signature checking, signature checking
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes