yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Jeik:
I am using Cm12.1 as a base. And we have nothing older than CM12.1...

When I was using the FlymeOS Patchtool,if it had errors,it would distinctively show the conflicts in the troublesome files.

But Tencent Patchtool doesn't make a "reject" folder.

I tried searching for the files,and I would get two files found. I open them both in text editors,but there are no conflict lines in there. :confused:

Then I tried to just make the package,but it gave me an error mentioning those files which weren't edited.
[Android Software/Hacking General [Developers Only]] Qiangong2:
It should
[Android Software/Hacking General [Developers Only]] Qiangong2:
Okay. Were any successful at patching?
[Android Software/Hacking General [Developers Only]] Qiangong2:
I think I figured out why it won't work. It won't work if you have the rom with .dat files. You need it open like on 4.4 and below.
[Android Software/Hacking General [Developers Only]] Jeik:
I made the zip open already,I am not THAT bad. xD

But I hope we are on the same page here. I made sure that my zip wasn't block based,but normal like 4.4 was(I could edit all things inside the zip instead of having one system.DAT image in the zip).
[Android Software/Hacking General [Developers Only]] surajsj:
U got many fails in patch
[Android Software/Hacking General [Developers Only]] surajsj:
Plz reply..
[Android Software/Hacking General [Developers Only]] Qiangong2:
[MENTION=7277303]Dinjesk[/MENTION]

You have to patch smali manually, or try a different rom. I'd recommend trying a different 4.4 or 4.3 rom first before patching smali.
[Android Software/Hacking General [Developers Only]] surajsj:
Abt this error Plz
[Android Software/Hacking General [Developers Only]] Qiangong2:
There's a problem with the zip file. Under the package folder, there should be a zip file called: [yourdevicecodenamehere].zip.

flash that one without changing anything. If that doesn't work, you messed up in the config folder somehow.
[Android Software/Hacking General [Developers Only]] surajsj:
In package folder I should find it and do I need to flash this with rom or how
[Android Software/Hacking General [Developers Only]] Qiangong2:
Flash it in custom recovery
[Android Software/Hacking General [Developers Only]] surajsj:
No I didn't find that zip ...so soon am gng to rebuild it
[Android Software/Hacking General [Developers Only]] surajsj:
And one more thing ...and trying to port miui for the same device ..when i enter make first patch ...the patch doesn't even start ..
[Android Software/Hacking General [Developers Only]] surajsj:
it looks like this
[Android Software/Hacking General [Developers Only]] Pavansk:
Hey [MENTION=6124463]Qiangong2[/MENTION] please reply bro we need very help of you

---------- Post added at 05:06 PM ---------- Previous post was at 05:01 PM ----------

Hey and I wanted to know one thing that can this all be done in a 32 bit version PC
[Android Software/Hacking General [Developers Only]] Dinjesk:
Going to try patching the smali.

And i am not using any 4.3 or 4.4 rom.

Using cm13 which is 6.0.1 as my base rom
[Android Software/Hacking General [Developers Only]] Qiangong2:
This can all be done on a 32bit PC. I don't know why MiUi is having problems.
[Android Software/Hacking General [Developers Only]] Dinjesk:
i've quit trying. to much of a hassle.

thx for a clean guide but i think it's above my hat for now.
[Android Software/Hacking General [Developers Only]] Qiangong2:
Np. It may be that TPS just doesn't work on 6.0.1
[Android Software/Hacking General [Developers Only]] surajsj:
Hey where to find file_contexts bro plZ

---------- Post added at 06:25 PM ---------- Previous post was at 06:19 PM ----------

Hey where to find file_contexts ...today am dng my last try
[Android Software/Hacking General [Developers Only]] surajsj:
Help plz
[Android Software/Hacking General [Developers Only]] Pavansk:
Am unable to figure out where we are going wrong but every time we end up with a problem asking for help of you [MENTION=6124463]Qiangong2[/MENTION]

