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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Google Play Store ON clean install TinkerOS_Android 7 Nougat V14.1.2.50
#11
most resolutions I tried do not work at all.
 
Only with 1280x800 and 1920x1080 I can see the android screen.
 
When I reduces the density to 80-120, it is easier to enter quickly the settings.
 
I that 2 second, when I see something, can enter the display and hdmi settings, when I try to enter the settings for resolution or to rotate,
I can see for a second the screen with the available resolutions or how to rotate.
Then the hdmi signal is lost, it looks like the tb tries to restore the hdmi output but I is just a second black. When I  reboot, I can try to enter the settings again.
 
 
On the weekend I can try another screen, if you do not have other ideas.
Reply
#12
hi pumuckl,

###################
what is your...
Code:
adb shell dumpsys display | grep mBaseDisplayInfo

Physical size: -----
Code:
adb shell wm size

Physical density: ---
Override density: ---
Code:
adb shell wm density

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

To revert the change:
---------------------------------------------------------------
https://dorylabs.com/fix-screen-resolution-problems-device/
Code:
adb shell wm size reset
adb shell wm density reset

http://dpi.lv
--------------------------------------------------------------
LDPI: Low density, 120 PPI
MDPI: Medium density, 120-160 PPI
TVDPI: Medium High density, 160-213 PPI
HDPI or HiDPI: High density, 213-240 PPI
XHDPI: eXtra High density, 240-320 PPI
XXHDPI: eXtra eXtra High density, 320-480 PPI
XXXHDPI: eXtra eXtra eXtra High density, 480-640 PPI


------------------
hope it helps,
k.
Reply
#13
here are the settings

played around but no change

Code:
PS C:\adb> ./adb shell dumpsys display | grep mBaseDisplayInfo
grep : Die Benennung "grep" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob
der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:31
+ ./adb shell dumpsys display | grep mBaseDisplayInfo
+                               ~~~~
   + CategoryInfo          : ObjectNotFound: (grep:String) [], CommandNotFoundException
   + FullyQualifiedErrorId : CommandNotFoundException

PS C:\adb> ./adb shell dumpsys display
DISPLAY MANAGER (dumpsys display)
 mOnlyCode=false
 mSafeMode=false
 mPendingTraversal=false
 mGlobalDisplayState=ON
 mNextNonDefaultDisplayId=1
 mDefaultViewport=DisplayViewport{valid=true, displayId=0, orientation=0, logicalFrame=Rect(0, 0 - 1920, 1080), physicalFrame=Rect(0, 0 - 1920, 1080), deviceWidth=1920, deviceHeight=1080}
 mExternalTouchViewport=DisplayViewport{valid=false, displayId=0, orientation=0, logicalFrame=Rect(0, 0 - 0, 0), physicalFrame=Rect(0, 0 - 0, 0), deviceWidth=0, deviceHeight=0}
 mDefaultDisplayDefaultColorMode=0
 mSingleDisplayDemoMode=false
 mWifiDisplayScanRequestCount=0

Display Adapters: size=4
 LocalDisplayAdapter
 OverlayDisplayAdapter
   mCurrentOverlaySetting=
   mOverlays: size=0
 WifiDisplayAdapter
   mCurrentStatus=WifiDisplayStatus{featureState=1, scanState=0, activeDisplayState=0, activeDisplay=null, displays=[], sessionInfo=WifiDisplaySessionInfo:
       Client/Owner: Client
       GroupId:
       Passphrase:
       SessionId: 0
       IP Address: }
   mFeatureState=1
   mScanState=0
   mActiveDisplayState=0
   mActiveDisplay=null
   mDisplays=[]
   mAvailableDisplays=[]
   mRememberedDisplays=[]
   mPendingStatusChangeBroadcast=false
   mSupportsProtectedBuffers=false
   mDisplayController:
     mWifiDisplayOnSetting=false
     mWifiP2pEnabled=false
     mWfdEnabled=false
     mWfdEnabling=false
     mNetworkInfo=null
     mScanRequested=false
     mDiscoverPeersInProgress=false
     mDesiredDevice=null
     mConnectingDisplay=null
     mDisconnectingDisplay=null
     mCancelingDisplay=null
     mConnectedDevice=null
     mConnectionRetriesLeft=0
     mRemoteDisplay=null
     mRemoteDisplayInterface=null
     mRemoteDisplayConnected=false
     mAdvertisedDisplay=null
     mAdvertisedDisplaySurface=null
     mAdvertisedDisplayWidth=0
     mAdvertisedDisplayHeight=0
     mAdvertisedDisplayFlags=0
     mAvailableWifiDisplayPeers: size=0
 VirtualDisplayAdapter

