yashsingh1/xdaforums huggingface dataset:
[Mi 3 Android Development] Sk.D:
[MENTION=4898058]audahadi[/MENTION] :

AICP ROM

Great rom with amazing features,

but there are some things thats bothering me [bugs] like there is screen freeze problem on lock screen and only option to overcome it is reboot. And due to that there is large drop in battery of 5-10 percent when system is rebooted.

Battery drainage is high.

And yeah I never faced any RANDOM REBOOTS!!

Edit: Faced random reboots twice!!!!!

Screen wake problem randomly(mostly in pockets :p )
[Mi 3 Android Development] srvoleti:
[MENTION=4898058]audahadi[/MENTION] :

AICP ROM

One of the best roms with many many features. But, I observed the following bugs: (No random reboots so far!)

a) Random WIFI MAC Address on every reboot,

b) High battery consumption (2-3 % per hour)

Please look into these problems and many thanks for this amazing rom!
[Mi 3 Android Development] vishal1404:
Guys who else is getting that number in statusbar instead of network providers name in aicp rom????
[Mi 3 Android Development] ZenR2:
Hey it's a great ROM rock solid, haven't faced any reboots so far,

1) no lock screen freeze for me, my lock screen never gets freeze

2) main issue is the battery even after going for 98℅deep sleep I l lost around 4%battery, that to in airplane mode without even using the device, battery consumption is really high

Else the ROM is great.
[Mi 3 Android Development] bluerain28:
"No reboots so far" is tempting. :D. But the high battery usage is quite troublesome. Maybe that's the reason why the phones reboot bug is quite gone because of the battery kicking it in intervals. :D. Not sure though. Keep it up sir. :)
[Mi 3 Android Development] audahadi:
Another build is up...hope this solve baseband issue.

AOSPA 17/10

Edit : Please delete below line in system/etc/sec_config or you will have broken sensor

/* Allow Sensor services to be used by sensor process */
256:4294967295:3011
257:4294967295:3011
258:4294967295:3011
259:4294967295:3011
260:4294967295:3011
261:4294967295:3011
262:4294967295:3011
263:4294967295:3011
264:4294967295:3011
265:4294967295:3011
266:4294967295:3011
267:4294967295:3011
268:4294967295:3011
269:4294967295:3011
270:4294967295:3011
271:4294967295:3011
272:4294967295:3011
273:4294967295:3011
274:4294967295:3011
275:4294967295:3011
276:4294967295:3011
277:4294967295:3011
278:4294967295:3011
279:4294967295:3011
280:4294967295:3011
281:4294967295:3011
282:4294967295:3011
283:4294967295:3011
284:4294967295:3011
285:4294967295:3011
286:4294967295:3011
287:4294967295:3011
288:4294967295:3011
289:4294967295:3011
290:4294967295:3011
291:4294967295:3011
292:4294967295:3011
293:4294967295:3011
294:4294967295:3011
295:4294967295:3011
296:4294967295:3011
297:4294967295:3011
298:4294967295:3011
299:4294967295:3011
300:4294967295:3011
301:4294967295:3011
302:4294967295:3011
303:4294967295:3011
304:4294967295:3011
305:4294967295:3011
306:4294967295:3011
307:4294967295:3011
308:4294967295:3011
309:4294967295:3011
310:4294967295:3011
311:4294967295:3011
312:4294967295:3011
313:4294967295:3011
314:4294967295:3011
315:4294967295:3011
316:4294967295:3011
317:4294967295:3011
318:4294967295:3011
319:4294967295:3011
320:4294967295:3011
321:4294967295:3011
322:4294967295:3011
323:4294967295:3011
324:4294967295:3011
325:4294967295:3011
326:4294967295:3011
327:4294967295:3011
328:4294967295:3011
329:4294967295:3011

[MENTION=4343370]feed3[/MENTION] , use your's provided sensor lib, now all sensor broken.
[Mi 3 Android Development] ZenR2:
thnaks man :good:

what about the battery drain issue ,is it also sorted out :angel::p
[Mi 3 Android Development] audahadi:
Please see edited post above. :D
[Mi 3 Android Development] feed3:
:confused: Working fine (everytime) in mine. You changed the sensor and sensorservices in lib? Or you didnt use those 3 vendor blobs files i gave?