Here I attach my last flash result but unable to boot it will go to bootloader menu if did manual reboot says boot failed so how shall we figure out this problem one last time

This is last time we are asking you
[Android Software/Hacking General [Developers Only]] Qiangong2:
There is a problem with your updater-script
[Android Software/Hacking General [Developers Only]] Qiangong2:
file_contexts is available in the boot.img. If you can't find file_contexts online, extract the boot.img for your device and use that.
[Android Software/Hacking General [Developers Only]] Pavansk:
What else we have to change in updater script please help with that we are beginners no so we face a lot of problems initially so don't mind if we ask for many helps. Actually we are trying very hard over it so please help

---------- Post added at 03:51 PM ---------- Previous post was at 03:24 PM ----------

This is again we are disturbing you with our help requests so I got a idea of uploading our build in here so that u can say problems with this build and another one is that am uploading the updater script of this build so u can edit it and please ask necessary details requirer to edit it

Thank you in advance.

---------- Post added at 04:45 PM ---------- Previous post was at 03:51 PM ----------

https://app.box.com/s/k5qwfdesrp45hqlj0shwd70qvvxjv5cx
[Android Software/Hacking General [Developers Only]] surajsj:
[MENTION=6124463]Qiangong2[/MENTION] plz help for the above quote by [MENTION=6767629]Pavansk[/MENTION]
[Android Software/Hacking General [Developers Only]] Qiangong2:
[MENTION=6767629]Pavansk[/MENTION] and [MENTION=7305683]surajsj[/MENTION] does your moto e run 5.1 before flashing?
[Android Software/Hacking General [Developers Only]] surajsj:
Yes

---------- Post added at 05:37 PM ---------- Previous post was at 05:31 PM ----------

Currently in cm 12.1
[Android Software/Hacking General [Developers Only]] Qiangong2:
That's the problem. You need to revert to stock 4.4 ROM or CM11 before flashing as TencentOS is a 4.4 ROM.
[Android Software/Hacking General [Developers Only]] surajsj:
Tried on cm 11... Same error

---------- Post added at 05:52 PM ---------- Previous post was at 05:52 PM ----------

Or do I need to revert for stock
[Android Software/Hacking General [Developers Only]] Pavansk:
We did that also same result
[Android Software/Hacking General [Developers Only]] surajsj:
But not on stock... Will try wait
[Android Software/Hacking General [Developers Only]] Pavansk:
OK try on that

---------- Post added at 05:58 PM ---------- Previous post was at 05:58 PM ----------

@Qiangong2 are there any faults with updater-script
[Android Software/Hacking General [Developers Only]] Qiangong2:
No faults with updater-script.
[Android Software/Hacking General [Developers Only]] Pavansk:
Thank you for your help

---------- Post added at 06:03 PM ---------- Previous post was at 06:01 PM ----------

Frankly speaking you are the only developer we met who is so patient for reply and your solutions are simply superb
[Android Software/Hacking General [Developers Only]] Qiangong2:
No problem. I'm happy to help :)
[Android Software/Hacking General [Developers Only]] surajsj:
Same error even on stock 4.4.4

---------- Post added at 06:26 PM ---------- Previous post was at 06:19 PM ----------

What else I can try
[Android Software/Hacking General [Developers Only]] Qiangong2:
Can you go to 4.4.2? That may be what you need for it to work. Or you need to set in the config file "android4.4.4" as the tos android version and rebuild.
[Android Software/Hacking General [Developers Only]] Abhinav997:
EDIT

Replace otakeys...

done.

unzipping target target-files...

append device assertions

building image from target_files RECOVERY...

Traceback (most recent call last):

File "/home/abhinav/Documents/TPS/build/tools/releasetools/ota_from_target_files", line 1080, in <module>

main(sys.argv[1:])

File "/home/abhinav/Documents/TPS/build/tools/releasetools/ota_from_target_files", line 1048, in main

WriteFullOTAPackage(input_zip, output_zip)

