yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] turnert:
I got my rom to boot but when it boots system ui crashes every time I open an app and I cannot figure out why. I already deleted the system ui apk from my original rom. Also the wifi does not turn on. Any ideas on how to fix these?
[Android Software/Hacking General [Developers Only]] Qiangong2:
Did you remove any other apks?
[Android Software/Hacking General [Developers Only]] turnert:
Yes but it was mostly just at&t and samsung apps. Wifi and system ui have not worked at all even with all the apps except settings and system ui.
[Android Software/Hacking General [Developers Only]] Qiangong2:
Were there any failed patches on the "make patch" part?
[Android Software/Hacking General [Developers Only]] turnert:
Yes but not a very many
[Android Software/Hacking General [Developers Only]] surajsj:
doesnt work bro ....:confused::confused::confused:
[Android Software/Hacking General [Developers Only]] surajsj:
Still what I need to add in zip if any missing
[Android Software/Hacking General [Developers Only]] Qiangong2:
Do you have PhotoPhase.apk and teleservice.apk? you need to remove OneTimeInitializer.apk as well
[Android Software/Hacking General [Developers Only]] surajsj:
Yes am having photophase.apk but not teleservice.apk...and not having onetimeintializer.apk ...and I didn't find teleservice.apk in my base ROM ....

Even I added some apps in remove_files.txt but still thy appear in ROM am not getting why like that

---------- Post added at 04:24 PM ---------- Previous post was at 04:18 PM ----------

Yes am having photophase.apk but not teleservice.apk...and not having onetimeintializer.apk ...and I didn't find teleservice.apk in my base ROM ....

Even I added some apps in remove_files.txt but still thy appear in ROM am not getting why like that
[Android Software/Hacking General [Developers Only]] Qiangong2:
Try adding Noisefield.apk, and Stk.apk into the system/app folder
[Android Software/Hacking General [Developers Only]] surajsj:
Nope didn't work something is missing in zip but couldn't get it
[Android Software/Hacking General [Developers Only]] Qiangong2:
Did you remove settingsprovider.apk?
[Android Software/Hacking General [Developers Only]] surajsj:
Nope its there
[Android Software/Hacking General [Developers Only]] Qiangong2:
Remove it
[Android Software/Hacking General [Developers Only]] surajsj:
No changes
[Android Software/Hacking General [Developers Only]] Qiangong2:
When you have all of the CM apps in the ROM as well, do you still get the com.android,provision error?
[Android Software/Hacking General [Developers Only]] surajsj:
No it works very well
[Android Software/Hacking General [Developers Only]] Qiangong2:
Try just removing StartupWizard.apk and systemui.apk
[Android Software/Hacking General [Developers Only]] surajsj:
From which
[Android Software/Hacking General [Developers Only]] surajsj:
But my other build which consists of cm app after removing them manually it won't boot it gives error like this
[Android Software/Hacking General [Developers Only]] Qiangong2:
Copy update-binary from the original cm11 ROM to meta-inf/com/google/android then reflash
[Android Software/Hacking General [Developers Only]] surajsj:
OK ll try
[Android Software/Hacking General [Developers Only]] surajsj:
Kept for hour didnt boot
[Android Software/Hacking General [Developers Only]] turnert:
You could try using a different boot.img see if changing it helps
[Android Software/Hacking General [Developers Only]] Qiangong2:
Rebuild from scratch time. yay :rolleyes:

In the remove files config file, add:

priv-app/Trebuchet.apk
priv-app/Systemui.apk
app/Browser.apk
app/CMFileManager.apk
app/Calculator.apk
app/Email.apk
priv-app/Mms.apk
priv-app/Dialer.apk
priv-app/Keyguard.apk
priv-app/Shell.apk
priv-app/Contacts.apk
priv-app/ContactsProvider.apk
priv-app/DownloadProvider.apk
app/PackageInstaller.apk

