yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] natostanco:
Hello, I was trying to tweak the hotplug governor (from trickster app).

These are the default values:

cpu_down_avg_times = 100
cpu_down_differential = 10
cpu_input_boost_enable = 1
cpu_input_boost_num = 2
cpu_num_base = 1
cpu_num_limit = 8
cpu_rush_avg_times = 5
cpu_rush_boost_enable = 1
cpu_rush_boost_num = 8
cpu_rush_threshold = 98
cpu_rush_tlp_times = 5
cpu_up_avg_times = 10
cpu_up_threshold = 90
down_differential = 15
ignore_nice_load = 0
io_is_busy = 1
is_cpu_hotplug_disable = 0
powersave_bias = 0
sampling_down_factor = 1
sampling_rate = 30000
up_threshold = 85

These are what I changed them to, I know I tweaked the rush values but the disabled it, I will see if I notice heavy stuttering without it.

cpu_down_avg_times = 200
cpu_down_differential = 20
cpu_input_boost_enable = 1
cpu_input_boost_num = 2
cpu_num_base = 1
cpu_num_limit = 8
cpu_rush_avg_times = 10
cpu_rush_boost_enable = 0
cpu_rush_boost_num = 4
cpu_rush_threshold = 80
cpu_rush_tlp_times = 10
cpu_up_avg_times = 20
cpu_up_threshold = 80
down_differential = 20
ignore_nice_load = 0
io_is_busy = 0
is_cpu_hotplug_disable = 0
powersave_bias = 0
sampling_down_factor = 40
sampling_rate = 40000
up_threshold = 80

I also can choose between cfq/deadline/noop as io schedulers, I am opting for deadline, and changed the tunable variables to:

add_random = 1
iostats = 0
nomerges = 0
rotational = 0
rq_affinity = 0
- - -
fifo_batch = 4
fron_merges = 1
read_expire = 300
write_expire = 1800
writes_starved = 1
[Android Q&A, Help & Troubleshooting] @Charllay:
what do these parameters mean?

cpu down avg times

cpu down differential

cpu input boost enable

cpu input boost num

cpu num base

cpu num limit

cpu rush avg times

cpu rush boost enable

cpu rush boost num

cpu rush threshold

cpu rush tlp times

cpu up avg times

cpu up threshold

down differential

ignore nice load

io is busy

is cpu hotplug disable

sampling down factor

powersave bias

sampling rate min

sampling rate

up threshold

please describe them. I'd like to tweak my CPU to get better performance and better battery life
[Android Q&A, Help & Troubleshooting] Sjarg:
What are the result of the test?
[G4] homer454:
Well I went on to the Wizard Love ROM then to WM6 on my G4 8125. I have gotten everything working perfectly but when I boot my phone up, the splash screen from the Wizard Love ROM is still there. Is there anyway to change the splash screen?
[G4] the-equinoxe:
You can use my tools:

Link
[Android General] RAMChYLD:
The modifications to the way locale is set means that Bluetooth HID like keyboards can pair but cannot work since it cannot be set to be used for input (the options to change or add keyboard layouts is disabled in the Android settings screen and instead is selected from LeapFrog's own screen which divides the world into 7 regions- US, UK, Canada, Australia, New Zealand, Ireland and Other. When you pick Other it forces the UK keyboard and locale on you, which is ridiculous since some countries uses varying combinations of either (for example, Philippines uses US English 100%, while Malaysia uses UK English but US Keyboard). However bluetooth does work with A2DP devices.

Yeah, the CPU-Z and AnTuTu benchmark are my doing. I am the friend Blake mentioned. I should add that the device ran the Project Anarchy demo in AnTuTu somewhat well, averaging at 15fps.

MTK's spec sheet mentions that the SoC also has GPS and FM Radio, but I suspect that both are disconnected on the device since Android doesn't detect them.

The option to enable installation of packages from untrusted sources is still in the android security screen in settings tho, and you will be instructed to turn it on as part of the steps to install the Amazon AppStore.
[Android General] blakegriplingph:
I actually emailed LeapFrog as to whether they can release a tarball to the MTK kernel sources they used, and I'm keeping my fingers crossed but since they had a history of doing so in compliance with the GPL (c.f. the links to Didj/Leapster sources on eLinux provided by none other than LF themselves), I have high hopes for custom ROM development or at least some mods for the device.
[Android General] RAMChYLD:
Well, my only problem with the device is that the input method and locale selection is locked down and selected by the "Device Locale" screen, instead of allowing the much more granular selection allowed from the Android settings screen itself. I have determined that the same lockdown prevents bluetooth keyboards from pairing properly with the device. Also, several apps defaulted to downloading videos from UK servers instead (ie BabyFirst TV, Fisher-Price Puppy Player and Little People Player) and thus have what I perceive as "wrong voices".
[Android General] blakegriplingph:
I'm still waiting for LeapFrog's reply concerning the kernel sources, and if all goes well we'll be golden.
[Android General] RAMChYLD:
Good luck.
[Android General] blakegriplingph:
Well, drat. Leapfrog's asking me for a mailing address so they can send me the source CDs. Problem is I am wary of the postal servce here at my place, so is there anyone who's willing to get the sources?
[Android General] laalaa1987:
So I bought one of these leap pad epics. Got it at toys r us. It was a return so open box. They gave it to me for $70 (they retail for $169.99+tax) because the last person who owned it left their passcode on it. I can't figure out how to get it off. Any ideas??
[Android General] RAMChYLD:
Hang in there. I've contacted Leapfrog via Facebook and am awaiting a reply.
[Android General] blakegriplingph:
Wouldn't doing the standard factory reset procedure be enough for that (as with those who ended up flinging way too many patterns on their device), or is there anything special that's needed to be done?
[Android General] RAMChYLD:
Okay, got a reply. Go into the parent screen to bring up the pin entry, then enter 4 1 9. Now, when your cursor is in the last textbox, hit the backspace and enter 2 7. Apparently this is a hidden backdoor that Leapfrog puts into the system for cases like these (ie improper returns).

I've tested it, entering 4 1 2 7 upfront doesn't work. It has to be 4 1 9 <backspace> 2 7.

As for doing a factory reset, well, It's a catch 22 situation- to get into the settings screen, you need to enter the password first - they actually modified the settings app. If you don't have the password, well, you're SOL unless you call Leapfrog support, who will probably give you this code anyway. If the ADB interface is up, you could probably do it from there, but I'm not sure if it is.
[Android General] blakegriplingph:
Hmm, now I'm wondering if there's someone who's up to doing an SP Flash Tool dump of the device.
[Android General] blakegriplingph:
Good news: RAMChYLD just got his hands on the source tarball, and as such he gave me a link to the ISO containing the kernel sources, ripped off the disc LeapFrog mailed to him recently:

Said link to the sources can be found on the first post, in case you guys are interested. :D
[Android General] RAMChYLD:
Actually, Blake did the bulk of the work, talking to Leapfrog and arranging the CD to be sent to me. But yeah.
[Android General] blakegriplingph:
Yup, pretty much. Though to tell you one thing, I was a bit worried that the sources either wouldn't arrive in time or not at all.
[Android General] XbooX08:
You can factory reset by holding down Power + Volume Up at boot.
[Android General] blakegriplingph:
Is any one of you guys here interested?
[Android General] alienundies:
I will be. I'll be buying my son one this weekend.
[Android General] blakegriplingph:
If you could provide an SP Flash Tool dump of the stock ROM it'll be golden., along with a TWRP/Clockwork recovery image. I really wish that I could get my hands on one, but the local Toys R Us here sells it for like twice the price even though it's just some glorified MediaTek device made with children in mind.
[Android General] RAMChYLD:
Does that work? They even went as far as to disable the ability to screenshot with power + volume down until I installed an app to re-enable it.

+1. The Asian importers for the device are charging way more for it over here than the device sell for in the US. It's going for an insane RM1000 at Toys R Us and Hamleys here. Which imo is ridiculous given that there are vendors selling (malware-laden) Chinese tablets for less than a fifth of that.
[Android General] gerryl432:
I could send commands such as fastboot boot boot.img and it says success transmission but wouldnt reboot. Tried fastboot flash boot boot.img and got a security 0x00 (forget the actual code) error.
[Android General] blakegriplingph:
So the bootloader is locked then, as what I've observed. LeapFrog somehow had fastboot mode nerfed, and it's ironic as they did release the sources out of GPL compliance. This basically calls for hacking the LK/uboot that came with this unit, and ideally the preloader to get rid of the signature enforcement.
[Android General] blakegriplingph:
Hmm, you know anyone who can put this through IDA Pro or something? I have a uboot.bin from another MT8127 device which we might be able to mess around with.
[Android General] gerryl432:
Unfortunately I do not. I may try to mess around with different versions of fastboot to see if I can at least get it to reboot when I get some free time.
[Android General] blakegriplingph:
Try flashing fastboot binaries from similar MT8127 devices. You could try using one from the Nabi SE which I have the firmware uploaded, assuming you have a complete EMMC backup of your Epic at hand.
[Android General] gerryl432:
Yes I did a backup on v1 firmware. I'm currently on v2 academy edition.
[Android General] blakegriplingph:
Alright, let me know how your fastboot/uboot adventures go mate. ;)
[Android General] blakegriplingph:
Installing TWRP, Google Apps and Root on the Epic

