yashsingh1/xdaforums huggingface dataset:
[Huawei P30 Pro Guides, News, & Discussion] newbit:
Hi [MENTION=7530018]oslo83[/MENTION],

What a challenging task you have...

Well the source of lpunpack you can get from AOSP -> android / platform / system / extras / partition_tools

Also a build environment from ASOP -> android / platform / build / envsetup.sh

And on top a nice guide from Google on how to actually build the Blueprint Android.bp:

Follow these instructions to begin building Android.

Please let me know on how it goes.

Cheers NewBit
[Huawei P30 Pro Guides, News, & Discussion] rubiicon59:
I've got more interested as this thread has progressed.

Am I right in thinking there may be a chance of getting root on the P30 Pro?
[Huawei P30 Pro Guides, News, & Discussion] Dispossible:
[MENTION=1350876]newbit[/MENTION]

I got the max size of EROFS from wiki, and the source of wiki is erofs.txt from linux kernel. You can search the EROFS from wiki. My super.img is less than 4G.

---------- Post added at 01:35 PM ---------- Previous post was at 01:23 PM ----------

1. wish that someone would sell the unlock code of Huawei (maybe, I haven't paid attention to this news recently)

2.wish that someone could crack the EMUI9 (maybe, but not now), now, EMUI8.0 8.1 8.2 can read unlock code by using some special method.

3.In my opinion, the key is not in EROFS but in unlock code. EMUI9+EROFS can be unlocked and flash all kinds of ROMs.....
[Huawei P30 Pro Guides, News, & Discussion] newbit:
Thanks for the hint. I've found it in an Android 10 Opensource Kernel

Laya_10_EMUI10.0_opensource.tar/Code_Opensource/kernel/fs/erofs/Documentation/filesystems/erofs.txt

The Wiki page you are referring to is probably from LinuxReviews.org !?

They basically copied the content of this View attachment erofs.txt file.

Regarding the size. Is it possible that you are mixing up something?

In both descriptions they write about the main features of EROFS:

Currently 4 KB block size (nobh) and therefore maximum 16 TB address space

4KB block size. This limits the total possible capacity of a EROFS filesystem to 16 TB

2 inode versions for different requirements:

v1 v2
[B]Max file size: 4 GB 16 EB (also limited by max. vol size)[/B]

This sounds to me that in v1 the maximum file size was limited to 4 GB, inside

this erofs partition, like on FAT32. But in both versions they have 4 KB block size and this limits the

maximum addressable partition size to 16 TB.

From all the Firmware files I investigated the last weeks, all of the unsparsed super.img.raw files were larger

than 5 GB. Which I wouldn't interpret as a rule.

The only half war serious "ad" I have heard so far is from this website.

Can't give you source-able details, but I've read that in order to get access to present Huawei Bootloader Unlock codes,

one must have some insider contacts from Huawei and its database.

Update 04.06.2020

Found the source I was referring to. It links back to XDA with lots of feedback that they really got the codes back in 2018.

Translated it says:

What's behind it?

Actually, it's almost funny what strange curiosities result in the blocking of the bootloader release from Huawei. We can guess what is actually behind the method on Ministryofsolutions. We have two explanations. Option 1 is that the operator found a hack on the website to get the code. We think this is unlikely since this hack would hardly be possible with the IMEI number alone. So the more likely possibility is that the operator knows an insider at Huawei who has access to a database with the codes. This source is now used to earn a lot of money from it.

I don't think this is a matter of opinion. It is a fact, no unlocked Bootloader no flashing. But once it is unlocked,

Magisk should do the trick, even without TWRP.

Cheers NewBit
[Huawei P30 Pro Guides, News, & Discussion] rubiicon59:
I've read those references you linked above, and..... WOW lol. Very interesting but way above my level of understanding.

But I'm going to read some more, try and get a better grasp.

Thanks
[Huawei P30 Pro Guides, News, & Discussion] Dispossible:
[MENTION=1350876]newbit[/MENTION] [MENTION=3339433]ph03n!x[/MENTION]

I've got a new method, but it hasn't been tested yet because I've been busy lately.

Try these patches on your linux kernel then mount it.

https://github.com/nolange/erofs_kernel_4_19/tree/master/patchset

https://github.com/ud3v0id/erofs-huawei-extension
[Huawei P30 Pro Guides, News, & Discussion] zingrx:
I'm using this tutorial to build a custom system.img erofs file system. Is there anyway to convert this .img file to .dat then to .dat.br? I'm using it for a custom EvolutionX ROM for another phone, but the steps are the same.
[Huawei P30 Pro Guides, News, & Discussion] mrbox23:
Find lpunpack (along with all the other lp tools) here

https://xdaforums.com/t/script-andr...-superrw-featuring-makerw-read-write.4247311/

unzip systemrw_v1.32_flashable.zip

they are in tools directory and are compiled for arm64

also find lptools binary in phh v414 images under system/bin
[Huawei P30 Pro Guides, News, & Discussion] mrbox23:
Here we find extract.erofs for aarch64...

skkk/EROFS/extract/v1.4/220421 • AKR DL

dl.akr-developers.com
[Huawei P30 Pro Guides, News, & Discussion] DevilAntivirus:
@oslo83 @newbit

Hope someone can help me...

I have successfully mounted vendor.img (erofs, EMUI9.1, Android 9, not Super.img) on Ubuntu 22.04 (kernel 5.15.0):

1. simg2img vendor.img vendor.raw.img

2. mount -t erofs -o loop vendor.raw.img mnt/

But I don't know how to modify the contents of the mount directory, cp to another directory will prompt a lot of files "error reading xxx: Operation not supported"
[Huawei P30 Pro Guides, News, & Discussion] newbit:
You could try it with SuperR Kitchen.
[Huawei P30 Pro Guides, News, & Discussion] Mr Hassan:
is this not possible to extract erofs img files like system vendor etc and repack them and flash

and device boot with our modifications
[Huawei P30 Pro Guides, News, & Discussion] eclipsek20:
Hello. I get an error when I try to mount a xiaomi file saying: unknown filesystem type 'erofs'., I am running Ubuntu on WSL how do I fix this?
[Huawei P30 Pro Guides, News, & Discussion] reyukisan:
What's the most reliable way to extract the system.img? I've tried using simg2img, but it didn't work well.

There are many tutorial out there but most of it are limited to Windows-only:

- https://xdaforums.com/t/guide-extract-system-img-file-in-specific-folder.2733054/

- https://android.stackexchange.com/questions/162508/extract-files-from-android-system-image
[Galaxy Note 4 Q&A, Help & Troubleshooting] sophine:
(i'm running Resurrection Remix)

I was curious, how long does your battery last on this surfing mode ?

It sucks up 20%+ , per hour, on my phone...
[Galaxy Note 4 Q&A, Help & Troubleshooting] raul6:
I think that is roughly what i'm getting, 3 to 4 hrs, browsing time with standard 6.01 rom
[Galaxy Note 4 Q&A, Help & Troubleshooting] firstdue:
Same here. Just rooted a few days ago and using ModestRom. Mixed use wifi/4g and i get about 7-8 hours until i'm down to 10% on a Powerbear battery that's less than a year old.

In fact i've been turning my mobile data off to conserve battery. It seems to chew up power even when your browsing on wifi.
[Xiaomi Mi A2 Lite Questions & Answers] CrimosUmbro:
So i flashed Butterfly kernel successfully, and i immediately installed kernel manager and cpu spy to measure cpu states, and betterbaterystats in addition to that, after close measurements i saw that it spent roughly 60% of time in 652 freq and only 40% in deep sleep, which accounted for 15-18% battery loss overnight with wifi and mobile data off. Betterbaterystats show that only small portion of screen off state (30%) is spent in deep sleep, rest is spent in "screen off awake" state with portions in doze states. I am confused and beg your help on how to fix that. Obviously these kernel wakelocks are preventing deep sleep from happening. I am talking about dozen of wakelock that fired off 20k times in couple of hours. I really like this kernel, its just that i have serious problem with screen off battery consumption.

I factory retested the device last night and left it to stay overnight. As you can see from the accu battery stats off screen battery drain was around 10% that is 1.3% per hour. And I already ruled out user apps because I have bare minimum of them installed on the phone. I have magisk with only xposed framework and Sonymusic4magisk modules installed. I am currently on stock ROM 8.1 Oreo version 9.6.11.0 and am using butt kernel for 8.1 normal and undervolted version 4.9.x.20150123.

Tried stock kernel, oreo normal, undervolted, overclocked, no magisk, factory reset, clean flash, but dozen of ipc wakelocks and timerfd wakelock still persist and actively disrupt deep sleep.

I tried to block them using MTweaks Boeffla block option, but they are blocked first 5-10 mins after boot, and after that they persist. This issue is present in both dragonheart and CAF kernel.

Im providing detailed logs and screenshots, so please help anyway you can, I would be super grateful.

Betterbatterystats log

https://ufile.io/2tttlxjf

https://i.imgur.com/DqGPeIc.png[IMG]

[IMG]https://i.imgur.com/BLkl5ii.png[IMG]

[IMG]https://i.imgur.com/zs7c3J0.png[IMG]

[IMG]https://i.imgur.com/UWSSYO8.png
[OPPO Reno 10x Zoom Questions & Answers] itti_sam:
Hi there,

Is PIP disabled by default in ColorOS?

I can't seem to run PIP with apps like VLC and google maps.

If so, is there a workaround?
[OPPO Reno 10x Zoom Questions & Answers] marko68:
PiP is working perfectly with VLC and Google maps, no problems no workaround to do

https://photos.app.goo.gl/6MmSb3yiXXHYytnQ9
[OPPO Reno 10x Zoom Questions & Answers] itti_sam:
ok good to know that it is working and not disabled in ColorOS ...

I need to check my settings maybe background apps are not configured for me or some battery settings...
[OPPO Reno 10x Zoom Questions & Answers] itti_sam:
hmmm... I figured it out... it was the virtual navigation keys... i was using swipe gestures and PIP was not working... switched to virtual keys and now PIP is working like a charm...

seems like a bug for me...
[OPPO Reno 10x Zoom Questions & Answers] iekram92:
yeah happen to me too. thanks for the tip.
[Philips, Sony, TCL Android TV] mac89cam:
Q Plus Smart TV Box Android 9.0 Allwinner H6 4GB/32GB 6K Lettore WiFi G7E7

good morning, I ask you because you are my last resort ". I bought the TV box in question attracted by the strong discount, once I got home I immediately realized the rip-off, Netflix does not go and does not look like an Android TV but a normal Android. another thing I don't like at all is that it has root enabled without an app to handle it strange and dangerous. come to the point, isn't there a rom to place on it? I searched but I can't find anything. at what point, something that is not Android is fine, but parallel or even different projects!

https://rover.ebay.com/rover/0/0/0?mpre=https://www.ebay.it/ulk/itm/312643980534
[Philips, Sony, TCL Android TV] mac89cam:
I found out that the device is compatible with the #trable project! is there any #gsi that i could put on? and which TWR should I wear?
[Moto Z4 Questions & Answers] muonlepton:
Hi everyone, just got a verizon z4 version from bestbuy. Activated it fine. Then I put a non-verizon sim card in and and it says network locked. Not sure if other folks are having similar issues. Anyone experiencing the same thing?
[Moto Z4 Questions & Answers] schneid:
Think (?) I read the FCC allowed VZW to lock new phones for a limited amount of time.

Here, I did your homework for you:

https://www.theverge.com/2019/6/26/18759602/verizon-60-day-phone-lock-fcc-approves
[Moto Z4 Questions & Answers] kendive:
I would not worry about that at all... Don't buy phones from the big V if you are worried.

I can't remember the last time I waked into a verizon store and bought a phone from them. LOL

.
[Moto Z4 Questions & Answers] endleesss:
I bought mine from best buy a couple of days ago. Not locked. Using it on freedom pop
[Moto Z4 Questions & Answers] sumner2q:
Is it bootloader unlockable
[Samsung Gear Fit2 Pro] mabissc:
Hello all,

I want to copy mp3 files to my Fit Pro 2.

There is an option in my mobile software, however I have my mp3's on my Laptop.

According Samsung, there is an option in the music menu "Gear music manager"

Through this option you connect with WIFI to your laptop.

This option in NOT present in my watch..

So far as know all software (on phone / wearable) are up to date. (installed updated all yesterday)

What am I doing wrong? Is there an other way?

Thanks in advance

Maurice
[Samsung Gear Fit2 Pro] EvilWayz:
are you using the galaxy wearables app? It uploads a lot of stuff to your watch that isn't present when its new ( or if you factory reset.)
[Windows Mobile Development and Hacking General] dirtred:
anybody know if this is done yet.a buddy sent me in an email?
[Windows Mobile Development and Hacking General] joshrys:
i like the look of this one much better than the HTC dialer. Someone please grab this of the phone...
[Windows Mobile Development and Hacking General] dirtred:
yes!!!!!!!!!!!

i tried all kinds of dialer skins on my mogul but i just went back to the original cause they never worked right and i think the iphone skins look funny.but this is classy as hell imo.
[Windows Mobile Development and Hacking General] denjo:
good work...

looks classy......anyway to get it????
[Windows Mobile Development and Hacking General] rvashi:
EXCELLENT! One of the geniuses really needs to get this off the Diamond. I think by far, this is one of the best stock skins I've seen.
[Windows Mobile Development and Hacking General] kidnamedAlbert:
ask the creators of Athena Project 4.0 to help you with it.

they are the ones who created the dialer(i think since its in their AP4.0 ROM)
[Windows Mobile Development and Hacking General] admin22:
I WANT I WANT I WANT!

Lol that really is tasty.
[Windows Mobile Development and Hacking General] Win_XP:
Yeah, it looks good :)
[Windows Mobile Development and Hacking General] sphinxy:
Id also like to be able to have that working on my Trinity!
[Windows Mobile Development and Hacking General] spencepu3:
check out mine:

http://xdaforums.com/showthread.php?t=394518
[Windows Mobile Development and Hacking General] deeznuts:
Yes, yours is my second favorite dialer skin! Anyway maybe u could make one like the one posted above with all the other screens that go with it like missed calls, landscape, etc? If these pics above is the stock diamond dialer then it shouldnt be hard for our top developers on here to rip it and make it easily available to everyone on here.
[Windows Mobile Development and Hacking General] sphinxy:
Maybe you should check this one out:

http://xdaforums.com/showthread.php?t=395086

Done nicely be a photoshop expert. Both spencepu3 and pauldgroot have done some nice skinning to this dialer!

Great work guys!
[Windows Mobile Development and Hacking General] pauldgroot:
hahaha, I feel honoured xD

you called me an expert, I LOVE YOU :p

ok, enough spamming. spencepu3's dialer is nice too but he forgot to skin almost half of the dialer. E.g. when a key is pressed you will see the original iPhone skin again.
[Windows Mobile Development and Hacking General] boinger66:
thats a vga dialer... just so you know

works on the athena cause of 5" screen
[Windows Mobile Development and Hacking General] vnt:
3G

no 3G or video call?
[OnePlus 7 Pro Questions & Answers] silverxbv2:
I've looked through the options but don't see a way to manually select image quality? Is that not an option on the stock camera app?
[OnePlus 7 Pro Questions & Answers] RISHI RAJ:
You can only select 48mp in pro mode,You can also choose 16:9 ,4:3 which changes the resolution
[OnePlus 7 Pro Questions & Answers] gregou:
IF you choose the "Pro mode" in the camera app, you'll be able to select 48mgpxls resolution, but no other possibility to choose other resolutions beside this one unfortunately
[OnePlus 7 Pro Questions & Answers] silverxbv2:
Hmm. Ok. I need to take some pics to send but they have to be 2mb or less. Any recommendations on another camera app that can do that?
[OnePlus 7 Pro Questions & Answers] RISHI RAJ:
WhatsApp automatically compresses pics automatically
[FYT Android Head Units] bambapin:
On Joying headunits with CAN Bus, it is not possibile to use resistor based USWC: this thread aims to overcome the limitation by using an Arduino MICRO connected to the receiving unit of the USWC and to the headunit via USB to simulate a hardware keyboard.
[FYT Android Head Units] bambapin:
reserved 1

Github repository: https://github.com/MobeedoM-opensource/android-auto
[FYT Android Head Units] bambapin:
reserved 2
[FYT Android Head Units] bambapin:
reserved 3
[FYT Android Head Units] bambapin:
Yes i know thank you, i noticed that for some strange reason the firmware deactivates the accessibility service even at reboot (at true boot not only with ACC_OFF).

Yes of course i'll add the intent filter, but please note that the current version of the app doesn't use those intents on api level 26+ (my headunit), because of the background execution limits (the implicit intent is simply not received).

The only intent that i was able to trap, but i still need to investigate because it doesn't always work and I haven't figured out why yet, is the android.hardware.usb.action.USB_DEVICE_ATTACHED.

For the build.gradle, if you tell me what are the hurdles maybe i can help, also via PM if you prefere.

An accessibility service cannot be started programmatically in android, the user must manually activate it with the switch in the accessibility services section.

That command is used to simulate the behavior of the user who changes the state of the switch, it requires root and it is not granted to work on all roms.

Yes you are right, the last use case is not covered. To manage it correctly you need to know which app is currently playing, maybe it is possbile to distinguish syu apps by non syu apps by checking the android AudioManager which i think is only used by non-syu apps.
[FYT Android Head Units] surfer63:
I know about the implicit intents, but on a Sofia on Android 6.0.1 (api level 23) they should still work.

W.r.t. the build.gradle.

I had to remove the private.gradle import statement, some signing statements, defProd and the like, and finally (also literally in time) upgrade my sdk from 27 to 29 to be able to do a simple "./gradlew assembleDebug".

So no issues anymore.

(Of course I had set compile version to 27 in the build.gradle, but I ran into "missing" xmls, which I first blamed on being not committed to the repo (your fault, not mine of course :D), but which turned out to be part of sdk 28 and up, so still my fault :rolleyes:).
[FYT Android Head Units] bambapin:
Ah yes, the private.gradle... it contains my private keys passwords so i preferred not to publish them on the internet :D.

Indeed that file must be placed next to the app build.gradle with this content:

ext {
my_keyAlias = 'YOUR_KEY_ALIAS'
my_keyPassword = 'YOUR_KEY_PASSWORD'
my_storeFileName = 'YOUR_KEYSTORE_FILEPATH'
my_storePassword = 'YOUR_KEYSTORE_PASSWORD'
}
[FYT Android Head Units] surfer63:
Maybe I insult you with providing this link ;), but anyway: here it is: https://developer.android.com/guide/topics/media-apps/mediabuttons

