yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] Flounderist:
Hi and Merry Christmas!

Actually I just cloned 7.0 branch from Daniel's git, then I compiled using GCC 4.9.

zImage has been repacked in los boot.img using the img repacker tool.

I tried to repack using Daniel's ramdisk, but I had bootloop (last kernel was for MM).

I tried slight and heavy OC and I found device getting warm quite fast, even on simple tasks.

Didn't tried UV, but the voltage tables appears in kernel adiutor.

I noticed the CPU is very less stressed on idle.

I hit 9 days battery life, most of them in deep sleep status.

You can follow the build guide I posted with the boot.img.

My understanding is that 3.1 kernel or device HW itself has severe limitations in managing 5.x and above ROMs.

Feel free to ask for any information.
[Nexus 7 Android Development] aaopt:
Hey, I never said data! Though I was forced to wipe data once over the past year, pretty much on each device in my household running los, usually I am offended by the idea.
[Nexus 7 Android Development] aiamuzz:
turns out the issue was with the CWM recovery i had flashed ... with great difficulty i got the TWRP recovery installed ... on first attempt i did not succeed (gapps was installed though but the flash didn't seem clean) ... on second attempt i flashed the ROM and Gapps file back to back in the same recovery session and i was able to successfully boot into the LiOS ... the account has been setup right from when it boot up ... test driving it for now ... setting up my app environment.

a good experience [MENTION=3729448]aaopt[/MENTION] ... thank you !!!
[Nexus 7 Android Development] Lostlam:
Will give this ROM a go
[Nexus 7 Android Development] Flounderist:
Hi all,

here is a new build of Daniel_HK Kernel.

The previous build showed messed frequencies and voltages in Kernel adiutor, now it seems to be fixed.

Flash it as a boot.img on TWRP and don't forget to backup before flashing!

As usual, kudos to [MENTION=2188693]AndDiSa[/MENTION], [MENTION=4948627]daniel_hk[/MENTION] and [MENTION=4544860]osm0sis[/MENTION].
[Nexus 7 Android Development] Astra7525:
Running this kernel now. It feels better but that might just be the placebo effect. At the very least my tablet hasn't caught on fire (= broken down) after flashing this kernel.
[Nexus 7 Android Development] aiamuzz:
the toggle buttons(big ones) do not switch ON/OFF the wifi ... instead it opens up the settings for the wifi.

the shorter quicknav buttons do work as intended ... they switch ON/OFF wifi.

arent the bigger ones supposed to have the same behaviour as the smaller ones ?
[Nexus 7 Android Development] mt12345:
if I use f2fs I dont have to run fstrim or it will not work?? :confused:
[Nexus 7 Android Development] hackintosh5:
F2fs and fstrim are mutually exclusive(I think)
[Nexus 7 Android Development] nildex:
I'm very grateful for the work some of you guys have been doing.

I installed a Lineage build on my Tilapia (with 3G connectivity) weeks ago, and since I'm repairing my phone I'd need a place where to use my SIM card. Perhaps I'm not the only one, and there's actually some need for the 3G module. Has any of you included it in some of their builds? I have scrolled the thread but there are many messages, so I wasn't able to check them all.
[Nexus 7 Android Development] Flounderist:
You could give a try to AndDiSa AOSP ROM.
[Nexus 7 Android Development] nildex:
Which is what I did tonight ;). Apparently the system interface works way more smoothly with the AOSP build, but it is a bare bone ROM and I miss the added features in Lineage: no battery percentage on the top bar, no double tap for locking the screen, no button overrides, hideable bottom bar and probably much more.

However, I casually figured out a way to switch quickly between two applications, and that is by pressing twice the square-shaped soft bottom at the bottom of the screen. I didn't even need to configure it.
[Nexus 7 Android Development] Flounderist:
At least your SIM is working with it :D

Did you noticed a big performance difference between the two ROMs?

I am planning a device reset and a new setup that could make me save some space on system partition. AOSP could be an option.
[Nexus 7 Android Development] nildex:
Yeah, although I had intended to switch ROM to use this tablet as a phone. Unfortunately I didn't recall that, quite possibly, the Nexus 7 was never equipped with a Dialer or even an SMS app. I successfully activated the 3G module but wasn't able to make or receive calls and SMS's. A third-party dialer app didn't do the trick too.

Well, with Lineage I immediately noticed a perceptible but not annoying lag in the interface, especially while scrolling lists, although everything else seemed to be working fast and flawlessly. The AOSP one felt like super-lightweight, and everything that I have tested so far runs fast, even the system interface with its lists.
[Nexus 7 Android Development] aaopt:
Not much testing yet, but so far this build feels faster to me. Also seems like Wifi is behaving better. What do you think?

