Skip to content

Commit

Permalink
Use random android device instead of a default.
Browse files Browse the repository at this point in the history
  • Loading branch information
bman46 committed Feb 15, 2022
1 parent 77189cc commit d91e9cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
2 changes: 1 addition & 1 deletion Instagram Reels Bot/Helpers/Instagram/IGAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void InitializeAPI()
.Build();

// Set the Android Device:
instaApi.SetDevice(InstagramProcessor.device);
//instaApi.SetDevice(InstagramProcessor.device);
}

/// <summary>
Expand Down
30 changes: 0 additions & 30 deletions Instagram Reels Bot/Helpers/Instagram/InstagramProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,36 +244,6 @@ public static IGAccount GetIGAccount()
throw new InvalidDataException("No available accounts.");
}
}
/// <summary>
/// Android device to be used
/// </summary>
public static AndroidDevice device = new AndroidDevice
{
// Device name
AndroidBoardName = "HONOR",
// Device brand
DeviceBrand = "HUAWEI",
// Hardware manufacturer
HardwareManufacturer = "HUAWEI",
// Device model
DeviceModel = "PRA-LA1",
// Device model identifier
DeviceModelIdentifier = "PRA-LA1",
// Firmware brand
FirmwareBrand = "HWPRA-H",
// Hardware model
HardwareModel = "hi6250",
// Device guid
DeviceGuid = new Guid("be997499-c663-492e-a125-f4c8d3786ebf"),
// Phone guid
PhoneGuid = new Guid("7b92321f-dd9a-425e-b3ee-d4aaf476ec53"),
// Device id based on Device guid (should match DeviceGuid)
DeviceId = ApiRequestMessage.GenerateDeviceIdFromGuid(new Guid("be997499-c663-492e-a125-f4c8d3786ebf")),
// Resolution
Resolution = "1080x1812",
// Dpi
Dpi = "480dpi"
};
#endregion Accounts
#region IG Accounts
/// <summary>
Expand Down

0 comments on commit d91e9cf

Please sign in to comment.