And the image in post #1. How is red and black connected, and to what?
[FYT Android Head Units] bambapin:
No insults at all don't worry ;) and even if it were i hardly get offended :cowboy:

Actually i'm not expert on this particular topic, at the beginning i tried to use the standard Android MediaControllers but it seemed to me that when it came to "syu" APPS everything was bypassed, but if you think it's a viable way i'll try again.

The photo is the final version that is now installed in the car.

I noticed that there was enough room inside the SWC receiver to insert the arduino, i made a little hole for the usb socket and i connected the arduino directly (yes i admit, i soldered to save the space of dupont :D).

What you see is the inside of the receiver + the arduino. The black and red cables are the power supply of the receiver, the orange and blue are KEY1 and KEY2 (the white and gray of the video). The arduino is simply glued with a removable glue (patafix).
[FYT Android Head Units] bambapin:
[MENTION=2550900]surfer63[/MENTION] i was thinking again about the autostart after the ACCON.

In the end i managed to make the intent android.hardware.usb.action.USB_DEVICE_ATTACHED always work so the accessibility service is always restarted, but i'm still looking for a better alternative (using the navi app would work but it interfere with the audio mixing level).

I looked again at the code of syu.ms and saw that when the unit wakes up, a series of apps are always launched with hard-coded package names: eg. "com.yh.devicehelper" and "com.cpsdna.mirror" which i don't seem to find installed in the headunit.