Display Devices: size=1
 DisplayDeviceInfo{"Built-in Screen": uniqueId="local:0", 1920 x 1080, modeId 1, defaultModeId 1, supportedModes [{id=1, width=1920, height=1080, fps=60.000004}], colorMode 0, supportedColorModes [0], HdrCapabilities android.view.Display$HdrCapabilities@a69d6308, density 240, 51.334 x 50.8 dpi, appVsyncOff 1000000, presDeadline 16666666, touch INTERNAL, rotation 0, type BUILT_IN, state ON, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
   mAdapter=LocalDisplayAdapter
   mUniqueId=local:0
   mDisplayToken=android.os.BinderProxy@a9a5eb0
   mCurrentLayerStack=0
   mCurrentOrientation=0
   mCurrentLayerStackRect=Rect(0, 0 - 1920, 1080)
   mCurrentDisplayRect=Rect(0, 0 - 1920, 1080)
   mCurrentSurface=null
   mBuiltInDisplayId=0
   mActivePhysIndex=0
   mActiveModeId=1
   mActiveColorMode=0
   mState=ON
   mBrightness=209
   mBacklight=com.android.server.lights.LightsService$LightImpl@8b42129
   mDisplayInfos=
     PhysicalDisplayInfo{1920 x 1080, 60.000004 fps, density 1.5, 51.334 x 50.8 dpi, secure true, appVsyncOffset 1000000, bufferDeadline 16666666}
   mSupportedModes=
     DisplayModeRecord{mMode={id=1, width=1920, height=1080, fps=60.000004}}
   mSupportedColorModes=[0]

Logical Displays: size=1
 Display 0:
   mDisplayId=0
   mLayerStack=0
   mHasContent=true
   mRequestedMode=0
   mRequestedColorMode=0
   mDisplayOffset=(0, 0)
   mPrimaryDisplayDevice=Built-in Screen
   mBaseDisplayInfo=DisplayInfo{"Built-in Screen", uniqueId "local:0", app 1920 x 1080, real 1920 x 1080, largest app 1920 x 1080, smallest app 1920 x 1080, mode 1, defaultMode 1, modes [{id=1, width=1920, height=1080, fps=60.000004}], colorMode 0, supportedColorModes [0], hdrCapabilities android.view.Display$HdrCapabilities@a69d6308, rotation 0, density 240 (51.334 x 50.8) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 16666666, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
   mOverrideDisplayInfo=DisplayInfo{"Built-in Screen", uniqueId "local:0", app 1920 x 1008, real 1920 x 1080, largest app 1920 x 1812, smallest app 1080 x 972, mode 1, defaultMode 1, modes [{id=1, width=1920, height=1080, fps=60.000004}], colorMode 0, supportedColorModes [0], hdrCapabilities android.view.Display$HdrCapabilities@a69d6308, rotation 0, density 240 (51.334 x 50.8) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 16666666, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}

Callbacks: size=21
 0: mPid=758, mWifiDisplayScanRequested=false
 1: mPid=847, mWifiDisplayScanRequested=false
 2: mPid=859, mWifiDisplayScanRequested=false
 3: mPid=876, mWifiDisplayScanRequested=false
 4: mPid=899, mWifiDisplayScanRequested=false
 5: mPid=1174, mWifiDisplayScanRequested=false
 6: mPid=1194, mWifiDisplayScanRequested=false
 7: mPid=1213, mWifiDisplayScanRequested=false
 8: mPid=1243, mWifiDisplayScanRequested=false
 9: mPid=1259, mWifiDisplayScanRequested=false
 10: mPid=1309, mWifiDisplayScanRequested=false
 11: mPid=1326, mWifiDisplayScanRequested=false
 12: mPid=1379, mWifiDisplayScanRequested=false
 13: mPid=1395, mWifiDisplayScanRequested=false
 14: mPid=1417, mWifiDisplayScanRequested=false
 15: mPid=1449, mWifiDisplayScanRequested=false
 16: mPid=1474, mWifiDisplayScanRequested=false
 17: mPid=1490, mWifiDisplayScanRequested=false
 18: mPid=1519, mWifiDisplayScanRequested=false
 19: mPid=1536, mWifiDisplayScanRequested=false
 20: mPid=1558, mWifiDisplayScanRequested=false

Display Power Controller Locked State:
 mDisplayReadyLocked=true
 mPendingRequestLocked=policy=BRIGHT, useProximitySensor=false, screenBrightness=209, screenAutoBrightnessAdjustment=0.0, brightnessSetByUser=true, useAutoBrightness=false, blockScreenOn=false, lowPowerMode=false, boostScreenBrightness=false, dozeScreenBrightness=-1, dozeScreenState=UNKNOWN
 mPendingRequestChangedLocked=false
 mPendingWaitForNegativeProximityLocked=false
 mPendingUpdatePowerStateLocked=false

Display Power Controller Configuration:
 mScreenBrightnessDozeConfig=1
 mScreenBrightnessDimConfig=2
 mScreenBrightnessDarkConfig=1
 mScreenBrightnessRangeMinimum=1
 mScreenBrightnessRangeMaximum=255
 mUseSoftwareAutoBrightnessConfig=false
 mAllowAutoBrightnessWhileDozingConfig=false
 mColorFadeFadesConfig=false

Display Power Controller Thread State:
 mPowerRequest=policy=BRIGHT, useProximitySensor=false, screenBrightness=209, screenAutoBrightnessAdjustment=0.0, brightnessSetByUser=true, useAutoBrightness=false, blockScreenOn=false, lowPowerMode=false, boostScreenBrightness=false, dozeScreenBrightness=-1, dozeScreenState=UNKNOWN
 mWaitingForNegativeProximity=false
 mProximitySensor=null
 mProximitySensorEnabled=false
 mProximityThreshold=0.0
 mProximity=Unknown
 mPendingProximity=Unknown
 mPendingProximityDebounceTime=-1 (86212 ms ago)
 mScreenOffBecauseOfProximity=false
 mAppliedAutoBrightness=false
 mAppliedDimming=false
 mAppliedLowPower=false
 mPendingScreenOnUnblocker=null
 mPendingScreenOff=false
 mReportedToPolicy=REPORTED_TO_POLICY_SCREEN_ON
 mScreenBrightnessRampAnimator.isAnimating()=false
 mColorFadeOnAnimator.isStarted()=false
 mColorFadeOffAnimator.isStarted()=false

Display Power State:
 mScreenState=ON
 mScreenBrightness=209
 mScreenReady=true
 mScreenUpdatePending=false
 mColorFadePrepared=false
 mColorFadeLevel=1.0
 mColorFadeReady=true
 mColorFadeDrawPending=false

Photonic Modulator State:
 mPendingState=ON
 mPendingBacklight=209
 mActualState=ON
 mActualBacklight=209
 mStateChangeInProgress=false
 mBacklightChangeInProgress=false

Color Fade State:
 mPrepared=false
 mMode=0
 mDisplayLayerStack=0
 mDisplayWidth=0
 mDisplayHeight=0
 mSurfaceVisible=false
 mSurfaceAlpha=0.0

PersistentDataStore
 mLoaded=true
 mDirty=false
 RememberedWifiDisplays:
 DisplayStates:
PS C:\adb> ./adb shell wm size
Physical size: 1920x1080
PS C:\adb> ./adb shell wm density
Physical density: 240
PS C:\adb>
[-] The following 1 user Likes pumuckl's post:
  • pumuckl
Reply
#14
hi pumuckl ,

so.... my adb shell dumpsys display | grep mBaseDisplayInfo.........................
Code:
adb shell dumpsys display | grep mBaseDisplayInfo
   mBaseDisplayInfo=DisplayInfo{"Built-in Screen", uniqueId "local:0", app 1920 x 1080, real 1920 x 1080, largest app 1920 x 1080, smallest app 1920 x 1080, mode 1, defaultMode 1, modes [{id=1, width=1920, height=1080, fps=60.000004}], colorMode 0, supportedColorModes [0], hdrCapabilities android.view.Display$HdrCapabilities@a69d6308, rotation 0, density 240 (81.28 x 80.682) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 16666666, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}

your adb shell dumpsys display | grep mBaseDisplayInfo.................................
Code:
./adb shell dumpsys display | grep mBaseDisplayInfo
grep : Die Benennung "grep" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob
der Pfad korrekt ist (sofern enthalten), und wiederholen Sie den Vorgang.
In Zeile:1 Zeichen:31

hmmm..

... drop into root shell...
Code:
adb connect 192.168.1.x
adb root
adb connect 192.168.1.x
adb shell
rk3288:/ #

 ..then run >dumpsys display | grep mBaseDisplayInfo from inside shell...

Code:
rk3288:/ # dumpsys display | grep mBaseDisplayInfo

   mBaseDisplayInfo=DisplayInfo{"Built-in Screen", uniqueId "local:0", app 1920 x 1080, real 1920 x 1080, largest app 1920 x 1080, smallest app 1920 x 1080, mode 1, defaultMode 1, modes [{id=1, width=1920, height=1080, fps=60.000004}], colorMode 0, supportedColorModes [0], hdrCapabilities android.view.Display$HdrCapabilities@a69d6308, rotation 0, density 240 (81.28 x 80.682) dpi, layerStack 0, appVsyncOff 1000000, presDeadline 16666666, type BUILT_IN, state ON, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS}
rk3288:/ #

from your settings..
-----------------------------------------------------------
PhysicalDisplayInfo{1920 x 1080, 60.000004 fps, density 1.5, 51.334 x 50.8 dpi, secure true, appVsyncOffset 1000000, bufferDeadline 16666666}
android.view.Display$HdrCapabilities@a69d6308, density 240, 51.334 x 50.8 dpi, appVsyncOff 1000000, presDeadline 16666666, touch INTERNAL, rotation 0,....

try to set dpi to match that of the PhysicalDisplayInfo..
Code:
adb connect 192.168.1.x
adb shell wm size reset
adb shell wm density reset
adb shell wm size 1920x1080      #To change resolution into FullHD
adb shell wm density 51  or 77   #try 51 for dpi.. to match PhysicalDisplayInfo...  or Maybe.. 1.5 X 51.334 = 77 dpi
adb reboot

--------------------------------------------
are we using the same image from 
https://www.asus.com/uk/Single-Board-Computer/Tinker-Board/HelpDesk_Download/
TinkerOS_Android 7 Nougat V14.1.2.50
--------------------------------------------
hope we are ;-]....

so.. if you are using a clean install TinkerOS_Android 7 Nougat V14.1.2.50.. 
then screencap is installed by default.. so....
create folder on laptop for adb to dump pics in ]]]]....
then... connect tinker board to LAN with no hdmi yet and power on..
since you know what tinker board IP is.. you can connnect to it with adb..
...and take a screen shot...
Code:
adb connect 192.168.1.x
adb shell screencap -p -d 0 /sdcard/screenshot1.png
adb pull /sdcard/screenshot1.png
/sdcard/screenshot1.png: 1 file pulled. 8.4 MB/s (556265 bytes in 0.063s)

