This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google Play Store ON clean install TinkerOS_Android 7 Nougat V14.1.2.50
#1
Information 
Getting Google Play Store installed on Clean TinkerOS_Android 7 Nougat V14.1.2.50

following http://tinkerboarding.co.uk/wiki/index.p...Play_Store
Google Play Store ON clean install [TinkerOS_Android 7 Nougat V14.1.2.50]
https://www.asus.com/uk/Single-Board-Com..._Download/

nth time.. we live & learn.. ;-]..
this time.. back to wire LAN.. with fixed IP...

used clean SanDisk Ultra 64GB microSDXC Memory Card..

format on windows 10.. with SDfomatter.. select Overwrite format.. from options..

make TinkerOS_Android 7 Nougat V14.1.2.50 image on SD with Etcher..

connect usb Logitech M570 Wireless Mouse Trackball..

connect usb Mini Wireless Keyboard with Touch Pad.. needed only for recovery.. Wipe Cache Partition.. 

connect HDMI to LG 27UD68P-B 4k monitor.. set to.. [1920 x 1080 @ 60hz]..
wating for Hanns.G HT225HPB 21.5" LED Multi-Touch Screen Monitor.. ;-]..

connect power NorthPada Raspberry Pi 3 Model B B+ / ASUS Tinker Board Power Supply AC Charger Adapter 5V 3A Micro USB 5 Feet with Power On / Off Switch
(Aukru Raspberry Pi 3 Model B/Raspberry Pi 3 Model B+ Power Supply Adapter 5V 3A Micro USB Charger with On Off Power Switch) ..alternative.. not tested yet...

power on & first boot...

set auto rotate to landscape..

set Display settings now.. as display menu might stop working ;-[..
Note.. in [Settings].. the Display menu.. says Adaptive brightness is OFF..
but.. when you go into Display menu.. there is no way to set Adaptive brightness.. ?
set [Sleep].. to 5 minutes.. [Screen saver].. ON.. set to Clock and set when to start.. Either..
set [Wallpaper]..click on the picture and then [Set wallpaper].. [Home screen and lock screen]..
make sure [HDMI].. is on.. [HDMI Resolution].. set to 1920x1080p60.00.. [HDMI Rotation].. 0..

set [Languages & input]... I'm in UK.. add UK keyboard and set to top 
Note... don't remove US Keyboard until after first restart...

set [Date & time]... [Automatic date & time].. GMT+1 British Summer Time.. 

set [Ethernet].. setup wired LAN now & connect to network.. this should update time and date.. 
[Settings].. in Wireless & network section click on [More].. [Ethnet].. [Ethnet Ip mode].. [Static]...
then enter details..  IP 192.168.0.46 / GW 192.168.0.1 / NetMask 255.255.255.0 / DNS1 8.8.8.8 DNS2 8.8.4.4

open [Lightning] web browser.. see if network is working ok..

set Home screen App icons.. as you like..

Restart tinker board... see if all your settings hold on reboot..

set [Sound].. set sound volumes.. and make sure [Audio Output].. is set to [HDMI]..
connect StarTech.com Headset adapter & mic...
 
check installed Apps.. But DO NOT run [Calendar].. [Contacts].. or [Email].. Yet..

also I don't have a camera yet setup.. so.. I don't run [Camera] app..
except for the four apps I did not run yet.. all apps working ok.. ;-]..

now leave tinker board on home screen for 15 mins with no keyboard or mouse input 
to see if power management is working ok.. Screen time out.. etc..

##############