And rebuild.
[Android Software/Hacking General [Developers Only]] surajsj:
But having more apps to be removed out of your list

---------- Post added at 03:40 PM ---------- Previous post was at 03:35 PM ----------

And am thinking of taking carbon ROM as base instead cm
[Android Software/Hacking General [Developers Only]] Qiangong2:
Try Carbon ROM.
[Android Software/Hacking General [Developers Only]] Pavansk:
[MENTION=6124463]Qiangong2[/MENTION] finally we solved that problem.

But now there is a problem of lock screen if we lock it & unlock means it won't go to home screen and

we solved that problem by flashing gapps along with ROM

Can u tell me if we include gapps in that means there won't be any problems right?

And please tell how to add gapps to that rom
[Android Software/Hacking General [Developers Only]] Qiangong2:
I've been trying to figure out how to fix that myself :) Great job. The easiest way is to manually copy the apk's and libs from the flashable zip into the ROM. It might just be better if you tell the ROM users to download and flash Gapps themselves. I wonder if it just needs google play services, or some other lib...
[Android Software/Hacking General [Developers Only]] turnert:
so I rebuilt the from with no errors and system ui still keeps crashing could this be a problem with the config files I made for the rom?
[Android Software/Hacking General [Developers Only]] surajsj:
See if u two system ui ....that all be reason for crashing delete one systemui.apk from zip
[Android Software/Hacking General [Developers Only]] turnert:
I already did that still didn't help :/
[Android Software/Hacking General [Developers Only]] surajsj:
Does it crashes frequently
[Android Software/Hacking General [Developers Only]] turnert:
It only crashes when I open a new app
[Android Software/Hacking General [Developers Only]] surajsj:
[MENTION=6124463]Qiangong2[/MENTION] when I rename my zip it not flashing it gives error of updater binary is missing from zip
[Android Software/Hacking General [Developers Only]] surajsj:
http://xdaforums.com/chef-central/android/rom-tencent-os-1-0alpha-buildfor-moto-e-t3420419

---------- Post added at 04:56 PM ---------- Previous post was at 04:56 PM ----------