Let me download your latest build and test. Gonna take a while, on mobile now.
[Mi 3 Android Development] Hadi al-Haiqal:
Is it AOSPA or PA?.. Or it is the same?.. I open the link and it come out as PA Rom build 5..
[Mi 3 Android Development] feed3:
[MENTION=4898058]audahadi[/MENTION], I'm really confused. Now in your latest build, NO files changed yet, no lines removed, clean install, sensors are working just fine. See below. May I know how you do see the sensors broken?

View attachment 2975250

View attachment 2975251

View attachment 2975252

BTW, maybe we can put the workaround inside the kernel until we can find the fix for SoD.

write /sys/power/wake_lock 1
[Mi 3 Android Development] feed3:
PA is AOSPA. Android Open Source Paranoid Android, or some just call it PA in short.

Maybe you are confused with AOSP.
[Mi 3 Android Development] raj.parekh07:
Boot loop when I flashed acip directly after modified aosp by Ivan

I did wipe all.
[Mi 3 Android Development] audahadi:
Now it confuse me also...hahaha... On AICP...since I use same blob..it should react the same for both. Used all libs and file you gave.

Yes..we can put that in ramdisk..but since we already have an app for that..we should let it be.
[Mi 3 Android Development] praveen7682:
Just had a reboot after 2 days of use in aicp ROM...
[Mi 3 Android Development] feed3:
Ah, ok.. I thought in PA..

Even the vendor blobs is same, but in aicp i saw libsensorservice.so in /system/lib is different. That could explain why it behave differently.
[Mi 3 Android Development] DroidBot:
[MENTION=4898058]audahadi[/MENTION] : I want to use AICP rom, please provide link for that and did you update ROM? as you said you'll update it today.
[Mi 3 Android Development] srvoleti:
AICP rom

[MENTION=4898058]audahadi[/MENTION] : Your AICP ROM is excellent. Any possibility for the update today ? (Bug fixes ). Thanks for the ROM.
[Mi 3 Android Development] audahadi:
Later...please bookmark link for future. Update probably will roll out as AOSPA out. Silently.
[Mi 3 Android Development] ZenR2:
Buddy in the upcoming Aicp Rom has the battery bug sorted out
[Mi 3 Android Development] chankalson:
The A-GPS in AICP isn't working.. Any way to fix it?
[Mi 3 Android Development] praveen7682:
[MENTION=4898058]audahadi[/MENTION] just a quick question so we don't have reboot issue with PA ROM? Am I right...
[Mi 3 Android Development] ZenR2:
There are reboots but very rarely it happens.
[Mi 3 Android Development] feed3:
[MENTION=4898058]audahadi[/MENTION], http://review.cyanogenmod.org/#/c/61777/ that seems interesting! How i wish I'm in front of my pc now.. :banghead:
[Mi 3 Android Development] krispuniq:
Omg... Omg.. Is this for real??

I'm ready for some magic rom now! Need to learn compiling a rom myself.. I'm in front of the pc, but not of much help I guess
[Mi 3 Android Development] FcukBloat:
sorry but don't understand clearly.. can't read git very well.. isn't that a commit for Sony devices? and isn't it a bit old btw? (from 28th of March) if so, how can it be of any help for us? thanks!!
[Mi 3 Android Development] cosmicsatish:
I didn't understood whats that..it shows something has been committed in git.. But didn't understand what..sorry i am not a developer.
[Mi 3 Android Development] feed3:
I'm interested at some revert they did to fix their SoD (sounds to me like they are also suffering the same SoD in deepsleep like us). It is a good hint where to look at for us (see that revert for idle framework?) and who knows if we can even cherrypick it from their repo.
[Mi 3 Android Development] srvoleti:
Sorry, I can't understand how a commit dated 28/3/14 for Sony device help us in solving the reboot issues. Can somebody throw some light?
[Mi 3 Android Development] krispuniq:
I think this commit might give a hint on what to look at in our device blobs? I'm not sure but that's my opinion
[Mi 3 Android Development] audahadi:
[MENTION=4343370]feed3[/MENTION] need to ask Hugo first for kernel...[emoji24]