first problem.. after 5 mins.. power went off on tinker board ;-[...
no.. keyboard or mouse activity could bring it back on again.. 
so.. I had to manually switch power cable button off/on...

set [Display].. switch [Screen saver].. off.. and try to disable [Sleep]..

I found NO WAY to disable [Sleep].. ;-[.... can not find [Never sleep]..
so.. set [Sleep].. to 30 mins.. and setup [Screen saver].. to clock.. 
and set to work if Docked or Charging...

looks like you might have to Factory Reset.. and to make sure you never set [Sleep]...
Note.. I found the [Display].. menu in [Settings].. would crash on a clean install after about 15 to 20 mins
if you don't set a [Sleep] time & leave it on [Never Sleep].. 
its very strange.. 

update: you might be able to fix Display menu by...
Code:
adb connect 192.168.1.x
adb shell settings get system screen_off_timeout          # see current [Sleep time]..
adb shell settings put system screen_off_timeout 120000   # set [Sleep time]..
adb reboot

How to prevent an android device from entering sleep (via adb command shell)
Code:
adb connect 192.168.1.x
adb shell svc power stayon true

also.. Disabled HDMI control..................................................

Code:
adb shell settings put global hdmi_control_enabled 0
adb shell settings put global hdmi_control_auto_device_off_enabled 0
adb reboot

you can check your settings....
>adb shell settings list global
>adb shell settings list system
>adb shell settings list secure

-------------------------------------------------------------------------------------------------------
or.. if you have enabled [Developer options].. then you can set [Stay awake] option..
-------------------------------------------------------------------------------------------------------

also installed Turn Off Screen (Lock Screen) from Play Store..
https://play.google.com/store/apps/detai...n&hl=en_US
 
since it looks like I'm going to have Reset tinker board.. 
I might as well test to see if [Security].. is working..
ie.. setting up a pin.. will cause [Security].. menu not to open..
so.. enable [Unknown sources].. just in case [Security].. setting page fails to open...
setting PIN lock fails.. and I can not open [Screen lock].. ;-[...
[Screen lock].. just says Swipe... ? when you click it.. it asks for pin..
when you enter pin.. it just crashes out :-[...

do we enable [Developer options].. for now.. no.. do not click on the [Build number] 7 times ;-]..
##########################################################
Notes:- Android Debug Bridge (adb)
https://developer.android.com/studio/command-line/adb
Code:
adb connect 192.168.1.x
adb root
adb connect 192.168.1.x
adb remount

check what your IP is to use with adb...
[Settings].. [About tablet].. [Status].. IP address.. 192.168.0.46

I used  laptop running Antergos 64Bit.. with adb installed..
tinker Board is connected to wired LAN network @ 192.168.0.46..

using laptop connect to same network..
download the apks files from apkmirror...
------------------------------------------------

NOTE:- 
use "adb push" to copy the PlayStore, Google Play Services and Google Services Framework apks to /system/priv-app
-----------------------------------------------------------------------------------------------------------------------------------------------

apks can be downloaded from apkmirror
=========================
https://www.apkmirror.com

The files I used were:

[Google Services Framework 7.1.2 (Android 7.1+): 
com.google.android.gsf_7.1.2-25_minAPI25(nodpi)_apkmirror.com.apk]
https://www.apkmirror.com/apk/google-inc...-download/
rename to : gsf.apk
===================

[Google Play services 13.2.78 (040400-210410490) (040400):  
com.google.android.gms_13.2.78_(040400-210410490)-13278019_minAPI23(arm64-v8a,armeabi-v7a)(nodpi)_apkmirror.com.apk]
https://www.apkmirror.com/apk/google-inc...-download/
rename to : playservices.apk
============================

[Google Play Store 11.6.15-all [0] [PR] 211277169 (240-480dpi) (Android 4.1+): 
com.android.vending_11.6.15-all_0_PR_211277169-81161500_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(240,320,480dpi)_apkmirror.com.apk]
https://www.apkmirror.com/apk/google-inc...-download/
remane to : playstore.apk
=========================

so... once you have files downloaded and renamed.. 
then you can push them to /system/priv-app/ on the tinker board...
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb push gsf.apk /system/priv-app/
adb push playstore.apk /system/priv-app/
Note.. you might get a popup that you have to click on to allow and accept..

restart tinker board..

for the two apps you just pushed to the tinker board you have to 
go to [Settings].. [Apps].. [Show system].. find the app.. and then
click on [Force stop].. and then.. make sure the Permissions are ALL [ON]..
be sure to also check the two [Additional permissions] in [Google Services Framework]...

clear cache.. [Settings].. [Storage].. click on [Cached data] to clear cached data..
restart tinker board in recovery to  Wipe Cache Partition...
Code:
adb connect 192.168.0.46
adb reboot recovery
Note.. use keyboard arrow keys to selected [Wipe cache partition]... [Yes]...
then... select [reboot system]... ;-]...

now.. its time to push the playservices.. but just before you do.. check..
go to [Settings].. [Apps].. [Show system].. find the two apps from before.. and then
click on [Force stop].. and then.. make sure the Permissions are ALL [ON]..
be sure to also check the two [Additional permissions] in [Google Services Framework]...
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb push playservices.apk /system/priv-app/
Note.. you might get a popup that you have to click on to allow and accept..

restart tinker board..

@ this point I got some errors from play services stopping... just press ok..;-]...

go to [Settings].. [Apps].. [Show system].. find the playservices and two apps from before.. 
click on [Force stop].. and then.. make sure the Permissions are ALL [ON]..
be sure to also check the two [Additional permissions] in [Google Services Framework]...
before using adb install...
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb install -g -r gsf.apk
adb install -g -r playstore.apk
adb install -g -r playservices.apk
-g: Grant all permissions listed in the app manifest....
-r: Reinstall an existing app, keeping its data.
--------------------------------------------------------
Note.. you might get a popup that you have to click on to allow and accept..
If you get any errors.. just keep pressing ok and looking out for the accept prompts ;-]..

clear cache.. [Settings].. [Storage].. click on [Cached data] to clear cached data..
go to [Settings].. [Apps].. click on each of the three apps to [Force stop].. and check.. the Permissions are ALL [ON]..
be sure to also check the two [Additional permissions] in [Google Services Framework]...