And here's the TWRP/root/Gapps tutorial you've all been waiting for:

[youtube]56XdXJbFbjQ[/youtube]

I tried to make the video as easy to understand as I possibly can, but if you run into anything, kindly let me know. ;)

[MENTION=7849239]Hitek146[/MENTION]: If you have the time, please let me know if we could do at least a basic, text-based guide on this and other essential stuff for the Epic. Been looking forward for the documentation you promised lol. :P
[Android General] x_orange90_x:
I just tried this tonight on my son's brand new Epic Academy Edition and it's now bricked. I BARELY did anything to it, but I was following the directions. I opened the Preloader file in SP Flash, unchecked everything, opened the TWRP image in the RECOVERY line, hit DOWNLOAD, connected the device while off and holding Volume Up button. After this the bottom status bar in SP Flash turned red and said Download 100% and it stayed this way for about 2 minutes. Then it gave an Error window (sorry I have no idea what it was), and after this the device will not power on at all. I've tried everything I could think of but it never turns on. When I connect it to the computer it pops up in Device Manager as FabulaTech USB, but SP Flash never detects it and I can't do anything with it.

As I said it's BRAND NEW out of the box and I'm quite upset that it's now bricked.

Any help would be greatly appreciated.
[Android General] blakegriplingph:
Did you by any chance see a green check box of some sort after it went 100%? Also, you should have done a full readback of the Epic's ROM first beforehand. I'm certain this is still recoverable since I presume you haven't touched anything other than the recovery partition.

Do you have an instant messaging account which I can contact you with?
[Android General] gerryl432:
Did you do a full backup before starting?
[Android General] x_orange90_x:
Thanks for the reply. You are correct, I didn't do anything other than the recovery. And no, there was never a green check box, nor did the bar ever change to yellow like in the video (where it says Flashing). It just stayed red saying Download 100% until it gave me the error. I didn't do any backups because I didn't know how, I thought you had to actually have TWRP already flashed before backup was possible.

I used to have Yahoo IM, but that was years ago. I have Facebook Messenger though. I will send you a PM on here now.

EDIT:

Thanks [MENTION=4092918]blakegriplingph[/MENTION] for helping get my EPIC working again! For anyone else with this issue, you remove the back cover and unplug the battery for a few seconds, then plug it back in and it should boot up afterwards.
[Android General] blakegriplingph:
Check your inbox mate, I'm certain this can still be fixed as [MENTION=543591]RAMChYLD[/MENTION] had a similar issue if I may recall when he and I did a firmware dump from his unit.
[Android General] gerryl432:
Is it possible to create a flashable zip through superr kitchen. I tried to make one but got stuck at boot animation. Kind of a noob at making flashable zips but I've made a couple my Samsung s5
[Android General] blakegriplingph:
What flashable zip are you trying to make?
[Android General] gerryl432:
Just the regular academy rom stock rooted.
[Android General] blakegriplingph:
Alright, though would it be more convenient to just shove in a root package? Or did you do more than just that?
[Android General] x_orange90_x:
Has anyone managed to get Majisk working on these tablets? A pre-rooted ROM with Majisk built in would be awesome.
[Android General] gerryl432:
I tried to. But got an error 9 at the end of the flash through twrp. Lcd connector is broken as my daughter threw it on the ground lol. I tried to fix it but looks like this is the end..
[Android General] blakegriplingph:
How serious was the damage? Was the logic board traces messed up in some way? I was wondering as I could refer you to parts units on eBay or something.
[Android General] gerryl432:
It's somewhere near or just under the big connector ribbon on the LCD cause when I push down on it sometimes it will turn on and I tried to wedge something to put pressure down but I may just purchase another one cause my daughter seems to like it a lot. Anyway here is the zip file of you want to play around with it, like I said I get error 9 but maybe it can be fixed somehow.

EPICv2_1.1.95.20171215.140555.zip