(TESTING)20180121 (AndroidFileHost)

[MENTION=2188693]AndDiSa[/MENTION]'s January performance tweaks. LineageOS sync with January patches.
[Nexus 7 Android Development] Flounderist:
What about this mod?

https://xdaforums.com/android/software-hacking/mod-low-ram-property-patcher-android-t3737373

Do you think it could be helpful for grouper performance?
[Nexus 7 Android Development] aiamuzz:
i would like to know too ... if it optimizes our low RAM device too ?

:)
[Nexus 7 Android Development] Pally01:
I tried to flash the zip but failed with a CODE 4 or something like that.
[Nexus 7 Android Development] hackintosh5:
Something like that doesn't really help...

GIVE US THE DETAILS, INCLUDING THE ERROR MESSAGE, OR HOW DO YOU EXPECT US TO HELP YOU???!!!??
[Nexus 7 Android Development] fsw_informatrix:
I've juste dirty flashed the 20180121 build over the 20171122 one and didn't got ANY error. It seems faster to me too for now, but I still have to test It further...

Thanks a lot for your work :good:
[Nexus 7 Android Development] Pally01:
Shout much, loser? Go **** yourself and yell at your cat or your wife.
[Nexus 7 Android Development] JT1510365:
please note its against xda rules to harass other users i could report you if i wanted too
[Nexus 7 Android Development] scottysau:
Never mind its been mentioned above.

Appreciate your time on this device.
[Nexus 7 Android Development] MrHaroldA:
I already reported him and his anger problem.
[Nexus 7 Android Development] JT1510365:
Oh sorry i didnt know that my bad
[Nexus 7 Android Development] pieceofphil:
fantastic work as always, slight improvement no problems so far.

I'm very happy that someone updates our old device, thanks for that.

hopefully this thread will not be flooded by more unkind language, that's very discouraging for a developer.
[Nexus 7 Android Development] aiamuzz:
True ... some people are like that ... they just don't get the opensource/community powered ecosystem at all !!!
[Nexus 7 Android Development] Alex_Lyt:
[MENTION=3729448]aaopt[/MENTION]

Do i need to reflash gapps after rom dirty flashing?
[Nexus 7 Android Development] aiamuzz:
even i wasn't sure ... i flashed gapps anyways ... faced no issues ... the apps and data from the previous build continues over to this build .
[Nexus 7 Android Development] mrm1:
I just flashed the rom over the top, without gapps, wiped dalvik, rebooted and all good so far.
[Nexus 7 Android Development] aiamuzz:
i guess works as intended ... i had flashed gapps as i had formatted /system before flashing this latest build ... as gapps are installed to /system ... i went ahead and installed gapps ...
[Nexus 7 Android Development] mrm1:
To be honest, thats probably the best way to do it, can save a lot of issues later on.
[Nexus 7 Android Development] Alex_Lyt:
It is clean flash, not dirty )

Anyway, reflashed gapps as well. Works better, than before. Thank you, Dev!
[Nexus 7 Android Development] meldor54:
Quick Question

HEY everyone, long time lurker, first time poster.

(i'm well versed in messing with computers and what not, but aren't a android DEV, just so you know)

i get the whole unlocked boot loader/ADB flash rom... etc etc.

what i don't get is how to update.

say i'm updating from: lineage-14.1-20171122

to: lineage-14.1-20180121

should i clear everything?? (Wipe system, cache, dalvik.), when all i'm doing is update the same rom. can i just flash it without clearing anything??

do i need to reflash gapps before first boot again??

