This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
fuss:android [2018/09/10 17:33] – [Android x86 on LibVirt] office | fuss:android [2020/10/24 18:07] – [Fixing MicroG/UnifiedNLP Permissions] office | ||
---|---|---|---|
Line 110: | Line 110: | ||
can be used for 3D acceleration. | can be used for 3D acceleration. | ||
+ | |||
+ | ====== Delivering Input Events via ADB ====== | ||
+ | |||
+ | Input events can be sent to a device connected to a computer with the Android Platform Tools installed via the '' | ||
+ | |||
+ | Here is a list of useful commands: | ||
+ | <code bash> | ||
+ | adb shell input tap 500 600 | ||
+ | </ | ||
+ | |||
+ | will tap the screen at $(x, | ||
+ | |||
+ | <code bash> | ||
+ | adb shell input text 'Hello Android' | ||
+ | </ | ||
+ | |||
+ | will type in the text 'Hello Android' | ||
+ | |||
+ | Even raw key events can be sent: | ||
+ | <code bash> | ||
+ | adb shell input keyevent 66 | ||
+ | </ | ||
+ | |||
+ | will press the enter key. | ||
+ | |||
+ | Similarly, D-PAD events can be triggered: | ||
+ | |||
+ | ^ Direction ^ KeyCode ^ | ||
+ | | Up | '' | ||
+ | | Down | '' | ||
+ | | Left | '' | ||
+ | | Right | '' | ||
+ | |||
+ | For instance: | ||
+ | <code bash> | ||
+ | adb shell input keyevent 19 | ||
+ | </ | ||
+ | |||
+ | will press D-PAD up. | ||
+ | |||
+ | ====== Fixing MicroG/ | ||
+ | |||
+ | Issue the following commands via ADB to fix permissions for most packages involved with UnifiedNLP: | ||
+ | <code bash> | ||
+ | pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION | ||
+ | pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION | ||
+ | pm grant com.google.android.gms android.permission.GET_ACCOUNTS | ||
+ | pm grant com.google.android.gms android.permission.READ_EXTERNAL_STORAGE | ||
+ | pm grant com.google.android.gms android.permission.READ_PHONE_STATE | ||
+ | pm grant com.google.android.gms android.permission.WRITE_EXTERNAL_STORAGE | ||
+ | |||
+ | pm grant com.android.vending android.permission.ACCESS_COARSE_LOCATION | ||
+ | pm grant com.android.vending android.permission.ACCESS_FINE_LOCATION | ||
+ | pm grant com.android.vending android.permission.GET_ACCOUNTS | ||
+ | pm grant com.android.vending android.permission.READ_EXTERNAL_STORAGE | ||
+ | pm grant com.android.vending android.permission.READ_PHONE_STATE | ||
+ | pm grant com.android.vending android.permission.WRITE_EXTERNAL_STORAGE | ||
+ | |||
+ | pm grant org.microg.nlp.backend.ichnaea android.permission.ACCESS_COARSE_LOCATION | ||
+ | pm grant org.microg.nlp.backend.ichnaea android.permission.ACCESS_FINE_LOCATION | ||
+ | pm grant org.microg.nlp.backend.ichnaea android.permission.READ_PHONE_STATE | ||
+ | |||
+ | pm grant org.fitchfamily.android.dejavu android.permission.ACCESS_COARSE_LOCATION | ||
+ | pm grant org.fitchfamily.android.dejavu android.permission.ACCESS_FINE_LOCATION | ||
+ | |||
+ | pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION | ||
+ | pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION | ||
+ | pm grant com.google.android.gms android.permission.GET_ACCOUNTS | ||
+ | pm grant com.google.android.gms android.permission.READ_EXTERNAL_STORAGE | ||
+ | pm grant com.google.android.gms android.permission.READ_PHONE_STATE | ||
+ | pm grant com.google.android.gms android.permission.WRITE_EXTERNAL_STORAGE | ||
+ | |||
+ | pm grant com.android.vending android.permission.ACCESS_COARSE_LOCATION | ||
+ | pm grant com.android.vending android.permission.ACCESS_FINE_LOCATION | ||
+ | pm grant com.android.vending android.permission.GET_ACCOUNTS | ||
+ | pm grant com.android.vending android.permission.READ_EXTERNAL_STORAGE | ||
+ | pm grant com.android.vending android.permission.READ_PHONE_STATE | ||
+ | pm grant com.android.vending android.permission.WRITE_EXTERNAL_STORAGE | ||
+ | |||
+ | pm grant org.microg.nlp.backend.ichnaea android.permission.ACCESS_COARSE_LOCATION | ||
+ | pm grant org.microg.nlp.backend.ichnaea android.permission.ACCESS_FINE_LOCATION | ||
+ | pm grant org.microg.nlp.backend.ichnaea android.permission.READ_PHONE_STATE | ||
+ | |||
+ | pm grant org.fitchfamily.android.dejavu android.permission.ACCESS_COARSE_LOCATION | ||
+ | pm grant org.fitchfamily.android.dejavu android.permission.ACCESS_FINE_LOCATION | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Unlock via TWRP ====== | ||
+ | |||
+ | Delete the files under ''/ | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||