restart Tinker Board.. ;-]...
[All Apps] [Power] [Restart]

Note.. wait a bit to check to see if you are still getting the play service errors...
if not.. then its time to open the [Play Store]...;-]...

###############################################################################
Note.. if you ever [Factory rest] the tinker board.. 
you might get playservices stopping errors..
and you will have to run >adb install -g -r playservices.apk to fix.. ;-]..
###############################################################################

close all open apps.. [Home].. on home screen.. then [Recent Apps].. Clear All..

clear cache.. [Settings].. [Storage].. click on [Cached data] to clear cached data..
go to [Settings].. [Apps].. click on each of the three apps to [Force stop].. and check the Permissions are ALL [ON]..
be sure to also check the two [Additional permissions] in [Google Services Framework]...

open the [Play Store]... and enter your Google Account details.. and accept terms ;-]...
===============================================================================
Note.. [Play Store].. should be running.. go to [Setting].. of [Play store].. 
click on [Play Store version]... it should say..
Google Play Store is up to date.. ;-]...
========================================

clear cache.. [Settings].. [Storage].. click on [Cached data] to clear cached data..
go to [Settings].. [Apps].. click on each of the three apps to [Force stop].. and check the Permissions are ALL [ON]..
be sure to also check the two [Additional permissions] in [Google Services Framework]...
restart tinker board..

Note.. wait a bit to check to see if there is any play service errors...
if not.. open the [Play Store]... search Google Play.. for Gmail and see if it will Install..
;-]..----------------------------------------------------------------------------------------
open [Gmail] from applications.. and check its working...
open  the [Play Store].. check [My apps & games].. [INSALLED].. to see its listed.. ]]]]].......
and then check [LIBRARY].. all your previously installed apps.. ;-].. 
################################################################################
Google Play Store Now installed and working with no errors ;-]..
===============================================
I use lnav on laptop to look @ logcat with adb..
Code:
adb connect 192.168.0.46
adb logcat | lnav -t

Note.. you can write logcat log file to laptop using [-w]...
Code:
adb logcat | lnav -t -w k247_tb11_AndN712.log

check.. [Settings].. [Location].. [Mode].. change from device to [High accuracy].. and accept terms..

also check [Backup & reset].. Back up my data is OFF... 
as I have too many tinker boards connected to this account ;-]..

when I was using WiFi only to setup the tinker board.. there were some apps that did not install
from the Play Store.. before I thought it might have been because I was using EtherNet wire LAN..

some of the apps that did not install from Play Store... Fing - Network Tools, Angry Birds2, 
Kore, Official Remote for Kodi, Google Play Movies & TV, BBC iPlayer...

================================================================================
I found that google was stopping install of some apps from the play store..
I had to go to [Settings].. [Google]... [Google Account]... [Security]..
there were Tinker Boards under devices that had to be authorised.. ;-]..
just click on [Yes]... ;-]]]]]]..... also.. waiting 48hrs fixes this..
--------------------------------------------------------------------------------
I really wish ASUS will let us change the tinker board device name ;-]]]].......
================================================================================
now all apps are installing from play store..... 

disconnect Wire LAN.. and setup [Wi-Fi].. 
some apps on the play store will only work with Wi-Fi..
so.. better to have setup and ready to use when needed ;-].. 

if you ever get an apps that does not want to install from play store..
you can use the [Lightning].. web browser to download these apks from apkmirror.. 
and make sure [Unknown sources].. is enabled.. from [Security]...
then use the [File Manager] to install them...

its not 100% yet.. but for a 1st release... WHAT A Start.. ;-]...
#################################################################################
tested on TinkerOS_Android 7 Nougat V14.1.2.50...
Hope it helps,
k.
#################################################################################
fix Sleep Never, fix lock screen PIN or pattern, fix wire LAN with WiFi ;-]...

TinkerOS_Android 7 Nougat V14.1.2.50 with ASUS LiveWater(Live wallpaper)

next>.. try to fix screen lock.. see post[2]
-----------------------------------------------------
some errors from logcat.. 
 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/password.key: open failed: ENOENT (No such file or directory)
 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gatekeeper.gesture.key: open failed: ENOENT (No such file or directory)
 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gesture.key: open failed: ENOENT (No such file or directory)
relating to [Security].. Screen PIN lock...
[-] The following 2 users Like k247tEK's post:
  • shadoko, tinkerdan
Reply
#2
fix.. [Screen Lock] menu.. fails to open after PIN / Password is set...


[Screen lock].. function is not working.. so.. if you set a pin or pattern.. 
then [Screen lock] will fail to open.. so I left it on swipe for now.. and..

also installed Turn Off Screen (Lock Screen) from Play Store..
https://play.google.com/store/apps/detai...n&hl=en_US
Note.. if you run lock screen function.. and don't move mouse.. then tinker board would shut down..
if you run lock screen function while moving moving mouse..  then tinker board will lock screen and stay on..
this is the same strange behaviour observed when sending tinker board power button key signal to lock Android screen..
[input keyevent 6] or [input keyevent 26]...
Code:
adb connect 192.168.1.x
adb shell input keyevent 26