and most importantly does this carry over personal data(by which i mean apps etc, i know my actual personal('sdcard') will remain safe.

i've flashed roms before but never manually updated (previous device had 'official' custom rom so received 'on device updates')

thanks and sorry if that's be asked a million times before.
[Nexus 7 Android Development] Flounderist:
Just flash new ROM from install menu in twrp. Once completed, twrp will prompt to wipe cache and dalvik. Swipe to confirm, then reboot.
[Nexus 7 Android Development] pieceofphil:
remember the next boot after updating can take some time especially if you wipe dalvik and cache
[Nexus 7 Android Development] hackintosh5:
Which you have to do, or there may be google play services has stopped or other crashes!

Just noting, as your post sounded like it wasn't neccesary!;)
[Nexus 7 Android Development] phoenix_wnd:
performance issues

hey!

i use this rom as a daily driver and had performance issues after some time with every rom >android 4.4.

so i tried some things and what helped best was:

-installing busybox

-enabling cron

-adding these lines to crontab:

0/15 * * * * echo "1" > /proc/sys/vm/drop_caches
0/15 * * * * echo "2" > /proc/sys/vm/drop_caches
0/15 * * * * echo "3" > /proc/sys/vm/drop_caches
0/15 * * * * fstrim -v /cache
0/15 * * * * fstrim -v /data
#eof

without going into deep details: every 15mins i'll drop several caches and will execute a fstrim command for both cache and data.

keeps my nexus 7 fresh with lineageos.

just for discussion and try-out.

*edit: better save a copy of crontab before every time you update rom so you can copy it again after...
[Nexus 7 Android Development] tech927:
Lineage 14.1 on Nexus 7 Tilapia

Is this rom workable on the nexus 7 tilapia model? For me I will just use it as a tablet, not a cell device, so the 3G connectivity is not important to me. I'm wanting to update it to android 7.x and have the latest security patches.

A guide appreciated.

Currently I can't get twrp 3.0.2-0 to stay on the tablet, it keeps getting overridden.

Thanks.

Dave.
[Nexus 7 Android Development] danja95:
i want a image for tilapia too! i found a image on androidhost, but i cant boot from it.
[Nexus 7 Android Development] pieceofphil:
download this rom on pc open the zip with 7zip and go to the mentioned directory, drag and drop the updater script on the desktop and open it in a text editor. change all the grouper into tilapia (should be three or four search only in the first line) and save the file without an extension (no txt or doc).

then delete the updater script in the 7zip directory and drag and drop the modified updater script from the desktop in that directory in 7zip.

now you can put the zip file on your Nexus and it should flash without errors.
[Nexus 7 Android Development] meldor54:
can't speak for tilapia, but TWRP 3.2.1-0 working seeming fine, on grouper.

are you updating from within TWRP or from fresh (e.g. flash recovery twrp_image.img)

remember, you need to boot into recovery on first boot after flashing recovery otherwise stock rom will just overwrite it with stock recovery again, and you'll have to flash twrp again.
[Nexus 7 Android Development] jpmaster:
Bug report on 20180121 build:

Settings - Security = Settings FC
[Nexus 7 Android Development] aiamuzz:
i am able to access the

Settings -> Security -> and all sub settings under Security without any problem !

you might want to to do a clean install ...

Format /System

wipe Cache and Dalvik

flash rom and gapps ... and you should be good with the all settings from previous build as you have not formated/wiped ... /data.
[Nexus 7 Android Development] fsw_informatrix:
[MENTION=6889348]jpmaster[/MENTION]: no problems at all with Settings / Security here on last ROM, I suggest you to follow the instructions of clean flashing that [MENTION=4399146]aiamuzz[/MENTION] just gave you. And dont forget to flash the last version of TWRP (3.2.1) in case you haven't already...
[Nexus 7 Android Development] pieceofphil:
I dirty flashed I have no problems with security settings, reboot and look if it is permanent. Else clean install.
[Nexus 7 Android Development] jpmaster:
Thanks for all the sugestions to my problem.

It seems like I'm the only one to have it.

Let me describe my actions:

- Dirty flash 20180121 on top of 20171122 - Settings FC

- Dirty flash 20180121 and open gapps after wiping system, cache and Dalvik cache - Settings FC

- Clean flash 20180121 and open gapps after wiping system, data, cache and Dalvik cache - Settings FC

- Restore backup of 20171122 - Everything OK.

Any sugestions ?
[Nexus 7 Android Development] Charles IV:
From the backup try clean flashing 20180121, and a logcat.

Maybe try backing up everything, then wiping data and clean flash. See if it persists.
[Nexus 7 Android Development] tech927:
Bluebourne and crack patches

Does this rom have the Bluebourne and crack patches integrated?
[Nexus 7 Android Development] Flounderist:
Hi all.

I would suggest you to use a nice Magisk module to install Gapps systemlessly. It is called MagicGapps and you will find it in the download section in Magisk Manager.

In order to get it working I made the following:

- Wiped cache, data, system, dalvik

- Flashed ROM and Magisk 15.3 ONLY

- Rebooted and set up device (no account set up at this stage)

- Granted root to Magisk and downloaded MagicGapps

- Rebooted in recovery and flashed MagicGapps.zip

- IMPORTANT - you must place an OpenGapps package in your \download folder before flashing the module. I used Pico.

- *tip* don't leave any file named as "opengapps" in download folder except the gapps package you want to flash.

- Once flashed, reboot device and access to PlayStore. It will take a little while to set up process to be loaded.

Performance: before trying this mod I dirty flashed the latest build and it was faster than the previous one.

I am using my kernel I posted some post before, so performance may vary.

Now that system partition has more free space, device improved a little more., I don't know if it is a placebo effect or a fresh-start side effect.

Maybe [MENTION=3729448]aaopt[/MENTION] or [MENTION=2188693]AndDiSa[/MENTION] could confirm if a lighter, less cluttered system partition can make device snappier.

The most noticeable change is in animation speed, or when switching from an app to another one.
[Nexus 7 Android Development] aaopt:
I'd guess that the main benefit came from wiping data, if you previously had less than 2gb free. In general use I'd expect free space on /data to matter more than free space on /system. If that's true then systemless gapps could turn out to be counter productive, if they install on /data instead.
[Nexus 7 Android Development] Flounderist:
This is my current device status, sorry for posting screenshot in my mother tongue but I assume information are intelligible.
[Nexus 7 Android Development] pieceofphil:
i think the only noticeable speed gains could come from an updated kernel or a somehow ported android go OS. Everything else will maybe make the device faster in special scenarios, but also be a culprit in others.
[Nexus 7 Android Development] astrod:
I wanted to share my experience. I dirty flashed the latest ROM and I do feel that it improved slightly in performance. But what also seemed to help a lot was disabling the Google play store, uninstalling Google search, and installing yalp store.
[Nexus 7 Android Development] eNVy:
The latest build is actually kinda slow for me. The touch is least responsive. It takes 2-3 touches to actually register.
[Nexus 7 Android Development] Flounderist:
It has been posted some a few pages before. ;)
[Nexus 7 Android Development] tuluse:
I think I'm experiencing a bug. If an app asks for permissions and I grant them it doesn't seem to take effect until I reboot the tablet.
[Nexus 7 Android Development] hackintosh5:
It doesn't seem likely that the issue is in the nexus 7 rom, but either the app or lineage.
[Nexus 7 Android Development] tuluse:
It's not really a big deal since rebooting fixes it, but I had the problem with Firefox and Nextcloud apps. Both work perfectly on other devices running non-Lineage Android.