Here is my build finally
[Android Software/Hacking General [Developers Only]] Qiangong2:
Remove qotaupdater.apk and any conflicting apps. Then see.
[Android Software/Hacking General [Developers Only]] surajsj:
Can I get any solns for this [MENTION=6124463]Qiangong2[/MENTION]
[Android Software/Hacking General [Developers Only]] Qiangong2:
From what I can find on XDA, the problem is with the zip itself. Try disabling md5 checking on zip files. The flash.
[Android Software/Hacking General [Developers Only]] surajsj:
OK will try
[Android Software/Hacking General [Developers Only]] Qiangong2:
[MENTION=6767629]Pavansk[/MENTION] How did you get the lockscreen to work? which opengapps did you choose?
[Android Software/Hacking General [Developers Only]] Pavansk:
Am using external lockscreen app for my device. And I chose android 4.4 pico gapps version
[Android Software/Hacking General [Developers Only]] turnert:
I removed as many apps as i could but system ui still crashes. when the phone boots up i get 3 popups one is not in english, one says system ui has stopped, and one says sim not provisioned.
[Android Software/Hacking General [Developers Only]] Pavansk:
Before to flash try changing ROM kernel for our easy boot we have used cm 11 kernel and that Chinese popup can be stopped by going into settings advanced settings and in that apps in that there is a app symbolic *S* open it and clear data and force stop it and it won't repeat again. [emoji4] [emoji4]
[Android Software/Hacking General [Developers Only]] turnert:
Sadly there is only one kernel for my device and its the stock one :( and i already deleted the s app from the system folder. im just going to try to use cm11 from a similar device as a base.
[Android Software/Hacking General [Developers Only]] Pavansk:
About Bluetooth Fix Querry

Here are my bluetooth .conf files am attaching please check and say how they should be, what are the errors, and say fixes [MENTION=6124463]Qiangong2[/MENTION]
[Android Software/Hacking General [Developers Only]] Pavansk:
Actually I compared both files for cm 11 which is our base but I found that both are same no changes in values
[Android Software/Hacking General [Developers Only]] Qiangong2:
MAKE SURE THE DEVICE YOU WILL BE USING AS A BASE CAN FLASH SUCCESSFULLY ON YOUR DEVICE OTHERWISE IT WILL BRICK YOUR DEVICE.

You have a samsung phone, the kernel source is available online. Build a kernel using that source, then try.
[Android Software/Hacking General [Developers Only]] Qiangong2:
TencentOS adds a few conf files of its own (not for bluetooth) which may interfere somehow. Bluetooth works fine on my build.
[Android Software/Hacking General [Developers Only]] turnert:
Can you use a custom kernel on an at&t locked boot loader?
[Android Software/Hacking General [Developers Only]] Qiangong2:
You can't even use a custom recovery if your bootloader is locked. So, no. You can't
[Android Software/Hacking General [Developers Only]] turnert:
You can have a custom recovery on locked bootloaders but it's limited when it comes to roms you can install. It's called safestrap.
[Android Software/Hacking General [Developers Only]] Qiangong2:
I thought safestrap was just an overlay that allowed certain touchwiz ROMS to install.
[Android Software/Hacking General [Developers Only]] turnert:
I can install any rom as long as I have the stock kernel
[Android Software/Hacking General [Developers Only]] Qiangong2:
Okay, sorry.
[Android Software/Hacking General [Developers Only]] turnert:
I discovered why my wifi is not working for my port. It is because I am flashing the rom in my second rom slot.(in my safestrap recovery) Unfortunitly when I install a rom to any rom slot except the stock slot wifi does not work.
[Android Software/Hacking General [Developers Only]] Pavansk:
We have a build which was made before to this which has been posted now in that Bluetooth was working but when we changed kernel to boot the ROM and used cm 11 this is happening
[Android Software/Hacking General [Developers Only]] Qiangong2:
That would be a problem with safestrap then. Using MultiROM it works with Carbon ROM installed as well.
[Android Software/Hacking General [Developers Only]] surajsj:
Can u giv any guide to Fix errors will be good for all
[Android Software/Hacking General [Developers Only]] Qiangong2:
I'm working on it, you have to smali patch to get it working. I've found a guide that i'm translating now.
[Android Software/Hacking General [Developers Only]] surajsj:
Ok thanks after translating plz share
[Android Software/Hacking General [Developers Only]] surajsj:
Did u translate the guide
[Android Software/Hacking General [Developers Only]] Qiangong2:
Working on on had a busy weekend. I have about half done.
[Android Software/Hacking General [Developers Only]] surajsj:
Ok thanks
[Android Software/Hacking General [Developers Only]] Pavansk:
Hey [MENTION=6124463]Qiangong2[/MENTION] I remember I had asked you to Port guide of flyme os did u do that please tell
[Android Software/Hacking General [Developers Only]] Qiangong2:
I've been working on the smali tutorial first, then i'll work on the Flyme tutorial.
[Android Software/Hacking General [Developers Only]] surajsj:
Ok thanks but when smali guide will be done
[Android Software/Hacking General [Developers Only]] Pavansk:
So while in between fixing bugs and building new rom found a new error like updater process ended with signal 4

What is this and how to solve?
[Android Software/Hacking General [Developers Only]] surajsj:
Hey [MENTION=6124463]Qiangong2[/MENTION] source code for miui8 available now
[Android Software/Hacking General [Developers Only]] Qiangong2:
Where?
[Android Software/Hacking General [Developers Only]] surajsj:
i am asking u is it avialable
[Android Software/Hacking General [Developers Only]] Qiangong2:
It is not available yet.
[Android Software/Hacking General [Developers Only]] surajsj:
Is samli guide translated
[Android Software/Hacking General [Developers Only]] surajsj:
Hey is smali guide translated
[Android Software/Hacking General [Developers Only]] Qiangong2:
Sorry, I completely forgot about it. It's about halfway done
[Android Software/Hacking General [Developers Only]] surajsj:
OK and even flyme guide plz by next week
[Android Software/Hacking General [Developers Only]] surajsj:
Hey is guide ready
[Android Software/Hacking General [Developers Only]] thp@1997:
Will cm13 as base works
[Android Software/Hacking General [Developers Only]] surajsj:
Nope... It won't
[Android Software/Hacking General [Developers Only]] thp@1997:
Okk, then I must take stock 4.4.2 it'll work
[Android Software/Hacking General [Developers Only]] surajsj:
Stock won't boot up... Take any custom roms of 4.4.2 or 4.4.4
[Android Software/Hacking General [Developers Only]] turnert:
Stock works thats what i used
[Android Software/Hacking General [Developers Only]] surajsj:
I too tried but myn didn't boot
[Android Software/Hacking General [Developers Only]] surajsj:
can i know what is causing this error....
[Android Software/Hacking General [Developers Only]] Pavansk:
Bit of topic we are working on flyme os and during process this error we are stuck at so can any body here help us please

Sorry for being offtopic
[Android Software/Hacking General [Developers Only]] vinylz:
Nice guide thanks
[Android Software/Hacking General [Developers Only]] Qiangong2:
Oh, okay :D

The nexus 5 has a 5.1.1 build of TencentOS so it must be possible.
[Android Software/Hacking General [Developers Only]] Jeik:
Yeah,I also found that out,but I guess scripts or any other programming tool hate my guts,be it Flyme,MIUI or Tencent PatchTool. .------.

I will try to ask a dev I know to have a look at this thread, though.

Also thank you for the responsiveness,it is sadly hard to find a guide OP who actually bothers to reply. :good:
[Android Software/Hacking General [Developers Only]] Qiangong2:
I want this to work for everyone. :)
[Android Software/Hacking General [Developers Only]] Qiangong2:
Did any of the smali patches actually return success? Or did all of them just fail?
[Android Software/Hacking General [Developers Only]] Jeik:
There were more than 20 errors. I guess other things were patched.
[Android Software/Hacking General [Developers Only]] Abhinav997:
I'm building this on cm11. However in config folder I couldn't find misc info file ........... instead I had the keep files list.