now open pics file screenshot1.png with file manager...

Unlock your Android screen
Code:
 adb shell input keyevent 82

...and take a screen shot...
Code:
adb shell screencap -p -d 0 /sdcard/screenshot2.png
adb pull /sdcard/screenshot2.png
/sdcard/screenshot2.png: 1 file pulled. 6.6 MB/s (974377 bytes in 0.140s)

now open pics file screenshot2.png with file manager...

...to open Settings through adb.. 
Code:
adb shell am start -a android.settings.SETTINGS
Starting: Intent { act=android.settings.SETTINGS }

...and take a screen shot...
Code:
adb shell screencap -p -d 0 /sdcard/screenshot3.png
adb pull /sdcard/screenshot3.png
/sdcard/screenshot3.png: 1 file pulled. 1.2 MB/s (70826 bytes in 0.055s)

now open pics file screenshot3.png with file manager...

you need to pad down 5 times... [20 --> "KEYCODE_DPAD_DOWN" ]
if you have usb keyboard.. press down key five times.. & press enter ]... OR..
Code:
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20

...and take a screen shot...
Code:
adb shell screencap -p -d 0 /sdcard/screenshot4.png
adb pull /sdcard/screenshot4.png
/sdcard/screenshot4.png: 1 file pulled. 1.1 MB/s (70516 bytes in 0.059s)

now open pics file screenshot4.png with file manager...

you need to send enter key signal [66 --> "KEYCODE_ENTER"] 
Code:
adb shell input keyevent 66

...and take a screen shot...
Code:
adb shell screencap -p -d 0 /sdcard/screenshot5.png
adb pull /sdcard/screenshot5.png
/sdcard/screenshot5.png: 1 file pulled. 0.9 MB/s (47779 bytes in 0.049s)

now open pics file screenshot5.png with file manager...

you need to pad down 7 times... [20 --> "KEYCODE_DPAD_DOWN" ]
and send enter key signal [66 --> "KEYCODE_ENTER"]
Code:
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 20
adb shell input keyevent 66

...and take a screen shot...
Code:
adb shell screencap -p -d 0 /sdcard/screenshot6.png
adb pull /sdcard/screenshot6.png
/sdcard/screenshot6.png: 1 file pulled. 5.5 MB/s (33766 bytes in 0.006s)

now open pics file screenshot6.png with file manager...

..now one more pad down [20 --> "KEYCODE_DPAD_DOWN" ]
and enter key signal [66 --> "KEYCODE_ENTER"]
Code:
adb shell input keyevent 20
adb shell input keyevent 66

...and take a screen shot...
Code:
adb shell screencap -p -d 0 /sdcard/screenshot7.png
adb pull /sdcard/screenshot7.png
sdcard/screenshot7.png: 1 file pulled. 1.1 MB/s (68928 bytes in 0.057s)

now open pics file screenshot7.png with file manager...

you see where this is going ;-]......
--------------------------------------------------------------------------------------------------------
Note.. from https://developer.android.com/reference/android/provider/Settings
to open Display Settings through adb...
Code:
adb shell am start -a android.settings.DISPLAY_SETTINGS

also try..
Code:
adb connect 192.168.1.x
adb shell wm size reset
adb shell wm density reset
adb shell reboot -p  # to shutdown tinker board..
then connect monitor hdmi.. but if you can keep monitor switched off..
then power on tinker board...
and try to see if you get a FHD 1920x1080 @ 30 Hz ..
select it.. and power down.. tinker board using adb method ]]]...
then power on monitor & tinker board together...
--------------------- 
good luck ;-]...
k.
Code:
################################################

List of Key Codes:

1 --> "KEYCODE_MENU"
3 --> "KEYCODE_HOME"
4 --> "KEYCODE_BACK"
19 --> "KEYCODE_DPAD_UP"
20 --> "KEYCODE_DPAD_DOWN"
21 --> "KEYCODE_DPAD_LEFT"
22 --> "KEYCODE_DPAD_RIGHT"
23 --> "KEYCODE_DPAD_CENTER"
24 --> "KEYCODE_VOLUME_UP"
25 --> "KEYCODE_VOLUME_DOWN"
26 --> "KEYCODE_POWER"
27 --> "KEYCODE_CAMERA"
28 --> "KEYCODE_CLEAR"
55 --> "KEYCODE_COMMA"
56 --> "KEYCODE_PERIOD"
57 --> "KEYCODE_ALT_LEFT"
58 --> "KEYCODE_ALT_RIGHT"
59 --> "KEYCODE_SHIFT_LEFT"
60 --> "KEYCODE_SHIFT_RIGHT"
61 --> "KEYCODE_TAB"
62 --> "KEYCODE_SPACE"
66 --> "KEYCODE_ENTER"
67 --> "KEYCODE_DEL"
80 --> "KEYCODE_FOCUS"
82 --> "KEYCODE_MENU"
83 --> "KEYCODE_NOTIFICATION"
84 --> "KEYCODE_SEARCH"

#Unlock your Android screen
adb shell input keyevent 82

#Lock your Android screen
adb shell input keyevent 6
adb shell input keyevent 26

