14

(Dev)Life in the past 12 hours

Oh boy have the last 12 hours been a roller coaster ride for me. Noob me decided to "compile" AoSP for my device to get a taste of how custom ROMs are built from source. Overall it was fun but the errors were a very good excercise for googling, SO. Couple stuff I learnt ( possibly useful for anyone who comes here )
* The shebang line ( #!/usr/bin/env python ) on my system translated to Python 3.7 environment instead of the expected Python 2.7. Best solution I think to avoid confusion is to create a python 2.7 environment and source it.
* Get your trees right. A jar file called WfdCommon.jar ( apparently known as wifi-display common ) was the cause of several hours of hunting the fault. My vendor tree somehow didn't have this file so dex2oat was borking out like mad. I'm still amazed how I figured this one out almost by myself. ( Basically I had to check every file included in the boot class path, and find the odd one )
* I wasted a lot of time in finding the right files to change version numbers and all. Maybe I didn't search XDA properly for a guide ?

Overall it was a fun experience. Also if anyone's experienced in this area could you share resources to learn more about custom ROM development? Specifically on the tweaking part where you mix features from different ROMs to make a great ROM ( like AoSP extended or Pixel Experience ). All I could find were on the zips and not on sources.

Comments
  • 6
    Man, that ASCII art (AOSP EXTENDED?) sucks
  • 1
    @asgs yeah. It's AoSP Extended.
  • 1
    @Haxk20 Thanks 😀. I think over the weekend that's what I'll try to do.
  • 0
    @boopboop the name reflects what I was doing 😆
  • 1
    Just noticed you were compiling for potter... I'm currently running ArrowOS on mine, but if you ever need a tester once your ROM is finished just hit me up 😅
  • 0
    @flocke hey. Thanks for that. Had to downgrade because com.qualcomm.qti.performance was not registered or something. Everything using web view was borking out. Found https://stackoverflow.com/questions... but didn't help much. Let's see what can I do.
  • 0
    @silverstar could you please tell me how you fixed the WfdCommon issue? I commented it out in one of the makefiles, but obviously not disabling features would be preferrable. Any help is much appreciated. Thanks!
Add Comment