AICP Rom Directory
[Mi 3 Android Development] praveen7682:
Is this a new build for AICP?
[Mi 3 Android Development] feed3:
Can't be implemented through regulator in the framework?

*HEARTBROKEN*

It will be so damn easy if ivan even hinting which file to look at instead of the vague *helpful* hint of "look at the framework". Argh.. :banghead:
[Mi 3 Android Development] nokiaer:
"Device tree for Xiaomi Mi3 WCDMA

Latest commit by*ivan19871002*about 10 hours ago" 10 hours ago !!what is changed ?

---------- Post added at 03:56 PM ---------- Previous post was at 03:51 PM ----------

"carcon.mk and system.prop'
[Mi 3 Android Development] samx69:
how to update from a previous version?
[Mi 3 Android Development] feed3:
Combining some little changes i did, NO REBOOT at all in deep sleep BUT different story when in the pocket especially when the capacitive button is touched.

Could it be two separate bugs of SoD? Could it be that those buttons not disabled/deactivated properly in screen off?

View attachment 2976386

The last line of reboot in the graph is when i put it in my pocket. In all other deep sleep, i always put it upside down to cover the proximity sensor (one of the earlier symptoms we have known before that could trigger SoD).

View attachment 2976388

EDIT: or maybe our display (atmel ts). Managed to replicate it without putting into my pocket.
[Mi 3 Android Development] audahadi:
Try disable capacitive button see if there any different.
[Mi 3 Android Development] feed3:
Still the same. The interesting part is, i put my phone on the table, let it sleep, rub the screen (using some clothes just like cleaning the screen in up and down direction) and it triggered the SoD 5/5 attempts. On 6th time, doesnt give me SoD but screen goes haywire.

Want to try something now and will post my findings here later.
[Mi 3 Android Development] feed3:
So, i use hardware disabler to disable the suspected driver, and 1 hour in & out my pocket (the longest it stays in 20 mins) without reboot. But im not too sure if it goes to deep sleep, only looking at the battery level and it doesnt goes down even 1% (but it could be deceiving observation as in lowest cpu freq within same period can give me same result).

Interestingly for noob like me, the same driver also controls the capacitive buttons.

View attachment 2976811

What puzzled me is, based on atmel_hover_tune.sh in /system/bin it is 2-004b but it is 2-004a in out PA. (Can anyone in Miui or aosp confirm this?)

View attachment 2976812

What's more puzzling me is all in that executable file doesn't exist in our PA. There's no /persist/atmel_hover_tune.status, there's no hover_from_flash either.

These all beyond my limited knowledge and capabilities to do anything from mobile. Maybe tomorrow i will unpack the kernel and see what can be done. Another place i suspected is power manager and display power controller in framework.

Right now I'm thinking that SoD in deep sleep and in pocket is two separated bugs. I dont have any reboots when in deep sleep (provided the phone is not in my pocket, just laying on table). If anyone interested, i can give the files i changed and you can test it too.

No reboots in deep sleep.

View attachment 2976821

What i changed is the power mode in build.prop (change to either 0 or 2), the power profile in framework /res/xml/ and also the thermal engine config in /system/etc (i took the config from hammerhead).

Can anyone also test to disable the capacitive button and see how it is? I might test it wrongly.