when I check logcat with lnav... there was errors..
E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/password.key: open failed: ENOENT (No such file or directory)
E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gatekeeper.gesture.key: open failed: ENOENT (No such file or directory)
E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/gesture.key: open failed: ENOENT (No such file or directory)
relating to [Security].. Screen PIN lock...

I think the .key files are missing..  or a symbolic link to them is missing.. 8-0....
So I'm going to try to touch them in the shell..  set access permissions to 600.. 
to match locksettings.db...  using... [chmod 600 filename/folder].....
and then see if I can set the PIN or Pattern / Password ;-].....
...see whats in locksettings.db.....
Code:
rk3288:/data/system # sqlite3 locksettings.db
SQLite version 3.9.2 2015-11-02 18:31:45
Enter ".help" for usage hints.
sqlite> .tables
android_metadata  locksettings    
sqlite> .schema
CREATE TABLE android_metadata (locale TEXT);
CREATE TABLE locksettings (_id INTEGER PRIMARY KEY AUTOINCREMENT,name TEXT,user INTEGER,value TEXT);
sqlite> select * from locksettings;
2|lockscreen.options|0|enable_facelock
3|migrated|0|true
5|migrated_user_specific|0|true
6|lockscreen.password_type_alternate|0|0
7|migrated_biometric_weak|0|true
8|migrated_lockscreen_disabled|0|true
13|lock_screen_owner_info_enabled|0|1
14|lock_screen_owner_info|0|Hello.. World.. ;-]...
35|lockscreen.password_type|0|0
37|lockscreen.profilechallenge|0|1
38|lockscreen.disabled|0|0
sqlite> select * from android_metadata;
en_GB
sqlite> .quit
rk3288:/data/system #

noooo.. joy.. [Screen lock].. still fails to open.. if you try to set PIN / Password...

but.. you can reset [Screen lock].. to swipe.. and disable PIN / Password.. ;-]...
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb shell
cd data/system
now... list all lock and key files in folder with >ls -Fla *lock* *.key..
Code:
rk3288:/data/system # ls -Fla *lock* *.key                                                                                                
-rw-rw---- 1 system system      0 2018-09-21 23:44 gatekeeper.password.key
-rw-rw---- 1 system system      0 2018-09-21 23:44 gatekeeper.pattern.key
-rw-rw---- 1 system system   4096 1970-01-01 01:01 locksettings.db
-rw-rw---- 1 system system  32768 1970-01-01 01:01 locksettings.db-shm
-rw-rw---- 1 system system 346112 2018-09-21 23:44 locksettings.db-wal
rk3288:/data/system #
Note.. you can use mv to rename the five files.. 
or.. just rm to delete them and exit shell..
Code:
rm gatekeeper.password.key gatekeeper.pattern.key locksettings.db locksettings.db-shm locksettings.db-wal
exit

clear cache.. [Settings].. [Storage].. click on [Cached data] to clear cached data..
restart tinker board in recovery to  Wipe Cache Partition...
Code:
adb connect 192.168.0.46
adb reboot recovery
Note.. use keyboard arrow keys to selected [Wipe cache partition]... [Yes]...
then... select [reboot system]... ;-]...

when tinker board restarts.. you should be able to just swipe to unlock screen.. and no more PIN / Password ;-]..

next>.. try to fix Apps not working.. Email. Contacts..  see post[3]
Reply
#3
fix Asus Email and Contacts Apps...

more apk files to be downloaded from apkmirror ;-]...
==============================

[Google Contacts Sync 7.1.2 (Android 6.0+)
com.google.android.syncadapters.contacts_7.1.2-25_minAPI23(nodpi)_apkmirror.com.apk]
https://www.apkmirror.com/apk/google-inc...-download/
rename to : ContactsSync.apk
============================

[ASUS Email 3.0.0.41_160722 (Android 4.3+)
com.asus.email_3.0.0.41_160722-1530000207_minAPI18(nodpi)_apkmirror.com.apk]
https://www.apkmirror.com/apk/zenui-asus...-download/
rename to : Email.apk
=====================

[Google Partner Setup 7.1.2 (Android 3.0+)
com.google.android.partnersetup_7.1.2-25_minAPI11(nodpi)_apkmirror.com.apk]
https://www.apkmirror.com/apk/google-inc...-download/
rename to : partnersetup.apk   ### not sure if this is required... ###
============================

[Google Account Manager 7.1.2 (Android 6.0+)
com.google.android.gsf.login_7.1.2-25_minAPI23(nodpi)_apkmirror.com.apk]
https://www.apkmirror.com/apk/google-inc...-download/
rename to : gsfLogin.apk    ### not sure if this is required... ###
========================