File "/home/abhinav/Documents/TPS/build/tools/releasetools/ota_from_target_files", line 497, in WriteFullOTAPackage

WritePolicyConfig(OPTIONS.info_dict["selinux_fc"], output_zip)

File "/home/abhinav/Documents/TPS/build/tools/releasetools/ota_from_target_files", line 547, in WritePolicyConfig

f = open(file_context, 'r');

IOError: [Errno 21] Is a directory: '/tmp/targetfiles-KuXmC7/'

[ERROR] generate ota package failed

/home/abhinav/Documents/TPS/build/package.mk:32: recipe for target 'package' failed

make: *** [package] Error 1

abhinav@abhinav-HP-ProBook-440-G2:~/Documents/TPS/devices/S5830i$

:confused:

Any help?
[Android Software/Hacking General [Developers Only]] Qiangong2:
It says there is already a temp folder. Try using "make clean-package" and then use "make package" again.
[Android Software/Hacking General [Developers Only]] surajsj:
I didn't get you
[Android Software/Hacking General [Developers Only]] surajsj:
In config file it is android 4.4.4 only.... And I can't go to 4.4.2 this phone doesn't hav any roms on 4.4.2
[Android Software/Hacking General [Developers Only]] surajsj:
I can't go 4.4.2 since it base is 4.4.4... And in config file it is as "android4.4.4"only
[Android Software/Hacking General [Developers Only]] Abhinav997:
Didn't help.........same error but with different folder name!
[Android Software/Hacking General [Developers Only]] surajsj:
Tried flashing it with adb side load same error
[Android Software/Hacking General [Developers Only]] shyvam:
HEY i m getting this error

please help me to fix,a hint to fix it will be very helpful and apprciable
[Android Software/Hacking General [Developers Only]] surajsj:
For which device
[Android Software/Hacking General [Developers Only]] shyvam:
for condor (motorola moto e)

rewriting SYSTEM/build.prop:
replace: ro.build.display.id=cm_condor-userdebug 4.4.4 KTU84Q c837882934 test-keys
with: ro.build.display.id=cm_condor-userdebug
replace: ro.build.tags=test-keys
with: ro.build.tags=release-keys
signing: framework-res.apk (/home/shivam/TPS/build/config/security/platform)
signing: framework-qrom-res.apk (/home/shivam/TPS/build/config/security/platform)
rewriting SYSTEM/etc/security/mac_permissions.xml with new keys.
Replace otakeys...
done.
unzipping target target-files...

ERROR: couldn't find ro.build.fingerprint in build.prop

[ERROR] generate ota package failed
/home/shivam/TPS/build/package.mk:32: recipe for target 'package' failed
make: *** [package] Error 1
shivam@Pepermint ~/TPS/devices/condor $

---------- Post added at 03:11 PM ---------- Previous post was at 03:06 PM ----------

hey bro [MENTION=6124463]Qiangong2[/MENTION]

i m getting this error please help me to fix this

rewriting SYSTEM/build.prop:
replace: ro.build.display.id=cm_condor-userdebug 4.4.4 KTU84Q c837882934 test-keys
with: ro.build.display.id=cm_condor-userdebug
replace: ro.build.tags=test-keys
with: ro.build.tags=release-keys
signing: framework-res.apk (/home/shivam/TPS/build/config/security/platform)
signing: framework-qrom-res.apk (/home/shivam/TPS/build/config/security/platform)
rewriting SYSTEM/etc/security/mac_permissions.xml with new keys.
Replace otakeys...
done.
unzipping target target-files...

ERROR: couldn't find ro.build.fingerprint in build.prop

[ERROR] generate ota package failed
/home/shivam/TPS/build/package.mk:32: recipe for target 'package' failed
make: *** [package] Error 1
shivam@Pepermint ~/TPS/devices/condor $
[Android Software/Hacking General [Developers Only]] surajsj:
I already built it.. But couldn't boot it I Need help for it

---------- Post added at 04:01 PM ---------- Previous post was at 03:41 PM ----------