Do you have any idea what they are?

If they are never installed, perhaps it is enough to create an app with one of those package names and the system will take care of starting it at ACCON.
[FYT Android Head Units] surfer63:
I do indeed think that the SYU apps do nothing according standard Android rules, so the MediaController would only be helpful for any other app. I do think you need to check if "some" SYU app is active by using something like "this" or by checking the com.syu.ms apk (via jadx(-gui)) or so, because that one also checks on several places whether one of its own SYU app is active or not, and on top or not.

So the bottom side of of the plate with the red led and condensator (or so), is the bottom of the SWC controller circuit?? If so, the image now makes sense.
[FYT Android Head Units] bambapin:
Yes, it is the bottom, when it is inserted it rests on the 4 pillars and leaves enough space below, there will be almost 1cm from the arduino.

The only negative thing i noticed is that with the arduino so close to the antenna the reception distance of the buttons is a little lower than before, but they still work.
[FYT Android Head Units] bambapin:
It worked!!! :laugh:

The app attached is automatically launched by the syu.ms at ACC_ON.

I used the package name "com.cpsdna.mirror", i have no idea what the original app was supposed to do, but now we have a real autorunner at our disposal.
[FYT Android Head Units] surfer63:
:good: Very nice.

There are many apps in this ms.apk that no longer exist. Some are hardcoded called inside the app, some are called via the text files in the assets/property, but no longer exist.

I assume it is related to http://www.cpsdna.com/solutions1.html and a previous "mirrorlink" application. zlink is now by another company.

What I would do (and did in the past) is making a "micro starter app" (11~16Kb) , that only starts the app you want. So the "com.cpsdna.mirror" started by ACC_ON, starts your "com.mobeedom.android.auto.jyhuremote".

If Joying/FYT updates their list of started apps, you can simply take another "old" app and still call your own app without having to rewrite all the packages inside your own code.

(And please don't use the appcompat for such a microstarter :). It explodes your code from ~11-16Kb to 1.5MB. I really hate how Studio always adds that to your project even if you target APIs that don't need it, or your app as such doesn't need it)

It would only need something like:

PackageManager pManager = context.getPackageManager();
Intent intent = pManager.getLaunchIntentForPackage("com.mobeedom.android.auto.jyhuremote");
if (intent != null) {
context.startActivity(intent);
}
[FYT Android Head Units] bambapin:
Ok ok, no AppCompat :)

Maybe i could also put a minimum of parameterization with the ability to choose what to launch, maybe even more than one app.

Do you think something like this could be useful in your JET?