These is getting more and more complicated than what i expected. :(
[Mi 3 Android Development] destructiontrace:
Firstly im a noob and didnt quite understand what u said :p

But i wanted to help so i saw that u were asking whether it is 2-004b in atmel_hover_tune.sh

And i am on ivan's rom and it is 2-004b
[Mi 3 Android Development] feed3:
Can you go to that location? /sys/bus/i2c/devices/ and see if it is 2-004b or 2-004a? Though I'm not too sure what differences it can make. Me myself is a noob too.. :p
[Mi 3 Android Development] destructiontrace:
It's 2-004a?!
[Mi 3 Android Development] sivabommakanti:
Hi feed. Very nice to see you work. I can test the ROM. I am on a holiday for 4 days and I am not gonna put the phone in my pocket. So let me see if I get any sods. Pls share the file.
[Mi 3 Android Development] feed3:
1. Put the attached thermal-engine-8974.conf into /system/etc/ replacing the existing file.

2. Add

pm.sleep_mode=0

In /system/build.prop

usage:*

pm.sleep_mode=0 -> collapse suspend*

pm.sleep_mode=1 -> collapse (will*totally power off the cpu)*

pm.sleep_mode=2 -> sleep (cpu is still*on, but put into low power mode (registers are still saved)*

pm.sleep_mode=3 -> slow Clock and*wait for Interrupt (lowered frequency*and voltage)*

pm.sleep_mode=4 -> wait for interrupt(no change in cpu clock or voltage)*

3. Replace existing framework-res.apk with the one attached. I use aroma file manager in recovery to do it. You can also do it using adb shell. Root explorer also can but not recommended. Clear dalvik cache after replacing it just to be safe.

Cant make zip for you, on mobile now.

View attachment 2976882

View attachment 2976884
[Mi 3 Android Development] borx28:
On AICP 20141017 version rom I have noticed that the positioning sensor and the light sensor does not work well. Is that because it can be?
[Mi 3 Android Development] DroidBot:
for me, proximity sensor is not working (when recieving calls, screen is not getting off automatically) and rotation sensor too. And battery draining is bit high than aosp rom. But overall rom is very nice, going into deep sleep, kept it in my pocket also, no reboot so far since I flashed rom, almost 5 hours ago.
[Mi 3 Android Development] borx28:
What happens is that the previous version (20141015) did perfect works me.
[Mi 3 Android Development] DroidBot:
Don't know. I have flashed this rom first time. Maybe other members will help us in this situation. :confused:
[Mi 3 Android Development] i04055:
You guys are working hard....

I wish I have enough knowledge to help you.....
[Mi 3 Android Development] audahadi:
Check your sensor if working @ not..no problem here..clean @ dirty flash

Note : next time be more informative..attach logcat @ dmesg ..etc

[MENTION=4343370]feed3[/MENTION] what change in framework-res?
[Mi 3 Android Development] srvoleti:
[MENTION=4898058]audahadi[/MENTION] Any chance of getting update for the excellent AICP ROM today fixing high battery consumption sir ? And many thanks for the excellent work.
[Mi 3 Android Development] feed3:
[MENTION=4898058]audahadi[/MENTION], power_profile.xml. But i have a feeling it is not enough. Right now i'm testing the changes in other places too.
[Mi 3 Android Development] audahadi:
What change? Compare can't see the different
[Mi 3 Android Development] feed3:
View attachment 2977879

The original codes

<item name="none">0</item>
<item name="screen.on">100</item>
<item name="bluetooth.active">142</item>
<item name="bluetooth.on">0.3</item>
<item name="bluetooth.at">0.01</item>
<item name="screen.full">160</item>
<item name="wifi.on">4</item>
<item name="wifi.active">120</item>
<item name="wifi.scan">220</item>
<item name="dsp.audio">88</item>
<item name="dsp.video">88</item>
<item name="radio.active">300</item>
<item name="gps.on">170</item>
<item name="battery.capacity">3050</item>
<item name="radio.scanning">70</item>
<array name="radio.on">
<value>3</value>
<value>3</value>
</array>
<array name="cpu.speeds">
<value>300000</value>
<value>422400</value>
<value>652800</value>
<value>729600</value>
<value>883200</value>
<value>960000</value>
<value>1036800</value>
<value>1190400</value>
<value>1267200</value>
<value>1497600</value>
<value>1574400</value>
<value>1728000</value>
<value>1958400</value>
<value>2265600</value>
<value>2457600</value>
</array>
<item name="cpu.idle">2.8</item>
<array name="cpu.active">
<value>66.6</value>
<value>84</value>
<value>90.8</value>
<value>96</value>
<value>105</value>
<value>111.5</value>
<value>117.3</value>
<value>123.6</value>
<value>134.5</value>
<value>141.8</value>
<value>148.5</value>
<value>168.4</value>
<value>168.4</value>
<value>168.4</value>
<value>168.4</value>
</array>

The one i used

<item name="none">0</item>
<item name="screen.on">48.07</item>
<item name="screen.full">221.90</item>
<item name="bluetooth.active">93.52</item>
<item name="bluetooth.on">0.79</item>
<item name="wifi.on">3.5</item>
<item name="wifi.active">73.24</item>
<item name="wifi.scan">75.48</item>
<item name="dsp.audio">0.1</item>
<item name="dsp.video">0.1</item>
<item name="gps.on">90.8</item>
<item name="radio.active">185.19</item>
<item name="radio.scanning">99.2</item>
<item name="battery.capacity">3050</item>
<array name="radio.on">
<value>1.16</value>
<value>2.15</value>
</array>
<array name="cpu.speeds">
<value>300000</value>
<value>422400</value>
<value>652800</value>
<value>729600</value>
<value>883200</value>
<value>960000</value>
<value>1036800</value>
<value>1190400</value>
<value>1267200</value>
<value>1497600</value>
<value>1574000</value>
<value>1728000</value>
<value>1958400</value>
<value>2265600</value>
</array>
<item name="cpu.idle">3.2</item>
<item name="cpu.awake">17.4</item>
<array name="cpu.active">
<value>57.9</value>
<value>88.2</value>
<value>99.6</value>
<value>138.8</value>
<value>149.6</value>
<value>170.2</value>
<value>178.3</value>
<value>189.1</value>
<value>232.1</value>
<value>256.5</value>
<value>266.4</value>
<value>287.7</value>
<value>325.7</value>
<value>386.2</value>
</array>
[Mi 3 Android Development] feed3:
Made further changes to the kernel and framework (kernel i just made minor changes). This is easily the longest deep sleep in the pocket I've got so far. From total 1+ hour deep sleep, 45 - 50 mins is in my pocket.

Lets see how long it can go without SoD and self reboot this time.

Last time i can get more than 8 hours deep sleep in total but never exceed 5 - 20 mins deep sleep in pocket.

View attachment 2977921
[Mi 3 Android Development] srvoleti:
Oh! Very Nice! Waiting for further info on your continuous efforts to stop SoD and many thanks for your work.
[Mi 3 Android Development] krispuniq:
Looks like we are close to nailing this SOD issue.. Way to go! I am pretty excited about your tests :highfive:
[Mi 3 Android Development] jackeagle:
AICP Is updated to V7 now in my Thread here
[Mi 3 Android Development] FcukBloat:
I'm not sure, but i thought [MENTION=4898058]audahadi[/MENTION] made a aicp build too. if that's true, can i ask what's the difference between this and his aicp? sorry but I'm pretty confused now.. thanks!! :)
[Mi 3 Android Development] praveen7682:
Audahadi is v6 and this one is v7...
[Mi 3 Android Development] DroidBot:
Thanks a lot :) ...can you please give some change log about v7??

