[ROM][Early pre-alpha] AOSP ICS 4.0.4_r2.1 for DS5. - Streak 5 Android Development

PREFACE: This ROM is not intended for everyday use and posted mainly for experienced users and streak-oriented developerss to evaluate it and collaborate on bug resolution and further development. If you expect it to fit any particular purpose - answer is: "No, not yet."
People who really helped to make this possible:
985hPaKicK - author of original cm9 overlay files and pricey patches for DSC kernel.
Sergei Lyubshin (n0p) - team lead of DSC Phoenix kernel, which is used (in it's ICS-que incarnation) to power up this ROM.
Marc Alexander (marc1706) - original kgsl3.8 backport is taken from his kernel HD2 ics and used to provide support for ICS adreno drivers. Also, Marc's advices on changes in hw init procedures related to new kgsl were priceless. Marc, you're da man!
TeamICS - for excellent guides on installing android build environment.
Team Evervolv and CyanogenMod teams - for their hardware overlays.
Currently working:
Boot
Adeno drivers used to provide hwaccel (for real now, surfaceflinger no longer eats 100% of cpu all the time)
GSM subsystem - rild is partially working (no sim pin prompt)
Bluetooth - seem to work. Phone is able to pair to BT headset and output sound thru it (OP's Nokia's BH-103 - tested)
Wifi - partially. Signal strenght not being displayed at statusbar
Touchscreen - working.
Charging - works partially. Phone charges, reports battery percentage, but not voltages.
Sound output - works (No headset icon in statusbar is normal for stock sources.)
Data usage collecting.
UMS
Known not to work:
Everything that's not listed as working.
Other bugs observed by OP (to be extended with ROM users' feedback):
No mobile data reported by several users. OP is unable to reproduce it, so it's being investigated in "blind" mode at the moment. Currently known rild refuses to establish datacall because it thinks that user has no data subscription. EDIT: there's report that removing PIN makes things to work. Not perfect, yes, but worth a try. Report your results, please.
Scanning for available cellular networks is broken.
Extremely high load average (sometimes, seem to be caused by installed applications)
Development related links:
Kernel source: https://github.com/kibuuka/dsc-team-kernel-project/tree/ics - fork of DSC Phoenix kernel that's being used in this ROM. ics branch will be pulled back to main DSC kernel project source tree after n0p's return from vacation.
Device overlay based on hPa's code, changed to build against AOSP source tree instead of CM9's.
Download links: ROM itself - Updated Jul. 14th 13:53MST (changes: see post #2)
Alternative build - OBSOLETE Updated Jun. 28th 05:16MST. Temoporary solution for webkit rendering glitches.
gapps: update-Gapps-ICS-20710.zip See TheManii's post for details Mirror
root: Superuser.zip recommended way to gain a root on this ROM (By TheManii) Mirror
Screenshots: posted earlier in General forum *click*
Installation precautions: Usual ones. ROM is pre-alpha, so nandroid backup is your natural choice in this case . Factory reset from recovery menu is suggested (dalvik cache deletion is optional but recommended for first boot - caches will be rebuilt anyway).
Updating from previous builds of this ROM:
Flash new version
Flash gapps
Flash Superuser.zip (if applicable)
Last words: Feel free to provide additional details and feedback as you test it out. This project is amied to provide a stable base for future streak development. Once we have stable AOSP with full hw support - we have nice shortcut for porting anything that's not AOSP.
P.S. OP is not really experienced in ROM hacking and modding - all tips related to optimisation are greatly welcomed - for everyone's benefit

Reseved
Changelog (New records are displayed first):
Jul. 14 (built and uploaded for internal testing Jul. 13)
kernel: hPa's "force speaker on" patch.
system: Multiple internal changes in camera-related stuff (just for ther record. camera is still unfunctional)
build.prop: mobiledata.interfaces=ppp0. ro.telephony.ril.v3=datacall,signalstrength,facilitylock,icccardstatus,skipbrokendatacall
Jul. 11
kernel: reverted io scheduler back to cfq.
kernel: default cpu governor: smartass2.
kernel: screen rotation patch from updated Phoenix branch. Credits to hPa and n0p. hw.sw.rotation=180 is obsolete now.
system: *finally* there's working (for OP, please do extensive testing and report back) usb mass storage. Cm9's vold and LegacyUsbSupport (along with messing with rest of source) did a trick.
system: removed BasicSmsReceiver.apk from being built and installed. Double sms notifications should be gone.
Jul. 02
kernel: enabled iptables support (needed for mobile quota setting).
kernel: new cpu governors added. feel free to play with them and share your experience.
kernel: added new io schedulers. new default is sio (matter of change).
system: mobile quota setup is functional as of now.
system: built with BOARD_AAPT_PREF_CONFIG := hdpi mdpi. 160dpi users - please check if dialer problem is still present.
interface: added two previously unincluded LWPs.
Jun. 30
Resolved FCs in kgsl shown in 0630 posted earlier. Please re-download. Filename should read as dell_streak-ota-eng.den.063012-2.zip
kernel - Added support for quota2. Mobile data limits will work in next release (still need to figure if iptables binary is needed for this to function)
OpenGL-disabled build is put on hold and won't be updated since we have figured most of opengl-related problems now.
Fixed webkit rendering issues. (Gmail renders pages correctly but seem to "hide" message content on scroll. Anyone aware of gmail app bugtracker presence? Share a link, please UPDATE: not present at clean install. Please check if dalvik cache fleanup fixes it for you. If not - try factory reset) Please note browser is built with OpenGL rendering disabled by default for OP's testing purposes. This will be changed in next build.
Multimedia libs being built from sources now.
Working video in YouTube as result
Lots of Qualcomm-related patches in OpenGL-subsystem (selected parts of frameworks/base taken from mikegapinski's PolishBlood repo (Great job, Mike), lots of patches are from CAF, source was additionally patched (proper ro.sf.hwrotation=180 support, gradient fix, some more) to work correctly on DS5)
Removed some unfunctional components from being built. Factory reset recommended for full removal if updating from previous builds of this ROM.
Flipped thumbnails in recent apps issue - fixed. Re-enabling...
kernel: re-enabled per-process pages in kgsl (default setup).
kernel: default io governor set to ondemand.
Jun. 28
0627 rebuilt with new flags. no changes in code. hdpi resources are included and used by default.
added debug.egl.swapinterval=0 to build.prop
Added Superuser.apk (non-functional at the moment. Use Superuser.zip from TheManii's thread for now)
Jun. 27
Partial fix for mobile data. Searching for available networks known to fail. EDIT:SIM PIN request - still no love. Please test everything you can and report back.
Data usage logging is working now. Necessary patches applied to kernel source.
Surfaceflinger has dithering enabled by default. Smooth gradients ftw.
Added missing LWPs (requested by TheManii)
Added alternative build (it's being built with USE_OPENGL_RENDERER set to false). It has no webkit rendering bug at cost of lesser interface attractiveness.
Tethering options re-enabled. Check which are worked for you and report back, please.
Jun. 23
Disabled per-process page tables in KGSL driver (for now, matter of reversal on test results)
Surfaceflinger problem resolved. Interface is pretty smooth now
Enabled PF_KEY support in kernel (in resolution of pkoning's bug report)
Jun. 21
new kernel build - ipv6 is enabled - without this google services fail to operate properly
added missing apps (Messaging, Camera (broken) and several others) to build set
added some findings to build.prop, removed libGLES_android.so - overall interface performance is slightly improved, yet we're sure we're running with hwaccel now
Jun. 19
sound is partially working now (speaker and BT headsets. wired headsets/headphones not working yet)

if i not mistaken... there is ICS apps rip/port for messaging... i think i have seen that on market...

No screenshots?

john9 said:
No screenshots?
Click to expand...
Click to collapse
i believe OP already included it on the first post...

This is the Great Start !!!

john9 said:
No screenshots?
Click to expand...
Click to collapse
I think these are the screenshots
http://forum.xda-developers.com/showpost.php?p=27537842&postcount=46
What a great start!

I just tried it for a while. It feels awesome to have gotten this far. The ROM is quite laggy as the OP has already mentioned but I was able to get around. I was unable to make a call got an error about sim card not being there. I didn't have any 3G connectivity either. And didn't have any Wi-Fi to try since I am office right now. Since I did this in a hurry I forgot to factory reset but didn't get any FCs. I am upgrading from CM 7.2. None of the google apps seem to work besides youtube but all other apps started without any issues. Looks very good though it's almost like I can smell ICS now.

I have a spare Streak so am happy to reserve it for testing. Let me know if I can do anything specific.
I can confirm that wifi works.
I have tried setting up my Google account but get "Unfortunately, Exchange Services has stopped"
Browser works after a fashion but is not usable.
I can dial outgoing call and the receiving phone rings but no sound. Likewise for incoming calls, my Streak rings but I can't hear the caller and the caller can't hear me.
I seem to have trouble setting up an APN.
Sorry if all of this is already known. I still can't believe that I am looking at Android 4.04 on my Streak.

omg!
I am so looking forward to this!
Mega-Kudos to everyone involved!

yes, this is a good start for DS5 android 4.0 .

good start!
waiting for your further work,
thanks a lot.

I use this mms.apk (from Evervolv ICS rom), push it to system app and change permission. Sms can send and receive (but it take about 1 minute to send sms). http://db.tt/DTuQO5sS
Maybe this could help, could you check this build prop patch made by @lithid and @the_plattypus to fix the red box screen.
http://db.tt/zAJ04F8a
The build prop is for evo4g sense 4.0 rom.
The camera libs by @rapmv78
http://db.tt/CiZxdJT2

How I wish I have my streak with me.
Sent from my MT27i using xda premium

nom051205 said:
I use this mms.apk (from Evervolv ICS rom), push it to system app and change permission. Sms can send and receive (but it take about 1 minute to send sms). http://db.tt/DTuQO5sS
Maybe this could help, could you check this build prop patch made by @lithid and @the_plattypus to fix the red box screen.
http://db.tt/zAJ04F8a
The build prop is for evo4g sense 4.0 rom.
The camera libs by @rapmv78
http://db.tt/CiZxdJT2
Click to expand...
Click to collapse
Yep, will look further, thanks a lot. Right now i'm trying to figure what causes gralloc to get this mad (almost sure that buffer status errors are the main reason of phone sluggishness).
Oh and btw, could you please post logcat taken while sending sms?

Oh! Yes, Yes, Yes ... =P
Will flash it wright-a-way and give some feedback
Great news ! "You've made my dreams come true" =D
Hope it'll be great and powerfull change for our DS5's =]
---
Ok, so: - WiFi - worsk
My menu LEDs are always on, even after screen time out.
Camera (from lock screen) makes device reset. [there is no camera app i think]
Can't Add any APNs
Sound want work at all
Can make incoming/outgoing call (but with no sound in my earphone/mic)
Web browser cant display pages correcly
Screen brightness want work
Gallery(phonee) want access my SD
Phone correctly downloaded time data from operator.
I would offer every possible assistance in developing the project =P
Great JOB! ...going back to DSC1.1 - ...till now.

kibuuka said:
Yep, will look further, thanks a lot. Right now i'm trying to figure what causes gralloc to get this mad (almost sure that buffer status errors are the main reason of phone sluggishness).
Oh and btw, could you please post logcat taken while sending sms?
Click to expand...
Click to collapse
Kibuuka would you take a look at CM9 for Acer Liquid?
It is almost same as DS 5.
Maybe you can use the necessary libs from that ROM to solve the issues.

Sms send and received work perfect now (maybe last time hv bad network), opera mobile browser work perfect, superuser not work well, can use root explorer but cannot use other root apps.
This is really a good start, I believe we will hv stable version soon.
Sent from my PC36100 using Tapatalk 2

I am getting some offset errors during install, tried some times downloading but still same
Sent from my Dell Streak using Tapatalk

abauer said:
I am getting some offset errors during install, tried some times downloading but still same
Sent from my Dell Streak using Tapatalk
Click to expand...
Click to collapse
These messages are not error ones. Please read this.
Sound output is working now (tested with internal speaker and BT headphones. Wired will be tested tomorrow, don't any of these around at the moment ) EDIT:New download link is live now.

Related

[UPDATED][BUILD][21.09.2010][mattc EvoLeo v1.0.1][Kernel: 2.6.32.15 #5]

mattc's EvoLeo v1.0
Note: 1.0.1 is the same as 1.0 except using older kernel to prevent blue screens and other startup issues.
This is a brand new build. I have based it on the official HTC EVO rom and tweaked it for the HD2. The rootfs will create a 1GB data image.
The EVO base is friendlier to the non-trackball phones.
Important note: after booting Haret you will notice strange lines on the screen. This is normal, be patient and it will boot. Also, you will probably need to manually enter your APN information for MMS/Mobile Data to work.
Instructions on APN settings:
1. Settings > Wireless & Networks > Mobile Networks > Access Point Names
2. Push 'Windows' button, choose 'New APN'
3. Enter all relevant information for your specific provider, you can likely google it.
4. When everything is entered, push 'Windows' key again, then 'Save'.
5. Push on the radius button next to the new APN you created, it should turn green.
What's Added that you won't get in my other build:
EVO keyboard with directional buttons
Proper HTC camera interface with working previews
Additional downloadable sense Widgets are working
Ringtones, notifications, etc. work without additional media folder (no more ringtones with your music!!)
What is working:
Louder sound over speakerphone and headset
Very stable and fast internet over PPP. Hard freezes are completely eliminated
Light sensor
Touchscreen/Gsensor Freezes Eliminated
Bluetooth Streaming Media/Phone
Wifi
Wifi/USB tethering
USB transfers
EDGE/3G/HSDPA Internet
Camera (flash is buggy)
Standard Definition Camcorder w/flash
LED Keypad Lights and Charging Indicator
No more green line in HQ YouTube
All other items working on other builds, too many to list
Known Issues:
The camera flash is premature causing dark photos in low light
You may need to enter a manual DNS address when using WIFI tethering
There are menu items for 4G. The hardware doesn't support 4G, they will fail.
Notification led is flaky, works at times, not at others. Don't rely on it.
Tips:
Use SetCPU for better battery life.
Turn off live wallpaper for better performance and battery life.
I have included a Task Manager. Learn to use it religiously to improve battery life.
Other Notes:
CPU scaling is enable by default without SetCPU. This kernel cannot be overclocked.
I have included Astro File Manager as well as a Task Killer.
Installation Instructions:
Unzip the contents to your SD card. All of the files should extract into a folder named "Android".
Use an autoloader or, in Windows Mobile, browse to the Android folder on your SD card and run CLRCAD.exe, then Haret.exe.
Let Android boot. The first boot is always the longest and larger data sizes require longer times.
Enjoy Android.
DOWNLOADS: http://www.multiupload.com/2OG2HRRB8S
V1.0.1
If you don't have any ringtones or notifications, download this: http://www.megaupload.com/?d=ZZBUXPK2
Unzip it into your Android folder.
Kernel Sources (note: nothing below is required for you to run Android. Everything listed here is already included in the download).
The latest kernels and modules can always be found here: http://oe.netripper.com/files/htcleo_autobuild_evo_tree/
The autobuild dated 20.9 was used in this build.
Thanks to all of the devs working on kernel - Cotulla, dcordes, gauner1986, markinus, ElBartoME, etc. Also, thanks to Darkstone, Cass, and many others for their great support.
Also, thanks to all the folks on #htc-linux and #htc-linux-chat!
As always, donations are appreciated but not required.
Reserved for change log...
Thanks for ur effort, downloading now!
and time to get a new rom =)
Awesome!!!
Can't wait to try this!!
Thanks, trying this build out and will report back
been waiting for this for 20 days thanks man, you rock!
Iguess I'm the first to download and comment.luv your work
Sent from my Desire HD using XDA App
thx u i think ur bulid is stablest
edit 21.9.10
Quadrant score - 1350 after few tweaks
stablest i ever see so far
battery - 1.5%ph screen off [4 hours test] setcpu profile
very responsive no lags [ changing between apps + load cpu nothing stop it ]
thank you will try when get home. Finally Light Sensor <--have been waited for long time.
dlding hope it works as good as hd build... or better
Thanks a lot... downloading now!
Touchscreen/Gsensor Freezes Eliminated
Click to expand...
Click to collapse
I require a dose of this instantly, just for that 1 point alone
Thank you very much for you efforts
Battery
Is there Extended battery support. Didn't say there was so assuming no.
And if I use michy R11 will I lose other features?
BTW MattC has alot of manfection friends around here. Great Builds!
Jwatt0918 said:
Is there Extended battery support. Didn't say there was so assuming no.
And if I use michy R11 will I lose other features?
BTW MattC has alot of manfection friends around here. Great Builds!
Click to expand...
Click to collapse
The kernel is from GIT so no ext batteries. Michy's EVO kernel should work, not sure about the Desire kernel though.
Thank you so much.I'll trying your build out this week and response result.
Thanks again your hard working.
Forgot to note, you will need to enter APN info manually for MMS/Mobile data to work. Sorry for the inconvenience
getting a blue screen on boot up, is this normal for the build?
you said
"You may need to enter a manual DNS address when using WIFI tethering"
Where do you enter this DNS? and what dns numbers to put in?
caliente said:
getting a blue screen on boot up, is this normal for the build?
Click to expand...
Click to collapse
Oh yeah, it is. Keep trying, it will boot.

[ROM] SuperOSR NexusOne base [email protected] v2.4.0 (Gingerbread 2.3.7)

This is a thread for the Nexus One SuperOSR ROM. This ROM is descended from the SuperAOSP ROM. It does not appear SuperAOSP will be further developed, the last version was v8.6. That xdaforums thread is here:
http://forum.xda-developers.com/showthread.php?t=966635
I value the "Super" line of ROMs because they have been rock stable, have built in Apps2SD, many CM additions, and good battery life.
The primary forum for this ROM is a Spanish one, called movilzona.es. Anything posted here from that forum has been run through google translate, with mixed results. If a native speaker would like to help correct some of these translations, great!
I do not have any say or input into the development of this ROM. I obtained permission of the ROM cook (nelo360), who makes the Nexus One version, to post information about it here. He has explicitly stated he cannot provide any support other than on the original Spanish forum. Of course, the forum community will try to help each other out. I will try to update new releases here.
All credit of course goes to nelo360 and the rest of the development team, [email protected]
The original thread on movilzona.es is here:
http://www.movilzona.es/foro/superosr-nexusone-base-superte-gingerbread-t5882.html
The following is directly from their forum, translated poorly:
Message Super @ Take it and accepted by the group SuperTed @ m.
Disclaimer:
NOT going to give any support to this ROM from any forum other than this one (movilzona.es), this is it is very common for people to hang it in another forum and then have to be looking where it hung in addition to the main forum and I can not respond to external requests of this kind, because I can not be everywhere.
It's funny to talk over the ROM from elsewhere, since the main from which it hung, plus you have to think that this would not be possible if there were forums like this, from which terminals to lend me all enjoy ROMS varied. For questions, NO is posted in HTCMANIA because this forum was banned for posting ROMS here.
For any questions of why this resolution, since many people keep asking me from twitter, because I hang on HTCMANIA ROMS can see the explanation here:
http://www.movilzona.es/foro/superatmel-f73.html
Click to expand...
Click to collapse
Install Notes
SuperOSR for Nexus One AntiWipe
- Clarification and instructions
Once you start, leave the phone 3 to 5 minutes at rest so it can configure itself on first boot. The LED will shine blue through this period. Once it turns off, you can start using the phone.
IMPORTANT App2SD will not turn on without restarting the phone at least once.
Can be activated from: SupSetup/Options/App2SD and LinuxSwap/Activate App2SD
If you want to install extra apps from SupSetup is important to do before you set google account, this way, when we install any application market will be downloaded automatically apps we select the SupSetup.
If you have problems after installing, before blaming the ROM, try to install it with full wipe.
DOWNLOAD from here:
v2.4.0
http://goo.gl/htXpe
v2.2.0
http://goo.gl/iJpoi
v2.1.0
http://goo.gl/KfT2U
Update to flash from the recovery that we restore the original source in the lock screen:
http://goo.gl/vX4Eo
Click to expand...
Click to collapse
<I don't know what that last sentence is supposed to mean>
I recommend you skip google account login the very first time you install. Configure the ROM first, turn on apps2sd if you wish (it will auto-reboot), then do your google login. Otherwise, it will start auto-downloading all your apps from market, and generally make a huge mess.
Screenshots:
Changelog
Changelog v1 SuperOSR AW *
- Based on Android 2.3.5
- All improvements CyanogenMod
- New kernel 2.6.38.8 redstar
- Added ADWLauncher as default launcher
- New visuals
- many internal improvements and bug repaired
v2.0.0
- New boot animation
- New Wallpaper
- New graphical look
- Updated some apps
- Fixed the bug of random color of the trackball
- Restructuring wireless menu
- Modified apn Pepephone (I think this is a mobile service provider in Spain)
- Internal improvements and optimizations
v2.0.2
- Blue LED activity during installation. (Expect to be off to start playing)
- Removed some apps (you can install from the market)
- ADW is changed by the original launcher modified
- Increased the cache to 1024 kb sd to increase the writing speed via USB
- Compiled 2.6.38.8 kernel redstar, with the latest updates
- Improved power consumption
- Modified the graphics in different rom sites
- (CM) has rewritten part of the code led the trackball notifications
- Base CodeAurora
v2.1.0
- Based on android 2.3.7
- Added support for multiple languages ​
- New lockscreen options
- Fixed some pngs
- Several small bugs fixed
v2.2.0
- Sources synchronized (17.11.2011) Google and CM
- New battery (MIUI style) by default
- Option to take screenshots by pressing the power button for a while
- Fix that greatly improves the speed of writing on the sd (overhtc thanks for the tip)
- Reorganization and edit some menus
- New version lockscreen ring (center ring only)
- Removed some apps to make the lightest rom (can be installed from the market)
· Google Docs
· Google Plus
· Adobe Flash Player
V2.4.0
- Sources synchronized (02/12/2012)
- New animations of ICS
- New visual options lockscreen ring
- More Parts and other translations on menus
- Option to share the screenshots after transmission
- Internal optimizations
Some things I've noticed with v1, coming from a complete wipe.
Market is the older 2.3.6 version
Gmail is an older version which FCs on me. Updating to the new version works fine.
Maps is an older version.
Apparently there is a problem with notifications, from user nodnarb:
Notifications are given as normal, but when you pull down the notifications bar to select any of the notifications it doesn't acknowledge the tap.
Click to expand...
Click to collapse
Great. Any screenshoots?
Already customized my ROM after installing, so graphically it's not particularly impressive.
Basically the ROM runs ADWLauncher, so not so much to show more than that.
I'll post some shots from the settings pages.
Also, some screenshots available here from the older version. Graphically, not much has changed.
http://www.movilzona.es/foro/superaosp-para-nexus-one-por-superatmel-tolemac-t4675.html
Go to post #3. Except it will be in English =)
Been running the new version since last night. So far it's not bad. I did like the old launcher better then ADW but what do ya do....Battery life seems great so far. So far my notifications seem to work ok. Not any significant changes but maybe the subtle ones will show up with use. Too bad the only support is on a Spanish only site. I suppose we can all support it here as well to an extent....
I have been running this rom since yesterday and so far no issues at all! No notification issues or Gmail FC's here. am glad that you have created a thread there. I too am a big fan of Super line of roms. Thanks for your effort.
hackermail said:
I have been running this rom since yesterday and so far no issues at all! No notification issues or Gmail FC's here. am glad that you have created a thread there. I too am a big fan of Super line of roms. Thanks for your effort.
Click to expand...
Click to collapse
I'm glad for the thread too.
Are here any special requirements that I missed - for example, A2SD (mentioned on movilzone thread) usually entails an ext4.. could this be why my installation never worked out? It's just a hunch (I don't have an ext4).
I did have fc of gmail too - do i simply go ahead and update it from market then? I never got to test gtalk. Market is not the newer version which I suppose one can live with.
I flashed it for my wife's phone but as it never gave me any joy, i reverted to SuperAosp 8.6 which works 100%.
Galloway said:
... Too bad the only support is on a Spanish only site. I suppose we can all support it here as well to an extent....
Click to expand...
Click to collapse
If you use Google Chrome as your browser, it does a fantastic job of instant auto translating the site. I speak Spanish and can attest to its acceptable accuracy. Chrome also helped me with the Chinese on the original MIUI site.
tanclo said:
I'm glad for the thread too.
Are here any special requirements that I missed - for example, A2SD (mentioned on movilzone thread) usually entails an ext4.. could this be why my installation never worked out? It's just a hunch (I don't have an ext4).
I did have fc of gmail too - do i simply go ahead and update it from market then? I never got to test gtalk. Market is not the newer version which I suppose one can live with.
I flashed it for my wife's phone but as it never gave me any joy, i reverted to SuperAosp 8.6 which works 100%.
Click to expand...
Click to collapse
For a2sd, you can have an ext3 or ext4 partition. Mine is ext3. Any other specific problems?
Right now, I'm not seeing a big difference between 8.6 AOSP and 1.0 OSR, except for some graphical changes (the pop-up boxes look different, the thumbscroll graphic is dark instead of gray).
Actually one thing I have noticed is that my bluetooth autoconnect is not working the way it should. Before it worked okay just by changing one line in the audio.conf file in etc/bluetooth/ (set autoconnect=on). Currently experimenting.
Don't seem much difference in this ROM compared to Superaosp
i have been having some issues tho, wifi no longer works, won't connect to any networks
battery life is half that of superaosp. will try a reflash and see what happens.
I too have had zero issues. All is well here.
No partitioning of my SD card since I don't used A2SD. Just one fat32 partition.
No problems with any notifications, gmail or market.
Battery life is also very good. I'm averaging 24hrs with moderate usage with SetCPU having one state to throttle speeds down to 128-384 when screen is off.
Anyone having any issues with bluetooth connections?
I restored some bluetooth pairings with TB. Maybe should have left it alone and started anew.
Been messing with the etc/bluetooth/audio.conf file with no improvements.
Good rom. It's working well
No issues so far and my battery life is quite a bit better! I did have to manually connect Bluetooth tonight to my car but I find that happens quite often the first time I flash a new ROM...I'll monitor and see if that continues.
Figured out my bluetooth issue.
Previous, I could swear just by changing (turning on) the autoconnect=on parameter in audio.conf, I could forgo repairing/relearning my bluetooth pairings.
So I changed it after the wipe/flash, and couldn't get it to automatically pair. In fact, couldn't get it to connect at all for any duration.
After putzing around with all the other parameters, I realized I should have just changed back the original thing I had altered ("#autoconnect=on"), and it works fine now.
So, the take home lesson is, don't mess with the etc/bluetooth/audio.conf file that comes preloaded! And just re-pair whatever BT items you had previously.
xdraw said:
Don't seem much difference in this ROM compared to Superaosp
i have been having some issues tho, wifi no longer works, won't connect to any networks
battery life is half that of superaosp. will try a reflash and see what happens.
Click to expand...
Click to collapse
I too have been less impressed. Battery life I feel is either about the same or worse. (yesterday I got down to 30% by the evening, which is unheard of for SuperASOP).
The other things that have sucked has been a random reboot into recovery (WTF?!), and GPS is slower to lock.
And then to top it all off, this morning the phone was off sitting in my desktop cradle (but 100% charged, LOL). I could live with that because my T-Bolt woke me up, but usually its the other way around in that my N1 is the Old Faithful that I can rely upon for alarm, tethering, etc.
Signal reception is also notably poorer compared to 8.4. Has anyone else noticed this?
I will give it one more day, but I may wipe everything and go back to 8.4, which had the best combo of battery life, signal, and stability for me.
Thanks for your commentary. Even as the OP here, I haven't seen major advances since 8.4 (wonk fix). And I never actually had the wonk! Did you try 8.6 and go back to 8.4? If so, why?
Though, I have not had any wifi issues, or random reboots, or slow GPS locking.
I did notice that sometime in between 8.2, maybe in 8.4, my wifi signal dropped a few bars in my living room, which isn't that far from the router. I had heard there was there some adoption of new wifi driver code?
I'm trusting you did a clean wipe flash? I think some have said that it flashes fine over 8.6, but probably not recommended.
no have Chinese , Unfortunately.
China has a lot of people , interest in the ROM.
But , they can not use this ROM .
Because they English is so so so bad ,Including me .

[XPOSED][MOD][LP+] Sensible Android Auto:Xposed

Simple module to make Android Auto less restrictive. History on this module can be found here and an article about the in-motion tap limits here. This module should remove the "speed bump" notification (Browsing locked for safety) and allow you to scroll through lists (playlists, song lists, etc) without hindrance.
There's also a reddit thread/request which has more specifics about what this module is trying to accomplish.
Features:
Should work for all aftermarket AA-capable headunits (might require a hard-wired bypass module depending on model)
Should also work for most OEM AA headunits that are built into newer vehicles
Should also work for standalone AA running on a phone and not connected to a headunit
Here comes the really large and obnoxious disclaimer.......
This module can alter the built-in safety features that Google has implemented in Android Auto. By downloading and installing, you agree that YOU, and only YOU, are solely responsible for any negative repercussions that may result. This can include injury to yourself and/or others, property damage, or loss of life. Under no circumstances is the author of this module responsible for its use!
...not that a simple disclaimer on a forum post would go far if anything were to happen, but I felt the need to put it out there. Please use YOUR best judgement when it comes to operating a vehicle and futzing with your Android Auto headunit.
Development and testing was done on a Nexus 5x running Android Auto v1.6.240040 (2719917-release) and a Pioneer AVH-4200NEX w/ micro bypass. This should work on any Lollipop and newer rom, assuming Android Auto works on it.
Downloads
See attached files on this post.
You can also grab it from the Xposed Repo
XDA:DevDB Information
Sensible Android Auto:Xposed , Xposed for all devices (see above for details)
Contributors
agentdr8
Source Code: Gitlab
Xposed Package Name: com.dr8.xposed.saax
Version Information
Status: Stable
Current Stable Version: 6.3.611314
Stable Release Date: 2021-04-12
Created 2016-06-04
Last Updated 2021-04-12
Reserved
In case it isn't already clear, this APK is a module designed to be used with the Xposed Framework. It will do absolutely nothing on its own.
Changelog
v6.3.611314 - Updated for Android Auto 6.3.611314
v6.1.610544 - Updated for Android Auto 6.1.610544
v5.8.604354 - Updated for Android Auto 5.8.604354
v5.7.603964 - Updated for Android Auto 5.7.603964
v5.7.603954 - Updated for Android Auto 5.7.603954
v5.6.603444 - Updated for Android Auto 5.6.603444
v5.6.603434 - Updated for Android Auto 5.6.603434
v5.5.602944 - Updated for Android Auto 5.5.602944
v5.5.602934 - Updated for Android Auto 5.5.602934
v5.4.502264 - Updated for Android Auto 5.4.502264
v5.3.501644 - Updated for Android Auto 5.3.501644
v5.3.501634a - Updated for Android Auto 5.3.501634 (fixed negative value)
v5.2.501054 - Updated for Android Auto 5.2.501054
v5.1.500644 - Updated for Android Auto 5.1.500644
v5.0.500214 - Updated for Android Auto 5.0.500214
v4.9.594934 - Updated for Android Auto 4.9.594934
v4.8.594324 - Updated for Android Auto 4.8.594324
v4.7.593824 - Updated for Android Auto 4.7.593824
v4.7.593814 - Updated for Android Auto 4.7.593814
v4.6.593334 - Updated for Android Auto 4.6.593334
v4.6.593324 - Updated for Android Auto 4.6.593324 and 4.6.59xxxx (for 32-bit)
v4.5.592854 - Updated for Android Auto 4.5.592854 and 4.5.592xxx (for 32-bit)
v4.4.592344 - Updated for Android Auto 4.4.592343 and 4.4.592344
v4.3.591854 - Updated for Android Auto 4.3.591843 and 4.3.591854
v4.2.591444 - Updated for Android Auto 4.2.591444 - Versioning has now been changed to mimic the AA versions so that it is clear which version of SAAX works with which version of AA
v1.9.3.2 - Updated for Android Auto 4.2.591xxx
v1.9.2 - Updated for Android Auto 4.2.591xxx
v1.9.1 - Updated for Android Auto 4.1.590xxx
v1.9.0 - Updated for Android Auto 4.0.590xxx
v1.8.9 - Updated for Android Auto 3.9.585xxx
v1.8.8 - Updated for Android Auto 3.8.584xxx
v1.8.7 - Updated for Android Auto 3.7.584xxx
v1.8.6 - Cleaned up debug logging and bumped version
v1.8.5c - With @xs1337's help, added overrides to CarSensorEvent classes which should help those with OEM headunits
v1.8.5a - Fixed typo in method name which was throwing exceptions
v1.8.4 - Updated for Android Auto 3.6.583xxx
v1.8.3 - Updated for Android Auto 3.5.583xxx
v1.8.2 - Added another overridden method to try and bypass warnings, cleaned up comments
v1.8.1 - Added more overridden methods to try and bypass warnings
v1.8.0 - Updated for Android Auto 3.4.582xxx
v1.7.8 - Updated for Android Auto 2.9.574xxx -- missed a method name change
v1.7.7 - Updated for Android Auto 2.9.574xxx
v1.7.6 - Updated for Android Auto 2.8.57451x
v1.7.5a - Missed a method name change
v1.7.5 - Updated for Android Auto 2.7.57395x
v1.7.4 - Updated for Android Auto 2.6.57340x -- added additional options to hopefully override vehicle sensors
v1.7.3 - Updated for Android Auto 2.5.72860x
v1.7.2 - Updated for Android Auto 2.4.72280x
v1.7.1 - Add additional parameter override to get rid of "Paused for your safety" messages
v1.7 - Updated to support the latest Android Auto (2.3.716603-release)
v1.6 - Updated to support the latest Android Auto (2.2.710803-release)
v1.4a - Updated to support latest Android Auto (2.0.642303-release)
v1.3 - Added preference for how many pages are shown in list views
v1.2 - Unreleased, but work done to address built-in vehicle sensors
v1.1 - Updated method hook to include an additional setting, and properly calculate meters/sec from MPH. Also fix initial TypeError crash upon first launch
v1.0 - Initial release
What does this mod do?
"Make Android Auto less restrictive" is very vague, and the history thread is disorganized. Can you add a feature list?
Livingod said:
What does this mod do?
"Make Android Auto less restrictive" is very vague, and the history thread is disorganized. Can you add a feature list?
Click to expand...
Click to collapse
Sorry about that. I've added a few lines about what it does to the OP.
Hi great work so far! Where can I download it?
ahaan said:
Hi great work so far! Where can I download it?
Click to expand...
Click to collapse
In Xposed [emoji12]
☆☆☆ ☆☆☆
amazing, exactly what I have been looking for.
Installed on a Sprint Galaxy S5 with blisspop rom. Will give it a run tomorrow and report back. I just set the number of taps to 999.
ahaan said:
Hi great work so far! Where can I download it?
Click to expand...
Click to collapse
That's odd. When I edit the first post, I can see that the APK is attached. But it isn't showing up. It's probably something to do with the DevDB project.
I've added it to the Downloads tab up top though. And I'll put the xposed repo link on the OP.
Works great! thank you for this. This is highly needed and worked with out a hitch for me on a quick test of spotify (was on a quick drive and was unable to test everything)
agentdr8 said:
That's odd. When I edit the first post, I can see that the APK is attached. But it isn't showing up. It's probably something to do with the DevDB project.
I've added it to the Downloads tab up top though. And I'll put the xposed repo link on the OP.
Click to expand...
Click to collapse
Looks great now, downloaded and tested successfully with the Head unit hack using self mode! Great experience
update on my test, works great on my Sprint Galaxy S5 with blisspop 6.0 rom with the pioneer 4100nex. The first time I tried, AA seemed to have froze when I tapped Spotify, removed the usb and replugged it back in, but the module didnt seem to work, it only allowed 6 taps. On my 2nd drive, it worked great scrolling through my entire playlist when I was in movement
Thank you!! Works great on my Droid Turbo with CM13, Pioneer 4200 NEX.
First time I started AA it froze and crashed with "cannot connect to AA at the moment, when safe please disconnect and check your phone." All I did was disconnect and plug it back in, and it's been great ever since.
ranova said:
The first time I tried, AA seemed to have froze when I tapped Spotify, removed the usb and replugged it back in
Click to expand...
Click to collapse
Jeffy! said:
First time I started AA it froze and crashed with "cannot connect to AA at the moment, when safe please disconnect and check your phone." All I did was disconnect and plug it back in, and it's been great ever since.
Click to expand...
Click to collapse
Interesting. If it continues to happen, please enable debug in the settings and provide the Xposed Installer logs + logcat so I can account for this behavior.
agentdr8 said:
Interesting. If it continues to happen, please enable debug in the settings and provide the Xposed Installer logs + logcat so I can account for this behavior.
Click to expand...
Click to collapse
I've used it about 10 times since then, running errands and whatnot. It's been working perfectly for me, no glitches!
agentdr8 said:
Interesting. If it continues to happen, please enable debug in the settings and provide the Xposed Installer logs + logcat so I can account for this behavior.
Click to expand...
Click to collapse
Jeffy! said:
I've used it about 10 times since then, running errands and whatnot. It's been working perfectly for me, no glitches!
Click to expand...
Click to collapse
yup, only happened to me the first time after installing the module. Its been working ever since. Thanks again!
This is fantastic! Great job. Let's hope you will be able to add more features in the future or that other developers will join you. I love Android Auto but the current restrictions (on which apps can be used for example) are just plain stupid. I understand that there are people who would abuse Android Auto to type entire messages while driving if it was possible but that is not the responsibility of Google. At least, it wouldn't be the responsibility of Google in Europe. It's a totally different story in the US of course
Updated the module today. I figured out that the values for "unlimited browsing speed" and "max speed parking card" were in meters per second (float), so the default of 0.5F is roughly 1.1 MPH. I've made an adjustment so the preference slider accurately represents MPH at which it will no longer allow for unlimited browsing.
Of course if you have the tap limit set to max, then it won't matter. But a sensible tap limit, combined with a sensible max unlimited browsing speed is now achievable.
I also addressed the crash at initial launch.
Hi agentdr8,
Great Module! Congratulations!
One suggestion: Please, can you add the option of "Execute action in the CAR screen"? The idea is: add one entry in this "unused" menu for trigger a Broadcast Intent; this intent then will be captured and processed by another App (like Tasker, AutomateIt, Llama, etc.)
Here some guide about "Broadcast Intent": http://inchoo.net/dev-talk/android-development/broadcast-receiver-from-activity/
For the "Car Screen" see: http://arstechnica.com/cars/2015/07...icle-diagnostic-app-expanded-car-integration/
I hope you agree! :fingers-crossed:
manos78 said:
Hi agentdr8,
Great Module! Congratulations!
One suggestion: Please, can you add the option of "Execute action in the CAR screen"? The idea is: add one entry in this "unused" menu for trigger a Broadcast Intent; this intent then will be captured and processed by another App (like Tasker, AutomateIt, Llama, etc.)
Here some guide about "Broadcast Intent": http://inchoo.net/dev-talk/android-development/broadcast-receiver-from-activity/
For the "Car Screen" see: http://arstechnica.com/cars/2015/07...icle-diagnostic-app-expanded-car-integration/
I hope you agree! :fingers-crossed:
Click to expand...
Click to collapse
I'll see what can be done about adding some things to that screen. I'm not positive, but I believe most apps won't be able to display any activities on that screen unless they have specific Android Auto layouts. But firing off a configurable intent should be possible.
Stay tuned....
EDIT: Upon further investigation, it seems that this isn't doable right now. Those entries under the "Car" screen are services that have to be defined in the manifest. AFAIK, you can't inject service entries (and their associated metadata tags) into an app via Xposed. I think at some point, Google may open up that restriction for OEMs, and allow them to just apply a specific xml description tag to indicate that a particular app can be shown/used in that screen.
I can try and see if I can hook the layout inflation of those entries, and modify their titles there. I can also try and override what they currently launch (right now, just demo screens).
agentdr8 said:
EDIT: Upon further investigation, it seems that this isn't doable right now. Those entries under the "Car" screen are services that have to be defined in the manifest. AFAIK, you can't inject service entries (and their associated metadata tags) into an app via Xposed. I think at some point, Google may open up that restriction for OEMs, and allow them to just apply a specific xml description tag to indicate that a particular app can be shown/used in that screen.
I can try and see if I can hook the layout inflation of those entries, and modify their titles there. I can also try and override what they currently launch (right now, just demo screens).
Click to expand...
Click to collapse
Hi agentdr8,
Thank you for your efforts! Good work! :good:
In reference to the limitations: Then I suggest to just hook the button for selecting the CAR screen. I feel this can be possible, and we use this event to trigger some intent. Please, think that sending one intent is by far more simple that printing on the screen. So, perhaps the first goal can be hook the AA UI for sending events to other Apps. You agree?

[XPOSED] VirtualSensor - Emulate a gyroscope from the accelerometer and compass

Introduction
VirtualSensor is a module built on Xposed that creates several sensors on devices which do not have them. It does sensor fusion using the values from the accelerometer and the compass which are the two main requirements for this module.
There are currently 5 sensors emulated :
TYPE_ROTATION_VECTOR
TYPE_GYROSCOPE
TYPE_GEOMAGNETIC_ROTATION_VECTOR
TYPE_GRAVITY
TYPE_LINEAR_ACCELERATION
Being the most useful sensor for many applications, the gyroscope is the main sensor this project is about.
This module is born as an answer to personal frustration from not being able to use some applications after updating from my older Moto G (i.e. Photo Sphere) and later also as an answer to this thread.
Changelog
Code:
v1.5.1 - 02/08/2017:
This minor version fixes the module for Nougat devices.
See the changelog of v1.5.1 for the more information on what has changed for the major version 1.5.
v1.5 - 02/08/2017:
Finally a new release after (quite) a while. This release should fix the majority of bugs encountered on current and previous versions of Android.
With the precious help of people on Github, the cardboard hook has been (hopefully) improved.
The overall stability and reliability should be better now.
This release will stay marked as beta until relevant and good feedback is received, to please head over to Github if you can and report issues if any (or add to the exising issues to check wether they still exist)
v1.41 - 01/08/2016:
* Fixed the module, previous version broke it because of proguard minify, do not use version v1.4
v1.4 - 31/07/2016: /!\ This version is broken, avoid it /!\
* Added a check for already existing native sensors so that they don't get overridden by the module
* Now checks the values of the accelerometer and magnetic sensor against their accuracy. This means that the output values contain less noise without loosing too much precision
* Added a simple GUI to quickly get informations about the module. This part also calculates the values the gyroscope should return and compares them against the one the module actually returns
* Some hooks are now made on higher-level API (public available functions for apps), which means that specific device code should no longer break them
* Fixed a recurrent exception (ConcurrentModificationException)
v1.32 - 29/07/2016:
* Fix the mRequiredPermssion field no available on SDK < 20
Hotfix #2 for v1.3
v1.31 - 29/07/2016:
* Fixes the issue with SDK <= 18 where mStringType doesn't exist in the Sensor class
Hotfix for v1.3
v1.3 - 29/07/2016:
* Sensors are now added in a proper way. They should no longer accidentally override existing sensors / cause compatibility issues
* All gyroscope axes are fully functional !
* If it didn't work before for you on JellyBean-Lollipop, try now, it might (fixed the check for initialisation of SystemSensorManager)
* Started to work on a new filter system for the gyroscope mainly
v1.21 - 25/07/2016:
Hotfix for v1.2 to avoid crashes on JB devices.
v1.2 - 26/07/2016:
* Fixed compatibility with SDK18-22 (Android JellyBean 4.3 - Android Lolipop 5.1)
* Added a little more log
* Calculation for the gyroscope is now based on the calculated gravity sensor data, which (should) makes it work as intended in any orientation
* The virtual sensors now have a little more information in the created Sensor class, just to make sure this isn't an issue
v1.11 - 25/07/2016:
Hotfix for v1.1, fixes an exception raised in some cases when trying to get the accelerometer's min delay.
v1.1 - 25/07/2016:
* Added support for all SDK versions from SDK16 to SDK23+, this means all android versions starting from Jelly Bean should be supported
* Added a lot of new sensors : TYPE_ROTATION_VECTOR, TYPE_GEOMAGNETIC_ROTATION_VECTOR, TYPE_GRAVITY and TYPE_LINEAR_ACCELERATION
* Still no support for Pokémon GO though, working on it
* Some exceptions fixed
* Code refactored a lot
v1.0 - 23/07/2016:
Initial release.
Known issues
Right now, the Z-axis is not emulated as it always returned wrong values (Investigating this right now) Fixed
Some applications use the NDK instead of the SDK to access the sensors, the workaround is to hook them seperately, but that isn't done yet
There is some jitter even though the values are smoothed using a lowpass filter and averaged out
Disclaimer
Code:
Though it is unlikely this could happen given the modifications it does, the responsibility is yours for whatever happens after installing and using this module.
Download
Github : https://github.com/Frazew/VirtualSensor/releases/
Xposed Repository : http://repo.xposed.info/module/fr.frazew.virtualgyroscope
Contributing
There is a Github project for this module so please do not hesitate to contribute to it. I'll be glad to share knowledge and code. Please know that I'm not (yet? ) a professional coder and that errors are quite likely to happen.
XDA:DevDB Information
VirtualSensor, Xposed for all devices (see above for details)
Contributors
Frazew
Source Code: https://github.com/Frazew/VirtualSensor
Xposed Package Name: fr.frazew.virtualgyroscope
Version Information
Status: Testing
Current Stable Version: v1.5.1
Stable Release Date: 2017-08-02
Created 2016-07-23
Last Updated 2017-08-02
Reserved
I supposed you tested this with Pokemon GO, as is the reason of so many requests for a virtual gyroscope so I'll suppose is still nor working due my specific device.
Motorola Moto X Play, running CyanogenMod 13.
Thanks for your work!
Thanks for chance to get normal VR experience
Works great with Lenovo Vibe P1 (this device has a jittering problem with its own pseudo-gyro). Tested with Youtube 360 videos. Works great for watching up/down and rotate. As well as you said z-axis is not working at all, so it's impossible to move point of view to the left/right. Can help you with testing on my device, if you want. I have Lenovo Vibe P1 with Android 6.0, TWRP and Root.
P.S. Is there any way to turn on z-axis for testing, for example by using your project at github. I'm not sure if I will understand there something, I was coding before only at C#, but I can try.
OliverG96 said:
I supposed you tested this with Pokemon GO, as is the reason of so many requests for a virtual gyroscope so I'll suppose is still nor working due my specific device.
Motorola Moto X Play, running CyanogenMod 13.
Thanks for your work!
Click to expand...
Click to collapse
I did not test it with Pokémon GO, however I think the hook will have to be made in the app itself. I'll look into it right now
EDIT: Pokémon GO uses the TYPE_ROTATION_VECTOR sensor. This sensor requires data from the gyroscope. I'm working right now on emulating it.
Saratsin said:
Works great with Lenovo Vibe P1 (this device has a jittering problem with its own pseudo-gyro). Tested with Youtube 360 videos. Works great for watching up/down and rotate. As well as you said z-axis is not working at all, so it's impossible to move point of view to the left/right. Can help you with testing on my device, if you want. I have Lenovo Vibe P1 with Android 6.0, TWRP and Root.
P.S. Is there any way to turn on z-axis for testing, for example by using your project at github. I'm not sure if I will understand there something, I was coding before only at C#, but I can try.
Click to expand...
Click to collapse
Glad to see that it works ! I could make another build with the Z axis activated but I really need to look a bit more into it. The problem with it is that it seemed to return higher values than the other axes. This generally broke the calibration many apps do and though the z-axis worked, they would then ignore the small variations of the other axes.
In case you want to build it yourself, it's quite easy, just remove the multiplication by zero here : https://github.com/Frazew/VirtualSensor/blob/master/app/src/main/java/fr/frazew/virtualgyroscope/XposedMod.java#L156
Can't install it on Jelly bean 4.2.2 :/
first a big THANKS!!!!!
I downloaded sensors tests app.before the module,gyroscope test wasn't there!after the module,voilla!!gyroscope test was there!I openned it and tested side by side with my xperia Z3 tablet.But values was muuuch different...It's ok,we all hope for possible future module updates!again THANK YOU!!!
Dant3s said:
Can't install it on Jelly bean 4.2.2 :/
Click to expand...
Click to collapse
Right now the minimum SDK version is KitKat, that's just because the sensor methods are different on Jelly Bean and I haven't worked on it.
Now that there are people who can actually test it on Jelly Bean I'll make an update to add support for it
Frazew said:
Right now the minimum SDK version is KitKat, that's just because the sensor methods are different on Jelly Bean and I haven't worked on it.
Now that there are people who can actually test it on Jelly Bean I'll make an update to add support for it
Click to expand...
Click to collapse
Glad to hear that, thanks
have see this thread : Help module to simulate Gyroscope with Accelerometer and Compass by nicolobos77
Hey, since we've doubled same purpose module I decided to use yours since its clear that you have much more experience than me and your code is much more elegant. (I never used Xposed before)
I built and ran it on my phone, and noticed exception thrown in logs (made pull request with fix at github), this wasnt big deal, but it seems like even though math is correct, sensor behaves wierd. Output is delayed by ~1 sec. There is also wierd "bounce effect" after rotating at ~20degree/sec and stopping velocity goes to ~-20 degree for a moment and drops back to 0.
Also depending on delay set up by application when registering listener some of apps only seem to get any output other than 0 if I like swing phone very hard. So my guess is that you might have more sensitive sensors in your phone and smoothing methods you applied are overkill for mine. I'll look into it closer later today, or tomorrow and see if changing parameters helps.
Thanks you for your work. One question, my phone has this, link to the image: imgur.com/a/lD7Sg Accelerometer it's fine but compass and orientation sensor are the same thing?. I cant find an app that can show me if I have compass sensor. Thanks you again and sorry for my bad english :/
And can you make a guide like "How to Install or what do you need in order to" or something like that? Please?
Maveroik said:
Thanks you for your work. One question, my phone has this, link to the image: imgur.com/a/lD7Sg Accelerometer it's fine but compass and orientation sensor are the same thing?. I cant find an app that can show me if I have compass sensor. Thanks you again and sorry for my bad english :/
And can you make a guide like "How to Install or what do you need in order to" or something like that? Please?
Click to expand...
Click to collapse
Compass means Magnetic Sensor, so yes, you do have one.
Frazew said:
EDIT: Pokémon GO uses the TYPE_ROTATION_VECTOR sensor. This sensor requires data from the gyroscope. I'm working right now on emulating it.
Click to expand...
Click to collapse
I did some reverse engineering on that matter, Pogo uses whole bunch of sensors: TYPE_GRAVITY, TYPE_GYROSCOPE, TYPE_ACCELEROMETER, TYPE_MAGNETIC_FIELD, TYPE_ROTATION_VECTOR and TYPE_LINEAR_ACCELERATION.
Actually I believe that TYPE_ROTATION_VECTOR can be simulated by copying TYPE_GEOMAGNETIC_ROTATION_VECTOR values.
Mourdraug said:
Hey, since we've doubled same purpose module I decided to use yours since its clear that you have much more experience than me and your code is much more elegant. (I never used Xposed before)
I built and ran it on my phone, and noticed exception thrown in logs (made pull request with fix at github), this wasnt big deal, but it seems like even though math is correct, sensor behaves wierd. Output is delayed by ~1 sec. There is also wierd "bounce effect" after rotating at ~20degree/sec and stopping velocity goes to ~-20 degree for a moment and drops back to 0.
Also depending on delay set up by application when registering listener some of apps only seem to get any output other than 0 if I like swing phone very hard. So my guess is that you might have more sensitive sensors in your phone and smoothing methods you applied are overkill for mine. I'll look into it closer later today, or tomorrow and see if changing parameters helps.
Click to expand...
Click to collapse
Thanks for your, I didn't see this exception when I tested it, but now that you bring it up, it seems obvious.
As for the delay you are talking about, the explanation I have for this is that I filter the output using a mean filter that uses the 10 previous values. This has the advantage of reducing the jitter a lot but it also has the huge disadvantage of adding a lot of delay. I will change this as there are better ways to filter the output than using the mean of the previous values. Like I said, I only tested it with my phone and did not take into account the sensitivity of the sensors. This is actually a good idea and I'll have to change that. Feel free to tweak what you want and make pull requests, that's the best way this module can evolve.
Mourdraug said:
I did some reverse engineering on that matter, Pogo uses whole bunch of sensors: TYPE_GRAVITY, TYPE_GYROSCOPE, TYPE_ACCELEROMETER, TYPE_MAGNETIC_FIELD, TYPE_ROTATION_VECTOR and TYPE_LINEAR_ACCELERATION.
Actually I believe that TYPE_ROTATION_VECTOR can be simulated by copying TYPE_GEOMAGNETIC_ROTATION_VECTOR values.
Click to expand...
Click to collapse
I reverse engineered it too and saw these sensors too. The thing is: TYPE_GRAVITY is a virtual sensor created from the accelerometer so no need to simulate it. TYPE_MAGNETIC_FIELD is the compass and TYPE_LINEAR_ACCELERATION is also a virtual sensor created from the accelerometer so no need to simulate it either. I have right now working code to make the TYPE_ROTATION_VECTOR work. I didn't see the TYPE_GEOMAGNETIC_ROTATION_VECTOR so I did the math directly from the rotation matrix values. I guess I'll change to use its values since it's already there, thanks for your help
EDIT: Actually the TYPE_GRAVITY is not a virtual sensor. My bad, I'll see what I can do to simulate it.
EDIT2: Actually TYPE_LINEAR_ACCELERATION is not always present either, I'll simulate it too. I should verify a bit more before posting stuff.
I would donate some cash if you could get the AR function to work in PoGo! That would be awesome!
wktra said:
I would donate some cash if you could get the AR function to work in PoGo! That would be awesome!
Click to expand...
Click to collapse
No need for cash but I'm currently working on it. I implemented a whole new lot of sensors but sadly PoGo doesn't work with them just yet. I'm investigating this and will make an update once it's ready (I play PoGo too so I'd like to see it work too).
Hi , I just registered to thank you a lot for the effort you're doing.
It doesn's seems to work on my LG G3 S, however thank you a lot and hope someone can help you making it through !
Keep the good work.
Dont work on youtube or pokemon Go in motorola moto g 2015(xt1541). Also i installed Cpu Z and it show the virtual gyro sensor ... I dont know why dont work on 360 video on youtube.(sorry for bad english)

[ROM] AOSP for idol3 & idol347 with (close-to) mainline kernel

Alpha release of modern Linux kernel and AOSP Android, with easy addition of other msm8916 & msm8939 devices !
Special thanks to Stephan for all the work and help with kernel support, Caleb for the AOSPM setup and Roman for GloDroid and modem support.
Support for calls, SMS, GPU, touchscreen, sound, Wi-Fi, Bluetooth, charger, root (su command available).
Disable SIM PIN code before using it with those builds.
Not supported :
because lack of kernel support :
cameras : some variants may have imx214 sensor, which would be the easiest to get going.
Other sensors need a mainline driver, and probably painful reverse-engineering.
Also need a camera HAL (a minimal one could work to support torch LED)
low-power / suspend : need work on cpuidle and AVS/CPR
high-performance : need work on cpufreq, interconnects
video encode/decode accel : should work on idol347, needs to be extended and enabled on idol3
because lack of HAL :
mobile data : WIP
GPS : need a HAL, maybe https://github.com/zxcwhale/android9_gnss_hal_driver
or develop support through ModemManager
Known problems :
Audio : only speaker output, no earpiece mode : to be investigated
LED indicator not used by the system for notifications or charging status
graphical glitches, like some widgets are highlighted when they shouldn't be
sometimes doesn't boot correctly, reboot/shutdown and retry...
« There's an internal problem with your device » message is expected
due to unusual kernel version and of no real consequence.
It's unclear why it didn't happen with first build. Will see about removing it...
Prerequisites :
Backup your device, make sure you can restore it
Flash lk2nd 0.14.0+ (get lk2nd-msm8916.img) to the boot partition
if you already have lk2nd installed, update it with fastboot flash lk2nd lk2nd-msm8916.img
otherwise, use https://github.com/bkerler/edl (already has programmers), or emmcdl, or Alcatel Flasher
Install :
device off, go to lk2nd menu by pressing Power + Volume down buttons
fastboot flash boot boot.img
fastboot flash cache vendor.img
fastboot flash userdata userdata.img
fastboot flash system system.img
select START using Vol+ or Vol- buttons if needed, then press Power
Downloads : see the latest release post
Kernel source : https://github.com/vknecht/msm8916-mainline-linux/tree/aosp/v6.2-msm8916
Devicetree : https://github.com/vknecht/android_device_generic_msm8916
Local manifest : https://github.com/vknecht/aospm-android_local_manifests/blob/msm8916/aospm.xml
That's great. A bit disappointed that modem (call, sms...) doesn't work on android though :/
Nice job! I tested it and a small issue is write speed to internal storage is slow (<1MB/s). It might be that the forced encryption is enabled in the ROM and the old Snapdragon 615 processor is unable to handle the encryption fast enough. The encryption also disables the existing TWRP builds from accessing internal storage, so it's preferred to have the device unencrypted.
- Tested again and it's probably an issue with my router when I copied APKs from my NAS using Mixplorer. The internal copy-paste is fast enough.
Some other issues:
- Moonlight streaming software doesn't work because there's no hardware video codec.
- No night light / blue light filter
- No accelerometer, cannot auto-rotate
Hopefully some of them are easy to fix and it can become much better than Android 7.1!
Hey fantastic work!
The first few boots were a bit messy, but I think it was just some initial startup issues - it caused some flickering, there was some spotty Wifi issues (had to "forget" and reconnect). After a few more boots it got progressively more stable.
WiFi, bluetooth, 2D acceleration, and battery all seem to be working great! Haven't tested data and calls, as no sim.
I tried playing some videos via VLC, the Video was smooth but the audio was pretty choppy. The native video player was much better with both video and audio, so I think HW acceleration is working(?)
Some issues in getting it to wake up from sleep, and when I accidentally invoked the camera, I got a blue screen that was hard to get out of.
Hitting the power button twice or holding the power button and then hitting it twice seems to be the main way to get back to the home screen and restore the display.
I tried to get the camera to work, and eventually installed LibreCamera (the only camera app that didn't say it was incompatible with the device), but nope there is no camera to use.
Thank you for the feedback, I edited OP with some details about what needs to be done to fix some items.
Will have to look into AOSP settings if there's support for night/blue light support.
Also will have to check again to add eg. Orange Fox recovery...
What about Honor 5X?is have msm8939 too.
vknecht said:
Not supported :
Click to expand...
Click to collapse
Thank you for your work. Is there going to be a beta release without restrictions?
I haven't tried it yet, will this fit the 6045K?
banzeo said:
That's great. A bit disappointed that modem (call, sms...) doesn't work on android though :/
Click to expand...
Click to collapse
Rejoyce, for GloDroid's mm-radio HAL works for simple SMS and calls
Still a bit buggy but it's being worked on. No support for mobile data yet, tho...
satelliteseeker said:
- Moonlight streaming software doesn't work because there's no hardware video codec.
- No night light / blue light filter
- No accelerometer, cannot auto-rotate
Click to expand...
Click to collapse
Guess you have an idol3, since it has no venus support ? idol347 has it, would be interesting to know if Moonlight works on it. Waiting on Linaro (the company mainlining msm8939 SoC) which has venus fixes...
Night light is there after enabling config_nightDisplayAvailable, so it will be in next build.
Sensors are working too thanks to iio-sensors-hal.
mtek89 said:
I tried playing some videos via VLC, the Video was smooth but the audio was pretty choppy. The native video player was much better with both video and audio, so I think HW acceleration is working(?)
[...]
I tried to get the camera to work, and eventually installed LibreCamera (the only camera app that didn't say it was incompatible with the device), but nope there is no camera to use.
Click to expand...
Click to collapse
Camera won't work until cam sensors and related subsystems are supported, which is not a short-term task...
Will see what can be done about video playing, but remember that not all apps use venus, and performance is crippled by the fact that, at the moment, CPUs are capped to 1 GHz on idol347 and iirc 800 MHz on idol3...
Boom_Hacker said:
What about Honor 5X?is have msm8939 too.
Click to expand...
Click to collapse
The kiwi DTB has been added to the prebuilt kernel so it should be easier to experiment.
Sound should be working by the time of next release (it's a bit special since modem is not working on this device).
Please continue your effort to get your panel working in postmarketOS, so it will be supported in this aosp build.
pasha.mcr said:
Thank you for your work. Is there going to be a beta release without restrictions?
I haven't tried it yet, will this fit the 6045K?
Click to expand...
Click to collapse
Sure, tho not all "restrictions" can be addressed, at least in the short term...
It fits on 6045K (I only have this variant), would be interesting to know if all space is available on 16 Gb variants.
Hopefully there will be a release by the end of the month, but would like to tackle the screen-off-then-on issue and this might take time...
Edit 2023-03-01 : please be patient, I'll take a week more or so to polish things a bit ; but things are coming nicely (have a fix for screen for example)
Alpha 2 release with display fix, basic sensors & basic modem support.
Also updated to Linux 6.2 and AOSP android-13.0.0_r35 branch (security patch March 5 2023).
Only basic SMS (no MMS, no emoticons, etc.) and calls (no mobile data yet).
SIM PIN must be disabled beforehand (ie. before using it with this build).
Some sensors are not reliable (ambient light, magnetometer/compass, ...).
But auto-rotate works and proximity sensor too, although not used by eg. Dialer app, not sure why...
Known problems :
[EDIT] Bluetooth service broken in this build, investigation in progress...
Audio : only speaker output, no earpiece mode : to be investigated
LED indicator not used by the system for notifications or charging status
graphical glitches, like some widgets are highlighted when they shouldn't be
sometimes doesn't boot correctly, reboot/shutdown and retry...
« There's an internal problem with your device » message is expected
due to unusual kernel version and of no real consequence.
It's unclear why it didn't happen with first build. Will see about removing it...
Downloads : (see first post for pre-requisites ; no clean update path supported)
aospm-idol347-6.2-android13_r35-20230319-1.zip
MD5 909243b939389e6b38c523eca5e18a4c
SHA256 60371e314a6481eef75a81e02947f31979002fe10766f3af1a05dfa615f164cd
aospm-idol3-6.2-android13_r35-20230319-1.zip
MD5 6950066b987c8eb993eff22e53d45897
SHA256 aac997a0a9dd0839397b674426e56b8185c29da0882032bab4f449479a8f2ba6
Special thanks to Roman for the work on GloDroid and mm-radio HAL !
Alpha 3 release with bluetooth fix.
Also updated to AOSP android-13.0.0_r41 branch (security patch April 5 2023).
Downloads : (see first post for pre-requisites ; no clean update path supported)
aospm-idol347-6.2-android13_r41-20230416-1.zip
MD5 52066524be01cb888f6e6b2376f37dc1
SHA256 eb90f9bb6eed4299ba6848667b55271a59a819eea4a5345e2141791ffc3b6f91
aospm-idol3-6.2-android13_r41-20230416-1.zip
MD5 a42fbb38f73d4eac830dcb63673342c6
SHA256 3bd1c3f7a091dab1363991b9e3824318e73b0be714c7e25afa770dc8bde8381b
vknecht said:
« There's an internal problem with your device » message is expected
due to unusual kernel version and of no real consequence.
It's unclear why it didn't happen with first build. Will see about removing it...
Click to expand...
Click to collapse
Some Android ndk init service is not start successful, cause start->stop->restart loop
most likely the camserver is the cause of error message. the workaround is disable camserver by starting up at init.rc

Categories

Resources