It also was specifically permission to write to the filesystem with both. I haven't noticed any other problems.
[Nexus 7 Android Development] meldor54:
re: write permissions (BUG)

firstly can i just say IF what you are reporting is the same problem i had, it does NOT require reboot. you just need to close the app (completely/kill process or whatever), so it isn't running in background, next launch, permission changes take affect.

as far as i can tell this is an issue with lineage built in permission protection (NOT the default android based permissions).

write permissions when granted don't seem to take affect until next tie you run it.

my case also involved firefox, installed firefox, opened it, allowed permissions, tried saving(downloading), DL failed. went into settings, checked permissions and protection, all seemed fine, tried again, failed again, closed app/stopped process, opened firefox, tried again, download worked.

based on that i would say it's an issue with lineage protect.

just make sure you run an app at least once before actually using it, to allow write permissions to be set.

EDIT: incase it's not clear, when i say lineage built in etc..... i'm talking about 'Privacy Guard'.
[Nexus 7 Android Development] toeb:
Edit:

Woops I should have hit reload before posting. This is basically what what meldor54 said...

Original post:

I don't think this problem is specific to this rom, had it with others too. But you do not need to reboot. You can either use the app switcher to close the app or go to settings -> Apps and force close the app. Then open the app again.
[Nexus 7 Android Development] pieceofphil:
Use search function, the problem has been discussed before.
[Nexus 7 Android Development] Ahkah:
known problem

Unfortunately this is a bug various OSs on our device suffer from. For example see:

https://xdaforums.com/showpost.php?p=75015080&postcount=2148

https://xdaforums.com/showpost.php?p=75020742&postcount=2152

https://xdaforums.com/showpost.php?p=75025216&postcount=2154

It may be worth to add that in my application I developed a dedicated work around for this bug.
[Nexus 7 Android Development] leetripper:
I can't make it work with init.d. Do you have a solution? Does it work on your system?
[Nexus 7 Android Development] phoenix_wnd:
it's not INIT.D but CRON.D.

cron.d is a linux daemon to schedule tasks. it must be enabled and scripts must be written to the file CRONTAB.

there's a good app in play store (white icon with blue circle) if you're not too familiar with linux shell scripts.

and yes, in my system it works perfectly as i get a cron.d logfile where all successful jobs are listed.
[Nexus 7 Android Development] leetripper:
Yes, it works now
[Nexus 7 Android Development] chnapsy:
Hi,

I have the same slowliness issue and I'd be interested by trying your solution.