Help me bro
[Android Software/Hacking General [Developers Only]] shyvam:
hey dude i sucessfully build my base is 4.4.4 my previous error i fixed it my own

now what is your problem with no boot tell memaybe :silly::laugh:i can help.....
[Android Software/Hacking General [Developers Only]] surajsj:
I hav Built rom without any errors and patches.... The thing is when I flash it flash ll be done successfully when I hit reboot it goes to bootloader recovery from there when I try to start from bootloader recovery manually it says boot up failed
[Android Software/Hacking General [Developers Only]] surajsj:
I get like this after flash is done
[Android Software/Hacking General [Developers Only]] shyvam:
just delete existing boot.img from patchrom.zip and replace with your base

this same happend with me and i took my base rom.zip/boot.img and pasted in the patchrom build

i booted sucessfully with no bootanimation and i m getting error like com.android.phone stopped,systemui stopped,

if u know to fix then please share with me
[Android Software/Hacking General [Developers Only]] surajsj:
Even did it bro...

---------- Post added at 05:42 PM ---------- Previous post was at 05:41 PM ----------

It says couldn't find update-binary and installation ll be aborted

---------- Post added at 05:49 PM ---------- Previous post was at 05:42 PM ----------

Which rom u took as base
[Android Software/Hacking General [Developers Only]] shyvam:
cm11 latest build by [MENTION=6138124]Adarsh1998[/MENTION]
[Android Software/Hacking General [Developers Only]] surajsj:
Ok ok after changing boot. Img I ll get like this
[Android Software/Hacking General [Developers Only]] turnert:
i have the same error. i ported the rom to my galaxy s3 mini (G730A) but when i boot system ui constenly crashes i think it may be because there are two systemui apps one from your base rom and one from the patch rom.
[Android Software/Hacking General [Developers Only]] Qiangong2:
You need to remove systemui.apk. qsystemui.apk should still be there.
[Android Software/Hacking General [Developers Only]] turnert:
Could i just remove the whole priv-app/app folder?(from the base rom)
[Android Software/Hacking General [Developers Only]] Qiangong2:
You may be able to, you'll have to experiment though as your ROM may require certain apk's to function correctly. I prefer building, then removing the apk's I don't need manually.
[Android Software/Hacking General [Developers Only]] shyvam:
hey bro i fixed systemui crashing bug by deleting Systemui form priv-app..but com.android.phone is crashing again and again....can u tell mw how can i fix that?

:crying::confused:
[Android Software/Hacking General [Developers Only]] turnert:
Maybe there is two phone apps try deleting one
[Android Software/Hacking General [Developers Only]] shyvam:
whoooh i fixed com.android.phone fc also
[Android Software/Hacking General [Developers Only]] turnert:
Does everything else work fine?
[Android Software/Hacking General [Developers Only]] shyvam:
hey somthing is in chinese prompting again and again its also lik fc
[Android Software/Hacking General [Developers Only]] turnert:
Go to settings/application manager and find the app with an s as the icon and disable it
[Android Software/Hacking General [Developers Only]] surajsj:
Hey am getting the same error as u got while making Package couldn't find ro.build.fingerprint

---------- Post added at 08:21 AM ---------- Previous post was at 08:03 AM ----------

Help me soon guys

---------- Post added at 08:27 AM ---------- Previous post was at 08:21 AM ----------

Help me bro
[Android Software/Hacking General [Developers Only]] turnert:
Your probably missing the ro.build.fingerprint line in your build.prop file. Find that in your stock build.prop and copy it into your port build.prop.
[Android Software/Hacking General [Developers Only]] Pavansk:
Finally after doing a lot of circus asking helps trying alternatives we are finally able to boot the Tencent os as per the guide given by [MENTION=6124463]Qiangong2[/MENTION] with efforts of [MENTION=7305683]surajsj[/MENTION] and [MENTION=6767629]Pavansk[/MENTION] and [MENTION=6290051]shyvam[/MENTION] I would like to extend a lot of thanks to the OP of this thread