#Open default browser
adb shell input keyevent 23

#Keep your android phone volume up(+)
adb shell input keyevent 24

#Keep your android phone volume down(-)
adb shell input keyevent 25

#Go to your Android Home screen
adb shell input keyevent 3

#Screen capture command
#screencap [-hp] [-d display-id] [FILENAME]
# -h: this message
# -p: save the file as a png.
# -d: specify the display id to capture, default 0
##############################################################
so.. that's what the code button does... nice...]]]]]...... 
we live & learn...
many thanks Im4Tinker,
will B.. re-editing my old posts..]]]]]]......
Reply
#15
Wouldn't it be nicer to put your report in the [code] tags ?
Light blue words might be a link. Have you try to click on them? Big Grin
Reply
#16
Thank you k247tEK,

I could change the hdmi resolution, with your advice.
6 different resolutions are available. 1920x1080 60p 1920x1080 50p and 2 smaller ones with 50p and 60p.
I tried them all, evert time the same, the screen is getting Black coming back a few times at the end the signal is lost.

TinkerOS_Android V13.14.0.95 is working well, also on this screen. Next week I can test a nother screen.

But I think there is a driver problem or something.


Edit1:

I also testet this image:
TinkerOS_Android 7 Nougat V14.1.2.50 with Google Playstore
Domo

Same result

Edit2:

Tested on a different screen now and I don’t have this problem anymore.

But it looks like this version is not that good than version V13.14.0.95.

