Hisuite with sideload patch still works on emui 9.1 roms? - Huawei Mate 20 Pro Questions & Answers

Can anyone confirm? I tried several times myself, no luck. All stick in waiting for decompressing. And I end up flashing the ROM identical to my model but not the one Hitool claim was replaced.
Asked in the OP but no one answers.

I can confirm it's still working.. I was successfully updated from 9.1.0.300 to .316 using hstool method, with hisuite xml replaced..

agamahendra said:
I can confirm it's still working.. I was successfully updated from 9.1.0.300 to .316 using hstool method, with hisuite xml replaced..
Click to expand...
Click to collapse
What's this "Hisuite xml replaced" you referring to?

I got the xml file from this post
https://forum.xda-developers.com/showpost.php?p=79887646&postcount=1416
There's some information about the xml from the thread..

If you're using a Canadian device, open the xml file and replace lya-l09 with lya-l0c and save it.
I didn't bother modifying hosts file, just turn the internet off and turn it on right before the last step.

Related

[TOOL] Framework Flasher 1.1.4 (1/14/12) - Easily modify and flash framework-res.apk

Finally! After days of struggling to figure out how to modify my ROM's framework-res.apk and create a working flashable update.zip to install the framework-res.apk changes, I have finally figured out how (big thanks to the guys here: http://forum.xda-developers.com/showthread.php?p=20962080#post20962080) and have created an automated script to help others struggling with the same problem.
Framework Flasher 1.1.4
Feel free to download and experiment with it. This is my first gift to the XDA/Android Hacking community, and I plan on doing more. I just want to test the waters for now Feedback would be nice. Let me know if I've helped you in some way!
---------------------------
What does it do?
It extracts your framework-res.apk file and allows you to edit the files. After editing, the script will compile, sign the apk, create your update.zip with the correct structure for flashing, and then sign the .zip. Everything you need to modify and flash your framework-res.apk file.
How do I use it?
Download the .zip from the link below and extract it somewhere on your PC. Drag the framework-res.apk file that you want to modify and/or flash into the /place-framework-res-here/ directory. Double-click on RunMe.bat and off you go! Do the steps (1-5) in order and you shouldn't have any problems.
Who needs this?
A LOT of people according to how many google searches I did in the past 3-4 days.
Will it work for files other than framework-res.apk?
Currently, no. However it would be easy to implement that functionality if I saw that people would benefit from it.
I found a bug... what do I do?
Post it in this topic. I'll do what I can to make continual updates as long as I see people are benefiting from it. I'm sure there are bugs in it somewhere, so just let me know.
Where do I download this snazzy piece of software?
http://www.mediafire.com/?1nc14hkhs2yrqmt
The little disclaimer
If you download this tool, please say thanks! Not only does it motivate me to continue to improve this software, but it also let's me know how many users are using it! Thanks!
This script is mainly intended for use with editing script files (xml, etc.), and normal (non 9png) images. 9pngs have been successfully repacked using this tool! If you run into any problems, be sure to make it known!
This tools was created to work with the Droid X2. If you are experiencing problems using it, first ensure that you are in fact using a Droid X2.
Change Log
1.1.4 (1/14/12)
- Corrected the Log error. You can now see error logs!
- Corrected an error processing problem where Framework Flasher would instantly close without warning
1.1 (1/7/12)
- Made compatibility tweaks
- Removed unnecessary overhead
1.0 (1/6/12)
- Initial Release
When reporting errors, please ensure that there are no spaces in your file path, and include what ROM and version you are running.
Hello
This is an awesome little tool you got here. I haven't tried it yet but I'll likely give it a shot eventually.
You should add functionality for SystemUI.apk, that's the other "real big" file people like to edit. Just a suggestion based on what I know about theming
Very nice!
So r u telling me this will modify everything including the. 9 png images..also can u get into the xml files as well or images only...i use apk manager and with the. 9 pngs u cannot touch the 9 patches or change the image without using draw 9 patch to ensure the apk will recompile
Sent from my DROID X2 using xda premium
PoorCollegeGuy said:
Hello
This is an awesome little tool you got here. I haven't tried it yet but I'll likely give it a shot eventually.
You should add functionality for SystemUI.apk, that's the other "real big" file people like to edit. Just a suggestion based on what I know about theming
Very nice!
Click to expand...
Click to collapse
Thanks. I will definitely look into adding this. I'll update the OP with any changes or updates.
Kevin3328 said:
So r u telling me this will modify everything including the. 9 png images..also can u get into the xml files as well or images only...i use apk manager and with the. 9 pngs u cannot touch the 9 patches or change the image without using draw 9 patch to ensure the apk will recompile
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Not tested 9pngs with this, it's mainly intended for scripting (xml files, etc. along with normal non 9png images). I've updated the OP to include a little disclaimer stating this fact. Thanks for pointing that out.
.9.png seems to work
Thanks Wesf90 for the tool. I was curious about the .9.png myself. Looking at the script it decompiles and compiles using apktool just like the apkmanager script does so just by looking at your RunMe.bat it looks like it would be fine. I did test it out to be sure though. So I took the framework-res from eclipse 2.0.3 changes some 9.png files and recompiled without any issues. It is important to note that you need to be careful when editing 9.png files to NOT change the black "patches" around the edge of those images. Doing so will cause bad patches and will generate errors when re-compiling. So for example if you apply a filter to the entire image double check that the color value of the black patches are still 000000 (I've done this ). If you don't mess with the patches all should be fine. It also depends on the original framework-res you are starting with. If you use one that has broken 9.pngs in it to start then you will need to fix them before re-compiling (I've done this too ).
Nice work. I especially like that step 4 that creates the update.zip. That is not in apkmanager that I've been using. So following steps 1,2,3,4 sure does make it simpler for a beginner which was your goal. Keep up the good work!
hedwig34 said:
Thanks Wesf90 for the tool. I was curious about the .9.png myself. Looking at the script it decompiles and compiles using apktool just like the apkmanager script does so just by looking at your RunMe.bat it looks like it would be fine. I did test it out to be sure though. So I took the framework-res from eclipse 2.0.3 changes some 9.png files and recompiled without any issues. It is important to note that you need to be careful when editing 9.png files to NOT change the black "patches" around the edge of those images. Doing so will cause bad patches and will generate errors when re-compiling. So for example if you apply a filter to the entire image double check that the color value of the black patches are still 000000 (I've done this ). If you don't mess with the patches all should be fine. It also depends on the original framework-res you are starting with. If you use one that has broken 9.pngs in it to start then you will need to fix them before re-compiling (I've done this too ).
Nice work. I especially like that step 4 that creates the update.zip. That is not in apkmanager that I've been using. So following steps 1,2,3,4 sure does make it simpler for a beginner which was your goal. Keep up the good work!
Click to expand...
Click to collapse
Thanks for the test run. I've updated to OP to state that 9pngs have been tested.
Creating the update.zip was the hardest part for me, learning how to use update-script and updater-script. Hopefully this will help everyone else get on the right path.
is it possible, that after the editing was done, to simply push the framework to its place? without flashing recovery?
Dude XDA did a writeup on this.. but the article states there is no. 9 compatibility .... which is not true your program decompiles just like apk manager and apk tool do... .9 can be edited the patches simply can't be touched.. making this an awesome little tool !!!
Sent from my DROID X2 using xda premium
Sweet tool, just what I've been looking for
Just wanted to drop in and say thanks for this tool (button hit, donation forthcoming).
I tried this with my framework-res file from and ICS 4.0.1 ROM I'm running and it decompiles perfectly, but after I make edits and try and recompile, the script just closes.
I tried looking at the log in the folder of the tool and it didn't have any information except the date/time I ran the script.
Any thoughts? Would love to make use of this if you think it should work for me. Thanks again!
XT69 said:
is it possible, that after the editing was done, to simply push the framework to its place? without flashing recovery?
Click to expand...
Click to collapse
Yes, definitely possible if you have ADB access. I may add this feature, but the idea of the tool is primarily to allow users to create a flash-able file for their's, or others', phones. I'll put it on my to-do list though
Kevin3328 said:
Dude XDA did a writeup on this.. but the article states there is no. 9 compatibility .... which is not true your program decompiles just like apk manager and apk tool do... .9 can be edited the patches simply can't be touched.. making this an awesome little tool !!!
Sent from my DROID X2 using xda premium
Click to expand...
Click to collapse
Yeah I noticed that about the 9pngs in the article, however several people (including yourself) have stated that 9png's work fine. So hopefully XDA will eventually update the post.
zaxondis said:
Just wanted to drop in and say thanks for this tool (button hit, donation forthcoming).
I tried this with my framework-res file from and ICS 4.0.1 ROM I'm running and it decompiles perfectly, but after I make edits and try and recompile, the script just closes.
I tried looking at the log in the folder of the tool and it didn't have any information except the date/time I ran the script.
Any thoughts? Would love to make use of this if you think it should work for me. Thanks again!
Click to expand...
Click to collapse
Interesting. I plan on releasing another update soon, so send me the file you tried (I sent you a PM), I plan on weeding out small bugs quickly. Once the update is ready, hopefully I can have this bug fixed (or at least resolved)
Wes
zaxondis said:
Just wanted to drop in and say thanks for this tool (button hit, donation forthcoming).
I tried this with my framework-res file from and ICS 4.0.1 ROM I'm running and it decompiles perfectly, but after I make edits and try and recompile, the script just closes.
I tried looking at the log in the folder of the tool and it didn't have any information except the date/time I ran the script.
Any thoughts? Would love to make use of this if you think it should work for me. Thanks again!
Click to expand...
Click to collapse
had the same here!
other then that great tool
Ok to u guys having this happen... try to decompile and them recompile immediately ... if this works odds are u damaged a .9 png... those images have a black 1 pixel boarder that cannot be touched
Sent from my DROID X2 using xda premium
Maybe a dumb question but do we flash this in recovery or is this for pc use?Thanks I been itching to try this on my Iced Sam Vib...
Program is for PC use when u r done it will create a flashing zip for u
Sent from my DROID X2 using xda premium
Dougfresh said:
Maybe a dumb question but do we flash this in recovery or is this for pc use?Thanks I been itching to try this on my Iced Sam Vib...
Click to expand...
Click to collapse
Yes, you're absolutely correct. Once you go through the steps and create the update.zip file, simple place that file onto your sd card. Then flash the .zip in recovery.
Wes
Doesn't work for me. It says that echo is off.
Thanks wesf90. Going to DL, and check this out.
Work with any Android?
Will this work with any Android system, like the GS2? Sorry if I missed the answer somewhere above.
Thx.
disclaimernotice said:
Doesn't work for me. It says that echo is off.
Click to expand...
Click to collapse
Does this happen as soon as you start it?

Edit contents of a flashable zip on the device itself.

Last time i flashed cm9 on my p7500 i had to remove the first line of the updater-script for cwm to flash it. now i got the same problem with an other build. i wonder if i could change it somehow without the need of a computer. root explorers text editor doesnt seem to work inside a zip file and fully extracting and repacking seems a bit to much for just little modifications.
got any advice for me?
Sent from my SGH-T859 using XDA Premium HD app
Tyrado said:
Last time i flashed cm9 on my p7500 i had to remove the first line of the updater-script for cwm to flash it. now i got the same problem with an other build. i wonder if i could change it somehow without the need of a computer. root explorers text editor doesnt seem to work inside a zip file and fully extracting and repacking seems a bit to much for just little modifications.
got any advice for me?
Sent from my SGH-T859 using XDA Premium HD app
Click to expand...
Click to collapse
Get root explorer, unextract to a folder, edit with notepad or text editor, then find a zip program to zip it back, Truth be told, why not just get something like WiFi Explorer so you don't need to bring the cable with you everywhere, do the changes on a laptop and send it via WiFI to the folder you want, Kinda like an FTP. It's zipping back that's the problem, most support for editing in zip's changes the permission which can cause issues later.

Force closes in system after updating one file in framework-res

Hi
I have this problem with my friends galaxy ace GT-S5839i:
I need someone to help me here because I don't know what to do
I pulled the file framework-res.apk from system and then changed the extension to zip, and changed an image inside one of the folders.
After that I zipped the pack again (tried several zip options) and changed the extension back to apk
My first question: Is this ok?
I copied the changed file to sdcard and using es explorer moved the file to system/framework. Imediately After answering if I wanted to overwrite the phone freezes and never booted again.
I restored the rom and tried several times with same result
I tought the problem would be trying to overwrite a file that's in use but then I found a tool the decompiled the original apk, changed the image, compiled and signed it and made a flashable zip of it.
It gsve always error in trying to flash this on recovery so I extrated the compiled and signed new framwork apk and moved it to system with es explorer... The difference now is that it didn't froze the phone but started to show fc's everywhere. Rebooted, wipede cash and dalvik, messed up woth permissions... Everything I could think of and the result os always tbe same...
Please can amyone share a light here?
Thanks
Sent from my GT-I9300 using xda premium
im not totaly clude up in modding apk's but i know you dont sighn a system apk that might be the problem or its been recompiled incorectly. how did you recompile it.
gluonyc said:
Please can amyone share a light here?
Click to expand...
Click to collapse
Give the second link in my sig a once over, might clear it up for you.
gavster26 said:
im not totaly clude up in modding apk's but i know you dont sighn a system apk that might be the problem or its been recompiled incorectly. how did you recompile it.
Click to expand...
Click to collapse
I decompiled and recompiled using a script I found at xda - can't remember now where I got it...
Sent from my GT-I9300 using xda premium
XperienceD said:
Give the second link in my sig a once over, might clear it up for you.
Click to expand...
Click to collapse
Ok
I'm gonna look into it, thanks
Edit: Nothing I found there worked...
The only solution was install a different rom (previously had a stock rooted 2.3.6) v4.1
Changed the framework file from the rom and flashed it...
Its working now but still don't know why the previous actions didn't work
Thanks
Sent from my GT-I9300 using xda premium

[Q] Modding Browser.apk

So, I managed to find out where the default homepage setting is located, but I couldn't seem to recompile my cooked browser package without ending up with either the app not showing up on the launcher, or initially showing up but disappears on reboot. It's the AOSP one found on an Allwinner A13 tab, and I wanted to change the system homepage to Google instead of the Manta website.
I already tried clearing the dalvik caches as what Fsebentley suggested, but it didn't seem to work.
Can anyone point me as to how can I properly edit this app using APKtool or the APK Multi-Tool?
blakegriplingph said:
Can anyone point me as to how can I properly edit this app using APKtool or the APK Multi-Tool?
Click to expand...
Click to collapse
Assuming you've edited it correctly have you given the app the right permissions?
Yep, permissions appear to be correct. Same with ownership.
EDIT: Mucking around with Virtuous Ten Studio seemed to do the trick, idk why. I've done what's on the tutorial with the manual, commandline-based methods, but all I get is a browser app that doesn't show up on the launcher after a restart.
blakegriplingph said:
Yep, permissions appear to be correct. Same with ownership.
EDIT: Mucking around with Virtuous Ten Studio seemed to do the trick, idk why. I've done what's on the tutorial with the manual, commandline-based methods, but all I get is a browser app that doesn't show up on the launcher after a restart.
Click to expand...
Click to collapse
VTS sometimes has problem with signatures. That may be the issue. You can decompile and recompile it directly via apktool.
See the link in Xperienced signature for tutorial of apktool
And this for apk multitool
http://forum.xda-developers.com/showthread.php?t=2326393
Thing is, the browser worked properly when I used virtuous instead of APKTool.
blakegriplingph said:
Thing is, the browser worked properly when I used virtuous instead of APKTool.
Click to expand...
Click to collapse
Oh. Then there must be a problem that it wouldn't have been signed in APK MultiTool.
:good:
iamareebjamal said:
Oh. Then there must be a problem that it wouldn't have been signed in APK MultiTool.
:good:
Click to expand...
Click to collapse
You mean like do I have to sign it manually or something?
EDIT: Seems like it had something to do with signing things or something. I tried manually doing a signapk job using the JAR and certs bundled with Virtuous and zipaligned it, and it now seems to work.
Now my question is that would a self-generated cert work on a system APK? I.e. the one that you just churned out on OpenSSL?

Patched libWFD_ENGINE.so for rooted MK1 / ML1 (enables screen mirroring)

I was a little annoyed when I rooted my P600 and lost the ability to use screen mirroring. A bit of searching gave me http://forum.xda-developers.com/showthread.php?t=2421642 showing how to patch libWFD_ENGINE.so. Thanks to everyone on this thread and I have attached a working libWFD_ENGINE.so for my P600 on MK1 / ML1 firmware. Tested using an Actiontec Screenbeam Pro.
Installation:
Using a root-enabled file explorer, like Root Explorer, make a backup of /system/lib/libWFD_ENGINE.so
Download the file below, unzip the zip file, and copy the so file to /system/lib, replacing the one already there (again, make a backup).
Set permissions to 644 / -rw-r--r-- and reboot.
Not tested if it will work on other versions / variants / firmwares
Update, flashed ML1 a couple of days ago and applied the fix again OK.
Excellent work! Did you build this from source? Mind sharing the kernel base?
Worked great thank you.
dasmoover said:
Excellent work! Did you build this from source? Mind sharing the kernel base?
Click to expand...
Click to collapse
No, I just patched the code using Winhex after decompiling with IDA as in the thread I have linked to
apparently it doesn't work on the wifi version because now I'm just stuck at the SAMSUNG screen....I did make a copy of the original file but I'm not sure how I can get it back to where it needs to be because I cannot get ADB to recognize my tablet.
OhioDroid80 said:
apparently it doesn't work on the wifi version because now I'm just stuck at the SAMSUNG screen....I did make a copy of the original file but I'm not sure how I can get it back to where it needs to be because I cannot get ADB to recognize my tablet.
Click to expand...
Click to collapse
I am using this on the P600 wifi, are you using the MK1 firmware ?? Did you setup permissions correctly and did the filesize of the one you backed up look the same ??
TWRP can get you adb, plus the file manager can copy from microsd into your lib directory if needed then setup the correct permissions or use fix permissions from the advanced menu. Be sure to use the 2.6.3.0 version from http://www.techerrata.com/browse/twrp2/lt03wifiue, I used Odin 3.09 to flash the .tar
P600 Wifi Version
MK1 firmware
Just ODIN'd the correct .tar, I used a different TWRP the first time.
---------- Post added at 08:09 PM ---------- Previous post was at 07:27 PM ----------
OhioDroid80 said:
P600 Wifi Version
MK1 firmware
Just ODIN'd the correct .tar, I used a different TWRP the first time.
Click to expand...
Click to collapse
Well I got as far as android is updating but it would not go any further. Testing continues.
Sent from my LG-D801 using Tapatalk
---------- Post added at 08:40 PM ---------- Previous post was at 08:09 PM ----------
My laptop will not recognize my tablet so that I can put that file in a folder so that I can move it with the file manager....hmm.
Still no luck. I even downloaded the zip from the computer and transferred it to a SD card and moved it to the system folder that way and it still will not go past the SAMSUNG screen. I wouldn't care to just flash back to stock with ODIN but I cannot find the firmware without having to pay for the ability to download the file. Does anyone have a download they could share with me? It doesn't really matter which one, I just want my Note back.
OhioDroid80 said:
Still no luck. I even downloaded the zip from the computer and transferred it to a SD card and moved it to the system folder that way and it still will not go past the SAMSUNG screen. I wouldn't care to just flash back to stock with ODIN but I cannot find the firmware without having to pay for the ability to download the file. Does anyone have a download they could share with me? It doesn't really matter which one, I just want my Note back.
Click to expand...
Click to collapse
You didn't look very hard From http://forum.xda-developers.com/showthread.php?t=2516013 gives http://www.samsungis.com/download/XAR-P600UEUBMK1
When you flash this over the top you won't lose any settings etc., just root / recovery
His dropbox is flagged for traffic and the other links to Sammimobile are for paid downloads. Give me the benefit of the doubt for the ability to use Google search and XDA search lol.
Sent from my LG-D801 using Tapatalk
OhioDroid80 said:
His dropbox is flagged for traffic and the other links to Sammimobile are for paid downloads. Give me the benefit of the doubt for the ability to use Google search and XDA search lol.
Click to expand...
Click to collapse
No worries, but you did scroll down through that thread and find the other alternative places to download it ?? !!
I do believe the other options require you to pay for downloading the file. I'm not that desperate yet.
Sent from my LG-D801 using Tapatalk
OhioDroid80 said:
I do believe the other options require you to pay for downloading the file. I'm not that desperate yet.
Sent from my LG-D801 using Tapatalk
Click to expand...
Click to collapse
This is from the last link I mentioned http://uploaded.net/file/95sl3ijv
Edit, OK, I have Uploaded Premium so can download big files, now I get it !
Paid the 4.99. Hopefully I will be up and running soon. The download speed isn't blazing fast from that website. I have a dedicated line where I work and I'm only seeing max download speeds of 800Kbs. Lesson learned about not making a backup first. I never would have thought that little file could cause so many problems.
Will this work on lte P605?
Sent from my SM-N9005
rcsiccion said:
Will this work on lte P605?
Sent from my SM-N9005
Click to expand...
Click to collapse
It's worth comparing the file sizes 1st to see, I noticed that on the other thread the modification was used across several versions / firmwares of the same device. But make a backup and have a fresh copy of the firmware just incase !
I have P605. I rooted uaing twrp and screen mirror is working perfectly without using this
Sent from my SM-P605 using Tapatalk
Are You using the built in screescreen Mirror app
jpearn said:
I was a little annoyed when I rooted my P600 and lost the ability to use screen mirroring. A bit of searching gave me http://forum.xda-developers.com/showthread.php?t=2421642 showing how to patch libWFD_ENGINE.so. Thanks to everyone on this thread and I have attached a working libWFD_ENGINE.so for my P600 on MK1 firmware. Tested using an Actiontec Screenbeam Pro.
Installation:
Using a root-enabled file explorer, like Root Explorer, make a backup of /system/lib/libWFD_ENGINE.so
Download the file below, unzip the zip file, and copy the so file to /system/lib, replacing the one already there (again, make a backup).
Set permissions to 644 / -rw-r--r-- and reboot.
Not tested if it will work on other versions / variants / firmwares
Click to expand...
Click to collapse
When you use the screen mirror do you just select it from the settings? Or do you use another app? I am thinking about getting an actiontec screen beam pro and would like to know how the setup goes?
Duly.noted said:
When you use the screen mirror do you just select it from the settings? Or do you use another app? I am thinking about getting an actiontec screen beam pro and would like to know how the setup goes?
Click to expand...
Click to collapse
You access it from settings or the toggle in the notifications.
can someone please explain why root breaks screen mirroring? very curious to know...

Categories

Resources