so should I create misc info file. :confused:
[Android Software/Hacking General [Developers Only]] droopyar:
Rule 1: NEVER use a Mobile OS backdoor by chinese goverment :)

Tencent is 100% UNSAFE, UNSECURE. With goverment backdoors from CHina
[Android Software/Hacking General [Developers Only]] Qiangong2:
Yes, you should :)
[Android Software/Hacking General [Developers Only]] Qiangong2:
By that logic MiUi, LeWa OS, Baidu Yun OS, AliYun OS, ColorOS, and Oxygen OS are all unsafe :D

Every mobile OS has some kind of backdoor.
[Android Software/Hacking General [Developers Only]] droopyar:
yes, thats why i never use LENOVO computers (MI6 UK secret service found backdoors) or HUAWEI backdoor phones .:)
[Android Software/Hacking General [Developers Only]] Qiangong2:
Yikes. You're paranoid :D
[Android Software/Hacking General [Developers Only]] Abhinav997:
Well i went ahead got 10 something errors in smali patching...........went searching inside the folders found a patch_fail.txt

with many things.....Any ideas??
[Android Software/Hacking General [Developers Only]] catalyst05:
but USA is trustworthy and good :)) we cant forget Nsa and edward snowden..
[Android Software/Hacking General [Developers Only]] andy_zhang:
Do you use which version of ubuntu? Is Ubuntu 16.04 ok?

vs985 China user
[Android Software/Hacking General [Developers Only]] Abhinav997:
I updated to 16.04 before starting this project so cant say about previous ones.
[Android Software/Hacking General [Developers Only]] lee.wp14:
Oh dude, Spreadtrum supported!!!

