<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sriteja Sugoor</title>
    <description>The latest articles on DEV Community by Sriteja Sugoor (@sriteja777).</description>
    <link>https://dev.to/sriteja777</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F425505%2Fb93b01aa-e782-40aa-97c4-ff2f6686689f.png</url>
      <title>DEV Community: Sriteja Sugoor</title>
      <link>https://dev.to/sriteja777</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sriteja777"/>
    <language>en</language>
    <item>
      <title>Bypassing Realme App Lock</title>
      <dc:creator>Sriteja Sugoor</dc:creator>
      <pubDate>Sat, 24 Dec 2022 10:57:49 +0000</pubDate>
      <link>https://dev.to/sriteja777/bypassing-realme-app-lock-3p12</link>
      <guid>https://dev.to/sriteja777/bypassing-realme-app-lock-3p12</guid>
      <description>&lt;p&gt;If you have set app lock on your Realme, Oppo or Oneplus device and forgot the privacy password (app lock password) then this is for you.&lt;/p&gt;

&lt;p&gt;First try to reset the password using the methods mentioned in &lt;a href="https://www.realme.com/in/support/kw/doc/2060708" rel="noopener noreferrer"&gt;realme website&lt;/a&gt;. If any of them works then great, else read the below.&lt;/p&gt;

&lt;p&gt;You need a laptop to do this. First connect your device to laptop through adb by following &lt;a href="https://www.androidpolice.com/install-and-use-adb-on-windows-mac-linux-android-chromebooks-browser/" rel="noopener noreferrer"&gt;this&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Also Disable Permission Monitoring from developer settings in Phone.&lt;/p&gt;

&lt;p&gt;Then you can run this commands to bypass.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;adb shell pm disable-user -k com.oplus.safecenter
adb shell pm clear com.oplus.safecenter
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now try to open the app that you locked. If that didn't open, try using a different launcher. It will open &lt;/p&gt;

</description>
      <category>learning</category>
      <category>extensions</category>
    </item>
    <item>
      <title>Building AOSP on macOS</title>
      <dc:creator>Sriteja Sugoor</dc:creator>
      <pubDate>Sat, 09 Jul 2022 12:57:28 +0000</pubDate>
      <link>https://dev.to/sriteja777/building-aosp-on-macos-2473</link>
      <guid>https://dev.to/sriteja777/building-aosp-on-macos-2473</guid>
      <description>&lt;p&gt;In this post, we will see how to build Android source code on macOS. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disclaimer&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Building AOSP on Mac is not officially supported. So we may not be able to build all tools.&lt;/li&gt;
&lt;li&gt;The steps mentioned below are for macOS Monterey. For other versions, steps might be similar only. &lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 1: Setting up File system
&lt;/h3&gt;

&lt;p&gt;The default file system on macOS 10.13 and later which is called Apple File System (APFS) is case-insensitive. But to build AOSP, we need a case-sensitive file system. If you try building on default file system, the build will fail to start with the below message.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

20:48:42 You are building on a case-insensitive filesystem.
20:48:42 Please move your source tree to a case-sensitive filesystem.
20:48:42 ************************************************************
20:48:42 Case-insensitive filesystems not supported


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;So, first we need to create a case-sensitive file system, before we can start downloading the code.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;code&gt;Disk Utility&lt;/code&gt; 
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa1bjxsb9kle95ex2w6gi.png" alt="Disk Utility"&gt;
&lt;/li&gt;
&lt;li&gt;Click on &lt;code&gt;+&lt;/code&gt; icon in the top menu.&lt;/li&gt;
&lt;li&gt;Give any name you want to the volume and select APFS (Case-sensitive) in the format section and click on add.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fglzbqfmmpvclqozlykvv.png" alt="New Volume Popup"&gt;
&lt;/li&gt;
&lt;li&gt;Optionally, you can customise size options if you want. But beware that, you need at least 130GB of space on you system in order to download the source code.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 2: Downloading the source
&lt;/h3&gt;

&lt;p&gt;So, android team has made an utility called &lt;a href="https://gerrit.googlesource.com/git-repo/" rel="noopener noreferrer"&gt;repo&lt;/a&gt;, which helps in managing multiple repositories. We will be using this utility to download android source.&lt;/p&gt;

&lt;p&gt;Install &lt;code&gt;repo&lt;/code&gt; using &lt;code&gt;brew&lt;/code&gt;.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

❯ brew install repo


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Create and base directory inside the new volume, where you want to clone all the repos required for building inside the volume you created in first step. Replace &lt;br&gt;
&lt;code&gt;&amp;lt;volume_name&amp;gt;&lt;/code&gt; with exact name.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

❯ cd /Volumes/&amp;lt;volume_name&amp;gt; 
❯ mkdir source
❯ cd source


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Now let's initialise repo. This will create a &lt;code&gt;.repo/&lt;/code&gt; directory with Git repositories for the Repo source code and the manifest files which specifies where the various repositories included in the Android source. Also the below command will ask you for your name and email if you haven't already set it in git config&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

❯ repo init -u https://android.googlesource.com/platform/manifest
Downloading Repo source from https://gerrit.googlesource.com/git-repo
remote: Total 7372 (delta 3971), reused 7372 (delta 3971)
Downloading manifest from https://android.googlesource.com/platform/manifest
remote: Finding sources: 100% (98897/98897)
remote: Total 98897 (delta 31617), reused 98888 (delta 31617)