is it continuation of audahadi's rom OR its different work from you??

coz random reboots are almost gone in audahadi's rom...Thanks in advance. :) :o
[Mi 3 Android Development] jackeagle:
Mixed u can say has my addition are there thanks to audahadi for some commits.... My Is bit different coz I m official maintainer of AICP :) Changelog will b up soon.... If any issues let me know will try to solve it.. :)
[Mi 3 Android Development] DroidBot:
Thanks :) :) its sounding very nice, and I am very eager to flash it. :) :good:

But download is toooo slow, can you upload it on gdrive??? Thanks in advance
[Mi 3 Android Development] feed3:
Dont put your hope too high just yet.. In clean state, it is working just fine with no SoD AT ALL. But started behave differently once i start installing my frequently used apps after that. I dont know where else to look at now..........
[Mi 3 Android Development] krispuniq:
Is XPosed Module one of your frequent apps?
[Mi 3 Android Development] Hadi al-Haiqal:
Btw gravitybox not working in this rom..
[Mi 3 Android Development] audahadi:
Anyone use NFC? Is it working properly?
[Mi 3 Android Development] gau20:
No reboots using it from 7-8 hrs
[Mi 3 Android Development] Shyam Lohar:
Which build ?
[Mi 3 Android Development] gau20:
Aicp v7

I was cleaning my screen and this happened

20%+ battery drop in few seconds
[Mi 3 Android Development] wai10691:
May I ask what font are you using?
[Mi 3 Android Development] feed3:
No, xposed is always the last thing i will install if i want to test. That apps is whatsapp.
[Mi 3 Android Development] gau20:
i think it is comforta downloaded from some xda thread
[Mi 3 Android Development] CodeMax:
cant install apk files in latest(20141015)build