When I start a movie with kodi, the tb freeze and Without root right I can’t use the gpio`s. So I will go back to the older version for the moment.
Reply
#17
get screen saver to run / download and install live wall papers.. continue from post[3]


could not get screen saver to run...  from Control brightness of HDMI monitor? thread.. 
jamess post[5]
Quote:Hi, Chris

    About the 1st question, it can't wakeup device by the touch screen, now Tinker only can be wake up from power button. just like the android phone. Some mobile phone can wakeup the device from touch screen by double touch it, but this feature needs the touch chip support. And I have some question about the screen timeout, as I know our default setting of screen timeout is "never sleep", it's weird that your device will go into sleep. Did you modify the setting of the screen timeout ?

...need to test with DSI Ribbon cable connected touch screen.. and not hdmi / usb touch screen...
so.. I test with Official Raspberry Pi 7" Touchscreen Display...  
screen saver, set to clock..  stay awake is off.. & power set to on.. in Accessibility...   
screen saver does come on after 5 mins.. ]]]... & screen / tinker board does not power down....
BUT... new problem.. if you choose [Restart]  from power menu.. then.. touch no longer works... 
you have to always use [Power off]....  wait for tinker board to completely shut down.. 
then shut power to cable off.. then on ]]]]..

also.. [Brightness level].. from Display menu does not work..[[[[....  
-----------------------------------------------------------------------
&.. no [Never sleep].. because in Android Nougat..
[adb shell settings put system screen_off_timeout -1]
will not set...
---------------------------------------------------------


use web browser to download live wall papers & file manager to install..
============================================

from https://androidfilehost.com
2017 Pixel Wallpapers - Developed By : Pranav Pandey
PixelWallpapers_6.0-PranavPandey.apk
https://androidfilehost.com/?fid=745849072291685817
and Google Wallpapers from Play Store...
https://play.google.com/store/apps/details?id=com.google.android.apps.wallpaper

from APKMirror https://www.apkmirror.com
ASUS LiveWater(Live wallpaper) 1.2.0.10_180208
https://www.apkmirror.com/apk/zenui-asus-computer-inc/livewater/livewater-1-2-0-10_180208-release/livewater-1-2-0-10_180208-android-apk-download/
you can install ASUS LiveWater(Live wallpaper) from Play Store.. ;-]...
https://play.google.com/store/apps/details?id=com.asus.livewallpaper.asusmywater

from https://apkpure.com/
ICS Phase Beam Live Wallpaper APK ver 1.3.4
https://apkpure.com/ics-phase-beam-live-wallpaper/com.tribok.android.livewallpaper.icsclassic.lite


-----------------------
hope it helps,
k.



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

next>.. get root / got root... / python & then Scratch that GPIO itch… see post[18]
Reply
#18
It's ROOT Jim, but not as we know it… ]]].....


 #### DO NOT TRY THIS ON YOUR WORKING Android SD... ####
### try on a new test sd card.. ###


OMG... I Think we Have Root under termux.... ]]]]]....

but.. need someone who knows what they are doing... to verify ]]]]......

--------------------------------------------
I'm using image from.. 
https://www.asus.com/uk/Single-Board-Computer/Tinker-Board/HelpDesk_Download/
TinkerOS_Android 7 Nougat V14.1.2.50
--------------------------------------------
flashed with Etcher.. to clean SanDisk Ultra 64GB microSDXC Memory Card..


first get Termux APK & push to Download folder on sdcard folder on tinker board..
--------------------------------------------------------------------------------------------------
go to download folder.. on laptop.. connected to same LAN as tinker board..

and download... from APKPure.. https://apkpure.com/
[Termux APK ver 0.65:
Termux_v0.65_apkpure.com.apk 
rename to : Termux.apk
---------------------------------
connect & push Temux APK to sdcard folder on tinker board..
Code:
adb connect 192.168.1.x
adb root
adb connect 192.168.1.x
adb remount              #### might not need this as you are writing to sdcard folder...
adb push Termux.apk /sdcard/Download/
..or it could be easier to just use Lighting web browser to download  Termux_v0.65_apkpure.com.apk...

to install.. simply open [File Manager].. app from application..
on the tinker board.. and click on [Downloads].. then [Termux.apk]..
and select.. [install].. then [done].. ;-]..
  
two.. must have Termux Addons.. Termux:API & Termux:Boot
------------------------------------------------------------------------------
Note.. termux:boot not stable.. for now start >sshd manually..

[Termux on TinkerOS Android 7 Nougat V14.1.2.50 with ssh server setup...] tbc..
----------------------------------------------------------------------------------------------

now.. get and install SuperSU
---------------------------------

so.. google    SR5-SuperSU-v2.82-SR5-20171001224502.zip
and first link for me was.. https://download.chainfire.eu/1220/SuperSU/SR5-SuperSU-v2.82-SR5-20171001224502.zip?retrieve_file=1
download SR5-SuperSU-v2.82-SR5-20171001224502.zip...
rename to : SuperSU.zip
=========================
extract to Folder : SuperSU
----------------------------------
go to folder and list to check..
Code:
$ ls -Flah
total 44K
drwxrwxr-x 11 k247 k247 4.0K Oct  4 09:20 ./
drwxrwxr-x  5 k247 k247 4.0K Oct  4 10:48 ../
drwx------  2 k247 k247 4.0K Oct  4 09:20 arm/
drwx------  3 k247 k247 4.0K Oct  4 09:20 arm64/
drwx------  2 k247 k247 4.0K Oct  4 09:20 armv7/
drwx------  3 k247 k247 4.0K Oct  4 09:20 common/
drwx------  3 k247 k247 4.0K Oct  4 09:20 META-INF/
drwx------  2 k247 k247 4.0K Oct  4 09:20 mips/
drwx------  2 k247 k247 4.0K Oct  4 09:20 mips64/
drwx------  2 k247 k247 4.0K Oct  4 09:20 x64/
drwx------  2 k247 k247 4.0K Oct  4 09:20 x86/
$

connect & only push the su file from armv7 folder.. to /system/xbin on tinker board..
Code:
adb connect 192.168.1.x
adb root
adb connect 192.168.1.x
adb remount
adb push armv7/su /system/xbin/su_SuperSU

then.. drop in shell & make backup copy of original su file..
Code:
adb shell
cd system/xbin/
cp -p su su_org          ### make copy of original su...
chcon u:object_r:su_exec:s0 su_org
ls -FlahZ su*
-----------------------------------------------------------------------------------------------------------
-rwsr-x--- 1 root shell u:object_r:su_exec:s0     18K 2018-08-17 03:57 su*
-rwxr-xr-x 1 root shell u:object_r:system_file:s0 74K 2008-02-29 02:33 su_SuperSU*
-rwsr-x--- 1 root shell u:object_r:su_exec:s0     18K 2018-10-05 19:16 su_org*
rk3288:/system/xbin # exit
..now restart the tinker board....

download.. from apkmirror.. and push to sdcard folder on tinker board..
[SuperSU 2.82.1 (Android 2.3+)
eu.chainfire.supersu_2.82.1-282_minAPI9(nodpi)_apkmirror.com.apk]

https://www.apkmirror.com/apk/codingcode/supersu/supersu-2-82-1-release/supersu-2-82-1-android-apk-download/
rename to : SuperSU_2_82_1.apk
---------------------------------------------
now.. push  SuperSU_2_82_1 APK to sdcard folder on tinker board..
Code:
adb connect 192.168.1.x[/s]
[s]adb root[/s]
[s]adb connect 192.168.1.x[/s]
[s]adb remount              #### might not need this as you are writing to sdcard folder...[/s]
[s]adb push SuperSU_2_82_1.apk /sdcard/Download/[/s]
[s]

..or it could be easier to just use Lighting web browser to download SuperSU_2_82_1.apk...

to install.. simply open [File Manager].. app from application..
on the tinker board.. and click on [Downloads].. then [SuperSU_2_82_1.apk]..
and select.. [install].. then [done].. ;-]..

.. drop into shell again.. and this time.. copy su_SuperSU to su..
Code:
adb connect 192.168.1.x
adb root
adb connect 192.168.1.x
adb remount
adb shell
cd system/xbin/
cp -p su_SuperSU su       ### copy su_SuperSU over su
ls -FlahZ su*
------------------------------------------------------------------------------------------------------------
-rwxr-xr-x 1 root shell u:object_r:system_file:s0 74K 2018-10-05 20:42 su*
-rwxr-xr-x 1 root shell u:object_r:system_file:s0 74K 2008-02-29 02:33 su_SuperSU*
-rwsr-x--- 1 root shell u:object_r:su_exec:s0     18K 2018-10-05 19:16 su_org*
-------------------------------------------------------------------------------------------------------------
chcon u:object_r:su_exec:s0 su
chmod 4750 su
ls -FlahZ su*
------------------------------------------------------------------------------------------------------------
-rwsr-x--- 1 root shell u:object_r:su_exec:s0     74K 2018-10-10 21:25 su*
-rwxr-xr-x 1 root shell u:object_r:system_file:s0 74K 2008-02-29 02:33 su_SuperSU*
-rwsr-x--- 1 root shell u:object_r:su_exec:s0     18K 2018-10-10 21:24 su_org*
-------------------------------------------------------------------------------------------------------------
rk3288:/system/xbin # exit
..now restart the tinker board....

.. before you open the SuperSU_2_82_1 App.. from applications on the tinker board.. 
####################################################

you have to drop in shell & run this..
Code:
adb connect 192.168.1.x
adb root
adb connect 192.168.1.x
adb shell
cd /system/xbin
su --daemon &
--------------------------------
[1] 4053
rk3288:/ #    ### do not press the Enter key again...
update.. ### you do not need to use > su --install......

then...  on tinker board.. 
open [SuperSU].. app from applications.. 
and select [normal] and [contuine].. & then [ok].. to root device..
but do not click on [Reboot]...

.. click on [SETTINGS].. 

MAKE SURE TO NEVER CLICK ON [Enable superuser].. and leave it ticked... 

un-check  [Re-authentication]..
set Default access to [Grant]..
[show notification] ticked...
Logging [None]..

the only other settings I changed from here.. 
was [Tapjacking  protection].. un tick.. ;-].. 
-------------------------------------------------

to.. test.. open Termux app.. and try whoami.. id.. env.. & su... lots.. of fun here.. ;-]..
---------------------------------------------------------------------------------------------------
first.. 
Code:
pkg upgrade
pkg install nano htop mc tmux screen openssh tsu coreutils ncurses-utils util-linux grep pcre tree man
pkg install termux-api termux-exec termux-tools
termux-setup-storage
https://wiki.termux.com/wiki/Main_Page

see.. who you are.. with > whoami...
get more info with > id...
and see your shell envirement  variables > env..

try.. >htop.... &  then> tsudo htop....]]]]].....



htop on Android 7 Nougat with Root.. thats.. Termux Root.. & rebooting ok.. ]]...
--------------------------------------------------------------------------------------------

Now for the BAD NEWS.... DO NOT REBOOT the tinker board... ]]]...
tinker board will NOT restart... and will hang on Android Boot up Logo screen 8-[....
I had to reformat and re-flash several times ..]]...


I could not get the tinker board to reboot...
make sure you set [Sleep].. to 5mins.. but enable developer options and set [Stay awake]..
also.. do not send power button signal to tinker board.. 
I have tinker board board now powered on for 48hrs+... ]]]]...

soooo..  what's next...
will try to copy the original su_org file to su.. set permission and reboot..
then see what happens.. ]]]....

no joy.... the only way is to open [SuperSU] in applications.. then [SETTINGS]..
then click on [Full unroot]... [continue].. this will remove all of SuperSU... [[[[[[......

but.. this way.. tinker board can now reboot.. ok.. 

OMG... I Think we Have Root under termux.... ]]]]]...........

but.. need someone who knows what they are doing... to verify ]]]]......

remove SuperSU_2_82_1.apk from SETTINGS using [Full unroot]..
and go back into adb shell.. /system/xbin folder & copy the su_SuperSU file to su.. 
but this time make sure.. to also set.. 
Code:
chcon u:object_r:su_exec:s0 su
chmod 4750 su
so that it matches the original su file ;-]......
then... run..
Code:
 su --daemon &

#### remember not to press enter key more than once..  as you want su running as daemon...

then on the tinker board.. open termux...  and type su.. and it should just work ]]]]]]]..........
It will drop you into root... just like before when you had SuperSU_2_82_1 App installed...
so.. you can then > exit.. and this will take you back to termux user... u0_a56.. ]]]]]]]....
then.. just use >tsu .....and BANG! ]]]]]]]]]]..... you've got root termux.... htop works for root.. ;-]...
also >tsudo htop worked.....

so now.. need to install python and see if GPIO setup is possible...

Note.. openssh is installed on termux and sshd auto runs on boot.. using termux:boot App..
--------------------------------------------------------------------------------------------------------------
termux:boot not stable.. for now start >sshd manually..

also tinker board now reboots ok..;-]... 
[Image: sBDUaey.png]
It's ROOT Jim, but not as we know it… ]]]..
=====================
forever hoping someone out there..
have a fix on this ;-]..
k.

ps.. to fix sd card.. I had to reformat & flash image again [[[...
Reply
#19
Termux on TinkerOS Android 7 Nougat V14.1.2.50 with ssh server setup...


Now that it looks like we might have root in termux.. 
need to read up on how to setup environment variables..
setup python... & GPIO... ;-]...

What is Termux?
here are some links that might help... 
https://wiki.termux.com/wiki/Main_Page

Termux turns Android into a Linux development environment
https://opensource.com/article/18/5/termux

Basic Commands Using Termux
https://medium.com/bug-bounty-hunting/commands-in-termux-app-7c15ef5a1101

Guide: Installing and Running a GNU/Linux Environment on Any Android Device
https://www.xda-developers.com/guide-installing-and-running-a-gnulinux-environment-on-any-android-device/

How to install DAT on mobile under Termux
https://ar.al/2018/07/31/how-to-install-dat-on-mobile-under-termux/

Unveil full workstation environment on Android with Termux
https://bl.ocks.org/plugnburn/823b797cceb40da48a92

Termux PHP Tutorial: Steps to Have the Full Setup for Using Termux PHP
https://www.phpclasses.org/blog/package/10192/post/1-Tutorial-on-How-to-Control-an-Android-Phone-or-Tablet-using-PHP-with-Termux-App.html

How does Termux work on Android?
https://www.quora.com/How-does-Termux-work-on-Android

Mobile Ops and Tablet Terraform with Termux
https://skeltonthatcher.com/blog/mobile-ops-tablet-terraform-termux/

setupTermuxArch.sh ...]]]]......
https://sdrausty.github.io/TermuxArch/
======================================= lots of fun....

let's get Termux Setup on tinker board..
-----------------------------------------------
so.. you install the App form Play Store.. or download APK and open it..
all you see is $... now what? ]].....

first.. install Linux apps.. / setup ssh server & check termux:Apps are working..
Code:
pkg upgrade
pkg install nano htop mc tmux screen openssh tsu coreutils ncurses-utils util-linux grep pcre tree rsync mlocate man
pkg install termux-api termux-exec termux-tools
termux-setup-storage

a quick test of termux:API...
Code:
termux-toast hi..... there...... \:-]....

then.. open termux:Boot from applications..
from Examples... get sshd to start @ bootup...
Code:
mkdir -p ~/.termux/boot[/s]
[s]echo "sshd" > ~/.termux/boot/start-sshd.sh[/s]
[s]

https://wiki.termux.com/wiki/Termux:Boot

Note... sshd is setup for password-less login.. 
so you will need to copy id_rsa.pub of connecting system..
to.. ~/.ssh/authorized_keys... on tinker board..
Example.. allow my system @ 192.168.0.55 to connect to tinker baord..
Code:
ssh k247@192.168.0.55 'cat ~/.ssh/id_rsa.pub' | cat >> ~/.ssh/authorized_keys
----- enter pass -----
https://wiki.termux.com/wiki/Remote_Access

restart tinker board... to start ssh server open Termux and run.. > sshd   ... ;-]...
----------------------------------------------------------------------------------------
Note.. need to find a way to auto run Termux @ boot and add sshd to .bashrc file..

install AutoStart - No root from Play Store..
https://play.google.com/store/apps/details?id=com.autostart&hl=en_GB
[Image: cJgfhOm.png]

next.. how to setup Bash environment variables..

open Termux.. 
Code:
Welcome to Termux!

Wiki:            https://wiki.termux.com
Community forum: https://termux.com/community
IRC channel:     #termux on freenode
Gitter chat:     https://gitter.im/termux/termux
Mailing list:    termux+subscribe@groups.io

Search packages:   pkg search <query>
Install a package: pkg install <package>
Upgrade packages:  pkg upgrade
Learn more:        pkg help
$

and create > nano .bashrc
Code:
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

# If not running interactively, don't do anything
#case $- in
#    *i*) ;;
#      *) return;;
#esac
#

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color|*-256color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /data/data/com.termux/files/usr/bin/tput ] && tput setaf 1 >&/dev/null; then
        # We have color support; assume it's compliant with Ecma-48
        # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
        # a case would tend to support setf rather than setaf.)
        color_prompt=yes
    else
        color_prompt=
    fi
fi

#set prompt......................
#export PS1="\s\v\u\W\\$ "
#export PS1="\s:\v][\u]@\W:\\$ "
#export PS1="\s:\v][\u]@\w:\\$ "
#Bash:Virgin][User]@Home : ;-].... http://ezprompt.net
# If id command returns zero, you’ve root access.
if [ $(id -u) -eq 0 ];
then # you are root, set red colour prompt
   #PS1="\\[$(tput setaf 1)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]"
   #PS1="\[\e[31m\]\s\[\e[m\]:\[\e[31m\]\v\[\e[m\]][\[\e[31m\]\u\[\e[m\]]@\w:\[\e[37m\] \[\e[m\] "
   #PS1="\[\e[31m\]\s\[\e[m\]:\[\e[31m\]\v\[\e[m\]][\[\e[31m\]\u\[\e[m\]]@\w:\[\e[37m\] \[\e[m\]\[\e[31m\]#\[\e[m\] "
   PS1="\[\e[31m\]\s\[\e[m\]:\[\e[31m\]\v\[\e[m\]][\[\e[31m\]\u\[\e[m\]]@\w:\[\e[31m\]#\[\e[m\] "
else # normal
   #PS1="[\\u@\\h:\\w] $ "
   PS1="\s:\v][\u]@\w:\\$ "
fi

# enable color support of ls and also add handy aliases
if [ -x /data/data/com.termux/files/usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'
    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
#alias ll='ls -alF'
#alias ls='ls --color=auto'
alias ll='ls --color=auto -lshaF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

export LANG=en_GB.UTF-8
export LANGUAGE=en_GB:en

#
# add kPATH/bin to $PATH... only once...
if [ "$SHLVL" = 1 ] && [ $(id -u) -ne 0 ]; then     # check for 1st shell and not root....
   [[ ":$PATH:" != *":/data/data/com.termux/files/home/kPATH/bin:"* ]] && PATH="/data/data/com.termux/files/home/kPATH/bin:${PATH}"
   #export PATH=$PATH:/data/data/com.termux/files/home/kPATH/bin
   export PATH=$PATH
fi
#

#
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi
#

# start ssh server...
/data/data/com.termux/files/usr/bin/sshd
#

>nano .bash_logout
Code:
# ~/.bash_logout: executed by bash(1) when login shell exits.

# when leaving the console clear the screen to increase privacy

if [ "$SHLVL" = 1 ]; then
   [ -x /data/data/com.termux/files/usr/bin/clear ] && /data/data/com.termux/files/usr/bin/clear
fi

...& > nano .bash_aliases 
Code:
### aliases file....
#
#
### DIRS ###
alias d="cd ~/storage/downloads"
alias gh="cd ~/GitHub"
alias h="cd ~"
alias t="cd ~/temp"
#
#
alias cls='clear'
#

exit.. and restart tinker board...
Code:
bash:4.4][u0_a78]@~:$ ls -Flah
total 53K
drwx------ 11 u0_a78 u0_a78 3.5K Oct 13 10:35 ./
drwx------  4 u0_a78 u0_a78 3.5K Oct 10 19:43 ../
-rw-------  1 u0_a78 u0_a78 2.0K Oct 13 11:01 .bash_aliases
-rw-------  1 u0_a78 u0_a78 5.2K Oct 13 15:03 .bash_history
-rw-------  1 u0_a78 u0_a78  258 Oct 13 09:14 .bash_logout
-rw-------  1 u0_a78 u0_a78 3.0K Oct 13 11:37 .bashrc
drwx------  3 u0_a78 u0_a78 3.5K Oct 12 08:53 .cache/
drwx------  4 u0_a78 u0_a78 3.5K Oct 12 08:53 .config/
drwx------  3 u0_a78 u0_a78 3.5K Oct 12 08:53 .local/
drwx------  2 u0_a78 u0_a78 3.5K Oct 10 21:46 .ssh/
drwx------  3 u0_a78 u0_a78 3.5K Oct 12 18:37 .termux/
drwx------  3 u0_a78 u0_a78 3.5K Oct 12 15:19 kPATH/
drwx------  2 u0_a78 u0_a78 3.5K Oct 12 14:48 notes/
drwx------  2 u0_a78 u0_a78 3.5K Oct 10 20:38 storage/
drwx------  2 u0_a78 u0_a78 3.5K Oct 13 09:17 temp/
bash:4.4][u0_a78]@~:$ 
..also use [mkdir -p] to create folders.. kPATH/bin....     notes....     temp....
if you ever find folders or files not owned by termux user u0_a78....
then you can fix by.. 
Code:
cd
chown -R u0_a78:u0_a78 .

..as /root home folder is mounted read only..
Code:
rk3288:/ # cat /proc/mounts | grep root
-------------------------------------------------------------------------------
rootfs / rootfs ro,seclabel,size=1013416k,nr_inodes=119724 0 0
..create root home folder under /data/data/com.termux/files/
Code:
cd /data/data/com.termux/files/
mkdir -p root
chmod 777 -R root/

when using adb shell.. to drop in Android root shell.. remember to adb remount...
Code:
adb connect 192.168.1.X
adb connect root
adb connect 192.168.1.X
adb remount
adb shell
Note... this will give you (read,write) for /system but not /......

..once in root Android shell.. to make / (read,write)...
Code:
rk3288:/ # cat /proc/mounts | grep root
rootfs / rootfs ro,seclabel,size=1013416k,nr_inodes=119724 0 0
rk3288:/ #
rk3288:/ # mount -o rw,remount /
rk3288:/ #
rk3288:/ # cat /proc/mounts | grep root
rootfs / rootfs rw,seclabel,size=1013416k,nr_inodes=119724 0 0
rk3288:/ #

..now open bash shell with LD_LIBRARY_PATH set...
Code:
rk3288:/ # su --preserve-environment -c LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/data/data/com.termux/files/home/kPATH/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets HOME=/data/data/com.termux/files/root PS1="\[\e[31m\]\s\[\e[m\]:\[\e[31m\]\v\[\e[m\]][\[\e[31m\]\u\[\e[m\]]@\w:\[\e[31m\]#\[\e[m\]" /data/data/com.termux/files/usr/bin/bash -l

..use cd to change to root home folder... ;-]...
Code:
bash:4.4][root]@/:# cd
bash:4.4][root]@~:# pwd
/data/data/com.termux/files/root
bash:4.4][root]@~:# ls -Flah
total 13K
drwxrwxrwx 3 u0_a78 u0_a78 3.4K 2018-10-16 21:46 ./
drwx------ 5 u0_a78 u0_a78 3.4K 2018-10-16 21:05 ../
-rw------- 1 root   root   1.9K 2018-10-16 21:46 .bash_aliases
-rw------- 1 root   root    492 2018-10-16 21:58 .bash_history
drwx------ 3 root   root   3.4K 2018-10-16 21:10 .config/
bash:4.4][root]@~:#

...show environment variables with >env
Code:
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
LANG=en_GB.UTF-8
PREFIX=/data/data/com.termux/files/usr
PWD=/data/data/com.termux/files/home/notes
HOME=/data/data/com.termux/files/home
TMPDIR=/data/data/com.termux/files/usr/tmp
SHELL=/data/data/com.termux/files/usr/bin/bash
TERM=xterm-256color
SHLVL=1
LANGUAGE=en_GB:en
ANDROID_ROOT=/system
ANDROID_DATA=/data
EXTERNAL_STORAGE=/sdcard
PATH=/data/data/com.termux/files/home/kPATH/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
_=/data/data/com.termux/files/usr/bin/env
OLDPWD=/data/data/com.termux/files/home



Termux on TinkerOS Android 7 Nougat V14.1.2.50 with ssh server setup
------------------
hope it helps
k

next.. setup python... & GPIO... tbc..
Reply
#20
[Update Install Summary]...

as of : [10/10/20018]

files to download:

[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/google-services-framework/google-services-framework-7-1-2-release/google-services-framework-7-1-2-android-apk-download/
rename to : Gsf.apk
===================

[Google Play services 14.3.66 (000300-213742215) (000300):  
com.google.android.gms_14.3.66_(000300-213742215)-14366000_minAPI14(armeabi-v7a)(nodpi)_apkmirror.com.apk]
https://www.apkmirror.com/apk/google-inc/google-play-services/google-play-services-14-3-66-release/google-play-services-14-3-66-000300-213742215-android-apk-download/
rename to : Playservices.apk
============================

[Google Play Store 12.1.18-all [0] [PR] 216263519 (240-480dpi) (Android 4.1+): 
com.android.vending_12.1.18-all_0_PR_216263519-81211800_minAPI16(armeabi,armeabi-v7a,mips,mips64,x86,x86_64)(240,320,480dpi)_apkmirror.com.apk]
https://www.apkmirror.com/apk/google-inc/google-play-store/google-play-store-12-1-18-release/google-play-store-12-1-18-all-0-pr-216263519-android-apk-download/
rename to : Playstore.apk
=========================

[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/google-contacts-sync/google-contacts-sync-7-1-2-release/google-contacts-sync-7-1-2-android-apk-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-computer-inc/email-zenui-asus-computer-inc/email-zenui-asus-computer-inc-3-0-0-41_160722-release/asus-email-3-0-0-41_160722-android-apk-download/
rename to : Email.apk
=====================

connect, push & install APKs..
Code:
adb connect 192.168.1.X
adb root
adb connect 192.168.1.X
adb remount
adb push Gsf.apk /system/priv-app/Gsf/Gsf.apk
adb install -g -r Gsf.apk
adb push Playstore.apk /system/priv-app/Playstore/Playstore.apk
adb install -g -r Playstore.apk
adb pull /system/app/Email/Email.apk EmailBAK.apk
adb shell rm /system/app/Email/Email.apk
adb push Email.apk /system/app/Email/Email.apk
adb install -g -r Email.apk
adb push ContactsSync.apk /system/priv-app/ContactsSync/ContactsSync.apk
adb install -g -r ContactsSync.apk
adb push Playservices.apk /system/priv-app/Playservices/Playservices.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 apps and check the Permissions are ALL [ON]..
be sure to also check the two [Additional permissions] in [Google Services Framework]...

restart tinker board in recovery to  Wipe Cache Partition...
Code:
adb connect 192.168.1.X
adb reboot recovery
Note.. use keyboard arrow keys to selected [Wipe cache partition]... [Yes]...
then... select [reboot system]... ;-]...
################################


use Lighting Web Browser to download & install direct onto tinker board...
-----------------------------------------------------------------------

2017 Pixel Wallpapers - Developed By : Pranav Pandey
PixelWallpapers_6.0-PranavPandey.apk  https://androidfilehost.com/?fid=745849072291685817
------------------------------------

Google Wallpapers from Play Store...
https://play.google.com/store/apps/details?id=com.google.android.apps.wallpaper

ASUS LiveWater(Live wallpaper) from Play Store.. ;-]...
https://play.google.com/store/apps/details?id=com.asus.livewallpaper.asusmywater

[ICS Phase Beam Live Wallpaper APK ver 1.3.4:
ICS Phase Beam Live Wallpaper_v1.3.4_apkpure.com.apk]
https://apkpure.com/ics-phase-beam-live-wallpaper/com.tribok.android.livewallpaper.icsclassic.lite
rename to : ICS_PhaseBeamLiveWallpaper.apk
------------------------------------------------


[Termux APK ver 0.65:
Termux_v0.65_apkpure.com.apk   https://apkpure.com/termux/com.termux
rename to : Termux.apk
---------------------------------
from Play Store...  https://play.google.com/store/apps/details?id=com.termux

two.. must have Termux Addons..
-------------------------------------------- 
Termux:API  https://apkpure.com/termux-api/com.termux.api
rename to : Termux_API.apk
-----------------------------------------
from Play Store...  https://play.google.com/store/apps/details?id=com.termux.api

Termux:Boot http://apkforandroid.org/com.termux.boot/33925901-termux:boot-0.3/
rename to : Termux_Boot.apk
------------------------------------------
termux:boot not stable.. for now start >sshd manually.. 

SuperSU     SR5-SuperSU-v2.82-SR5-20171001224502.zip
https://download.chainfire.eu/1220/SuperSU/SR5-SuperSU-v2.82-SR5-20171001224502.zip?retrieve_file=1
rename to : SuperSU.zip
------------------------
extract to Folder : SuperSU
----------------------------------
connect & only push the su file from armv7 folder.. to /system/xbin on tinker board..
Code:
adb connect 192.168.1.x
adb root
adb connect 192.168.1.x
adb remount
adb push armv7/su /system/xbin/su_SuperSU
adb shell
cd system/xbin/
cp -p su su_org          ### make copy of original su...
chcon u:object_r:su_exec:s0 su_org
cp -p su_SuperSU su      ### copy su_SuperSU over su....
chcon u:object_r:su_exec:s0 su
chmod 4750 su
exit
.. restart the tinker board....
Code:
adb reboot

Other APKs install....
-------------------
[Mobizen Screen Recorder - Record, Capture, Edit 3.6.0.28 (arm + arm-v7a):
com.rsupport.mvagent_3.6.0.28-170300654_minAPI19(armeabi,armeabi-v7a)(nodpi)_apkmirror.com.apk
https://www.apkmirror.com/apk/mobizen/mobizen-screen-recorder/mobizen-screen-recorder-3-6-0-28-release/mobizen-screen-recorder-record-capture-edit-3-6-0-28-android-apk-download/
rename to : MobizenScreenRecorder.apk
-----------------------------------------------------
from play Store...   https://play.google.com/store/apps/details?id=com.rsupport.mvagent&hl=en_GB

Turn Off Screen (Lock Screen) from Play Store..
https://play.google.com/store/apps/details?id=com.redmanit.lockscreen&hl=en_US

CPU Monitor - temperature, usage, performance
https://play.google.com/store/apps/details?id=com.glgjing.stark

AutoStart - No root... from Play Store..
https://play.google.com/store/apps/details?id=com.autostart&hl=en_GB
------------------------------------------------------

Note.. as there is no SuperSU App installed yet.. to get root in Termux.. you need pc/laptop/mac/(vm) on same LAN network as tinker board..
so that you can ssh into.. and adb back into root shell on the tinker board....
Code:
adb connect 192.168.1.x
adb root
adb connect 192.168.1.x
adb shell
cd /system/xbin
su --daemon &
--------------------------------
[1] 4053
rk3288:/ #    ### do not press the Enter key again...
#### remember not to press enter key more than once..  as you want su running as daemon...

..then.. open new session of Termux.. 
and use > tsu to drop into root termux shell or 
> tsudo to run as root ;-]... what ever.....]]]......
-------------------------------

Note.. when you adb back into root shell you can Load libraries from Termux...
Code:
rk3288:/ # export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
and then run Linux programs.. try..
Code:
rk3288:/ # ./data/data/com.termux/files/usr/bin/busybox
to run htop...
Code:
rk3288:/ # ./data/data/com.termux/files/usr/bin/htop

..this also works...
Code:
rk3288:/ # su --preserve-environment -c LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib PATH=/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/data/data/com.termux/files/home/kPATH/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets HOME=/data/data/com.termux/files/root PS1="\[\e[31m\]\s\[\e[m\]:\[\e[31m\]\v\[\e[m\]][\[\e[31m\]\u\[\e[m\]]@\w:\[\e[31m\]#\[\e[m\]" /data/data/com.termux/files/usr/bin/bash -l
bash:4.4][root]@/:# htop
..just need to work out how to set prompt PS1$  #]]]......


------------------;-]...
hope it helps,
k.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)