once files downloaded.. start by deleting the old Email App.. from /system/app on the tinker board...
------------------------------------------------------------------------------------------------------------------------
Note.. create Backup Folder on laptop and use adb pull to make backup of old Asus Email...
Code:
adb connect 192.168.0.46
adb pull /system/app/Email/Email.apk

and as I did not run [Calendar].. [Contacts].. or [Email].. 
it should make it a bit easier to remove / fix.. ]]]....
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb shell
cd system/app/Email
now list all files in folder with... >ls -Fla...
Code:
rk3288:/system/app/Email # ls -Fla
total 19880
drwxr-xr-x  2 root root     4096 2018-09-11 22:24 ./
drwxr-xr-x 44 root root     4096 2018-08-17 03:49 ../
-rw-rw-rw-  1 root root 10169075 2018-09-11 22:15 Email.apk
rk3288:/system/app/Email #

then just delete the old Email app...
Code:
rm Email.apk
exit

clear cache.. [Settings].. [Storage].. click on [Cached data] to clear cached data..
restart tinker board in recovery to  Wipe Cache Partition...
Code:
adb connect 192.168.0.46
adb reboot recovery
Note.. use keyboard arrow keys to selected [Wipe cache partition]... [Yes]...
then... select [reboot system]... ;-]...

now.. its time to push and install the new Asus Email App..
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb push Email.apk /system/app/Email/
Note.. you might get a popup that you have to click on to allow and accept..

restart tinker board.. then install...
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb install -g -r Email.apk
-g: Grant all permissions listed in the app manifest....
-r: Reinstall an existing app, keeping its data.
--------------------------------------------------------
Note.. you might get a popup that you have to click on to allow and accept..

