Changing and building parts of CyanogenMod - android

I have an assignment to take source code of CyanogenMod for certain device, to do some changes (at first, to disable tethering, set custom launcher that my team made, etc...). I managed to get source of CM, rebuilt it and flashed the device with it. I didn't use LineageOS deliberately, since its version is very unstable for this device.
Now, I wish to make some aforementioned adjustments and build ROM with these changes, could someone please point me to the right direction how to achieve it? I couldn't find anything similar to this on the net.
Thanks!

If it's not too late:
you need to find your phone here :
https://wiki.lineageos.org/devices/
and then go to https://wiki.lineageos.org/devices/addison/build
(change addison by your device codeName, which you can find in the "DEVICES" part of this website)
you will find all instructions to build lineageos from sources for your phone, you can then modify these sources to add your custom launcher, disable anything you want...
Cheers

Related

How to write modified U-BOOT in to android firmware

I have a TV box on which my remote did not work.
I was able to solve the problem with all the buttons, except to add the power button.
i.e. the console could turn off, but I can't turn it on with the new remote.
After a little digging, I found information that the power button can only be added via u-boot.
I found the source code here
I was able to compile it, but I don't know how to add it to the console firmware.
Here I have a few questions in this regard.
How to add u-boot to a ready-made firmware image?
How do I prepare AOSP for the prefix I use? As I understand it, my manufacturer does not upload the source code for it, but 1000% of it is based on the Amlogic processor.
I will be glad of any information, books or videos on which I can advance on this issue.

How can I get Android-Go source code instead of AOSP

I'd like to make Android Go instead of using AOSP.
But have no information except this site (https://www.android.com/versions/go-edition/)
Please let me know any hint or contact points if any.
Can I compile Android Go from my AOSP code?
Do I need to contact google person to get some right to handle Android GO source code?
Thanks
As long as I know Android Go Edition is a Trimmed down lighten version of AOSP to run on Low-end chips with more optimization in code than AOSP which are tends to run on High-end SoC's but that is done all on Manufacturers side Google don't provide this.
But you can contact Google to know more about it and If you are planning to Launch a device.

Messed up/garbled strings in settings when cherry picking feature into LineageOS

I'm new to ROM development and decided I wanted to add a feature to my LineageOS builds to change the height of the back gesture. I've found that cherry picking these 2 commits into frameworks/base and packages/apps/Settings and resolving some conflicts successfully gets the feature into my ROM.
https://gerrit.omnirom.org/#/c/android_frameworks_base/+/35407/
https://gerrit.omnirom.org/#/c/android_packages_apps_Settings/+/35408/1
After building the feature seems to work just fine, but I'm getting this weird issue where the strings in my settings app don't make any sense. The picture below should clarify the issue I'm experiencing.
For example, where it says "smallest width" it should say "Developer options".
https://i.stack.imgur.com/efiTJ.png
I know this isn't much to go of off, but I'm just very confused. The cherry pick was applied almost without issues and I have no idea how it could be affecting these strings. Any insight would be highly appreciated.
For anyone running in to this issue, this was fixed by doing a clean build. Do this by removing out/ directory or running make clean.

Android game crashed after displaying unity's splash screen

I found this question on different forums but they didn't helped me to find solution of my issue. I had port unity(5.4) game on my android device (OS 4.4). When i opened the game it crashed after displaying unity's default splash screen. I wonder, it was working fine on unity's editor but didn't worked well on device.
Here is the logcat file link. Please let me know if i can provide any additional information that may help to track the issue. Many thanks.
Regards,
Ali
90% it's native plugins. Try to remove all your native android plugins. You can find them under Plugins/Android folder. You also need to remove all links or scripts that uses those plugins. Don't forget to make a back up. If your app won't crash, replace them with some others or connect with plugin development support.
I found the solution. I followed following steps.
Solution
Go to 'Player Settings' -> 'Other Settings'. Uncheck Auto
Graphic Api. Remove 'OpenGLES2' from list.
Test your game on better android device. In my case i tested on Samsung Glaxy S5.
If solution doesn't work
Remove all objects from scene. Port the project and test, if that
works, it means you need to remove unnecessary objects from scene
that need a lot of render power to load on mobile device.
Make sure your Android SDK is uptodated a long with JDK.
Just make sure Virtual Reality support is unchecked

Show "All Instances" missing in eclipse debug view

few days ago, when I was debugging an Android project under eclipse I've found some great functionality: "All instances..." and "Instance count". I wanted to share my findings with rest of my colleagues, but none of them had this functionality in their eclipse install (we all use eclipse 3.7).
What's even more weird now I'm also missing this functionality.
As far as I can tell this functionality is build within eclipse from version 3.3 and available to projects using Java 1.6 and above as mentioned here and here (we're using 1.6).
See bottom of this link to see what functionality I'm talking about. It even has it's own shortcut in options (ctrl+shift+n) so I think there must be a way to use it again.
I was looking for it while debugging and while the debugger was in "stopped" state.
Anyone can help me put eclipse in right view/perspective/state to see this functionality again?
EDIT
Here is the documentation entry from eclipse help page: link
Thanks for any suggestions,
kajman
After some more digging I came to following conclusion:
DalvikVM does not support "instance retrieval".
On eclipse help page mentioned in EDIT section it written:
This command is only available if the Java virtual machine you are currently using supports instance retrieval.
Maybe there is an option to enable this option in DalvikVM, but I doubt it unfortunately.
Also when debugging on phone "Drop to frame" functionality is missing.

Categories

Resources