---------- Post added at 12:28 PM ---------- Previous post was at 12:25 PM ----------

[/COLOR [MENTION=6124463]Qiangong2[/MENTION] am asking you permission for posting this guide in my website. Please allow us to do

This is our website

WWW.motoeweb.WordPress.com
[Android Software/Hacking General [Developers Only]] Pavansk:
Again a solution request after booting I found that some cm settings lock screen and caller ui is carried over by ROM how to solve it please reply fast
[Android Software/Hacking General [Developers Only]] Qiangong2:
You need to open the zip and remove the apk's. Remove the dialer.apk, the mms.apk and other that conflict. It defaults to the CM apk's
[Android Software/Hacking General [Developers Only]] shyvam:
---------- Post added at 05:12 AM ---------- Previous post was at 05:09 AM ----------

[/COLOR]

deleted
[Android Software/Hacking General [Developers Only]] Pavansk:
The right person to answer this question is [MENTION=7305683]surajsj[/MENTION] u ask him how I helped him in doing all these he will answer you correctly
[Android Software/Hacking General [Developers Only]] shyvam:
i deleted that post i was angry because i didnt know what u did idk because surajsj didnt tell me about you
[Android Software/Hacking General [Developers Only]] Pavansk:
Its OK now no problem.

Did u accept my invitation sent to u [MENTION=6290051]shyvam[/MENTION]
[Android Software/Hacking General [Developers Only]] kutlay1653:
Will it work on mtk?
[Android Software/Hacking General [Developers Only]] Pavansk:
Yes why not but you need to have 4.4 version of your device
[Android Software/Hacking General [Developers Only]] Qiangong2:
As long as you mention me, I am fine with it
[Android Software/Hacking General [Developers Only]] Pavansk:
Hey [MENTION=6124463]Qiangong2[/MENTION] please help us with removing cm apps from the build and to make it completely look like tencent bcz in our build what happened is settings is from cm lock screen is from cm even we will 2 setup wizards one of cm and one of tencent please help ASAP
[Android Software/Hacking General [Developers Only]] Qiangong2:
You have to remove the CM apps that conflict with the TencentOS apps. Lockscreen.apk and Lockscreensettings.apk should not exist. Neither should dialer.apk or mms.apk. All of these have TencentOS alternatives. You can remove qotaupdater.apk as these ROMS will never be updated through the Tencent servers.
[Android Software/Hacking General [Developers Only]] Pavansk:
I tried it but what happened is I removed dialer.apk settings.apk MMS.apk from the build then tried to boot it didn't work zip fails to flash tried in booted mode I mean using root explorer but none of those applications shows up neither they work and after removing dialer. Apk caller screen didn't came up so any other ways to solve this

---------- Post added at 06:10 AM ---------- Previous post was at 06:06 AM ----------

Only these are some of things to be fixed in our build rest is all fine if these fixed means our is a perfect build
[Android Software/Hacking General [Developers Only]] Dinjesk:
[MENTION=6124463]Qiangong2[/MENTION]

Do you know when TOS 2.0 comes?

Would love to try porting it to the oneplus 2 again
[Android Software/Hacking General [Developers Only]] Qiangong2:
Tencent has (for now) discontinued support for TPS. There will be no TPS 2.0. We're stuck with 1.0 for now.
[Android Software/Hacking General [Developers Only]] Dinjesk:
Thxfor the info
[Android Software/Hacking General [Developers Only]] Qiangong2:
There shouldn't be a boot failed error just because of removing those apk's..... contacts are built into the qdialer.apk. delete contacts.apk, but DO NOT delte ContactsProvider.apk.
[Android Software/Hacking General [Developers Only]] Pavansk:
OK will try today nd will post if errors occurs again [emoji23] [emoji23] [emoji6]
[Android Software/Hacking General [Developers Only]] Pavansk:
Its the same result again when we remove those files and zip it with same name then also its not taking it again flash fails even though I used zip signer so that I can make it flashable but it didn't work so please find us a solution am asking because we tried a lot on this respect
[Android Software/Hacking General [Developers Only]] Qiangong2:
What is the error exactly? What does it say?
[Android Software/Hacking General [Developers Only]] Pavansk:
Please don't feel we are too irritating but its our commitment just.

I removed all cm11 related apps from apps and priv-apps of our build then we have to zip it again to flash OK we zipped it and then renamed it to some name and tried to flash that time it didn't flash same we changed name to original one after removing all cm apps then also it failed to flash then searched Google how to make a flashable zip found a guide which said zip your files and name it as update.zip did it then in guide it also said to sign it did that too no same zip flash failed so our problem lies not with removing cm apps but with that zip creation this is what I found after some 5 to 6 tires [emoji23] [emoji23]

Is there any solution so that we can keep the zip file same and remove apps
[Android Software/Hacking General [Developers Only]] Qiangong2:
Manually removing apps one-by-one is the next step. build TencentOS, then start by removing setupwizard.apk, trebuchet.apk, and systemui.apk. If it works, remove dialer.apk and mms.apk. Then continue with others until it doesn't work.
[Android Software/Hacking General [Developers Only]] Pavansk:
OK will try this now then shall see
[Android Software/Hacking General [Developers Only]] Pavansk:
This is what happening after removing all those apks and to boot it I used cm 11s boot.img so please solve this one and our build is perfect
[Android Software/Hacking General [Developers Only]] Qiangong2:
Is there an apk called AndroidProvision.apk that you removed? If so, replace it.
[Android Software/Hacking General [Developers Only]] Pavansk:
Am not sure about that but will see about it

Can we add that manually if deleted
[Android Software/Hacking General [Developers Only]] Qiangong2:
Yes
[Android Software/Hacking General [Developers Only]] Pavansk:
Where shall I add that to apps or priv-apps
[Android Software/Hacking General [Developers Only]] Qiangong2:
add it to the "app" folder
[Android Software/Hacking General [Developers Only]] surajsj:
Couldn't find it in any of the ROMs
[Android Software/Hacking General [Developers Only]] Qiangong2:
What about Provision.apk?
[Android Software/Hacking General [Developers Only]] surajsj:
Yes having
[Android Software/Hacking General [Developers Only]] Qiangong2:
copy it to the "app" folder.
[Android Software/Hacking General [Developers Only]] Pavansk:
After copying what we have to do and how to copy it shall we have to create a folder for that named com.android.provision
[Android Software/Hacking General [Developers Only]] Qiangong2:
Just copy the apk to the app folder of the ROM, zip, and reflash. You don't need to create any folders.
[Android Software/Hacking General [Developers Only]] Pavansk:
Thank you so much feels all will go fine now
[Android Software/Hacking General [Developers Only]] Qiangong2:
Did it work?
[Android Software/Hacking General [Developers Only]] surajsj:
Got symlink error status 7
[Android Software/Hacking General [Developers Only]] Qiangong2:
Mount system as read only,then unmount system.
[Android Software/Hacking General [Developers Only]] Pavansk:
Where to do that.

In recovery??
[Android Software/Hacking General [Developers Only]] surajsj:
Got it and done.. But that fc still there
[Android Software/Hacking General [Developers Only]] Qiangong2:
It's still com.android.provision?
[Android Software/Hacking General [Developers Only]] Qiangong2:
Yes, in recovery.
[Android Software/Hacking General [Developers Only]] surajsj:
Yes and its letting to go on home screen of the os
[Android Software/Hacking General [Developers Only]] Qiangong2:
Do you have PacProcessor.apk in your app folder? Also, is PhaseBeam.apk there? You may need those as well.
[Android Software/Hacking General [Developers Only]] surajsj:
I hav phasebeam.apk but not pacprocessor.apk
[Android Software/Hacking General [Developers Only]] Qiangong2:
See if adding that works.
[Android Software/Hacking General [Developers Only]] surajsj:
OK will try tomorrow...