https://drive.google.com/file/d/1Qn_VVazBK6UeNt17oKwShFL8PhufCWZ5/view?usp=drivesdk
[Android General] blakegriplingph:
So I presume you'll just fetch another Epic then? Buy a demo or DISA-locked unit, converting those to Academy Edition shouldn't be that hard and they're cheap.
[Android General] gerryl432:
ill look into it
[Android General] x_orange90_x:
If you have a Toys R Us nearby go there ASAP. I got my son's Epic Academy Edition on sale for $48 a couple weeks ago. Now they're having even greater discounts, so if you're lucky enough that they still have one you might get it rediculously cheap. They even had Nabi Elev-8 for around $75..
[Android General] blakegriplingph:
That or any of them Nabi SE editions which should go for $50 at Frys, perhaps even less at TRU. Nabi still hasn't released the kernel sources for the SE yet, though it has an updated version of Android and a less restrictive bootloader config. Not to mention you could use Magisk with it. ;)
[Android General] iqdotcom79:
stuck in boot loop

blakegriplingph,

I follow your video, and i was able to finish the step where i see the OK button, and were able to boot into the Epic. But after i power it down and turn it back on, it went to boot loop between leap frog logo and black screen. Try holding the power button, power button + Vol up, and power button + Vol down. nothing work, i can't even turn off the tablet.

any idea?

thanks
[Android General] blakegriplingph:
Which video is it? The TWRP one? And which Epic edition are you using right now, regular or Academy?
[Android General] scugnizz:
same problem
[Android General] blakegriplingph:
What were you trying to do if you don't mind telling? And did you perform a complete ROM_0 backup before attempting anything?
[Android General] SPAC3GH057:
Fresh to the issue

I'm having trouble locating the stock firmware image so that I can try to convert this unit to a retail one. I don't want to root it or put any new software other than what's native to the Epic tablet it's just for my kids.
[Android General] blakegriplingph:
Can you contact me on the LeapFrog Epic Guy Facebook page?
[Android General] DrPhant0m:
A few quick questions...

>How can I back up everything on my son's tablet? This tablet is about to die, and I don't want his game progress, pictures, videos, etc to be lost forever.

>Is there a procedure to follow to get root access, TWRP, etc? I see the links in the OP, but I'm not clear on how to use what I see.

I'm sorry... I literally don't have much time to delve into it, because I barely breathed life into his tablet with a poor resoldering of the power button that worked just long enough for me to power it on. Now the button doesn't work again, so I set the display time out to 30min, and I have to tap the screen every 29min or less to keep it from turning off forever.

I'm posting here because I want to know how I can back it up, and what my options are in case I'm able to get it to power on more consistently.

Thanks much!
[Android General] blakegriplingph:
Lol so you're the guy who messaged me on Facebook lately. Glad to be of service mate. :)
[Android General] DrPhant0m:
Haha. Yep. That's me!

Thanks again!
[Android General] blakegriplingph:
Cheers mate! I'm so itching into getting at least a pure AOSP Kitkat port on this tablet, but my connection's too crap to download all the source files. :/
[Android General] blakegriplingph:
And here's the demo-to-retail conversion tutorial that everyone's been waiting for... or maybe not.

https://huckleberrypie57.blogspot.com/2018/12/and-i-came-in-for-another-leapfrog-epic.html
[Android General] blakegriplingph:
CyanogenMod for the LeapFrog Epic

I'm currently trying to get this thing to compile and hopefully boot:

https://github.com/huckleberrypie/android_device_quanta_narnia

Any volunteers who can help out with the build issues I am facing right now?
[Android General] Qiangong2:
Possibly. I found the epic on Ebay recently. It would be nice to get at least lineage 11 on it.
[Android General] blakegriplingph:
I was able to get CM12.1 to sort of work, but for whatever reason SystemUI and other apps just hang up on RenderThread and don't show up at all. Also, you better make a full ROM_0 backup of the tablet's EMMC just for insurance's sake before you do any development work.

There's a kernel source for the tablet available, but while the drivers appear present and accounted for, the sources are still incomplete and uncompilable unless you take the time on updating it to let's say 3.10.
[Android General] Qiangong2:
That tends to happen with mediatek sources. Usually there are specific configs they use tied outside of the kernel tree. Have you tried just adding the needed drivers to an already functional kernel tree? Like from team MAD?

---------- Post added at 08:28 AM ---------- Previous post was at 08:17 AM ----------

Might want to check out here: https://github.com/ggow/android_kernel_amazon_mt8127-common