clear cache.. [Settings].. [Storage].. click on [Cached data] to clear cached data..
restart tinker board.. then open [Email]... from [Applications].. and setup your accounts.. ;-]...
===============================================================================
Note.. Asus Email 3.0.0.41_160722 July 28, 2016.. is not very stable.. 
I could not find a newer version [[[..

now.. push two other files.. I'm not sure if these two files are needed.. but if you see..
Hamed Taha.. ASUS Tinker Board - Android - Installing Google Play.. 
https://www.youtube.com/watch?v=mjMKLt3CyaE he uses Open Gapps.. http://www.opengapps.org
skip to 4:36mins.. and you can see the files he push to /system/priv-app/ on the tinker board..
GoogleLonginService.apk.. GoogleServicesFramework.apk.. Phonesky.apk.. ?? & PrebuildGMSCore.apk.. ??
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb push gsfLogin.apk /system/priv-app/
adb push partnersetup.apk /system/priv-app/
Note.. you might get a popup that you have to click on to allow and accept..

the ContactsSync.apk file.. is pushed to..  /system/priv-app/ContactsSync  on the tinker board..
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb shell
cd system/priv-app/
mkdir ContactsSync
chmod 755 ContactsSync
exit
adb push ContactsSync.apk /system/priv-app/ContactsSync/
update... >adb push ContactsSync.apk /system/priv-app/ContactsSync/ContactsSync.apk
this will push ContactsSync.apk & create ContactsSync folder.. ;-]...

Note.. you might get a popup that you have to click on to allow and accept..
when in the shell.. you can use stat command to find more info for file / folder..
to show more info for the Contacts folder use..  >stat Contacts..
Code:
rk3288:/system/priv-app # stat Contacts                                                                                                    
 File: `Contacts'
 Size: 4096 Blocks: 8 IO Blocks: 4096 directory
Device: b30ah/45834d Inode: 1636 Links: 2
Access: (755/drwxr-xr-x) Uid: (0/    root) Gid: (0/    root)
Access: 2018-08-17 03:58:10.000000000
Modify: 2018-09-14 18:03:32.060034733
Change: 2018-09-19 18:00:20.914429472
rk3288:/system/priv-app #

all that's left now.. is to restart and install the three files just pushed..
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb remount
adb install -g -r gsfLogin.apk
adb install -g -r partnersetup.apk
adb install -g -r ContactsSync.apk
-g: Grant all permissions listed in the app manifest....
-r: Reinstall an existing app, keeping its data.
--------------------------------------------------------
Note.. you might get a popup that you have to click on to allow and accept..

clear cache.. [Settings].. [Storage].. click on [Cached data] to clear cached data..
restart tinker board in recovery to  Wipe Cache Partition...
Code:
adb connect 192.168.0.46
adb reboot recovery
Note.. use keyboard arrow keys to selected [Wipe cache partition]... [Yes]...
then... select [reboot system]... ;-]...

open [Contacts].. from [Applications].. click on [Add Account].. and now.. your google account should be listed ;-]..
===============================================================================
once The old Contacts app is working / connecting and syncing to the google account.. 
you can download the new google Contacts App from the play store.. 
and disable the old app from [Settings].. [Apps].. ;-]..
====================================================

Note.. I also disabled the old Calendar & Clock apps and downloaded the Google Calendar App & Clock App from the play store..

next>.. try to get screen saver to run / download and install live wall papers.. see post[17]
Reply
#4
Hello,

I try tur run this img, but after startup and unlock the screen it work a short time and it is  getting black, this happens a few times, than the hdmi signal is lost until reboot. The screen work not long enough to make any change.

I used a 16gb sd, 3A power supply

V 13.x runs without problems.

Is there something i could do?

greetings
Reply
#5
(09-24-2018, 07:24 PM)pumuckl Wrote: Hello,

I try tur run this img, but after startup and unlock the screen it work a short time and it is  getting black, this happens a few times, than the hdmi signal is lost until reboot. The screen work not long enough to make any change.

I used a 16gb sd, 3A power supply

V 13.x runs without problems.

Is there something i could do?

greetings

hello pumuckl,

have you tried to power on the tinker board.. without.. connecting hdmi... 

see.. if power stays on longer than 5mins...

if it does.. then.. it might be the hdmi source.. 
ie.. monitor.. that's sending a sleep signal to tinker board..
but.. tinker board.. is not running sleep function but power down function ;-]]]]]]....

so.. if that's the case.. then you will need a laptop/pc/mac.. with adb installed..
on the same LAN network as the tinker board.. 

if you connect tinker board with wire cable LAN to your network switch.. 
tinker board is.. setup on clean install to get IP from DHCP server.. / ie.. your router ]]]].....
so.. it should have been assigned an IP..
so.. you should find it on you network.. 

open a cmd / terminal.. on laptop/pc/mac.. with adb installed..
Code:
sudo nmap -sn 192.168.X.0/24    ### replace X.. to be same as your network..

ie.. I use..
Code:
sudo nmap -sn 192.168.0.0/24

yours might be.. 
Code:
sudo nmap -sn 192.168.1.0/24
--------------------------------------------------------------------------------------------
Starting Nmap 7.70 ( https://nmap.org ) at 2018-09-24 23:10 BST
...
Nmap scan report for 192.168.0.46
Host is up (0.0012s latency).
MAC Address: XX:XX:XX:XX:XX:XX (Asustek Computer)
...
Nmap done: 256 IP addresses (XX hosts up) scanned in 1.61 seconds
----------------------------------------------------------------------------------------------

so.. my tinker board IP is.. 192.168.0.46...

Note.. if you have android device connected on same LAN network..
you can download and install Fing from play store.. ;-]..
https://play.google.com/store/apps/detai...g&hl=en_GB

so.. now that you know what your tinker board IP is.. you can connect to it with adb..
ie... I use..
Code:
adb connect 192.168.0.46
adb root
adb connect 192.168.0.46
adb shell svc power stayon true
adb shell settings put global hdmi_control_enabled 0
adb shell settings put global hdmi_control_auto_device_off_enabled 0
adb reboot

this should stop tinker board from powering down.. 
when tinker board restarts.. connect hdmi..
restart the tinker board again.. ;-]..
Code:
adb connect 192.168.0.46
adb reboot

and then see if that solves you problem with the tinker board powering down.. 
------------------------------------------------------------------------------------------------
hope that helps,
k.
-----------------------------------------------------------------------------------------------
ps.. forgot.. that I also.. Disabled HDMI control.. edit ]]]........
you can check your settings....
>adb shell settings list global
>adb shell settings list system
>adb shell settings list secure
happy tinkering ;-].......................................................................................
Reply
#6
@k247tEK
Rather than using a discomfortable nmap, if I were you, I just look the DHCP lease of the server. Which might be your router or any server that provide the lease.
For example:
  • when I use my Android phone as AP, I just look which device is connected to it and it will appear with its IP assignment.
  • When I use my laptop, as DHCP server, I just look to its log to discover which lease had just provided Wink
  • When I used the wifi router (waiting a new one) I log in to the router and search within LAN details to find the DHCP lease and details.
For instance nmap it may take several minute or hours if it needs to discover a wide IP number  and ports. So I discourage its usage.
Reply
#7
hi Im4Tinker,
thanks for info... 
I just google "how to find ip on network" and went with the first link it gave me..]]]]].......
How to get a list of all valid IP addresses in a local network?..
I have no idea how nmap works... ;-]......
also.. pumuckl, never said what system or OS used [... 
Many thanks,
k.
Reply
#8
(09-25-2018, 04:21 AM)k247tEK Wrote: I just google "how to find ip on network"
Oh, yeah, I also got into this issue, when someone proposed it on the forum or their web site.
So I thought it was the strangest way to give advice. Instead they had to give which IP to connect, or at least a range to scan.

After one and a-half hour, I stopped the searching and looked for an alternative solution.
Light blue words might be a link. Have you try to click on them? Big Grin
Reply
#9
thx for your support
 
to connect with adb, was not a problem, made a simpl arp scan.
 
I changed the settings as you recommended, but I have still the same Problem.
 
After connect the hdmi cable, I see the login screen, than I log in. The screen is getting black and the screen is coming back for  a short 5-8 times.
Than I have no signal for a few minutes and for a short time a blackscreen, sometimes I see the android screen shortly. but the power is alwas on and it stays connected to adb
 
 
Could you show me how do change the resolution via adb?
I think it is the frequency, causes the problem.
 
I used your img with the playstore, but deleted it, look like it is not available anymore
Now I am using this Release: TinkerOS_Android 7 Nougat V14.1.2.50, from this android Forum.
 
Here the settings:

Code:
PS C:\adb> ./adb shell settings list global
adb_enabled=1
add_users_when_locked=0
airplane_mode_on=0
airplane_mode_radios=cell,bluetooth,wifi,nfc,wimax
airplane_mode_toggleable_radios=bluetooth,wifi,nfc
assisted_gps_enabled=1
audio_safe_volume_state=3
auto_time=1
auto_time_zone=1
bluetooth_disabled_profiles=0
bluetooth_on=0
boot_count=4
call_auto_retry=0
car_dock_sound=/system/media/audio/ui/Dock.ogg
car_undock_sound=/system/media/audio/ui/Undock.ogg
cdma_cell_broadcast_sms=1
data_roaming=1
default_install_location=0
desk_dock_sound=/system/media/audio/ui/Dock.ogg
desk_undock_sound=/system/media/audio/ui/Undock.ogg
device_name=Tinker Board
device_provisioned=1
dock_audio_media_enabled=1
dock_sounds_enabled=0
dock_sounds_enabled_when_accessbility=0
emergency_affordance_needed=0
emergency_tone=0
hdmi_control_auto_device_off_enabled=0
hdmi_control_enabled=0
heads_up_notifications_enabled=1
lock_sound=/system/media/audio/ui/Lock.ogg
low_battery_sound=/system/media/audio/ui/LowBattery.ogg
low_battery_sound_timeout=0
mobile_data=1
mode_ringer=2
netstats_enabled=1
network_scoring_provisioned=1
package_verifier_enable=1
power_sounds_enabled=1
preferred_network_mode=0
set_install_location=0
stay_on_while_plugged_in=7
subscription_mode=0
theater_mode_on=0
trusted_sound=/system/media/audio/ui/Trusted.ogg
unlock_sound=/system/media/audio/ui/Unlock.ogg
usb_mass_storage_enabled=1
volte_vt_enabled=1
webview_provider=com.android.webview
wifi_display_on=0
wifi_max_dhcp_retry_count=9
wifi_networks_available_notification_on=1
wifi_on=0
wifi_scan_always_enabled=0
wifi_sleep_policy=2
wireless_charging_started_sound=/system/media/audio/ui/WirelessChargingStarted.ogg
zen_mode=0
zen_mode_config_etag=-1820474386
PS C:\adb> ./adb shell settings list system
accelerometer_rotation=0
alarm_alert=content://media/internal/audio/media/9
alarm_alert_set=1
dim_screen=1
dtmf_tone=1
dtmf_tone_type=0
dual_screen_icon_used=0
dual_screen_mode=0
haptic_feedback_enabled=1
hearing_aid=0
hide_rotation_lock_toggle_for_accessibility=0
lockscreen_sounds_enabled=1
mode_ringer_streams_affected=166
mute_streams_affected=46
notification_light_pulse=1
notification_sound=content://media/internal/audio/media/98
notification_sound_set=1
pointer_speed=0
ringtone=content://media/internal/audio/media/180
ringtone_set=1
screen_brightness=102
screen_brightness_mode=0
screen_off_timeout=2147483647
screenshot_button_show=1
screenshot_location=internal_storage
sound_effects_enabled=1
transition_animation_scale=1.0
tty_mode=0
user_rotation=0
vibrate_when_ringing=0
volume_alarm=6
volume_bluetooth_sco=7
volume_music=11
volume_music_headphone=10
volume_music_headset=10
volume_notification=5
volume_ring=5
volume_system=7
volume_voice=4
window_animation_scale=1.0
PS C:\adb> ./adb shell settings list secure
accessibility_display_magnification_auto_update=1
accessibility_display_magnification_enabled=0
accessibility_display_magnification_scale=2.0
accessibility_enabled=0
accessibility_script_injection=0
accessibility_script_injection_url=https://ssl.gstatic.com/accessibility/javascript/android/AndroidVox_v1.js
accessibility_web_content_key_bindings=0x13=0x01000100; 0x14=0x01010100; 0x15=0x02000001; 0x16=0x02010001; 0x200000013=0x02000601; 0x200000014=0x02010601; 0x200000015=0x03020101; 0x200000016=0x03010201; 0x200000023=0x02000301; 0x200000024=0x02010301; 0x200000037=0x03070201; 0x200000038=0x03000701:0x03010701:0x03020701;
android_id=a1bd5d1f885e4a0f
backup_enabled=null
backup_transport=android/com.android.internal.backup.LocalTransport
bluetooth_addr_valid=1
bluetooth_address=22:22:32:C0:37:85
bluetooth_name=Tinker Board
default_input_method=com.android.inputmethod.latin/.LatinIME
double_tap_to_wake=1
enabled_input_methods=com.android.inputmethod.latin/.LatinIME
enabled_notification_policy_access_packages=com.android.camera2
immersive_mode_confirmations=confirmed
input_methods_subtype_history=com.android.inputmethod.latin/.LatinIME;-921088104
install_non_market_apps=0
location_providers_allowed=gps
lock_screen_allow_private_notifications=1
lock_screen_owner_info_enabled=0
lock_screen_show_notifications=1
lockscreen.disabled=0
long_press_timeout=400
mock_location=0
mount_play_not_snd=1
mount_ums_autostart=0
mount_ums_notify_enabled=1
mount_ums_prompt=1
multi_press_timeout=300
overview_last_stack_active_time=1537893114888
screensaver_activate_on_dock=1
screensaver_activate_on_sleep=0
screensaver_components=com.google.android.deskclock/com.android.deskclock.Screensaver
screensaver_default_component=com.google.android.deskclock/com.android.deskclock.Screensaver
screensaver_enabled=1
selected_input_method_subtype=-921088104
selected_spell_checker=com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
selected_spell_checker_subtype=0
show_ime_with_hard_keyboard=0
show_note_about_notification_hiding=0
sleep_timeout=-1
snoozed_schedule_condition_provider=
speak_password=0
sysui_tuner_version=1
touch_exploration_enabled=0
trust_agents_initialized=1
user_setup_complete=1
volume_controller_service_component=null
wake_gesture_enabled=1
PS C:\adb>
Reply
#10
hi pumuckl,

Change Screen Resolution on Android via ADB 
Code:
adb connect 192.168.1.x
adb shell wm size 1920x1080               #To change resolution into FullHD
adb shell wm density xxx                  #<----- you will have to work out this..
adb shell wm density 81                   #1920x1080 27.15inches ==> 81 dpi
adb reboot
I think it depends on the size of your monitor... I'm not sure.. http://dpi.lv

and for frequency.. I'm still looking for that..  ;-]]]....

also.. do you have usb mouse connected..
if you keep moving mouse.. it might help keep the tinker board from shutting down..

I tested this with clean install TinkerOS_Android 7 Nougat V14.1.2.50..

when I send power button key signal to tinker board..
to Lock Android screen.....
Code:
adb shell input keyevent 6
or
Code:
adb shell input keyevent 26
if I do not move mouse.. when I run >  adb shell input keyevent 26.. tinker board shuts down..
but.. if I keep moving mouse.. and run > adb shell input keyevent 26.. thinker board screen locks and power stays on ]]]...
very strange....

lets.. change some of your settings...
screen_off_timeout=2147483647 ======> screen_off_timeout=120000 or -1 to disable... [Never Sleep] ;-]..
Note.. [-1] NO LONGER WORKS [[[.........................................................................................................
Set system screen off.. Set system screen off as never
Code:
adb shell settings put system screen_off_timeout -1
Set system screen off as 15 seconds 
Code:
adb shell settings put system screen_off_timeout 15000
Set system screen off as 5 mins 
Code:
adb shell settings put system screen_off_timeout 120000
Set screen backlight as 86
Code:
adb shell settings put system screen_brightness 86

######################################
sleep_timeout=-1 =======>  sleep_timeout=120000
sleep_timeout=-1 =======>  sleep_timeout=0
##################################################################################################
http://www.aftvnews.com/how-to-set-custo...hout-root/
The numeric values you use in this guide are in milliseconds. The default sleep value is 1200000, which is 20 minutes.
The default screensaver value is 300000, which is 5 minutes. If you select “never” , the screensaver timer gets set to 2147460000,
which is about 24 days. Setting a value of 0 does not disable the screensaver but it does seem to work to disable the sleep timer,
>adb shell settings put secure sleep_timeout 123456789
>adb shell settings put system screen_off_timeout 123456789
(Remember to change 123456789 to the value in milliseconds that you want to set. Use 0 and 2147460000 to disable the sleep and screensaver timer, respectively.)
####################################################################################################
Stop the Screen Sleep Mode completely : set time out to -1 or 0
Code:
adb shell settings get secure sleep_timeout
adb shell settings put secure sleep_timeout 0

and this ADB command kills the screensaver : set to 0 / will not accept -1 or [2147460000 / display menu will fail to open..] / [org screen_off_timeout=2147483647]
Code:
adb shell settings get system screen_off_timeout
adb shell settings put system screen_off_timeout 120000

--------------------------------
hope that helps,
k.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)