Your identity is: Your Name &amp;lt;email&amp;gt;
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialised in /path/to/folder/
If this is not the directory in which you want to initialise repo, please run:
   rm -r /path/to/folder/.repo
and try again.


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Now clone the source. Also remember to pass the &lt;code&gt;-c&lt;/code&gt;, it will tell repo clone only master branch, else it will try to clone all the branches. Optionally you can pass the &lt;code&gt;-j&lt;/code&gt; flag to specify number of threads for faster cloning.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

❯ repo sync -c -j8


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Note that the above step will take time to download and check out, depending on your network bandwidth and processing speed of your system. You will get the below message once finished. &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

repo sync has finished successfully.
/usr/local/Cellar/python@3.10/3.10.5/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 17 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;If you did get the above message, then congrats 🥳 you have completed the most time taking step. But due to some issue, if it failed then try out the &lt;a href="https://source.android.com/setup/build/downloading#troubleshooting-network-issues" rel="noopener noreferrer"&gt;Troubleshooting steps&lt;/a&gt;. Still not resolved? then comment below, will try to resolve it. &lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Environment setup and build configuration
&lt;/h3&gt;

&lt;p&gt;Before, we can start the build, we need to some configuration steps.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Commands Setup&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Android source offers some helper commands for building, we can add them to our path in current session with below command.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

❯ source build/envsetup.sh


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;You can use the &lt;code&gt;hmm&lt;/code&gt; command to list all the helper commands that are added.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Selecting Build target&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We can select the build target, i.e for which product and architecture we want to build for using the &lt;code&gt;lunch&lt;/code&gt; command. Just run lunch without any arguments, it will show you some of the available configurations.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

❯ lunch

You're building on Darwin

Lunch menu .. Here are the common combinations:
     1. aosp_arm-eng
     2. aosp_arm64-eng
     3. aosp_barbet-userdebug
     4. aosp_bramble-userdebug
     5. aosp_bramble_car-userdebug
     6. aosp_car_arm-userdebug
     7. aosp_car_arm64-userdebug
     8. aosp_car_x86-userdebug
     9. aosp_car_x86_64-userdebug
     10. aosp_cf_arm64_auto-userdebug
     11. aosp_cf_arm64_phone-userdebug
     12. aosp_cf_x86_64_foldable-userdebug
     13. aosp_cf_x86_64_pc-userdebug
     14. aosp_cf_x86_64_phone-userdebug
     15. aosp_cf_x86_64_tv-userdebug
     16. aosp_cf_x86_auto-userdebug
     17. aosp_cf_x86_phone-userdebug
     18. aosp_cf_x86_tv-userdebug
     19. aosp_coral-userdebug
     20. aosp_coral_car-userdebug
     21. aosp_flame-userdebug
     22. aosp_flame_car-userdebug
     23. aosp_oriole-userdebug
     24. aosp_oriole_car-userdebug
     25. aosp_raven-userdebug
     26. aosp_raven_car-userdebug
     27. aosp_redfin-userdebug
     28. aosp_redfin_car-userdebug
     29. aosp_redfin_vf-userdebug
     30. aosp_slider-userdebug
     31. aosp_sunfish-userdebug
     32. aosp_sunfish_car-userdebug
     33. aosp_trout_arm64-userdebug
     34. aosp_trout_x86-userdebug
     35. aosp_whitefin-userdebug
     36. aosp_x86-eng
     37. aosp_x86_64-eng
     38. arm_krait-eng
     39. arm_v7_v8-eng
     40. armv8-eng
     41. armv8_cortex_a55-eng
     42. armv8_kryo385-eng
     43. beagle_x15-userdebug
     44. beagle_x15_auto-userdebug
     45. car_ui_portrait-userdebug
     46. car_x86_64-userdebug
     47. db845c-userdebug
     48. gsi_car_arm64-userdebug
     49. gsi_car_x86_64-userdebug
     50. hikey-userdebug
     51. hikey64_only-userdebug
     52. hikey960-userdebug
     53. hikey960_tv-userdebug
     54. hikey_tv-userdebug
     55. poplar-eng
     56. poplar-user
     57. poplar-userdebug
     58. qemu_trusty_arm64-userdebug
     59. rb5-userdebug
     60. sdk_car_arm-userdebug
     61. sdk_car_arm64-userdebug
     62. sdk_car_portrait_x86_64-userdebug
     63. sdk_car_x86-userdebug
     64. sdk_car_x86_64-userdebug
     65. silvermont-eng
     66. uml-userdebug
     67. yukawa-userdebug
     68. yukawa_sei510-userdebug

Which would you like? [aosp_arm-eng]
Pick from common choices above (e.g. 13) or specify your own (e.g. aosp_barbet-eng):


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Select any configuration that you would like to build for.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Building
&lt;/h3&gt;

&lt;p&gt;You can simply run the &lt;code&gt;m&lt;/code&gt; command to build.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

❯ m


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;And it will start the build for the target we specified. You can also specify number of threads for the build with &lt;code&gt;-j&lt;/code&gt; argument&lt;/p&gt;

&lt;p&gt; &lt;br&gt;
 &lt;/p&gt;

&lt;p&gt;Thank you for reading till the end. It is just the first part of the whole series, in next parts we will look into Soong Build system, building for different architectures, cross compiling and more. Stay tuned!!&lt;/p&gt;

&lt;p&gt;Also let me know the feedback for this article in the comments!&lt;/p&gt;

</description>
      <category>android</category>
      <category>macos</category>
      <category>kernel</category>
    </item>
  </channel>
</rss>