thank you very much for your hard work. Today I downloaded the rom and when tested i was unable to install apk files and cant update apps using play store..... found FC related to external storage. Except that its very nice...

now downloading 20141015(beta 4)
[Mi 3 Android Development] Ivyn87:
This is a wonderful news from PA team on G+

Dynamic System Bars for all!

This week, we decided the time has come. The time of open-source Dynamic System Bars (DSB). This doesn't mean much for you if you just use the releases day to day on an official device. What this means is that unofficial builds (be it personal or 'unsupported' device), can pick the appropriate commits providing even those builds with DSB. Keep in mind that DSB is not merged into the main kitkat branch as of right now and must still be manually merged from Gerrit.

Change I3bc7102b: https://gerrit.paranoidandroid.co/4787

Change Id2b105df: https://gerrit.paranoidandroid.co/4788

Take care and #stayparanoid !﻿
[Mi 3 Android Development] feed3:
Repacked kernel..

View attachment 2980680

This make the governor correctly selected to interactive. Or else, some app will recognize the governor as unknown.

[MENTION=4898058]audahadi[/MENTION], can you make some changes to the framework in next build?

bools.xml:

To fix the location setting (if you choose battery)

starting at line 59.

<bool name="config_enableNetworkLocationOverlay">true</bool>
<bool name="config_enableFusedLocationOverlay">true</bool>

arrays.xml:

starting line 357:

<string-array name="config_statusBarIcons">
<item>ime</item>
<item>sync_failing</item>
<item>sync_active</item>
<item>location</item>
<item>bluetooth</item>
<item>nfc</item>
<item>tty</item>
<item>speakerphone</item>
<item>mute</item>
<item>volume</item>
<item>wifi</item>
<item>cdma_eri</item>
<item>phone_signal_second_sub</item>
<item>data_connection</item>
<item>phone_evdo_signal</item>
<item>phone_signal</item>
<item>battery</item>
<item>alarm_clock</item>
<item>secure</item>
<item>clock</item>
<item>headset</item>
</string-array>
<integer-array name="config_masterVolumeRamp">
<item>0</item>
<item>5</item>
</integer-array>
<string-array name="networkAttributes">
<item>wifi,1,1,1,-1,true</item>
<item>mobile,0,0,0,-1,true</item>
<item>mobile_mms,2,0,2,60000,true</item>
<item>mobile_supl,3,0,2,300000,true</item>
<item>mobile_dun,4,0,2,300000,true</item>
<item>mobile_hipri,5,0,3,300000,true</item>
<item>mobile_fota,10,0,2,300000,true</item>
<item>mobile_ims,11,0,2,300000,true</item>
<item>mobile_cbs,12,0,2,300000,true</item>
<item>bluetooth,7,7,2,-1,true</item>
</string-array>
<integer-array name="config_protectedNetworks">
<item>10</item>
<item>11</item>
<item>12</item>
<item>14</item>
</integer-array>
<string-array name="radioAttributes">
<item>1,1</item>
<item>0,1</item>
<item>7,1</item>
</string-array>
<integer-array name="config_data_usage_network_types">
<item>0</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>10</item>
<item>11</item>
<item>12</item>
<item>14</item>
</integer-array>
<string-array name="config_tether_usb_regexs">
<item>rndis0</item>
</string-array>
<string-array name="config_tether_wifi_regexs">
<item>wlan0</item>
</string-array>
<array name="config_tether_wimax_regexs" />
<string-array name="config_tether_bluetooth_regexs">
<item>bt-pan</item>
</string-array>
[Mi 3 Android Development] audahadi:
No problem...also please give ramdisk changes.. Will build later..new build come with DSB from PA...most of users waiting for that I guess.
[Mi 3 Android Development] sivabommakanti:
Me first
[Mi 3 Android Development] feed3:
Will do, first thing tomorrow morning..
[Mi 3 Android Development] audahadi:
No need..unpacked..[emoji16] building night
[Mi 3 Android Development] Trinaaa:
I just have one thing to say: we all have to be happy that you put so much work into this project! Dedicated mostly to audahadi and feed3. Thank you!