Can't wait anymore, gonna switch to LINUX and build tonight!

You know, looks like in the whole xda forum this is the only ROM thread stating that Spreadtrum devices are supported

:good::good::laugh::laugh::laugh::cool::cool:
[Android Software/Hacking General [Developers Only]] Qiangong2:
I've only tested on spreadtrum :D glad someone else is working on spreadtrum devices too :)
[Android Software/Hacking General [Developers Only]] Qiangong2:
You have to manually patch those files that it lists
[Android Software/Hacking General [Developers Only]] Qiangong2:
I use ubuntu 14.04.
[Android Software/Hacking General [Developers Only]] lee.wp14:
Uh no, is BackBox fine with this?

Mind if you share details abt ur device? Mine is LEAGOO Alfa 4 based on SC7731, Cortex A7 Quad-Core.

Thanks.

EDIT : Storage information is important too : 4GB RAM, 512MB ROM
[Android Software/Hacking General [Developers Only]] Qiangong2:
There's a problem with repo sync
[Android Software/Hacking General [Developers Only]] DoubleJOption:
how to patch smali file manually? [MENTION=6124463]Qiangong2[/MENTION]
[Android Software/Hacking General [Developers Only]] Qiangong2:
It should work on any linux distribution
[Android Software/Hacking General [Developers Only]] Abhinav997:
that much I figured out thnx ;) Anyways just curious how many patches did you make for your device ? mine are like around 40-45 smali patches to be done.

Also does the Ubuntu version affect?
[Android Software/Hacking General [Developers Only]] andy_zhang:
Can you make a video about patching tenos?

vs985 China user
[Android Software/Hacking General [Developers Only]] lee.wp14:
http://bbs.tos.cn/thread-212735-1-1.html

暂停适配了，现在我们还能build吗？
[Android Software/Hacking General [Developers Only]] Pavansk:
Hey guys can anybody build this for lenovo a2010a device am excited about it
[Android Software/Hacking General [Developers Only]] lee.wp14:
The heck, finish "make patch" but where's the zip file lol?

