[ROM][4.4.4][Jul-22] UNOFFICIAL LiquidSmooth v3.2 | Security Patch Level: 1st Jun 15

Search This thread

mirabilos

Senior Member
Dec 31, 2010
100
33
www.mirbsd.org
Problem installing more applications

I have a problem installing more applications. It says the internal storage has only 20M free, but according to df on the command line, /data/app (which is where they actually go) has >500M free.

I think that redirecting only select subdirectories of /data instead of the whole of it is not enough to fool the PackageInstaller?

Furthermore, the PackageInstaller has a hardcoded limit of 100s for installing an APK. When running with ART (yada yada I know LiquidSmooth don’t support it, but it made the device more stable *and* faster for me) this is often too short.
 

mirabilos

Senior Member
Dec 31, 2010
100
33
www.mirbsd.org
It was not just the package installer. Using a2sd xdata provides me with enough space for applications, at the cost of speed apparently, but this is necessary.

The package installer 100 second problem, however, persists. I *think* it’s here (the 100000 occurring twice):

https://github.com/spezi77/android_...m/android/server/pm/Installer.java#L230..L232

Also, there’s only the 2016-07-22 download available currently; someone said the 2015-12-12 download was more stable. I may need to reinstall some day.
 
Last edited:

mirabilos

Senior Member
Dec 31, 2010
100
33
www.mirbsd.org
hard crashes of launcher and others, bootloop, with newest APKs

Unfortunately, this ROM is hit by the following CM bug:

https://github.com/TwidereProject/Twidere-Android/issues/963
https://github.com/tasks/tasks/issues/577
https://github.com/ccrama/Slide/issues/2555
https://issuetracker.google.com/issues/64434571

There’s a workaround…
https://github.com/pihug12/Slide/commit/39a7ac8096addb05d29319fb416c83c9490be18d
… but it has to be applied to the äpps during building them, so it doesn’t help us users of this ROM in the general case.

I’ll try to dig for a fix, but if someone better equipped to do that than me (spezi?) can do that, please do. We’ll probably just need to exchange one file on /system, just like with my hotfix for Bluetooth internet sharing.

Update: found a fix. The patch from https://git.replicant.us/replicant/.../?id=953d2a3493aaceb3209afc7eef1ff1e7f7242908 worked and was easy enough to binary apply.

Code:
adb pull /system/lib/libandroidfw.so
from the device and disassemble it (“objdump -d libandroidfw.so | less”, might need “sudo apt-get install binutils-multiarch” on the host system first). Then search for the call to _ZN7android10ResXMLTree5setToEPKvjb in the function _ZN7android12AssetManager10getPkgNameEPKc (the first occurrence, most likely). It will look roughly like this:

Code:
    fcc4:       2300            movs    r3, #0
    fcc6:       4641            mov     r1, r8
    fcc8:       4602            mov     r2, r0
    fcca:       4620            mov     r0, r4
    fccc:       f003 fc4e       bl      1356c <_ZN7android10ResXMLTree5setToEPKvjb>

In a hex editor, it looks like this:

Code:
    FCC0  28 46 B8 47 00 23 41 46  02 46 20 46 03 F0 4E FC  (F.G.#AF.F F..N.

The “movs r3,#0” is passing false (the default value) as the third argument to the method call, we will need to change it to “true” according to the patch, so we change the \x00 to \x01 and get:

Code:
    fcc4:       2301            movs    r3, #1

In a hex editor, after the change, it looks like this:

Code:
    FCC0  28 46 B8 47 01 23 41 46  02 46 20 46 03 F0 4E FC  (F.G.#AF.F F..N.

Note how the \x00 (or \x01 now) is *before* the \x23.

I’m attaching the fixed file for the 2016-07-22 ROM.
 

Attachments

  • libandroidfw.so.zip
    69 KB · Views: 274
Last edited:

Gail5

Member
Jul 16, 2018
15
0
Rome and New York City

mirabilos

Senior Member
Dec 31, 2010
100
33
www.mirbsd.org
Do you know whether this fixed file can bel appled for Cyanogenmod 11.0-xnph44s Kitkat 4.4.4 running on the Oneplus One?

I am very sure it can’t. These files are utterly specific not just to the ROM but to the individual build of each ROM.

However, with the documentation above in my post, you (or someone more skilled than you, if you send them the original unpatched /system/lib/libandroidfw.so file) can easily patch it for your ROM.
 
Last edited:
  • Like
Reactions: Gail5

Gail5

Member
Jul 16, 2018
15
0
Rome and New York City
I am very sure it can’t. These files are utterly specific not just to the ROM but to the individual build of each ROM.

However, with the documentation above in my post, you (or someone more skilled than you, if you send them the original unpatched /system/lib/libandroidfw.so file) can easily patch it for your ROM.

Thanks for answering so quickly. My device is not rooted so this method isn't going to work.
 

mirabilos

Senior Member
Dec 31, 2010
100
33
www.mirbsd.org
Thanks for answering so quickly. My device is not rooted so this method isn't going to work.

The fixed file will always need to be installed with root permissions and S-OFF, how else would you go replacing it?

A regular ROM upgrade could just add the source code patch I linked and recompile the ROM with it… this method is strictly for binary-patching a running ROM.
 

mirabilos

Senior Member
Dec 31, 2010
100
33
www.mirbsd.org
My second “bravo” HTC Desire!

Hi everyone,

I received a second “bravo”, which means I can now split between “with Google” and “Open Source / Security / Privacy” ☻ (also got to use a company SIM on one for 2FA).

I’ve installed the LS-KK-v3.2-2016-07-22-bravo.zip image on it, whereas my old bravo still runs the LS-KK-v3.2-2015-12-06-bravo.zip image. Observations:

• Still no Gallery äpp, but Gallery2.apk from cm-11-20150815-UNOFFICIAL-bravo.zip copied to /system/app/ works just fine.

• The Bluetooth fix from https://xdaforums.com/showpost.php?p=65831613&postcount=99 is applied already.

• The package installer fix from https://xdaforums.com/showpost.php?p=75958727&postcount=184 is not applied. The PKZIP archive file I’ve attached to that post is the correct one for the 2016-07-22 ROM.

• Switching from Dalvik to ART makes the 2016-07-22 system no longer boot (SIGBUS in dex2oat), but switching back via adb shell → su → setprop persist.sys.dalvik.vm.lib libdvm.so → Enter → reboot makes it work; thanks https://android.stackexchange.com/a/66977/55417 for the help.

Edit: oops, no, I’m apparently also running Dalvik on the other device. Gapps is what makes things sloooooow. (Or maybe swap or ksm.)

• I’ve used a2sd install → y → n → n and then a2sd xdata, as on the other device, because äpps are just too fat these days, but with a decent fast µSD card.

• open_gapps-arm-4.4-pico-20190924.zip won’t install, I have about 25.9*MB free on /system and it wants almost 90*MB… we’ll see what we can do about that…

I guess, with using xdata, I could use a differently partitioned HBOOT which has a larger /system and smaller /data? Current usage is:

Code:
~ # df
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   208076        32    208044   0% /dev
/dev/block/mtdblock4      5120       800      4320  16% /cache
/dev/block/mtdblock3    256000    230084     25916  90% /system
/dev/block/mtdblock5    187008     67760    119248  36% /data
/dev/block/mmcblk0p2   4128448     70044   4058404   2% /sd-ext
/dev/block/mmcblk0p3    516040     16404    499636   3% /sd-ext2

But how can I change the HBOOT partition table? The 250M /system is the largest AlphaRev prebuilt size…
 
Last edited:
  • Like
Reactions: ze7zez

mirabilos

Senior Member
Dec 31, 2010
100
33
www.mirbsd.org
Hacking bootloader…success!


Thanks, but unfortunately, it does not help *at all*.

I’ve patched the “Bravo Stock” HBOOT from http://web.archive.org/web/20180709183725/http://alpharev.nl/ with https://master.dl.sourceforge.net/project/rskandroid/hboot_patcher_r1-win32.rar in a Windows® VM I luckily had access to (it does not work in Wine, unfortunately), http://web.archive.org/web/20170414...blogspot.com/2011/07/custom-hbootsupdate.html documenting that someone named “dzo” wrote source code for Linux to do that but (ARRRRGH!) not linking to it, and a search finds nothing.

I’m attaching the patched HBOOT (336/5/96) in the hope it is useful. I managed to flash it and boot 4EXT Recovery afterwards and am now formatting all partitions in order to restore the backup.

Edit: I had to fastboot erase system, as formatting it in the recovery didn’t work as a mount process was hanging in the background. Afterwards, format all except SD card worked, and now I’m restoring the backup.

Edit 2: Backup restored, system still boots, installing opengapps pico now also works. Yay! (Now I can de-Google-ify the other Desire.)

Code:
root@bravo:/ # df
Filesystem               Size     Used     Free   Blksize
/dev                   201.3M   136.0K   201.2M   4096
/sys/fs/cgroup         201.3M     0.0K   201.3M   4096
/mnt/asec              201.3M     0.0K   201.3M   4096
/mnt/obb               201.3M     0.0K   201.3M   4096
/mnt/fuse              201.3M     0.0K   201.3M   4096
/system                336.0M   304.1M    31.9M   4096
/data                    3.9G   181.8M     3.8G   4096
/cache                   5.0M   824.0K     4.2M   4096
/sd-ext                  3.9G   181.8M     3.8G   4096
/data                    3.9G   181.8M     3.8G   4096
/mnt/media_rw/sdcard0    24.7G   676.2M    24.0G   16384
/mnt/secure/asec        24.7G   676.2M    24.0G   16384
/storage/sdcard0        24.7G   676.2M    24.0G   16384
 

Attachments

  • bravo_alphaspl_336-5-96.zip
    207.7 KB · Views: 11
Last edited:
  • Like
Reactions: ze7zez

mirabilos

Senior Member
Dec 31, 2010
100
33
www.mirbsd.org
GPS week rollover issue / patch?

Hi *,

I’ve been having problems getting a GPS fix for a short while. Is this ROM affected by the GPS week rollover issue? If so, is there a patch I could apply (I can probably rebuild affected parts of the system or binary-patch them if easy enough)?

Update: This ROM/device is definitely affected by the GPS week rollover bug. So, how can we get a fix (either meaning)?

(Well, I can get a fix if I lay the phone on a flat surface outdoors, ideally still connected with the charger or a battery pack though, and let it run https://f-droid.org/en/packages/com.android.gpstest.osmdroid/ for a long time; AGPS/PSDS seems to only help a little.) But I’d like for the GPS week rollover bug to be fixed.
 
Last edited:

mirabilos

Senior Member
Dec 31, 2010
100
33
www.mirbsd.org
{Mod edit: Quoted post was deleted}

There’s your problem, you did not move /data/data, so you don’t get additional space in that area.

I moved the entire /data though (a2sd xdata). It may be slower, but it makes the device usable.
 
Last edited by a moderator:

Top Liked Posts

  • There are no posts matching your filters.
  • 50

    I am proud to present you with an incredible smooth and feature rich AOSP based ROM.


    lslogo.png



    DISCLAMER

    Your warranty is now void.

    I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.

    LiquidSmooth is an aftermarket firmware based on the Android Open Source Project.

    Dedicated to providing users with smooth, stable and fast ROMs. A Lightweight modified AOSP base, and then add the features you crave!

    While we make every effort to test these builds as much as possible, we are not responsible for anything that may happen to your device.

    We ask that you do your part to know your device and know how to recover from problems before you flash!





    Liquid0624

    Deadman96385

    jsnweitzel

    Somber73

    CPA-Poke

    TheBr0ken

    Cdub50



    FEATURES:

    UBER 4.9 GCC Toolchain
    ARM Optimized String Handling Routines
    Linaro and Code Aurora Optimizations
    Slims DPI on the fly
    Custom animation controls
    TRDS 3.0 (Liquid Blackout in settings)
    Active Display
    Slims QuickSettings
    Halo
    Ram Bar
    New CM Theme Engine
    Privacy Guard
    Built in SuperUser
    Working wifi Tethering
    Cell Broadcasts
    Slims Configurable Power Menu
    Slims Configurable Nav Bar
    Gamma Configuration support
    Custom animation controls (Listview)
    LockScreen Notifications
    And way more than this...


    LiquidSmooth v3.2 Full list of features


    CHANGELOG:


    NEW IN RELEASE 8:
    • Add back full language support.
    • Lower the default max. cpu freq to 998400 Hz.
    • Torch: Removed brightest option from settings; Torch will now stay on after screen shut down!


    NEW IN RELEASE 7:
    • This build includes the official Android Security Updates from 1st June 2015
    • Compiled the ROM with O3 flag
    • Compiled the kernel with UBER toolchain 4.9.4 for increased speed and battery life (credits Cl3Kener); compiled the rom with AOSP toolchain 4.8
    • Update kernel (July security bulletin)
    • Replace KernelTweaker (FC'ing) with KernelAdiutor
    • Removed DashClock widget (cLock is much nicer)



    NEW IN RELEASE 6:
    • This build includes the official Android Security Updates from 1st Nov 2015 (you can now view the information about the patch level under Settings > About Phone > Android security patch level)
    • Compiled the ROM with O3 flag
    • Compiled the kernel with UBER toolchain 4.9.4 for increased speed and battery life (credits Cl3Kener)
    • Patched the previously missed out security holes in kernel base as mentioned by @walter79
    • If you want to have kernel 3.0.16 (experimental) use this flashable zip
    • Updated NovaLauncher to 4.1.0
    • Removed DashClock widget (cLock is much nicer)
    • Added signature spoofing support (read more about this)
    • Fixed an issue in the hardware keys configuration (credits @sverfaillie)
    • Slim GApps: fixed a problem (three no longer required apks were still remaining under /system/apps after GApps installation) to gain more space in the ROM's system partition


    NEW IN RELEASE 5:
    • Added a few more patches against vulnerabilities, e.g.: CVE-2015-1528, CVE-2013-6282 (kernel patch).
    • Big thanks to @walter79 for making me aware of their existence!


    NEW IN RELEASE 4:


    NEW IN RELEASE 3:
    • Patched to the highest security level for Kitkat (incl. Stagefright 2.0 & Android Security Updates from Nov 2015)
    • Set CM cLock as default lockscreen widget
    • Added a patch to prevent wakelocks caused by Google Play Services 7.x SystemUpdateService (credits CM)
    • Use per default SMARTASSH3 (allows a better speed/battery-saving ratio)


    NEW IN RELEASE 2:
    • ART
    • Liquid Launcher
    • Keyguard: use overlay to disable Menu Key In Lock Screen
    • Fix 'long press home key' to bring up the recent apps
    • Slim down rom by removing Chinese font
    • Update animation scale defaults with the optimal settings for htc bravo (0.5x)
    • Frameworks/base: Add setCurrentFunctions to Legacy USB DM
    • Allow forcing HighEndGfx mode
    • New CM Theme Engine


    NEW IN RELEASE 1.5:
    • Update of Inspire Launcher (12.2.0): Launcher settings is more stable now
    • Fixed Hardware keys
    • A2SD is working now (fixed an issue with mounting sd-ext)


    NOT WORKING:

    • MMS (present in all 4.x ROMs; Just use Textra SMS instead)
    • Video recording (present in all 4.x ROMs)
    • Screen recording (not supported by kernel)
    • OpenVPN (kernel issue: cannot acquire tun interface socket)
    • SELinux (disabled by intention)
    • Torch: Brightest setting and stay on after screen shut down (Torch improved)

    Please let me know if you find bugs -- if possible with logcat. Thanks! :good:




    DOWNLOADS:


    Download LiquidSmooth Kitkat v3.2 2016-07-22
    Slim Gapps for LiquidSmooth 2016 (73.18 MB)




    REQUIREMENTS:

    An hboot with at least 250mb on system. These include stock hboot or Alpha Jelly (250/5/182) hboot
    A 512mb - 1.5gb EXT partition (EXT4 recommended) on your sdcard. Use this guide to create the partition. Partitions made using other tools (CWM, Minitool Partition Wizard, etc.) will likely cause issues.
    The latest TWRP (credits @Chromium) or 4EXT (credits @madmaxx82) Recovery. Old versions of CWM may cause issues.[/QUOTE]


    HOW TO INSTALL:

    Full wipe
    Flash ROM
    Boot ROM and enable A2SD before flashing GApps
    Boot ROM and let it settle down (3-5 min)


    CREDITS:

    LiquidSmooth, SlimRoms, AOSPA, AOKP, and everyone else who has contributed
    Google and CyanogenMod for the Android Security Updates
    @LaidbackNikez and Evervolv - for being a forece behind the kernel that powers this ROM, as well as for the vendor files and device trees


    SOURCE:

    Kernel:
    https://github.com/spezi77/android_kernel_htc_qsd8k
    ROM:
    * Base: https://github.com/LiquidSmooth
    * Mods: https://github.com/spezi77

    You may want to compile it yourself:
    Code:
    repo init -u git://github.com/spezi77/liquid.git -b kitkat
    repo sync
    wget https://s.basketbuild.com/uploads/devs/Cl3Kener/TOOLCHAIN/uber-arm-eabi-4.9.tar.xz
    tar xvC prebuilts/gcc/linux-x86/arm -f uber-arm-eabi-4.9.tar.xz 
    rm uber-arm-eabi-4.9.tar.xz
    . build-liquid.sh -o3 bravo


    Have a nice day! ;)


    12
    Screenshots:


    dwnwf17a5k9d9hxfg.jpg
    zg37yr4754wlkknfg.jpg


    cgih9glhmyzoanjfg.jpg
    an9fc8y3czc4bawfg.jpg


    w6ibntiq05i62rhfg.jpg
    8dzttitantgcj12fg.jpg


    yqxuqa4un3ryb0nfg.jpg
    2civmvdndd38lz2fg.jpg


    ju3vpak1y58cgutfg.jpg
    kwxwpzv38uxs00lfg.jpg


    s0c19ic3478st62fg.jpg
    [/CENTER]
    9
    Hey Desire folks!

    I just happened to release a new version, which makes your Desires invulnerable! I have added the most recent Stagefright 2.0 and Android Security Updates from November 2015.

    In case you are interested, go to post #1.

    Have a nice day! ;)
    - spezi
    9
    New version of rom and gapps released. Enjoy. ;)