Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<OrderList version="20190101" xmlns:android="http://schemas.android.com/apk/res/android">
<OrderItem name="*#0000#" type="startActivity" platform="ALL" region="CN" level="1">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.oppo.engineermode.network.manualtest.TelecomVersionInfo"
android:targetPackage="com.oppo.engineermode" />
</OrderItem>
<OrderItem name="*#12345#" type="startActivity" platform="ALL" region="ALL" level="2">
uniform_int_distribution<> distr(currentLowBound + 1, currentHighBound - 1);
mt19937 eng(random_device);
distr(eng); //line generating error
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/uniform_int_dist.h:226:4: error: 'std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>(std::random_device)' is not a class, struct, or union type
_Gresult_type;
^~~~~~~~~~~~~
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/uniform_int_dist.h:229:4: error: 'std::mersenne_twister_engine<long unsigned int, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640, 15, 4022730752, 18, 1812433253>(std::random_device)' is not a class, struct, or union type
__uctype;
^~~~~~~~
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/uniform_int_dist.h:246:31: error: too few arguments to function
__ret = __uctype(__urng()) - __urngmin;
~~~~~~^~
/usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/uniform_int_dist.h:273:35: error: too few arguments to function
public String GetHVTAS() {
String sResult;
if ("h1".equals(Build.DEVICE) || "alicee".equals(Build.DEVICE) || "elsa".equals(Build.DEVICE)) {
String sResult_hvdcp = ReadStringFromFile("/sys/class/power_supply/usb/hvdcp_type");
Log.e("ChargingTest", "sResult_hvdcp " + sResult_hvdcp);
if ("0".equals(sResult_hvdcp)) {
sResult = "OFF";
} else if ("1".equals(sResult_hvdcp) || "4".equals(sResult_hvdcp)) {
sResult = "QC2.0 TA";
} else if ("2".equals(sResult_hvdcp) || "3".equals(sResult_hvdcp)) {

FEATURES

  • Pill coloring and transparency options
  • Option to remove pill shadow
  • Option to adjust animation duration (Settings>>Behavior)
  • Minimum width and height have been decreased
  • Added swipe left/right and hold gestures
  • Option to adjust pill corner radius
  • Option to change the horizontal position of the pill
  • Option to automatically put pill in "hide" mode in fullscreen apps
  • Option to prevent pill from moving above keyboard
diff --git a/core/java/android/view/DisplayInfo.java b/core/java/android/view/DisplayInfo.java
index bc40849a47b..a3f394289ff 100644
--- a/core/java/android/view/DisplayInfo.java
+++ b/core/java/android/view/DisplayInfo.java
@@ -237,6 +237,11 @@ public final class DisplayInfo implements Parcelable {
* </p>
*/
public String ownerPackageName;
+
+ /**

Notes

  • This shouldn't be any more dangerous than flashing anything else, but as always be careful. If something does break, it's on you.
  • When you have a terminal or CMD window open (which you will), keep it open until you're sure you're finished with everything! Unless you know what you're doing, it can be a hassle to CD into the right directory.
  • On Windows, make sure you have the LG Mobile drivers installed.

Windows 10

  1. Open the Windows Store and install the Ubuntu (by Canonical) app.
  2. Open Ubuntu and let it install.
  3. Once installed, make sure everything is updated, using sudo apt update and then sudo apt dist-upgrade.
  4. Make sure you have the following:
This app uses the READ_PHONE_STATE permission. It DOES NOT collect any user data, such as phone numbers, contact names or SMS. This permission is needed only to observe the current cellular signal strength and data type for the Information widget.
@zacharee
zacharee / AUelec.js
Created June 14, 2016 16:53
AU Election Script Thingy
// ==UserScript==
// @id stackexchange-election-primary-counter@poke
// @name StackExchange Election: Primary counter
// @namespace poke
// @version 1.4.4
// @author Patrick Westerhoff
// @include *://askubuntu.com/election/*
// @include *://askubuntu.com/election*
// @updateURL https://gist.githubusercontent.com/poke/9058895/raw/stackexchange-election-primary-counter.user.js
// @run-at document-end