Maybe you can merge trees with them
[Android General] blakegriplingph:
What about the GPIO stuff? Afaik that also has to be well accounted for as well.
[Android General] Qiangong2:
GPIO should be similar for all devices with the same cpu.

Btw, what's the kernel defconfig?
[Android General] blakegriplingph:
Yeah, but different LCMs/touch panels use different pins, right?

Here's a mirror of the sources LeapFrog gave me:

https://github.com/huckleberrypie/android_kernel_quanta_narnia
[Android General] Qiangong2:
That is what is under the mediatek/custom folder. For instance here: https://github.com/huckleberrypie/a...k/custom/quanta27_tb_uyt_kk/kernel/touchpanel

Find the right one in the kernel config. Mediatek does weird stuff with their kernels and hardware
[Android General] blakegriplingph:
I see, though tbh I'd rather have someone more experienced do the merge work; as of now I'm making do with the prebuilt kernel though that may change depending on whichever issues crop up.

EDIT: Could you pay a visit on this thread whilst we're at it? https://xdaforums.com/android/devel...pic-cm-los-t3919642/post79459172#post79459172
[Android General] Qiangong2:
What defconfig corresponds to the epic? I can test builds/compiles on my machine
[Android General] blakegriplingph:
I am not sure. The Epic's codename is UYT so you may have to look for one with that name.
[Android General] Qiangong2:
There are none with any similarity to that. I guess the only thing to do is look for the defconfig manually by checking the names on the internet.

It's possible that the defconfig isn't actually included. I've found kernel sources where the defconfig was actually linked to in the device source. Mediatek does some weird stuff with their trees and projectconfig makefiles.
[Android General] blakegriplingph:
As what the other guys said, the sources appear incomplete for whatever reason. You could in theory fix that with a tree from a similar device though as you mentioned earlier.

I presume you got your hands on an Epic recently, right? A DISA-locked Academy tablet could be had for cheap on eBay; demo units may also suffice but there's some additional conversion work to be done first.
[Android General] Qiangong2:
I haven't actually gotten one yet. I'm seriously considering it though. If the kernel source is complete enough to compile the kernel, then I'm willing to work on it.

My main goal would be to get a pure linux mobile os like postmarketOS running on it. Maybe even UBPorts.

Frankly, I don't really have the space for it and need to justify getting it.
[Android General] blakegriplingph:
It should be doable afaik, as I've seen people cook up custom kernels for devices with no known GPL sources as long as there's a complete source tree for a similar device.

In my case I simply wanted to re-purpose the ex-demo unit I personally own as an emulation machine with none of the kiddie stuff getting in the way; I could just get away with simply "porting" an existing MT8127 KitKat ROM by copy-pasting libs and apps from one ROM to another, but you could only do so much with it imho. The Epic's rugged enough to take at least some beating and it has a stylus bundled with it, if desktop-style UIs are your thing.
[Android General] Qiangong2:
That's exactly why I wanted one. It seems like a great candidate.

Usually, the similar kernel trees are because nearly all of the hardware in a secondary device are accidentally included in the kernel source they have, or the secondary device is so similar it needs almost zero changes. Just browsing through github, Idk if that's the case.
[Android General] blakegriplingph:
Indeed. The stock ROM on the Epic ran a lot better than the one on the Nabi SE, another device I'm trying to get Cyanogenmod to run on. Only problem is that because LeapFrog designed the Epic with children in mind, some of the necessary stuff present in AOSP is either dummied out or dropped entirely. Porting CM or LOS to the Epic would help with repurposing the tablet in case a child outgrows his or her device rather than end up as e-waste or thrift shop fodder (not that I have anything against said shops though).
[Android General] blakegriplingph:
There, just updated the TWRP image to 3.3.1-0, though I still have to sign and upload the corresponding ROM for it, i.e. 1.8.45 Academy Edition:

https://github.com/huckleberrypie/device_quanta_narnia/releases/tag/3.3.1-0
[Android General] blakegriplingph:
So I heard LeapFrog demoed this on the New York toy show lately:

It's still apparently the same Epic hardware as before (though whether the internals are the same or not remains to be seen), albeit with a different bumper and branding on the bezel. If this turns out to be running off something newer than KitKat, I'd be more than happy.
[Android General] blakegriplingph:
This has apparently been closed on the 1.8.45 firmware for Academy Edition tablets, or at least from what I can attest; the only way you could do a factory reset without finding out the password is to boot the tablet into recovery mode.