Profile cover photo
Profile photo
Uki D. Lucas
1,297 followers
1,297 followers
About
Posts

Post has attachment
Android screen size and dpi
Often, when working on particular device, you need to find out exact screen dimensions and dpi: uki   08:04 ~ $ adb shell dumpsys window displays | grep dpi     init=1440x2880 560dpi base=1440x2880 476dpi cur=1440x2880 app=1440x2737 rng=1440x1357-2737x2654
Add a comment...

Post has attachment
hfsx
Resizing Mac APFS 500Gb to 350Gb and creating HFSx (case-sensitive) for AOSP building. $ sudo diskutil apfs resizeContainer disk0s2 350g hfsx REPO 0b http://www.peachpit.com/articles/article.aspx?p=1403238 https://www.macobserver.com/tips/deep-dive/resize-y...
Add a comment...

Post has attachment
Mac case-sensitive
Mac, for some idiotic reason is not case sensitive anymore: $ echo 'You should see this assigned to abc' > abc ; echo 'and not only this printed twice' > ABC ; cat   abc ABC and not only this printed twice and not only this printed twice In order to work wi...
Add a comment...

Post has attachment
Android preview
Installing preview of Android Tiamen (Siberian fish, the picture shown below) on Pixel 2 XL. Factory Images: https://developers.google.com/android/images#instructions 8.1.0 (OPM1.171019.021, Mar 2018): https://dl.google.com/dl/android/aosp/taimen-opm1.17101...
Android preview
Android preview
ukitech.blogspot.com
Add a comment...

Post has attachment
Mac Screenshots
To change the default saving location of Mac Screenshots (Desktop) you run the following in the Terminal, I also added the first command to ~/.bash_profile: $ defaults write com.apple.screencapture location ~/Screenshots $ killall SystemUIServer
Add a comment...

Post has attachment
repo reset
Sometimes you have to get back to the pristine sync with your repo, I created a function in my ~/.bash_profile for that. # REPO HEAD updated: February 13, 2018 function repo_reset() { source activate py27 cd ~/REPO/my-repo-name pwd #repo sync repo forall -v...
Add a comment...

Post has attachment
ls with sorting
The Mac/Unix "ls" command does not include sorting by file name.  To get it done I added a new function in Bash to my ~/.bash_profile # ls with sort - updated: February 13, 2018 function list() {     if [ "$1" != "" ]; then         ls -a $1 | sort     fi   ...
Add a comment...

Post has attachment
Building AOSP on Mac
To build Android on MacBookPro High Sierra, I had to overcome few obstacles. I looked up the MacOS SDK version, I am currently running: $ ls /Applications/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
MacOSX.sdk MacOSX10.13.sdk The...
Add a comment...

Post has attachment
Add a comment...

Post has attachment
xcrun
Error xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: "" unsupported Solution: Re-install XCode from App Store (~20 minutes)
Add a comment...
Wait while more posts are being loaded