Just a stupid question, where do you add that ?

I edited my /system/xbin/crontab but it looks like a binary file ...

Thank for your help.

edit: just thought about using crontab -e, seems to do the job

Thanks for the tips ! :)
[Nexus 7 Android Development] hunabku94:
new version 2018-01-21

Thanks for your work aaopt !

https:// androidfilehost.com / ?fid=962187416754455327
[Nexus 7 Android Development] X-Flies:
Were you able to install BusyBox without problems?

I would like to try your approach but when I try to install BusyBox I only get unsuccessful as result.
[Nexus 7 Android Development] phoenix_wnd:
You'll need to install su-addon from lineage or similiar package to gain su permissions first of all, of course.

I used busybox stericson from play store, and it worked out w/o problems.
[Nexus 7 Android Development] X-Flies:
Root is not the problem I guess, I use magisk for root access.

It seems to be some kind of incompatibility between BusyBox and another tool like BusyBox that is already on the ROM... That's why I asked if you had problems.
[Nexus 7 Android Development] Danielmariuss:
Hello,

How does Tilapia go? Has no problems in 3G?
[Nexus 7 Android Development] pieceofphil:
This is not intended for tilapia/3g version. 3G is not working on this ROM (which you can't install on a tilapia without changes in the updater script).

Please search for a tilapia build, haven't found any good ROMs for it though.
[Nexus 7 Android Development] Dggrr:
OK, to answer my own question!

After "repo sync -c", but before running "brunch grouper":

In (for example) ~/LineageOS-14.1/kernel/asus/grouper/include/linux/if_packet.h line 176 downloads as

aligned_u64 seq_num;

but should be:

__aligned_u64 seq_num;

i.e add 2 underscore before aligned_u64

I'm not a c++ programmer, so not sure what is going on.

Make the change, then run "brunch grouper" to produce the zip and flash as normal, all works well.

Anyone else done a build in the last couple of weeks?
[Nexus 7 Android Development] JuGnO:
I am trying to install this and using lineage-14.1-20170108-UNOFFICIAL-grouper.zip for rom and I can even install a pico version of openGapps

what am i doing wrong?

I even tried to wipe system, data, cache, delvik, internal storage (everything) and then installed the rom and only 143mb of space remains in system which is even low for pico.

please help
[Nexus 7 Android Development] aaopt:
Please read OP again, especially the part about gapps-config-grouper.txt
[Nexus 7 Android Development] aaopt:
Yes, absolutely. That's one of the main benefits -- and risks! -- of building for yourself. To get an idea of what has changed in LineageOS source recently, you can look here.
[Nexus 7 Android Development] Charles IV:
Thanks, I plan on building again today and check out the new boot animation
[Nexus 7 Android Development] Charles IV:
i was wondering, if i was to make a custom kernel, how would i make only the kernel, is it

lunch aosp_grouper-userdebug

and then

make bootimage

. If so, how do i then customise it!?

EDIT: make bootimage works

---EDITED after flashing---

so i flashed the rom (that now has your name in it -aaopt) and everything working fine, with a booring boot animation, but my apps are saying i didn't have root. I went into developer options, clicked on root access, and the option to enable for apps is no longer there!

So - i can grant root for adb, but not apps, any help?

Ok, I've got it fixed. Lineage os' official builds come without root, and this is probably my problem from syncing the repos yesterday, but they provide a zip to root your device instead (that I can't find). However when building yourself, the command

export WITH_SU=true

should include root in the build, so I'm repo syncing and building again with that.
[Nexus 7 Android Development] rc86dss:
flash rom,but,unknown command?
[Nexus 7 Android Development] AndDiSa:
[MENTION=7952166]rc86dss[/MENTION] no need to quote the OP ...

Ignore those messages. TWRP 3.0.x is not 100% compatible to Android 7.x that's the reason, but flashing was fine though.
[Nexus 7 Android Development] rc86dss:
ok,tks
[Nexus 7 Android Development] EclipseX:
Arrr....where is the know bugs section
[Nexus 7 Android Development] min1968:
Is there LineageOS ROM for Nexus 7 3G 2012 ?
[Nexus 7 Android Development] Charles IV:
Backup (and make sure you do backup because this might not work) and try to flash this ROM, not sure if it will work. If not, try building yourself, just replace brunch grouper with

brunch tilapia

But I'm not sure if either will work.
[Nexus 7 Android Development] Dark Obsessions:
can i use this rom with F2FS ?
[Nexus 7 Android Development] Charles IV:
I think [MENTION=6723931]gordp[/MENTION] said it did.