EDIT : Patching of smali files all SUCCESS, no FAIL
[Android Software/Hacking General [Developers Only]] Valkiry:
Is there an English language pack?
[Android Software/Hacking General [Developers Only]] Abhinav997:
Whats in the thread? Couldn't understand due to language :(
[Android Software/Hacking General [Developers Only]] Qiangong2:
It's built in. The only two languages currently available are Simplified Chinese and English.
[Android Software/Hacking General [Developers Only]] Qiangong2:
To sum it up, TencentOS 2.0 has just been released, A new smartphone will be released with TencentOS 2.0 soon, and development of TPS is currently suspended. We can still build TPS, just not the latest version :(
[Android Software/Hacking General [Developers Only]] andy_zhang:
Tenos is paused patched, close project.

vs985 China user

---------- Post added at 10:38 PM ---------- Previous post was at 10:37 PM ----------

你的回复让他们彻底疯了。[emoji2]

vs985 China user
[Android Software/Hacking General [Developers Only]] Pavansk:
Hey everyone can somebody port it for lenovo a2010 device please
[Android Software/Hacking General [Developers Only]] Qiangong2:
It looks like there already is a recovery for the a2010. You just need to make a deoodexed ROM and you're set to build Tencent OS yourself. There are plenty of guides to find on XDA about deodexing a stock ROM. Just use the search bar :)
[Android Software/Hacking General [Developers Only]] falqon:
" source : The term 'source' is not recognized as the name of a cmdlet, function, script file, or operable program.

Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:1 char:1

+ source build/envsetup.sh

+ ~~~~~~

+ CategoryInfo : ObjectNotFound: (source:String) [], CommandNotFoundException

+ FullyQualifiedErrorId : CommandNotFoundException "

i've got this error message when try to build, i'm using Win10 64bit & Github for windows, when i check TPS/build folder there is no file "envsetup.sh", can someone explain :D
[Android Software/Hacking General [Developers Only]] Pavansk:
You mean to say that porting using which ROM I can do it is there any lenovo same chipset device having this kind of ROM built
[Android Software/Hacking General [Developers Only]] lee.wp14:
Edit : Solved
[Android Software/Hacking General [Developers Only]] manuraj gowda:
Anyone port it for lenevo a2010 plsease
[Android Software/Hacking General [Developers Only]] Valkiry:
Has anyone tried TCL/Alcatel OT-p323x (Vodafone Smart Tab4)? im trying to do it but struggling a little bit.

I have a flashable install for my stock rom, im unsure how to deodex the file correctly if anyone could point me in the right direction that would be great! also have no idea how to pack it back up so it can be flashed again. If it would be easier i can upload my stock rom.

Thanks guys
[Android Software/Hacking General [Developers Only]] Qiangong2:
First of all, you need to be on a Linux machine (or at least a virtualized machine) and envsetup.sh is in the build folder. You can see it on github.
[Android Software/Hacking General [Developers Only]] Pavansk:
Please can anybody post pictorial form of guide so that it makes it more easier for the build
[Android Software/Hacking General [Developers Only]] Pavansk:
Having some doubts

i have some doubts to be cleared

during initiation of process you talk about build environment and changing directory, please state how to change directory, and please share some thoughts about which environment will be initiated during this process and what are the files required to make that build environment to be initiated and tell some more about the base rom and patch rom in this case only and i know what is a base rom means and port rom means but in this case confused.

and to be clear we are working this on moto device will this work or no.
[Android Software/Hacking General [Developers Only]] Qiangong2:
It should work on any device including your Moto device.

To change a directory, type:

cd (directory)

Where (directory) is the directory you wish to change to.

TencentOS uses the base ROM you have as a guide. It uses the base rom to adapt TencentOS to your device. The adaptation process is called patching.
[Android Software/Hacking General [Developers Only]] Pavansk:
OK all fine the thing is now please say about setup of build environment u said in 2nd step
[Android Software/Hacking General [Developers Only]] Qiangong2:
Sometimes different sources require different commands than normal to function correctly. That is why you initiate the build environment. As an example, the "make create=brand" does not exist by default within make. When you initialize the build environment, it adds in commands that are specific to that source code you are making.
[Android Software/Hacking General [Developers Only]] Pavansk:
OK got it thanks a lot sure will ask if found any serious problems
[Android Software/Hacking General [Developers Only]] surajsj:
Source build/envsetup.sh.

No such file or directory

Plz help

---------- Post added at 12:35 PM ---------- Previous post was at 11:48 AM ----------

Plz reply [MENTION=6124463]Qiangong2[/MENTION]
[Android Software/Hacking General [Developers Only]] Qiangong2:
First try:

chmod 754 build/envsetup.sh

then do the source build/envsetup.sh

If that doesn't work, manually download envsetup.sh from the Tosplus github and put it inside the build folder
[Android Software/Hacking General [Developers Only]] surajsj:
But help me in downloading it in git hub plz
[Android Software/Hacking General [Developers Only]] Qiangong2:
https://github.com/TOSPlus/TPS/raw/master/build/envsetup.sh

right click on the link and click "save link as..." and save it to your build directory.
[Android Software/Hacking General [Developers Only]] surajsj:
OK thanks
[Android Software/Hacking General [Developers Only]] surajsj:
Again error with 4th step.... after I execute 4th step I get this error"make: No rule to make target 'create'. Stop.
[Android Software/Hacking General [Developers Only]] Qiangong2:
I'll make a video of the process later today
[Android Software/Hacking General [Developers Only]] puturaya20:
Wait for redmi 1s
[Android Software/Hacking General [Developers Only]] surajsj:
Thanks .....where u ll upload the video